hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-0
SELECT ALL + col1 DIV - - col2 + + + col1 + - - col2 + - + col2 * - col1 AS col0 FROM tab0 AS cor0
----
199
243
3936

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL + col1 / - - col2 + + + col1 + - - col2 + - + col2 * - col1 AS col0 FROM tab0 AS cor0
----
199
243
3936

query I rowsort
SELECT ( - 13 ) FROM tab1 cor0
----
-13
-13
-13

query II rowsort
SELECT DISTINCT + col2 * - 63 AS col2, col2 AS col1 FROM tab0 AS cor0
----
-2961
47
-6237
99
-630
10

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

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

query I rowsort
SELECT col2 * - 84 * col1 + + col1 FROM tab2 AS cor0
----
-258643
-326357
-98481

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > ( 58 - - col1 )
----

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

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

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

query II rowsort
SELECT ALL + col2 AS col2, col1 + - col0 - - col2 FROM tab0
----
10
-56
47
113
99
3

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT ALL - COUNT( * ) + - - SUM( DISTINCT + col1 ) AS col1 FROM tab1 WHERE ( ( NULL ) IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL - COUNT ( * ) + - - SUM ( DISTINCT + col1 ) AS col1 FROM tab1 WHERE ( ( NULL ) IS NOT NULL )
----
NULL

query I rowsort
SELECT ALL - col0 + + ( col2 ) + col2 * + + ( + 76 ) + - col0 AS col2 FROM tab0
----
3589
596
7429

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-14
SELECT ALL - col2 AS col1, col2 DIV - + col1 FROM tab1
----
-59
-11
-68
-1
-96
-6

skipif mysql # not compatible
query II rowsort label-14
SELECT ALL - col2 AS col1, col2 / - + col1 FROM tab1
----
-59
-11
-68
-1
-96
-6

query II rowsort
SELECT col2, col2 * - col1 FROM tab1
----
59
-295
68
-3196
96
-1344

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

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

query I rowsort
SELECT col2 + + - 9 FROM tab0 AS cor0
----
1
38
90

query I rowsort
SELECT - 80 + - - 74 FROM tab2 AS cor0
----
-6
-6
-6

query I rowsort
SELECT DISTINCT - + col1 + + 36 * - col2 FROM tab2 AS cor0
----
-1517
-2155
-879

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

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

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

query I rowsort
SELECT 74 - col1 FROM tab1 AS cor0
----
27
60
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-23
SELECT col2 FROM tab0 AS cor0 WHERE - CAST( NULL AS DECIMAL ) * + col0 + - 62 + - col0 > NULL
----

skipif mysql # not compatible
query I rowsort label-23
SELECT col2 FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) * + col0 + - 62 + - col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 89 - - - col0 AS col0, col1 col2 FROM tab1 AS cor0
----
-2
47
38
14
4
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT ( - - 98 ) + + + COUNT( * ) AS col2 FROM tab1
----
101

skipif mysql # not compatible
query I rowsort label-26
SELECT ( - - 98 ) + + + COUNT ( * ) AS col2 FROM tab1
----
101

query I rowsort
SELECT 30 * col2 + - 1 + - 56 AS col0 FROM tab1
----
1713
1983
2823

query I rowsort
SELECT ALL - col0 + - ( - + col0 ) * col2 AS col0 FROM tab0
----
690
783
9506

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

query I rowsort
SELECT DISTINCT + + 64 FROM tab1 cor0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT DISTINCT ( + SUM( DISTINCT - - 45 ) ) AS col1 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-31
SELECT DISTINCT ( + SUM ( DISTINCT - - 45 ) ) AS col1 FROM tab0
----
45

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

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

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

query II rowsort
SELECT DISTINCT col0, col2 * col1 FROM tab0
----
15
3807
87
210
97
99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-35
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, - 10 * 22 * - - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-35
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, - 10 * 22 * - - CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 67 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-37
SELECT ALL + col2 + + + 3 DIV + col2 - - - col1 AS col2, + 75 DIV 81 * col0 FROM tab2 AS cor0
----
-28
0
-37
0
-9
0

skipif mysql # not compatible
query II rowsort label-37
SELECT ALL + col2 + + + 3 / + col2 - - - col1 AS col2, + 75 / 81 * col0 FROM tab2 AS cor0
----
-28
0
-37
0
-9
0

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

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

query I rowsort
SELECT ALL 30 + + col0 AS col2 FROM tab2
----
105
76
94

query I rowsort
SELECT ALL + 68 * + col2 AS col2 FROM tab0
----
3196
6732
680

query I rowsort
SELECT 86 + + col2 AS col0 FROM tab0
----
133
185
96

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT + COUNT( * ) * + SUM( - 61 ) FROM tab2
----
-549

skipif mysql # not compatible
query I rowsort label-42
SELECT + COUNT ( * ) * + SUM ( - 61 ) FROM tab2
----
-549

onlyif mysql # DIV for integer division: 
query I rowsort label-43
SELECT col1 DIV + ( 56 ) AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-43
SELECT col1 / + ( 56 ) AS col1 FROM tab2
----
0
1
1

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

query I rowsort
SELECT ALL + + col1 * - col1 + + - col1 + col1 AS col2 FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT - col2 * col2 + + - 94 FROM tab2 AS cor0
----
-1694
-3458
-623

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-47
SELECT ALL col0 + - - col2 + - - CAST( col0 AS SIGNED ) + 22 * - 61 + - 84 FROM tab1 AS cor0 WHERE - col2 + + col0 IS NOT NULL
----
-1176
-1197
-1228

skipif mysql # not compatible
query I rowsort label-47
SELECT ALL col0 + - - col2 + - - CAST ( col0 AS INTEGER ) + 22 * - 61 + - 84 FROM tab1 AS cor0 WHERE - col2 + + col0 IS NOT NULL
----
-1176
-1197
-1228

query I rowsort
SELECT DISTINCT 49 + - col2 AS col2 FROM tab1
----
-10
-19
-47

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-51
SELECT DISTINCT col0 DIV col0 - 66 AS col1, - 49 * - 24 FROM tab1 cor0
----
-65
1176

skipif mysql # not compatible
query II rowsort label-51
SELECT DISTINCT col0 / col0 - 66 AS col1, - 49 * - 24 FROM tab1 cor0
----
-65
1176

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

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

query I rowsort
SELECT ALL 80 AS col1 FROM tab2 cor0 WHERE NOT NULL < 82 / - + 97
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 * col1 + + col1 * + col1 col0 FROM tab2 AS cor0
----
11055
13475
7599

query I rowsort
SELECT DISTINCT - 62 AS col2 FROM tab0, tab1 AS cor0
----
-62

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

query II rowsort
SELECT ALL col1 * + col2 AS col1, col1 AS col1 FROM tab2
----
1173
51
3080
77
3886
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-59
SELECT DISTINCT * FROM tab0 WHERE CAST( - + col0 AS SIGNED ) >= - col2 - - col1
----
97
1
99

skipif mysql # not compatible
query III rowsort label-59
SELECT DISTINCT * FROM tab0 WHERE CAST ( - + col0 AS INTEGER ) >= - col2 - - col1
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT + COUNT( * ) + - COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + - 81
----
0

skipif mysql # not compatible
query I rowsort label-60
SELECT + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + - 81
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 46 ) col0 FROM tab2 AS cor0
----
46
46
46

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

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

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

query I rowsort
SELECT DISTINCT + 86 * + - 34 FROM tab1
----
-2924

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-67
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( - col0 AS SIGNED ) * - col0 - + 80 IN ( + col1, col2 + - col2, + - 30 - + 24 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-67
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( - col0 AS INTEGER ) * - col0 - + 80 IN ( + col1, col2 + - col2, + - 30 - + 24 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT - SUM( + 86 ) AS col2 FROM tab2 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-69
SELECT - SUM ( + 86 ) AS col2 FROM tab2 AS cor0
----
-258

onlyif mysql # DIV for integer division: 
query I rowsort label-70
SELECT - col2 DIV - 19 FROM tab0 AS cor0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-70
SELECT - col2 / - 19 FROM tab0 AS cor0
----
0
2
5

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

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

query I rowsort
SELECT ALL 94 * - col0 + + 86 FROM tab1 AS cor0
----
-4708
-7904
-8468

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

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

query I rowsort
SELECT ALL col1 * + - col0 * + col0 AS col1 FROM tab2
----
-107916
-315392
-376875

query I rowsort
SELECT - + col0 AS col0 FROM tab0 WHERE NULL < - + 83
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-76
SELECT DISTINCT + MAX( + - 76 ) * MIN( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-76
SELECT DISTINCT + MAX ( + - 76 ) * MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col1 * - col1 * 44 IS NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT col2, - 52 AS col0 FROM tab2
----
23
-52
40
-52
58
-52

query I rowsort
SELECT + 18 + col1 + - + 76 AS col0 FROM tab2 AS cor0
----
-7
19
9

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

query I rowsort
SELECT - 32 + + col0 AS col2 FROM tab0 AS cor0
----
-17
55
65

query I rowsort
SELECT ALL col2 * col2 * - col1 / - + 9 AS col0 FROM tab0 AS cor0 WHERE NOT 74 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 84 ) BETWEEN + 42 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT COUNT( 84 ) FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-85
SELECT COUNT ( 84 ) FROM tab2, tab2 AS cor0
----
9

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-87
SELECT + ( 40 ) - + CAST( + 99 AS SIGNED ) * + - 80 - - - 88 * col0 * 39 AS col1, - col2 FROM tab2 AS cor0
----
-149912
-23
-211688
-40
-249440
-58

skipif mysql # not compatible
query II rowsort label-87
SELECT + ( 40 ) - + CAST ( + 99 AS INTEGER ) * + - 80 - - - 88 * col0 * 39 AS col1, - col2 FROM tab2 AS cor0
----
-149912
-23
-211688
-40
-249440
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-89
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 * col2 + 7 / col0 < + - 61 * - + col1 * - CAST( NULL AS SIGNED ) + - col1
----

skipif mysql # not compatible
query III rowsort label-89
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 * col2 + 7 / col0 < + - 61 * - + col1 * - CAST ( NULL AS INTEGER ) + - col1
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-91
SELECT DISTINCT 4 DIV - 70 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-91
SELECT DISTINCT 4 / - 70 AS col1 FROM tab0
----
0

query I rowsort
SELECT + 35 - col2 + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
35
35
35

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

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

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

query I rowsort
SELECT col0 * col0 - + + col0 + - 1 FROM tab0 cor0 WHERE NOT ( NULL ) = NULL
----

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

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

query I rowsort
SELECT ALL col2 * + col1 + + 1 * + col0 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 - - + col0 IS NULL
----
196
297
3822

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

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

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

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

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-51
-85
-91

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

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

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

query I rowsort
SELECT col1 + - 65 AS col2 FROM tab0 cor0
----
-44
-64
16

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-108
SELECT - ( 85 ) DIV - - col2 FROM tab0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-108
SELECT - ( 85 ) / - - col2 FROM tab0
----
-1
-8
0

query I rowsort
SELECT - col1 * - - col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ALL + 11 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 * 18 col0 FROM tab1
----
-111384
-88128
-90270

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

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT ALL MIN( DISTINCT 65 ) AS col2 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-113
SELECT ALL MIN ( DISTINCT 65 ) AS col2 FROM tab0 AS cor0
----
65

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

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

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

query I rowsort
SELECT DISTINCT col0 * - col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-1215
-1827
-97

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

query I rowsort
SELECT - ( + 32 ) * + 3 AS col0 FROM tab0 AS cor0
----
-96
-96
-96

query I rowsort
SELECT 20 * + 99 * + - col2 * - 21 - - + col2 FROM tab0 AS cor0
----
1954307
4116519
415810

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

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

query I rowsort
SELECT ALL + 66 * - - 9 AS col2 FROM tab2 cor0
----
594
594
594

onlyif mysql # DIV for integer division: 
query I rowsort label-122
SELECT ALL + col2 DIV - ( - 20 ) + col1 * - col2 FROM tab1 AS cor0
----
-1340
-293
-3193

skipif mysql # not compatible
query I rowsort label-122
SELECT ALL + col2 / - ( - 20 ) + col1 * - col2 FROM tab1 AS cor0
----
-1340
-293
-3193

onlyif mysql # DIV for integer division: 
query I rowsort label-123
SELECT col1 DIV ( - col1 ) col2 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-123
SELECT col1 / ( - col1 ) col2 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT + 36 * - - COUNT( * ) AS col2 FROM tab2 cor0
----
108

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-125
SELECT + 46 * - + MAX( DISTINCT + ( col1 ) ) FROM tab2 AS cor0 WHERE NOT NULL < ( col2 ) + - - 89 * + - CAST( NULL AS SIGNED ) / col0
----
NULL

skipif mysql # not compatible
query I rowsort label-125
SELECT + 46 * - + MAX ( DISTINCT + ( col1 ) ) FROM tab2 AS cor0 WHERE NOT NULL < ( col2 ) + - - 89 * + - CAST ( NULL AS INTEGER ) / col0
----
NULL

query I rowsort
SELECT DISTINCT 75 * - col2 FROM tab0
----
-3525
-7425
-750

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-128
SELECT ALL col1 DIV 48 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-128
SELECT ALL col1 / 48 FROM tab2
----
1
1
1

query III rowsort
SELECT * FROM tab0 WHERE NOT - 12 / + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-130
SELECT DISTINCT ( + col1 ) DIV - + col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-130
SELECT DISTINCT ( + col1 ) / - + col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-131
SELECT + 83 DIV + col1 AS col2, 48 + + col0 FROM tab0
----
1
63
3
135
83
145

skipif mysql # not compatible
query II rowsort label-131
SELECT + 83 / + col1 AS col2, 48 + + col0 FROM tab0
----
1
63
3
135
83
145

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

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

query I rowsort
SELECT DISTINCT - - 32 * - col2 + - col2 AS col2 FROM tab0 AS cor0
----
-1551
-3267
-330

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 92 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

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

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

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

query I rowsort
SELECT ALL - 66 FROM tab0 cor0
----
-66
-66
-66

query I rowsort
SELECT ALL 18 + col0 + + 54 FROM tab1 AS cor0
----
123
157
163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-140
SELECT DISTINCT - 36 AS col0, SUM( DISTINCT CAST( NULL AS SIGNED ) ) col0 FROM tab1 AS cor0
----
-36
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-140
SELECT DISTINCT - 36 AS col0, SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) col0 FROM tab1 AS cor0
----
-36
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-141
SELECT DISTINCT + COUNT( * ) - - CAST( NULL AS DECIMAL ) * + 45 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-141
SELECT DISTINCT + COUNT ( * ) - - CAST ( NULL AS REAL ) * + 45 AS col2 FROM tab1
----
NULL

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

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

query I rowsort
SELECT + 38 * + + col0 AS col1 FROM tab2 WHERE ( NULL ) NOT IN ( + col0, + col0 + - 27, - + col0, - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-144
SELECT ALL CAST( + col2 AS SIGNED ) - + col0 AS col0 FROM tab0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-144
SELECT ALL CAST ( + col2 AS INTEGER ) - + col0 AS col0 FROM tab0
----
-77
2
32

query I rowsort
SELECT - 45 * + 74 + - - col2 AS col1 FROM tab0
----
-3231
-3283
-3320

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-149
SELECT - 85 * - MIN( - col1 ) / MAX( ALL CAST( NULL AS SIGNED ) ) * - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-149
SELECT - 85 * - MIN ( - col1 ) / MAX ( ALL CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) FROM tab2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-151
SELECT ALL - 59 DIV + 2 - 97 + + + col1 AS col0 FROM tab0 AS cor0
----
-105
-125
-45

skipif mysql # not compatible
query I rowsort label-151
SELECT ALL - 59 / + 2 - 97 + + + col1 AS col0 FROM tab0 AS cor0
----
-105
-125
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-152
SELECT - SUM( col0 ) * + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
597

skipif mysql # not compatible
query I rowsort label-152
SELECT - SUM ( col0 ) * + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
597

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 * - col2 col0 FROM tab0 AS cor0
----
235
495
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - col2 col2 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT col2 * - + 5 FROM tab1
----
-295
-340
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT - 11 * ( COUNT( * ) ) AS col2 FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-157
SELECT - 11 * ( COUNT ( * ) ) AS col2 FROM tab2
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-158
SELECT - 42 AS col1, MIN( + 14 ) FROM tab1
----
-42
14

skipif mysql # not compatible
query II rowsort label-158
SELECT - 42 AS col1, MIN ( + 14 ) FROM tab1
----
-42
14

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT - SUM( col2 ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-159
SELECT - SUM ( col2 ) AS col2 FROM tab1
----
-223

query I rowsort
SELECT - col0 * 91 FROM tab1
----
-4641
-7735
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-161
SELECT + + 65 col0, - 23 + CAST( NULL AS SIGNED ) col0 FROM tab2 WHERE NOT 95 >= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-161
SELECT + + 65 col0, - 23 + CAST ( NULL AS INTEGER ) col0 FROM tab2 WHERE NOT 95 >= NULL
----

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <= - 27
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT + + MIN( ALL - 92 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-92

skipif mysql # not compatible
query I rowsort label-167
SELECT + + MIN ( ALL - 92 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-92

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

onlyif mysql # aggregate syntax: 
query II rowsort label-169
SELECT 22 * 55 AS col0, 66 + + - MIN( + col2 ) AS col0 FROM tab0
----
1210
56

skipif mysql # not compatible
query II rowsort label-169
SELECT 22 * 55 AS col0, 66 + + - MIN ( + col2 ) AS col0 FROM tab0
----
1210
56

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 <> + col1
----

query I rowsort
SELECT ALL + - 10 * + - ( - col1 ) * - col2 AS col0 FROM tab2 AS cor0
----
11730
30800
38860

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT + + COUNT( * ) + + COUNT( * ) + 27 AS col2 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-172
SELECT + + COUNT ( * ) + + COUNT ( * ) + 27 AS col2 FROM tab0 AS cor0
----
33

query I rowsort
SELECT + col0 * + + col2 + - + col2 + + 20 AS col0 FROM tab2 AS cor0
----
1055
2540
4312

query I rowsort
SELECT 96 * - - col2 + + - col2 FROM tab1 AS cor0
----
5605
6460
9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 51 col2 FROM tab2 AS cor0
----
1173
2040
2958

query II rowsort
SELECT + 10, - col2 + + 73 * + + col0 AS col2 FROM tab1
----
10
3627
10
6146
10
6575

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

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

query I rowsort
SELECT + 36 * - 19 FROM tab0 AS cor0 WHERE + 21 / + ( - ( + - col1 ) ) / + - col2 + - + 54 / 52 BETWEEN NULL AND - + col0
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-181
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col2 ) IN ( - + col2 / + ( - + ( + ( - CAST( NULL AS SIGNED ) ) ) ), + 2, - 31 )
----

skipif mysql # not compatible
query III rowsort label-181
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col2 ) IN ( - + col2 / + ( - + ( + ( - CAST ( NULL AS INTEGER ) ) ) ), + 2, - 31 )
----

query II rowsort
SELECT col1, + col1 * + col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
51
2601
67
4489
77
5929

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL >= ( NULL )
----

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

query I rowsort
SELECT DISTINCT - 11 * 42 * - col2 AS col0 FROM tab2 AS cor0
----
10626
18480
26796

query I rowsort
SELECT ALL - - 81 FROM tab2 cor0
----
81
81
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 14 + 74 < + - col0 - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col0 FROM tab0 AS cor0 WHERE NOT 69 IS NULL
----
-15
-87
-97

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-189
SELECT DISTINCT MAX ( ALL - + 85 ) col1 FROM tab2 AS cor0
----
-85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 46 * - col0 + ( col0 ) >= NULL OR - + 9 / + col1 + + col2 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 + + col1 = - 43 + + 43 / col1 + - 17
----

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

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-194
SELECT DISTINCT + MAX( - col1 ) FROM tab0 AS cor0
----
-1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + ( + - col2 ) col0 FROM tab2
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-196
SELECT + 2 * + COUNT( * ) * - - 81, + 20 DIV - COUNT( * ) col2 FROM tab1
----
486
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-196
SELECT + 2 * + COUNT ( * ) * - - 81, + 20 / - COUNT ( * ) col2 FROM tab1
----
486
-6

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

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

query I rowsort
SELECT col1 * - + 65 AS col1 FROM tab2
----
-3315
-4355
-5005

query I rowsort
SELECT ALL - col2 * - 14 FROM tab0
----
1386
140
658

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT ALL + COUNT( * ) * - 37 FROM tab2 WHERE NOT + col1 * col0 * col1 IS NULL
----
-111

skipif mysql # not compatible
query I rowsort label-201
SELECT ALL + COUNT ( * ) * - 37 FROM tab2 WHERE NOT + col1 * col0 * col1 IS NULL
----
-111

query II rowsort
SELECT ALL - - col1 * + col1 + + 6, - 54 AS col2 FROM tab1 cor0
----
202
-54
2215
-54
31
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 * + + col2 col0 FROM tab1 AS cor0
----
-2773
-3196
-4512

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

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

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

query I rowsort
SELECT DISTINCT - col1 * - + 66 AS col2 FROM tab1
----
3102
330
924

query I rowsort
SELECT ALL + ( - 99 ) * - + 69 AS col1 FROM tab0
----
6831
6831
6831

query I rowsort
SELECT DISTINCT - + col0 * 51 FROM tab2 AS cor0
----
-2346
-3264
-3825

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

query I rowsort
SELECT - col2 * - + 14 AS col1 FROM tab2 cor0
----
322
560
812

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

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT - 36 * - - 55 - - 54 * COUNT( * ) AS col1 FROM tab2 cor0
----
-1818

skipif mysql # not compatible
query I rowsort label-212
SELECT - 36 * - - 55 - - 54 * COUNT ( * ) AS col1 FROM tab2 cor0
----
-1818

query I rowsort
SELECT ALL + col2 + + 10 + - + col1 + - col1 FROM tab2 cor0
----
-104
-66
-69

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT SUM( + - col0 ) + + - SUM( ALL + 50 ) col2 FROM tab0
----
-349

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-217
SELECT SUM ( + - col0 ) + + - SUM ( ALL + 50 ) col2 FROM tab0
----
-349

query II rowsort
SELECT + col0 + col1 AS col0, - col0 * + 6 FROM tab1
----
138
-546
65
-306
90
-510

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

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

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

query I rowsort
SELECT ALL 45 + col2 FROM tab2
----
103
68
85

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT DISTINCT + ( - ( + COUNT( ALL + 34 ) ) ) - 60 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-222
SELECT DISTINCT + ( - ( + COUNT ( ALL + 34 ) ) ) - 60 FROM tab1
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-223
SELECT - col1 DIV + + 78 col0 FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT ( + - col2 ) AS col1 FROM tab0
----
-10
-47
-99

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 63 * + 90 IS NOT NULL
----

query I rowsort
SELECT ( - 42 ) AS col1 FROM tab2 AS cor0
----
-42
-42
-42

query I rowsort
SELECT ALL col1 + + col0 + - col2 FROM tab1 AS cor0
----
-31
31
70

query I rowsort
SELECT DISTINCT col2 + col1 * - col1 AS col1 FROM tab1
----
-100
-2141
34

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT MAX( DISTINCT + 10 ) + - + COUNT( * ) * 56 * - 45 FROM tab0
----
7570

skipif mysql # not compatible
query I rowsort label-231
SELECT MAX ( DISTINCT + 10 ) + - + COUNT ( * ) * 56 * - 45 FROM tab0
----
7570

onlyif mysql # aggregate syntax: 
query II rowsort label-232
SELECT - + 96 AS col2, - COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - + 1
----
-96
0

skipif mysql # not compatible
query II rowsort label-232
SELECT - + 96 AS col2, - COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - + 1
----
-96
0

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-236
SELECT DISTINCT - COUNT( * ) * 73 DIV 3 col2 FROM tab0
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-236
SELECT DISTINCT - COUNT ( * ) * 73 / 3 col2 FROM tab0
----
-73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT SUM( DISTINCT - 86 ) AS col0 FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-238
SELECT SUM ( DISTINCT - 86 ) AS col0 FROM tab0 AS cor0
----
-86

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

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

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

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

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE - ( col0 ) + - col1 / + - 20 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT 54 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 1 + + ( - col2 ) / col2 IS NULL
----

query I rowsort
SELECT DISTINCT - + 71 FROM tab0 AS cor0
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-248
SELECT + col0 DIV - col0 + + 20 AS col1 FROM tab1 AS cor0
----
19
19
19

skipif mysql # not compatible
query I rowsort label-248
SELECT + col0 / - col0 + + 20 AS col1 FROM tab1 AS cor0
----
19
19
19

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

query I rowsort
SELECT + + col2 * - 28 AS col2 FROM tab2 AS cor0
----
-1120
-1624
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT - - MIN( col1 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-251
SELECT - - MIN ( col1 ) FROM tab0 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-252
SELECT MAX( 75 ) AS col2 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-252
SELECT MAX ( 75 ) AS col2 FROM tab0
----
75

query I rowsort
SELECT ALL - col1 * + 32 + + - 63 FROM tab2
----
-1695
-2207
-2527

onlyif mysql # DIV for integer division: 
query I rowsort label-254
SELECT DISTINCT + col1 + + 92 - + col2 DIV + col0 FROM tab2
----
143
159
169

skipif mysql # not compatible
query I rowsort label-254
SELECT DISTINCT + col1 + + 92 - + col2 / + col0 FROM tab2
----
143
159
169

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT + ( - - ( - - 84 ) ) * - + COUNT( DISTINCT col1 ) AS col1 FROM tab2
----
-252

skipif mysql # not compatible
query I rowsort label-255
SELECT + ( - - ( - - 84 ) ) * - + COUNT ( DISTINCT col1 ) AS col1 FROM tab2
----
-252

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

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

query I rowsort
SELECT DISTINCT - col0 * col0 - - 52 FROM tab1
----
-2549
-7173
-8229

query I rowsort
SELECT ALL col1 - - - col2 * - - col1 AS col2 FROM tab0
----
-189
-3726
-98

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

onlyif mysql # DIV for integer division: 
query I rowsort label-260
SELECT DISTINCT col1 DIV - ( col2 ) col1 FROM tab2
----
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-260
SELECT DISTINCT col1 / - ( col2 ) col1 FROM tab2
----
-1
-2

query II rowsort
SELECT ALL + 69 AS col1, - col2 * - 4 AS col2 FROM tab0 AS cor0
----
69
188
69
396
69
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-262
SELECT ALL CAST( MIN( + 74 ) AS SIGNED ) FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-262
SELECT ALL CAST ( MIN ( + 74 ) AS INTEGER ) FROM tab2 AS cor0
----
74

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

skipif mysql # not compatible
query I rowsort label-263
SELECT ( + + COUNT ( * ) ) / - - 25 / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 90 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND col1 * + 56
----

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

query I rowsort
SELECT ALL + - ( + - 2 ) FROM tab1 cor0
----
2
2
2

query I rowsort
SELECT + ( - + col2 ) FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT ALL MAX( - 79 ) AS col0 FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL MAX ( - 79 ) AS col0 FROM tab1
----
-79

query I rowsort
SELECT - col2 * 99 FROM tab2
----
-2277
-3960
-5742

query I rowsort
SELECT ALL col2 + col0 - - 51 + + col2 FROM tab1
----
254
278
294

query I rowsort
SELECT - 11 FROM tab2 WHERE + 67 IS NOT NULL
----
-11
-11
-11

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

query I rowsort
SELECT 59 + + - col2 + col1 + col2 + + col2 - + + col1 + - col0 * - - col2 + + + col1 * col0 AS col2 FROM tab2 AS cor0
----
1370
2467
792

onlyif mysql # DIV for integer division: 
query I rowsort label-275
SELECT + col0 + col2 + - + col1 - - - col0 DIV + 52 AS col2 FROM tab0 cor0
----
-19
194
75

skipif mysql # not compatible
query I rowsort label-275
SELECT + col0 + col2 + - + col1 - - - col0 / + 52 AS col2 FROM tab0 cor0
----
-19
194
75

query I rowsort
SELECT - col1 + 23 FROM tab1 AS cor0
----
-24
18
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT 99 + SUM( + ( 65 ) - 9 ) AS col2 FROM tab1
----
267

skipif mysql # not compatible
query I rowsort label-278
SELECT 99 + SUM ( + ( 65 ) - 9 ) AS col2 FROM tab1
----
267

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

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

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

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 69 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-285
SELECT DISTINCT + 91 DIV - 17 AS col1 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-285
SELECT DISTINCT + 91 / - 17 AS col1 FROM tab2
----
-5

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE - 22 = NULL
----

query I rowsort
SELECT DISTINCT 26 + 18 AS col0 FROM tab1
----
44

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

onlyif mysql # DIV for integer division: 
query I rowsort label-289
SELECT + col1 DIV col1 AS col2 FROM tab0 WHERE NOT + col2 IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-289
SELECT + col1 / col1 AS col2 FROM tab0 WHERE NOT + col2 IS NULL
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-290
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-290
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL col1 * col1 - - col0 AS col1 FROM tab0
----
528
6576
98

query I rowsort
SELECT - 89 + - col1 AS col1 FROM tab1
----
-103
-136
-94

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - col2 * - ( - col2 / col0 ) + + 32 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE - 48 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-294
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE - 48 IS NULL
----
0

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

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

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

query I rowsort
SELECT ALL col0 * col2 AS col0 FROM tab1 WHERE NOT - col0 NOT BETWEEN NULL AND 16 * col0
----

query III rowsort
SELECT * FROM tab1 WHERE ( 76 ) <> ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-299
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT col0 / - 31 + CAST( NULL AS SIGNED ) NOT IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT col0 / - 31 + CAST ( NULL AS INTEGER ) NOT IN ( - col1 )
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 ) <= + 88
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT DISTINCT 53 * + COUNT( * ) FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT 53 * + COUNT ( * ) FROM tab1 AS cor0
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-302
SELECT DISTINCT - 47 DIV 80 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-302
SELECT DISTINCT - 47 / 80 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-303
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT ( + col2 + + col0 ) IN ( - 29 * + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-303
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NOT ( + col2 + + col0 ) IN ( - 29 * + col2 )
----
NULL

query I rowsort
SELECT ALL + col0 * + 56 FROM tab0 cor0
----
4872
5432
840

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - 64 NOT BETWEEN + 66 AND ( 26 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-308
SELECT ( col0 ) DIV + 21 AS col1 FROM tab1 WHERE NOT col0 IS NULL
----
2
4
4

skipif mysql # not compatible
query I rowsort label-308
SELECT ( col0 ) / + 21 AS col1 FROM tab1 WHERE NOT col0 IS NULL
----
2
4
4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 35 ) <> - col1
----

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= 69 / + col2
----

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( col1 ) >= + ( col2 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT DISTINCT - + SUM( 6 ) AS col0 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-312
SELECT DISTINCT - + SUM ( 6 ) AS col0 FROM tab2 AS cor0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-313
SELECT - 18 AS col2 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN ( NULL ) AND 78 * CAST( - 86 / + 67 AS SIGNED )
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-313
SELECT - 18 AS col2 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN ( NULL ) AND 78 * CAST ( - 86 / + 67 AS INTEGER )
----
-18
-18
-18

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 + + col0 ) > NULL
----

query I rowsort
SELECT - 57 * - 52 * 8 FROM tab0
----
23712
23712
23712

query I rowsort
SELECT DISTINCT - col1 * - col2 + - col0 * col2 FROM tab1
----
-2992
-3552
-4720

query I rowsort
SELECT DISTINCT - 10 AS col0 FROM tab0
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-320
SELECT + 51 DIV COUNT( * ) - - 15 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-320
SELECT + 51 / COUNT ( * ) - - 15 FROM tab0 AS cor0
----
32

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

skipif mysql # not compatible
query I rowsort label-321
SELECT DISTINCT - MAX ( + ( + col0 ) ) FROM tab1 AS cor0
----
-91

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

query I rowsort
SELECT col2 * + ( ( + col1 ) ) * + 41 AS col2 FROM tab0 AS cor0
----
156087
4059
8610

query I rowsort
SELECT col1 - + ( col0 ) AS col2 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT DISTINCT - + col0 + + - col1 * - 39 FROM tab2 cor0
----
1943
2538
2939

query I rowsort
SELECT ALL - + col2 * + 46 + - col1 AS col0 FROM tab1 AS cor0
----
-2719
-3175
-4430

query I rowsort
SELECT DISTINCT + + 14 * 78 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1092

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE ( + 77 ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

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

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

query I rowsort
SELECT + 6 + + 1 + - col2 + col0 * col1 AS col0 FROM tab1
----
373
4216
625

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT DISTINCT + 94 * COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
846

skipif mysql # not compatible
query I rowsort label-331
SELECT DISTINCT + 94 * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
846

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT DISTINCT - MIN( - col2 ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-332
SELECT DISTINCT - MIN ( - col2 ) FROM tab1 cor0
----
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 < ( - 71 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT ALL + MIN( + ( + - 74 ) ) AS col0 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-334
SELECT ALL + MIN ( + ( + - 74 ) ) AS col0 FROM tab1 AS cor0
----
-74

query II rowsort
SELECT col2, col1 - + 71 * 42 FROM tab1 AS cor0
----
59
-2977
68
-2935
96
-2968

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-339
SELECT - col1 * + 37 * + col2 DIV + col2 FROM tab1 AS cor0
----
-1739
-185
-518

skipif mysql # not compatible
query I rowsort label-339
SELECT - col1 * + 37 * + col2 / + col2 FROM tab1 AS cor0
----
-1739
-185
-518

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 72 - col0 NOT BETWEEN - 87 AND ( 40 )
----
15
81
47

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-342
SELECT + + 83 DIV MIN( - col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-342
SELECT + + 83 / MIN ( - col1 ) AS col2 FROM tab0 AS cor0
----
-1

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-347
SELECT + - col2 - - 26 + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-348
SELECT ALL * FROM tab0 WHERE - CAST( + - col0 AS SIGNED ) >= 84 * - 61 - + 43
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-348
SELECT ALL * FROM tab0 WHERE - CAST ( + - col0 AS INTEGER ) >= 84 * - 61 - + 43
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 10 * + col0 AS col2, col2 AS col1 FROM tab1
----
510
96
850
59
910
68

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

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

query I rowsort
SELECT ALL 76 * - col0 * + - 70 FROM tab1
----
271320
452200
484120

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE - 31 BETWEEN - 98 AND NULL
----

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

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

query I rowsort
SELECT + ( 2 ) FROM tab0 AS cor0 WHERE NOT ( - 6 + - - col2 ) NOT BETWEEN 43 + 45 / + col2 AND ( col0 )
----
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 >= ( - col0 )
----
15
81
47
97
1
99

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

query I rowsort
SELECT ALL + 62 AS col2 FROM tab0
----
62
62
62

query I rowsort
SELECT DISTINCT + - col1 * + col1 * + col1 FROM tab2 cor0
----
-132651
-300763
-456533

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( 88 ) AND 43
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0 AS cor0 WHERE 40 * - col0 * col0 IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT + + col0 * - - 64 + + 50 AS col1 FROM tab0 AS cor0
----
1010
5618
6258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-362
SELECT DISTINCT + col0 * + 58 - + + col0 + - CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
2576
3584
4200

skipif mysql # not compatible
query I rowsort label-362
SELECT DISTINCT + col0 * + 58 - + + col0 + - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
2576
3584
4200

query I rowsort
SELECT ALL - ( col0 ) * + col1 + + - col1 FROM tab2 AS cor0
----
-2397
-5005
-5092

onlyif mysql # DIV for integer division: 
query II rowsort label-364
SELECT ALL + + col0 + - 51 DIV col0 AS col1, col2 AS col2 FROM tab1 AS cor0
----
50
96
85
59
91
68

skipif mysql # not compatible
query II rowsort label-364
SELECT ALL + + col0 + - 51 / col0 AS col1, col2 AS col2 FROM tab1 AS cor0
----
50
96
85
59
91
68

query I rowsort
SELECT DISTINCT + 74 + col0 AS col2 FROM tab2 AS cor0
----
120
138
149

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

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT + MIN( - - col1 ) FROM tab0 AS cor0 WHERE ( col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-367
SELECT + MIN ( - - col1 ) FROM tab0 AS cor0 WHERE ( col0 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-368
SELECT - 89 AS col0, 7 DIV SUM( - + col0 ) AS col0 FROM tab1
----
-89
0

skipif mysql # not compatible
query II rowsort label-368
SELECT - 89 AS col0, 7 / SUM ( - + col0 ) AS col0 FROM tab1
----
-89
0

query I rowsort
SELECT 51 + + 91 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 9c44598517721ad29c019d831d2e0959

query I rowsort
SELECT ALL - 87 + col1 FROM tab0
----
-6
-66
-86

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( col1, col2 - ( + 21 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-372
SELECT - 55 + + 84 + + - col1 DIV - - 87 AS col1 FROM tab2
----
29
29
29

skipif mysql # not compatible
query I rowsort label-372
SELECT - 55 + + 84 + + - col1 / - - 87 AS col1 FROM tab2
----
29
29
29

query I rowsort
SELECT + ( + 36 ) FROM tab1 WHERE ( col2 ) < + 88
----
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT DISTINCT 28 * - COUNT( DISTINCT + ( - 12 ) ) FROM tab1, tab1 cor0
----
-28

skipif mysql # not compatible
query I rowsort label-374
SELECT DISTINCT 28 * - COUNT ( DISTINCT + ( - 12 ) ) FROM tab1, tab1 cor0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-375
SELECT ALL - CAST( 37 AS SIGNED ) - + col2 FROM tab1
----
-105
-133
-96

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL - CAST ( 37 AS INTEGER ) - + col2 FROM tab1
----
-105
-133
-96

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-378
SELECT COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) - 81 AS col2 FROM tab0 AS cor0 WHERE + 89 BETWEEN ( - col0 + - - col2 ) AND ( - col2 )
----
-81

skipif mysql # not compatible
query I rowsort label-378
SELECT COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) - 81 AS col2 FROM tab0 AS cor0 WHERE + 89 BETWEEN ( - col0 + - - col2 ) AND ( - col2 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT + SUM( DISTINCT - - ( + 67 ) ) AS col0 FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-379
SELECT + SUM ( DISTINCT - - ( + 67 ) ) AS col0 FROM tab0
----
67

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 ) BETWEEN col2 AND NULL
----
97
1
99

query I rowsort
SELECT - col1 - + col0 FROM tab0 AS cor0 WHERE NOT 96 + - col0 / - 22 IN ( - 4 )
----
-108
-96
-98

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

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

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

query I rowsort
SELECT DISTINCT 85 FROM tab0 cor0 WHERE + col0 - - col0 + col2 NOT IN ( + + 92 )
----
85

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 + + + ( + + col1 ) IN ( - 79 * 64 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT 98 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT 3 * + - SUM( ALL 29 ) FROM tab2
----
-261

skipif mysql # not compatible
query I rowsort label-391
SELECT 3 * + - SUM ( ALL 29 ) FROM tab2
----
-261

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

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT - CAST ( + + col1 AS INTEGER ) AS col1 FROM tab1
----
-14
-47
-5

query II rowsort
SELECT 61 AS col0, 48 AS col2 FROM tab1
----
61
48
61
48
61
48

query I rowsort
SELECT DISTINCT ( 48 ) FROM tab0
----
48

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

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

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

query I rowsort
SELECT + 85 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= ( + col0 / + 3 )
----

query I rowsort
SELECT DISTINCT col2 + + + col2 AS col0 FROM tab1 AS cor0
----
118
136
192

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

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT MIN( ALL - col2 ) * + + 80 + - 54 FROM tab0 AS cor0
----
-7974

skipif mysql # not compatible
query I rowsort label-402
SELECT MIN ( ALL - col2 ) * + + 80 + - 54 FROM tab0 AS cor0
----
-7974

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 * + 52 * + 18 + + col1 col2 FROM tab1
----
55229
55238
55271

query I rowsort
SELECT DISTINCT + ( ( - + col0 ) ) + - + ( - col2 ) AS col0 FROM tab1
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT DISTINCT COUNT( * ) * + MIN( ALL 56 ) - - 9 AS col0 FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT COUNT ( * ) * + MIN ( ALL 56 ) - - 9 AS col0 FROM tab0
----
177

query I rowsort
SELECT ALL - col0 + + + 5 FROM tab1
----
-46
-80
-86

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

onlyif mysql # DIV for integer division: 
query II rowsort label-410
SELECT ALL 5 * + - col0 - - col1 + + col1 DIV - 94 AS col1, 55 AS col0 FROM tab2
----
-179
55
-243
55
-308
55

skipif mysql # not compatible
query II rowsort label-410
SELECT ALL 5 * + - col0 - - col1 + + col1 / - 94 AS col1, 55 AS col0 FROM tab2
----
-179
55
-243
55
-308
55

onlyif mysql # DIV for integer division: 
query I rowsort label-411
SELECT ALL 78 DIV 7 col0 FROM tab1
----
11
11
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-411
SELECT ALL 78 / 7 col0 FROM tab1
----
11
11
11

query I rowsort
SELECT + ( ( - col2 ) ) + - 75 FROM tab0 AS cor0
----
-122
-174
-85

query I rowsort
SELECT - 11 * col0 + - col2 * - col2 AS col1 FROM tab1 AS cor0
----
2546
3623
8655

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 * col2 col2 FROM tab0
----
178929
2100
9801

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

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL = - col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-417
SELECT + CAST( + + AVG ( ALL - 68 ) AS SIGNED ) FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-417
SELECT + CAST ( + + AVG ( ALL - 68 ) AS INTEGER ) FROM tab0 AS cor0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-418
SELECT DISTINCT + CAST( - - col0 AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-418
SELECT DISTINCT + CAST ( - - col0 AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT ALL - 14 AS col1, + col2 * + col1 FROM tab0 AS cor0
----
-14
210
-14
3807
-14
99

onlyif mysql # aggregate syntax: 
query II rowsort label-420
SELECT 51, - COUNT( * ) col1 FROM tab1 cor0
----
51
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-420
SELECT 51, - COUNT ( * ) col1 FROM tab1 cor0
----
51
-3

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

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

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

query I rowsort
SELECT col2 * + + ( + col1 ) + + + col1 AS col1 FROM tab2 AS cor0
----
1224
3157
3953

query I rowsort
SELECT + col0 + + 53 - - col0 AS col0 FROM tab2 AS cor0
----
145
181
203

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-425
SELECT 28 * CAST( - col1 AS SIGNED ) FROM tab1
----
-1316
-140
-392

skipif mysql # not compatible
query I rowsort label-425
SELECT 28 * CAST ( - col1 AS INTEGER ) FROM tab1
----
-1316
-140
-392

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

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

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

query II rowsort
SELECT DISTINCT + col1, - 54 FROM tab1 AS cor0
----
14
-54
47
-54
5
-54

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

query I rowsort
SELECT DISTINCT - - col1 * col1 + - + col2 FROM tab1 AS cor0
----
-34
100
2141

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

query I rowsort
SELECT DISTINCT + col0 + 87 FROM tab2 AS cor0
----
133
151
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 col2 FROM tab1 AS cor0 WHERE + col2 * - col0 IS NULL
----

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

query I rowsort
SELECT DISTINCT 61 + - + 40 FROM tab0
----
21

query I rowsort
SELECT 33 + + col2 AS col2 FROM tab1
----
101
129
92

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT DISTINCT 88 + - COUNT( * ) AS col0 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-437
SELECT DISTINCT 88 + - COUNT ( * ) AS col0 FROM tab2
----
85

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

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

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

skipif mysql # not compatible
query I rowsort label-440
SELECT ALL SUM ( col0 ) + + 19 FROM tab1
----
246

query I rowsort
SELECT DISTINCT - 42 + + + col2 AS col1 FROM tab1
----
17
26
54

query I rowsort
SELECT 12 + - 15 AS col1 FROM tab1
----
-3
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-443
SELECT DISTINCT 53 * + + col1 - - + CAST( NULL AS SIGNED ) + col2 * - 69 / + col0 / + col0 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-443
SELECT DISTINCT 53 * + + col1 - - + CAST ( NULL AS INTEGER ) + col2 * - 69 / + col0 / + col0 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - col0 + col1 + + 80 FROM tab1 AS cor0
----
0
36
43

query I rowsort
SELECT ALL - - 84 AS col0 FROM tab0 AS cor0
----
84
84
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-446
SELECT ALL + - COUNT( * ) DIV COUNT( * ) + + ( + 69 ) FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-446
SELECT ALL + - COUNT ( * ) / COUNT ( * ) + + ( + 69 ) FROM tab0 AS cor0
----
68

query I rowsort
SELECT ALL col1 * 2 FROM tab1
----
10
28
94

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-449
SELECT ALL + col2 DIV - ( - 12 ) + 60 - - col0 * col2 DIV - - col1 FROM tab1 AS cor0
----
1067
196
417

skipif mysql # not compatible
query I rowsort label-449
SELECT ALL + col2 / - ( - 12 ) + 60 - - col0 * col2 / - - col1 FROM tab1 AS cor0
----
1067
196
417

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN + - col2 / + col2 + + - 95 AND - + 93 OR + - col1 <= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( 60 ) FROM tab1 AS cor0
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT ALL - 22 * + MIN( DISTINCT - 92 ) FROM tab0 cor0
----
2024

skipif mysql # not compatible
query I rowsort label-452
SELECT ALL - 22 * + MIN ( DISTINCT - 92 ) FROM tab0 cor0
----
2024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-453
SELECT 62 DIV COUNT( * ) AS col0 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-453
SELECT 62 / COUNT ( * ) AS col0 FROM tab1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT ALL - MAX( + col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-454
SELECT ALL - MAX ( + col1 ) FROM tab2
----
-77

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 62 / - col2 * 79 IN ( - - col0, + 47, + 57 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-456
SELECT + col0 AS col1, 50 + - - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-456
SELECT + col0 AS col1, 50 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

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

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

query I rowsort
SELECT ALL 66 * - col1 FROM tab2
----
-3366
-4422
-5082

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

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT COUNT( DISTINCT + - 45 ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-460
SELECT COUNT ( DISTINCT + - 45 ) AS col1 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT DISTINCT COUNT( * ) * 31 + COUNT( * ) AS col2 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT COUNT ( * ) * 31 + COUNT ( * ) AS col2 FROM tab0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT - - 54 * + COUNT( * ) + - MIN( - - 91 ) col1 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-462
SELECT - - 54 * + COUNT ( * ) + - MIN ( - - 91 ) col1 FROM tab0 AS cor0
----
71

onlyif mysql # DIV for integer division: 
query II rowsort label-463
SELECT DISTINCT col1 + + - col0, 6 DIV 49 AS col2 FROM tab1 AS cor0
----
-37
0
-44
0
-80
0

skipif mysql # not compatible
query II rowsort label-463
SELECT DISTINCT col1 + + - col0, 6 / 49 AS col2 FROM tab1 AS cor0
----
-37
0
-44
0
-80
0

query I rowsort
SELECT col0 * ( + 19 ) + + col1 FROM tab1 AS cor0
----
1620
1776
983

query I rowsort
SELECT DISTINCT ( - + col0 ) * + 35 * col1 - + col1 FROM tab0
----
-3396
-42606
-63966

query I rowsort
SELECT DISTINCT + 48 + - 50 + col2 * - - 80 FROM tab2
----
1838
3198
4638

query I rowsort
SELECT DISTINCT - col1 - - - 76 FROM tab1
----
-123
-81
-90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT - col2 + + + 54 * - col1 > - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 39 + 76 AS col0 FROM tab2
----
115
115
115

query I rowsort
SELECT ALL ( 18 ) FROM tab0, tab2 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT + ( 84 ) FROM tab2 WHERE + 87 IS NOT NULL
----
84
84
84

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

query I rowsort
SELECT DISTINCT col2 * + col1 * - col1 * - - col2 * 65 AS col0 FROM tab1 AS cor0
----
-117411840
-5656625
-663937040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 28 col1 FROM tab2
----
1288
1792
2100

query I rowsort
SELECT 89 * col0 FROM tab2
----
4094
5696
6675

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

query I rowsort
SELECT ALL - 48 * 7 FROM tab0 AS cor0
----
-336
-336
-336

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

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

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

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

skipif mysql # not compatible
query I rowsort label-480
SELECT + - CAST ( - SUM ( DISTINCT - col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 29 * - + col2 col2 FROM tab2 AS cor0
----
15341
46400
97556

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-482
SELECT ALL - - 11 * + 18 * 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-482
SELECT ALL - - 11 * + 18 * CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-483
SELECT DISTINCT 2 DIV + 36 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-483
SELECT DISTINCT 2 / + 36 FROM tab0 AS cor0
----
0

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 68 <> + + 84
----

query II rowsort
SELECT DISTINCT col2 AS col1, + 61 AS col0 FROM tab2
----
23
61
40
61
58
61

query II rowsort
SELECT ALL + 47, + 28 AS col2 FROM tab1
----
47
28
47
28
47
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-489
SELECT - CAST( NULL AS SIGNED ) * 10 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-489
SELECT - CAST ( NULL AS INTEGER ) * 10 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= 57
----

query I rowsort
SELECT + 43 + - col0 FROM tab0 AS cor0
----
-44
-54
28

query I rowsort
SELECT DISTINCT 31 * 35 / 53 FROM tab2 AS cor0 WHERE - col0 >= - 24 + + col2
----

query I rowsort
SELECT - 47 + 15 AS col0 FROM tab2 AS cor0
----
-32
-32
-32

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 65 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-495
SELECT DISTINCT + - col1, - CAST( - 82 AS SIGNED ) FROM tab1 WHERE ( col1 = - 93 )
----

skipif mysql # not compatible
query II rowsort label-495
SELECT DISTINCT + - col1, - CAST ( - 82 AS INTEGER ) FROM tab1 WHERE ( col1 = - 93 )
----

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

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

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

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

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

query I rowsort
SELECT ALL - col2 + 54 FROM tab2 cor0
----
-4
14
31

query II rowsort
SELECT ALL + col2 + + - ( - col0 ) - + - 72 - 27 AS col1, - col0 * - + 21 AS col2 FROM tab1
----
189
1785
192
1071
204
1911

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

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

query I rowsort
SELECT - + 5 AS col1 FROM tab1 AS cor0
----
-5
-5
-5

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

query I rowsort
SELECT ALL + ( + 69 ) * ( + 48 ) FROM tab0 AS cor0
----
3312
3312
3312

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-505
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST( - col0 AS DECIMAL ) * col1 = NULL
----

skipif mysql # not compatible
query III rowsort label-505
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST ( - col0 AS REAL ) * col1 = NULL
----

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

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

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

query I rowsort
SELECT 81 * 68 FROM tab2
----
5508
5508
5508

query I rowsort
SELECT DISTINCT col0 * + - 16 FROM tab2
----
-1024
-1200
-736

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

onlyif mysql # DIV for integer division: 
query II rowsort label-511
SELECT col2, + col0 DIV + - col1 + + col1 DIV col1 * - 24 FROM tab2 AS cor0
----
23
-24
40
-24
58
-25

skipif mysql # not compatible
query II rowsort label-511
SELECT col2, + col0 / + - col1 + + col1 / col1 * - 24 FROM tab2 AS cor0
----
23
-24
40
-24
58
-25

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-519
SELECT DISTINCT - col2 * col1, - col0 + - col2 DIV col1 * CAST( - + col0 AS SIGNED ) col2 FROM tab1
----
-1344
255
-295
850
-3196
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-519
SELECT DISTINCT - col2 * col1, - col0 + - col2 / col1 * CAST ( - + col0 AS INTEGER ) col2 FROM tab1
----
-1344
255
-295
850
-3196
0

query I rowsort
SELECT col2 * + - col1 * - - 49 AS col0 FROM tab0
----
-10290
-186543
-4851

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT DISTINCT - 31 * COUNT( * ) AS col1 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-522
SELECT DISTINCT - 31 * COUNT ( * ) AS col1 FROM tab0
----
-93

query I rowsort
SELECT DISTINCT - - col1 * col1 + - 86 FROM tab2 AS cor0
----
2515
4403
5843

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT 38 + - COUNT( * ) FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-524
SELECT 38 + - COUNT ( * ) FROM tab0
----
35

query I rowsort
SELECT col0 * + 34 + 56 * - + col0 AS col2 FROM tab0
----
-1914
-2134
-330

query I rowsort
SELECT 87 + col1 AS col1 FROM tab1
----
101
134
92

query I rowsort
SELECT ALL - col0 - + - 14 + - - col1 * - col1 FROM tab2 AS cor0
----
-2633
-4550
-5979

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-528
SELECT ALL 72 DIV + 48 + - SUM( - col1 ) FROM tab0 cor0
----
104

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL 72 / + 48 + - SUM ( - col1 ) FROM tab0 cor0
----
104

onlyif mysql # DIV for integer division: 
query II rowsort label-529
SELECT DISTINCT + col2, col1 DIV col0 AS col0 FROM tab0 AS cor0
----
10
0
47
5
99
0

skipif mysql # not compatible
query II rowsort label-529
SELECT DISTINCT + col2, col1 / col0 AS col0 FROM tab0 AS cor0
----
10
0
47
5
99
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 28 + - - 95 IS NOT NULL
----

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

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

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

query I rowsort
SELECT - col0 * + 6 * + col0 + + col1 FROM tab2 AS cor0
----
-12645
-24499
-33683

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-534
SELECT - CAST( NULL AS SIGNED ) AS col1, - col0 AS col0 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-534
SELECT - CAST ( NULL AS INTEGER ) AS col1, - col0 AS col0 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

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

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

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

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

query I rowsort
SELECT - 46 * col1 FROM tab1
----
-2162
-230
-644

query I rowsort
SELECT DISTINCT - 74 AS col0 FROM tab1
----
-74

query I rowsort
SELECT DISTINCT - ( + + col1 ) FROM tab1
----
-14
-47
-5

query II rowsort
SELECT DISTINCT col2 AS col0, col2 + 51 - + - col1 FROM tab2
----
23
125
40
168
58
176

query II rowsort
SELECT DISTINCT - 28 AS col1, - 43 * 44 FROM tab0 WHERE ( NULL ) <= col2
----

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

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

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

query I rowsort
SELECT ALL - - 82 AS col0 FROM tab2 cor0 WHERE NOT - col2 >= + col1 * + + 86 + 31
----
82
82
82

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) + - col1 col0 FROM tab1 AS cor0
----
-10
-28
-94

query I rowsort
SELECT DISTINCT - col0 + - 71 FROM tab1 cor0
----
-122
-156
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT DISTINCT - 20 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-551
SELECT DISTINCT - 20 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-17

query I rowsort
SELECT ALL 42 * - ( col0 ) + + col0 AS col1 FROM tab2
----
-1886
-2624
-3075

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 BETWEEN + 60 AND NULL
----
46
51
23

query II rowsort
SELECT DISTINCT - 57 AS col0, col2 FROM tab1
----
-57
59
-57
68
-57
96

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

query I rowsort
SELECT ALL - col0 + - 88 FROM tab1
----
-139
-173
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT DISTINCT 50 * - MAX( - col1 ) AS col0 FROM tab2
----
2550

skipif mysql # not compatible
query I rowsort label-557
SELECT DISTINCT 50 * - MAX ( - col1 ) AS col0 FROM tab2
----
2550

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

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

query II rowsort
SELECT + 78 AS col1, + col0 * col2 FROM tab2 AS cor0
----
78
1058
78
2560
78
4350

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 34 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - 70 col2 FROM tab1
----
-23
-56
-65

query I rowsort
SELECT col1 + - ( + col1 ) * - - col1 * + col0 FROM tab1 WHERE + ( - col2 ) IN ( - - col1 - + col2 + 21, 57 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT ALL MAX( col0 ) col1 FROM tab1 AS cor0
----
91

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

query I rowsort
SELECT - 63 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT + 25 * + - COUNT( DISTINCT col2 ) + - + 95 AS col1 FROM tab2 AS cor0
----
-170

skipif mysql # not compatible
query I rowsort label-567
SELECT + 25 * + - COUNT ( DISTINCT col2 ) + - + 95 AS col1 FROM tab2 AS cor0
----
-170

query I rowsort
SELECT col1 * - 20 + + 59 FROM tab0 AS cor0
----
-1561
-361
39

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT SUM( 47 ) FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-573
SELECT SUM ( 47 ) FROM tab1 AS cor0
----
141

query I rowsort
SELECT 62 * + 79 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
4898
4898
4898

query I rowsort
SELECT + 32 + - - col0 * + - col0 FROM tab1 AS cor0
----
-2569
-7193
-8249

query I rowsort
SELECT - + col2 + col0 + col0 * - col0 + + col1 FROM tab0 cor0 WHERE NULL = + 70
----

query I rowsort
SELECT + col1 + 12 FROM tab0 AS cor0
----
13
33
93

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT ALL - 98 * - ( MAX( col0 ) ) AS col1 FROM tab2
----
7350

skipif mysql # not compatible
query I rowsort label-578
SELECT ALL - 98 * - ( MAX ( col0 ) ) AS col1 FROM tab2
----
7350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - 52 * + col0 - + col2 col2 FROM tab1
----
-2734
-4474
-4753

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

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

query I rowsort
SELECT + 56 + + col2 - - - col1 * col2 AS col2 FROM tab0 AS cor0
----
-144
-3704
56

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

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

query I rowsort
SELECT 2 + - col1 * - - 2 * 42 * - + ( col2 ) AS col2 FROM tab1
----
112898
24782
268466

query I rowsort
SELECT - 92 * - col2 + col2 AS col0 FROM tab0
----
4371
9207
930

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT - MAX( ALL - - col2 ) * 88 AS col1 FROM tab0 AS cor0
----
-8712

skipif mysql # not compatible
query I rowsort label-585
SELECT - MAX ( ALL - - col2 ) * 88 AS col1 FROM tab0 AS cor0
----
-8712

query I rowsort
SELECT - 31 * + 27 AS col0 FROM tab1 AS cor0
----
-837
-837
-837

query I rowsort
SELECT - AVG ( + + col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> ( + col0 ) * - ( - col0 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-588
SELECT + CAST( NULL AS SIGNED ) * - + MIN( DISTINCT + - 14 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-588
SELECT + CAST ( NULL AS INTEGER ) * - + MIN ( DISTINCT + - 14 ) FROM tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 > - - 74
----
51
14
96

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

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

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

skipif mysql # not compatible
query I rowsort label-591
SELECT DISTINCT - MAX ( ALL - - col0 ) AS col2 FROM tab1
----
-91

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 + col2 + + ( - 69 ) * - - col0 <> NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT ALL - ( - MIN( col0 ) ) FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-596
SELECT ALL - ( - MIN ( col0 ) ) FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-597
SELECT - - col2 * - 31 * col2 + - - 9 * - + 3 + ( + ( - CAST( col2 AS SIGNED ) ) ) FROM tab0 AS cor0
----
-303957
-3137
-68553

skipif mysql # not compatible
query I rowsort label-597
SELECT - - col2 * - 31 * col2 + - - 9 * - + 3 + ( + ( - CAST ( col2 AS INTEGER ) ) ) FROM tab0 AS cor0
----
-303957
-3137
-68553

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

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

skipif mysql # not compatible
query I rowsort label-599
SELECT COUNT ( * ) * - CAST ( NULL AS REAL ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT col2, col2 * + col0 AS col1 FROM tab2
----
23
1058
40
2560
58
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-601
SELECT DISTINCT MAX( CAST( - ( - col0 ) AS SIGNED ) ) FROM tab0
----
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT ALL - MIN( - 16 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-602
SELECT ALL - MIN ( - 16 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
NULL

query I rowsort
SELECT - - 14 * + col2 AS col0 FROM tab1 AS cor0
----
1344
826
952

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT + + 45 * COUNT( * ) FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-605
SELECT + + 45 * COUNT ( * ) FROM tab1 AS cor0
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-606
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * CAST( NULL AS SIGNED ) * + col1 = 17
----

skipif mysql # not compatible
query III rowsort label-606
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * CAST ( NULL AS INTEGER ) * + col1 = 17
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN 52 AND - + 34
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE 50 * - + 12 + + 65 IS NULL
----

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

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

query I rowsort
SELECT col0 + 61 AS col2 FROM tab2 cor0
----
107
125
136

query I rowsort
SELECT - + col1 * - 95 * - col2 AS col1 FROM tab1 AS cor0
----
-127680
-28025
-303620

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-615
SELECT + + ( + COUNT( * ) ) * + 91 + + CAST( - COUNT( * ) AS SIGNED ) + - + 16 col2 FROM tab2 AS cor0
----
254

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-615
SELECT + + ( + COUNT ( * ) ) * + 91 + + CAST ( - COUNT ( * ) AS INTEGER ) + - + 16 col2 FROM tab2 AS cor0
----
254

query I rowsort
SELECT ALL + - col1 * + - col1 FROM tab1 cor0
----
196
2209
25

query I rowsort
SELECT - - col2 * + col0 * col2 FROM tab1 AS cor0
----
295885
420784
470016

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

onlyif mysql # DIV for integer division: 
query II rowsort label-619
SELECT ALL - 71 * col0, 5 DIV - 46 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-1065
0
-6177
0
-6887
0

skipif mysql # not compatible
query II rowsort label-619
SELECT ALL - 71 * col0, 5 / - 46 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-1065
0
-6177
0
-6887
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT DISTINCT + MIN( col1 ) FROM tab0 cor0 WHERE 38 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-621
SELECT DISTINCT + MIN ( col1 ) FROM tab0 cor0 WHERE 38 IS NULL
----
NULL

query II rowsort
SELECT ALL col0 * - + col2 AS col0, - col0 FROM tab2 AS cor0
----
-1058
-46
-2560
-64
-4350
-75

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

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

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

skipif mysql # not compatible
query I rowsort label-625
SELECT - COUNT ( * ) / COUNT ( * ) FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-626
SELECT col2 * + CAST( 11 AS SIGNED ) AS col1 FROM tab1
----
1056
649
748

skipif mysql # not compatible
query I rowsort label-626
SELECT col2 * + CAST ( 11 AS INTEGER ) AS col1 FROM tab1
----
1056
649
748

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT ALL SUM( DISTINCT + + col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-627
SELECT ALL SUM ( DISTINCT + + col2 ) AS col0 FROM tab1
----
223

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-631
SELECT 27 * COUNT( * ) * SUM( ALL 74 ) col0 FROM tab0
----
17982

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-631
SELECT 27 * COUNT ( * ) * SUM ( ALL 74 ) col0 FROM tab0
----
17982

query I rowsort
SELECT DISTINCT + 96 * 19 - + 98 FROM tab0 AS cor0
----
1726

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-633
SELECT + - 16 DIV - COUNT( * ) + - + COUNT( * ) AS col2, SUM( ALL - - 22 ) FROM tab2 cor0
----
2
66

skipif mysql # not compatible
query II rowsort label-633
SELECT + - 16 / - COUNT ( * ) + - + COUNT ( * ) AS col2, SUM ( ALL - - 22 ) FROM tab2 cor0
----
2
66

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) < + col2 - - 65 - col2
----

query I rowsort
SELECT ALL + 14 + col1 + + + col2 * + ( + - col1 ) FROM tab1
----
-1316
-276
-3135

query I rowsort
SELECT DISTINCT - ( - - col1 ) AS col1 FROM tab0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-637
SELECT col2 DIV col1 DIV - + col1 + - - 69 * col0 * - - col1 FROM tab1 AS cor0
----
29323
295113
49266

skipif mysql # not compatible
query I rowsort label-637
SELECT col2 / col1 / - + col1 + - - 69 * col0 * - - col1 FROM tab1 AS cor0
----
29323
295113
49266

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

query I rowsort
SELECT ALL + + col2 + - col1 + col1 FROM tab2 AS cor0
----
23
40
58

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT DISTINCT - COUNT( * ) * COUNT( * ) + MAX( - col0 ) * 12 + + ( + 57 ) col1 FROM tab1 AS cor0
----
-564

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-642
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) + MAX ( - col0 ) * 12 + + ( + 57 ) col1 FROM tab1 AS cor0
----
-564

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

skipif mysql # not compatible
query I rowsort label-643
SELECT - col1 / + 29 FROM tab0
----
-2
0
0

query I rowsort
SELECT ALL - 84 AS col0 FROM tab2 WHERE + 38 + - col2 IS NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT ALL MIN( ALL + col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL MIN ( ALL + col1 ) AS col1 FROM tab2
----
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = - col1 + - 98
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IN ( 87, 53, col1 / col2 * - - col0 / + 82 )
----
0

skipif mysql # not compatible
query I rowsort label-652
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IN ( 87, 53, col1 / col2 * - - col0 / + 82 )
----
0

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

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

query III rowsort
SELECT 10, col0, 85 * - + ( col2 ) AS col1 FROM tab1 AS cor0
----
9 values hashing to e0347e6900f2c8088076a753e78dbb68

query I rowsort
SELECT DISTINCT - ( + + 86 ) - + + 32 FROM tab0 AS cor0 WHERE col0 * - - 34 IN ( + 45 + + col0, col1 + col0, col1 )
----

query II rowsort
SELECT - + 4 * + + 55 AS col0, - 90 AS col0 FROM tab2 AS cor0
----
-220
-90
-220
-90
-220
-90

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

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

query II rowsort
SELECT ALL + col2 AS col0, col2 * + - col2 FROM tab2 AS cor0
----
23
-529
40
-1600
58
-3364

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT ALL - - COUNT( * ) * + - 42 FROM tab1 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL - - COUNT ( * ) * + - 42 FROM tab1 AS cor0
----
-126

query I rowsort
SELECT DISTINCT col2 * - 52 FROM tab0 AS cor0
----
-2444
-5148
-520

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT - - MIN( DISTINCT col2 ) * 62 AS col1 FROM tab0 AS cor0
----
620

skipif mysql # not compatible
query I rowsort label-661
SELECT - - MIN ( DISTINCT col2 ) * 62 AS col1 FROM tab0 AS cor0
----
620

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-663
SELECT 88, + CAST( NULL AS DECIMAL ) + + MIN( ALL - + 16 ) AS col2 FROM tab2 AS cor0
----
88
NULL

skipif mysql # not compatible
query II rowsort label-663
SELECT 88, + CAST ( NULL AS REAL ) + + MIN ( ALL - + 16 ) AS col2 FROM tab2 AS cor0
----
88
NULL

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

query I rowsort
SELECT ALL col1 + col0 + - col0 FROM tab1 AS cor0
----
14
47
5

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 + + col0 * - col2, + 27 col1 FROM tab1
----
-4882
27
-5010
27
-6141
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-669
SELECT ALL + col0 * + CAST( NULL AS SIGNED ) * ( - col2 ) * - - 27 - - - 69 AS col1, 88 AS col0 FROM tab2 AS cor0
----
NULL
88
NULL
88
NULL
88

skipif mysql # not compatible
query II rowsort label-669
SELECT ALL + col0 * + CAST ( NULL AS INTEGER ) * ( - col2 ) * - - 27 - - - 69 AS col1, 88 AS col0 FROM tab2 AS cor0
----
NULL
88
NULL
88
NULL
88

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 57 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-672
SELECT + + CAST( - 5 AS SIGNED ) - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-672
SELECT + + CAST ( - 5 AS INTEGER ) - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-8

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

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

query I rowsort
SELECT 76 * 20 - 31 AS col1 FROM tab0 cor0
----
1489
1489
1489

query I rowsort
SELECT + col0 + + + col1 + 21 AS col0 FROM tab0 AS cor0
----
117
119
129

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab0 WHERE - 88 * + + col2 IS NOT NULL
----
1
21
81

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-681
SELECT ( - 14 ) col0, col1 DIV + + col0 FROM tab0
----
-14
0
-14
0
-14
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-681
SELECT ( - 14 ) col0, col1 / + + col0 FROM tab0
----
-14
0
-14
0
-14
5

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

query I rowsort
SELECT ALL + col0 * - col1 * 0 * - - 80 FROM tab2
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT + + 22 * + - 10 * + 4 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-877

skipif mysql # not compatible
query I rowsort label-685
SELECT + + 22 * + - 10 * + 4 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-877

query I rowsort
SELECT ALL - ( + + col0 ) FROM tab0 AS cor0 WHERE + col0 * + col0 IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-687
SELECT + 54 * - CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-2754
-4590
-4914

skipif mysql # not compatible
query I rowsort label-687
SELECT + 54 * - CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-2754
-4590
-4914

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT DISTINCT - - MAX( ALL - 75 ) * + + 89 AS col0 FROM tab2 cor0
----
-6675

skipif mysql # not compatible
query I rowsort label-688
SELECT DISTINCT - - MAX ( ALL - 75 ) * + + 89 AS col0 FROM tab2 cor0
----
-6675

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

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

query I rowsort
SELECT ALL + 46 * - col2 + + - col1 FROM tab0
----
-2243
-4555
-481

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

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT DISTINCT - MIN( DISTINCT + 99 ) FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-693
SELECT DISTINCT - MIN ( DISTINCT + 99 ) FROM tab2
----
-99

query I rowsort
SELECT - col0 + - 8 AS col0 FROM tab1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL ( - - 91 ) FROM tab2 WHERE NULL = - - col1
----

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

skipif mysql # not compatible
query II rowsort label-696
SELECT col0 / - + col2 AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
-1
NULL
-1
NULL
0
NULL

query I rowsort
SELECT col0 * - - 13 * + col1 FROM tab2
----
30498
64064
65325

query I rowsort
SELECT DISTINCT 55 * - 5 AS col2 FROM tab0
----
-275

query II rowsort
SELECT - col0 * col2, col2 AS col1 FROM tab2
----
-1058
23
-2560
40
-4350
58

query I rowsort
SELECT ALL col2 * + - col1 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT - 51 FROM tab0 WHERE NOT - + col2 * - col1 IS NULL
----
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-702
SELECT ALL 92 DIV + - col0, col0 FROM tab1 AS cor0
----
-1
51
-1
85
-1
91

skipif mysql # not compatible
query II rowsort label-702
SELECT ALL 92 / + - col0, col0 FROM tab1 AS cor0
----
-1
51
-1
85
-1
91

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT DISTINCT COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 WHERE - col0 >= - col1
----
1

skipif mysql # not compatible
query I rowsort label-703
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE - col0 >= - col1
----
1

query I rowsort
SELECT DISTINCT + col2 + 19 FROM tab2 cor0
----
42
59
77

query I rowsort
SELECT DISTINCT + - col2 * col1 + col1 AS col0 FROM tab2 AS cor0
----
-1122
-3003
-3819

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

query I rowsort
SELECT DISTINCT - ( col2 ) + + + 2 + - col2 AS col0 FROM tab0
----
-18
-196
-92

query I rowsort
SELECT ALL + col2 * + - 71 FROM tab1
----
-4189
-4828
-6816

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-711
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) + col1 AS col0, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-711
SELECT DISTINCT - - CAST ( NULL AS REAL ) + col1 AS col0, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-712
SELECT + - CAST ( - + ( + col2 ) AS INTEGER ) col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT + - col0 AS col2 FROM tab1 AS cor0 WHERE NULL > 75 * 21 + - col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT ALL ( + MAX( + + 78 ) ) AS col0 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-715
SELECT ALL ( + MAX ( + + 78 ) ) AS col0 FROM tab0 AS cor0
----
78

query I rowsort
SELECT DISTINCT - col1 + + col0 + 49 * 60 * - - 25 AS col1 FROM tab1
----
73537
73544
73580

onlyif mysql # DIV for integer division: 
query I rowsort label-717
SELECT + 95 DIV - - col2 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-717
SELECT + 95 / - - col2 FROM tab2
----
1
2
4

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

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

query I rowsort
SELECT + col0 - - - 22 AS col2 FROM tab2
----
24
42
53

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT DISTINCT COUNT( ALL + + col0 ) + COUNT( * ) * 90 AS col0 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-720
SELECT DISTINCT COUNT ( ALL + + col0 ) + COUNT ( * ) * 90 AS col0 FROM tab1
----
273

query II rowsort
SELECT col2 - + + col0 + + + col0, + col2 - + col1 * + 96 + - col0 + - col2 * - col2 AS col0 FROM tab1
----
59
2975
68
89
96
7917

query I rowsort
SELECT col0 * - ( 85 ) - + 19 FROM tab0
----
-1294
-7414
-8264

onlyif mysql # DIV for integer division: 
query II rowsort label-723
SELECT col2 AS col2, col2 DIV col2 AS col0 FROM tab2
----
23
1
40
1
58
1

skipif mysql # not compatible
query II rowsort label-723
SELECT col2 AS col2, col2 / col2 AS col0 FROM tab2
----
23
1
40
1
58
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-724
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0, - COUNT( * ) AS col0 FROM tab0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-724
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0, - COUNT ( * ) AS col0 FROM tab0
----
NULL
-3

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

query I rowsort
SELECT DISTINCT + col1 * col1 * + + col2 * col1 FROM tab1 WHERE + ( col1 ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT DISTINCT + + COUNT( DISTINCT - 55 ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-728
SELECT DISTINCT + + COUNT ( DISTINCT - 55 ) AS col1 FROM tab2 AS cor0
----
1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-729
SELECT + col0 / + col0 + col1 col2 FROM tab0
----
2
22
82

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

query I rowsort
SELECT ALL 47 * 15 - + 93 AS col2 FROM tab2
----
612
612
612

onlyif mysql # DIV for integer division: 
query I rowsort label-732
SELECT DISTINCT + col2 DIV ( col2 ) + + 99 FROM tab1
----
100

skipif mysql # not compatible
query I rowsort label-732
SELECT DISTINCT + col2 / ( col2 ) + + 99 FROM tab1
----
100

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

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

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

skipif mysql # not compatible
query III rowsort label-734
SELECT * FROM tab1 WHERE NOT NULL <= - CAST ( - col1 AS INTEGER ) - - 83
----

query I rowsort
SELECT ( - ( + 88 ) ) FROM tab2 WHERE 57 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < - col1 * 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT - COUNT( * ) + + ( + COUNT( * ) ) * 95 FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-737
SELECT - COUNT ( * ) + + ( + COUNT ( * ) ) * 95 FROM tab2
----
282

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NOT ( NULL ) <= col2 + - col0 * col0
----
0

skipif mysql # not compatible
query I rowsort label-741
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( NULL ) <= col2 + - col0 * col0
----
0

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

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

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

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

query I rowsort
SELECT ALL + col1 * 36 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1836
2412
2772

query I rowsort
SELECT col2 + + 0 AS col1 FROM tab2
----
23
40
58

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

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

query I rowsort
SELECT ALL 22 * + col2 AS col0 FROM tab0
----
1034
2178
220

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

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

query I rowsort
SELECT DISTINCT col0 * 90 FROM tab0
----
1350
7830
8730

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT ALL + COUNT( * ) - + 88 FROM tab1
----
-85

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL + COUNT ( * ) - + 88 FROM tab1
----
-85

query I rowsort
SELECT ( 69 ) - col1 AS col2 FROM tab0
----
-12
48
68

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

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

query I rowsort
SELECT ALL 29 FROM tab1 WHERE ( 18 + + ( 46 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT ALL 79 - COUNT( * ) FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL 79 - COUNT ( * ) FROM tab1
----
76

query I rowsort
SELECT 43 + - col0 AS col1 FROM tab1
----
-42
-48
-8

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

onlyif mysql # DIV for integer division: 
query I rowsort label-759
SELECT col2 DIV 93 + col0 DIV + ( col1 ) FROM tab0 AS cor0
----
0
4
98

skipif mysql # not compatible
query I rowsort label-759
SELECT col2 / 93 + col0 / + ( col1 ) FROM tab0 AS cor0
----
0
4
98

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT ALL 25 * + COUNT( * ) + 35 FROM tab1
----
110

skipif mysql # not compatible
query I rowsort label-762
SELECT ALL 25 * + COUNT ( * ) + 35 FROM tab1
----
110

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN col0 * - 48 AND - col1 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT ALL COUNT( 71 ) - 40 FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-764
SELECT ALL COUNT ( 71 ) - 40 FROM tab2
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-765
SELECT + + ( 48 ) DIV - 99 - - 93 AS col2 FROM tab2 cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-765
SELECT + + ( 48 ) / - 99 - - 93 AS col2 FROM tab2 cor0
----
93
93
93

query I rowsort
SELECT 97 - 48 * + col1 AS col2 FROM tab0 AS cor0
----
-3791
-911
49

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

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

query I rowsort
SELECT ALL col1 + 48 FROM tab2 AS cor0
----
115
125
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 + + col1 col1 FROM tab0 AS cor0
----
13
33
93

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

query I rowsort
SELECT - - 33 + + col2 FROM tab0 cor0
----
132
43
80

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> + 17
----

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

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

query I rowsort
SELECT DISTINCT + col0 * 65 FROM tab0
----
5655
6305
975

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-776
SELECT DISTINCT col1 DIV 64 AS col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-776
SELECT DISTINCT col1 / 64 AS col0 FROM tab2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT 46 * MIN( DISTINCT col1 ) AS col0 FROM tab2
----
2346

skipif mysql # not compatible
query I rowsort label-777
SELECT 46 * MIN ( DISTINCT col1 ) AS col0 FROM tab2
----
2346

query I rowsort
SELECT - 51 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT ALL + COUNT( * ) * + ( + 7 ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL + COUNT ( * ) * + ( + 7 ) FROM tab1
----
21

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

query I rowsort
SELECT DISTINCT + 64 * - - col2 AS col2 FROM tab2 cor0
----
1472
2560
3712

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 col1 FROM tab1
----
4896
5015
6188

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE - 99 * - 70 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT ALL - 93 * 29 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60df2a523a055b8613acd6aa2ef6e9bf

onlyif mysql # DIV for integer division: 
query I rowsort label-785
SELECT - col1 DIV - - col1 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-785
SELECT - col1 / - - col1 AS col2 FROM tab1
----
-1
-1
-1

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

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

skipif mysql # not compatible
query I rowsort label-787
SELECT + CAST ( 53 AS INTEGER ) FROM tab1
----
53
53
53

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 + col1 + ( - 7 ) < - 98 + 50
----
97
1
99

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col2 ) BETWEEN ( NULL ) AND col0
----

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 63 >= 65
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-799
SELECT MIN ( - + 1 ) AS col2 FROM tab2
----
-1

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

skipif mysql # not compatible
query I rowsort label-800
SELECT - MIN ( + + col0 ) FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT - SUM( ALL 81 ) * ( + 52 ) FROM tab1
----
-12636

skipif mysql # not compatible
query I rowsort label-801
SELECT - SUM ( ALL 81 ) * ( + 52 ) FROM tab1
----
-12636

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

skipif mysql # not compatible
query I rowsort label-802
SELECT - COUNT ( 17 ) AS col2 FROM tab0
----
-3

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

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

query I rowsort
SELECT + ( - 76 ) + + 70 FROM tab1 WHERE ( + col1 ) <> NULL
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( col2, 86 )
----

query III rowsort
SELECT * FROM tab1 WHERE + - 64 < NULL
----

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 66 IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT + + col1 * + col2 AS col0 FROM tab0 AS cor0 WHERE NOT col2 + - col0 + col1 IS NULL
----
210
3807
99

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

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

query I rowsort
SELECT ALL + 60 * + ( + col2 ) AS col2 FROM tab2 AS cor0
----
1380
2400
3480

query I rowsort
SELECT DISTINCT + col0 * 74 + 25 + - col2 AS col0 FROM tab2 AS cor0
----
3406
4721
5517

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-819
SELECT ALL - - ( + ( + CAST( 37 AS SIGNED ) ) ) * - col2 FROM tab2 AS cor0
----
-1480
-2146
-851

skipif mysql # not compatible
query I rowsort label-819
SELECT ALL - - ( + ( + CAST ( 37 AS INTEGER ) ) ) * - col2 FROM tab2 AS cor0
----
-1480
-2146
-851

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

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

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

skipif mysql # not compatible
query I rowsort label-821
SELECT ALL + col1 / - + 33 FROM tab1
----
-1
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - 49, + ( - 37 ) + - col2 )
----

query I rowsort
SELECT - col2 * - 36 AS col1 FROM tab0
----
1692
3564
360

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( - col2 ) < NULL
----

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

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

query I rowsort
SELECT + - 70 * + col2 * - + col2 AS col0 FROM tab1 AS cor0
----
243670
323680
645120

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - 99 ) + 88 NOT BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-829
SELECT DISTINCT - col1 / CAST( NULL AS SIGNED ), - col2 col0 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

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

query I rowsort
SELECT - + 29 * + + col1 * + + col1 + - + 96 FROM tab2 AS cor0
----
-130277
-172037
-75525

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 74 * + - col1 col2, col2 AS col1 FROM tab1 AS cor0
----
-1036
96
-3478
68
-370
59

query I rowsort
SELECT ALL - ( + + col2 ) * - + 40 - - - col0 FROM tab0 AS cor0
----
1865
313
3863

query I rowsort
SELECT DISTINCT - col0 * - - col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE NULL NOT BETWEEN + col2 + - col0 - - 75 AND - + col1
----

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

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

query I rowsort
SELECT col2 * - + col2 AS col1 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT DISTINCT COUNT( * ) + - 66 AS col0 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-838
SELECT DISTINCT COUNT ( * ) + - 66 AS col0 FROM tab1
----
-63

query I rowsort
SELECT ALL 12 * - 79 * + - 52 AS col0 FROM tab1
----
49296
49296
49296

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT DISTINCT COUNT( * ) * - - ( + - 81 ) col2 FROM tab0
----
-243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-840
SELECT DISTINCT COUNT ( * ) * - - ( + - 81 ) col2 FROM tab0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT ALL SUM( + col1 ) * + ( - 25 ) * COUNT( * ) * + + COUNT( DISTINCT + 30 ) + + - 1 + 29 + 4 AS col0 FROM tab1
----
-4918

skipif mysql # not compatible
query I rowsort label-841
SELECT ALL SUM ( + col1 ) * + ( - 25 ) * COUNT ( * ) * + + COUNT ( DISTINCT + 30 ) + + - 1 + 29 + 4 AS col0 FROM tab1
----
-4918

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-843
SELECT DISTINCT - + col1 AS col2, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-843
SELECT DISTINCT - + col1 AS col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 86 - - col0 col1 FROM tab2 AS cor0
----
132
150
161

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-847
SELECT + CAST( - MIN( DISTINCT 49 ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-49

skipif mysql # not compatible
query I rowsort label-847
SELECT + CAST ( - MIN ( DISTINCT 49 ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT MIN( 76 ) AS col1 FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-848
SELECT MIN ( 76 ) AS col1 FROM tab1 AS cor0
----
76

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 39 * - ( - col1 ) NOT BETWEEN NULL AND - col2 * + 65 + - col2
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 + + 91 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT DISTINCT + 73 * - COUNT( * ) FROM tab1 cor0
----
-219

skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT + 73 * - COUNT ( * ) FROM tab1 cor0
----
-219

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

query I rowsort
SELECT ALL ( + - 44 ) FROM tab2
----
-44
-44
-44

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * + + col0 + - - col2 * 43 * col1 + - - 47 + + col2 * + col0 NOT BETWEEN NULL AND ( col0 * col2 )
----

query I rowsort
SELECT ALL + - 40 AS col2 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT ALL COUNT( + - col0 ) + + + ( - 76 ) FROM tab2 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-860
SELECT ALL COUNT ( + - col0 ) + + + ( - 76 ) FROM tab2 AS cor0
----
-73

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL IS NOT NULL ) OR + + 69 <= NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 36 + - + col1 AS col2, + 7 FROM tab2
----
-15
7
-31
7
-41
7

query I rowsort
SELECT ALL - 80 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col1 + + col2 + - 65 * - - 23 + + col1 * col0, - col1 * - 72 )
----

query I rowsort
SELECT ALL - - 5 * 2 AS col0 FROM tab2 AS cor0
----
10
10
10

query I rowsort
SELECT + col0 + + - 1 AS col2 FROM tab2 AS cor0
----
45
63
74

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT SUM( DISTINCT - + ( + col1 ) ) AS col0 FROM tab1 AS cor0 WHERE col2 * col1 * + ( + 20 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-868
SELECT SUM ( DISTINCT - + ( + col1 ) ) AS col0 FROM tab1 AS cor0 WHERE col2 * col1 * + ( + 20 ) IS NULL
----
NULL

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

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

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

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

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

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

query II rowsort
SELECT ( - 75 ), + col2 * - + 64 AS col1 FROM tab1
----
-75
-3776
-75
-4352
-75
-6144

query I rowsort
SELECT ALL col1 - + + col0 + 17 + - col0 FROM tab0
----
-136
-176
68

query I rowsort
SELECT col2 FROM tab0 WHERE ( ( ( + + col1 * + ( col1 ) + + - col2 + - col2 + - col2 ) IN ( col2 ) ) )
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-877
SELECT DISTINCT + 28 DIV - col0 AS col0, + 31 AS col0 FROM tab1
----
0
31

skipif mysql # not compatible
query II rowsort label-877
SELECT DISTINCT + 28 / - col0 AS col0, + 31 AS col0 FROM tab1
----
0
31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-878
SELECT DISTINCT MIN( ALL CAST( NULL AS DECIMAL ) ) - - 90 col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-878
SELECT DISTINCT MIN ( ALL CAST ( NULL AS REAL ) ) - - 90 col0 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT - + 26 * - 88 + + COUNT( + 61 ) FROM tab2 AS cor0
----
2291

skipif mysql # not compatible
query I rowsort label-880
SELECT - + 26 * - 88 + + COUNT ( + 61 ) FROM tab2 AS cor0
----
2291

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

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

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

query II rowsort
SELECT ALL + + col1 AS col0, - 49 - + - col2 AS col0 FROM tab1 AS cor0
----
14
47
47
19
5
10

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-887
SELECT - 41 * + + COUNT( * ), 79 AS col1 FROM tab2
----
-123
79

skipif mysql # not compatible
query II rowsort label-887
SELECT - 41 * + + COUNT ( * ), 79 AS col1 FROM tab2
----
-123
79

query I rowsort
SELECT col2 * - + col2 AS col0 FROM tab0
----
-100
-2209
-9801

onlyif mysql # DIV for integer division: 
query I rowsort label-889
SELECT - 59 DIV + ( - col2 ) AS col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-889
SELECT - 59 / + ( - col2 ) AS col0 FROM tab2
----
1
1
2

query I rowsort
SELECT + 8 * - col1 * + col1 FROM tab0
----
-3528
-52488
-8

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > 25 + - col1
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col1 * col0 NOT BETWEEN - col2 AND 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT - 15 * MIN( + + 67 ) FROM tab0
----
-1005

skipif mysql # not compatible
query I rowsort label-894
SELECT - 15 * MIN ( + + 67 ) FROM tab0
----
-1005

query I rowsort
SELECT ALL ( + - col2 ) * + 32 AS col2 FROM tab2
----
-1280
-1856
-736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - AVG ( + col1 ) ) col2 FROM tab2 AS cor0 WHERE NULL >= - col1
----
NULL

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

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

query I rowsort
SELECT ALL + 7 FROM tab1 cor0 WHERE NULL <= NULL
----

query II rowsort
SELECT - col0, + 11 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 73 + + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-23
14
5

query I rowsort
SELECT - col0 + 11 AS col0 FROM tab0 cor0
----
-4
-76
-86

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

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

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

query I rowsort
SELECT DISTINCT 80 + - 71 FROM tab0
----
9

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-905
SELECT + COUNT ( * ) * - 72 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-648

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

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

query I rowsort
SELECT - col2 AS col2 FROM tab2 cor0 WHERE - 48 IS NULL
----

query I rowsort
SELECT - 39 * - + col2 FROM tab0 AS cor0
----
1833
3861
390

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

onlyif mysql # DIV for integer division: 
query I rowsort label-910
SELECT ALL - col2 DIV + 96 + + col2 AS col0 FROM tab0 AS cor0
----
10
47
98

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL - col2 / + 96 + + col2 AS col0 FROM tab0 AS cor0
----
10
47
98

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT + - MAX( ALL + - col1 ) * + + 76 FROM tab2 AS cor0
----
3876

skipif mysql # not compatible
query I rowsort label-911
SELECT + - MAX ( ALL + - col1 ) * + + 76 FROM tab2 AS cor0
----
3876

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT + COUNT( * ) AS col1 FROM tab0 cor0 WHERE - col1 >= + col1 * + col0 / col1 / col0
----
0

skipif mysql # not compatible
query I rowsort label-914
SELECT + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE - col1 >= + col1 * + col0 / col1 / col0
----
0

query I rowsort
SELECT ALL - col0 + + - col0 AS col0 FROM tab0 AS cor0
----
-174
-194
-30

query I rowsort
SELECT - col1 + + 22 * 70 + 30 AS col1 FROM tab0
----
1489
1549
1569

query III rowsort
SELECT * FROM tab2 WHERE ( 39 ) <= + 35 * - + ( - col2 ) / ( col1 ) - - + col0 + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 34 - - + 28 + + col1 * + col0 * - col0 FROM tab1
----
-36063
-36352
-389145

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-919
SELECT + COUNT ( * ) + 94 col0 FROM tab2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT ALL + - MAX( + ( - - col0 ) ) FROM tab0 WHERE NULL IS NULL
----
-97

skipif mysql # not compatible
query I rowsort label-920
SELECT ALL + - MAX ( + ( - - col0 ) ) FROM tab0 WHERE NULL IS NULL
----
-97

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-923
SELECT ALL col1 DIV + - 32 - - col0 AS col0 FROM tab2
----
45
62
73

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL col1 / + - 32 - - col0 AS col0 FROM tab2
----
45
62
73

query I rowsort
SELECT DISTINCT 49 / + col1 + + col1 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT + 69 * + MAX( - 80 ) FROM tab1 AS cor0
----
-5520

skipif mysql # not compatible
query I rowsort label-925
SELECT + 69 * + MAX ( - 80 ) FROM tab1 AS cor0
----
-5520

query I rowsort
SELECT DISTINCT + col0 * - + col0 * + 25 FROM tab2 AS cor0
----
-102400
-140625
-52900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-927
SELECT 41 / - + CAST( NULL AS SIGNED ) + + COUNT( * ) * 49 + + - 66 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-927
SELECT 41 / - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * 49 + + - 66 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 23 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) IS NULL OR NOT ( NULL NOT IN ( 36 * + col0 ) )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-932
SELECT col2 DIV ( 98 ) * 69 * + 90 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-932
SELECT col2 / ( 98 ) * 69 * + 90 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

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

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

query I rowsort
SELECT ALL 94 AS col1 FROM tab1 AS cor0
----
94
94
94

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

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT ( + - 76 ) > - col2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-938
SELECT - CAST( NULL AS SIGNED ) / + 77 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-938
SELECT - CAST ( NULL AS INTEGER ) / + 77 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-939
SELECT col1 * + CAST( NULL AS DECIMAL ) / + 22 * + + col2 col2, 86 AS col1 FROM tab2
----
NULL
86
NULL
86
NULL
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-939
SELECT col1 * + CAST ( NULL AS REAL ) / + 22 * + + col2 col2, 86 AS col1 FROM tab2
----
NULL
86
NULL
86
NULL
86

onlyif mysql # DIV for integer division: 
query II rowsort label-940
SELECT ALL + col1, + 54 * col2 DIV - + 10 FROM tab1
----
14
-518
47
-367
5
-318

skipif mysql # not compatible
query II rowsort label-940
SELECT ALL + col1, + 54 * col2 / - + 10 FROM tab1
----
14
-518
47
-367
5
-318

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

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

query I rowsort
SELECT DISTINCT - col2 + 48 FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT ALL - COUNT( * ) + + + 79 AS col0 FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-944
SELECT ALL - COUNT ( * ) + + + 79 AS col0 FROM tab0 AS cor0
----
76

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

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

query II rowsort
SELECT + col0 + + col1, + ( - ( + col0 ) ) AS col1 FROM tab2
----
141
-64
142
-75
97
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-947
SELECT + - ( - + 45 ) * - + col1 * + 61 FROM tab1 WHERE - CAST( + 91 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-947
SELECT + - ( - + 45 ) * - + col1 * + 61 FROM tab1 WHERE - CAST ( + 91 AS INTEGER ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT + COUNT( * ) + + 41 AS col0 FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-949
SELECT + COUNT ( * ) + + 41 AS col0 FROM tab0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-950
SELECT ALL + SUM( DISTINCT - + col1 ) AS col2, COUNT( * ) * 51 FROM tab2 AS cor0
----
-195
153

skipif mysql # not compatible
query II rowsort label-950
SELECT ALL + SUM ( DISTINCT - + col1 ) AS col2, COUNT ( * ) * 51 FROM tab2 AS cor0
----
-195
153

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT COUNT( + - col2 ) FROM tab0 AS cor0 WHERE NULL BETWEEN ( - 19 ) * + col0 + - col0 AND - 29
----
0

skipif mysql # not compatible
query I rowsort label-956
SELECT COUNT ( + - col2 ) FROM tab0 AS cor0 WHERE NULL BETWEEN ( - 19 ) * + col0 + - col0 AND - 29
----
0

query II rowsort
SELECT col0, 71 FROM tab2
----
46
71
64
71
75
71

query I rowsort
SELECT - 16 * + col0 AS col0 FROM tab1
----
-1360
-1456
-816

query I rowsort
SELECT + col0 FROM tab0 WHERE + col1 + - 18 / - - 36 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT 50 - - COUNT( * ) AS col2 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-960
SELECT 50 - - COUNT ( * ) AS col2 FROM tab2
----
53

query I rowsort
SELECT DISTINCT 31 + 25 + - 14 AS col2 FROM tab2
----
42

query I rowsort
SELECT ( + col0 ) FROM tab0 WHERE - 6 + - - col2 IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT col1 + - 43 + - + col0 + - col0 * 42 * + col0 FROM tab2
----
-172062
-236301
-88910

query I rowsort
SELECT 91 - 84 FROM tab2
----
7
7
7

query I rowsort
SELECT col1 * 86 * - + col0 - - 84 FROM tab2
----
-201672
-423724
-432066

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT ALL COUNT( DISTINCT + 69 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL COUNT ( DISTINCT + 69 ) FROM tab0
----
1

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

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

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

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

query I rowsort
SELECT DISTINCT 24 * + 53 * - + col2 - + col2 * - - col1 * col2 + - + col0 FROM tab2 AS cor0
----
-174144
-299239
-56281

query I rowsort
SELECT + ( - 18 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-974
SELECT ALL - + ( + col2 ) AS col2, col2 DIV + col1 FROM tab1 cor0
----
-59
11
-68
1
-96
6

skipif mysql # not compatible
query II rowsort label-974
SELECT ALL - + ( + col2 ) AS col2, col2 / + col1 FROM tab1 cor0
----
-59
11
-68
1
-96
6

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-977
SELECT CAST( NULL AS DECIMAL ), + MAX( DISTINCT + - 64 ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-977
SELECT CAST ( NULL AS REAL ), + MAX ( DISTINCT + - 64 ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL

query I rowsort
SELECT ALL - ( - 16 ) * + + 37 AS col1 FROM tab1 AS cor0
----
592
592
592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 col1, ( - col0 ) AS col1 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT COUNT( * ) * - 53 AS col2 FROM tab2 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-980
SELECT COUNT ( * ) * - 53 AS col2 FROM tab2 AS cor0
----
-159

query I rowsort
SELECT col0 + - + col2 AS col0 FROM tab2 AS cor0 WHERE NOT - 87 * + + col1 IS NULL
----
17
23
24

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 - - col0 * + - col1 * 55 IS NOT NULL AND NULL IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT + col2 * + + col2 FROM tab2
----
1600
3364
529

query I rowsort
SELECT 94 + - 74 AS col2 FROM tab1 AS cor0
----
20
20
20

onlyif mysql # DIV for integer division: 
query II rowsort label-986
SELECT - - col1 + + - 33 AS col2, - col2 DIV + col1 FROM tab0 AS cor0
----
-12
0
-32
-99
48
0

skipif mysql # not compatible
query II rowsort label-986
SELECT - - col1 + + - 33 AS col2, - col2 / + col1 FROM tab0 AS cor0
----
-12
0
-32
-99
48
0

query I rowsort
SELECT ALL + ( + + col1 ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-988
SELECT + col1 + col0 DIV - col1 AS col1 FROM tab1 cor0
----
-12
11
46

skipif mysql # not compatible
query I rowsort label-988
SELECT + col1 + col0 / - col1 AS col1 FROM tab1 cor0
----
-12
11
46

query I rowsort
SELECT - - col1 * - + col0 - - col0 * + + ( 24 ) + - 49 FROM tab2 AS cor0
----
-1291
-3274
-3441

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-991
SELECT col2, CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE ( + col2 IS NULL )
----

skipif mysql # not compatible
query II rowsort label-991
SELECT col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE ( + col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT MAX( ALL - col2 ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-992
SELECT MAX ( ALL - col2 ) AS col1 FROM tab1
----
-59

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

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

query I rowsort
SELECT - col0 + - 64 AS col2 FROM tab2 AS cor0
----
-110
-128
-139

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-996
SELECT + - 73 + - - COUNT ( * ) col0 FROM tab0 AS cor0
----
-70

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

query I rowsort
SELECT DISTINCT + col1 * - + col2 + - col1 FROM tab2 AS cor0
----
-1224
-3157
-3953

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-999
SELECT ALL + 84 - 48 + - COUNT( + - CAST( - ( col0 ) AS SIGNED ) ) AS col0 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-999
SELECT ALL + 84 - 48 + - COUNT ( + - CAST ( - ( col0 ) AS INTEGER ) ) AS col0 FROM tab1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1000
SELECT DISTINCT + 40 + + + col1 DIV + col1 + 92 col0 FROM tab1
----
133

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1000
SELECT DISTINCT + 40 + + + col1 / + col1 + 92 col0 FROM tab1
----
133

query I rowsort
SELECT col0 + + + 9 * 62 AS col1 FROM tab1
----
609
643
649

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT ( - - ( - + COUNT( * ) ) ) * - 9 FROM tab1, tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1002
SELECT ( - - ( - + COUNT ( * ) ) ) * - 9 FROM tab1, tab2 AS cor0
----
81

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

skipif mysql # not compatible
query I rowsort label-1003
SELECT ALL - SUM ( DISTINCT - col2 ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT ALL 72 * + - col2 * + col2 FROM tab1 AS cor0
----
-250632
-332928
-663552

query I rowsort
SELECT DISTINCT - + col2 * + col2 * + 91 AS col0 FROM tab1 AS cor0
----
-316771
-420784
-838656

onlyif mysql # aggregate syntax: 
query II rowsort label-1006
SELECT 51 AS col2, SUM( ALL - + 58 ) FROM tab1 AS cor0
----
51
-174

skipif mysql # not compatible
query II rowsort label-1006
SELECT 51 AS col2, SUM ( ALL - + 58 ) FROM tab1 AS cor0
----
51
-174

query I rowsort
SELECT DISTINCT - 79 + col2 + ( + 85 ) AS col0 FROM tab2 AS cor0
----
29
46
64

query I rowsort
SELECT DISTINCT + - 3 * - + col2 AS col2 FROM tab0 AS cor0
----
141
297
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1009
SELECT DISTINCT - COUNT( * ) DIV MAX( DISTINCT + col1 ) * - 30 AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1009
SELECT DISTINCT - COUNT ( * ) / MAX ( DISTINCT + col1 ) * - 30 AS col0 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1010
SELECT DISTINCT COUNT( * ), - COUNT( * ) + COUNT( DISTINCT + 3 ) AS col0 FROM tab0
----
3
-2

skipif mysql # not compatible
query II rowsort label-1010
SELECT DISTINCT COUNT ( * ), - COUNT ( * ) + COUNT ( DISTINCT + 3 ) AS col0 FROM tab0
----
3
-2

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

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

query II rowsort
SELECT ALL 97 AS col0, + 28 * + col1 * + col1 + 5 FROM tab0
----
97
12353
97
183713
97
33

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

skipif mysql # not compatible
query I rowsort label-1013
SELECT DISTINCT + 83 * - COUNT ( * ) FROM tab2
----
-249

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

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

query II rowsort
SELECT DISTINCT col2, + col0 * - col0 FROM tab2
----
23
-2116
40
-4096
58
-5625

onlyif mysql # DIV for integer division: 
query I rowsort label-1016
SELECT 41 DIV + 13 AS col2 FROM tab0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-1016
SELECT 41 / + 13 AS col2 FROM tab0
----
3
3
3

query I rowsort
SELECT ALL + col2 * + - 75 FROM tab1
----
-4425
-5100
-7200

query I rowsort
SELECT DISTINCT + 56 * + col1 * + 45 AS col1 FROM tab0
----
204120
2520
52920

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1019
SELECT DISTINCT * FROM tab0 WHERE NOT 84 * - - col0 + + + CAST( 70 AS DECIMAL ) <= ( + 5 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1019
SELECT DISTINCT * FROM tab0 WHERE NOT 84 * - - col0 + + + CAST ( 70 AS REAL ) <= ( + 5 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 * - + col0 = - col0 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 + + - col0 AS col1 FROM tab1 AS cor0
----
-23
-26
45

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + + col1 IS NOT NULL AND NOT - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1023
SELECT - 83 + - 65 + - + col1 DIV + - col1 + + col2 FROM tab0
----
-100
-137
-48

skipif mysql # not compatible
query I rowsort label-1023
SELECT - 83 + - 65 + - + col1 / + - col1 + + col2 FROM tab0
----
-100
-137
-48

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

query I rowsort
SELECT - 54 * - - 4 FROM tab1 AS cor0
----
-216
-216
-216

query I rowsort
SELECT DISTINCT - 66 * - ( ( + + col0 ) ) AS col0 FROM tab1 AS cor0
----
3366
5610
6006

query I rowsort
SELECT 20 + col1 AS col0 FROM tab2 AS cor0 WHERE - - 79 NOT BETWEEN NULL AND + - 5 OR NULL IN ( - col0, + col1 * - col2, col1 * col0, + col0, - col0 )
----
71
87
97

query II rowsort
SELECT col0 * - + col0, + col1 AS col2 FROM tab1 AS cor0
----
-2601
14
-7225
5
-8281
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT + SUM( 14 ) FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-1029
SELECT + SUM ( 14 ) FROM tab1 AS cor0
----
42

query I rowsort
SELECT ALL - 24 FROM tab2 WHERE + ( - col1 ) IS NULL
----

query II rowsort
SELECT 27 AS col0, col2 AS col2 FROM tab2
----
27
23
27
40
27
58

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - 45 <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1034
SELECT - col2 AS col0, + col2 DIV col2 FROM tab0 cor0
----
-10
1
-47
1
-99
1

skipif mysql # not compatible
query II rowsort label-1034
SELECT - col2 AS col0, + col2 / col2 FROM tab0 cor0
----
-10
1
-47
1
-99
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 12 * - - 82 * + col2 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - col2 * + col2, 81 AS col1 FROM tab2
----
-1600
81
-3364
81
-529
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1040
SELECT - CAST( + - COUNT( * ) AS SIGNED ) * + 83 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
747

skipif mysql # not compatible
query I rowsort label-1040
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) * + 83 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
747

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT DISTINCT + + MAX( ALL - col1 ) FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT + + MAX ( ALL - col1 ) FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1044
SELECT ALL * FROM tab0 cor0 WHERE ( - 88 ) * - - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1044
SELECT ALL * FROM tab0 cor0 WHERE ( - 88 ) * - - CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * + col0 + - - 43 FROM tab0 AS cor0
----
748
913
9646

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 30 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1047
SELECT ALL - CAST( NULL AS SIGNED ) * col0 / ( - 36 ) + + + ( + 81 ) + - + col2 * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 / ( - 36 ) + + + ( + 81 ) + - + col2 * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1048
SELECT DISTINCT col2 DIV col2 + - + col0 + - 64 FROM tab2 AS cor0
----
-109
-127
-138

skipif mysql # not compatible
query I rowsort label-1048
SELECT DISTINCT col2 / col2 + - + col0 + - 64 FROM tab2 AS cor0
----
-109
-127
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT ALL COUNT( * ) + - SUM( ALL + + ( - col1 ) ) AS col1 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL COUNT ( * ) + - SUM ( ALL + + ( - col1 ) ) AS col1 FROM tab2
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1050
SELECT + CAST( - + col1 AS SIGNED ) + + - 44 AS col0, - 42 AS col1 FROM tab1
----
-49
-42
-58
-42
-91
-42

skipif mysql # not compatible
query II rowsort label-1050
SELECT + CAST ( - + col1 AS INTEGER ) + + - 44 AS col0, - 42 AS col1 FROM tab1
----
-49
-42
-58
-42
-91
-42

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

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

skipif mysql # not compatible
query I rowsort label-1052
SELECT DISTINCT col1 / - 46 AS col2 FROM tab2
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 + - - 36 + - col0 col1 FROM tab1
----
-102
-62
-96

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

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

query I rowsort
SELECT - 61 + + col1 * ( ( 13 ) ) FROM tab0
----
-48
212
992

query I rowsort
SELECT - + col2 + - col2 * 95 - - col2 FROM tab1 cor0
----
-5605
-6460
-9120

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1059
SELECT ALL - 57 - ( - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL - 57 - ( - CAST ( NULL AS REAL ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - + 96 AS col2 FROM tab1 AS cor0
----
-11
-45
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT DISTINCT 76 * + - COUNT( * ) - - 38 * - - COUNT( * ) FROM tab2 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-1061
SELECT DISTINCT 76 * + - COUNT ( * ) - - 38 * - - COUNT ( * ) FROM tab2 AS cor0
----
-114

query II rowsort
SELECT DISTINCT + + col1, 95 FROM tab1 AS cor0
----
14
95
47
95
5
95

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1064
SELECT + + CAST( - MIN( + col0 ) AS SIGNED ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1064
SELECT + + CAST ( - MIN ( + col0 ) AS INTEGER ) FROM tab1 cor0
----
-51

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

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

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

query II rowsort
SELECT - 11 AS col2, + 7 + - 53 * + + 55 * + 25 + - + 26 AS col1 FROM tab1 AS cor0
----
-11
-72894
-11
-72894
-11
-72894

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * + - 1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT MAX( col0 ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1069
SELECT MAX ( col0 ) AS col2 FROM tab2
----
75

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 >= NULL
----

query I rowsort
SELECT DISTINCT 54 + - 74 AS col2 FROM tab2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT COUNT( * ) * 28 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-1074
SELECT COUNT ( * ) * 28 FROM tab0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT + 32 + - COUNT( * ) AS col1 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-1075
SELECT + 32 + - COUNT ( * ) AS col1 FROM tab1
----
29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1076
SELECT CAST( NULL AS DECIMAL ) + + - 54 - col1 * + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1076
SELECT CAST ( NULL AS REAL ) + + - 54 - col1 * + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 93 <> col1 * - - 45 + - 12
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NULL > col0 + + col0
----

query I rowsort
SELECT + 98 + + 1 FROM tab1 cor0
----
99
99
99

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT 51 + + col2 * - 83 FROM tab0
----
-3850
-779
-8166

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 56 * + col0 col1 FROM tab2
----
2576
3584
4200

query I rowsort
SELECT ALL col2 + + - col1 FROM tab0
----
-11
-34
98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT 84 * COUNT( * ) * - - MIN( ALL + + col0 ) AS col2 FROM tab1
----
12852

skipif mysql # not compatible
query I rowsort label-1087
SELECT 84 * COUNT ( * ) * - - MIN ( ALL + + col0 ) AS col2 FROM tab1
----
12852

query I rowsort
SELECT ALL col1 * + col0 - + 53 AS col1 FROM tab1
----
372
4224
661

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1090
SELECT DISTINCT 24 DIV - col1 AS col2 FROM tab1
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-1090
SELECT DISTINCT 24 / - col1 AS col2 FROM tab1
----
-1
-4
0

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

query I rowsort
SELECT ALL col2 + - - 63 FROM tab1
----
122
131
159

query II rowsort
SELECT + col0 * - 18 AS col1, col1 * - col0 - + col2 AS col1 FROM tab1
----
-1530
-484
-1638
-4345
-918
-810

query I rowsort
SELECT - col0 FROM tab1 WHERE NULL BETWEEN + ( - 63 ) * 17 + + - col2 AND + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 28 col0 FROM tab0
----
2268
28
588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1096
SELECT ALL + MAX( DISTINCT - CAST( col1 AS SIGNED ) ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-1096
SELECT ALL + MAX ( DISTINCT - CAST ( col1 AS INTEGER ) ) AS col0 FROM tab2
----
-51

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

query I rowsort
SELECT - + col2 FROM tab1 WHERE - 63 BETWEEN col0 + - 79 AND + ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT ALL 43 + COUNT( * ) FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL 43 + COUNT ( * ) FROM tab0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 * - + 64 * - - 76 - + + 59 col1 FROM tab2
----
-282171

query I rowsort
SELECT DISTINCT + 58 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
58

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

skipif mysql # not compatible
query II rowsort label-1102
SELECT DISTINCT + - 6, COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-6
9

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

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

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

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

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

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

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

query I rowsort
SELECT - 94 * col2 + - - ( - col0 ) AS col1 FROM tab1 AS cor0
----
-5631
-6483
-9075

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1112
SELECT - col0 DIV col0 - col2 AS col2 FROM tab0 AS cor0
----
-100
-11
-48

skipif mysql # not compatible
query I rowsort label-1112
SELECT - col0 / col0 - col2 AS col2 FROM tab0 AS cor0
----
-100
-11
-48

query I rowsort
SELECT + + 58 * - + 1 * - col0 * - 51 FROM tab1 AS cor0
----
-150858
-251430
-269178

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT + 95 * - COUNT( * ) AS col1 FROM tab1
----
-285

skipif mysql # not compatible
query I rowsort label-1115
SELECT + 95 * - COUNT ( * ) AS col1 FROM tab1
----
-285

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

skipif mysql # not compatible
query I rowsort label-1116
SELECT DISTINCT CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT MAX( ALL - col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-1118
SELECT MAX ( ALL - col0 ) AS col1 FROM tab1
----
-51

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1120
SELECT ALL col1 DIV 55 * + 34 FROM tab2
----
0
34
34

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL col1 / 55 * + 34 FROM tab2
----
0
34
34

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

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

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

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

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

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

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

query I rowsort
SELECT - 95 FROM tab2 WHERE 62 IS NOT NULL
----
-95
-95
-95

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

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

query I rowsort
SELECT ALL ( + col1 ) * - 83 + + + col2 + + - col2 FROM tab0
----
-1743
-6723
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT ALL + SUM( 31 ) FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL + SUM ( 31 ) FROM tab2 AS cor0
----
93

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1130
SELECT SUM( ALL CAST( col0 AS SIGNED ) ) + + - 98 AS col1 FROM tab1 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-1130
SELECT SUM ( ALL CAST ( col0 AS INTEGER ) ) + + - 98 AS col1 FROM tab1 AS cor0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT DISTINCT + 4 + + COUNT( * ) FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-1131
SELECT DISTINCT + 4 + + COUNT ( * ) FROM tab2 AS cor0
----
7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT ALL + 33 + + MAX( DISTINCT - col1 ) + + 6 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-1133
SELECT ALL + 33 + + MAX ( DISTINCT - col1 ) + + 6 FROM tab2
----
-12

query I rowsort
SELECT 12 * - col0 * + + col0 AS col0 FROM tab2
----
-25392
-49152
-67500

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

query I rowsort
SELECT 61 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1140
SELECT ALL - - CAST( + 64 AS SIGNED ) * 34 * - col1 AS col2 FROM tab2 AS cor0
----
-110976
-145792
-167552

skipif mysql # not compatible
query I rowsort label-1140
SELECT ALL - - CAST ( + 64 AS INTEGER ) * 34 * - col1 AS col2 FROM tab2 AS cor0
----
-110976
-145792
-167552

query I rowsort
SELECT DISTINCT + 30 * + col0 AS col2 FROM tab0 AS cor0
----
2610
2910
450

query I rowsort
SELECT DISTINCT + ( - - ( + ( col0 ) ) ) * + 50 AS col1 FROM tab1 AS cor0
----
2550
4250
4550

onlyif mysql # DIV for integer division: 
query I rowsort label-1143
SELECT ALL ( - col2 ) DIV - - col1 + + 78 + - col2 FROM tab1 AS cor0
----
-24
8
9

skipif mysql # not compatible
query I rowsort label-1143
SELECT ALL ( - col2 ) / - - col1 + + 78 + - col2 FROM tab1 AS cor0
----
-24
8
9

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

skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL + COUNT ( DISTINCT ( - col0 ) ) / + MIN ( DISTINCT - 12 ) AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 52 <= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - col2 ) * 16 AS col0 FROM tab0
----
-1584
-160
-752

query II rowsort
SELECT DISTINCT - col2 AS col0, - 32 AS col2 FROM tab1
----
-59
-32
-68
-32
-96
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-1148
SELECT col0 DIV + + col2 AS col2 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-1148
SELECT col0 / + + col2 AS col2 FROM tab0
----
0
0
8

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

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

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

query I rowsort
SELECT - 26 * - 18 AS col1 FROM tab1
----
468
468
468

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1152
SELECT ALL col2 * + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL col2 * + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1154
SELECT DISTINCT + col0 AS col0, 38 * + - col0 + + col2 * 94 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query II rowsort label-1154
SELECT DISTINCT + col0 AS col0, 38 * + - col0 + + col2 * 94 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 2 <= - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT 76 * COUNT( * ) + - 40 * - - COUNT( * ) AS col1 FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-1157
SELECT 76 * COUNT ( * ) + - 40 * - - COUNT ( * ) AS col1 FROM tab0
----
108

query II rowsort
SELECT DISTINCT + 5, col1 - + + col2 AS col1 FROM tab2
----
5
28
5
37
5
9

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1161
SELECT ALL - + CAST( - col0 AS SIGNED ) FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL - + CAST ( - col0 AS INTEGER ) FROM tab2 cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT ALL + COUNT( * ) + + - 95 AS col0 FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL + COUNT ( * ) + + - 95 AS col0 FROM tab1 AS cor0
----
-92

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN NULL AND col0
----
46
51
23
64
77
40

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

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

query II rowsort
SELECT + 10, col2 + + - ( + col2 ) AS col1 FROM tab1 AS cor0
----
10
0
10
0
10
0

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

skipif mysql # not compatible
query II rowsort label-1168
SELECT + COUNT ( * ), MIN ( - 53 ) AS col1 FROM tab2 AS cor0
----
3
-53

query I rowsort
SELECT DISTINCT col1 * + + 11 - - 92 + + 48 AS col2 FROM tab1
----
195
294
657

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

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

query I rowsort
SELECT ALL 27 * 37 * - + 94 FROM tab0 cor0
----
-93906
-93906
-93906

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

query I rowsort
SELECT 78 * col0 AS col0 FROM tab2
----
3588
4992
5850

onlyif mysql # aggregate syntax: 
query II rowsort label-1174
SELECT DISTINCT COUNT( * ) col0, 31 FROM tab2
----
3
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1174
SELECT DISTINCT COUNT ( * ) col0, 31 FROM tab2
----
3
31

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1176
SELECT ALL - 27 AS col1, - 44 - + 26 DIV + col2 AS col0 FROM tab0
----
-27
-44
-27
-44
-27
-46

skipif mysql # not compatible
query II rowsort label-1176
SELECT ALL - 27 AS col1, - 44 - + 26 / + col2 AS col0 FROM tab0
----
-27
-44
-27
-44
-27
-46

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

query I rowsort
SELECT ALL + col1 * 73 AS col2 FROM tab1 AS cor0
----
1022
3431
365

query I rowsort
SELECT col1 * + + 33 FROM tab1 AS cor0
----
1551
165
462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 60 * + col0 * + + 34, col1 * col2 col1 FROM tab0 AS cor0
----
177480
210
197880
99
30600
3807

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT COUNT( * ) * - MIN( ALL - ( 83 ) ) FROM tab1 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-1182
SELECT COUNT ( * ) * - MIN ( ALL - ( 83 ) ) FROM tab1 AS cor0
----
249

onlyif mysql # DIV for integer division: 
query I rowsort label-1183
SELECT col1 * 95 * col0 DIV - 15 FROM tab1 AS cor0
----
-2691
-27087
-4522

skipif mysql # not compatible
query I rowsort label-1183
SELECT col1 * 95 * col0 / - 15 FROM tab1 AS cor0
----
-2691
-27087
-4522

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1186
SELECT + MAX( col2 ) FROM tab1 WHERE NOT + + col1 = + CAST( + 32 AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-1186
SELECT + MAX ( col2 ) FROM tab1 WHERE NOT + + col1 = + CAST ( + 32 AS INTEGER )
----
96

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1188
SELECT DISTINCT - ( + col1 ) + - col1 AS col1, - 41 AS col0 FROM tab1 WHERE NOT col1 * - 57 + - col2 + - col2 <> CAST( + + col1 AS SIGNED ) + col2
----

skipif mysql # not compatible
query II rowsort label-1188
SELECT DISTINCT - ( + col1 ) + - col1 AS col1, - 41 AS col0 FROM tab1 WHERE NOT col1 * - 57 + - col2 + - col2 <> CAST ( + + col1 AS INTEGER ) + col2
----

query I rowsort
SELECT ALL + col1 * - 9 * 1 FROM tab0 AS cor0
----
-189
-729
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT COUNT( * ) + 28 AS col0 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-1190
SELECT COUNT ( * ) + 28 AS col0 FROM tab1 AS cor0
----
31

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1191
SELECT + + MAX ( DISTINCT - 83 ) col2, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-83
-3

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT - 42 - + ( - SUM( ALL + col0 ) ) FROM tab2 AS cor0
----
143

skipif mysql # not compatible
query I rowsort label-1195
SELECT - 42 - + ( - SUM ( ALL + col0 ) ) FROM tab2 AS cor0
----
143

query II rowsort
SELECT col2 - - col1 + + col0 * ( col2 ), col2 FROM tab1 AS cor0
----
5006
96
5079
59
6303
68

query I rowsort
SELECT col1 - - + col1 FROM tab2 cor0
----
102
134
154

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

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

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

query I rowsort
SELECT + col0 * - 32 + + col0 + + col2 FROM tab2 AS cor0
----
-1403
-1944
-2267

query I rowsort
SELECT DISTINCT col2 - 71 AS col1 FROM tab2
----
-13
-31
-48

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

query III rowsort
SELECT * FROM tab0 WHERE + 64 > ( + col2 )
----
15
81
47
87
21
10

query I rowsort
SELECT ALL col1 - - + col0 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT MIN( DISTINCT + - ( + 33 ) ) AS col0 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-1205
SELECT MIN ( DISTINCT + - ( + 33 ) ) AS col0 FROM tab0
----
-33

query I rowsort
SELECT ALL - col1 + + 15 + + + 69 AS col2 FROM tab1
----
37
70
79

query I rowsort
SELECT DISTINCT + 70 * - - col1 - + col0 AS col0 FROM tab0
----
-27
1383
5655

query I rowsort
SELECT DISTINCT + 93 * + col0 FROM tab0 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + 81 * col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1210
SELECT 68 AS col0, COUNT( + col0 ) FROM tab1 AS cor0
----
68
3

skipif mysql # not compatible
query II rowsort label-1210
SELECT 68 AS col0, COUNT ( + col0 ) FROM tab1 AS cor0
----
68
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1212
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT - 62 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-62

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1215
SELECT CAST ( + col1 AS INTEGER ) col0 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT - col1 <= NULL
----

query I rowsort
SELECT col2 * - col0 * + 2 * + col1 FROM tab2 AS cor0
----
-107916
-394240
-582900

onlyif mysql # aggregate syntax: 
query II rowsort label-1218
SELECT ALL - + MIN( + col2 ) AS col0, + 5 * - + 53 * - 69 FROM tab2 AS cor0
----
-23
18285

skipif mysql # not compatible
query II rowsort label-1218
SELECT ALL - + MIN ( + col2 ) AS col0, + 5 * - + 53 * - 69 FROM tab2 AS cor0
----
-23
18285

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT ALL - 5 * 46 * COUNT( * ) FROM tab0 AS cor0
----
-690

skipif mysql # not compatible
query I rowsort label-1219
SELECT ALL - 5 * 46 * COUNT ( * ) FROM tab0 AS cor0
----
-690

query I rowsort
SELECT ALL + 51 + - col0 * - + col0 FROM tab1 AS cor0
----
2652
7276
8332

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 29 <= - 71
----

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

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

query I rowsort
SELECT ( - 5 ) FROM tab2
----
-5
-5
-5

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 50 ) col0 FROM tab0
----
-50
-50
-50

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

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( col1, 71 - + + 43 * - col1 )
----

query I rowsort
SELECT DISTINCT - ( + col0 ) * + col1 + + col2 + col0 FROM tab1 AS cor0
----
-281
-4118
-567

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * + + 99 * - - 23 + + col1 * 15 * - col2 > - col1
----

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT ( NULL ) >= NULL
----

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

query I rowsort
SELECT col0 / - col2 FROM tab1 WHERE ( NULL ) >= ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT COUNT( * ) + - 99 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-1233
SELECT COUNT ( * ) + - 99 FROM tab2
----
-96

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1235
SELECT col0 + CAST( + 36 AS SIGNED ) AS col0 FROM tab1
----
121
127
87

skipif mysql # not compatible
query I rowsort label-1235
SELECT col0 + CAST ( + 36 AS INTEGER ) AS col0 FROM tab1
----
121
127
87

query I rowsort
SELECT ALL col0 * + ( ( - 11 ) ) AS col2 FROM tab2
----
-506
-704
-825

query I rowsort
SELECT 15 * + col2 AS col2 FROM tab0
----
1485
150
705

query I rowsort
SELECT + col0 * - col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-225
-7569
-9409

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

skipif mysql # not compatible
query I rowsort label-1239
SELECT + COUNT ( * ) FROM tab1 WHERE + col2 * + col1 NOT IN ( + 98 )
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1240
SELECT - 23 + + 94 AS col2 FROM tab1 WHERE + CAST( 68 AS DECIMAL ) + + col0 NOT IN ( ( + col0 ) + - col0 )
----
71
71
71

skipif mysql # not compatible
query I rowsort label-1240
SELECT - 23 + + 94 AS col2 FROM tab1 WHERE + CAST ( 68 AS REAL ) + + col0 NOT IN ( ( + col0 ) + - col0 )
----
71
71
71

query I rowsort
SELECT col2 * 17 FROM tab0 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1242
SELECT DISTINCT - col2 DIV 63 col2 FROM tab0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1242
SELECT DISTINCT - col2 / 63 col2 FROM tab0
----
-1
0

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

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

query I rowsort
SELECT 88 + col1 * + 80 FROM tab1
----
1208
3848
488

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

query III rowsort
SELECT * FROM tab2 WHERE ( col0 ) >= ( + col1 )
----
75
67
58

query I rowsort
SELECT ALL + 44 AS col2 FROM tab1
----
44
44
44

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 ) BETWEEN col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 + - 23 FROM tab2
----
28
44
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 + col0 col0 FROM tab1
----
113
147
153

onlyif mysql # DIV for integer division: 
query I rowsort label-1252
SELECT + 53 DIV + 82 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1252
SELECT + 53 / + 82 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1253
SELECT DISTINCT - 74 AS col0 FROM tab0 WHERE ( + 30 * CAST( NULL AS DECIMAL ) ) IS NULL
----
-74

skipif mysql # not compatible
query I rowsort label-1253
SELECT DISTINCT - 74 AS col0 FROM tab0 WHERE ( + 30 * CAST ( NULL AS REAL ) ) IS NULL
----
-74

query I rowsort
SELECT ALL col2 * col0 AS col0 FROM tab1 WHERE - 21 IS NOT NULL
----
4896
5015
6188

query I rowsort
SELECT ALL + 16 * col1 + 71 AS col1 FROM tab0
----
1367
407
87

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

skipif mysql # not compatible
query I rowsort label-1256
SELECT DISTINCT - SUM ( ALL - col0 ) AS col2 FROM tab1 WHERE - 25 + + col0 IS NULL
----
NULL

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

query I rowsort
SELECT 23 + col2 AS col0 FROM tab0
----
122
33
70

query I rowsort
SELECT col1 + - 35 * 16 FROM tab1
----
-513
-546
-555

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 9 col2 FROM tab1
----
100
60
94

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN + 0 * - 44 AND col0 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT + COUNT( 76 ) FROM tab2 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1263
SELECT + COUNT ( 76 ) FROM tab2 WHERE NOT col1 IS NOT NULL
----
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 81 ) * 11 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN 26 AND ( + col2 * + 58 + + col1 * col0 )
----

query I rowsort
SELECT DISTINCT + - 46 * - 29 AS col2 FROM tab2 AS cor0
----
1334

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1270
SELECT ( COUNT( DISTINCT CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT + ( 76 ) * - MIN( col1 ) FROM tab1 AS cor0
----
-380

skipif mysql # not compatible
query I rowsort label-1272
SELECT + ( 76 ) * - MIN ( col1 ) FROM tab1 AS cor0
----
-380

query I rowsort
SELECT DISTINCT col0 + 93 AS col2 FROM tab1 AS cor0
----
144
178
184

query I rowsort
SELECT ALL 76 * col1 + col0 AS col1 FROM tab1
----
1115
3663
465

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

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

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

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

query I rowsort
SELECT DISTINCT + 97 * 54 * + 31 AS col0 FROM tab2
----
162378

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= - col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT - 56 * COUNT( * ) FROM tab1 WHERE - col2 IS NOT NULL
----
-168

skipif mysql # not compatible
query I rowsort label-1281
SELECT - 56 * COUNT ( * ) FROM tab1 WHERE - col2 IS NOT NULL
----
-168

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1284
SELECT DISTINCT col0 + 29 AS col0 FROM tab1 cor0 WHERE NOT + col1 DIV + 54 NOT IN ( - col2 DIV col0 )
----
114
120

skipif mysql # not compatible
query I rowsort label-1284
SELECT DISTINCT col0 + 29 AS col0 FROM tab1 cor0 WHERE NOT + col1 / + 54 NOT IN ( - col2 / col0 )
----
114
120

onlyif mysql # DIV for integer division: 
query I rowsort label-1285
SELECT - 50 DIV col2 col0 FROM tab2 cor0
----
-1
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1285
SELECT - 50 / col2 col0 FROM tab2 cor0
----
-1
-2
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1286
SELECT DISTINCT - - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) + + 46 * 10 AS col0 FROM tab1 cor0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT 25 * 8 + COUNT( * ) * 78 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
902

skipif mysql # not compatible
query I rowsort label-1288
SELECT 25 * 8 + COUNT ( * ) * 78 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
902

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( 18 )
----

query I rowsort
SELECT ALL + col2 - - 63 * 15 * col0 FROM tab1
----
48291
80384
86063

query I rowsort
SELECT col1 - - col0 * 26 AS col1 FROM tab2
----
1247
1741
2017

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

query I rowsort
SELECT - col0 * - - col1 - - 96 AS col2 FROM tab1 AS cor0
----
-329
-4181
-618

query I rowsort
SELECT DISTINCT - col0 - + ( + col1 ) FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT DISTINCT + 71 + - COUNT( ALL col2 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col1 AND NULL
----
71

skipif mysql # not compatible
query I rowsort label-1295
SELECT DISTINCT + 71 + - COUNT ( ALL col2 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col1 AND NULL
----
71

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 87 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1297
SELECT ALL + 40 * - col1 DIV + col1 FROM tab0 AS cor0
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL + 40 * - col1 / + col1 FROM tab0 AS cor0
----
-40
-40
-40

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 47 NOT IN ( - col2 )
----
15
81
47

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

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

query I rowsort
SELECT DISTINCT 72 * col1 AS col0 FROM tab0 AS cor0
----
1512
5832
72

onlyif mysql # DIV for integer division: 
query I rowsort label-1301
SELECT + - col1 DIV + ( - 44 ) FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1301
SELECT + - col1 / + ( - 44 ) FROM tab2 AS cor0
----
1
1
1

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - 55 BETWEEN NULL AND NULL
----

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1307
SELECT DISTINCT + - COUNT( * ) * AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1307
SELECT DISTINCT + - COUNT ( * ) * AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NULL IS NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT DISTINCT 49 * COUNT( * ) FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-1309
SELECT DISTINCT 49 * COUNT ( * ) FROM tab1
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1310
SELECT 86 + - 57 / + col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN col1 AND - 50 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1310
SELECT 86 + - 57 / + col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN col1 AND - 50 * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT ( + 0 ) FROM tab2
----
0

query I rowsort
SELECT col0 * 97 FROM tab1
----
4947
8245
8827

query I rowsort
SELECT ALL + - 28 AS col0 FROM tab1 AS cor0
----
-28
-28
-28

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN - + 47 AND 11
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - 25 * - col2 * - col0 ) NOT BETWEEN ( 92 ) AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT ALL + SUM( ALL 38 ) AS col0 FROM tab1 cor0
----
114

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL + SUM ( ALL 38 ) AS col0 FROM tab1 cor0
----
114

query I rowsort
SELECT DISTINCT + 96 + + 37 AS col2 FROM tab0 AS cor0
----
133

query I rowsort
SELECT DISTINCT - 67 FROM tab2 AS cor0 WHERE ( 63 + + 28 ) IN ( col1 * 69 )
----

query I rowsort
SELECT ALL - col0 - - - 4 AS col2 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-101
-19
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-1322
SELECT DISTINCT - - col2 DIV - 87 + + col2 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1322
SELECT DISTINCT - - col2 / - 87 + + col2 FROM tab2 cor0
----
23
40
58

query III rowsort
SELECT * FROM tab1 WHERE + col2 BETWEEN + 31 * col2 - - 46 AND ( - col2 + col1 / - col1 )
----

query I rowsort
SELECT DISTINCT + col1 + ( + - 90 ) * + 44 - col2 FROM tab1
----
-3981
-4014
-4042

query II rowsort
SELECT ALL + col0 AS col0, + col2 - col0 FROM tab0
----
15
32
87
-77
97
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1326
SELECT DISTINCT col0 DIV - col2 + - col2 AS col2 FROM tab0
----
-18
-47
-99

skipif mysql # not compatible
query I rowsort label-1326
SELECT DISTINCT col0 / - col2 + - col2 AS col2 FROM tab0
----
-18
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1327
SELECT CAST( + - MAX( - ( - - col1 ) ) AS SIGNED ) col1 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1327
SELECT CAST ( + - MAX ( - ( - - col1 ) ) AS INTEGER ) col1 FROM tab1
----
5

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1329
SELECT ALL - 69 DIV + 2 + + - 34 + + MIN( col0 ) + + COUNT( * ) FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL - 69 / + 2 + + - 34 + + MIN ( col0 ) + + COUNT ( * ) FROM tab2
----
-19

query I rowsort
SELECT DISTINCT col0 - + 33 FROM tab2
----
13
31
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1331
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 / + CAST( - 89 AS SIGNED ) - + CAST( NULL AS SIGNED ) ) NOT IN ( 84 / col2 )
----

skipif mysql # not compatible
query III rowsort label-1331
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 / + CAST ( - 89 AS INTEGER ) - + CAST ( NULL AS INTEGER ) ) NOT IN ( 84 / col2 )
----

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

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

query I rowsort
SELECT 23 FROM tab0 AS cor0 WHERE col2 * ( + 17 ) >= + col0 + 61 - 19
----
23
23
23

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

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

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

query II rowsort
SELECT DISTINCT col1 + - 77, - col0 AS col2 FROM tab2
----
-10
-75
-26
-46
0
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1337
SELECT - 6 * + MIN( - col2 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1337
SELECT - 6 * + MIN ( - col2 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 32 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1339
SELECT ALL * FROM tab1 WHERE + 57 * + CAST( - + ( ( + col0 ) ) AS SIGNED ) + CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND col2
----

skipif mysql # not compatible
query III rowsort label-1339
SELECT ALL * FROM tab1 WHERE + 57 * + CAST ( - + ( ( + col0 ) ) AS INTEGER ) + CAST ( NULL AS REAL ) NOT BETWEEN NULL AND col2
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1341
SELECT + col0 * CAST( + 49 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
2499
4165
4459

skipif mysql # not compatible
query I rowsort label-1341
SELECT + col0 * CAST ( + 49 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
2499
4165
4459

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1342
SELECT + col0 DIV - 89 - - + 10 + - CAST( + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-41
-75
-82

skipif mysql # not compatible
query I rowsort label-1342
SELECT + col0 / - 89 - - + 10 + - CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-41
-75
-82

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 65 / - + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + ( + - col2 ) * 91 + + ( + col1 ) FROM tab0
----
-4196
-889
-9008

query I rowsort
SELECT col0 * + + col2 AS col1 FROM tab2
----
1058
2560
4350

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

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

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

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

query I rowsort
SELECT - col2 + - col1 + + col0 FROM tab0 AS cor0
----
-113
-3
56

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 84 + + 29 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT + 85 + col2 FROM tab0 WHERE NOT - + col0 IN ( 77, col2 )
----
132
184
95

query I rowsort
SELECT ALL col0 * + ( 9 ) FROM tab1
----
459
765
819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - + ( + col0 ) ) * + 4 + + col0 col0 FROM tab1 cor0
----
255
425
455

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 + 95 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-1356
SELECT DISTINCT + - 51 * CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - ( col0 ) * + - col2 + - 30 col0 FROM tab2 AS cor0
----
1079
2607
4387

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT 5 / + 96 NOT BETWEEN + - col2 AND ( + + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 5 / + 96 NOT BETWEEN + - col2 AND ( + + col1 )
----
3

query I rowsort
SELECT DISTINCT + 59 + + col1 + - 66 FROM tab1 AS cor0
----
-2
40
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT ALL SUM( - col0 ) * - 74 + - COUNT( * ) + + 92 AS col2 FROM tab1 AS cor0
----
16887

skipif mysql # not compatible
query I rowsort label-1361
SELECT ALL SUM ( - col0 ) * - 74 + - COUNT ( * ) + + 92 AS col2 FROM tab1 AS cor0
----
16887

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1362
SELECT ALL + CAST( + col0 AS SIGNED ) + col0 AS col1 FROM tab2
----
128
150
92

skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL + CAST ( + col0 AS INTEGER ) + col0 AS col1 FROM tab2
----
128
150
92

query I rowsort
SELECT ALL + 1 + + col1 AS col2 FROM tab1
----
15
48
6

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

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

query I rowsort
SELECT col2 + + + 74 FROM tab2
----
114
132
97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1367
SELECT col2 DIV + - col0 + 20 AS col1 FROM tab0
----
17
19
20

skipif mysql # not compatible
query I rowsort label-1367
SELECT col2 / + - col0 + 20 AS col1 FROM tab0
----
17
19
20

onlyif mysql # DIV for integer division: 
query I rowsort label-1368
SELECT - 92 DIV - + col1 AS col1 FROM tab1 AS cor0
----
1
18
6

skipif mysql # not compatible
query I rowsort label-1368
SELECT - 92 / - + col1 AS col1 FROM tab1 AS cor0
----
1
18
6

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT ALL MIN( - col2 ) FROM tab0 AS cor0 WHERE NOT col2 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL MIN ( - col2 ) FROM tab0 AS cor0 WHERE NOT col2 < NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col1 NOT BETWEEN NULL AND - 15
----

query II rowsort
SELECT DISTINCT + col1 - - + col1 AS col0, col0 AS col2 FROM tab2
----
102
46
134
75
154
64

query I rowsort
SELECT - - 96 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT - 71 * + - col2 + + ( - + ( + 28 ) ) FROM tab1 AS cor0
----
4161
4800
6788

query II rowsort
SELECT ALL col2, - 22 * - - 73 + + col2 AS col0 FROM tab2 AS cor0
----
23
-1583
40
-1566
58
-1548

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1378
SELECT ALL - COUNT( * ) * - ( + ( + COUNT( * ) ) ) AS col1, 81 + + 39 AS col1 FROM tab1 AS cor0
----
9
120

skipif mysql # not compatible
query II rowsort label-1378
SELECT ALL - COUNT ( * ) * - ( + ( + COUNT ( * ) ) ) AS col1, 81 + + 39 AS col1 FROM tab1 AS cor0
----
9
120

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

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

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

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

query I rowsort
SELECT ALL + 53 FROM tab2 cor0
----
53
53
53

query I rowsort
SELECT 34 FROM tab2 WHERE NOT ( NULL <> NULL )
----

query III rowsort
SELECT DISTINCT + ( - - 57 ) AS col2, + 35 AS col0, - + col1 FROM tab0
----
9 values hashing to 503012d3a6e9bbd736b2f1bc0bfcf0b1

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT ( NOT col2 + - col1 / - + 86 IN ( col0, + 48 + + - col1 * + + col0 + + - col0 + - col0 ) )
----

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

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

query I rowsort
SELECT col2 * - ( 16 ) * - 66 FROM tab0
----
104544
10560
49632

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT ALL - ( - + 70 ) + + COUNT( * ) FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-1389
SELECT ALL - ( - + 70 ) + + COUNT ( * ) FROM tab0 AS cor0
----
73

query I rowsort
SELECT ALL - 58 * - col0 * - col0 AS col0 FROM tab2
----
-122728
-237568
-326250

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT DISTINCT COUNT( * ) * 85 AS col1 FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT COUNT ( * ) * 85 AS col1 FROM tab2
----
255

query I rowsort
SELECT DISTINCT - + col0 + + col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-1395
SELECT ALL + - col2 / - col2 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 <= + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 > - + col0
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 * + 21 col2 FROM tab1
----
1239
1239
1239

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

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

query I rowsort
SELECT + col2 * 52 AS col2 FROM tab1
----
3068
3536
4992

query I rowsort
SELECT DISTINCT 35 * col1 + 17 AS col0 FROM tab0
----
2852
52
752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1403
SELECT DISTINCT CAST( - col2 AS SIGNED ) - col1 * col0 + + col1 col0 FROM tab2
----
-2318
-4891
-5016

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1403
SELECT DISTINCT CAST ( - col2 AS INTEGER ) - col1 * col0 + + col1 col0 FROM tab2
----
-2318
-4891
-5016

onlyif mysql # DIV for integer division: 
query I rowsort label-1404
SELECT + col1 DIV + 3 - col2 FROM tab1
----
-53
-58
-92

skipif mysql # not compatible
query I rowsort label-1404
SELECT + col1 / + 3 - col2 FROM tab1
----
-53
-58
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT ALL + COUNT( * ) + + 29 FROM tab0 WHERE NOT - col0 <= - col1
----
30

skipif mysql # not compatible
query I rowsort label-1405
SELECT ALL + COUNT ( * ) + + 29 FROM tab0 WHERE NOT - col0 <= - col1
----
30

query III rowsort
SELECT * FROM tab2 WHERE ( col0 ) IS NULL
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1409
SELECT col1 DIV 33 DIV - col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1409
SELECT col1 / 33 / - col1 FROM tab0
----
0
0
0

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

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

query I rowsort
SELECT ALL ( + 1 ) AS col1 FROM tab1 AS cor0
----
1
1
1

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

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

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

query I rowsort
SELECT 38 * 14 AS col2 FROM tab0 cor0
----
532
532
532

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 16 >= NULL
----

query I rowsort
SELECT - col2 * - col1 * - col0 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1418
SELECT 48 DIV + MIN( ALL + 18 ) AS col0 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-1418
SELECT 48 / + MIN ( ALL + 18 ) AS col0 FROM tab0
----
2

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

skipif mysql # not compatible
query I rowsort label-1419
SELECT COUNT ( * ) / - 78 * + 55 FROM tab0
----
0

query I rowsort
SELECT ALL - col1 * + + col1 FROM tab1 WHERE NOT + 1 IS NOT NULL
----

query I rowsort
SELECT + 31 * - col1 AS col0 FROM tab2
----
-1581
-2077
-2387

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 37 + + - col1 - + 86 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + 1 + col2 * col1 * - - 41 col0 FROM tab0 AS cor0
----
156169
4061
8632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 + + col0 col0, - col0 * + col1 * - - col2 AS col0 FROM tab0 cor0
----
-66
-57105
66
-18270
96
-9603

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 < - ( + 97 )
----

query III rowsort
SELECT * FROM tab2 WHERE col2 / - 14 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT DISTINCT - COUNT( * ) + - 84 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-1429
SELECT DISTINCT - COUNT ( * ) + - 84 FROM tab2
----
-87

query I rowsort
SELECT ALL + col0 + + 26 AS col0 FROM tab2
----
101
72
90

query I rowsort
SELECT DISTINCT 82 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-1432
SELECT DISTINCT - + ( - col2 ) DIV - - col0 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-1432
SELECT DISTINCT - + ( - col2 ) / - - col0 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT ( 43 ) * - 80 FROM tab1 cor0
----
-3440
-3440
-3440

onlyif mysql # DIV for integer division: 
query I rowsort label-1434
SELECT + - col1 DIV + - 27 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-1434
SELECT + - col1 / + - 27 FROM tab0 AS cor0
----
0
0
3

query I rowsort
SELECT - col1 * + - col1 + - 38 + - + 53 * - col0 * 99 AS col1 FROM tab1 AS cor0
----
267755
445982
479648

query I rowsort
SELECT + + col2 + - - col2 FROM tab1 AS cor0
----
118
136
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + 91 col1, - 38 FROM tab0 AS cor0
----
106
-38
178
-38
188
-38

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

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

query I rowsort
SELECT DISTINCT col1 + 8 - - col2 + + ( + + col2 ) * - + col1 * + col1 * 10 * col1 FROM tab2
----
-174442407
-182613075
-30509648

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1440
SELECT ( - 93 ) + COUNT( * ) - 9 DIV + COUNT( * ) AS col1 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-1440
SELECT ( - 93 ) + COUNT ( * ) - 9 / + COUNT ( * ) AS col1 FROM tab2
----
-93

query I rowsort
SELECT - col1 + + col2 * + 60 * + col0 * - + col1 AS col0 FROM tab1
----
-1504505
-17450207
-4112654

query I rowsort
SELECT DISTINCT col1 + 57 AS col2 FROM tab1
----
104
62
71

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1444
SELECT ALL col2 AS col1, col2 * - - CAST( NULL AS SIGNED ) * + + 78 AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-1444
SELECT ALL col2 AS col1, col2 * - - CAST ( NULL AS INTEGER ) * + + 78 AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1445
SELECT DISTINCT - col0 DIV + ( - - 30 ) - + col2 FROM tab2
----
-24
-42
-60

skipif mysql # not compatible
query I rowsort label-1445
SELECT DISTINCT - col0 / + ( - - 30 ) - + col2 FROM tab2
----
-24
-42
-60

query I rowsort
SELECT ALL col0 - + - 76 + col2 * - + col2 + 89 + - col2 AS col0 FROM tab1
----
-3290
-4436
-9096

query I rowsort
SELECT - + 54 * ( + col2 ) FROM tab0 AS cor0 WHERE 56 IS NOT NULL
----
-2538
-5346
-540

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT MAX( DISTINCT - - 83 ) FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-1449
SELECT MAX ( DISTINCT - - 83 ) FROM tab0
----
83

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1452
SELECT - COUNT( col1 ) AS col0, + 96 FROM tab1 AS cor0
----
-3
96

skipif mysql # not compatible
query II rowsort label-1452
SELECT - COUNT ( col1 ) AS col0, + 96 FROM tab1 AS cor0
----
-3
96

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT ALL + - MIN( ALL 9 ) AS col0 FROM tab2 WHERE NOT - + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL + - MIN ( ALL 9 ) AS col0 FROM tab2 WHERE NOT - + col0 IS NOT NULL
----
NULL

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, 83 AS col0 FROM tab2
----
46
83
64
83
75
83

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

query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab0 WHERE NULL BETWEEN + col0 * + - 71 AND NULL
----

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

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

query I rowsort
SELECT + - 2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT 4 + - MIN( + 74 ) AS col2 FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-1466
SELECT 4 + - MIN ( + 74 ) AS col2 FROM tab1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1467
SELECT + ( - CAST( + 83 AS SIGNED ) ) * - COUNT( * ) + - MAX( - col0 ) FROM tab2 WHERE NULL BETWEEN - ( - col1 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1467
SELECT + ( - CAST ( + 83 AS INTEGER ) ) * - COUNT ( * ) + - MAX ( - col0 ) FROM tab2 WHERE NULL BETWEEN - ( - col1 ) AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 + 19 * + col0 col1 FROM tab0
----
1740
1930
372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1469
SELECT ALL + 92 + - ( + CAST( NULL AS SIGNED ) ) * MIN( - - col1 ) + + 78 + - + AVG ( DISTINCT - + col1 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1469
SELECT ALL + 92 + - ( + CAST ( NULL AS INTEGER ) ) * MIN ( - - col1 ) + + 78 + - + AVG ( DISTINCT - + col1 ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT ALL + MAX( ALL 32 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
32

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL + MAX ( ALL 32 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
32

query I rowsort
SELECT DISTINCT col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= 6 / - - col0
----

query I rowsort
SELECT ALL 30 FROM tab2 cor0
----
30
30
30

query I rowsort
SELECT + 65 * - 69 AS col2 FROM tab1 AS cor0
----
-4485
-4485
-4485

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

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

query I rowsort
SELECT + 70 * 26 - + col2 - + + ( - 34 ) * 26 FROM tab0 AS cor0
----
2605
2657
2694

query II rowsort
SELECT + - 12 AS col2, ( + ( col2 ) ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( + 8 ) AND ( NULL )
----

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

query I rowsort
SELECT col2 - - col0 + - 39 * - 8 AS col2 FROM tab1
----
456
459
471

query I rowsort
SELECT ALL + col2 - - col2 AS col2 FROM tab2
----
116
46
80

query I rowsort
SELECT col2 - col2 * 27 AS col1 FROM tab1
----
-1534
-1768
-2496

query I rowsort
SELECT - col1 - col2 * + + col0 * 66 AS col2 FROM tab1
----
-323150
-330995
-408455

query I rowsort
SELECT DISTINCT 38 * + col1 FROM tab1
----
1786
190
532

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1489
SELECT DISTINCT 38 DIV - ( - col0 ) FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-1489
SELECT DISTINCT 38 / - ( - col0 ) FROM tab0 AS cor0
----
0
2

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

query I rowsort
SELECT DISTINCT + - ( - 34 ) * col2 AS col0 FROM tab0 WHERE NOT - col0 = + - col2
----
1598
3366
340

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1492
SELECT - col1 / col1 / + CAST( NULL AS DECIMAL ) * + ( 87 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1492
SELECT - col1 / col1 / + CAST ( NULL AS REAL ) * + ( 87 ) FROM tab0
----
NULL
NULL
NULL

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1495
SELECT DISTINCT MIN ( + + 16 ) FROM tab0 cor0
----
16

query II rowsort
SELECT ALL - col2 AS col0, col1 * - - ( col1 ) + + 9 FROM tab2 AS cor0
----
-23
2610
-40
5938
-58
4498

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 32 col0, + col1 AS col2 FROM tab2 AS cor0
----
-32
51
-32
67
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT ALL - COUNT( * ) + - SUM( - col0 ) FROM tab2
----
182

skipif mysql # not compatible
query I rowsort label-1503
SELECT ALL - COUNT ( * ) + - SUM ( - col0 ) FROM tab2
----
182

onlyif mysql # DIV for integer division: 
query I rowsort label-1504
SELECT DISTINCT 27 DIV col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1504
SELECT DISTINCT 27 / col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + 63 + - col1 AS col0 FROM tab1
----
16
49
58

query II rowsort
SELECT - - col2 + col2 AS col1, col1 + - - col2 + + - col0 FROM tab2 cor0
----
116
50
46
28
80
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT MAX( - 36 ) AS col1 FROM tab0 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-1507
SELECT MAX ( - 36 ) AS col1 FROM tab0 cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1508
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 >= 29 + + 58 * + + CAST( NULL AS SIGNED ) * + - col1
----

skipif mysql # not compatible
query III rowsort label-1508
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 >= 29 + + 58 * + + CAST ( NULL AS INTEGER ) * + - col1
----

query I rowsort
SELECT DISTINCT col1 * col2 - - col1 * + ( col2 ) + - col2 + + col2 FROM tab1
----
2688
590
6392

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

skipif mysql # not compatible
query I rowsort label-1510
SELECT SUM ( DISTINCT col0 ) AS col1 FROM tab2
----
185

query I rowsort
SELECT - col1 - - col0 - - col1 FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 + col0 + 29 col1 FROM tab0 AS cor0
----
-2
70
80

query I rowsort
SELECT + + 5 + - col2 + 20 FROM tab2 AS cor0
----
-15
-33
2

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

query I rowsort
SELECT ALL 44 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
44
44
44

query I rowsort
SELECT - col2 + + col0 + + col1 + + col2 AS col0 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT DISTINCT 66 * + col0 FROM tab0 AS cor0
----
5742
6402
990

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> 64
----

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

query I rowsort
SELECT DISTINCT + col0 + + col2 - - + 84 FROM tab1
----
228
231
243

query I rowsort
SELECT col2 FROM tab2 WHERE NULL IN ( - 88 + - col1 * 34 )
----

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

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

query I rowsort
SELECT DISTINCT col1 * + + 66 FROM tab0
----
1386
5346
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT ALL - - SUM( col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-1525
SELECT ALL - - SUM ( col2 ) FROM tab1 AS cor0
----
223

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, 18 col1 FROM tab0 AS cor0
----
1
18
21
18
81
18

query I rowsort
SELECT col1 * + col2 + - 81 + + col1 + + + ( - 39 ) + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1289
265
3214

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT DISTINCT SUM( ALL + - 16 ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-1529
SELECT DISTINCT SUM ( ALL + - 16 ) FROM tab1
----
-48

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 47 + - 49 col1, col1 FROM tab2 AS cor0
----
-2
51
-2
67
-2
77

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + 49 ) * 73 + + - col2 - - ( + col1 ) col0 FROM tab2 AS cor0
----
-3540
-3549
-3568

query I rowsort
SELECT ALL 37 + + ( + + col2 ) AS col1 FROM tab1 AS cor0 WHERE 38 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1535
SELECT DISTINCT + 17 * col0 + col2 DIV - - 53 + col2 - + 17 + + col2 FROM tab0
----
1482
1831
332

skipif mysql # not compatible
query I rowsort label-1535
SELECT DISTINCT + 17 * col0 + col2 / - - 53 + col2 - + 17 + + col2 FROM tab0
----
1482
1831
332

query I rowsort
SELECT 1 * col1 FROM tab1
----
14
47
5

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1538
SELECT - col0 DIV + 19 AS col1 FROM tab1
----
-2
-4
-4

skipif mysql # not compatible
query I rowsort label-1538
SELECT - col0 / + 19 AS col1 FROM tab1
----
-2
-4
-4

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1540
SELECT ALL + - ( + col0 ) * col2 AS col1, + CAST( NULL AS DECIMAL ) FROM tab1 WHERE NOT col1 IN ( + col0 * + col0 + - + 5, - col1 / - col2 )
----
-4896
NULL
-5015
NULL
-6188
NULL

skipif mysql # not compatible
query II rowsort label-1540
SELECT ALL + - ( + col0 ) * col2 AS col1, + CAST ( NULL AS REAL ) FROM tab1 WHERE NOT col1 IN ( + col0 * + col0 + - + 5, - col1 / - col2 )
----
-4896
NULL
-5015
NULL
-6188
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT - 63 * - 32 + 29 FROM tab1
----
2045

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - col2 * 93 FROM tab2 AS cor0
----
-2139
-3720
-5394

onlyif mysql # DIV for integer division: 
query I rowsort label-1554
SELECT + + col2 * col2 DIV - 67 FROM tab0 cor0
----
-1
-146
-32

skipif mysql # not compatible
query I rowsort label-1554
SELECT + + col2 * col2 / - 67 FROM tab0 cor0
----
-1
-146
-32

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> + 33
----

query I rowsort
SELECT ALL - ( + ( - col1 ) ) FROM tab0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 48 < + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query II rowsort
SELECT - 60 * - + 64 + + 21, col2 AS col1 FROM tab0 cor0
----
3861
10
3861
47
3861
99

query II rowsort
SELECT + col0 * + col0 AS col1, + 13 AS col2 FROM tab1
----
2601
13
7225
13
8281
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT ALL + SUM( 61 ) * - 32 * ( 58 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-1018944

skipif mysql # not compatible
query I rowsort label-1564
SELECT ALL + SUM ( 61 ) * - 32 * ( 58 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-1018944

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL < - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1566
SELECT DISTINCT - - CAST( + col2 AS SIGNED ) * - 50 * + col2 + + - 45 AS col0 FROM tab2 AS cor0
----
-168245
-26495
-80045

skipif mysql # not compatible
query I rowsort label-1566
SELECT DISTINCT - - CAST ( + col2 AS INTEGER ) * - 50 * + col2 + + - 45 AS col0 FROM tab2 AS cor0
----
-168245
-26495
-80045

query II rowsort
SELECT DISTINCT - 74 AS col2, col2 + + col1 + col0 * col2 FROM tab1 AS cor0
----
-74
5006
-74
5079
-74
6303

query I rowsort
SELECT DISTINCT + col1 * + 32 + - col0 FROM tab0 AS cor0
----
-65
2577
585

query I rowsort
SELECT - - ( - 44 ) FROM tab2 AS cor0
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT - SUM( ALL + col1 ) / - 97 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1570
SELECT - SUM ( ALL + col1 ) / - 97 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1571
SELECT + COUNT( - + 43 ), MIN( ALL + - col2 ) AS col2 FROM tab1 AS cor0
----
3
-96

skipif mysql # not compatible
query II rowsort label-1571
SELECT + COUNT ( - + 43 ), MIN ( ALL + - col2 ) AS col2 FROM tab1 AS cor0
----
3
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT ALL - 95 * 46 + + SUM( - 48 ) AS col2 FROM tab2 AS cor0
----
-4514

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL - 95 * 46 + + SUM ( - 48 ) AS col2 FROM tab2 AS cor0
----
-4514

query I rowsort
SELECT - + 5 * + + ( + - col0 ) * + 15 + col1 FROM tab1 AS cor0
----
3839
6380
6872

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT - 64 * MIN( - + 2 ) + + 7 col1 FROM tab2
----
135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1574
SELECT - 64 * MIN ( - + 2 ) + + 7 col1 FROM tab2
----
135

query III rowsort
SELECT * FROM tab0 WHERE - + col0 BETWEEN - col2 AND + col1 - + col2
----
15
81
47

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

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT MAX ( DISTINCT col0 ) * - + COUNT ( * ) FROM tab2
----
-225

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE NOT - + ( + 72 ) IN ( - col1 )
----
59
68
96

query I rowsort
SELECT - col2 * - + 8 FROM tab0 AS cor0
----
376
792
80

onlyif mysql # DIV for integer division: 
query I rowsort label-1579
SELECT ALL 71 DIV - 54 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL 71 / - 54 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - 72 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 80 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1583
SELECT COUNT( * ) * + CAST( 48 AS SIGNED ) col2 FROM tab1
----
144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1583
SELECT COUNT ( * ) * + CAST ( 48 AS INTEGER ) col2 FROM tab1
----
144

onlyif mysql # aggregate syntax: 
query II rowsort label-1584
SELECT COUNT( * ), 23 AS col1 FROM tab2 AS cor0
----
3
23

skipif mysql # not compatible
query II rowsort label-1584
SELECT COUNT ( * ), 23 AS col1 FROM tab2 AS cor0
----
3
23

query I rowsort
SELECT 99 * - col0 AS col2 FROM tab1 AS cor0
----
-5049
-8415
-9009

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1586
SELECT DISTINCT ( - MAX( ALL + col1 ) ) / MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1586
SELECT DISTINCT ( - MAX ( ALL + col1 ) ) / MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT DISTINCT MIN( DISTINCT - - col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1587
SELECT DISTINCT MIN ( DISTINCT - - col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT DISTINCT MAX( 33 ) FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-1588
SELECT DISTINCT MAX ( 33 ) FROM tab2 AS cor0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1589
SELECT + COUNT( * ) / - CAST( NULL AS SIGNED ) * 32 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1589
SELECT + COUNT ( * ) / - CAST ( NULL AS INTEGER ) * 32 AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col1 NOT IN ( - col1, col2, col1 ) AND NOT NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1591
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) AS col2, COUNT( * ) AS col1 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-1591
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col2, COUNT ( * ) AS col1 FROM tab1
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1592
SELECT - col1 + + CAST( NULL AS SIGNED ) - + + col0 / col1 + - col0 + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1592
SELECT - col1 + + CAST ( NULL AS INTEGER ) - + + col0 / col1 + - col0 + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - col1 * - col1 AS col0 FROM tab2 cor0 WHERE col1 / - + col0 * + - col2 IS NULL
----

query II rowsort
SELECT ALL - col2, 11 AS col0 FROM tab2 AS cor0
----
-23
11
-40
11
-58
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 68 * + col2 col1 FROM tab0 AS cor0
----
3196
6732
680

query I rowsort
SELECT ALL 69 + - col0 * + - col0 FROM tab1 cor0
----
2670
7294
8350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1597
SELECT DISTINCT col0 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1597
SELECT DISTINCT col0 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT DISTINCT SUM( + - col1 ) * COUNT( + + 16 ) + + 72 + - - 43 FROM tab0
----
-194

skipif mysql # not compatible
query I rowsort label-1598
SELECT DISTINCT SUM ( + - col1 ) * COUNT ( + + 16 ) + + 72 + - - 43 FROM tab0
----
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT DISTINCT - MAX( DISTINCT - + 54 ) AS col2 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-1599
SELECT DISTINCT - MAX ( DISTINCT - + 54 ) AS col2 FROM tab2
----
54

query I rowsort
SELECT col1 * - col0 - - 35 AS col2 FROM tab0
----
-1180
-1792
-62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1601
SELECT ALL col1, + CAST( NULL AS SIGNED ) * 24 AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-1601
SELECT ALL col1, + CAST ( NULL AS INTEGER ) * 24 AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1602
SELECT + COUNT( * ) FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1602
SELECT + COUNT ( * ) FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1603
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1603
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + + 40, - 26 + + col1 AS col1 FROM tab0 AS cor0
----
40
-25
40
-5
40
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT COUNT( - col1 ) + - 64 AS col2 FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-1605
SELECT COUNT ( - col1 ) + - 64 AS col2 FROM tab2 AS cor0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT - COUNT( * ) + + 86 + + ( ( - + MAX( DISTINCT - + 10 ) ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1606
SELECT - COUNT ( * ) + + 86 + + ( ( - + MAX ( DISTINCT - + 10 ) ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + - ( - 90 ) AS col1 FROM tab1 AS cor0
----
90

query I rowsort
SELECT 42 * - 80 AS col0 FROM tab2 AS cor0
----
-3360
-3360
-3360

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT ALL + MAX( ALL - 28 ) AS col1 FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-1609
SELECT ALL + MAX ( ALL - 28 ) AS col1 FROM tab1 AS cor0
----
-28

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT COUNT( * ) * + 77 * + + 83 * COUNT( * ) col0 FROM tab2 AS cor0
----
57519

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1611
SELECT COUNT ( * ) * + 77 * + + 83 * COUNT ( * ) col0 FROM tab2 AS cor0
----
57519

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE NOT 15 * 48 * 59 < + + 12
----
14
47
5

query I rowsort
SELECT 72 * - col0 AS col2 FROM tab0
----
-1080
-6264
-6984

query I rowsort
SELECT DISTINCT - col0 * + + 88 FROM tab1
----
-4488
-7480
-8008

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT + - SUM( DISTINCT + col2 ) FROM tab2 WHERE NOT - - 6 * - col0 + - ( - col1 ) IN ( - col2, 68 )
----
-121

skipif mysql # not compatible
query I rowsort label-1615
SELECT + - SUM ( DISTINCT + col2 ) FROM tab2 WHERE NOT - - 6 * - col0 + - ( - col1 ) IN ( - col2, 68 )
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - AVG ( - - col1 ) FROM tab0 AS cor0 WHERE - col2 BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT DISTINCT + COUNT( ALL - 33 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1618
SELECT DISTINCT + COUNT ( ALL - 33 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1619
SELECT - CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1619
SELECT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT col1, col2 * + - col0 AS col1 FROM tab0 AS cor0
----
1
-9603
21
-870
81
-705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1621
SELECT DISTINCT 99 * CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1621
SELECT DISTINCT 99 * CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, col0 col0 FROM tab0 WHERE - col2 NOT BETWEEN col1 + col2 AND + - 40 + col1 + - col2
----
15
15
87
87
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + 20, - col1 col2 FROM tab1
----
100
-5
280
-14
940
-47

query I rowsort
SELECT + + 70 AS col0 FROM tab1 WHERE NULL IS NULL
----
70
70
70

query I rowsort
SELECT DISTINCT + + col1 + col1 FROM tab2 AS cor0 WHERE NOT + ( - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1626
SELECT + col0 - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1626
SELECT + col0 - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 93 + 35 * - 52 AS col1 FROM tab0 AS cor0
----
-1727
-1727
-1727

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT DISTINCT + MAX( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1628
SELECT DISTINCT + MAX ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT DISTINCT - COUNT( - col2 ) + + ( 35 ) AS col2 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT - COUNT ( - col2 ) + + ( 35 ) AS col2 FROM tab2 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-1630
SELECT + 67 + + 7 col2, COUNT( * ) FROM tab0 AS cor0
----
74
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1630
SELECT + 67 + + 7 col2, COUNT ( * ) FROM tab0 AS cor0
----
74
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1631
SELECT + + 96 + - CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-1631
SELECT + + 96 + - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT - COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1632
SELECT - COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col2 + - + col2 * + + 54 FROM tab2
----
-1265
-2200
-3190

query III rowsort
SELECT * FROM tab2 WHERE + 51 + + 49 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 + 85 FROM tab2
----
131
149
160

query I rowsort
SELECT + col2 + - + col2 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE 50 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1638
SELECT DISTINCT - col0 * + + 31 - + + 55 + - - ( + col1 ) DIV col2 AS col1 FROM tab1
----
-1636
-2690
-2876

skipif mysql # not compatible
query I rowsort label-1638
SELECT DISTINCT - col0 * + + 31 - + + 55 + - - ( + col1 ) / col2 AS col1 FROM tab1
----
-1636
-2690
-2876

query I rowsort
SELECT + 6 AS col1 FROM tab0 cor0
----
6
6
6

query I rowsort
SELECT ALL - col1 + + 73 + + ( + col0 ) AS col1 FROM tab2 AS cor0
----
60
68
81

query I rowsort
SELECT ALL + col2 * + ( - - 62 ) AS col1 FROM tab1
----
3658
4216
5952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1642
SELECT DISTINCT + + col2 FROM tab0 WHERE NOT ( - col2 NOT BETWEEN + + 67 * - - col1 AND - col1 ) OR NOT - col1 * + + 75 - - col1 + col0 * - + col0 * + col2 * col0 IN ( + ( - + col2 ), col1, - + 8 * col0 + + CAST( - - col2 AS SIGNED ) )
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1642
SELECT DISTINCT + + col2 FROM tab0 WHERE NOT ( - col2 NOT BETWEEN + + 67 * - - col1 AND - col1 ) OR NOT - col1 * + + 75 - - col1 + col0 * - + col0 * + col2 * col0 IN ( + ( - + col2 ), col1, - + 8 * col0 + + CAST ( - - col2 AS INTEGER ) )
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1643
SELECT 57 DIV - + 13 AS col0 FROM tab1
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-1643
SELECT 57 / - + 13 AS col0 FROM tab1
----
-4
-4
-4

query II rowsort
SELECT DISTINCT 86, col1 AS col1 FROM tab0
----
86
1
86
21
86
81

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT + ( - col0 ) = + 54
----
10
47
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + 50
----

query I rowsort
SELECT - + 92 * + + col2 FROM tab2 AS cor0
----
-2116
-3680
-5336

query I rowsort
SELECT ALL + ( - + col0 ) * - + col2 * + + col0 AS col1 FROM tab2 AS cor0
----
163840
326250
48668

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 8 NOT BETWEEN col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * + - 76 AS col2 FROM tab1 AS cor0
----
3876
6460
6916

query I rowsort
SELECT + ( + col1 ) * - - 48 * col1 AS col0 FROM tab1 AS cor0
----
106032
1200
9408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1652
SELECT ALL - COUNT( DISTINCT col1 ) / CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1652
SELECT ALL - COUNT ( DISTINCT col1 ) / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1653
SELECT + col0 DIV + col1, col1 AS col1 FROM tab1
----
1
47
17
5
3
14

skipif mysql # not compatible
query II rowsort label-1653
SELECT + col0 / + col1, col1 AS col1 FROM tab1
----
1
47
17
5
3
14

query I rowsort
SELECT 41 * col2 FROM tab0
----
1927
4059
410

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1655
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + + 64 ) + - + 56 + - col0 + + col2 + col1 * 19 * + + col2 / 58 + + CAST( NULL AS DECIMAL ) + - col1 * - + col1 / - 36 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1655
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + + 64 ) + - + 56 + - col0 + + col2 + col1 * 19 * + + col2 / 58 + + CAST ( NULL AS REAL ) + - col1 * - + col1 / - 36 IS NULL
----

query II rowsort
SELECT ALL - ( 25 ) AS col0, + 38 FROM tab2
----
-25
38
-25
38
-25
38

query I rowsort
SELECT DISTINCT - 8 * - 45 * col1 FROM tab1 cor0
----
16920
1800
5040

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT DISTINCT + 78 + - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1658
SELECT DISTINCT + 78 + - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
81

query I rowsort
SELECT ALL col0 + - - 71 AS col2 FROM tab2 AS cor0
----
117
135
146

query I rowsort
SELECT DISTINCT col1 + + + 28 FROM tab1
----
33
42
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col0, + col1 AS col2 FROM tab1
----
-14
14
-47
47
-5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 88 + + 90 col0 FROM tab1 AS cor0
----
178
178
178

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT ALL SUM( + 42 ) FROM tab1 cor0
----
126

skipif mysql # not compatible
query I rowsort label-1663
SELECT ALL SUM ( + 42 ) FROM tab1 cor0
----
126

query I rowsort
SELECT ALL + 39 * + col1 * - 84 + - + col0 FROM tab0 AS cor0
----
-265371
-3373
-68883

query I rowsort
SELECT DISTINCT 12 * + col2 FROM tab2 AS cor0 WHERE - 9 IS NOT NULL
----
276
480
696

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1666
SELECT - CAST( - col2 AS SIGNED ) col2, col1 * - col0 FROM tab1
----
59
-425
68
-4277
96
-714

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1666
SELECT - CAST ( - col2 AS INTEGER ) col2, col1 * - col0 FROM tab1
----
59
-425
68
-4277
96
-714

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 35 > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT + SUM( - col0 ) - - - MIN( - col0 ) AS col2 FROM tab1
----
-136

skipif mysql # not compatible
query I rowsort label-1668
SELECT + SUM ( - col0 ) - - - MIN ( - col0 ) AS col2 FROM tab1
----
-136

query I rowsort
SELECT ALL 56 + + - 8 FROM tab1
----
48
48
48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1670
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + - col2, col0, - + col0 + + 12, - - CAST( NULL AS SIGNED ) / + 53 + col1 )
----

skipif mysql # not compatible
query III rowsort label-1670
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + - col2, col0, - + col0 + + 12, - - CAST ( NULL AS INTEGER ) / + 53 + col1 )
----

query I rowsort
SELECT ALL col2 + + - col0 AS col1 FROM tab0
----
-77
2
32

onlyif mysql # DIV for integer division: 
query I rowsort label-1672
SELECT 29 DIV + 30 - - - 82 FROM tab2
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-1672
SELECT 29 / + 30 - - - 82 FROM tab2
----
-82
-82
-82

query I rowsort
SELECT col2 - - - 91 FROM tab0
----
-44
-81
8

query I rowsort
SELECT DISTINCT - 3 - + - col0 * - + col1 + - 76 FROM tab1 AS cor0
----
-4356
-504
-793

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1675
SELECT DISTINCT CAST( - - 0 AS SIGNED ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT CAST ( - - 0 AS INTEGER ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1676
SELECT DISTINCT + + 12 AS col1, MIN( + col1 ) FROM tab1 AS cor0 WHERE NOT + col0 * 43 IS NULL
----
12
5

skipif mysql # not compatible
query II rowsort label-1676
SELECT DISTINCT + + 12 AS col1, MIN ( + col1 ) FROM tab1 AS cor0 WHERE NOT + col0 * 43 IS NULL
----
12
5

query I rowsort
SELECT + + col0 * - + 77 + col2 FROM tab0 AS cor0
----
-1108
-6689
-7370

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT - COUNT( - + col2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1678
SELECT - COUNT ( - + col2 ) FROM tab0
----
-3

query I rowsort
SELECT ALL - + 13 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 36 * + col1 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT NULL IS NOT NULL )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT - + col0 * + - 6 FROM tab2 cor0
----
276
384
450

query I rowsort
SELECT + 55 * + - col0 FROM tab2 AS cor0
----
-2530
-3520
-4125

query I rowsort
SELECT + + ( + - col0 ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL - col0 * - 15 AS col0 FROM tab2 AS cor0
----
1125
690
960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1686
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1686
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1687
SELECT * FROM tab0 AS cor0 WHERE NOT + 76 * + - CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1687
SELECT * FROM tab0 AS cor0 WHERE NOT + 76 * + - CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1688
SELECT - COUNT( * ) * - ( + + COUNT( - CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1688
SELECT - COUNT ( * ) * - ( + + COUNT ( - CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0
----
0

query II rowsort
SELECT ALL - 33 AS col2, + col1 * - col1 * + + col1 FROM tab0
----
-33
-1
-33
-531441
-33
-9261

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 BETWEEN - 93 AND ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, col1 * col1 AS col0 FROM tab0
----
10
441
47
6561
99
1

query I rowsort
SELECT DISTINCT - col1 * - 40 * + - col2 FROM tab2
----
-123200
-155440
-46920

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT DISTINCT + MIN( + col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-1693
SELECT DISTINCT + MIN ( + col0 ) AS col1 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT ALL + MAX( + col0 ) FROM tab1 WHERE NOT - col1 IS NULL
----
91

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL + MAX ( + col0 ) FROM tab1 WHERE NOT - col1 IS NULL
----
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 7 IS NULL
----

query I rowsort
SELECT - + 90 + + - col1 FROM tab2 AS cor0
----
-141
-157
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT ALL COUNT( * ) + - 42 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-33

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL COUNT ( * ) + - 42 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT ALL - + ( 16 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-1698
SELECT ALL - + ( 16 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT + - COUNT( * ) + + 49 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-1699
SELECT + - COUNT ( * ) + + 49 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT ALL + COUNT( 10 ) + COUNT( * ) col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1700
SELECT ALL + COUNT ( 10 ) + COUNT ( * ) col0 FROM tab2 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1701
SELECT + col1 + + - col1 DIV - 45 FROM tab0 AS cor0
----
1
21
82

skipif mysql # not compatible
query I rowsort label-1701
SELECT + col1 + + - col1 / - 45 FROM tab0 AS cor0
----
1
21
82

onlyif mysql # DIV for integer division: 
query I rowsort label-1702
SELECT DISTINCT + + col2 DIV 5 col1 FROM tab2 AS cor0
----
11
4
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1702
SELECT DISTINCT + + col2 / 5 col1 FROM tab2 AS cor0
----
11
4
8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + - - col1 - + 35 AS col0, col0 col0 FROM tab1 AS cor0
----
29
85
75
51
80
91

query I rowsort
SELECT + - col1 * + - col1 + - col2 FROM tab1 AS cor0
----
-34
100
2141

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + - col1 - col0 col2, - col0 + col2 - - - col0 FROM tab0
----
-129
-164
-177
17
-99
-95

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND - ( - 9 )
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NULL BETWEEN - - col2 AND col2
----

query II rowsort
SELECT 5 AS col1, col0 AS col0 FROM tab0
----
5
15
5
87
5
97

query II rowsort
SELECT col2, + 49 FROM tab0
----
10
49
47
49
99
49

query II rowsort
SELECT + 42 AS col2, 4 FROM tab0 cor0
----
42
4
42
4
42
4

query III rowsort
SELECT ALL * FROM tab1 WHERE 64 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT - MAX( ALL ( + col0 ) ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-1714
SELECT - MAX ( ALL ( + col0 ) ) AS col1 FROM tab2
----
-75

query I rowsort
SELECT ALL col1 - - ( - col2 + col0 * - 9 ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 BETWEEN col2 * 76 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( - 47 ) FROM tab0
----
47
47
47

onlyif mysql # DIV for integer division: 
query I rowsort label-1718
SELECT + col1 DIV col0 + col0 AS col0 FROM tab2
----
47
65
75

skipif mysql # not compatible
query I rowsort label-1718
SELECT + col1 / col0 + col0 AS col0 FROM tab2
----
47
65
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1719
SELECT 1 + + COUNT( * ) * SUM( DISTINCT CAST( - 40 AS SIGNED ) ) FROM tab0
----
-119

skipif mysql # not compatible
query I rowsort label-1719
SELECT 1 + + COUNT ( * ) * SUM ( DISTINCT CAST ( - 40 AS INTEGER ) ) FROM tab0
----
-119

onlyif mysql # DIV for integer division: 
query I rowsort label-1720
SELECT - col0 DIV - col2 + + 50 FROM tab2
----
51
51
52

skipif mysql # not compatible
query I rowsort label-1720
SELECT - col0 / - col2 + + 50 FROM tab2
----
51
51
52

query I rowsort
SELECT DISTINCT col2 * + ( col1 ) FROM tab1 WHERE NOT ( col2 * + 93 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 >= col0 + 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT DISTINCT SUM( ALL - 71 ) AS col2 FROM tab1
----
-213

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT SUM ( ALL - 71 ) AS col2 FROM tab1
----
-213

query III rowsort
SELECT * FROM tab2 WHERE col1 * - 25 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 45 / col1 ) < NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 18 * - 70 NOT BETWEEN ( ( 57 ) / - col2 - + 63 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1727
SELECT CAST( + col1 AS SIGNED ) * - 52 FROM tab1
----
-2444
-260
-728

skipif mysql # not compatible
query I rowsort label-1727
SELECT CAST ( + col1 AS INTEGER ) * - 52 FROM tab1
----
-2444
-260
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT + MIN( + col2 ) * - COUNT( * ) AS col0 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-1728
SELECT + MIN ( + col2 ) * - COUNT ( * ) AS col0 FROM tab0
----
-30

query I rowsort
SELECT 68 + 59 AS col0 FROM tab0
----
127
127
127

query III rowsort
SELECT ALL * FROM tab1 WHERE + 57 + + col2 IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT 74 * + COUNT( * ) col2 FROM tab2
----
222

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1731
SELECT 74 * + COUNT ( * ) col2 FROM tab2
----
222

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 = - col1
----

query I rowsort
SELECT + 89 * 53 FROM tab0 WHERE NOT NULL IN ( + col0 )
----

query I rowsort
SELECT ALL - 3 + col1 AS col1 FROM tab0
----
-2
18
78

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * col2 BETWEEN ( + col2 + 10 ) AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE 10 NOT BETWEEN ( - col1 ) AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 17 * 80 AS col0 FROM tab2 WHERE + 19 = col2
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE 1 / - col0 IS NOT NULL
----
51
67
77

query I rowsort
SELECT + 40 + ( - col2 ) AS col2 FROM tab2
----
-18
0
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1740
SELECT ALL - CAST( + 48 AS SIGNED ) * + 53 FROM tab2
----
-2544
-2544
-2544

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL - CAST ( + 48 AS INTEGER ) * + 53 FROM tab2
----
-2544
-2544
-2544

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + - 33 / - 46 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 71 FROM tab1 WHERE NULL IS NULL
----
71
71
71

query III rowsort
SELECT * FROM tab1 WHERE NOT + 10 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 78 FROM tab1 WHERE NOT ( + 57 + col1 * + col2 ) NOT IN ( col1 + col0 )
----

query I rowsort
SELECT + 97 AS col2 FROM tab0 WHERE ( + col0 ) IS NULL
----

query I rowsort
SELECT - 64 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col0 + - 0 AS col0 FROM tab2 WHERE NOT ( + col1 ) IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT DISTINCT ( MAX( + col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-1748
SELECT DISTINCT ( MAX ( + col0 ) ) FROM tab1
----
91

query I rowsort
SELECT 39 FROM tab1 AS cor0 WHERE col0 * 66 BETWEEN + 49 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1750
SELECT ALL COUNT( * ) DIV 12 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL COUNT ( * ) / 12 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + 4 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1348
299
3200

query I rowsort
SELECT ALL - ( 37 ) + - col0 AS col1 FROM tab0 AS cor0
----
-124
-134
-52

query I rowsort
SELECT 7 + + col1 * + 60 FROM tab2 AS cor0
----
3067
4027
4627

query I rowsort
SELECT + 24 + - col1 FROM tab2
----
-27
-43
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-1755
SELECT DISTINCT - col2 DIV + ( col0 ) AS col1 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-1755
SELECT DISTINCT - col2 / + ( col0 ) AS col1 FROM tab0
----
-1
-3
0

query I rowsort
SELECT ALL + ( + 14 ) * 73 FROM tab1 cor0 CROSS JOIN tab2
----
9 values hashing to 9931be6209b785c45125c2dbb8795fdc

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1757
SELECT ALL - COUNT( 72 ) * CAST( NULL AS SIGNED ) - - COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL - COUNT ( 72 ) * CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT COUNT( * ) col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1758
SELECT COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT 50 FROM tab2 AS cor0 WHERE NOT col0 / - 76 BETWEEN + col2 AND NULL
----
50

query I rowsort
SELECT ALL col0 * col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1761
SELECT * FROM tab1 AS cor0 WHERE col1 IN ( + CAST( - 49 AS SIGNED ) + col2 * - col2 )
----

skipif mysql # not compatible
query III rowsort label-1761
SELECT * FROM tab1 AS cor0 WHERE col1 IN ( + CAST ( - 49 AS INTEGER ) + col2 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT ALL + MIN( 79 ) AS col2 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL + MIN ( 79 ) AS col2 FROM tab1 AS cor0
----
79

query I rowsort
SELECT ALL 86 - + ( 68 ) AS col1 FROM tab1 cor0
----
18
18
18

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1765
SELECT DISTINCT - ( - 15 ) DIV - col1 AS col1 FROM tab1 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-1765
SELECT DISTINCT - ( - 15 ) / - col1 AS col1 FROM tab1 AS cor0
----
-1
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1766
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 83 * CAST( col1 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-1766
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 83 * CAST ( col1 AS INTEGER ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT + - 0 - + COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1767
SELECT + - 0 - + COUNT ( * ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col2 + - col1 FROM tab2 AS cor0 WHERE NOT ( col1 ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1769
SELECT - - ( col2 ) DIV 60 - 87 FROM tab0 AS cor0
----
-86
-87
-87

skipif mysql # not compatible
query I rowsort label-1769
SELECT - - ( col2 ) / 60 - 87 FROM tab0 AS cor0
----
-86
-87
-87

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 - col1 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col2 * - col1 col1 FROM tab2
----
123200
225388
26979

query I rowsort
SELECT col1 FROM tab2 WHERE NOT + col0 + - ( - 3 ) >= - 49 * - col1
----
51
67
77

query I rowsort
SELECT DISTINCT 76 * col0 AS col0 FROM tab2
----
3496
4864
5700

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1775
SELECT ALL - CAST( + col0 AS SIGNED ) DIV col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1775
SELECT ALL - CAST ( + col0 AS INTEGER ) / col2 FROM tab1
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT DISTINCT COUNT( * ) + 18 AS col2 FROM tab0 WHERE col2 NOT BETWEEN ( NULL ) AND - col2
----
21

skipif mysql # not compatible
query I rowsort label-1776
SELECT DISTINCT COUNT ( * ) + 18 AS col2 FROM tab0 WHERE col2 NOT BETWEEN ( NULL ) AND - col2
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-1777
SELECT + 34 + col2 DIV col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
35
40
45

skipif mysql # not compatible
query I rowsort label-1777
SELECT + 34 + col2 / col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
35
40
45

query I rowsort
SELECT ALL 54 AS col0 FROM tab0 cor0
----
54
54
54

query I rowsort
SELECT 55 * + + col1 AS col1 FROM tab1 AS cor0
----
2585
275
770

query I rowsort
SELECT col2 + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - ( 17 ) * - 31 FROM tab0 AS cor0
----
527
527
527

query I rowsort
SELECT + 16 * 11 - 50 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 19b1f1fcc466c23e5267b585248665fc

onlyif mysql # DIV for integer division: 
query II rowsort label-1783
SELECT DISTINCT 3, col0 DIV + col0 AS col2 FROM tab2
----
3
1

skipif mysql # not compatible
query II rowsort label-1783
SELECT DISTINCT 3, col0 / + col0 AS col2 FROM tab2
----
3
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1784
SELECT + 95 DIV - - col2 AS col1 FROM tab0
----
0
2
9

skipif mysql # not compatible
query I rowsort label-1784
SELECT + 95 / - - col2 AS col1 FROM tab0
----
0
2
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT DISTINCT + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-1785
SELECT DISTINCT + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT 86 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1788
SELECT DISTINCT + COUNT( * ), 77 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
80

skipif mysql # not compatible
query II rowsort label-1788
SELECT DISTINCT + COUNT ( * ), 77 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 col1, - 77 + + col0 + 68 * + col1 AS col0 FROM tab1 AS cor0
----
-59
348
-68
3210
-96
926

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT ALL - MIN( - - 10 ) col2 FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1790
SELECT ALL - MIN ( - - 10 ) col2 FROM tab2 AS cor0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 * - + 10 ) BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL - ( - - col2 ) * - - col0 AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE - ( + col2 ) <= ( + 57 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT DISTINCT COUNT( + + col2 ) + + - 71 FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-1794
SELECT DISTINCT COUNT ( + + col2 ) + + - 71 FROM tab0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1795
SELECT 66 * + 55 + + COUNT( * ) + + MAX( 76 ) DIV + ( CAST( 13 AS SIGNED ) ) FROM tab2
----
3638

skipif mysql # not compatible
query I rowsort label-1795
SELECT 66 * + 55 + + COUNT ( * ) + + MAX ( 76 ) / + ( CAST ( 13 AS INTEGER ) ) FROM tab2
----
3638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1796
SELECT ALL CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) + 40 * - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1796
SELECT ALL CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) + 40 * - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT ( + + 21 ) IS NULL
----
-51
-85
-91

query III rowsort
SELECT * FROM tab1 WHERE 22 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1799
SELECT ALL - CAST( - CAST( - 11 AS SIGNED ) AS SIGNED ) * + MIN( ( 96 ) ) + SUM( col0 ) FROM tab0
----
-857

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL - CAST ( - CAST ( - 11 AS INTEGER ) AS INTEGER ) * + MIN ( ( 96 ) ) + SUM ( col0 ) FROM tab0
----
-857

query I rowsort
SELECT col2 * - - col1 + - col1 AS col1 FROM tab1
----
1330
290
3149

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 50 ) NOT BETWEEN NULL AND col1
----

query III rowsort
SELECT * FROM tab2 WHERE col2 <= NULL AND NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 40 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - col2 AND ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 + 7 AS col2 FROM tab2 AS cor0 WHERE NOT 88 NOT BETWEEN + + col0 AND - - col1 + - 60
----

query I rowsort
SELECT col2 * col0 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IN ( col0 )
----

query I rowsort
SELECT ALL - - 35 FROM tab1 cor0
----
35
35
35

query I rowsort
SELECT DISTINCT + 26 * 80 * col2 - + col0 + + col1 FROM tab1 AS cor0
----
122640
141396
199643

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= ( col2 )
----

query I rowsort
SELECT ALL + col0 + - - 72 * - col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3266
-4544
-5325

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 78 + col0 = + col2
----

query I rowsort
SELECT DISTINCT + col2 + - 48 FROM tab1
----
11
20
48

query I rowsort
SELECT DISTINCT + col0 - col0 * - col2 FROM tab1
----
4947
5100
6279

query I rowsort
SELECT DISTINCT col0 - + 91 AS col1 FROM tab1 cor0
----
-40
-6
0

query I rowsort
SELECT ALL - col1 * 68 * + + 77 - ( - col2 ) FROM tab0 AS cor0
----
-109946
-424069
-5137

onlyif mysql # aggregate syntax: 
query II rowsort label-1816
SELECT - - COUNT( * ) * + COUNT( * ) + - 88, - COUNT( DISTINCT + + col1 ) AS col1 FROM tab2 AS cor0
----
-79
-3

skipif mysql # not compatible
query II rowsort label-1816
SELECT - - COUNT ( * ) * + COUNT ( * ) + - 88, - COUNT ( DISTINCT + + col1 ) AS col1 FROM tab2 AS cor0
----
-79
-3

query II rowsort
SELECT DISTINCT - ( - ( col2 ) ) AS col2, - col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT ALL COUNT( * ) * - 65 FROM tab1 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-1818
SELECT ALL COUNT ( * ) * - 65 FROM tab1 AS cor0
----
-195

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col0 * - col2 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1820
SELECT + col2 * - - 41 + - + col0 DIV + col0 AS col2 FROM tab1 cor0
----
2418
2787
3935

skipif mysql # not compatible
query I rowsort label-1820
SELECT + col2 * - - 41 + - + col0 / + col0 AS col2 FROM tab1 cor0
----
2418
2787
3935

query I rowsort
SELECT DISTINCT - col0 * - 96 * + col1 AS col2 FROM tab0 AS cor0
----
116640
175392
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT ALL - MIN( - 0 ) * - - 9 * SUM( DISTINCT + 46 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL - MIN ( - 0 ) * - - 9 * SUM ( DISTINCT + 46 ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1823
SELECT + col0 DIV + ( + col1 ) AS col0 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-1823
SELECT + col0 / + ( + col1 ) AS col0 FROM tab0 AS cor0
----
0
4
97

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 <> NULL
----

query I rowsort
SELECT ALL 76 * col2 + + col2 AS col0 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + col1 col0 FROM tab2
----
-2601
-4489
-5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col1, col1 * - - col1 col2 FROM tab1
----
-14
196
-47
2209
-5
25

onlyif mysql # DIV for integer division: 
query I rowsort label-1829
SELECT ALL 25 DIV + + 41 * + + col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL 25 / + + 41 * + + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - ( - + 90 ) AS col2 FROM tab2
----
90
90
90

query II rowsort
SELECT - col1, - col1 FROM tab1
----
-14
-14
-47
-47
-5
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1832
SELECT DISTINCT COUNT( * ) DIV - 91 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1832
SELECT DISTINCT COUNT ( * ) / - 91 FROM tab2
----
0

query I rowsort
SELECT 58 + + col2 AS col2 FROM tab2 WHERE NOT + col2 - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1834
SELECT + COUNT( * ), + ( 61 ) AS col0 FROM tab0
----
3
61

skipif mysql # not compatible
query II rowsort label-1834
SELECT + COUNT ( * ), + ( 61 ) AS col0 FROM tab0
----
3
61

query II rowsort
SELECT ALL - 52 AS col2, - ( col1 ) AS col2 FROM tab2
----
-52
-51
-52
-67
-52
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 col0, col1 FROM tab2 cor0
----
51
51
67
67
77
77

query I rowsort
SELECT - + col0 * + + 27 FROM tab1 AS cor0
----
-1377
-2295
-2457

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1838
SELECT DISTINCT + 39 * - CAST( 52 AS SIGNED ) / + ( CAST( NULL AS DECIMAL ) ) * + - col2 * 44 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT + 39 * - CAST ( 52 AS INTEGER ) / + ( CAST ( NULL AS REAL ) ) * + - col2 * 44 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT MAX( ALL - col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-1840
SELECT MAX ( ALL - col2 ) AS col0 FROM tab0
----
-10

query II rowsort
SELECT - ( + 92 ) AS col1, - col0 FROM tab0
----
-92
-15
-92
-87
-92
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1842
SELECT + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT + col2 * - 17 + - + col0 * + 99 FROM tab1 AS cor0
----
-10165
-6681
-9418

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( 21 ) col1, - col0 FROM tab0 cor0
----
-21
-15
-21
-87
-21
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - - col0 col1 FROM tab1 cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1848
SELECT ALL + COUNT( * ) DIV - SUM( ALL - - col0 ) + - 27 + - SUM( + col2 ) FROM tab2 AS cor0
----
-148

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL + COUNT ( * ) / - SUM ( ALL - - col0 ) + - 27 + - SUM ( + col2 ) FROM tab2 AS cor0
----
-148

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col2 NOT BETWEEN + + col0 * 68 AND - col1 * - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT DISTINCT MAX( ALL + - col0 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-1851
SELECT DISTINCT MAX ( ALL + - col0 ) AS col2 FROM tab0
----
-15

query II rowsort
SELECT col2, - col2 AS col1 FROM tab0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT DISTINCT 11 * + col0 + - col0 AS col0 FROM tab0
----
150
870
970

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1854
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1854
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 * CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT 6 AS col1 FROM tab2 WHERE col1 - + col1 + - 12 - - 60 NOT IN ( + 68 )
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT ALL MAX( + col0 ) col2 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1856
SELECT ALL MAX ( + col0 ) col2 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT - SUM( + 99 ) FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-1857
SELECT - SUM ( + 99 ) FROM tab0
----
-297

onlyif mysql # DIV for integer division: 
query II rowsort label-1858
SELECT - - 94 DIV col1 - - + 60 AS col0, 66 + 53 FROM tab1 AS cor0
----
62
119
66
119
78
119

skipif mysql # not compatible
query II rowsort label-1858
SELECT - - 94 / col1 - - + 60 AS col0, 66 + 53 FROM tab1 AS cor0
----
62
119
66
119
78
119

query II rowsort
SELECT DISTINCT + + col0, - col2 + - col1 + - col1 FROM tab1 AS cor0
----
51
-124
85
-69
91
-162

query I rowsort
SELECT + 90 + col1 AS col2 FROM tab2 AS cor0
----
141
157
167

query I rowsort
SELECT 96 * 98 * - - col0 FROM tab2 WHERE - + 62 IS NOT NULL
----
432768
602112
705600

query I rowsort
SELECT ALL - 65 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-65
-65
-65

query I rowsort
SELECT ALL + 37 AS col1 FROM tab0 cor0
----
37
37
37

query I rowsort
SELECT ALL - + col1 * col1 * + col0 AS col1 FROM tab0 AS cor0
----
-38367
-97
-98415

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND 88 - + 88 - - ( - col2 ) * + 68
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 IN ( + 71 * 61 / - + 68, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col2 * - 34 AS col1, - col0 * - 55 * col0 * - col2 FROM tab0 AS cor0
----
-1598
-581625
-3366
-51232005
-340
-4162950

onlyif mysql # aggregate syntax: 
query II rowsort label-1868
SELECT COUNT( * ), - COUNT( * ) AS col2 FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-1868
SELECT COUNT ( * ), - COUNT ( * ) AS col2 FROM tab2
----
3
-3

query I rowsort
SELECT - 83 * - col0 FROM tab0
----
1245
7221
8051

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT + COUNT( * ) * + COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-1870
SELECT + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT - COUNT( * ) FROM tab0 WHERE NOT - + 66 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1871
SELECT - COUNT ( * ) FROM tab0 WHERE NOT - + 66 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1872
SELECT - COUNT( * ) AS col1, 40 FROM tab1
----
-3
40

skipif mysql # not compatible
query II rowsort label-1872
SELECT - COUNT ( * ) AS col1, 40 FROM tab1
----
-3
40

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - - 24 - - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1874
SELECT ALL + MAX( DISTINCT - 33 ) DIV 40 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL + MAX ( DISTINCT - 33 ) / 40 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + + 81 * - col1 AS col0 FROM tab2 AS cor0
----
-4131
-5427
-6237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1876
SELECT - ( + + COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT 93 * CAST( NULL AS SIGNED ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1876
SELECT - ( + + COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT 93 * CAST ( NULL AS INTEGER ) IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1877
SELECT - col2 FROM tab1 WHERE NOT NULL IN ( + 3 + 56, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1877
SELECT - col2 FROM tab1 WHERE NOT NULL IN ( + 3 + 56, CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + ( + col2 ) + + - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 * - col0 col0 FROM tab1
----
-2091
-3485
-3731

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT COUNT( * ) AS col2 FROM tab2 cor0 WHERE ( + + col1 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1880
SELECT COUNT ( * ) AS col2 FROM tab2 cor0 WHERE ( + + col1 ) < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1881
SELECT DISTINCT - col2 + - col2 - - + col2 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT - col2 + - col2 - - + col2 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 41 + - 51 AS col2 FROM tab2 AS cor0
----
-92
-92
-92

query I rowsort
SELECT ALL - - col2 + col1 + - 3 FROM tab0 AS cor0
----
125
28
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( - + 23 ) IS NULL
----

query I rowsort
SELECT ALL ( + - 48 ) + - ( - 72 ) * + - col0 + ( + col2 ) AS col2 FROM tab2
----
-3337
-4616
-5390

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT - 54 + - SUM( + + col2 ) + + ( + - 21 ) * COUNT( * ) AS col2 FROM tab1
----
-340

skipif mysql # not compatible
query I rowsort label-1886
SELECT - 54 + - SUM ( + + col2 ) + + ( + - 21 ) * COUNT ( * ) AS col2 FROM tab1
----
-340

query III rowsort
SELECT * FROM tab1 WHERE - 72 IS NULL
----

query I rowsort
SELECT + col1 * 71 + col1 FROM tab0
----
1512
5832
72

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 29 * + + col1 < NULL
----

query I rowsort
SELECT ALL - ( + 89 ) FROM tab0
----
-89
-89
-89

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 < 67
----
87
21
10
97
1
99

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT + 7 <= NULL
----

query I rowsort
SELECT ( + 67 ) AS col1 FROM tab2 AS cor0
----
67
67
67

query II rowsort
SELECT - col0, col1 AS col0 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query I rowsort
SELECT DISTINCT - + 99 AS col0 FROM tab1 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT ALL + SUM( - ( - + 5 ) ) FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1896
SELECT ALL + SUM ( - ( - + 5 ) ) FROM tab2 AS cor0
----
15

query I rowsort
SELECT DISTINCT - col1 * + - col1 FROM tab2 cor0
----
2601
4489
5929

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT - COUNT( + - ( - + col2 ) ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1899
SELECT - COUNT ( + - ( - + col2 ) ) col1 FROM tab0
----
-3

query I rowsort
SELECT ALL - 44 * + col2 * + - 11 AS col0 FROM tab2
----
11132
19360
28072

query I rowsort
SELECT 85 * col1 * - + col0 FROM tab0
----
-103275
-155295
-8245

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - 6 ) IS NULL
----

query II rowsort
SELECT DISTINCT + + 42 * + 31, - col2 AS col1 FROM tab2 AS cor0
----
1302
-23
1302
-40
1302
-58

query I rowsort
SELECT DISTINCT - 90 + - col1 AS col2 FROM tab2 AS cor0
----
-141
-157
-167

onlyif mysql # DIV for integer division: 
query I rowsort label-1905
SELECT ALL + 50 DIV col0 AS col2 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL + 50 / col0 AS col2 FROM tab0 AS cor0
----
0
0
3

query II rowsort
SELECT + + 45 * - col0 * col2, col0 AS col1 FROM tab0 AS cor0
----
-31725
15
-39150
87
-432135
97

query I rowsort
SELECT DISTINCT - - col2 * - col0 + 24 AS col2 FROM tab1 AS cor0 WHERE col1 * + - col1 IS NOT NULL
----
-4872
-4991
-6164

query I rowsort
SELECT ALL + col0 * + col0 - col0 * 25 FROM tab2
----
2496
3750
966

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT DISTINCT + 16 + - MAX( col0 ) FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT + 16 + - MAX ( col0 ) FROM tab2
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col2 * + - col2 col0 FROM tab0
----
187
2224
9898

query I rowsort
SELECT ALL 38 - + col1 FROM tab2
----
-13
-29
-39

query I rowsort
SELECT ALL col1 - + - col1 AS col0 FROM tab1
----
10
28
94

onlyif mysql # DIV for integer division: 
query I rowsort label-1913
SELECT col0 DIV - col1 - - - col0 AS col1 FROM tab2
----
-46
-64
-76

skipif mysql # not compatible
query I rowsort label-1913
SELECT col0 / - col1 - - - col0 AS col1 FROM tab2
----
-46
-64
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-1914
SELECT + col1 DIV col0 - + 12 + ( - col0 ) AS col1 FROM tab1
----
-103
-63
-97

skipif mysql # not compatible
query I rowsort label-1914
SELECT + col1 / col0 - + 12 + ( - col0 ) AS col1 FROM tab1
----
-103
-63
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1915
SELECT - CAST( NULL AS DECIMAL ) - - col2 / + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1915
SELECT - CAST ( NULL AS REAL ) - - col2 / + col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1916
SELECT DISTINCT + col0 - + - CAST( NULL AS SIGNED ) + + + col2 col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1916
SELECT DISTINCT + col0 - + - CAST ( NULL AS INTEGER ) + + + col2 col1 FROM tab0
----
NULL

query I rowsort
SELECT - col0 * ( + - 96 ) FROM tab0 WHERE + col2 / + ( + + col1 ) NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col0, 2 + ( + col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 - col0 col1 FROM tab2 AS cor0
----
-10
-28
-39

query I rowsort
SELECT ( + 31 ) * - - col0 FROM tab1 AS cor0
----
1581
2635
2821

query I rowsort
SELECT 62 * + 34 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2706f9b9ed67dcab183b000a561abbb2

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT DISTINCT + + COUNT( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT + + COUNT ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * col1 NOT BETWEEN + col0 AND + col0 / 80
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1924
SELECT - col1 DIV + - col1 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1924
SELECT - col1 / + - col1 AS col2 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, + 76 col0 FROM tab1
----
14
76
47
76
5
76

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 54 + - col1 AS col1 FROM tab0
----
-27
33
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT ALL + + COUNT( ALL col0 ) + + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL + + COUNT ( ALL col0 ) + + COUNT ( * ) FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT ALL + COUNT( * ) * - COUNT( * ) col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1929
SELECT ALL + COUNT ( * ) * - COUNT ( * ) col1 FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1930
SELECT DISTINCT CAST( + - col2 AS SIGNED ) + - CAST( NULL AS SIGNED ) * + col2 + col0 col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1930
SELECT DISTINCT CAST ( + - col2 AS INTEGER ) + - CAST ( NULL AS INTEGER ) * + col2 + col0 col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1931
SELECT - CAST( NULL AS SIGNED ) * - 37 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1931
SELECT - CAST ( NULL AS INTEGER ) * - 37 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE - - col0 * - 18 IS NULL
----

query II rowsort
SELECT - col0 * - + col2 - 98 - + col2, + col0 FROM tab0 AS cor0
----
560
15
762
87
9406
97

query I rowsort
SELECT DISTINCT 79 * 71 * - - col0 AS col2 FROM tab2 AS cor0
----
258014
358976
420675

query I rowsort
SELECT - ( - col2 ) + ( - - 64 ) AS col2 FROM tab2 AS cor0
----
104
122
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT ALL COUNT( * ) / + AVG ( + col1 ) FROM tab1 cor0 WHERE NOT NULL > - 40 + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-1936
SELECT ALL COUNT ( * ) / + AVG ( + col1 ) FROM tab1 cor0 WHERE NOT NULL > - 40 + 90
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1937
SELECT + + col1 * + 15 * - + 54 + 37 DIV - col2 AS col1 FROM tab0 AS cor0
----
-17013
-65610
-810

skipif mysql # not compatible
query I rowsort label-1937
SELECT + + col1 * + 15 * - + 54 + 37 / - col2 AS col1 FROM tab0 AS cor0
----
-17013
-65610
-810

query I rowsort
SELECT col2 + - 35 AS col2 FROM tab0 AS cor0
----
-25
12
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE + col2 < + + col2
----
0

skipif mysql # not compatible
query I rowsort label-1939
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE + col2 < + + col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1940
SELECT DISTINCT - col0 * + - 41 + - - col0 * + col0 DIV ( col0 ) AS col0 FROM tab2
----
1932
2688
3150

skipif mysql # not compatible
query I rowsort label-1940
SELECT DISTINCT - col0 * + - 41 + - - col0 * + col0 / ( col0 ) AS col0 FROM tab2
----
1932
2688
3150

query I rowsort
SELECT DISTINCT 82 + - ( + + col1 ) FROM tab0
----
1
61
81

query III rowsort
SELECT * FROM tab0 WHERE - - col2 NOT IN ( - + 96, col1 * - col1, - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 45 FROM tab2 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT DISTINCT + - COUNT( * ) - + ( + ( + - ( - + 38 ) ) ) FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT + - COUNT ( * ) - + ( + ( + - ( - + 38 ) ) ) FROM tab1 AS cor0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1945
SELECT - CAST( NULL AS SIGNED ) * 89 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1945
SELECT - CAST ( NULL AS INTEGER ) * 89 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1946
SELECT COUNT( * ) DIV - - COUNT( * ) col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1946
SELECT COUNT ( * ) / - - COUNT ( * ) col2 FROM tab0 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT + SUM( ALL - col0 ) * + COUNT( DISTINCT col0 ) FROM tab1 AS cor0
----
-681

skipif mysql # not compatible
query I rowsort label-1947
SELECT + SUM ( ALL - col0 ) * + COUNT ( DISTINCT col0 ) FROM tab1 AS cor0
----
-681

query I rowsort
SELECT ALL + 9 * + 61 + col1 AS col2 FROM tab0 AS cor0
----
550
570
630

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT + MAX( ALL col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-1949
SELECT + MAX ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
58

query II rowsort
SELECT + col2 AS col1, col2 FROM tab2 cor0
----
23
23
40
40
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, - col0 FROM tab1 AS cor0
----
-14
-51
-47
-91
-5
-85

query II rowsort
SELECT ALL + col1 AS col1, 2 FROM tab0 AS cor0
----
1
2
21
2
81
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1953
SELECT DISTINCT + + CAST( + 76 AS SIGNED ) FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-1953
SELECT DISTINCT + + CAST ( + 76 AS INTEGER ) FROM tab0 AS cor0
----
76

query II rowsort
SELECT DISTINCT - + 60 AS col0, - col1 + - - col2 AS col0 FROM tab2 AS cor0
----
-60
-28
-60
-37
-60
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT ( + - 95 ) * + + COUNT( * ) FROM tab1
----
-285

skipif mysql # not compatible
query I rowsort label-1955
SELECT ( + - 95 ) * + + COUNT ( * ) FROM tab1
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT COUNT( * ) * 4 * - COUNT( * ) AS col1 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-1956
SELECT COUNT ( * ) * 4 * - COUNT ( * ) AS col1 FROM tab0
----
-36

query I rowsort
SELECT - 15 AS col0 FROM tab0 WHERE NOT NULL = - + 63
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1958
SELECT ( - ( + 57 ) ) * + + CAST( - + col1 AS SIGNED ) * + + 37 AS col0 FROM tab1
----
10545
29526
99123

skipif mysql # not compatible
query I rowsort label-1958
SELECT ( - ( + 57 ) ) * + + CAST ( - + col1 AS INTEGER ) * + + 37 AS col0 FROM tab1
----
10545
29526
99123

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT DISTINCT + SUM( ALL + - col2 ) AS col1 FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1959
SELECT DISTINCT + SUM ( ALL + - col2 ) AS col1 FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND col0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + - 96 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + 59 FROM tab1 AS cor0
----
118
127
155

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 21 + - col1 > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 + + + col1 + - col0 * + 49 FROM tab2 AS cor0
----
-2157
-2995
-3533

query I rowsort
SELECT 61 * - + col0 AS col2 FROM tab2
----
-2806
-3904
-4575

query I rowsort
SELECT + 48 FROM tab2 cor0 WHERE NULL IS NULL
----
48
48
48

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) < - ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1967
SELECT DISTINCT + ( 1 ) + - col1 + CAST( + col2 AS SIGNED ) - + 79 + + col0 * + CAST( 82 AS SIGNED ) FROM tab0 AS cor0
----
1118
7045
7974

skipif mysql # not compatible
query I rowsort label-1967
SELECT DISTINCT + ( 1 ) + - col1 + CAST ( + col2 AS INTEGER ) - + 79 + + col0 * + CAST ( 82 AS INTEGER ) FROM tab0 AS cor0
----
1118
7045
7974

query I rowsort
SELECT - col1 - + - 48 FROM tab2 AS cor0
----
-19
-29
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1969
SELECT - + col2 DIV + col1 + 19 DIV + 78 - - - col0 AS col0 FROM tab0 AS cor0
----
-15
-196
-87

skipif mysql # not compatible
query I rowsort label-1969
SELECT - + col2 / + col1 + 19 / + 78 - - - col0 AS col0 FROM tab0 AS cor0
----
-15
-196
-87

query I rowsort
SELECT col0 - + 97 * col2 FROM tab0
----
-4544
-883
-9506

query I rowsort
SELECT ALL - 54 + + - col1 FROM tab2
----
-105
-121
-131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1972
SELECT ALL + 45 / - + col1 - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL + 45 / - + col1 - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 15 - - col1, + col2 AS col2 FROM tab0
----
-14
99
6
10
66
47

query I rowsort
SELECT ALL 91 - - col0 * - + col0 AS col2 FROM tab0
----
-134
-7478
-9318

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1975
SELECT DISTINCT + col1 * + col1, CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
2601
51
4489
67
5929
77

skipif mysql # not compatible
query II rowsort label-1975
SELECT DISTINCT + col1 * + col1, CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
2601
51
4489
67
5929
77

query I rowsort
SELECT + - 79 FROM tab2 WHERE NOT col0 * + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 17 FROM tab2 WHERE NOT - col2 IS NULL
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT DISTINCT + 24 * - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-216

skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT + 24 * - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1979
SELECT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT 5 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1979
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 5 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - 18 ) FROM tab2 AS cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT ALL + ( + SUM( col0 ) ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL + ( + SUM ( col0 ) ) AS col1 FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1982
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( ( CAST( NULL AS SIGNED ) ), + col0 )
----

skipif mysql # not compatible
query III rowsort label-1982
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( ( CAST ( NULL AS INTEGER ) ), + col0 )
----

query II rowsort
SELECT + - 29, col0 + ( - 0 ) * 21 AS col1 FROM tab2 cor0
----
-29
46
-29
64
-29
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT SUM( ALL + col2 ) FROM tab0 AS cor0 WHERE NOT ( ( - col1 ) <> NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1984
SELECT SUM ( ALL + col2 ) FROM tab0 AS cor0 WHERE NOT ( ( - col1 ) <> NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT + MAX( col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1985
SELECT + MAX ( col0 ) FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT ALL + COUNT( * ) FROM tab2 WHERE ( 75 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL + COUNT ( * ) FROM tab2 WHERE ( 75 ) IS NULL
----
0

query I rowsort
SELECT col2 * - 8 - + col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 65 + + + col2 * + col1 * 72 + + + 2 AS col2 FROM tab0
----
15187
274171
7195

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col1 AS col1, - 66 * - col2 AS col1 FROM tab1
----
14
6336
47
4488
5
3894

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT + COUNT( * ) col0 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1991
SELECT + COUNT ( * ) col0 FROM tab1 WHERE NULL IS NULL
----
3

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL 1 + - col1 AS col2 FROM tab2 AS cor0
----
-50
-66
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1, + col1 col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT - col0 + + col1 + - col0 AS col1 FROM tab2 AS cor0
----
-41
-51
-83

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL IN ( - ( - col2 ), + 86 + - - ( - 51 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + + col1 + + col0 AND + col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 46 <> + col2 * - col0 + + 46 + - col0 / + + col1 * ( 13 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2000
SELECT CAST( ( - col0 ) AS SIGNED ) + - col2 * + - col0 FROM tab0 WHERE - col1 IS NOT NULL
----
690
783
9506

skipif mysql # not compatible
query I rowsort label-2000
SELECT CAST ( ( - col0 ) AS INTEGER ) + - col2 * + - col0 FROM tab0 WHERE - col1 IS NOT NULL
----
690
783
9506

query II rowsort
SELECT col1 - + + 60, col0 * - - col0 AS col1 FROM tab2
----
-9
2116
17
4096
7
5625

query II rowsort
SELECT + col0 + col1, col0 FROM tab1 AS cor0
----
138
91
65
51
90
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2003
SELECT col0 + + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2003
SELECT col0 + + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 67 * + 59 + - col0 FROM tab1 AS cor0
----
3862
3868
3902

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT ALL - - 69 - 98 + + MAX( + 83 ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-2005
SELECT ALL - - 69 - 98 + + MAX ( + 83 ) FROM tab2 AS cor0
----
54

query I rowsort
SELECT + + 43 + + 29 FROM tab1 cor0
----
72
72
72

query II rowsort
SELECT ALL + col1 * + + col0 AS col0, col1 AS col2 FROM tab0 AS cor0
----
1215
81
1827
21
97
1

query I rowsort
SELECT - + ( - col1 ) * + + col1 * 25 + col0 + - 12 AS col1 FROM tab1 AS cor0
----
4939
55304
698

query II rowsort
SELECT + col1 + - + 22 AS col2, + 66 AS col2 FROM tab2 AS cor0
----
29
66
45
66
55
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT + COUNT( * ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2010
SELECT + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT DISTINCT + ( - + COUNT( * ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2011
SELECT DISTINCT + ( - + COUNT ( * ) ) FROM tab1
----
-3

query I rowsort
SELECT ALL - ( + - col2 ) FROM tab0
----
10
47
99

query I rowsort
SELECT + ( + + 66 ) AS col1 FROM tab2
----
66
66
66

query II rowsort
SELECT + col2 AS col2, + col0 * + col0 FROM tab1 AS cor0
----
59
7225
68
8281
96
2601

query I rowsort
SELECT ALL + col1 * 44 FROM tab1 AS cor0
----
2068
220
616

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2016
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL >= + 71 + + - CAST( NULL AS SIGNED ) * - 16 ) )
----

skipif mysql # not compatible
query III rowsort label-2016
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL >= + 71 + + - CAST ( NULL AS INTEGER ) * - 16 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2017
SELECT DISTINCT - + 41 * + + 50 - - - col2 DIV + + 97 AS col2 FROM tab0 AS cor0
----
-2050
-2051

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT - + 41 * + + 50 - - - col2 / + + 97 AS col2 FROM tab0 AS cor0
----
-2050
-2051

query I rowsort
SELECT ALL 60 AS col1 FROM tab2 cor0
----
60
60
60

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( + col2 ) NOT IN ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT - 13 * - COUNT( * ) AS col0 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-2020
SELECT - 13 * - COUNT ( * ) AS col0 FROM tab0
----
39

query I rowsort
SELECT + 80 * - 55 * col1 FROM tab1
----
-206800
-22000
-61600

onlyif mysql # DIV for integer division: 
query II rowsort label-2022
SELECT ALL col1 DIV - col1, col2 AS col2 FROM tab0 AS cor0
----
-1
10
-1
47
-1
99

skipif mysql # not compatible
query II rowsort label-2022
SELECT ALL col1 / - col1, col2 AS col2 FROM tab0 AS cor0
----
-1
10
-1
47
-1
99

query I rowsort
SELECT ALL + 97 AS col0 FROM tab0 cor0
----
97
97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2024
SELECT + col0 + col1 + - - col1 DIV - col1 AS col2 FROM tab1 AS cor0
----
137
64
89

skipif mysql # not compatible
query I rowsort label-2024
SELECT + col0 + col1 + - - col1 / - col1 AS col2 FROM tab1 AS cor0
----
137
64
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 89 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2025
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 89 = NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 81 / - 26 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE col1 * col2 BETWEEN 59 AND col2 - - - ( - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 83 * - 46 * col2 <= ( - col2 ) + - ( 11 ) + ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) col1 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2030
SELECT 34 / CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2030
SELECT 34 / CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2031
SELECT ALL 8 * + - col1 + 25 DIV + col0 * + col2 + + col1 FROM tab1 AS cor0
----
-329
-35
-98

skipif mysql # not compatible
query I rowsort label-2031
SELECT ALL 8 * + - col1 + 25 / + col0 * + col2 + + col1 FROM tab1 AS cor0
----
-329
-35
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT 72 + SUM( + col1 ) AS col0 FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-2032
SELECT 72 + SUM ( + col1 ) AS col0 FROM tab2
----
267

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2033
SELECT ALL - 48 + + 84 + 69 / + CAST( NULL AS SIGNED ) + + - ( col1 ) AS col1, 85 FROM tab0
----
NULL
85
NULL
85
NULL
85

skipif mysql # not compatible
query II rowsort label-2033
SELECT ALL - 48 + + 84 + 69 / + CAST ( NULL AS INTEGER ) + + - ( col1 ) AS col1, 85 FROM tab0
----
NULL
85
NULL
85
NULL
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT DISTINCT + - MAX( - 79 ) AS col0 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-2034
SELECT DISTINCT + - MAX ( - 79 ) AS col0 FROM tab2 AS cor0
----
79

query II rowsort
SELECT DISTINCT - - col1 AS col2, - 98 AS col1 FROM tab1 AS cor0
----
14
-98
47
-98
5
-98

query I rowsort
SELECT ALL - 13 * - + col2 / - + col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col1 + - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT ( + ( - - 92 ) ) * ( - 75 ) * + + COUNT( * ) + - 87 FROM tab1 cor0
----
-20787

skipif mysql # not compatible
query I rowsort label-2037
SELECT ( + ( - - 92 ) ) * ( - 75 ) * + + COUNT ( * ) + - 87 FROM tab1 cor0
----
-20787

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2038
SELECT + MIN( DISTINCT - CAST( - 66 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2038
SELECT + MIN ( DISTINCT - CAST ( - 66 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
66

query I rowsort
SELECT ALL - 97 * - + ( + 40 ) FROM tab0 AS cor0
----
3880
3880
3880

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2040
SELECT DISTINCT 98 * + col0 AS col0, col1 / + + CAST( NULL AS SIGNED ) FROM tab0
----
1470
NULL
8526
NULL
9506
NULL

skipif mysql # not compatible
query II rowsort label-2040
SELECT DISTINCT 98 * + col0 AS col0, col1 / + + CAST ( NULL AS INTEGER ) FROM tab0
----
1470
NULL
8526
NULL
9506
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT 56 * - MIN( DISTINCT - col1 ) AS col2 FROM tab2
----
4312

skipif mysql # not compatible
query I rowsort label-2041
SELECT 56 * - MIN ( DISTINCT - col1 ) AS col2 FROM tab2
----
4312

onlyif mysql # DIV for integer division: 
query I rowsort label-2042
SELECT - col1 DIV col1 DIV + 60 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2042
SELECT - col1 / col1 / + 60 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT DISTINCT COUNT( col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2043
SELECT DISTINCT COUNT ( col0 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT - ( + 6 ) AS col0 FROM tab2
----
-6
-6
-6

query III rowsort
SELECT * FROM tab2 WHERE NOT + 26 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT + MIN( col1 ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2046
SELECT + MIN ( col1 ) AS col0 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT + + COUNT( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN - 35 + - col2 + col2 AND col0 * 79 * col2
----
0

skipif mysql # not compatible
query I rowsort label-2047
SELECT + + COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN - 35 + - col2 + col2 AND col0 * 79 * col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT DISTINCT + 46 * + COUNT( col2 ) AS col2 FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT + 46 * + COUNT ( col2 ) AS col2 FROM tab2 AS cor0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT - COUNT( + 88 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2049
SELECT - COUNT ( + 88 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT 96 * + 24 FROM tab2 AS cor0
----
2304
2304
2304

onlyif mysql # DIV for integer division: 
query I rowsort label-2051
SELECT + col1 * + col1 + + - 37 DIV col0 FROM tab2 cor0
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-2051
SELECT + col1 * + col1 + + - 37 / col0 FROM tab2 cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT + COUNT( * ) col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2052
SELECT + COUNT ( * ) col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT ( col1 ) * - 57 - - col2 AS col1 FROM tab1 AS cor0
----
-226
-2611
-702

query I rowsort
SELECT ALL - ( + col2 ) FROM tab1 AS cor0 WHERE + col2 <= col2
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2055
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * - 24 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2055
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - 24 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT NULL > col2 / + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col1 ) col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT col2 + - col1 + - 19 FROM tab2 AS cor0
----
-28
-47
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT - ( + + COUNT( * ) ) + - 83 FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-2059
SELECT - ( + + COUNT ( * ) ) + - 83 FROM tab1
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-2060
SELECT - col2 DIV + col2 + + col0 AS col0 FROM tab2
----
45
63
74

skipif mysql # not compatible
query I rowsort label-2060
SELECT - col2 / + col2 + + col0 AS col0 FROM tab2
----
45
63
74

query I rowsort
SELECT - - 80 FROM tab1 WHERE - 6 + col0 = - col0 - col2
----

query I rowsort
SELECT ALL col1 * - col2 * 99 AS col0 FROM tab1
----
-133056
-29205
-316404

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT DISTINCT + COUNT( * ) * + 66 + AVG ( ALL - col2 ) FROM tab0 WHERE NOT NULL <= - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT + COUNT ( * ) * + 66 + AVG ( ALL - col2 ) FROM tab0 WHERE NOT NULL <= - - col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - col0 col0 FROM tab1
----
138
65
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2065
SELECT DISTINCT - 72 DIV col2 FROM tab0 AS cor0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT - 72 / col2 FROM tab0 AS cor0
----
-1
-7
0

query I rowsort
SELECT + + col1 * + 68 AS col2 FROM tab0 AS cor0
----
1428
5508
68

query II rowsort
SELECT ALL col2 * - col1 + col0 + + 14 AS col1, col2 AS col1 FROM tab2 AS cor0
----
-1113
23
-3002
40
-3797
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2068
SELECT - col0 / - CAST( NULL AS SIGNED ) - + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2068
SELECT - col0 / - CAST ( NULL AS INTEGER ) - + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + 17 ) * + col0 AS col2 FROM tab2 cor0
----
-1088
-1275
-782

query I rowsort
SELECT 97 * col1 AS col1 FROM tab2 AS cor0
----
4947
6499
7469

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT - ( col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT ALL + MAX( - + 85 ) FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL + MAX ( - + 85 ) FROM tab2 AS cor0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT ALL SUM( DISTINCT col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL SUM ( DISTINCT col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-2074
SELECT ALL + 34 AS col2, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
34
-3

skipif mysql # not compatible
query II rowsort label-2074
SELECT ALL + 34 AS col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
34
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT + + COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT 77 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2075
SELECT + + COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT 77 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2076
SELECT - col2 * col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2076
SELECT - col2 * col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col0 AS col0, 9 AS col0 FROM tab1 AS cor0
----
51
9
85
9
91
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT - COUNT( * ) * + 60 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-540

skipif mysql # not compatible
query I rowsort label-2079
SELECT - COUNT ( * ) * + 60 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT ( NOT NULL < col2 / + - 55 )
----
0

skipif mysql # not compatible
query I rowsort label-2080
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT ( NOT NULL < col2 / + - 55 )
----
0

query I rowsort
SELECT ( - + col1 ) AS col0 FROM tab1
----
-14
-47
-5

query II rowsort
SELECT ALL col2 AS col2, + col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2083
SELECT DISTINCT col1 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) >= + col2
----

skipif mysql # not compatible
query I rowsort label-2083
SELECT DISTINCT col1 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) >= + col2
----

query II rowsort
SELECT + + col0, 54 * + + 22 * - 2 AS col2 FROM tab1 AS cor0
----
51
-2376
85
-2376
91
-2376

onlyif mysql # aggregate syntax: 
query II rowsort label-2085
SELECT DISTINCT - + COUNT( * ) AS col2, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-2085
SELECT DISTINCT - + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
3

query II rowsort
SELECT DISTINCT + + col0 AS col0, 89 FROM tab2 AS cor0
----
46
89
64
89
75
89

query I rowsort
SELECT DISTINCT - - col1 * + - 37 + - 83 FROM tab2 cor0
----
-1970
-2562
-2932

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2088
SELECT ALL * FROM tab1 WHERE NOT + col0 * + CAST( - - ( + - ( CAST( + + 3 AS SIGNED ) ) ) AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2088
SELECT ALL * FROM tab1 WHERE NOT + col0 * + CAST ( - - ( + - ( CAST ( + + 3 AS INTEGER ) ) ) AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + - 36 * - col0 * col2 * + col0 + + + col2 FROM tab0
----
2724829
33533774
380666

query I rowsort
SELECT 59 * + ( + 6 ) + + 19 FROM tab2
----
373
373
373

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT DISTINCT - - COUNT( * ) + + + MIN( - 57 ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-2091
SELECT DISTINCT - - COUNT ( * ) + + + MIN ( - 57 ) FROM tab1 AS cor0
----
-54

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 > - 97
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2093
SELECT DISTINCT + 46 DIV + col0 + + CAST( - 63 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-62
-63

skipif mysql # not compatible
query I rowsort label-2093
SELECT DISTINCT + 46 / + col0 + + CAST ( - 63 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-62
-63

query I rowsort
SELECT ALL + 12 FROM tab1 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 82 + - 41 * + 76 FROM tab1
----
-3034

query I rowsort
SELECT ALL 53 + col0 FROM tab1
----
104
138
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2097
SELECT ALL COUNT( * ) * - CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2097
SELECT ALL COUNT ( * ) * - CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 * - 26 - - ( - - 71 ) FROM tab0
----
-2035
-475
45

query I rowsort
SELECT ALL 17 FROM tab0 cor0
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT DISTINCT MAX( + 59 ) AS col1 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2100
SELECT DISTINCT MAX ( + 59 ) AS col1 FROM tab0 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT 99 + + ( 86 ) * 63 + COUNT( * ) FROM tab2 AS cor0
----
5520

skipif mysql # not compatible
query I rowsort label-2101
SELECT 99 + + ( 86 ) * 63 + COUNT ( * ) FROM tab2 AS cor0
----
5520

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT + MAX( ALL + + 57 ) AS col1 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-2102
SELECT + MAX ( ALL + + 57 ) AS col1 FROM tab0 AS cor0
----
57

query I rowsort
SELECT DISTINCT + col1 * + col2 + + col2 * - - col0 * + col0 FROM tab0
----
14382
75900
931590

query II rowsort
SELECT ALL - ( - col1 ) AS col0, 82 FROM tab2 AS cor0
----
51
82
67
82
77
82

query I rowsort
SELECT + ( - + ( - col1 ) ) AS col0 FROM tab2 cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT - - COUNT( * ) * - + 78 AS col2 FROM tab1 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-2106
SELECT - - COUNT ( * ) * - + 78 AS col2 FROM tab1 AS cor0
----
-234

query II rowsort
SELECT DISTINCT - - 61 * col2, col1 AS col1 FROM tab2 AS cor0
----
1403
51
2440
77
3538
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2108
SELECT ALL 46 * + COUNT( * ) * + MAX( DISTINCT + + ( + + 29 ) ) * - CAST( - 80 AS SIGNED ) - 90 AS col2 FROM tab1 AS cor0
----
320070

skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL 46 * + COUNT ( * ) * + MAX ( DISTINCT + + ( + + 29 ) ) * - CAST ( - 80 AS INTEGER ) - 90 AS col2 FROM tab1 AS cor0
----
320070

onlyif mysql # DIV for integer division: 
query I rowsort label-2109
SELECT col2 DIV 20 col0 FROM tab2
----
1
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2109
SELECT col2 / 20 col0 FROM tab2
----
1
2
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2110
SELECT DISTINCT - ( + - COUNT( * ) ) DIV - MIN( ALL - 95 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2110
SELECT DISTINCT - ( + - COUNT ( * ) ) / - MIN ( ALL - 95 ) FROM tab0
----
0

query I rowsort
SELECT ALL + ( + 86 ) FROM tab2
----
86
86
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2112
SELECT ALL - 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-2112
SELECT ALL - CAST ( + col0 AS INTEGER ) col2 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 / - 19 IS NOT NULL )
----

query I rowsort
SELECT 43 + + ( - - col0 ) AS col1 FROM tab2 AS cor0
----
107
118
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2115
SELECT - 77 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2115
SELECT - 77 * + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2116
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2117
SELECT - + 93 + + - ( - CAST( NULL AS SIGNED ) ) + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2117
SELECT - + 93 + + - ( - CAST ( NULL AS INTEGER ) ) + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col0 AS col1, 60 AS col0 FROM tab1 AS cor0
----
-51
60
-85
60
-91
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT + COUNT( * ) + + + 93 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2119
SELECT + COUNT ( * ) + + + 93 FROM tab0 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2120
SELECT DISTINCT + col2 AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-2120
SELECT DISTINCT + col2 AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2121
SELECT SUM( - - 50 ) * - - ( CAST( NULL AS SIGNED ) ) - + AVG ( - 70 ) + + ( + CAST( NULL AS SIGNED ) ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2121
SELECT SUM ( - - 50 ) * - - ( CAST ( NULL AS INTEGER ) ) - + AVG ( - 70 ) + + ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 27 + + - ( - 82 ) FROM tab1 AS cor0
----
109
109
109

query I rowsort
SELECT ( + - 2 ) + - - 68 FROM tab1
----
66
66
66

query I rowsort
SELECT DISTINCT + col0 + - 43 FROM tab2
----
21
3
32

onlyif mysql # aggregate syntax: 
query II rowsort label-2125
SELECT MIN( + - 97 ), - COUNT( * ) AS col1 FROM tab0
----
-97
-3

skipif mysql # not compatible
query II rowsort label-2125
SELECT MIN ( + - 97 ), - COUNT ( * ) AS col1 FROM tab0
----
-97
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT + MIN( ALL + + 45 ) AS col0 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-2126
SELECT + MIN ( ALL + + 45 ) AS col0 FROM tab2 AS cor0
----
45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2127
SELECT ALL col2 DIV - CAST( 81 AS SIGNED ) FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL col2 / - CAST ( 81 AS INTEGER ) FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2128
SELECT DISTINCT - col0 DIV + - col2 AS col2 FROM tab0
----
0
8

skipif mysql # not compatible
query I rowsort label-2128
SELECT DISTINCT - col0 / + - col2 AS col2 FROM tab0
----
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col2 FROM tab2 WHERE NULL <> + 6 * - + 5
----

query II rowsort
SELECT + col1, 97 FROM tab0
----
1
97
21
97
81
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT - ( + MAX( col1 ) ) AS col2 FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2131
SELECT - ( + MAX ( col1 ) ) AS col2 FROM tab1 cor0
----
-47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 BETWEEN + col1 AND - + col2
----

query I rowsort
SELECT ALL - col2 * + 6 * + col1 AS col0 FROM tab2 AS cor0
----
-18480
-23316
-7038

query I rowsort
SELECT DISTINCT + - 49 FROM tab0 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT SUM( DISTINCT + + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2135
SELECT SUM ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 23 - - col2 + - col0 - + 51 * - + col2 + - + 1 col2 FROM tab0 AS cor0
----
2433
2773
7281

query I rowsort
SELECT ALL - 60 * - 11 FROM tab0 cor0
----
660
660
660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2138
SELECT DISTINCT COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2138
SELECT DISTINCT COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2139
SELECT DISTINCT ( + - col0 ) DIV - col2 + + col2 * + 51 FROM tab0 AS cor0
----
2397
5049
518

skipif mysql # not compatible
query I rowsort label-2139
SELECT DISTINCT ( + - col0 ) / - col2 + + col2 * + 51 FROM tab0 AS cor0
----
2397
5049
518

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT - COUNT( * ) FROM tab1 WHERE NOT + + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2140
SELECT - COUNT ( * ) FROM tab1 WHERE NOT + + col1 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2141
SELECT DISTINCT 9 DIV + - ( - 95 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2141
SELECT DISTINCT 9 / + - ( - 95 ) AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL + 34 * + 88 FROM tab1 WHERE NOT 63 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT DISTINCT MIN( col2 ) FROM tab1 WHERE NOT + - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2143
SELECT DISTINCT MIN ( col2 ) FROM tab1 WHERE NOT + - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT 50 * - + col1 * + col0 AS col2 FROM tab1
----
-21250
-213850
-35700

query I rowsort
SELECT + col0 * + - ( + 34 ) FROM tab1
----
-1734
-2890
-3094

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 - + col1 BETWEEN - 71 + col0 AND + - 93
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2147
SELECT ALL COUNT( * ) AS col0, COUNT( * ) * MIN( - - col1 ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-2147
SELECT ALL COUNT ( * ) AS col0, COUNT ( * ) * MIN ( - - col1 ) FROM tab0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2148
SELECT ALL - ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2149
SELECT - + SUM( - + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2149
SELECT - + SUM ( - + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2150
SELECT - 48 DIV COUNT( * ) FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-2150
SELECT - 48 / COUNT ( * ) FROM tab0 AS cor0
----
-16

query II rowsort
SELECT DISTINCT - 51, col0 AS col0 FROM tab1 AS cor0
----
-51
51
-51
85
-51
91

query II rowsort
SELECT DISTINCT + 73 AS col2, + col0 * - col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2153
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2153
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT - 17 + + 57 * - col1 FROM tab2 AS cor0
----
-2924
-3836
-4406

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2155
SELECT DISTINCT - 47 + - col2 - + col1 * + + col2 * + col1 * - col2 * - col0 * + 93 / - col2 - CAST( NULL AS SIGNED ) - - col1 / + - 45 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2155
SELECT DISTINCT - 47 + - col2 - + col1 * + + col2 * + col1 * - col2 * - col0 * + 93 / - col2 - CAST ( NULL AS INTEGER ) - - col1 / + - 45 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2156
SELECT COUNT( * ) DIV - MIN( ALL + 38 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2156
SELECT COUNT ( * ) / - MIN ( ALL + 38 ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT - 60 - + MIN( ALL + 33 ) FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-2157
SELECT - 60 - + MIN ( ALL + 33 ) FROM tab2
----
-93

onlyif mysql # DIV for integer division: 
query II rowsort label-2158
SELECT col0 * + col1 - col0 DIV col0 * + 1 + - - col2 * 13 AS col2, + col1 AS col2 FROM tab2
----
2644
51
5447
77
5778
67

skipif mysql # not compatible
query II rowsort label-2158
SELECT col0 * + col1 - col0 / col0 * + 1 + - - col2 * 13 AS col2, + col1 AS col2 FROM tab2
----
2644
51
5447
77
5778
67

query I rowsort
SELECT - col1 FROM tab0 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - col1 - - 43 + + 68 - - col0 col0 FROM tab0
----
264
304
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT - COUNT( DISTINCT - col1 ) - - ( + 44 ) + - 28 AS col1 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-2161
SELECT - COUNT ( DISTINCT - col1 ) - - ( + 44 ) + - 28 AS col1 FROM tab1
----
13

query II rowsort
SELECT + col0 AS col1, col1 * col0 * + 52 FROM tab0 WHERE 86 * + - col0 * - 19 * - col2 + + ( - col2 ) IS NOT NULL
----
15
63180
87
95004
97
5044

query I rowsort
SELECT ALL + col0 - - col2 + 45 FROM tab2
----
114
149
178

query I rowsort
SELECT 57 + + 3 FROM tab0
----
60
60
60

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - ( col0 ) NOT IN ( + + ( - col1 ), 44, - col1, col0 + - col0 + col1, - + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL >= - - 7 + - col0 * col1 * 55 + + ( + + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT - MAX( DISTINCT - + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2167
SELECT - MAX ( DISTINCT - + col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT - - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2169
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 37 - col1 * - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2169
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 37 - col1 * - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2170
SELECT 77 DIV + col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2170
SELECT 77 / + col2 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2171
SELECT col0 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2171
SELECT col0 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 22 col0 FROM tab0 AS cor0
----
-22
-22
-22

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 + + 50 <> + 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT - SUM( - - ( + - col1 ) ) * MAX( + - col0 ) FROM tab1 AS cor0
----
-3366

skipif mysql # not compatible
query I rowsort label-2175
SELECT - SUM ( - - ( + - col1 ) ) * MAX ( + - col0 ) FROM tab1 AS cor0
----
-3366

query I rowsort
SELECT col0 * + - 70 FROM tab1
----
-3570
-5950
-6370

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT MIN( - + ( - col0 ) ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2177
SELECT MIN ( - + ( - col0 ) ) AS col0 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT + SUM( ALL - 37 ) AS col0 FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-2178
SELECT + SUM ( ALL - 37 ) AS col0 FROM tab0
----
-111

query II rowsort
SELECT ALL - col1 AS col1, + col2 * + + col0 * col0 AS col0 FROM tab2
----
-51
48668
-67
326250
-77
163840

query II rowsort
SELECT DISTINCT 60, + col2 * 4 * + - ( - 60 ) + + + 84 AS col2 FROM tab1
----
60
14244
60
16404
60
23124

query I rowsort
SELECT + + 52 + + col0 FROM tab1 AS cor0
----
103
137
143

query I rowsort
SELECT ALL + + col0 * - col2 - - ( - - 96 ) FROM tab2 AS cor0
----
-2464
-4254
-962

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT MIN( col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2183
SELECT MIN ( col0 ) AS col1 FROM tab0
----
15

query I rowsort
SELECT ALL - col2 * 50 FROM tab2 WHERE NOT ( + 84 ) = col2 - 6
----
-1150
-2000
-2900

onlyif mysql # DIV for integer division: 
query I rowsort label-2185
SELECT 87 DIV col2 col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2185
SELECT 87 / col2 col1 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT + 82 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 78 + col2 AS col1 FROM tab1
----
-10
-19
18

onlyif mysql # DIV for integer division: 
query I rowsort label-2188
SELECT col2 DIV - col0 col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2188
SELECT col2 / - col0 col0 FROM tab0
----
-1
-3
0

query III rowsort
SELECT ALL * FROM tab2 WHERE 82 NOT BETWEEN NULL AND ( 53 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT DISTINCT - COUNT( * ) * 84 + + 75 FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-2190
SELECT DISTINCT - COUNT ( * ) * 84 + + 75 FROM tab0
----
-177

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * + 42 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= - col0 - - 40
----

query III rowsort
SELECT * FROM tab2 WHERE - 59 > 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT DISTINCT + COUNT( * ) * 5 col1 FROM tab1
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2194
SELECT DISTINCT + COUNT ( * ) * 5 col1 FROM tab1
----
15

query I rowsort
SELECT 66 * col1 FROM tab1
----
3102
330
924

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT SUM( + 82 ) col2 FROM tab0
----
246

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2197
SELECT SUM ( + 82 ) col2 FROM tab0
----
246

query I rowsort
SELECT DISTINCT - 59 * + 59 AS col1 FROM tab2
----
-3481

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2199
SELECT - col2 + CAST( + col0 AS SIGNED ) FROM tab2
----
17
23
24

skipif mysql # not compatible
query I rowsort label-2199
SELECT - col2 + CAST ( + col0 AS INTEGER ) FROM tab2
----
17
23
24

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND 2
----

query III rowsort
SELECT * FROM tab2 WHERE col1 * - 87 NOT IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( + 62 ) >= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2203
SELECT ALL + CAST( MAX( DISTINCT col0 ) AS SIGNED ) - + 99 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL + CAST ( MAX ( DISTINCT col0 ) AS INTEGER ) - + 99 FROM tab2
----
-24

query I rowsort
SELECT DISTINCT col1 - 12 AS col2 FROM tab2
----
39
55
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT DISTINCT MIN( + 76 ) + - COUNT( * ) col1 FROM tab1
----
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2205
SELECT DISTINCT MIN ( + 76 ) + - COUNT ( * ) col1 FROM tab1
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2206
SELECT + CAST( NULL AS SIGNED ) * 74 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2206
SELECT + CAST ( NULL AS INTEGER ) * 74 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * 62 FROM tab1 AS cor0
----
2914
310
868

query I rowsort
SELECT DISTINCT ( - 25 ) AS col0 FROM tab2 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT ALL MAX( - col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL MAX ( - col2 ) AS col0 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT ALL 27 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 43 * + 33 BETWEEN 29 AND ( - 57 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2212
SELECT ALL - CAST( NULL AS SIGNED ) + 23 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL - CAST ( NULL AS INTEGER ) + 23 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2213
SELECT 12 + CAST( NULL AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2213
SELECT 12 + CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - 74 * - col1 AS col2 FROM tab1
----
1036
3478
370

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT COUNT( + 98 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2215
SELECT COUNT ( + 98 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT - col2 * 91 FROM tab2 AS cor0
----
-2093
-3640
-5278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2217
SELECT CAST( 81 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
23
41
58

skipif mysql # not compatible
query I rowsort label-2217
SELECT CAST ( 81 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
23
41
58

query I rowsort
SELECT ( - col2 ) * + col0 + 66 AS col0 FROM tab0 AS cor0
----
-639
-804
-9537

query I rowsort
SELECT DISTINCT - + 22 + - col2 * col1 AS col0 FROM tab0 AS cor0
----
-121
-232
-3829

query I rowsort
SELECT DISTINCT 98 + col2 FROM tab0 AS cor0
----
108
145
197

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 / 92 IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 96 IS NULL
----

query I rowsort
SELECT + 67 * col0 AS col0 FROM tab2 AS cor0 WHERE NOT col2 * - col2 - - col2 IS NULL
----
3082
4288
5025

query I rowsort
SELECT DISTINCT col2 + + 67 FROM tab2
----
107
125
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT + MIN( ALL - 13 ) AS col1 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-2225
SELECT + MIN ( ALL - 13 ) AS col1 FROM tab0
----
-13

query III rowsort
SELECT * FROM tab1 WHERE NULL > + col0 - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT ALL COUNT( * ) * - 46 col0 FROM tab2
----
-138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2227
SELECT ALL COUNT ( * ) * - 46 col0 FROM tab2
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2228
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2228
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2229
SELECT ALL + CAST( NULL AS DECIMAL ) * + col1 * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2229
SELECT ALL + CAST ( NULL AS REAL ) * + col1 * + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - - ( col0 ) FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT MIN( DISTINCT + - 27 ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-2231
SELECT MIN ( DISTINCT + - 27 ) FROM tab1
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2232
SELECT - + MAX( + col1 ) DIV MAX( ALL col2 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2232
SELECT - + MAX ( + col1 ) / MAX ( ALL col2 ) AS col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 38 col0 FROM tab1 cor0
----
1938
3230
3458

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2234
SELECT DISTINCT + col2 + - + 73 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2234
SELECT DISTINCT + col2 + - + 73 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 9 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT ( NULL ) IS NULL )
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 6 IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 57 * 0 IN ( 28 )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query II rowsort label-2239
SELECT - COUNT( * ) col0, COUNT( * ) FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2239
SELECT - COUNT ( * ) col0, COUNT ( * ) FROM tab0 AS cor0
----
-3
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= - 49
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * + col0 + + 60 * + 38 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 22 IS NULL
----

query I rowsort
SELECT ALL + 92 AS col2 FROM tab0 AS cor0 WHERE NOT - 79 NOT IN ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT 93 - + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2245
SELECT 93 - + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2246
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST( - col1 AS SIGNED ) IN ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-2246
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST ( - col1 AS INTEGER ) IN ( + col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2247
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 78 NOT IN ( CAST( NULL AS DECIMAL ) * - 36 )
----

skipif mysql # not compatible
query III rowsort label-2247
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 78 NOT IN ( CAST ( NULL AS REAL ) * - 36 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT ALL + + ( - MAX( ALL + - 93 ) ) AS col2 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL + + ( - MAX ( ALL + - 93 ) ) AS col2 FROM tab1 AS cor0
----
93

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 61 IS NOT NULL
----

query I rowsort
SELECT + ( + 19 ) AS col0 FROM tab0 AS cor0
----
19
19
19

query I rowsort
SELECT DISTINCT col2 * - - col2 AS col2 FROM tab0
----
100
2209
9801

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 6 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT DISTINCT - MIN( + col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-2253
SELECT DISTINCT - MIN ( + col2 ) AS col0 FROM tab0
----
-10

query I rowsort
SELECT DISTINCT ( 64 ) FROM tab2
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2255
SELECT COUNT( * ) DIV + 29 AS col1 FROM tab0 WHERE NOT NULL = + col0
----
0

skipif mysql # not compatible
query I rowsort label-2255
SELECT COUNT ( * ) / + 29 AS col1 FROM tab0 WHERE NOT NULL = + col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2256
SELECT * FROM tab0 WHERE NOT NULL IN ( - - 57 + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2256
SELECT * FROM tab0 WHERE NOT NULL IN ( - - 57 + - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 + 98 )
----
0

skipif mysql # not compatible
query I rowsort label-2258
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 + 98 )
----
0

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT 77 * - + col2 + + 34 IN ( col2 )
----
46
64
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 85 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL >= NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( + col0 ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + col2 - col2 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 2 < NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 19 * + col1 < NULL
----

query I rowsort
SELECT - 10 * + - ( + col1 ) + 47 AS col0 FROM tab0 AS cor0 WHERE NOT 47 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 7 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
7

query II rowsort
SELECT + col2 AS col0, ( + 15 ) - - col1 + + - col1 * col2 FROM tab0 AS cor0
----
10
-174
47
-3711
99
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col2 + + col0 * - col0 * - + col1 * - 20 col2 FROM tab1 AS cor0
----
-725981
-737496
-7788764

query I rowsort
SELECT 55 + + col0 FROM tab0 cor0
----
142
152
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT + COUNT( * ) + + 2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2271
SELECT + COUNT ( * ) + + 2 FROM tab1 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 + col2 + - col1 * + col2 col0 FROM tab0
----
-147
-3707
53

query I rowsort
SELECT - col2 + col1 + 2 AS col0 FROM tab0
----
-96
13
36

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= - - 78
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 18 IS NOT NULL
----

query I rowsort
SELECT ALL 13 * col2 AS col1 FROM tab0
----
1287
130
611

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2277
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 * col0 BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2277
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 * col0 BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2278
SELECT - 11 AS col0 FROM tab2 WHERE NULL NOT BETWEEN col1 + - col0 AND - 10 + CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2278
SELECT - 11 AS col0 FROM tab2 WHERE NULL NOT BETWEEN col1 + - col0 AND - 10 + CAST ( + col1 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col2 / - + col2 IS NOT NULL ) OR NOT NULL NOT IN ( + col1 - - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT 41 < col0 AND NOT ( - 36 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2281
SELECT - CAST( NULL AS SIGNED ) * - - col0 + + col1, - col2 - - col0 AS col1 FROM tab2
----
NULL
17
NULL
23
NULL
24

skipif mysql # not compatible
query II rowsort label-2281
SELECT - CAST ( NULL AS INTEGER ) * - - col0 + + col1, - col2 - - col0 AS col1 FROM tab2
----
NULL
17
NULL
23
NULL
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT - ( + COUNT( * ) ) + - 71 AS col2 FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-2282
SELECT - ( + COUNT ( * ) ) + - 71 AS col2 FROM tab0
----
-74

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2283
SELECT DISTINCT - ( + - CAST( NULL AS DECIMAL ) ), col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-2283
SELECT DISTINCT - ( + - CAST ( NULL AS REAL ) ), col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT ALL ( 80 ) * - ( + COUNT( * ) ) FROM tab1 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL ( 80 ) * - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-240

query I rowsort
SELECT DISTINCT + ( - + 72 ) AS col1 FROM tab1 AS cor0
----
-72

query I rowsort
SELECT + + 33 AS col1 FROM tab0 AS cor0
----
33
33
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2287
SELECT + 49 AS col1 FROM tab2 AS cor0 WHERE NOT ( col1 + + - CAST( - 68 AS SIGNED ) * - + col0 + 56 BETWEEN NULL AND ( - 75 * - ( col0 ) ) )
----

skipif mysql # not compatible
query I rowsort label-2287
SELECT + 49 AS col1 FROM tab2 AS cor0 WHERE NOT ( col1 + + - CAST ( - 68 AS INTEGER ) * - + col0 + 56 BETWEEN NULL AND ( - 75 * - ( col0 ) ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 < col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 > + 18
----

query I rowsort
SELECT ALL col0 * + 15 FROM tab1
----
1275
1365
765

onlyif mysql # DIV for integer division: 
query II rowsort label-2291
SELECT DISTINCT 50 DIV col2 * 83 DIV - + col0, col2 AS col0 FROM tab1
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-2291
SELECT DISTINCT 50 / col2 * 83 / - + col0, col2 AS col0 FROM tab1
----
0
59
0
68
0
96

query I rowsort
SELECT + 44 * - col2 AS col2 FROM tab0 WHERE NOT NULL BETWEEN col2 * - col0 + + + col0 AND ( + 4 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2293
SELECT ALL + 78 DIV - - 29 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL + 78 / - - 29 FROM tab0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2294
SELECT col0 AS col2, CAST( - + ( - col2 ) AS SIGNED ) AS col1 FROM tab0
----
15
47
87
10
97
99

skipif mysql # not compatible
query II rowsort label-2294
SELECT col0 AS col2, CAST ( - + ( - col2 ) AS INTEGER ) AS col1 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT - - col2 * - + col0 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 / + ( - col0 ) AND NULL
----

query I rowsort
SELECT + ( + - col1 ) FROM tab0
----
-1
-21
-81

query I rowsort
SELECT + - 8 * - col0 + + 6 FROM tab0 WHERE NOT - - col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * 54 + col0 FROM tab2 WHERE NOT ( NULL ) >= ( NULL )
----

query I rowsort
SELECT DISTINCT - 13 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( + col1 ) AND 8 + 95 + + col2 + + col1 * col0
----

query I rowsort
SELECT DISTINCT + + 60 * - + col2 FROM tab2 AS cor0
----
-1380
-2400
-3480

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 BETWEEN ( + col1 ) AND - col1 * + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + 89 ) / + + 67 + - + col2 * + col1 NOT BETWEEN - 82 AND + col1 * + ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT COUNT( ALL + 6 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2303
SELECT COUNT ( ALL + 6 ) col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2304
SELECT ALL - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2304
SELECT ALL - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * 61 + - 36 FROM tab0 AS cor0
----
1245
25
4905

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2306
SELECT ALL * FROM tab1 cor0 WHERE NOT - col2 * - CAST( NULL AS SIGNED ) + - - 25 IS NULL OR NOT col1 * + + col2 + - col2 + - col1 * + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2306
SELECT ALL * FROM tab1 cor0 WHERE NOT - col2 * - CAST ( NULL AS INTEGER ) + - - 25 IS NULL OR NOT col1 * + + col2 + - col2 + - col1 * + col0 IS NOT NULL
----

query II rowsort
SELECT 49, - 26 AS col1 FROM tab0 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT DISTINCT 35 + + MAX( - - 45 ) + - COUNT( * ) * + + 51 col2 FROM tab2 AS cor0
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2308
SELECT DISTINCT 35 + + MAX ( - - 45 ) + - COUNT ( * ) * + + 51 col2 FROM tab2 AS cor0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2309
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE ( col2 * + col0 ) BETWEEN ( CAST( + 45 AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2309
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE ( col2 * + col0 ) BETWEEN ( CAST ( + 45 AS INTEGER ) ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - ( col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2311
SELECT ( CAST( + col2 AS SIGNED ) ) * - - 96 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2311
SELECT ( CAST ( + col2 AS INTEGER ) ) * - - 96 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT - ( - COUNT( * ) ) * - ( - 15 ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-2312
SELECT - ( - COUNT ( * ) ) * - ( - 15 ) FROM tab0
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-2313
SELECT 67, 30 + + 87 * col2 * ( - 83 ) DIV - col0 col2 FROM tab0
----
67
22655
67
7399
67
860

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2313
SELECT 67, 30 + + 87 * col2 * ( - 83 ) / - col0 col2 FROM tab0
----
67
22655
67
7399
67
860

query I rowsort
SELECT col2 * col2 - ( - col2 ) FROM tab0
----
110
2256
9900

onlyif mysql # DIV for integer division: 
query I rowsort label-2315
SELECT DISTINCT + col1 - col2 DIV col1 AS col0 FROM tab1
----
-6
46
8

skipif mysql # not compatible
query I rowsort label-2315
SELECT DISTINCT + col1 - col2 / col1 AS col0 FROM tab1
----
-6
46
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT DISTINCT COUNT( ALL + 77 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT COUNT ( ALL + 77 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT DISTINCT + + SUM( + 43 ) AS col2 FROM tab0 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-2317
SELECT DISTINCT + + SUM ( + 43 ) AS col2 FROM tab0 AS cor0
----
129

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2319
SELECT MIN( - col2 ) AS col0, ( + + CAST( NULL AS SIGNED ) ) * + - COUNT( * ) * + + COUNT( * ) AS col2 FROM tab2
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-2319
SELECT MIN ( - col2 ) AS col0, ( + + CAST ( NULL AS INTEGER ) ) * + - COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab2
----
-58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT COUNT( ALL + col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2320
SELECT COUNT ( ALL + col1 ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2321
SELECT * FROM tab0 WHERE - + CAST( + col1 AS DECIMAL ) * 14 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2321
SELECT * FROM tab0 WHERE - + CAST ( + col1 AS REAL ) * 14 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 12 col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query II rowsort
SELECT col0, - col1 FROM tab1
----
51
-14
85
-5
91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT + MAX( - - col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2324
SELECT + MAX ( - - col0 ) FROM tab2
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * 38, col1 col2 FROM tab0 AS cor0
----
3078
81
38
1
798
21

query II rowsort
SELECT ALL - col2 AS col0, - 41 + + - 35 AS col1 FROM tab0 cor0
----
-10
-76
-47
-76
-99
-76

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 * - + ( - - ( + col2 ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 + 8 NOT BETWEEN - col1 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 64 AS col2 FROM tab2 cor0
----
64
64
64

query I rowsort
SELECT ALL + - col2 * - ( - 56 ) FROM tab0 AS cor0
----
-2632
-5544
-560

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2331
SELECT CAST( NULL AS DECIMAL ) * MAX( + ( 28 ) ) / - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2331
SELECT CAST ( NULL AS REAL ) * MAX ( + ( 28 ) ) / - COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2332
SELECT ALL - MAX( ALL col2 ) * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL - MAX ( ALL col2 ) * CAST ( NULL AS REAL ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2333
SELECT ALL col2 DIV - ( + 40 ) FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL col2 / - ( + 40 ) FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2334
SELECT + SUM( ALL + - 28 ) DIV COUNT( * ) col2 FROM tab1
----
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2334
SELECT + SUM ( ALL + - 28 ) / COUNT ( * ) col2 FROM tab1
----
-28

query I rowsort
SELECT col0 * + + 80 FROM tab0
----
1200
6960
7760

query I rowsort
SELECT 60 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 * col2 * + 80 + - col2 > + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 + - 91 AS col0 FROM tab1 AS cor0 WHERE ( - 80 - - ( - + col2 ) ) IS NOT NULL
----
-44
-77
-86

query II rowsort
SELECT DISTINCT - - 89 * - 92, + col1 FROM tab1 cor0
----
-8188
14
-8188
47
-8188
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2340
SELECT DISTINCT 78 DIV - - col0 col1 FROM tab0
----
0
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2340
SELECT DISTINCT 78 / - - col0 col1 FROM tab0
----
0
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2341
SELECT + 27 DIV 59 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2341
SELECT + 27 / 59 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2342
SELECT ALL - CAST( NULL AS SIGNED ) + + - ( COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL - CAST ( NULL AS INTEGER ) + + - ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col0 + - 70 * col0 col1 FROM tab0
----
-5982
-6692
-954

query I rowsort
SELECT - 93 * - - col2 FROM tab1
----
-5487
-6324
-8928

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2345
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 / - col0 IN ( - col0, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2345
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 / - col0 IN ( - col0, - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - + col1 * + col1 + - - col2 AS col0 FROM tab2 AS cor0
----
-2578
-4431
-5889

query I rowsort
SELECT DISTINCT - 99 * + col1 * + 54 * ( + 10 ) * - col2 FROM tab1 AS cor0
----
15770700
170858160
71850240

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT COUNT( * ) + + - 45 FROM tab1 cor0
----
-42

skipif mysql # not compatible
query I rowsort label-2348
SELECT COUNT ( * ) + + - 45 FROM tab1 cor0
----
-42

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE NULL IN ( + col0 )
----

query I rowsort
SELECT ALL - col2 + + - col1 AS col0 FROM tab0 cor0
----
-100
-128
-31

query I rowsort
SELECT DISTINCT col1 + + ( + + col1 ) AS col2 FROM tab2
----
102
134
154

query I rowsort
SELECT - 32 + - ( + col0 ) + - ( + col0 ) AS col0 FROM tab1
----
-134
-202
-214

onlyif mysql # aggregate syntax: 
query II rowsort label-2353
SELECT MIN( + col2 ) + + MAX( ALL + col0 ) AS col1, 39 - + COUNT( * ) AS col0 FROM tab0
----
107
36

skipif mysql # not compatible
query II rowsort label-2353
SELECT MIN ( + col2 ) + + MAX ( ALL + col0 ) AS col1, 39 - + COUNT ( * ) AS col0 FROM tab0
----
107
36

query I rowsort
SELECT ALL + col0 * + + col0 FROM tab2
----
2116
4096
5625

query III rowsort
SELECT * FROM tab2 WHERE - col1 + + + ( - col2 ) * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 - + - 25 FROM tab2
----
102
76
92

query I rowsort
SELECT - + col1 * - + col1 - - + 4 AS col2 FROM tab0 AS cor0
----
445
5
6565

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col0 <> - col0
----
-3

skipif mysql # not compatible
query I rowsort label-2358
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col0 <> - col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2359
SELECT ALL 45 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL 45 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT - SUM( - 56 ) FROM tab2 AS cor0 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2360
SELECT - SUM ( - 56 ) FROM tab2 AS cor0 WHERE - col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2361
SELECT ALL - + 22, COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-22
9

skipif mysql # not compatible
query II rowsort label-2361
SELECT ALL - + 22, COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-22
9

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT - - SUM( - 13 ) AS col2 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-2363
SELECT - - SUM ( - 13 ) AS col2 FROM tab1 AS cor0
----
-39

query I rowsort
SELECT DISTINCT - 82 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - col0, + col1 AS col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2366
SELECT DISTINCT - 91 AS col0, CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-2366
SELECT DISTINCT - 91 AS col0, CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
-91
NULL

query II rowsort
SELECT - col2, col0 AS col0 FROM tab0 cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE + col1 * + col1 BETWEEN + col1 AND + + col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT DISTINCT - + ( MAX( ALL col1 ) ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT - + ( MAX ( ALL col1 ) ) FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2370
SELECT ALL + COUNT( * ) AS col0, - 82 DIV COUNT( DISTINCT + 92 ) AS col0 FROM tab0
----
3
-82

skipif mysql # not compatible
query II rowsort label-2370
SELECT ALL + COUNT ( * ) AS col0, - 82 / COUNT ( DISTINCT + 92 ) AS col0 FROM tab0
----
3
-82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2371
SELECT CAST( - 90 AS SIGNED ) DIV - - col0 + - - 71 AS col2 FROM tab1
----
70
70
71

skipif mysql # not compatible
query I rowsort label-2371
SELECT CAST ( - 90 AS INTEGER ) / - - col0 + - - 71 AS col2 FROM tab1
----
70
70
71

query I rowsort
SELECT col1 * - 29 AS col0 FROM tab2
----
-1479
-1943
-2233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2373
SELECT - col1 * - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2373
SELECT - col1 * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2374
SELECT DISTINCT CAST( NULL AS SIGNED ), COUNT( + col2 ) * MAX( + - col0 ) - + 31 AS col0 FROM tab1
----
NULL
-184

skipif mysql # not compatible
query II rowsort label-2374
SELECT DISTINCT CAST ( NULL AS INTEGER ), COUNT ( + col2 ) * MAX ( + - col0 ) - + 31 AS col0 FROM tab1
----
NULL
-184

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2375
SELECT CAST( NULL AS DECIMAL ) * - col2 AS col2, CAST( + CAST( - - col1 AS SIGNED ) AS SIGNED ) FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-2375
SELECT CAST ( NULL AS REAL ) * - col2 AS col2, CAST ( + CAST ( - - col1 AS INTEGER ) AS INTEGER ) FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + col0 col0, - col2 - - ( col0 ) AS col2, + 32 FROM tab1
----
9 values hashing to d791b9de35f522f5eee47fff17b53c82

query I rowsort
SELECT DISTINCT 24 * + + col0 AS col1 FROM tab0
----
2088
2328
360

onlyif mysql # DIV for integer division: 
query I rowsort label-2378
SELECT DISTINCT - - col2 * - + 51 + + col2 DIV col0 + + - ( + + col2 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-2441
-5147
-520

skipif mysql # not compatible
query I rowsort label-2378
SELECT DISTINCT - - col2 * - + 51 + + col2 / col0 + + - ( + + col2 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-2441
-5147
-520

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT ALL ( + - COUNT( * ) ) * - COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2379
SELECT ALL ( + - COUNT ( * ) ) * - COUNT ( * ) AS col2 FROM tab0
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= - col0 + - 53
----

query I rowsort
SELECT ALL + - col2 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) < NULL
----

query II rowsort
SELECT col1, - col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-2383
SELECT DISTINCT ( + COUNT( * ) ), 23 col0 FROM tab1
----
3
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2383
SELECT DISTINCT ( + COUNT ( * ) ), 23 col0 FROM tab1
----
3
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 + - - col1 col1 FROM tab0
----
10
30
90

query I rowsort
SELECT DISTINCT + col0 * + - 42 FROM tab1 AS cor0
----
-2142
-3570
-3822

query I rowsort
SELECT ALL col0 * + + col0 + 28 * - 52 FROM tab1 AS cor0
----
1145
5769
6825

query I rowsort
SELECT - col1 - - ( - 13 ) AS col2 FROM tab1 cor0 WHERE ( + ( + 74 ) ) > - col0
----
-18
-27
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2388
SELECT AVG ( ALL - col2 ) + - AVG ( + col0 ) FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) - col2 / + 70 - + - 23 / - - col0 NOT IN ( CAST( - ( + - 34 ) AS SIGNED ) + - + col2 * - + 2, + 44 + - col1 + - + col1 + - + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2388
SELECT AVG ( ALL - col2 ) + - AVG ( + col0 ) FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) - col2 / + 70 - + - 23 / - - col0 NOT IN ( CAST ( - ( + - 34 ) AS INTEGER ) + - + col2 * - + 2, + 44 + - col1 + - + col1 + - + col0 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2389
SELECT DISTINCT + 54 - col0 + col2 + + 67 DIV col0 * + - col1 DIV col2 AS col2, col1 + + - col1 FROM tab2 AS cor0
----
29
0
37
0

skipif mysql # not compatible
query II rowsort label-2389
SELECT DISTINCT + 54 - col0 + col2 + + 67 / col0 * + - col1 / col2 AS col2, col1 + + - col1 FROM tab2 AS cor0
----
29
0
37
0

query I rowsort
SELECT ALL + col2 + + - 38 FROM tab0
----
-28
61
9

query I rowsort
SELECT DISTINCT - 12 - + - 84 FROM tab2 WHERE NULL IS NULL
----
72

query I rowsort
SELECT DISTINCT + col1 + 28 AS col1 FROM tab2
----
105
79
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2393
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0
----
-9

query I rowsort
SELECT + 42 + + + 57 FROM tab0
----
99
99
99

query I rowsort
SELECT DISTINCT - col2 - + col2 + - 88 AS col2 FROM tab0
----
-108
-182
-286

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 67 / 54 * + + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2397
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
0

query I rowsort
SELECT ALL + ( - + col1 ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 * - 22 AS col0, col1 col1 FROM tab2 AS cor0
----
-1122
51
-1474
67
-1694
77

query I rowsort
SELECT - + 45 AS col2 FROM tab1 cor0
----
-45
-45
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 46 col1 FROM tab0 cor0
----
46
46
46

query I rowsort
SELECT + - ( + 0 ) * - + 20 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2403
SELECT - + CAST( - - COUNT( + 32 ) AS SIGNED ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2403
SELECT - + CAST ( - - COUNT ( + 32 ) AS INTEGER ) FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT ( col0 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < - - ( - col0 )
----

query II rowsort
SELECT DISTINCT + col1 AS col2, - col1 FROM tab1
----
14
-14
47
-47
5
-5

query I rowsort
SELECT col0 FROM tab1 WHERE NOT col2 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 55 + - - col2 + col2 + 42 * + col1 + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT + + COUNT( DISTINCT + 71 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL < + col0
----
0

skipif mysql # not compatible
query I rowsort label-2409
SELECT + + COUNT ( DISTINCT + 71 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL < + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT ALL - MIN( ALL + 19 ) + - - 26 AS col0 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-2410
SELECT ALL - MIN ( ALL + 19 ) + - - 26 AS col0 FROM tab0
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2411
SELECT MIN( - col1 ) DIV 21 AS col2 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-2411
SELECT MIN ( - col1 ) / 21 AS col2 FROM tab1
----
-2

query I rowsort
SELECT + 72 - + 25 AS col2 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query II rowsort
SELECT ALL col1, + col1 * + + ( - - col1 ) FROM tab0 AS cor0
----
1
1
21
441
81
6561

query I rowsort
SELECT DISTINCT col0 + + + 94 AS col0 FROM tab2 AS cor0
----
140
158
169

query I rowsort
SELECT col2 + col1 - col1 AS col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT col2 + - - col0 + - - col0 * + col1 AS col1 FROM tab0
----
1277
1924
293

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT ALL + 40 - COUNT( * ) col2 FROM tab0
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2417
SELECT ALL + 40 - COUNT ( * ) col2 FROM tab0
----
37

query III rowsort
SELECT * FROM tab2 WHERE - col0 <> + 70
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2419
SELECT DISTINCT - col0 * + 32 * - - CAST( - 79 AS SIGNED ) - - + col2 col1 FROM tab2
----
116311
161832
189658

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2419
SELECT DISTINCT - col0 * + 32 * - - CAST ( - 79 AS INTEGER ) - - + col2 col1 FROM tab2
----
116311
161832
189658

query II rowsort
SELECT ALL col1 + - col1, - col2 AS col2 FROM tab2
----
0
-23
0
-40
0
-58

query I rowsort
SELECT ALL 19 * - 92 * - + ( + col2 ) - + col0 * + - ( - - ( + + 4 ) ) AS col1 FROM tab1
----
103472
119228
168012

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 < col0
----

query I rowsort
SELECT ALL - 13 - - + col2 AS col2 FROM tab1
----
46
55
83

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT SUM( + + ( col1 ) ) * - 91 FROM tab0 AS cor0
----
-9373

skipif mysql # not compatible
query I rowsort label-2425
SELECT SUM ( + + ( col1 ) ) * - 91 FROM tab0 AS cor0
----
-9373

query I rowsort
SELECT DISTINCT + 31 AS col0 FROM tab2
----
31

query I rowsort
SELECT DISTINCT ( - 69 ) FROM tab2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT DISTINCT ( - - ( - SUM( ALL + 51 ) ) ) * - 75 FROM tab1
----
11475

skipif mysql # not compatible
query I rowsort label-2428
SELECT DISTINCT ( - - ( - SUM ( ALL + 51 ) ) ) * - 75 FROM tab1
----
11475

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT DISTINCT - COUNT( * ) * + 70 FROM tab0
----
-210

skipif mysql # not compatible
query I rowsort label-2429
SELECT DISTINCT - COUNT ( * ) * + 70 FROM tab0
----
-210

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * - + 2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL IN ( col1, + col2, 84 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT ALL - - MIN( ALL - - col1 ) FROM tab0 WHERE - col1 + + col0 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL - - MIN ( ALL - - col1 ) FROM tab0 WHERE - col1 + + col0 IS NOT NULL
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2434
SELECT + col2 DIV + - col0 AS col2, col2 DIV CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-1
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-2434
SELECT + col2 / + - col0 AS col2, col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-1
NULL
0
NULL
0
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 * - col1 col1 FROM tab2
----
-1005
-1155
-765

query I rowsort
SELECT - + col1 FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 50 NOT BETWEEN NULL AND + + 72 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT + + MIN( + 24 ) AS col1 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2438
SELECT + + MIN ( + 24 ) AS col1 FROM tab2 AS cor0
----
24

query I rowsort
SELECT DISTINCT + 35 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2440
SELECT ALL + COUNT( 12 ) DIV - - COUNT( col1 ) + 36 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL + COUNT ( 12 ) / - - COUNT ( col1 ) + 36 FROM tab1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2441
SELECT DISTINCT col0 + col2 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2441
SELECT DISTINCT col0 + col2 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2442
SELECT ( + - 28 ) + + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2442
SELECT ( + - 28 ) + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col2 < + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
85

query I rowsort
SELECT DISTINCT 49 - - col0 FROM tab1
----
100
134
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2446
SELECT ALL - CAST( 76 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL - CAST ( 76 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-76
-76
-76

query I rowsort
SELECT ALL - 53 + - col0 AS col1 FROM tab0 AS cor0
----
-140
-150
-68

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT + col0 <= + 61 + - col0 )
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT - 25 AS col0 FROM tab1 cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT DISTINCT SUM( DISTINCT col2 ) + - 38 col0 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2450
SELECT DISTINCT SUM ( DISTINCT col2 ) + - 38 col0 FROM tab2 AS cor0
----
83

query III rowsort
SELECT * FROM tab1 WHERE NULL = - + col0 + + col0 + + + col1 * col2 * + 72
----

query I rowsort
SELECT - col0 - + + col1 + col0 FROM tab2
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-2453
SELECT 65 - + 74 + + + col2 + - 52 + + col2 DIV + col2 AS col2 FROM tab1
----
-1
36
8

skipif mysql # not compatible
query I rowsort label-2453
SELECT 65 - + 74 + + + col2 + - 52 + + col2 / + col2 AS col2 FROM tab1
----
-1
36
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2454
SELECT CAST( 28 AS SIGNED ) FROM tab0
----
28
28
28

skipif mysql # not compatible
query I rowsort label-2454
SELECT CAST ( 28 AS INTEGER ) FROM tab0
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 * - col1 col1 FROM tab2
----
-4488
-5896
-6776

query II rowsort
SELECT ALL col1 AS col0, 35 AS col1 FROM tab2
----
51
35
67
35
77
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2457
SELECT DISTINCT - col2 AS col0, - CAST( col1 AS SIGNED ) FROM tab2
----
-23
-51
-40
-77
-58
-67

skipif mysql # not compatible
query II rowsort label-2457
SELECT DISTINCT - col2 AS col0, - CAST ( col1 AS INTEGER ) FROM tab2
----
-23
-51
-40
-77
-58
-67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < + col0 + + + ( + 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT + - MAX( ALL + 47 ) AS col2 FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2459
SELECT + - MAX ( ALL + 47 ) AS col2 FROM tab2 AS cor0
----
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-2460
SELECT ALL - 52 AS col2, - col1 - + 64 DIV + + col0 AS col2 FROM tab0 AS cor0
----
-52
-1
-52
-21
-52
-85

skipif mysql # not compatible
query II rowsort label-2460
SELECT ALL - 52 AS col2, - col1 - + 64 / + + col0 AS col2 FROM tab0 AS cor0
----
-52
-1
-52
-21
-52
-85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 16 * - col0 * col0 NOT BETWEEN - 85 * - col1 / - col0 + - - col1 - + + col0 + + col0 AND ( 99 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + col0 ) col0, - col2 FROM tab0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT + col1 * col1 * - - 21 AS col1 FROM tab0 AS cor0
----
137781
21
9261

query I rowsort
SELECT ALL + + ( - col1 ) + + - col2 AS col0 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 - - - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2465
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 - - - col0 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * + + col2 + + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 60 + + col0 AS col1 FROM tab2
----
-14
15
4

query I rowsort
SELECT col0 FROM tab0 WHERE col2 + - col0 - col2 * - + col2 + - + 0 * col2 NOT BETWEEN + ( ( - + col2 ) ) AND - col0 AND NOT + col0 IS NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2469
SELECT DISTINCT + col1 DIV - + 87 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT + col1 / - + 87 AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL + col0 * 96 + 80 - 6 * + - 94 AS col1 FROM tab2 WHERE NOT - 79 <= + 18
----

query I rowsort
SELECT - 20 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT + SUM( col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2472
SELECT + SUM ( col1 ) AS col1 FROM tab2 AS cor0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2473
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - CAST( col1 AS SIGNED ) ) / + + 13 NOT BETWEEN NULL AND + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2473
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - CAST ( col1 AS INTEGER ) ) / + + 13 NOT BETWEEN NULL AND + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT + 79 * - COUNT( * ) * - 79 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-56169

skipif mysql # not compatible
query I rowsort label-2474
SELECT + 79 * - COUNT ( * ) * - 79 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-56169

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE + col2 * + col2 <> + 26
----
3

skipif mysql # not compatible
query I rowsort label-2475
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE + col2 * + col2 <> + 26
----
3

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 + + - 74 AS col1 FROM tab0 AS cor0
----
-27
-64
25

query I rowsort
SELECT + 23 + + + col1 - col2 AS col1 FROM tab2 AS cor0
----
32
51
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT 62 + SUM( - col1 ) AS col0 FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-2479
SELECT 62 + SUM ( - col1 ) AS col0 FROM tab0 AS cor0
----
-41

query I rowsort
SELECT - col1 + + - col0 AS col2 FROM tab1 AS cor0
----
-138
-65
-90

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2482
SELECT - col1 + CAST( + 74 AS SIGNED ) FROM tab0 AS cor0
----
-7
53
73

skipif mysql # not compatible
query I rowsort label-2482
SELECT - col1 + CAST ( + 74 AS INTEGER ) FROM tab0 AS cor0
----
-7
53
73

query I rowsort
SELECT DISTINCT + + col0 * col2 + - 89 FROM tab1 AS cor0
----
4807
4926
6099

query I rowsort
SELECT ALL - col1 * 31 AS col0 FROM tab2 AS cor0
----
-1581
-2077
-2387

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN - + col0 AND NULL
----

query I rowsort
SELECT DISTINCT + + col0 * + col1 * + 35 * - col0 FROM tab1 cor0
----
-1264375
-1274490
-13622245

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 66 ) IS NOT NULL
----

query II rowsort
SELECT - col0 AS col2, 23 AS col2 FROM tab0
----
-15
23
-87
23
-97
23

query I rowsort
SELECT ALL col1 * - + col0 AS col1 FROM tab2
----
-2346
-4928
-5025

query II rowsort
SELECT + col1 AS col1, col2 AS col1 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT ALL + - 66 * + 47 FROM tab1 AS cor0
----
-3102
-3102
-3102

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT ALL SUM( + 37 ) FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL SUM ( + 37 ) FROM tab0
----
111

query II rowsort
SELECT ALL col1 AS col1, - 21 * + col0 AS col1 FROM tab0
----
1
-2037
21
-1827
81
-315

query I rowsort
SELECT 43 FROM tab1 AS cor0 WHERE NOT NULL >= - col0
----

query I rowsort
SELECT - col1 * - 99 + + - col1 AS col2 FROM tab0 AS cor0
----
2058
7938
98

query I rowsort
SELECT + 19 + + + col2 FROM tab0 AS cor0
----
118
29
66

query I rowsort
SELECT DISTINCT + 42 AS col1 FROM tab0 AS cor0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2498
SELECT ALL + CAST( NULL AS SIGNED ) * + CAST( 58 AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL + CAST ( NULL AS INTEGER ) * + CAST ( 58 AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - + col2 - - - col0 col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NULL BETWEEN + 91 / - col0 * - - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT COUNT( * ) * COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-2501
SELECT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
9

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE ( NOT + col0 IS NULL )
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND + col0 * - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + - col0 AS col0, col0 col1 FROM tab2
----
-1058
46
-2560
64
-4350
75

query I rowsort
SELECT DISTINCT col1 + - - col2 FROM tab1
----
110
115
64

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2507
SELECT ALL - 34 + - - COUNT( * ) + - + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2507
SELECT ALL - 34 + - - COUNT ( * ) + - + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 28 * col2, col0 col1 FROM tab2
----
1120
64
1624
75
644
46

onlyif mysql # aggregate syntax: 
query II rowsort label-2509
SELECT COUNT( * ) * - 17, - 92 AS col0 FROM tab2
----
-51
-92

skipif mysql # not compatible
query II rowsort label-2509
SELECT COUNT ( * ) * - 17, - 92 AS col0 FROM tab2
----
-51
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT 5 + COUNT( * ) AS col1 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-2510
SELECT 5 + COUNT ( * ) AS col1 FROM tab2
----
8

query I rowsort
SELECT DISTINCT - + 65 AS col2 FROM tab1 AS cor0
----
-65

query I rowsort
SELECT + 62 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 2 IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NOT - 96 * + 54 IS NOT NULL )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT + + 70 / - col0 / - - col2 AS col1 FROM tab2 WHERE - + col1 BETWEEN NULL AND - 36
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - col1 col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2516
SELECT ALL - 56 AS col1, - COUNT( ALL col2 ) AS col1 FROM tab2 AS cor0
----
-56
-3

skipif mysql # not compatible
query II rowsort label-2516
SELECT ALL - 56 AS col1, - COUNT ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
-56
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT DISTINCT MIN( DISTINCT - + col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT MIN ( DISTINCT - + col1 ) AS col2 FROM tab1 AS cor0
----
-47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 94 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + + + col2 + + col2 + - + col2 * + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + - col0 * - - ( + col1 ) AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query II rowsort
SELECT + 6 AS col0, 3 AS col2 FROM tab1 AS cor0
----
6
3
6
3
6
3

query II rowsort
SELECT ALL + col2 * - col2 AS col0, + col1 FROM tab1 WHERE NOT col2 IS NULL
----
-3481
5
-4624
47
-9216
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2523
SELECT ALL AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 95 <= col0
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2525
SELECT + COUNT( * ) DIV + + MIN( - col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2525
SELECT + COUNT ( * ) / + + MIN ( - col0 ) FROM tab1
----
0

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT - + col0 <> + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2527
SELECT DISTINCT - MIN( ALL - CAST( + 69 AS SIGNED ) ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-2527
SELECT DISTINCT - MIN ( ALL - CAST ( + 69 AS INTEGER ) ) FROM tab1
----
69

query II rowsort
SELECT DISTINCT + + 70 AS col2, - col0 AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( + col2, + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2529
SELECT DISTINCT - ( 85 ) * - - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) * + + 36 / + COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT - ( 85 ) * - - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) * + + 36 / + COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

query II rowsort
SELECT 85, 98 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 70 NOT BETWEEN - col0 AND - + 0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2532
SELECT 62 DIV + 78 * + COUNT( * ) AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2532
SELECT 62 / + 78 * + COUNT ( * ) AS col0 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL + 88 FROM tab0 AS cor0 WHERE NULL IS NULL
----
88
88
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col0 col2 FROM tab0 cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT + col0 + + - col1 AS col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2536
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT - + col0 + - CAST( NULL AS DECIMAL ) + + col0 * 38 * + 12 <= NULL AND NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT - + col0 + - CAST ( NULL AS REAL ) + + col0 * 38 * + 12 <= NULL AND NOT - col0 IS NOT NULL
----

query I rowsort
SELECT + 98 + + col0 - - col2 + - 91 - col2 + + 88 * col0 FROM tab0 AS cor0
----
1342
7750
8640

query I rowsort
SELECT DISTINCT 68 + + + 24 * + 52 AS col1 FROM tab2 AS cor0
----
1316

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * - ( - - 28 ) + + 1 + + - col1 AS col0, col1 col0 FROM tab0 cor0
----
1236
81
260
21
2772
1

query II rowsort
SELECT ALL col1, + col1 * + col2 - + col1 AS col2 FROM tab0
----
1
98
21
189
81
3726

onlyif mysql # DIV for integer division: 
query I rowsort label-2541
SELECT col2 DIV - 11 + + 22 FROM tab0
----
13
18
22

skipif mysql # not compatible
query I rowsort label-2541
SELECT col2 / - 11 + + 22 FROM tab0
----
13
18
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2542
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE col0 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2543
SELECT DISTINCT - CAST( - 91 AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2543
SELECT DISTINCT - CAST ( - 91 AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0
----
91

query I rowsort
SELECT DISTINCT + - 30 * + 87 AS col0 FROM tab1 WHERE NOT 11 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2545
SELECT DISTINCT + col0 DIV - ( col1 ) FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT + col0 / - ( col1 ) FROM tab0
----
-4
-97
0

query I rowsort
SELECT ALL - col2 - col2 + - col0 * + col1 * + + col2 AS col2 FROM tab1
----
-25193
-290972
-68736

query III rowsort
SELECT * FROM tab0 WHERE - - ( - 56 ) NOT BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2548
SELECT DISTINCT 95 AS col1, + SUM( DISTINCT col0 ) AS col0 FROM tab0
----
95
199

skipif mysql # not compatible
query II rowsort label-2548
SELECT DISTINCT 95 AS col1, + SUM ( DISTINCT col0 ) AS col0 FROM tab0
----
95
199

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 23 - - 85 - - - 27 AS col2 FROM tab1 AS cor0
----
35
35
35

query I rowsort
SELECT + ( col2 ) * 57 - - col2 FROM tab0 AS cor0
----
2726
5742
580

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 < + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * 5 AS col0 FROM tab2 cor0
----
255
335
385

query I rowsort
SELECT 42 * - + 55 FROM tab2 AS cor0
----
-2310
-2310
-2310

query I rowsort
SELECT + - 78 AS col1 FROM tab0 AS cor0
----
-78
-78
-78

query I rowsort
SELECT DISTINCT + 19 + + col1 FROM tab1 AS cor0 WHERE NOT NULL > + col1
----

query II rowsort
SELECT + col2 * col1 + + col0, 84 * - col2 AS col1 FROM tab2 AS cor0
----
1219
-1932
3144
-3360
3961
-4872

query I rowsort
SELECT + 69 * + col2 * - - 22 AS col0 FROM tab2 cor0
----
34914
60720
88044

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2559
SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 < + + CAST( 75 AS SIGNED )
----
64
77
40

skipif mysql # not compatible
query III rowsort label-2559
SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 < + + CAST ( 75 AS INTEGER )
----
64
77
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2560
SELECT + CAST( NULL AS SIGNED ) / - + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2560
SELECT + CAST ( NULL AS INTEGER ) / - + COUNT ( * ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 49 <> + col0 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT DISTINCT + COUNT( DISTINCT + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2562
SELECT DISTINCT + COUNT ( DISTINCT + col2 ) FROM tab1
----
3

query II rowsort
SELECT 19 AS col0, + 22 FROM tab2
----
19
22
19
22
19
22

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2564
SELECT ALL CAST( NULL AS SIGNED ) * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - - 99 FROM tab1 cor0
----
99
99
99

query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
87

query II rowsort
SELECT - 11 * col0, col1 FROM tab1
----
-1001
47
-561
14
-935
5

query I rowsort
SELECT 88 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT + col2 + 70 * - 79 AS col1 FROM tab2
----
-5472
-5490
-5507

query I rowsort
SELECT DISTINCT col0 * col0 * + 57 AS col0 FROM tab2
----
120612
233472
320625

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 34 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2572
SELECT ALL + - 99 * - + CAST( NULL AS SIGNED ), + col0 AS col1 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-2572
SELECT ALL + - 99 * - + CAST ( NULL AS INTEGER ), + col0 AS col1 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2573
SELECT + - MAX( ALL col2 ) AS col0, 36 * + 35 FROM tab2 AS cor0
----
-58
1260

skipif mysql # not compatible
query II rowsort label-2573
SELECT + - MAX ( ALL col2 ) AS col0, 36 * + 35 FROM tab2 AS cor0
----
-58
1260

onlyif mysql # DIV for integer division: 
query I rowsort label-2574
SELECT - 60 DIV col0 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-2574
SELECT - 60 / col0 FROM tab0 AS cor0
----
-4
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2575
SELECT ALL + col1 DIV + col2, col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-2575
SELECT ALL + col1 / + col2, col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

query I rowsort
SELECT ALL col2 + - 97 + - 15 * + 83 + - - col2 + 8 FROM tab0 cor0
----
-1136
-1240
-1314

query I rowsort
SELECT - - 33 AS col2 FROM tab1 AS cor0 WHERE ( - 99 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2578
SELECT DISTINCT + col1 + + + col0 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT + col1 + + + col0 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + 11 col0 FROM tab2 AS cor0
----
-40
-56
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2580
SELECT COUNT( * ) * - 28, + MAX( + 41 ) DIV + + 98 AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-84
0

skipif mysql # not compatible
query II rowsort label-2580
SELECT COUNT ( * ) * - 28, + MAX ( + 41 ) / + + 98 AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-84
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT ALL + ( COUNT( * ) ) + + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL + ( COUNT ( * ) ) + + COUNT ( * ) FROM tab1
----
6

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col0 NOT IN ( + + 63, + col2, col0 + - + col1, + 73 * - 30, - + col0 + - col2, + - col2 + + 37 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE col2 + + 73 <= ( + + 74 )
----

query II rowsort
SELECT + ( col1 ) - - 95, col1 + + - 43 AS col0 FROM tab0
----
116
-22
176
38
96
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT + 12 - - COUNT( ALL col2 ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-2585
SELECT + 12 - - COUNT ( ALL col2 ) FROM tab2
----
15

query I rowsort
SELECT ALL + ( 96 ) - + col0 AS col1 FROM tab0
----
-1
81
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2587
SELECT DISTINCT - COUNT( * ) DIV - ( COUNT( * ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT - COUNT ( * ) / - ( COUNT ( * ) ) FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2588
SELECT DISTINCT + col2 DIV + 75 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2588
SELECT DISTINCT + col2 / + 75 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT ALL COUNT( * ) + + 82 + - - 99 + COUNT( * ) * - MIN( DISTINCT - - 38 ) * - + 33 * + COUNT( * ) FROM tab2
----
11470

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL COUNT ( * ) + + 82 + - - 99 + COUNT ( * ) * - MIN ( DISTINCT - - 38 ) * - + 33 * + COUNT ( * ) FROM tab2
----
11470

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT + 96 + - COUNT( * ) AS col1 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-2590
SELECT + 96 + - COUNT ( * ) AS col1 FROM tab2
----
93

query I rowsort
SELECT DISTINCT - 47 - col2 FROM tab2
----
-105
-70
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + col0 ) col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT 20 * 88 * - + col0 FROM tab1
----
-149600
-160160
-89760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2594
SELECT CAST( - col0 AS SIGNED ) AS col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-2594
SELECT CAST ( - col0 AS INTEGER ) AS col0 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2595
SELECT ALL + SUM( + ( - ( - - 24 ) ) ) AS col2, - 11 FROM tab0 WHERE - - col1 * - 25 BETWEEN 99 / + col1 * - - col2 - - col0 AND col1 / + 65 * - col0 + + - 65
----
NULL
-11

skipif mysql # not compatible
query II rowsort label-2595
SELECT ALL + SUM ( + ( - ( - - 24 ) ) ) AS col2, - 11 FROM tab0 WHERE - - col1 * - 25 BETWEEN 99 / + col1 * - - col2 - - col0 AND col1 / + 65 * - col0 + + - 65
----
NULL
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT DISTINCT MAX( + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2596
SELECT DISTINCT MAX ( + col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT + COUNT( * ) * - 55 * + + 19 AS col0 FROM tab0 cor0
----
-3135

skipif mysql # not compatible
query I rowsort label-2597
SELECT + COUNT ( * ) * - 55 * + + 19 AS col0 FROM tab0 cor0
----
-3135

query I rowsort
SELECT ALL + + AVG ( ALL - + col0 ) * + 85 AS col1 FROM tab0 AS cor0 WHERE NULL = + 99
----
NULL

query II rowsort
SELECT DISTINCT + - 42 AS col1, + col0 FROM tab2 AS cor0
----
-42
46
-42
64
-42
75

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 92 AS col1, col2 FROM tab1 AS cor0
----
92
59
92
68
92
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2602
SELECT DISTINCT + - col1, ( - + 40 ) AS col2 FROM tab0 WHERE NOT - CAST( + 42 AS SIGNED ) < - - col2 * + - col1 + - col2 * col0 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-2602
SELECT DISTINCT + - col1, ( - + 40 ) AS col2 FROM tab0 WHERE NOT - CAST ( + 42 AS INTEGER ) < - - col2 * + - col1 + - col2 * col0 + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2603
SELECT - ( - - 42 ) AS col1, - COUNT( DISTINCT - 90 ) FROM tab0
----
-42
-1

skipif mysql # not compatible
query II rowsort label-2603
SELECT - ( - - 42 ) AS col1, - COUNT ( DISTINCT - 90 ) FROM tab0
----
-42
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( NULL ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2605
SELECT - col1 DIV - 81 * + col1 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2605
SELECT - col1 / - 81 * + col1 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 + - col0 + - 36 AS col2 FROM tab1 WHERE NOT ( + 37 + + 69 IS NULL )
----
-36

query I rowsort
SELECT + 93 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 12 + - - 45 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT ALL - ( + 96 ) FROM tab2 AS cor0
----
-96
-96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2610
SELECT DISTINCT - CAST( - col1 AS SIGNED ) + + col0 FROM tab1 cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) + + col0 FROM tab1 cor0
----
138
65
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 75 AS col0, + 27 col1 FROM tab2
----
75
27

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT 42 + - - 83 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT ALL - MAX( ALL + - col2 ) * - 98 col2 FROM tab1 cor0
----
-5782

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2615
SELECT ALL - MAX ( ALL + - col2 ) * - 98 col2 FROM tab1 cor0
----
-5782

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT DISTINCT COUNT( * ) + 91 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-2616
SELECT DISTINCT COUNT ( * ) + 91 FROM tab0 AS cor0
----
94

query I rowsort
SELECT - col0 + + 55 AS col0 FROM tab2 AS cor0
----
-20
-9
9

query I rowsort
SELECT DISTINCT + + col2 + + ( 7 ) FROM tab1 AS cor0
----
103
66
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 * + col0 + + 82 col0 FROM tab0 AS cor0
----
3214
3574
622

query II rowsort
SELECT DISTINCT - col2, + 74 AS col1 FROM tab1 AS cor0
----
-59
74
-68
74
-96
74

query I rowsort
SELECT + + col2 + 34 FROM tab2 AS cor0
----
57
74
92

query I rowsort
SELECT DISTINCT + col0 + - col0 * + - col1 FROM tab1 AS cor0
----
4368
510
765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col1 col1 FROM tab0
----
-66
66
96

query I rowsort
SELECT ALL + ( + col1 ) - - col1 AS col1 FROM tab0
----
162
2
42

query I rowsort
SELECT DISTINCT col0 * - 20 - + col2 AS col2 FROM tab0
----
-1750
-2039
-347

query I rowsort
SELECT - + col2 FROM tab1 WHERE NULL IS NULL
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2627
SELECT ALL - 24 DIV + col1 - - col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL - 24 / + col1 - - col2 FROM tab2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2628
SELECT ( 47 ) DIV + 36 - col2 FROM tab0 AS cor0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-2628
SELECT ( 47 ) / + 36 - col2 FROM tab0 AS cor0
----
-46
-9
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2629
SELECT - col2 * - 29 * - col1 - - CAST( col0 AS SIGNED ) + + - 96 AS col0 FROM tab1 cor0
----
-39021
-8566
-92689

skipif mysql # not compatible
query I rowsort label-2629
SELECT - col2 * - 29 * - col1 - - CAST ( col0 AS INTEGER ) + + - 96 AS col0 FROM tab1 cor0
----
-39021
-8566
-92689

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT - MIN( ALL - - col2 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59

skipif mysql # not compatible
query I rowsort label-2630
SELECT - MIN ( ALL - - col2 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59

query I rowsort
SELECT DISTINCT 88 * col1 AS col2 FROM tab2 AS cor0
----
4488
5896
6776

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 * + col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2633
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2634
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT + ( - ( SUM( ALL + - col1 ) ) ) col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2635
SELECT + ( - ( SUM ( ALL + - col1 ) ) ) col2 FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT - 92 * - col1 FROM tab1 AS cor0
----
1288
4324
460

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT + - COUNT( - col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2637
SELECT + - COUNT ( - col1 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT - + ( - 82 ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-2638
SELECT - + ( - 82 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT DISTINCT + 83 * - COUNT( * ) FROM tab0 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-2639
SELECT DISTINCT + 83 * - COUNT ( * ) FROM tab0 AS cor0
----
-249

query II rowsort
SELECT ALL - col1 / col1 * - - 86 AS col1, col2 AS col0 FROM tab1 WHERE NOT NULL < + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-74
-74
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-2642
SELECT ALL + ( - col2 ) DIV - - col1 - - - col1 AS col2 FROM tab0
----
-100
-21
-81

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL + ( - col2 ) / - - col1 - - - col1 AS col2 FROM tab0
----
-100
-21
-81

query II rowsort
SELECT DISTINCT col0, col0 AS col1 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2644
SELECT - 31 DIV - COUNT( * ) AS col1 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-2644
SELECT - 31 / - COUNT ( * ) AS col1 FROM tab1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT DISTINCT COUNT( DISTINCT - ( + + 55 ) ) / + MIN( ALL + - ( 59 ) ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT COUNT ( DISTINCT - ( + + 55 ) ) / + MIN ( ALL + - ( 59 ) ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + ( 93 ) ) col1 FROM tab2
----
93
93
93

query III rowsort
SELECT DISTINCT 36, + col2 AS col2, - ( + col2 ) AS col2 FROM tab1
----
9 values hashing to 63fc3fa483d056099fff53aff91d65be

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2648
SELECT - CAST( NULL AS DECIMAL ) AS col0, + 70 * - COUNT( * ) FROM tab2
----
NULL
-210

skipif mysql # not compatible
query II rowsort label-2648
SELECT - CAST ( NULL AS REAL ) AS col0, + 70 * - COUNT ( * ) FROM tab2
----
NULL
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT - MIN( ALL + - 38 ) FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-2649
SELECT - MIN ( ALL + - 38 ) FROM tab1 AS cor0
----
38

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT + 65 * + 55 - + SUM( ALL - + col1 ) FROM tab0 AS cor0
----
3678

skipif mysql # not compatible
query I rowsort label-2651
SELECT + 65 * + 55 - + SUM ( ALL - + col1 ) FROM tab0 AS cor0
----
3678

query I rowsort
SELECT DISTINCT - 90 + - col1 + + 54 FROM tab0 cor0
----
-117
-37
-57

query I rowsort
SELECT ALL col2 + - 35 + col1 FROM tab1
----
29
75
80

query III rowsort
SELECT * FROM tab2 WHERE + 68 * + 13 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN + col0 AND - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 88 AS col0 FROM tab1 AS cor0 WHERE NOT - 90 + + - ( col0 ) + col0 IS NULL
----
88
88
88

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 12 * - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT + 11 - COUNT( * ) AS col2 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-2658
SELECT + 11 - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2659
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * 32 - - + col0 * - - 24 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2659
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * 32 - - + col0 * - - 24 col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col0 + - - 11 IS NULL
----

query I rowsort
SELECT DISTINCT ( - - col2 ) + + - col1 FROM tab1
----
21
54
82

query I rowsort
SELECT col0 - + + col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT DISTINCT 83 - + - COUNT( * ) AS col0 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-2663
SELECT DISTINCT 83 - + - COUNT ( * ) AS col0 FROM tab2
----
86

query I rowsort
SELECT - col1 + + 66 AS col0 FROM tab2
----
-1
-11
15

query I rowsort
SELECT 5 + 4 AS col2 FROM tab0
----
9
9
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2666
SELECT - COUNT( * ) + COUNT( * ) + - ( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2666
SELECT - COUNT ( * ) + COUNT ( * ) + - ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT + col2 BETWEEN + 14 AND col0 * + 51 * - col1 )
----

query I rowsort
SELECT DISTINCT ( - 1 ) FROM tab0
----
-1

query I rowsort
SELECT DISTINCT col0 * - + 15 FROM tab1 cor0
----
-1275
-1365
-765

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 93 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2671
SELECT DISTINCT - 46 * - MAX( ALL - - col0 ) AS col1, SUM( + ( - col1 ) ) FROM tab0 AS cor0
----
4462
-103

skipif mysql # not compatible
query II rowsort label-2671
SELECT DISTINCT - 46 * - MAX ( ALL - - col0 ) AS col1, SUM ( + ( - col1 ) ) FROM tab0 AS cor0
----
4462
-103

query I rowsort
SELECT 0 + 4 AS col0 FROM tab1
----
4
4
4

query I rowsort
SELECT - 92 + - col1 AS col1 FROM tab0
----
-113
-173
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE 93 IN ( col1 * - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2674
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE 93 IN ( col1 * - col0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2675
SELECT ALL col2 + - 49 DIV col2 FROM tab2
----
21
39
58

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL col2 + - 49 / col2 FROM tab2
----
21
39
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 50 IN ( 35 + + 24 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT DISTINCT - 9 + MAX( ALL ( - ( col1 ) ) ) AS col0 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-2677
SELECT DISTINCT - 9 + MAX ( ALL ( - ( col1 ) ) ) AS col0 FROM tab2
----
-60

query I rowsort
SELECT - col1 + - 3 AS col2 FROM tab2
----
-54
-70
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT ALL + MIN( + 90 ) FROM tab0 WHERE NOT ( ( + col1 ) ) IS NULL
----
90

skipif mysql # not compatible
query I rowsort label-2679
SELECT ALL + MIN ( + 90 ) FROM tab0 WHERE NOT ( ( + col1 ) ) IS NULL
----
90

query I rowsort
SELECT col2 * - 0 FROM tab0 WHERE ( NULL ) > ( - col1 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT COUNT( * ) + - 55 FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-2681
SELECT COUNT ( * ) + - 55 FROM tab2
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2682
SELECT ALL + ( - MAX( - 67 ) ) + 83 AS col2 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN + col1 AND - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL + ( - MAX ( - 67 ) ) + 83 AS col2 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN + col1 AND - 23
----
NULL

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT NULL IN ( 91 )
----

query I rowsort
SELECT col1 + - ( - col1 ) AS col0 FROM tab1
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT - MAX( 81 ) * + 76 FROM tab2 WHERE NOT + 18 + - col2 IS NULL
----
-6156

skipif mysql # not compatible
query I rowsort label-2685
SELECT - MAX ( 81 ) * + 76 FROM tab2 WHERE NOT + 18 + - col2 IS NULL
----
-6156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) + col2 / - 84 col2 FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND + 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT COUNT( * ) + + COUNT( * ) FROM tab0 WHERE - col0 IN ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2687
SELECT COUNT ( * ) + + COUNT ( * ) FROM tab0 WHERE - col0 IN ( + col1 )
----
0

query I rowsort
SELECT DISTINCT - 64 AS col1 FROM tab2
----
-64

query I rowsort
SELECT ( 66 ) * col0 AS col0 FROM tab0
----
5742
6402
990

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT - 4 * - COUNT( * ) AS col1 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-2690
SELECT - 4 * - COUNT ( * ) AS col1 FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT - COUNT( * ) FROM tab0 WHERE 43 <> 82
----
-3

skipif mysql # not compatible
query I rowsort label-2691
SELECT - COUNT ( * ) FROM tab0 WHERE 43 <> 82
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 ) IS NULL
----

query I rowsort
SELECT ALL ( col0 ) + col2 FROM tab0 AS cor0 WHERE ( col2 / - 41 ) BETWEEN NULL AND + col2 * 7
----

query I rowsort
SELECT DISTINCT 75 * 47 FROM tab1 cor0
----
3525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2695
SELECT ALL + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - 89 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - 89 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 62 + + 6 * 55 FROM tab2 AS cor0
----
392
392
392

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col2 + 53 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT DISTINCT COUNT( * ) + 82 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-2698
SELECT DISTINCT COUNT ( * ) + 82 FROM tab1 AS cor0
----
85

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 / - col2 > NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT - col0 * 62 > ( NULL )
----

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NULL <= ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2702
SELECT + col0 + CAST( NULL AS SIGNED ) 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-2702
SELECT + col0 + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN 11 - 40 * - col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT DISTINCT + + COUNT( * ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2704
SELECT DISTINCT + + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 66 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 18 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2707
SELECT ALL - + col1 DIV - col1 + col1 AS col0 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL - + col1 / - col1 + col1 AS col0 FROM tab0 AS cor0
----
2
22
82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2708
SELECT - 88 * CAST( NULL AS DECIMAL ) + COUNT( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2708
SELECT - 88 * CAST ( NULL AS REAL ) + COUNT ( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( col2 / - 68 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2710
SELECT + 74 DIV 17 AS col2 FROM tab1 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-2710
SELECT + 74 / 17 AS col2 FROM tab1 AS cor0
----
4
4
4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 / 15 ) IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT ALL COUNT( * ) * 1 col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2712
SELECT ALL COUNT ( * ) * 1 col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL col0 + 99 AS col0 FROM tab2 AS cor0
----
145
163
174

query I rowsort
SELECT DISTINCT + col1 + - col0 * 38 FROM tab1 AS cor0 WHERE 4 NOT BETWEEN ( + 50 * - col2 ) AND ( + col1 )
----

query I rowsort
SELECT DISTINCT + col1 + + - ( 91 ) AS col0 FROM tab2
----
-14
-24
-40

query I rowsort
SELECT col1 * + 92 AS col1 FROM tab0
----
1932
7452
92

query I rowsort
SELECT col1 * - col2 AS col0 FROM tab2 WHERE NOT 56 IS NULL
----
-1173
-3080
-3886

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 - col2 ) <= ( - 93 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT MAX( + + col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2719
SELECT MAX ( + + col0 ) FROM tab2
----
75

query I rowsort
SELECT 6 * col2 AS col2 FROM tab1 AS cor0
----
354
408
576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2721
SELECT ALL ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT ( 3 ) + - COUNT( * ) * 81 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2722
SELECT ( 3 ) + - COUNT ( * ) * 81 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT DISTINCT MIN( - + 29 ) AS col2 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-2723
SELECT DISTINCT MIN ( - + 29 ) AS col2 FROM tab0
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT DISTINCT col2 * + 43 FROM tab1
----
2537
2924
4128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2726
SELECT - COUNT( * ) DIV COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-2726
SELECT - COUNT ( * ) / COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2727
SELECT - 55 * ( - AVG ( col2 ) * 23 ) FROM tab0 WHERE NOT + - col1 - CAST( NULL AS SIGNED ) IN ( + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2727
SELECT - 55 * ( - AVG ( col2 ) * 23 ) FROM tab0 WHERE NOT + - col1 - CAST ( NULL AS INTEGER ) IN ( + 23 )
----
NULL

query I rowsort
SELECT DISTINCT + col2 * - - col2 + + + 42 AS col2 FROM tab2 AS cor0
----
1642
3406
571

query I rowsort
SELECT - - ( + - 24 ) + - - col0 AS col2 FROM tab2 AS cor0
----
22
40
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT ALL - MIN( - + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2730
SELECT ALL - MIN ( - + col2 ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL + - col2 * col1 + 86 FROM tab2 AS cor0
----
-1087
-2994
-3800

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT DISTINCT - COUNT( * ) * + MAX( col0 ) AS col0 FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT - COUNT ( * ) * + MAX ( col0 ) AS col0 FROM tab1 AS cor0
----
-273

onlyif mysql # DIV for integer division: 
query I rowsort label-2733
SELECT DISTINCT + ( + 88 ) DIV + ( 66 ) + + 42 * - col0 AS col2 FROM tab0 AS cor0
----
-3653
-4073
-629

skipif mysql # not compatible
query I rowsort label-2733
SELECT DISTINCT + ( + 88 ) / + ( 66 ) + + 42 * - col0 AS col2 FROM tab0 AS cor0
----
-3653
-4073
-629

query I rowsort
SELECT ALL - ( col2 ) + - col2 - 53 FROM tab2 cor0
----
-133
-169
-99

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( 59 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + + col0 + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + 3 * + + col1 + col1 FROM tab1
----
188
20
56

query I rowsort
SELECT col1 * + col1 * + + 55 AS col1 FROM tab2
----
143055
246895
326095

query I rowsort
SELECT ALL + col1 + + col0 * - 73 FROM tab0
----
-1014
-6330
-7080

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT DISTINCT MAX( ALL - 28 ) * + - COUNT( * ) col1 FROM tab2
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2742
SELECT DISTINCT MAX ( ALL - 28 ) * + - COUNT ( * ) col1 FROM tab2
----
84

query II rowsort
SELECT DISTINCT col0 * + + col0, col0 FROM tab2
----
2116
46
4096
64
5625
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2744
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) / - COUNT( - ( 78 ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) / - COUNT ( - ( 78 ) ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE col1 >= col1 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NULL NOT IN ( + 54 )
----
0

skipif mysql # not compatible
query I rowsort label-2746
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NULL NOT IN ( + 54 )
----
0

query I rowsort
SELECT DISTINCT - 9 * - 16 * - + 71 FROM tab1
----
-10224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2748
SELECT COUNT( * ) DIV + 55 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2748
SELECT COUNT ( * ) / + 55 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT + 6 + + ( MAX( 5 ) ) * 37 AS col1 FROM tab0 AS cor0
----
191

skipif mysql # not compatible
query I rowsort label-2749
SELECT + 6 + + ( MAX ( 5 ) ) * 37 AS col1 FROM tab0 AS cor0
----
191

onlyif mysql # DIV for integer division: 
query I rowsort label-2750
SELECT ALL + 29 DIV col1 + + 17 FROM tab1 cor0
----
17
19
22

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL + 29 / col1 + + 17 FROM tab1 cor0
----
17
19
22

query I rowsort
SELECT - - col2 + - col2 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL 95 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT + + ( 45 ) AS col1 FROM tab1 AS cor0
----
45

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 * - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col1, col0 col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT DISTINCT - col0 + + col0 * col1 FROM tab1 cor0
----
340
4186
663

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2758
SELECT + COUNT( * ) DIV - MAX( DISTINCT col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2758
SELECT + COUNT ( * ) / - MAX ( DISTINCT col2 ) FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2759
SELECT - col0 DIV col0 * - - col2 AS col2 FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2759
SELECT - col0 / col0 * - - col2 AS col2 FROM tab1 cor0
----
-59
-68
-96

query I rowsort
SELECT - 10 FROM tab0 cor0
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-2761
SELECT DISTINCT 34, - COUNT( * ) AS col0 FROM tab0
----
34
-3

skipif mysql # not compatible
query II rowsort label-2761
SELECT DISTINCT 34, - COUNT ( * ) AS col0 FROM tab0
----
34
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2762
SELECT * FROM tab0 WHERE NOT ( + col0 ) = - col2 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2762
SELECT * FROM tab0 WHERE NOT ( + col0 ) = - col2 * CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT 56 * + COUNT( DISTINCT col0 ) * + ( + SUM( col0 ) ) col2 FROM tab1
----
38136

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2763
SELECT 56 * + COUNT ( DISTINCT col0 ) * + ( + SUM ( col0 ) ) col2 FROM tab1
----
38136

onlyif mysql # DIV for integer division: 
query II rowsort label-2764
SELECT col1 AS col1, col2 DIV + col1 + + col2 FROM tab2
----
51
23
67
58
77
40

skipif mysql # not compatible
query II rowsort label-2764
SELECT col1 AS col1, col2 / + col1 + + col2 FROM tab2
----
51
23
67
58
77
40

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL IN ( col2, + col0 + - - col0 * - ( 97 * col0 ) ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col2 + + col2 AND - - 73 / + col0 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, - col2 FROM tab0
----
10
-10
47
-47
99
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2768
SELECT ALL + COUNT( - CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL + COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2769
SELECT * FROM tab1 WHERE NOT + + col0 > - CAST( - col2 AS SIGNED )
----
51
14
96

skipif mysql # not compatible
query III rowsort label-2769
SELECT * FROM tab1 WHERE NOT + + col0 > - CAST ( - col2 AS INTEGER )
----
51
14
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 97 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - ( - + col1 ) AND - 81
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2772
SELECT DISTINCT COUNT( * ), 1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
1

skipif mysql # not compatible
query II rowsort label-2772
SELECT DISTINCT COUNT ( * ), 1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
1

query I rowsort
SELECT ( col2 ) * - - ( + 11 ) * - 28 FROM tab0
----
-14476
-30492
-3080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - col0 ), col1 + - col2 col2 FROM tab1
----
-51
-82
-85
-54
-91
-21

query I rowsort
SELECT col0 * - 5 AS col0 FROM tab0 cor0
----
-435
-485
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT DISTINCT - COUNT( * ) + + SUM( DISTINCT + + col2 ) AS col1 FROM tab2 AS cor0
----
118

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT - COUNT ( * ) + + SUM ( DISTINCT + + col2 ) AS col1 FROM tab2 AS cor0
----
118

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0 WHERE ( - ( col2 ) / col0 + + col2 ) <> + col1 * + + 12 * col2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2778
SELECT ALL + + CAST( NULL AS SIGNED ) + - col2 - - + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL + + CAST ( NULL AS INTEGER ) + - col2 - - + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT SUM( ALL - 91 ) AS col0 FROM tab2 AS cor0 WHERE ( NOT ( 97 / - - col0 IS NOT NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2779
SELECT SUM ( ALL - 91 ) AS col0 FROM tab2 AS cor0 WHERE ( NOT ( 97 / - - col0 IS NOT NULL ) )
----
NULL

query I rowsort
SELECT col0 * + col1 + - col2 FROM tab1 cor0
----
366
4209
618

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT DISTINCT + ( + SUM( - col2 ) ) + 56 FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-2781
SELECT DISTINCT + ( + SUM ( - col2 ) ) + 56 FROM tab0 AS cor0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT DISTINCT 96 * COUNT( * ) * 68 FROM tab0
----
19584

skipif mysql # not compatible
query I rowsort label-2782
SELECT DISTINCT 96 * COUNT ( * ) * 68 FROM tab0
----
19584

query I rowsort
SELECT DISTINCT col0 * - + col1 * + + 45 + - col1 * + + col0 AS col2 FROM tab1
----
-19550
-196742
-32844

onlyif mysql # DIV for integer division: 
query I rowsort label-2784
SELECT ALL - col2 DIV - 3 FROM tab0
----
15
3
33

skipif mysql # not compatible
query I rowsort label-2784
SELECT ALL - col2 / - 3 FROM tab0
----
15
3
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col2, col1 * - + 1 / + + ( - col0 ) FROM tab1 WHERE NOT NULL = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - - 69 IN ( + - 99 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 55 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - + col0, + col0 * - - col0 AS col1 FROM tab0 AS cor0
----
-15
225
-87
7569
-97
9409

query I rowsort
SELECT + - ( - col2 ) * - + col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT 69 * - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3519
-4623
-5313

onlyif mysql # DIV for integer division: 
query I rowsort label-2791
SELECT DISTINCT + 25 DIV + - 24 - col1 FROM tab2
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-2791
SELECT DISTINCT + 25 / + - 24 - col1 FROM tab2
----
-52
-68
-78

query I rowsort
SELECT ALL + col0 + - 52 FROM tab0
----
-37
35
45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2793
SELECT * FROM tab2 WHERE NULL NOT IN ( + CAST( + 27 AS SIGNED ) + 89 * + CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2793
SELECT * FROM tab2 WHERE NULL NOT IN ( + CAST ( + 27 AS INTEGER ) + 89 * + CAST ( - col2 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col2 * - col1 - + + col1 FROM tab0
----
-100
-231
-3888

query I rowsort
SELECT DISTINCT - 6 AS col0 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT - + MIN( 98 ) AS col1 FROM tab0 cor0
----
-98

skipif mysql # not compatible
query I rowsort label-2796
SELECT - + MIN ( 98 ) AS col1 FROM tab0 cor0
----
-98

query I rowsort
SELECT + - 3 * - 55 FROM tab1 AS cor0
----
165
165
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2798
SELECT SUM( ALL - col0 ) DIV + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2798
SELECT SUM ( ALL - col0 ) / + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-75

query I rowsort
SELECT - col0 * 60 AS col2 FROM tab2 AS cor0
----
-2760
-3840
-4500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2800
SELECT ALL CAST( NULL AS SIGNED ) * + 66 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL CAST ( NULL AS INTEGER ) * + 66 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2801
SELECT + 14 DIV - + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2801
SELECT + 14 / - + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2802
SELECT ALL + col1 DIV 84 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2802
SELECT ALL + col1 / 84 col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2803
SELECT ALL CAST( NULL AS SIGNED ) / col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2803
SELECT ALL CAST ( NULL AS INTEGER ) / col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 43 ) col0 FROM tab0
----
-43
-43
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, col0 AS col1 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT COUNT( ALL + col1 ) FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2806
SELECT COUNT ( ALL + col1 ) FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT + + MAX( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2807
SELECT + + MAX ( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2808
SELECT - - COUNT( * ) AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2808
SELECT - - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3
NULL

query I rowsort
SELECT DISTINCT 20 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
20

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND + col0 * 96 - 34 - - - ( - col2 ) * 57 * + - 12
----

query II rowsort
SELECT col1 + - col2, col1 FROM tab2
----
28
51
37
77
9
67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2812
SELECT ( + CAST( NULL AS DECIMAL ) ) + - col1 / - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2812
SELECT ( + CAST ( NULL AS REAL ) ) + - col1 / - col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col2, + col0 AS col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT 4 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT - 17 * - MAX( + + col2 ) AS col2 FROM tab0 AS cor0
----
1683

skipif mysql # not compatible
query I rowsort label-2815
SELECT - 17 * - MAX ( + + col2 ) AS col2 FROM tab0 AS cor0
----
1683

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT - + ( - COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2816
SELECT - + ( - COUNT ( * ) ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2817
SELECT CAST( - CAST( col2 AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0 WHERE NULL <= 34 * - col1
----

skipif mysql # not compatible
query I rowsort label-2817
SELECT CAST ( - CAST ( col2 AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0 WHERE NULL <= 34 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT + - SUM( DISTINCT + 23 ) AS col0 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2818
SELECT + - SUM ( DISTINCT + 23 ) AS col0 FROM tab1 AS cor0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-2819
SELECT ALL col0 + + 50 + - col0 + 75 DIV - - 82 FROM tab1 cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL col0 + + 50 + - col0 + 75 / - - 82 FROM tab1 cor0
----
50
50
50

query II rowsort
SELECT DISTINCT + col0 + - col0, col0 - + col2 AS col2 FROM tab0 AS cor0
----
0
-2
0
-32
0
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2821
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----
0

query I rowsort
SELECT ALL col0 * + 67 + - col1 + col1 - - col2 + 81 * - + 1 - - col0 FROM tab1
----
3483
5758
6175

query I rowsort
SELECT + + col0 FROM tab1 WHERE NULL BETWEEN - ( - 37 ) AND + 57
----

query III rowsort
SELECT * FROM tab0 WHERE - 30 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2825
SELECT ALL COUNT( * ) DIV - - 29 * 80 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL COUNT ( * ) / - - 29 * 80 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2826
SELECT + CAST( NULL AS SIGNED ) - + COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2826
SELECT + CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL - 31 AS col1 FROM tab2 WHERE - col0 >= - - col2 * - + col2
----
-31
-31
-31

query I rowsort
SELECT ALL + col1 * - col1 * + - 94 * + col2 + + 92 FROM tab2
----
22293132
24474120
5623454

query I rowsort
SELECT ( + 67 ) + + 31 FROM tab0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT + COUNT( * ) * + COUNT( * ) + - - 34 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-2830
SELECT + COUNT ( * ) * + COUNT ( * ) + - - 34 FROM tab1
----
43

query I rowsort
SELECT + ( - 7 ) * - col2 + + col0 AS col1 FROM tab2 AS cor0
----
207
344
481

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT MAX( - col0 ) FROM tab0 AS cor0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2832
SELECT MAX ( - col0 ) FROM tab0 AS cor0 WHERE NULL = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT COUNT( - 26 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2833
SELECT COUNT ( - 26 ) col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2834
SELECT COUNT( * ), + COUNT( ALL + 19 ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-2834
SELECT COUNT ( * ), + COUNT ( ALL + 19 ) FROM tab1
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 - - ( + + ( + ( + + 72 ) ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col0, col2 AS col1 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT - - 60 FROM tab2 cor0 WHERE NOT ( NULL >= + - 91 / + - col2 )
----

query II rowsort
SELECT - 83 - + col0, col1 FROM tab2 cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2839
SELECT DISTINCT 3 * + COUNT( + + col1 ) + - 86, MIN( col0 ) AS col0 FROM tab1 AS cor0
----
-77
51

skipif mysql # not compatible
query II rowsort label-2839
SELECT DISTINCT 3 * + COUNT ( + + col1 ) + - 86, MIN ( col0 ) AS col0 FROM tab1 AS cor0
----
-77
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT + + SUM( ALL - 10 ) * - 78 AS col2 FROM tab2 AS cor0
----
2340

skipif mysql # not compatible
query I rowsort label-2840
SELECT + + SUM ( ALL - 10 ) * - 78 AS col2 FROM tab2 AS cor0
----
2340

query I rowsort
SELECT ALL - col0 * - 25 FROM tab0 AS cor0
----
2175
2425
375

query II rowsort
SELECT + col0 AS col1, - 11 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
15
-11
87
-11
97
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-2843
SELECT DISTINCT col0 DIV + 52 + 99 FROM tab2 AS cor0
----
100
99

skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT col0 / + 52 + 99 FROM tab2 AS cor0
----
100
99

query I rowsort
SELECT col1 * + col2 * - + col1 FROM tab1
----
-1475
-150212
-18816

query I rowsort
SELECT col0 / ( + col1 ) FROM tab0 WHERE NOT + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT + ( + 14 ) * COUNT( * ) AS col2 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-2846
SELECT + ( + 14 ) * COUNT ( * ) AS col2 FROM tab0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT ALL + 7 * - + COUNT( * ) AS col2 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL + 7 * - + COUNT ( * ) AS col2 FROM tab1
----
-21

query I rowsort
SELECT ALL - - col0 * - col1 AS col2 FROM tab0 WHERE NULL IS NULL
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-2849
SELECT ALL - 80 DIV col2, col1 FROM tab0
----
-1
81
-8
21
0
1

skipif mysql # not compatible
query II rowsort label-2849
SELECT ALL - 80 / col2, col1 FROM tab0
----
-1
81
-8
21
0
1

query I rowsort
SELECT ALL 86 FROM tab0 cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT DISTINCT - MAX( - 23 ) AS col1 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT - MAX ( - 23 ) AS col1 FROM tab0 AS cor0
----
23

query I rowsort
SELECT ALL - 19 AS col1 FROM tab0 cor0
----
-19
-19
-19

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 / - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE 19 * - col1 NOT BETWEEN NULL AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE 19 * - col1 NOT BETWEEN NULL AND - col1
----
0

query I rowsort
SELECT col1 + - col0 + ( col0 ) FROM tab1 cor0 WHERE NOT col2 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT DISTINCT SUM( col0 ) col1 FROM tab2
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2856
SELECT DISTINCT SUM ( col0 ) col1 FROM tab2
----
185

query II rowsort
SELECT col1 AS col1, + col1 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT - + COUNT( * ) FROM tab0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2858
SELECT - + COUNT ( * ) FROM tab0 WHERE col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT - - 61 + COUNT( * ) col1 FROM tab1 AS cor0
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2859
SELECT - - 61 + COUNT ( * ) col1 FROM tab1 AS cor0
----
64

query I rowsort
SELECT ALL - col0 * col2 + - + col2 + - - col1 AS col2 FROM tab1 AS cor0
----
-4978
-5069
-6209

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > col1
----

query II rowsort
SELECT - 91, col0 + - - 21 FROM tab1 AS cor0 WHERE + ( + col0 ) <> col0
----

query I rowsort
SELECT - 99 + - + col1 AS col2 FROM tab1 AS cor0
----
-104
-113
-146

query I rowsort
SELECT + col1 + - + 99 AS col2 FROM tab2 AS cor0
----
-22
-32
-48

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + + + 99 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col2 <= + col2 * - 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT ALL + COUNT( + - 24 ) * - COUNT( * ) AS col0 FROM tab1 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL + COUNT ( + - 24 ) * - COUNT ( * ) AS col0 FROM tab1 WHERE - col2 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT col1 + + - col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2870
SELECT CAST( NULL AS SIGNED ) * col2 + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2870
SELECT CAST ( NULL AS INTEGER ) * col2 + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 74 + col0 FROM tab0
----
161
171
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT - SUM( DISTINCT col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2873
SELECT - SUM ( DISTINCT col1 ) FROM tab2
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2874
SELECT DISTINCT + 29 * 22 - CAST( col1 AS SIGNED ) + + col0 FROM tab2
----
625
633
646

skipif mysql # not compatible
query I rowsort label-2874
SELECT DISTINCT + 29 * 22 - CAST ( col1 AS INTEGER ) + + col0 FROM tab2
----
625
633
646

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 76 * + col2 + + - col2 col2 FROM tab1 WHERE col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + 74 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT DISTINCT - COUNT( * ) - - COUNT( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT - COUNT ( * ) - - COUNT ( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col2 - - col2 + - 35 AS col1 FROM tab1 AS cor0
----
101
157
83

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2880
SELECT - + CAST( + col2 AS SIGNED ) AS col1, + 40 FROM tab0 AS cor0
----
-10
40
-47
40
-99
40

skipif mysql # not compatible
query II rowsort label-2880
SELECT - + CAST ( + col2 AS INTEGER ) AS col1, + 40 FROM tab0 AS cor0
----
-10
40
-47
40
-99
40

query I rowsort
SELECT DISTINCT + col1 * + col2 + - 25 FROM tab0 AS cor0
----
185
3782
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT DISTINCT - MAX( DISTINCT col2 ) col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2882
SELECT DISTINCT - MAX ( DISTINCT col2 ) col1 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT + + 80 * col1 AS col0 FROM tab0 AS cor0
----
1680
6480
80

onlyif mysql # DIV for integer division: 
query II rowsort label-2884
SELECT DISTINCT + 29 DIV + col2 AS col1, 68 AS col0 FROM tab1 AS cor0
----
0
68

skipif mysql # not compatible
query II rowsort label-2884
SELECT DISTINCT + 29 / + col2 AS col1, 68 AS col0 FROM tab1 AS cor0
----
0
68

query I rowsort
SELECT ALL + - ( + - 73 ) * - col2 AS col2 FROM tab2 AS cor0
----
-1679
-2920
-4234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 * + col0 * + + col1 + + col1 + col0 AS col0, - col2 col0 FROM tab1 AS cor0
----
-36035
-59
-36349
-96
-389069
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT DISTINCT + ( - MAX( - + col1 ) ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2887
SELECT DISTINCT + ( - MAX ( - + col1 ) ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT + 56 NOT BETWEEN + - ( col2 ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 67 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( + col2 ) / + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2891
SELECT ALL * FROM tab2 WHERE NOT - col1 * + col0 * + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2891
SELECT ALL * FROM tab2 WHERE NOT - col1 * + col0 * + CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2892
SELECT + 67 * + - 57 DIV - - COUNT( * ) AS col1 FROM tab1
----
-1273

skipif mysql # not compatible
query I rowsort label-2892
SELECT + 67 * + - 57 / - - COUNT ( * ) AS col1 FROM tab1
----
-1273

query I rowsort
SELECT ( - - 83 ) FROM tab1
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT DISTINCT - MAX( - + 3 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2894
SELECT DISTINCT - MAX ( - + 3 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ALL - col1 * col2 + + 1 + 8 FROM tab0 AS cor0
----
-201
-3798
-90

query I rowsort
SELECT ALL - 84 * col1 AS col0 FROM tab1 AS cor0
----
-1176
-3948
-420

query I rowsort
SELECT - 19 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 LEFT JOIN tab0 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # DIV for integer division: 
query I rowsort label-2899
SELECT - col1 + + 9 + - 4 - col2 * 98 DIV + + 92 AS col0 FROM tab0
----
-101
-126
-26

skipif mysql # not compatible
query I rowsort label-2899
SELECT - col1 + + 9 + - 4 - col2 * 98 / + + 92 AS col0 FROM tab0
----
-101
-126
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT ALL - MAX( ALL - col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2900
SELECT ALL - MAX ( ALL - col2 ) FROM tab0
----
10

query I rowsort
SELECT + 41 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT ALL 80 * - SUM( ALL + col1 ) AS col0 FROM tab1
----
-5280

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL 80 * - SUM ( ALL + col1 ) AS col0 FROM tab1
----
-5280

query I rowsort
SELECT DISTINCT - 86 * + col1 AS col0 FROM tab0
----
-1806
-6966
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-2904
SELECT - col2 DIV + 80 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2904
SELECT - col2 / + 80 AS col2 FROM tab1
----
-1
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - + 44 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 * + + col2 + + col2 FROM tab0 AS cor0
----
-2162
-90
-9702

query I rowsort
SELECT + - col2 * - - col2 + + col1 FROM tab0 AS cor0
----
-2128
-79
-9800

onlyif mysql # aggregate syntax: 
query II rowsort label-2908
SELECT - SUM( DISTINCT 60 ) * - + MIN( DISTINCT - 40 ) AS col0, 64 FROM tab0 AS cor0
----
-2400
64

skipif mysql # not compatible
query II rowsort label-2908
SELECT - SUM ( DISTINCT 60 ) * - + MIN ( DISTINCT - 40 ) AS col0, 64 FROM tab0 AS cor0
----
-2400
64

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE 58 + + 17 * - col1 IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN - - ( + col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + + - 91 AS col0 FROM tab2
----
-137
-155
-166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2913
SELECT ALL CAST( + - col2 AS SIGNED ) FROM tab1 WHERE 94 + + - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL CAST ( + - col2 AS INTEGER ) FROM tab1 WHERE 94 + + - col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 + + col1 IS NULL
----

query I rowsort
SELECT ALL - 31 + 31 - + col1 AS col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT + col2 - + - col1 FROM tab1
----
110
115
64

query I rowsort
SELECT 98 + + col1 FROM tab1
----
103
112
145

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT DISTINCT COUNT( * ) - 31 * + 95 AS col2 FROM tab0
----
-2942

skipif mysql # not compatible
query I rowsort label-2918
SELECT DISTINCT COUNT ( * ) - 31 * + 95 AS col2 FROM tab0
----
-2942

query I rowsort
SELECT col2 + - - col2 FROM tab1
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT DISTINCT ( COUNT( * ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2920
SELECT DISTINCT ( COUNT ( * ) ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2921
SELECT ALL - col0 * + ( - 69 ) - + 41 * col0 DIV col0 + col1 FROM tab0
----
1075
5983
6653

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL - col0 * + ( - 69 ) - + 41 * col0 / col0 + col1 FROM tab0
----
1075
5983
6653

query II rowsort
SELECT DISTINCT - 57, col0 FROM tab1
----
-57
51
-57
85
-57
91

query I rowsort
SELECT col0 + col2 * + - col2 FROM tab0
----
-13
-2194
-9704

query II rowsort
SELECT ALL + col0, - col0 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

query I rowsort
SELECT DISTINCT + + 13 FROM tab0 cor0
----
13

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 44 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT + MIN( DISTINCT - + 15 ) FROM tab2 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2927
SELECT + MIN ( DISTINCT - + 15 ) FROM tab2 cor0
----
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-2928
SELECT + col0 DIV + col1, col0 FROM tab2
----
0
46
0
64
1
75

skipif mysql # not compatible
query II rowsort label-2928
SELECT + col0 / + col1, col0 FROM tab2
----
0
46
0
64
1
75

onlyif mysql # DIV for integer division: 
query II rowsort label-2929
SELECT + col1, col2 DIV - + col0 AS col0 FROM tab2
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-2929
SELECT + col1, col2 / - + col0 AS col0 FROM tab2
----
51
0
67
0
77
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 >= - col0 )
----

query I rowsort
SELECT - - 43 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2932
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( + - col0 ) NOT IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 45 IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 59 AS col1, col2 * - - col1 col1 FROM tab0 AS cor0
----
59
210
59
3807
59
99

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT - col1 + + ( - col2 ) * col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2938
SELECT MAX( ( col0 ) ) * ( - 23 ) DIV + - 78 + + COUNT( * ) + MIN( ALL col1 ) AS col2 FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-2938
SELECT MAX ( ( col0 ) ) * ( - 23 ) / + - 78 + + COUNT ( * ) + MIN ( ALL col1 ) AS col2 FROM tab2 AS cor0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2939
SELECT ( + + 51 ) DIV col2 col0 FROM tab2
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2939
SELECT ( + + 51 ) / col2 col0 FROM tab2
----
0
1
2

query II rowsort
SELECT col1 * - 77 AS col2, + col1 + 87 FROM tab0
----
-1617
108
-6237
168
-77
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2941
SELECT col2 + - + col1 + + - 22 DIV + col0 FROM tab1
----
21
54
82

skipif mysql # not compatible
query I rowsort label-2941
SELECT col2 + - + col1 + + - 22 / + col0 FROM tab1
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT ALL + SUM( + + 18 ) AS col2 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL + SUM ( + + 18 ) AS col2 FROM tab0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 18 * col0 col2 FROM tab2
----
42228
88704
90450

query I rowsort
SELECT DISTINCT + - 72 + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-119
-171
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT DISTINCT + 20 * + COUNT( * ) - + COUNT( * ) FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-2945
SELECT DISTINCT + 20 * + COUNT ( * ) - + COUNT ( * ) FROM tab0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT - - COUNT( * ) + + - COUNT( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2946
SELECT - - COUNT ( * ) + + - COUNT ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL - - 55 AS col2, col1 AS col0 FROM tab0 AS cor0
----
55
1
55
21
55
81

query I rowsort
SELECT col0 + - 86 + + col1 * + col0 * - 38 * + 76 AS col2 FROM tab2 AS cor0
----
-14232086
-14512211
-6775288

query I rowsort
SELECT - col0 + 47 AS col1 FROM tab0 AS cor0
----
-40
-50
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT DISTINCT + COUNT( * ) + ( - MAX( - col1 ) ) + 19 AS col0 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT + COUNT ( * ) + ( - MAX ( - col1 ) ) + 19 AS col0 FROM tab2 AS cor0
----
73

query I rowsort
SELECT - + col1 + + - col0 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT COUNT( * ) + - - COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2952
SELECT COUNT ( * ) + - - COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2953
SELECT - 27 DIV col1 + - 43 + 58 AS col2 FROM tab1 cor0
----
10
14
15

skipif mysql # not compatible
query I rowsort label-2953
SELECT - 27 / col1 + - 43 + 58 AS col2 FROM tab1 cor0
----
10
14
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2954
SELECT + col1 * col1 + 18 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2954
SELECT + col1 * col1 + 18 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + col2 * + - col0 AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT - 43 FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - 23 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2958
SELECT DISTINCT - col1 - - col2 AS col0, - col2 + col0 * + CAST( NULL AS SIGNED ) FROM tab2
----
-28
NULL
-37
NULL
-9
NULL

skipif mysql # not compatible
query II rowsort label-2958
SELECT DISTINCT - col1 - - col2 AS col0, - col2 + col0 * + CAST ( NULL AS INTEGER ) FROM tab2
----
-28
NULL
-37
NULL
-9
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2959
SELECT ALL - col0 - + CAST( - col0 AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2959
SELECT ALL - col0 - + CAST ( - col0 AS INTEGER ) FROM tab1
----
0
0
0

query I rowsort
SELECT ALL ( col2 ) * + + col1 * + + ( 51 ) FROM tab1
----
15045
162996
68544

onlyif mysql # DIV for integer division: 
query II rowsort label-2961
SELECT ALL 35 DIV - col0, col1 AS col1 FROM tab0
----
-2
81
0
1
0
21

skipif mysql # not compatible
query II rowsort label-2961
SELECT ALL 35 / - col0, col1 AS col1 FROM tab0
----
-2
81
0
1
0
21

query II rowsort
SELECT ALL col1 AS col0, col2 AS col1 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

query II rowsort
SELECT + col1 * - col0, + col0 AS col2 FROM tab0 AS cor0
----
-1215
15
-1827
87
-97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT + SUM( DISTINCT + col0 ) * COUNT( DISTINCT 80 ) AS col2 FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-2964
SELECT + SUM ( DISTINCT + col0 ) * COUNT ( DISTINCT 80 ) AS col2 FROM tab2 cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <> - 10
----
0

skipif mysql # not compatible
query I rowsort label-2965
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <> - 10
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 39 IS NOT NULL
----

query I rowsort
SELECT ALL - - col1 * col2 * - 61 * - 91 AS col0 FROM tab2 WHERE + + col2 IS NOT NULL
----
17097080
21571186
6511323

query I rowsort
SELECT - col2 * - col2 * + ( col1 ) AS col2 FROM tab2 AS cor0
----
123200
225388
26979

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2969
SELECT + col1, + CAST( - 75 AS SIGNED ) FROM tab1 cor0
----
14
-75
47
-75
5
-75

skipif mysql # not compatible
query II rowsort label-2969
SELECT + col1, + CAST ( - 75 AS INTEGER ) FROM tab1 cor0
----
14
-75
47
-75
5
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT MIN( 46 ) AS col2 FROM tab0 cor0
----
46

skipif mysql # not compatible
query I rowsort label-2970
SELECT MIN ( 46 ) AS col2 FROM tab0 cor0
----
46

query I rowsort
SELECT + - ( - 74 ) FROM tab1 AS cor0
----
74
74
74

query II rowsort
SELECT - col0, col0 AS col2 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT - COUNT( ALL + 82 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2973
SELECT - COUNT ( ALL + 82 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2974
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * col0 + col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * col0 + col2 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 45 FROM tab1 cor0 WHERE NULL <> + 89
----

query I rowsort
SELECT 69 FROM tab2 AS cor0 WHERE NOT NULL > - 69 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT ALL - SUM( DISTINCT + - col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL - SUM ( DISTINCT + - col0 ) AS col1 FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT 58 * + - SUM( DISTINCT - 35 ) AS col2 FROM tab1
----
2030

skipif mysql # not compatible
query I rowsort label-2978
SELECT 58 * + - SUM ( DISTINCT - 35 ) AS col2 FROM tab1
----
2030

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2979
SELECT DISTINCT * FROM tab1 WHERE NOT ( - - CAST( - col2 AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2979
SELECT DISTINCT * FROM tab1 WHERE NOT ( - - CAST ( - col2 AS REAL ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2980
SELECT ALL * FROM tab2 WHERE - col0 * - col0 BETWEEN NULL AND - 48 * - + col1 * col0 * + CAST( NULL AS DECIMAL ) + - col0
----

skipif mysql # not compatible
query III rowsort label-2980
SELECT ALL * FROM tab2 WHERE - col0 * - col0 BETWEEN NULL AND - 48 * - + col1 * col0 * + CAST ( NULL AS REAL ) + - col0
----

query II rowsort
SELECT ALL col2 AS col0, - col0 FROM tab0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT + ( - 61 ) / 88 - + + ( - col0 ) - - + 61 + - 59 IS NULL
----
1
21
81

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2983
SELECT col2 * - 27, + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
-1593
NULL
-1836
NULL
-2592
NULL

skipif mysql # not compatible
query II rowsort label-2983
SELECT col2 * - 27, + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
-1593
NULL
-1836
NULL
-2592
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN 92 AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + ( - col1 ) ) col0 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL - ( col1 ) FROM tab1 AS cor0 WHERE NOT - 22 IS NULL
----
-14
-47
-5

query II rowsort
SELECT ALL col2 * col2 + + + col1 + - col0 - - - 93 + + - 50 AS col1, + 25 FROM tab1 AS cor0
----
3258
25
4437
25
9036
25

query I rowsort
SELECT ALL - + 79 * col1 AS col0 FROM tab1 AS cor0
----
-1106
-3713
-395

query I rowsort
SELECT DISTINCT + - 88 + - col2 + 9 + + - 82 * - col0 AS col0 FROM tab0 AS cor0
----
1104
7045
7776

query II rowsort
SELECT ALL 60, col1 * + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - ( + - col0 ) * - col2 - + col2 FROM tab0 AS cor0
----
-752
-880
-9702

query I rowsort
SELECT DISTINCT + - 22 FROM tab2 cor0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2993
SELECT ALL + CAST( + - 88 AS SIGNED ) FROM tab1 cor0
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL + CAST ( + - 88 AS INTEGER ) FROM tab1 cor0
----
-88
-88
-88

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 85 + + - col2 > col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2995
SELECT + CAST( NULL AS SIGNED ) + - 52 + - col1 FROM tab2 AS cor0 WHERE col1 > NULL
----

skipif mysql # not compatible
query I rowsort label-2995
SELECT + CAST ( NULL AS INTEGER ) + - 52 + - col1 FROM tab2 AS cor0 WHERE col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN 53 AND - 38
----
0

skipif mysql # not compatible
query I rowsort label-2996
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN 53 AND - 38
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT 49 - - ( + + ( + COUNT( * ) ) ) AS col1 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-2997
SELECT 49 - - ( + + ( + COUNT ( * ) ) ) AS col1 FROM tab1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2998
SELECT col2, + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-2998
SELECT col2, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2999
SELECT COUNT( * ) col0, - 48 AS col2 FROM tab2
----
3
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2999
SELECT COUNT ( * ) col0, - 48 AS col2 FROM tab2
----
3
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT - MIN( DISTINCT 21 ) AS col1 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-3000
SELECT - MIN ( DISTINCT 21 ) AS col1 FROM tab2
----
-21

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 BETWEEN + + 77 AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * col1 AS col2 FROM tab0 WHERE NOT - 38 IN ( - + col2 )
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT - SUM( + 36 ) FROM tab0
----
-108

skipif mysql # not compatible
query I rowsort label-3003
SELECT - SUM ( + 36 ) FROM tab0
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3004
SELECT DISTINCT CAST( NULL AS SIGNED ) / - - 2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - - 2 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab0 WHERE + + col1 * + - col2 IS NULL
----

query II rowsort
SELECT DISTINCT + 96 AS col1, + 68 AS col2 FROM tab0 AS cor0
----
96
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + - col1 / + col0 + 74 + - col2 * - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col0, col2 AS col2 FROM tab2 cor0
----
46
23
64
40
75
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3009
SELECT DISTINCT col0 * col2 DIV + - 70 FROM tab0 AS cor0
----
-10
-12
-137

skipif mysql # not compatible
query I rowsort label-3009
SELECT DISTINCT col0 * col2 / + - 70 FROM tab0 AS cor0
----
-10
-12
-137

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3010
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3010
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 < CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3011
SELECT DISTINCT + 25 DIV - + col2 AS col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-3011
SELECT DISTINCT + 25 / - + col2 AS col0 FROM tab2
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3012
SELECT ALL col1 DIV - 19 FROM tab1
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL col1 / - 19 FROM tab1
----
-2
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - 14 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 + + 19 AS col1 FROM tab0 AS cor0
----
118
29
66

query I rowsort
SELECT + 43 FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN col0 AND - - 40 / + col1 + - 46
----
43
43
43

onlyif mysql # aggregate syntax: 
query II rowsort label-3016
SELECT - 8 + + + COUNT( * ) AS col1, - COUNT( * ) FROM tab2 AS cor0
----
-5
-3

skipif mysql # not compatible
query II rowsort label-3016
SELECT - 8 + + + COUNT ( * ) AS col1, - COUNT ( * ) FROM tab2 AS cor0
----
-5
-3

query I rowsort
SELECT ALL + col2 * - 46 + - + col1 + - ( + 20 ) FROM tab1 AS cor0
----
-2739
-3195
-4450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 col0 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT - COUNT( * ) col1 FROM tab0, tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3019
SELECT - COUNT ( * ) col1 FROM tab0, tab1 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 <> NULL )
----

query I rowsort
SELECT ALL + 35 AS col0 FROM tab2
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT ( COUNT( * ) ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3022
SELECT ( COUNT ( * ) ) AS col2 FROM tab0 cor0
----
3

query II rowsort
SELECT - - ( + col0 ), col1 AS col1 FROM tab2 WHERE NULL IS NULL
----
46
51
64
77
75
67

query II rowsort
SELECT DISTINCT col0, + col1 AS col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT ALL - 46 * + - 45 * - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3026
SELECT - 15 + - + CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3026
SELECT - 15 + - + CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3027
SELECT ALL + COUNT( * ) + + CAST( NULL AS SIGNED ) * - - 47 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - - 47 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3028
SELECT ALL COUNT( * ) col1, 99 FROM tab0 AS cor0
----
3
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3028
SELECT ALL COUNT ( * ) col1, 99 FROM tab0 AS cor0
----
3
99

query I rowsort
SELECT ALL - ( - col2 ) * col1 * - + 25 * + col0 FROM tab2 AS cor0
----
-1348950
-4928000
-7286250

query I rowsort
SELECT DISTINCT + 37 FROM tab1 cor0 WHERE NOT ( ( NOT ( NULL NOT IN ( + - col0 ) ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( ( + col1 ) ) col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT DISTINCT + COUNT( * ) * 80 AS col0 FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT + COUNT ( * ) * 80 AS col0 FROM tab1
----
240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3033
SELECT DISTINCT 79 FROM tab0 WHERE + CAST( NULL AS SIGNED ) + + - 65 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT 79 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) + + - 65 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 74 ) col1 FROM tab1
----
74
74
74

query I rowsort
SELECT + 22 AS col2 FROM tab1 cor0
----
22
22
22

query II rowsort
SELECT ALL + - col0 * - col1 AS col0, - col0 AS col0 FROM tab2 AS cor0
----
2346
-46
4928
-64
5025
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT + - COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3037
SELECT + - COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT DISTINCT - 18 AS col0 FROM tab0 WHERE NOT ( NOT NULL < ( NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3039
SELECT col2 * + col2 + col1 + + + ( + col2 ) DIV 18 FROM tab2
----
1679
3434
581

skipif mysql # not compatible
query I rowsort label-3039
SELECT col2 * + col2 + col1 + + + ( + col2 ) / 18 FROM tab2
----
1679
3434
581

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT - COUNT( * ) + + - 55 FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-3040
SELECT - COUNT ( * ) + + - 55 FROM tab1
----
-58

query II rowsort
SELECT + col0, col0 AS col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT DISTINCT - 88 * + + 85 + 25 * + col2 FROM tab2 AS cor0
----
-6030
-6480
-6905

query I rowsort
SELECT ALL - 54 * col1 FROM tab2 AS cor0
----
-2754
-3618
-4158

query I rowsort
SELECT + 77 FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL - 26 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-26
-26
-26

query I rowsort
SELECT ALL - - col0 * 89 * 40 * + col2 + col0 FROM tab1 AS cor0
----
17429811
17853485
22029371

query I rowsort
SELECT DISTINCT + + 97 AS col1 FROM tab2 AS cor0
----
97

query II rowsort
SELECT - col2 AS col2, + 98 * 74 + + 51 FROM tab2 AS cor0
----
-23
7303
-40
7303
-58
7303

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3049
SELECT DISTINCT ( col0 ) * 71 + + - CAST( NULL AS SIGNED ) + + + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT ( col0 ) * 71 + + - CAST ( NULL AS INTEGER ) + + + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + 95 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col2 * 48, col0 AS col2 FROM tab1
----
2832
85
3264
91
4608
51

query III rowsort
SELECT * FROM tab2 WHERE - 99 / + + 30 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT + COUNT( * ) - + + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3053
SELECT + COUNT ( * ) - + + COUNT ( * ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 >= + col0 + - 62
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 99 + - + col1 * - col2 AS col2 FROM tab0 AS cor0
----
198
309
3906

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT DISTINCT + SUM( col2 ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col0 - + col2, 90, - col1 + - col1 + col2 / - col1 - + col1 * 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3056
SELECT DISTINCT + SUM ( col2 ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col0 - + col2, 90, - col1 + - col1 + col2 / - col1 - + col1 * 97 )
----
NULL

query I rowsort
SELECT ALL + 12 * - col0 FROM tab0 AS cor0
----
-1044
-1164
-180

onlyif mysql # DIV for integer division: 
query I rowsort label-3058
SELECT col0 DIV - - 14 FROM tab2
----
3
4
5

skipif mysql # not compatible
query I rowsort label-3058
SELECT col0 / - - 14 FROM tab2
----
3
4
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT ALL COUNT( * ) AS col1 FROM tab2 WHERE NOT - col2 - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3059
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE NOT - col2 - col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT DISTINCT + ( + SUM( ALL 37 ) ) AS col1 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-3060
SELECT DISTINCT + ( + SUM ( ALL 37 ) ) AS col1 FROM tab2
----
111

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 = + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * + - col2 FROM tab0
----
-210
-3807
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + ( - + col0 ) col1 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT ALL + - MAX( DISTINCT + - col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL + - MAX ( DISTINCT + - col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT 22 FROM tab1 AS cor0 WHERE NOT 59 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col0, col1 col2 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3067
SELECT ALL + col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3067
SELECT ALL + col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3068
SELECT DISTINCT + + col2 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT + + col2 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3069
SELECT + 61 AS col0, ( col0 ) + - col1 AS col1 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) >= + 78 * - col2
----

skipif mysql # not compatible
query II rowsort label-3069
SELECT + 61 AS col0, ( col0 ) + - col1 AS col1 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) >= + 78 * - col2
----

query I rowsort
SELECT DISTINCT 49 * - + col2 + col0 + + 79 AS col1 FROM tab2 AS cor0
----
-1002
-1817
-2688

query I rowsort
SELECT DISTINCT 93 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) <= - col2 / 28 - + col0
----

query I rowsort
SELECT - col0 + + + 0 * - col1 AS col2 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT - ( col1 ) + + col0 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
-14
-47
-5

query I rowsort
SELECT DISTINCT col2 + 18 - + + col1 FROM tab1 AS cor0
----
100
39
72

query I rowsort
SELECT 94 + + col2 + 81 FROM tab0
----
185
222
274

query I rowsort
SELECT ALL + + 90 FROM tab2 WHERE NULL IS NULL
----
90
90
90

query I rowsort
SELECT + col0 + 47 + - col2 AS col0 FROM tab0
----
124
15
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3079
SELECT ALL - CAST( col0 AS SIGNED ) + + col1 AS col0 FROM tab2
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL - CAST ( col0 AS INTEGER ) + + col1 AS col0 FROM tab2
----
-8
13
5

query I rowsort
SELECT ALL + - col0 FROM tab2 WHERE NULL >= - - col1 / 6
----

query I rowsort
SELECT DISTINCT + + 99 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
99

query I rowsort
SELECT DISTINCT + col0 - - 45 FROM tab1
----
130
136
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3083
SELECT - + MIN( ALL 13 ) / + + COUNT( * ) FROM tab1 WHERE - CAST( NULL AS SIGNED ) > + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3083
SELECT - + MIN ( ALL 13 ) / + + COUNT ( * ) FROM tab1 WHERE - CAST ( NULL AS INTEGER ) > + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT COUNT( * ) * - COUNT( * ) AS col1 FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3084
SELECT COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0 cor0
----
-9

query I rowsort
SELECT ALL - col0 + 17 FROM tab2 AS cor0
----
-29
-47
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT - 90 - - SUM( DISTINCT - 95 ) AS col2 FROM tab1 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3086
SELECT - 90 - - SUM ( DISTINCT - 95 ) AS col2 FROM tab1 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3087
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + + - col0 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT ALL + 13 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN + col0 AND col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 BETWEEN NULL AND - ( - 74 ) + - - col2 + - 62 / - - col0
----

query I rowsort
SELECT DISTINCT + 97 AS col1 FROM tab2 AS cor0 WHERE - col0 = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT + + MAX( ALL + ( + 57 ) ) AS col0 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-3093
SELECT + + MAX ( ALL + ( + 57 ) ) AS col0 FROM tab1 AS cor0
----
57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND + 26
----

query I rowsort
SELECT DISTINCT 24 + col2 FROM tab1 AS cor0 WHERE NOT NULL <= + 9
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 * - 94, col2 )
----

query I rowsort
SELECT - - 56 AS col2 FROM tab1 cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query II rowsort label-3098
SELECT - MAX( col1 ) AS col2, 41 AS col0 FROM tab2 AS cor0
----
-77
41

skipif mysql # not compatible
query II rowsort label-3098
SELECT - MAX ( col1 ) AS col2, 41 AS col0 FROM tab2 AS cor0
----
-77
41

query I rowsort
SELECT ALL - - col2 FROM tab2 AS cor0 WHERE NOT 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT DISTINCT + MIN( ALL + col2 ) col1 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3100
SELECT DISTINCT + MIN ( ALL + col2 ) col1 FROM tab2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3101
SELECT col1 DIV 96 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3101
SELECT col1 / 96 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * col2 + col1 col0, - col2 AS col0 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT col0 * - + 65 AS col0 FROM tab0
----
-5655
-6305
-975

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 6 <= - 58
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3105
SELECT ALL col1 col2, + 43 / ( - col0 ) + ( + col0 ) + + CAST( NULL AS SIGNED ) FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3105
SELECT ALL col1 col2, + 43 / ( - col0 ) + ( + col0 ) + + CAST ( NULL AS INTEGER ) FROM tab0
----
1
NULL
21
NULL
81
NULL

query II rowsort
SELECT DISTINCT col1 AS col1, + col0 AS col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 * ( - + col2 ) + + + col0 + - col2 * col1 * 76 IS NULL )
----

query II rowsort
SELECT ALL + col1 * - - col2 + + col0, - col0 * - ( + col0 ) AS col2 FROM tab0 AS cor0
----
196
9409
297
7569
3822
225

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE col2 + col2 / + col1 > - 81
----
3

skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE col2 + col2 / + col1 > - 81
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + - 67 col2 FROM tab2 AS cor0
----
-107
-125
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3111
SELECT DISTINCT - - 86 + - col0 + col2 + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3111
SELECT DISTINCT - - 86 + - col0 + col2 + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * + - 56 FROM tab0
----
-2632
-5544
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT DISTINCT - SUM( ALL + col1 ) + ( + COUNT( ALL - col1 ) ) AS col1 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT - SUM ( ALL + col1 ) + ( + COUNT ( ALL - col1 ) ) AS col1 FROM tab1 AS cor0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3114
SELECT + COUNT( * ) / - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3114
SELECT + COUNT ( * ) / - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 * - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 40 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 * - 6 NOT BETWEEN - 46 AND + + col1
----

query I rowsort
SELECT ALL + 16 * + 67 * ( 38 ) FROM tab1 AS cor0
----
40736
40736
40736

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3118
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3119
SELECT ALL * FROM tab0 AS cor0 WHERE ( 36 + + + col0 + + + col1 ) IN ( - col0, - col1 / col2, - col2, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3119
SELECT ALL * FROM tab0 AS cor0 WHERE ( 36 + + + col0 + + + col1 ) IN ( - col0, - col1 / col2, - col2, - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - col2 + + + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 + - - 49 FROM tab1 AS cor0
----
2
35
44

query I rowsort
SELECT DISTINCT col0 * - col0 - + col2 AS col1 FROM tab0
----
-272
-7579
-9508

query II rowsort
SELECT col1 - + col1, col0 FROM tab1
----
0
51
0
85
0
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3124
SELECT DISTINCT - col1 DIV - col0 + - + col2 FROM tab0
----
-10
-42
-99

skipif mysql # not compatible
query I rowsort label-3124
SELECT DISTINCT - col1 / - col0 + - + col2 FROM tab0
----
-10
-42
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT ALL SUM( + 16 ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL SUM ( + 16 ) FROM tab1
----
48

query I rowsort
SELECT + 87 * + col0 + + + 44 AS col2 FROM tab1
----
4481
7439
7961

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT ALL - - 25 - - COUNT( * ) FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL - - 25 - - COUNT ( * ) FROM tab0 AS cor0
----
28

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + ( - ( + - col2 ) ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3130
SELECT - 63 DIV - 67 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3130
SELECT - 63 / - 67 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * + 36 FROM tab1
----
2124
2448
3456

query I rowsort
SELECT DISTINCT + + col1 * - + col0 * col0 AS col2 FROM tab0 WHERE + 1 IS NOT NULL
----
-158949
-18225
-9409

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT 24 = - col1
----
-10
-47
-99

query II rowsort
SELECT + col1 AS col0, - col1 * + col1 + - col1 * - col2 FROM tab1 WHERE NOT + + 71 * 49 * 72 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT COUNT( DISTINCT + ( + 79 ) ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3135
SELECT COUNT ( DISTINCT + ( + 79 ) ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT + SUM( DISTINCT 48 ) * COUNT( * ) FROM tab2 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-3136
SELECT + SUM ( DISTINCT 48 ) * COUNT ( * ) FROM tab2 AS cor0
----
144

query III rowsort
SELECT * FROM tab1 WHERE - col1 / ( col1 ) * col1 IS NOT NULL OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 20 + - ( - + col1 ) AS col2 FROM tab2
----
71
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3139
SELECT + - col2 DIV - col2 + col2 FROM tab0 WHERE NOT - col0 IS NULL
----
100
11
48

skipif mysql # not compatible
query I rowsort label-3139
SELECT + - col2 / - col2 + col2 FROM tab0 WHERE NOT - col0 IS NULL
----
100
11
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3140
SELECT ALL - - col1 * - col1 + + - ( + - col0 ) DIV col2 FROM tab2 AS cor0
----
-2599
-4488
-5928

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL - - col1 * - col1 + + - ( + - col0 ) / col2 FROM tab2 AS cor0
----
-2599
-4488
-5928

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT DISTINCT - - SUM( - - 38 ) + + ( - COUNT( * ) ) * + 18 AS col2 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT - - SUM ( - - 38 ) + + ( - COUNT ( * ) ) * + 18 AS col2 FROM tab2 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT DISTINCT - COUNT( ALL col0 ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3142
SELECT DISTINCT - COUNT ( ALL col0 ) col2 FROM tab1
----
-3

query I rowsort
SELECT ALL + 19 FROM tab0 cor0
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT DISTINCT - MIN( DISTINCT + col0 ) * + COUNT( * ) FROM tab0 cor0
----
-45

skipif mysql # not compatible
query I rowsort label-3144
SELECT DISTINCT - MIN ( DISTINCT + col0 ) * + COUNT ( * ) FROM tab0 cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT COUNT( * ) + - 39 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-3145
SELECT COUNT ( * ) + - 39 FROM tab1 AS cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3146
SELECT CAST( NULL AS SIGNED ) + - ( + + col2 ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3146
SELECT CAST ( NULL AS INTEGER ) + - ( + + col2 ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3147
SELECT + col0 + - CAST( NULL AS SIGNED ) + - col2 AS col2, 97 FROM tab1 AS cor0
----
NULL
97
NULL
97
NULL
97

skipif mysql # not compatible
query II rowsort label-3147
SELECT + col0 + - CAST ( NULL AS INTEGER ) + - col2 AS col2, 97 FROM tab1 AS cor0
----
NULL
97
NULL
97
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT + COUNT( * ) + 89 FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-3148
SELECT + COUNT ( * ) + 89 FROM tab0 AS cor0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3149
SELECT ALL + CAST( NULL AS SIGNED ) + 77 + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL + CAST ( NULL AS INTEGER ) + 77 + - col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col1 * - - col2 FROM tab2
----
23
1173
40
3080
58
3886

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 78 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 * + col1 + + - col2 + - - col0 AS col2 FROM tab2 WHERE + col1 IS NULL
----

query II rowsort
SELECT + col2 * + col0, + col2 AS col1 FROM tab2
----
1058
23
2560
40
4350
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3154
SELECT ( - ( COUNT( * ) ) ) - - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3154
SELECT ( - ( COUNT ( * ) ) ) - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ( + 87 ) * - col1 AS col1 FROM tab2 AS cor0
----
-4437
-5829
-6699

query I rowsort
SELECT DISTINCT col0 * + + col0 AS col0 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT col1 * + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
425
4277
714

query II rowsort
SELECT ALL + col2 AS col2, - col0 * + + col0 + - col1 * - - col2 * - col1 FROM tab2 AS cor0
----
23
57707
40
233064
58
254737

query I rowsort
SELECT ALL - + ( - col2 ) * - 9 AS col1 FROM tab1 AS cor0
----
-531
-612
-864

query I rowsort
SELECT ALL - col0 * - col1 * col2 FROM tab1 AS cor0
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT DISTINCT SUM( ALL + col2 ) AS col2 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-3161
SELECT DISTINCT SUM ( ALL + col2 ) AS col2 FROM tab0 cor0
----
156

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) = NULL
----

query II rowsort
SELECT DISTINCT + col2 + - 42 * + 94, + col0 + - col1 FROM tab1 WHERE NOT ( NULL NOT BETWEEN + col2 AND + - 84 )
----

query I rowsort
SELECT DISTINCT 57 + + col2 * - col0 * + col0 FROM tab1
----
-249639
-426218
-563051

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT COUNT( * ) * - - 6 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-3165
SELECT COUNT ( * ) * - - 6 FROM tab1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT ALL SUM( + 19 ) AS col2 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL SUM ( + 19 ) AS col2 FROM tab2 AS cor0
----
57

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col0 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3168
SELECT * FROM tab2 AS cor0 WHERE + 15 > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3168
SELECT * FROM tab2 AS cor0 WHERE + 15 > CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 22 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3170
SELECT DISTINCT CAST( 75 AS SIGNED ) DIV + col2 + - col1 AS col1 FROM tab2
----
-48
-66
-76

skipif mysql # not compatible
query I rowsort label-3170
SELECT DISTINCT CAST ( 75 AS INTEGER ) / + col2 + - col1 AS col1 FROM tab2
----
-48
-66
-76

query I rowsort
SELECT col1 + + col2 * col2 AS col0 FROM tab2
----
1677
3431
580

query I rowsort
SELECT ALL - col1 * + 72 FROM tab2
----
-3672
-4824
-5544

query I rowsort
SELECT + col1 - col2 FROM tab1 WHERE ( NULL ) IS NULL
----
-21
-54
-82

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 43 - - col1 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3175
SELECT ALL - col0 DIV + col0 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL - col0 / + col0 AS col2 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT + SUM( ALL - col1 ) col1 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3176
SELECT + SUM ( ALL - col1 ) col1 FROM tab1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-3177
SELECT - 66 DIV col1 FROM tab1
----
-1
-13
-4

skipif mysql # not compatible
query I rowsort label-3177
SELECT - 66 / col1 FROM tab1
----
-1
-13
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3178
SELECT 39 + MIN( ALL + CAST( + col0 AS SIGNED ) ) * - COUNT( * ) FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-3178
SELECT 39 + MIN ( ALL + CAST ( + col0 AS INTEGER ) ) * - COUNT ( * ) FROM tab2
----
-99

query I rowsort
SELECT ALL + 58 * - 12 FROM tab1
----
-696
-696
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT + COUNT( * ) * + 46 FROM tab1 WHERE NOT ( 82 ) BETWEEN ( 34 * - 74 ) AND col1 * - col0 + - col0
----
138

skipif mysql # not compatible
query I rowsort label-3180
SELECT + COUNT ( * ) * + 46 FROM tab1 WHERE NOT ( 82 ) BETWEEN ( 34 * - 74 ) AND col1 * - col0 + - col0
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3181
SELECT ALL col2 + - CAST( - col0 AS SIGNED ) FROM tab1
----
144
147
159

skipif mysql # not compatible
query I rowsort label-3181
SELECT ALL col2 + - CAST ( - col0 AS INTEGER ) FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3182
SELECT ALL COUNT( * ) DIV ( COUNT( col0 ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL COUNT ( * ) / ( COUNT ( col0 ) ) FROM tab2
----
1

query I rowsort
SELECT DISTINCT col1 * 69 FROM tab0
----
1449
5589
69

query I rowsort
SELECT col1 * + 48 FROM tab2
----
2448
3216
3696

onlyif mysql # DIV for integer division: 
query I rowsort label-3185
SELECT col0 + 69 DIV - 95 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3185
SELECT col0 + 69 / - 95 FROM tab0
----
15
87
97

query I rowsort
SELECT - col0 * col1 + 13 AS col2 FROM tab2
----
-2333
-4915
-5012

query I rowsort
SELECT ALL ( + col1 ) + col1 * + col0 AS col1 FROM tab1
----
430
4324
728

query I rowsort
SELECT col0 * 49 FROM tab2
----
2254
3136
3675

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT + COUNT( * ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3189
SELECT + COUNT ( * ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT DISTINCT - COUNT( ALL + col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT - COUNT ( ALL + col2 ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 / 56 ) NOT BETWEEN 32 * col0 + - col1 AND + 89
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT 60 + - 56 IS NULL
----
14
47
5

query I rowsort
SELECT ALL 58 AS col0 FROM tab2 WHERE NOT ( NULL ) = - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT + SUM( DISTINCT + 5 ) AS col1 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-3194
SELECT + SUM ( DISTINCT + 5 ) AS col1 FROM tab2
----
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND - col1
----

query I rowsort
SELECT ALL - ( + 27 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - col2 )
----

query I rowsort
SELECT ALL 47 * + 24 FROM tab2 AS cor0
----
1128
1128
1128

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > 57
----

query I rowsort
SELECT - 98 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 - - col2 IS NULL
----
-98
-98
-98

query I rowsort
SELECT DISTINCT + 27 * 29 FROM tab2 AS cor0
----
783

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 / - ( 68 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT 57 * - col2 AS col2 FROM tab0
----
-2679
-5643
-570

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT ALL MIN( - col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL MIN ( - col0 ) FROM tab2
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3205
SELECT 84 DIV - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3205
SELECT 84 / - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1
----
-9

query I rowsort
SELECT DISTINCT + + 28 * + col2 FROM tab0 AS cor0
----
1316
2772
280

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 26 + col0 * 61 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3209
SELECT DISTINCT + ( 47 ) * CAST( col2 AS DECIMAL ) FROM tab2 WHERE NOT 92 * col1 <> col0
----

skipif mysql # not compatible
query I rowsort label-3209
SELECT DISTINCT + ( 47 ) * CAST ( col2 AS REAL ) FROM tab2 WHERE NOT 92 * col1 <> col0
----

query I rowsort
SELECT + 13 + + - col2 AS col1 FROM tab1
----
-46
-55
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 84 ) + col1 col0 FROM tab0
----
105
165
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT + COUNT( * ) + - MAX( 36 ) FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-3212
SELECT + COUNT ( * ) + - MAX ( 36 ) FROM tab1
----
-33

query I rowsort
SELECT - col1 * + col1 + 42 FROM tab2
----
-2559
-4447
-5887

query I rowsort
SELECT ALL - col0 + - 65 * col2 FROM tab1
----
-3920
-4511
-6291

query III rowsort
SELECT * FROM tab1 WHERE - 35 IS NULL
----

query I rowsort
SELECT DISTINCT - ( + 98 ) AS col2 FROM tab0
----
-98

query I rowsort
SELECT ALL - ( + ( col1 ) ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + 23 + + + 89 FROM tab1 AS cor0
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-3219
SELECT ALL + col0 + col2 + - col0 DIV - col1 FROM tab0 AS cor0
----
101
293
62

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL + col0 + col2 + - col0 / - col1 FROM tab0 AS cor0
----
101
293
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT DISTINCT - COUNT( DISTINCT - + col1 ) * - 95 AS col2 FROM tab0 cor0
----
285

skipif mysql # not compatible
query I rowsort label-3220
SELECT DISTINCT - COUNT ( DISTINCT - + col1 ) * - 95 AS col2 FROM tab0 cor0
----
285

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 86 BETWEEN ( + col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT SUM( col0 ) FROM tab2 cor0 WHERE 46 = + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3222
SELECT SUM ( col0 ) FROM tab2 cor0 WHERE 46 = + 17
----
NULL

query I rowsort
SELECT DISTINCT 42 FROM tab2 AS cor0 WHERE col0 * 5 IS NOT NULL
----
42

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE + col1 BETWEEN col1 AND 64
----
51
85
91

query I rowsort
SELECT DISTINCT - col2 * col0 + + col0 * col0 FROM tab2 AS cor0
----
1058
1275
1536

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 51 * + col2 + - 29 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE - col2 BETWEEN 68 AND 71 * 55
----
0

skipif mysql # not compatible
query I rowsort label-3227
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE - col2 BETWEEN 68 AND 71 * 55
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3228
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT ALL COUNT( * ) col0 FROM tab1, tab0 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3229
SELECT ALL COUNT ( * ) col0 FROM tab1, tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3230
SELECT ALL - - COUNT( * ) col1, 32 FROM tab0 AS cor0
----
3
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3230
SELECT ALL - - COUNT ( * ) col1, 32 FROM tab0 AS cor0
----
3
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 50 col0 FROM tab0 AS cor0
----
-49
3
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT DISTINCT + MIN( + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3232
SELECT DISTINCT + MIN ( + col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT 46 + + + col1 FROM tab0 AS cor0
----
127
47
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT - COUNT( * ) + - 55 FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3234
SELECT - COUNT ( * ) + - 55 FROM tab0 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT ALL + COUNT( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3235
SELECT ALL + COUNT ( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT 66 + + 98 AS col0 FROM tab0 AS cor0
----
164

query I rowsort
SELECT 62 * col2 AS col1 FROM tab2 AS cor0 WHERE ( - col2 ) NOT IN ( + 17 )
----
1426
2480
3596

query I rowsort
SELECT + + 85 * col0 + - - 92 FROM tab0 AS cor0
----
1367
7487
8337

query I rowsort
SELECT ALL + col2 FROM tab0 cor0 WHERE NOT ( - col2 * - col0 / 57 ) IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3240
SELECT ALL - col2 * - - 15 + - + CAST( col1 AS SIGNED ) + - 14 FROM tab2 AS cor0
----
-410
-691
-951

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL - col2 * - - 15 + - + CAST ( col1 AS INTEGER ) + - 14 FROM tab2 AS cor0
----
-410
-691
-951

query II rowsort
SELECT col1, + col1 AS col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

query III rowsort
SELECT * FROM tab0 WHERE NOT - 82 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 32 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 95 FROM tab1 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT 24 * 97 FROM tab1 AS cor0 WHERE NOT + col1 - + + col1 BETWEEN + 89 * 64 AND col2
----
2328

query I rowsort
SELECT + + col2 * - 46 * - col0 FROM tab0 AS cor0
----
32430
40020
441738

query I rowsort
SELECT - ( + + col2 ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT + - 2 AS col1 FROM tab0 cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT ALL + MAX( DISTINCT 16 ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL + MAX ( DISTINCT 16 ) FROM tab2
----
16

query I rowsort
SELECT ALL + col0 * - 66 FROM tab1 AS cor0
----
-3366
-5610
-6006

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 * - + ( col2 ) + - col1 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT ALL + COUNT( * ) * - 4 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3252
SELECT ALL + COUNT ( * ) * - 4 FROM tab1 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT ALL - + 61 + - COUNT( * ) * - + MIN( + col2 ) AS col1 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL - + 61 + - COUNT ( * ) * - + MIN ( + col2 ) AS col1 FROM tab0 AS cor0
----
-31

query I rowsort
SELECT ALL ( - 28 ) AS col2 FROM tab0 cor0 WHERE ( + col0 + - col2 ) < + col2 * - - col0
----
-28
-28
-28

query I rowsort
SELECT ALL 70 + col0 AS col2 FROM tab2 AS cor0
----
116
134
145

query I rowsort
SELECT 76 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - col2 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT COUNT( * ) FROM tab1 cor0 WHERE + 90 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3257
SELECT COUNT ( * ) FROM tab1 cor0 WHERE + 90 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE - ( 64 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3258
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE - ( 64 ) IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 11 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 NOT BETWEEN + + 1 AND NULL
----

query I rowsort
SELECT ALL + col0 * 48 AS col2 FROM tab2
----
2208
3072
3600

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT ( col0 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT 40, col2 + - col1 AS col0 FROM tab0
----
40
-11
40
-34
40
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT 64 + + - COUNT( * ) AS col2 FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-3264
SELECT 64 + + - COUNT ( * ) AS col2 FROM tab1
----
61

query I rowsort
SELECT + ( + col0 ) + - - col0 AS col1 FROM tab2
----
128
150
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 * - - col2 col2, col2 FROM tab0 AS cor0
----
-705
47
-870
10
-9603
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL + COUNT( ALL + 76 ) AS col0 FROM tab0 AS cor0 WHERE + 12 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL + COUNT ( ALL + 76 ) AS col0 FROM tab0 AS cor0 WHERE + 12 IS NOT NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3268
SELECT DISTINCT - + col0 + col0 - + CAST( NULL AS DECIMAL ) * 45 + + col2 + + 78 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3268
SELECT DISTINCT - + col0 + col0 - + CAST ( NULL AS REAL ) * 45 + + col2 + + 78 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT ALL + + COUNT( * ) * + 43 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
387

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL + + COUNT ( * ) * + 43 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
387

query I rowsort
SELECT ALL col0 - + + col1 AS col1 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT DISTINCT - - col0 - - 85 + - col1 - + 45 AS col1 FROM tab1 AS cor0
----
120
77
84

query I rowsort
SELECT ALL - 16 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( col2, - 27, + - 52 )
----

query I rowsort
SELECT DISTINCT - + ( - 45 ) AS col0 FROM tab2 AS cor0
----
45

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 35 * col0 + - 16 * + 89 + col2 * - ( - 58 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - ( + col0 ), + ( + col0 ) AS col2 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT col2 AS col0 FROM tab1 cor0 WHERE NOT + 89 IS NOT NULL
----

query II rowsort
SELECT col1 AS col1, + col0 - col1 AS col0 FROM tab2
----
51
-5
67
8
77
-13

query II rowsort
SELECT + col0, + col0 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3279
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3279
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT - col2 * + 32 FROM tab2
----
-1280
-1856
-736

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col2 * + - col2 + + + col2 IS NULL
----

query II rowsort
SELECT ALL + col1 AS col1, ( col1 ) AS col1 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT 24 * - + 13 FROM tab2 AS cor0 WHERE - 29 >= - col1
----
-312

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( + 46 >= NULL )
----

query I rowsort
SELECT DISTINCT - - 6 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 68 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT DISTINCT - col2 + + col0 * 52 FROM tab1 WHERE NOT 88 / - + col0 * - col0 * - - ( - col0 ) + - + 30 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3288
SELECT ALL 3 + - + 61 + col2 DIV + + ( - col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL 3 + - + 61 + col2 / + + ( - col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT - MAX( - + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3289
SELECT - MAX ( - + col1 ) FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT ALL - 9 + - COUNT( * ) - - COUNT( * ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL - 9 + - COUNT ( * ) - - COUNT ( * ) FROM tab1 cor0
----
-9

query I rowsort
SELECT DISTINCT + 59 * 54 FROM tab1 AS cor0
----
3186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3292
SELECT DISTINCT COUNT( CAST( NULL AS SIGNED ) ) + SUM( ALL - + col2 ), 9 AS col1 FROM tab0 AS cor0
----
-156
9

skipif mysql # not compatible
query II rowsort label-3292
SELECT DISTINCT COUNT ( CAST ( NULL AS INTEGER ) ) + SUM ( ALL - + col2 ), 9 AS col1 FROM tab0 AS cor0
----
-156
9

query I rowsort
SELECT ALL - - col1 + + 71 AS col1 FROM tab1 AS cor0
----
118
76
85

query I rowsort
SELECT - col1 * 93 + - 35 FROM tab2 AS cor0
----
-4778
-6266
-7196

query I rowsort
SELECT + - 50 + col1 FROM tab1 AS cor0
----
-3
-36
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT DISTINCT - - COUNT( - + col2 ) + + MAX( col2 ) FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-3296
SELECT DISTINCT - - COUNT ( - + col2 ) + + MAX ( col2 ) FROM tab2 AS cor0
----
61

query I rowsort
SELECT ALL - col2 * + - col2 * - - col2 + - + col2 AS col2 FROM tab2
----
12144
195054
63960

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col2
----
0

skipif mysql # not compatible
query I rowsort label-3298
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col2
----
0

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 WHERE NULL IN ( - 7 )
----

query I rowsort
SELECT ALL col1 + + col2 * + col0 FROM tab1
----
4910
5020
6235

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3301
SELECT DISTINCT 54 + - COUNT( ALL col1 ) - + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3301
SELECT DISTINCT 54 + - COUNT ( ALL col1 ) - + + CAST ( NULL AS REAL ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col0 ) + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - ( col1 ) * + + col0 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT DISTINCT COUNT( * ) - 85 * - - 14 * COUNT( * ) FROM tab2
----
-3567

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT COUNT ( * ) - 85 * - - 14 * COUNT ( * ) FROM tab2
----
-3567

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3305
SELECT DISTINCT 78 * col1 FROM tab1 WHERE NOT col1 + - col2 + + col1 IN ( - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3305
SELECT DISTINCT 78 * col1 FROM tab1 WHERE NOT col1 + - col2 + + col1 IN ( - - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + col2 * - - 45 AS col1 FROM tab1
----
2655
3060
4320

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT + 83 * - - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3308
SELECT 30 - - CAST( 49 AS SIGNED ) + - + 23 * + + col0 * 71 AS col0, col2 FROM tab1
----
-138726
59
-148524
68
-83204
96

skipif mysql # not compatible
query II rowsort label-3308
SELECT 30 - - CAST ( 49 AS INTEGER ) + - + 23 * + + col0 * 71 AS col0, col2 FROM tab1
----
-138726
59
-148524
68
-83204
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3309
SELECT + 32, + 58 + CAST( + ( + 61 ) AS SIGNED ) + - - 78 + + 84 - + 6 * - 90 * - + 79 AS col0 FROM tab0 AS cor0
----
32
-42379
32
-42379
32
-42379

skipif mysql # not compatible
query II rowsort label-3309
SELECT + 32, + 58 + CAST ( + ( + 61 ) AS INTEGER ) + - - 78 + + 84 - + 6 * - 90 * - + 79 AS col0 FROM tab0 AS cor0
----
32
-42379
32
-42379
32
-42379

query I rowsort
SELECT col1 * 4 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT - col1 * + ( + + 38 ) FROM tab2 AS cor0
----
-1938
-2546
-2926

query I rowsort
SELECT - col0 * col0 * 98 - - col2 AS col0 FROM tab2 AS cor0
----
-207345
-401368
-551192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3313
SELECT ALL MAX( ALL col0 ) DIV + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL MAX ( ALL col0 ) / + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-30

query II rowsort
SELECT ALL + + col1 AS col2, 7 FROM tab0 AS cor0
----
1
7
21
7
81
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT MAX( DISTINCT + 97 ) * + 85 FROM tab0 cor0
----
8245

skipif mysql # not compatible
query I rowsort label-3315
SELECT MAX ( DISTINCT + 97 ) * + 85 FROM tab0 cor0
----
8245

onlyif mysql # DIV for integer division: 
query I rowsort label-3316
SELECT - 30 DIV - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3316
SELECT - 30 / - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3317
SELECT - - 46 DIV + 96 + - + col2 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3317
SELECT - - 46 / + 96 + - + col2 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + col2 * + 24 + - - col2 FROM tab2 AS cor0
----
1000
1450
575

onlyif mysql # DIV for integer division: 
query II rowsort label-3319
SELECT - - col0 AS col2, col0 * col0 DIV - - col1 AS col2 FROM tab2 AS cor0
----
46
41
64
53
75
83

skipif mysql # not compatible
query II rowsort label-3319
SELECT - - col0 AS col2, col0 * col0 / - - col1 AS col2 FROM tab2 AS cor0
----
46
41
64
53
75
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT ALL - - ( SUM( - col0 ) ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3320
SELECT ALL - - ( SUM ( - col0 ) ) AS col2 FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3321
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * - CAST( NULL AS DECIMAL ) + - col1 - + 75 * - col1 + - - col1 > NULL
----

skipif mysql # not compatible
query III rowsort label-3321
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * - CAST ( NULL AS REAL ) + - col1 - + 75 * - col1 + - - col1 > NULL
----

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab0 WHERE NOT 34 * + col0 IS NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NULL ) > NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3324
SELECT DISTINCT - 93 DIV - col0 AS col1 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-3324
SELECT DISTINCT - 93 / - col0 AS col1 FROM tab2
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT ALL COUNT( ALL col2 ) AS col1 FROM tab1 WHERE + - ( - - col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL COUNT ( ALL col2 ) AS col1 FROM tab1 WHERE + - ( - - col1 ) IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3326
SELECT DISTINCT col1 DIV 79 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3326
SELECT DISTINCT col1 / 79 FROM tab1
----
0

query I rowsort
SELECT col2 * + 63 FROM tab1
----
3717
4284
6048

query I rowsort
SELECT ALL + 92 * + 13 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to ca751646c6cc041d0430b95a9ec584d5

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT - + COUNT( * ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3329
SELECT - + COUNT ( * ) AS col1 FROM tab2 cor0
----
-3

query I rowsort
SELECT ( - + 89 ) + + col0 + + - col1 AS col0 FROM tab1
----
-45
-52
-9

query III rowsort
SELECT * FROM tab0 WHERE - col0 NOT IN ( - - col2, ( + col2 ) * ( + col0 ) + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-3332
SELECT ALL col2, 20 DIV col2 col2 FROM tab1
----
59
0
68
0
96
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3332
SELECT ALL col2, 20 / col2 col2 FROM tab1
----
59
0
68
0
96
0

query II rowsort
SELECT - + ( + ( + + 83 ) ), - col2 + - col0 AS col1 FROM tab2 AS cor0
----
-83
-104
-83
-133
-83
-69

query II rowsort
SELECT + - col2 AS col2, + col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 61 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT + - ( + + COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3336
SELECT + - ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - 80 AS col1 FROM tab2 cor0
----
-80
-80
-80

query I rowsort
SELECT ALL - - 67 + + col0 FROM tab1 AS cor0
----
118
152
158

onlyif mysql # DIV for integer division: 
query I rowsort label-3339
SELECT ALL - col1 + + + col2 + - col0 DIV - col1 FROM tab1 cor0
----
22
71
85

skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL - col1 + + + col2 + - col0 / - col1 FROM tab1 cor0
----
22
71
85

query I rowsort
SELECT DISTINCT + 98 + + col1 AS col1 FROM tab0
----
119
179
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT DISTINCT + - MAX( - ( + + col2 ) ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3341
SELECT DISTINCT + - MAX ( - ( + + col2 ) ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT - 44 * SUM( + + col0 ) * - 52 - - 39 FROM tab1
----
519415

skipif mysql # not compatible
query I rowsort label-3342
SELECT - 44 * SUM ( + + col0 ) * - 52 - - 39 FROM tab1
----
519415

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) <> 82
----

query I rowsort
SELECT DISTINCT - 16 - + col0 AS col0 FROM tab1
----
-101
-107
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT COUNT( * ) + + 63 + + 39 FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-3345
SELECT COUNT ( * ) + + 63 + + 39 FROM tab2
----
105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 + + col2 col1 FROM tab0
----
100
137
189

query I rowsort
SELECT - 6 * + + 26 + + + col0 AS col2 FROM tab0
----
-141
-59
-69

query I rowsort
SELECT 71 * col0 + + col0 AS col0 FROM tab0
----
1080
6264
6984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3349
SELECT + col0 * + - CAST( NULL AS SIGNED ) + - 50 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3349
SELECT + col0 * + - CAST ( NULL AS INTEGER ) + - 50 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT - COUNT( * ) + - + COUNT( ALL - col0 ) FROM tab1 WHERE + col2 IS NOT NULL
----
-6

skipif mysql # not compatible
query I rowsort label-3350
SELECT - COUNT ( * ) + - + COUNT ( ALL - col0 ) FROM tab1 WHERE + col2 IS NOT NULL
----
-6

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3352
SELECT 2 DIV - 36 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3352
SELECT 2 / - 36 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT - MIN( - + col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3353
SELECT - MIN ( - + col0 ) AS col0 FROM tab0
----
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= - 15
----

query I rowsort
SELECT DISTINCT + 15 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
15

query II rowsort
SELECT + col0, + col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query II rowsort
SELECT ALL - 94 AS col1, + col2 AS col1 FROM tab1 AS cor0
----
-94
59
-94
68
-94
96

query I rowsort
SELECT ALL - + 79 AS col2 FROM tab2 AS cor0
----
-79
-79
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3359
SELECT + CAST( - col2 AS SIGNED ) col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3359
SELECT + CAST ( - col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 7 + 54 >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT DISTINCT - MIN( DISTINCT ( - - col0 ) ) * - COUNT( * ) * + 96 FROM tab2
----
13248

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT - MIN ( DISTINCT ( - - col0 ) ) * - COUNT ( * ) * + 96 FROM tab2
----
13248

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT + MAX( col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3362
SELECT + MAX ( col0 ) FROM tab0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3363
SELECT 47 DIV + - 93 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3363
SELECT 47 / + - 93 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3364
SELECT * FROM tab2 WHERE NOT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + - 66 - - - 24 * 80 * + + col2 IN ( + 77 + 70 - 9 )
----

skipif mysql # not compatible
query III rowsort label-3364
SELECT * FROM tab2 WHERE NOT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + - 66 - - - 24 * 80 * + + col2 IN ( + 77 + 70 - 9 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3365
SELECT DISTINCT 56 DIV + col1 AS col0 FROM tab0
----
0
2
56

skipif mysql # not compatible
query I rowsort label-3365
SELECT DISTINCT 56 / + col1 AS col0 FROM tab0
----
0
2
56

onlyif mysql # aggregate syntax: 
query II rowsort label-3366
SELECT DISTINCT 80 AS col2, - COUNT( * ) * 8 AS col0 FROM tab2
----
80
-24

skipif mysql # not compatible
query II rowsort label-3366
SELECT DISTINCT 80 AS col2, - COUNT ( * ) * 8 AS col0 FROM tab2
----
80
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, ( + 66 ) * + col2 * - col2 FROM tab2
----
-51
-34914
-67
-222024
-77
-105600

query I rowsort
SELECT + + col1 + + col2 AS col2 FROM tab2 WHERE NOT col2 IS NULL AND NOT 42 > + col1 * + - 53
----

query II rowsort
SELECT - - col0, 27 AS col0 FROM tab2 cor0
----
46
27
64
27
75
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT 96 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-3370
SELECT 96 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT + COUNT( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3371
SELECT + COUNT ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3372
SELECT ALL - - CAST( NULL AS SIGNED ) * + col2 + - col2 * + 42 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3372
SELECT ALL - - CAST ( NULL AS INTEGER ) * + col2 + - col2 * + 42 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, col0 AS col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT ALL - + col2 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 85 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
85

query I rowsort
SELECT + + ( col2 ) AS col1 FROM tab0 WHERE + col1 IS NOT NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) col1 FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3378
SELECT CAST( NULL AS SIGNED ) + 89 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3378
SELECT CAST ( NULL AS INTEGER ) + 89 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT 84 + - - COUNT( * ) col1 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3379
SELECT 84 + - - COUNT ( * ) col1 FROM tab0 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT + SUM( ALL col2 ) + - - ( - + 17 ) - + SUM( DISTINCT - col2 ) FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-3380
SELECT + SUM ( ALL col2 ) + - - ( - + 17 ) - + SUM ( DISTINCT - col2 ) FROM tab2 AS cor0
----
225

onlyif mysql # DIV for integer division: 
query I rowsort label-3381
SELECT ALL col0 + - col0 + + 39 DIV - 21 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL col0 + - col0 + + 39 / - 21 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 6 * - + 89 AS col1 FROM tab1 cor0 WHERE + col1 * - 65 <> - col0
----
534

query I rowsort
SELECT col2 * + col0 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3384
SELECT DISTINCT * FROM tab2 WHERE NOT + + CAST( - col0 AS SIGNED ) * col0 * - + 51 < - col1 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3384
SELECT DISTINCT * FROM tab2 WHERE NOT + + CAST ( - col0 AS INTEGER ) * col0 * - + 51 < - col1 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT DISTINCT 47 + + COUNT( * ) col0 FROM tab0
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3385
SELECT DISTINCT 47 + + COUNT ( * ) col0 FROM tab0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3386
SELECT 66 FROM tab0 WHERE - - 70 * col2 * CAST( + 89 AS SIGNED ) NOT IN ( - ( + col2 ) )
----
66
66
66

skipif mysql # not compatible
query I rowsort label-3386
SELECT 66 FROM tab0 WHERE - - 70 * col2 * CAST ( + 89 AS INTEGER ) NOT IN ( - ( + col2 ) )
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3387
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col1 * + + col2 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT ALL + - col1 * + ( - 2 ) AS col0 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3390
SELECT ALL - col2 * CAST( NULL AS SIGNED ) + - - 59 + col2 * - col1 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) + - - 59 + col2 * - col1 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + col1 BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT col0 * ( + col2 ) AS col1 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT ALL + 91 * + col2 AS col2 FROM tab2 AS cor0
----
2093
3640
5278

onlyif mysql # DIV for integer division: 
query I rowsort label-3394
SELECT ALL - col0 DIV - + col1 AS col1 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL - col0 / - + col1 AS col1 FROM tab1 AS cor0
----
1
17
3

query I rowsort
SELECT ALL - ( - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - col1 * + 3 FROM tab1 AS cor0
----
-141
-15
-42

query I rowsort
SELECT DISTINCT - + col2 AS col0 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3398
SELECT ALL - - 12 * + ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3398
SELECT ALL - - 12 * + ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3399
SELECT DISTINCT + 22 DIV + col2 * - + col0 DIV + + col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3399
SELECT DISTINCT + 22 / + col2 * - + col0 / + + col0 FROM tab2
----
0

query I rowsort
SELECT col0 FROM tab1 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3401
SELECT DISTINCT COUNT( + CAST( - + ( CAST( NULL AS SIGNED ) ) AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT COUNT ( + CAST ( - + ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT - - ( + - col2 ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3403
SELECT - COUNT( * ) * - - ( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3403
SELECT - COUNT ( * ) * - - ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - + col2 col2 FROM tab0 cor0
----
-98
11
34

query I rowsort
SELECT DISTINCT + 38 + col2 AS col0 FROM tab2 AS cor0
----
61
78
96

query II rowsort
SELECT DISTINCT - col0 AS col2, 67 AS col1 FROM tab0
----
-15
67
-87
67
-97
67

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 39 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3408
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3408
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT col0 * - col1 * - + 26 FROM tab0
----
2522
31590
47502

query I rowsort
SELECT 89 * + col1 + - - 42 FROM tab2 AS cor0
----
4581
6005
6895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 - - col2 col1 FROM tab1 AS cor0
----
2697
7284
8349

query I rowsort
SELECT - + 34 - + - 48 AS col0 FROM tab2 AS cor0 WHERE NULL >= - 62
----

query I rowsort
SELECT 59 * col2 AS col0 FROM tab0 AS cor0
----
2773
5841
590

query I rowsort
SELECT - + col2 FROM tab0 AS cor0 WHERE NULL IN ( col1, - col1 + - - col0, + col2 )
----

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT NULL <= col1 * - col0
----

query II rowsort
SELECT col2, - col0 AS col2 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT DISTINCT COUNT( * ) - + COUNT( * ) * + MAX( - col2 ) col0 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3417
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) * + MAX ( - col2 ) col0 FROM tab2 AS cor0
----
72

query I rowsort
SELECT 78 - + col0 + - 76 * - ( - 9 ) AS col0 FROM tab2 AS cor0
----
-652
-670
-681

query I rowsort
SELECT - 62 - - 7 FROM tab0
----
-55
-55
-55

query I rowsort
SELECT + col2 + - + col1 FROM tab1 WHERE - 74 + + - col2 * - col0 < + col2
----

query I rowsort
SELECT DISTINCT col2 + + + ( - + col1 ) FROM tab1
----
21
54
82

query I rowsort
SELECT DISTINCT - col1 - + - 46 * - col1 * + + col0 FROM tab0
----
-4463
-55971
-84063

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IS NOT NULL AND NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3424
SELECT - CAST( - COUNT( * ) AS SIGNED ) + - 14 AS col0 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-3424
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) + - 14 AS col0 FROM tab0
----
-11

query I rowsort
SELECT + col1 FROM tab2 cor0 WHERE NOT col1 NOT BETWEEN col0 AND ( + - col1 )
----

query I rowsort
SELECT DISTINCT col0 * col1 + - 82 FROM tab2 AS cor0
----
2264
4846
4943

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 58 ) col1 FROM tab1 cor0
----
58
58
58

query I rowsort
SELECT ALL 8 FROM tab1 WHERE - col2 IS NOT NULL
----
8
8
8

query II rowsort
SELECT ALL - 1 AS col0, col1 * + + col0 FROM tab0
----
-1
1215
-1
1827
-1
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3430
SELECT ( col2 ) * - 68 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3430
SELECT ( col2 ) * - 68 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * - ( + - col2 ) col2 FROM tab1 cor0
----
-1344
-295
-3196

query I rowsort
SELECT ALL 54 * - 78 + - - col1 * + - 78 FROM tab1 AS cor0
----
-4602
-5304
-7878

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) > - - 11
----

query I rowsort
SELECT DISTINCT + 20 AS col0 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT DISTINCT MIN( col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3435
SELECT DISTINCT MIN ( col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT + MAX( + 38 ) FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-3436
SELECT + MAX ( + 38 ) FROM tab2 AS cor0
----
38

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 54 ) * + + col1 - + col2 * + col0 IS NOT NULL
----

query II rowsort
SELECT + 85 AS col2, - col1 AS col2 FROM tab2 AS cor0
----
85
-51
85
-67
85
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3439
SELECT 40 / - col2 * + 23 + + CAST( NULL AS SIGNED ), col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-3439
SELECT 40 / - col2 * + 23 + + CAST ( NULL AS INTEGER ), col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT ALL - col0 * - - ( - + 42 ) FROM tab2
----
1932
2688
3150

query I rowsort
SELECT - col0 FROM tab2 WHERE ( ( NULL ) IS NULL )
----
-46
-64
-75

query I rowsort
SELECT ALL col2 + + 27 FROM tab2 AS cor0
----
50
67
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT ALL + 29 * + MAX( ALL ( + col1 ) ) + SUM( DISTINCT - col0 ) FROM tab0 cor0
----
2150

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL + 29 * + MAX ( ALL ( + col1 ) ) + SUM ( DISTINCT - col0 ) FROM tab0 cor0
----
2150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + 36 + - - col0 col2 FROM tab0 AS cor0
----
-3045
-3395
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT DISTINCT + 77 * - - SUM( ALL - 10 ) AS col1 FROM tab1
----
-2310

skipif mysql # not compatible
query I rowsort label-3445
SELECT DISTINCT + 77 * - - SUM ( ALL - 10 ) AS col1 FROM tab1
----
-2310

query I rowsort
SELECT DISTINCT - 15 * - col0 AS col2 FROM tab0 cor0
----
1305
1455
225

query I rowsort
SELECT ALL - 26 + + col1 * 64 FROM tab1 AS cor0
----
294
2982
870

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE ( ( NOT NULL IS NOT NULL ) )
----
15
87
97

query I rowsort
SELECT col2 + - - col1 AS col2 FROM tab1 AS cor0
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col0 ) col0 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT DISTINCT 41 + - col2 FROM tab0
----
-58
-6
31

query III rowsort
SELECT * FROM tab0 WHERE NULL <> - col1 + - col2 * - 57 * - 60
----

query I rowsort
SELECT ALL col2 * + col1 - 75 FROM tab2
----
1098
3005
3811

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3454
SELECT ALL * FROM tab1 WHERE + - CAST( NULL AS SIGNED ) / + 8 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3454
SELECT ALL * FROM tab1 WHERE + - CAST ( NULL AS INTEGER ) / + 8 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT MAX( - col2 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-3456
SELECT MAX ( - col2 ) AS col1 FROM tab0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3457
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, + 4 + - col1 FROM tab2 AS cor0
----
NULL
-47
NULL
-63
NULL
-73

skipif mysql # not compatible
query II rowsort label-3457
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, + 4 + - col1 FROM tab2 AS cor0
----
NULL
-47
NULL
-63
NULL
-73

query I rowsort
SELECT 98 + - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - col1 AS col2, - ( col1 ) AS col2 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

query II rowsort
SELECT + - col1 AS col1, - col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

query I rowsort
SELECT - 36 AS col0 FROM tab0 cor0 WHERE NOT 98 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3462
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-3462
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT - - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3463
SELECT - - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT + COUNT( ALL - 1 ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3464
SELECT + COUNT ( ALL - 1 ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT DISTINCT + - 22 AS col1 FROM tab2 AS cor0
----
-22

query I rowsort
SELECT ALL col0 + - - 55 FROM tab1 AS cor0
----
106
140
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3467
SELECT + ( - CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3467
SELECT + ( - CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT ALL - + COUNT( DISTINCT - 96 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL - + COUNT ( DISTINCT - 96 ) FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - 43 + + 42 * col1 AS col2 FROM tab0 cor0
----
-1
3359
839

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT ALL COUNT( - col0 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3470
SELECT ALL COUNT ( - col0 ) col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT + MIN( + 0 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3471
SELECT + MIN ( + 0 ) AS col2 FROM tab1
----
0

query I rowsort
SELECT + 99 * + 44 AS col2 FROM tab2
----
4356
4356
4356

query I rowsort
SELECT DISTINCT - col0 + 0 AS col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT + 65 * + col1 FROM tab2
----
3315
4355
5005

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT - col0 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3476
SELECT CAST( NULL AS SIGNED ) * 45 * - - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3476
SELECT CAST ( NULL AS INTEGER ) * 45 * - - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - + 14 ) FROM tab0
----
-14

query II rowsort
SELECT 39 AS col0, col1 FROM tab1
----
39
14
39
47
39
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - col1 col2 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT 33 * - 58 FROM tab2
----
-1914

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 >= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 40 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT MIN( ALL 80 ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-3483
SELECT MIN ( ALL 80 ) FROM tab2
----
80

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) >= 40
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 - - col0 IS NULL
----

query I rowsort
SELECT ALL - 52 AS col0 FROM tab1 cor0
----
-52
-52
-52

query I rowsort
SELECT DISTINCT ( - - col2 ) AS col1 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3488
SELECT - CAST( - 98 AS SIGNED ) FROM tab0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-3488
SELECT - CAST ( - 98 AS INTEGER ) FROM tab0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT ALL - - 40 * COUNT( ALL - 67 ) * - COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 WHERE ( NOT col1 IS NULL )
----
1080

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL - - 40 * COUNT ( ALL - 67 ) * - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 WHERE ( NOT col1 IS NULL )
----
1080

query III rowsort
SELECT * FROM tab1 WHERE NOT 98 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3491
SELECT DISTINCT + 11 DIV - col1 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3491
SELECT DISTINCT + 11 / - col1 AS col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3492
SELECT ALL col2 DIV + + col0 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL col2 / + + col0 AS col1 FROM tab1
----
0
0
1

query II rowsort
SELECT col1 AS col2, 94 AS col0 FROM tab2
----
51
94
67
94
77
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT ALL - - MIN( ALL col0 ) AS col1 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL - - MIN ( ALL col0 ) AS col1 FROM tab2 cor0
----
46

query I rowsort
SELECT ALL + - ( - col0 ) FROM tab0 cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT DISTINCT - + COUNT( * ) FROM tab0 AS cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3496
SELECT DISTINCT - + COUNT ( * ) FROM tab0 AS cor0 WHERE + col2 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3497
SELECT + + CAST( + 36 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
36
36
36

skipif mysql # not compatible
query I rowsort label-3497
SELECT + + CAST ( + 36 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
36
36
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3498
SELECT DISTINCT + ( - col1 ) * - col1 + + ( - col0 ) + col2 AS col1, - 87 / CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3
NULL
364
NULL
6593
NULL

skipif mysql # not compatible
query II rowsort label-3498
SELECT DISTINCT + ( - col1 ) * - col1 + + ( - col0 ) + col2 AS col1, - 87 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3
NULL
364
NULL
6593
NULL

query I rowsort
SELECT + - col1 + - col2 - col1 AS col2 FROM tab1 AS cor0
----
-124
-162
-69

query I rowsort
SELECT DISTINCT + col2 * - ( - - col0 ) + + + col2 FROM tab2 AS cor0 WHERE ( NULL ) <= + ( + + col0 ) + + col2 * col2 * - ( col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3501
SELECT ALL + - col2 + + + 38 + + col0 * col1, + CAST( NULL AS DECIMAL ) + - 40 AS col0 FROM tab1 AS cor0
----
404
NULL
4247
NULL
656
NULL

skipif mysql # not compatible
query II rowsort label-3501
SELECT ALL + - col2 + + + 38 + + col0 * col1, + CAST ( NULL AS REAL ) + - 40 AS col0 FROM tab1 AS cor0
----
404
NULL
4247
NULL
656
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3502
SELECT DISTINCT + CAST( col0 AS SIGNED ) * + col2 + - 59 AS col0 FROM tab1 AS cor0
----
4837
4956
6129

skipif mysql # not compatible
query I rowsort label-3502
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * + col2 + - 59 AS col0 FROM tab1 AS cor0
----
4837
4956
6129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - ( 88 ) + - + 46 col2 FROM tab0 AS cor0
----
-1366
-7702
-8582

query I rowsort
SELECT - ( - col2 ) + - ( + + 99 ) FROM tab0
----
-52
-89
0

query I rowsort
SELECT ALL - 15 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT 91 IS NOT NULL
----

query II rowsort
SELECT col0 AS col0, col0 FROM tab0 WHERE NULL IS NULL
----
15
15
87
87
97
97

query I rowsort
SELECT + 75 FROM tab1 cor0
----
75
75
75

query I rowsort
SELECT DISTINCT + ( + col2 ) + + - 40 AS col1 FROM tab1
----
19
28
56

query I rowsort
SELECT - ( ( 41 ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT DISTINCT + MAX( 59 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT + MAX ( 59 ) FROM tab1
----
59

query I rowsort
SELECT DISTINCT - col0 * + - 13 * - + 69 + - - col2 - + 73 FROM tab1 AS cor0
----
-45724
-76259
-81632

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 42 * - + 73 IS NOT NULL
----

query I rowsort
SELECT - - ( + ( + col2 ) ) * + + col2 FROM tab1 AS cor0
----
3481
4624
9216

query II rowsort
SELECT DISTINCT 0, - 83 AS col0 FROM tab2 AS cor0
----
0
-83

query I rowsort
SELECT - col0 * - 66 + - 43 FROM tab2 AS cor0
----
2993
4181
4907

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT + MIN( + col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3517
SELECT + MIN ( + col2 ) AS col0 FROM tab1 AS cor0
----
59

query II rowsort
SELECT - col1, 32 AS col0 FROM tab1 AS cor0
----
-14
32
-47
32
-5
32

query I rowsort
SELECT ALL - ( - + 45 ) * + col2 * 26 FROM tab2
----
26910
46800
67860

query I rowsort
SELECT ALL 34 * - ( col0 ) AS col1 FROM tab2
----
-1564
-2176
-2550

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - 21 * - col0 AS col1 FROM tab2 WHERE NOT + + ( + col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3523
SELECT ALL col1 DIV col2, col1 + + col2 AS col1 FROM tab0
----
0
100
1
128
2
31

skipif mysql # not compatible
query II rowsort label-3523
SELECT ALL col1 / col2, col1 + + col2 AS col1 FROM tab0
----
0
100
1
128
2
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3524
SELECT + + ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3524
SELECT + + ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + col2 ) * col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-3526
SELECT ALL + ( 87 ) DIV 78 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL + ( 87 ) / 78 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL col0 + 55 AS col1 FROM tab1
----
106
140
146

query II rowsort
SELECT DISTINCT 71 AS col2, + col0 FROM tab2
----
71
46
71
64
71
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT DISTINCT ( + SUM( DISTINCT - - 32 ) ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-3529
SELECT DISTINCT ( + SUM ( DISTINCT - - 32 ) ) FROM tab1
----
32

query III rowsort
SELECT * FROM tab0 WHERE NOT 38 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT ALL ( MIN( - + col2 ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL ( MIN ( - + col2 ) ) FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3532
SELECT - + CAST( - + 65 AS SIGNED ) FROM tab2 AS cor0
----
65
65
65

skipif mysql # not compatible
query I rowsort label-3532
SELECT - + CAST ( - + 65 AS INTEGER ) FROM tab2 AS cor0
----
65
65
65

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3534
SELECT ALL + col0 + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL + col0 + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + 1 ) + - - 17 FROM tab2 AS cor0
----
18
18
18

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT - COUNT( * ) * + 61 AS col2 FROM tab2, tab0 AS cor0
----
-549

skipif mysql # not compatible
query I rowsort label-3538
SELECT - COUNT ( * ) * + 61 AS col2 FROM tab2, tab0 AS cor0
----
-549

query II rowsort
SELECT DISTINCT col0, - col2 * + col2 AS col0 FROM tab0
----
15
-2209
87
-100
97
-9801

query I rowsort
SELECT col1 - col0 + + + col2 + + col2 * ( + col0 ) FROM tab1
----
4955
4994
6212

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3541
SELECT ALL col2 * - CAST( - + col1 AS SIGNED ) + col0 AS col2, ( - - col2 ) AS col1 FROM tab0
----
196
99
297
10
3822
47

skipif mysql # not compatible
query II rowsort label-3541
SELECT ALL col2 * - CAST ( - + col1 AS INTEGER ) + col0 AS col2, ( - - col2 ) AS col1 FROM tab0
----
196
99
297
10
3822
47

query I rowsort
SELECT DISTINCT - col0 * + + 72 + col2 FROM tab0
----
-1033
-6254
-6885

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3543
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / + col1 + col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT - CAST ( NULL AS REAL ) / + col1 + col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 33 + col1 FROM tab2
----
100
110
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3545
SELECT + col1 * - CAST( NULL AS SIGNED ) + col0 + col0, col0 AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-3545
SELECT + col1 * - CAST ( NULL AS INTEGER ) + col0 + col0, col0 AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT DISTINCT - ( - 23 ) AS col0 FROM tab1
----
23

query II rowsort
SELECT DISTINCT - col1 + + 23 AS col0, 67 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-24
67
18
67
9
67

query I rowsort
SELECT 99 FROM tab2 cor0
----
99
99
99

query I rowsort
SELECT + 1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT ALL col0 + - 31 FROM tab1
----
20
54
60

query I rowsort
SELECT ALL 73 * - + col1 - 81 AS col2 FROM tab0
----
-154
-1614
-5994

onlyif mysql # aggregate syntax: 
query II rowsort label-3552
SELECT DISTINCT MAX( DISTINCT - 1 ), + ( + COUNT( ALL 86 ) ) col2 FROM tab1 AS cor0
----
-1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3552
SELECT DISTINCT MAX ( DISTINCT - 1 ), + ( + COUNT ( ALL 86 ) ) col2 FROM tab1 AS cor0
----
-1
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN - + 50 + + - col0 AND - col2
----

query I rowsort
SELECT - col0 * - + col1 * + 49 AS col2 FROM tab1 cor0
----
20825
209573
34986

query II rowsort
SELECT + col2 AS col2, - col1 + + 42 FROM tab2
----
23
-9
40
-35
58
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT DISTINCT - ( + COUNT( * ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3556
SELECT DISTINCT - ( + COUNT ( * ) ) AS col0 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-3557
SELECT + 19 col1, col0 DIV - - col1 AS col2 FROM tab1
----
19
1
19
17
19
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3557
SELECT + 19 col1, col0 / - - col1 AS col2 FROM tab1
----
19
1
19
17
19
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT - - 6 * COUNT( * ) FROM tab0 WHERE NOT - 84 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3558
SELECT - - 6 * COUNT ( * ) FROM tab0 WHERE NOT - 84 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3559
SELECT + 24 DIV - 73 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3559
SELECT + 24 / - 73 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - ( + 17 ) AS col0 FROM tab2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3561
SELECT 20 + + + col2 FROM tab1 cor0 WHERE NOT CAST( NULL AS SIGNED ) / - - ( - + ( + col1 ) ) + 55 NOT BETWEEN NULL AND - + col1 + + col1
----

skipif mysql # not compatible
query I rowsort label-3561
SELECT 20 + + + col2 FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) / - - ( - + ( + col1 ) ) + 55 NOT BETWEEN NULL AND - + col1 + + col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND col1
----

query I rowsort
SELECT col1 * - col1 * 29 + 76 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-5608
-63985
-649

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT ALL + + SUM( DISTINCT + col1 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL + + SUM ( DISTINCT + col1 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3565
SELECT DISTINCT + col0 * - 48 * + 22 * col2 * col0 DIV col0 + - 42 FROM tab1
----
-5170218
-5295882
-6534570

skipif mysql # not compatible
query I rowsort label-3565
SELECT DISTINCT + col0 * - 48 * + 22 * col2 * col0 / col0 + - 42 FROM tab1
----
-5170218
-5295882
-6534570

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT + 29 * MAX( - + 8 ) FROM tab1
----
-232

skipif mysql # not compatible
query I rowsort label-3566
SELECT + 29 * MAX ( - + 8 ) FROM tab1
----
-232

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT DISTINCT COUNT( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3567
SELECT DISTINCT COUNT ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <> - col1
----

query II rowsort
SELECT ALL - + 74 + col1 AS col2, - col2 * - col1 * 14 FROM tab1 AS cor0
----
-27
44744
-60
18816
-69
4130

query I rowsort
SELECT 55 + - - col0 AS col2 FROM tab1 AS cor0
----
106
140
146

query I rowsort
SELECT DISTINCT - - 83 + - col0 AS col1 FROM tab0 AS cor0
----
-14
-4
68

query I rowsort
SELECT ALL + 17 + col0 FROM tab2 AS cor0
----
63
81
92

query I rowsort
SELECT DISTINCT col1 + + col1 * + col2 AS col1 FROM tab0
----
100
231
3888

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3574
SELECT + col1 DIV - + CAST( + - col0 AS SIGNED ) + - col0 AS col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3574
SELECT + col1 / - + CAST ( + - col0 AS INTEGER ) + - col0 AS col0 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT COUNT( * ) FROM tab2 WHERE + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3575
SELECT COUNT ( * ) FROM tab2 WHERE + col0 IS NOT NULL
----
3

query II rowsort
SELECT + col0, - col2 * + - col0 FROM tab1
----
51
4896
85
5015
91
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT DISTINCT 81 + + ( MAX( ALL - - 44 ) ) AS col2 FROM tab1
----
125

skipif mysql # not compatible
query I rowsort label-3577
SELECT DISTINCT 81 + + ( MAX ( ALL - - 44 ) ) AS col2 FROM tab1
----
125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + - col0 ) * - col1 col2 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT col1 + - 42 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col2 + + + col2 + + - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT - - COUNT( * ) - 26 + - - COUNT( * ) FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3581
SELECT - - COUNT ( * ) - 26 + - - COUNT ( * ) FROM tab0 AS cor0
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3582
SELECT - + COUNT( * ) * + + 26 - + COUNT( * ) DIV - ( + + COUNT( * ) ) - - 5 AS col0 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-3582
SELECT - + COUNT ( * ) * + + 26 - + COUNT ( * ) / - ( + + COUNT ( * ) ) - - 5 AS col0 FROM tab1 AS cor0
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-3583
SELECT ALL + 53 DIV col1 + col1 AS col1 FROM tab1 AS cor0
----
15
17
48

skipif mysql # not compatible
query I rowsort label-3583
SELECT ALL + 53 / col1 + col1 AS col1 FROM tab1 AS cor0
----
15
17
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE + + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3584
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE + + col1 IS NOT NULL
----
3

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE - 43 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query II rowsort label-3586
SELECT - COUNT( * ) AS col0, + COUNT( * ) FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3586
SELECT - COUNT ( * ) AS col0, + COUNT ( * ) FROM tab1 AS cor0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3587
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3587
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col1, 42 col1 FROM tab0 AS cor0
----
15
42
87
42
97
42

query I rowsort
SELECT DISTINCT - - 41 AS col2 FROM tab0 AS cor0
----
41

query II rowsort
SELECT DISTINCT + + col0 AS col0, 16 FROM tab2 AS cor0
----
46
16
64
16
75
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3591
SELECT ALL - ( - - 79 ) - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col0 + - col1 * 29 NOT BETWEEN NULL AND 93
----

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL - ( - - 79 ) - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col0 + - col1 * 29 NOT BETWEEN NULL AND 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT - + SUM( + 29 ) col1 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3592
SELECT - + SUM ( + 29 ) col1 FROM tab1 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT ALL - 43 * - MIN( ALL + col1 ) FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-3593
SELECT ALL - 43 * - MIN ( ALL + col1 ) FROM tab0 AS cor0
----
43

query I rowsort
SELECT col0 * + + col0 FROM tab0 AS cor0
----
225
7569
9409

query II rowsort
SELECT DISTINCT - col2 AS col2, - col1 FROM tab2 AS cor0
----
-23
-51
-40
-77
-58
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-3596
SELECT + MAX( col1 ) col1, - 17 AS col2 FROM tab1
----
47
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3596
SELECT + MAX ( col1 ) col1, - 17 AS col2 FROM tab1
----
47
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT + COUNT( * ) col1 FROM tab1 WHERE NOT NULL <= + ( - + ( col2 ) ) + + - col2 * - col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3597
SELECT + COUNT ( * ) col1 FROM tab1 WHERE NOT NULL <= + ( - + ( col2 ) ) + + - col2 * - col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3598
SELECT + 7 DIV + - COUNT( * ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-3598
SELECT + 7 / + - COUNT ( * ) FROM tab2
----
-2

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col0 * - 7 * - - col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 53 + - 81 AS col0, + 79 col2 FROM tab1 AS cor0
----
-134
79
-134
79
-134
79

query I rowsort
SELECT DISTINCT + col2 - - 59 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 * col2 + - + col1 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * 83 FROM tab0
----
1245
7221
8051

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( + col1 * - col1 + 2 )
----

query I rowsort
SELECT DISTINCT + col0 * - 34 FROM tab0 AS cor0
----
-2958
-3298
-510

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

query I rowsort
SELECT ALL + - 4 FROM tab2 cor0
----
-4
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3608
SELECT ALL - CAST( NULL AS SIGNED ) + col1 + col2 * + col1 * + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 + col2 * + col1 * + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - + col1 = - col2 - + col2 )
----

query I rowsort
SELECT ALL 13 + + + col0 AS col2 FROM tab1
----
104
64
98

query I rowsort
SELECT DISTINCT col0 + + col0 * - 38 FROM tab0
----
-3219
-3589
-555

query III rowsort
SELECT * FROM tab2 WHERE + 5 + + col0 >= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3613
SELECT col2 + - 57 DIV + - 31 AS col2 FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-3613
SELECT col2 + - 57 / + - 31 AS col2 FROM tab0
----
100
11
48

query I rowsort
SELECT DISTINCT + ( - col1 ) - - col0 AS col2 FROM tab1
----
37
44
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3615
SELECT DISTINCT + col0 DIV + col0 col1 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3615
SELECT DISTINCT + col0 / + col0 col1 FROM tab0
----
1

query I rowsort
SELECT col1 + 51 + - col0 FROM tab2
----
43
56
64

query I rowsort
SELECT ALL 45 AS col0 FROM tab1 cor0
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3618
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * + 21 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col1, + col1 AS col0 FROM tab0
----
1
1
21
21
81
81

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT + 15 IS NOT NULL )
----
54 values hashing to 375f372843089b03f23b00160007527a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 18 col2 FROM tab2 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3623
SELECT - + CAST( + 1 AS SIGNED ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3623
SELECT - + CAST ( + 1 AS INTEGER ) FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT ( - + ( - col2 ) ) FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT MIN( ALL + - col1 ) * - SUM( DISTINCT col0 ) FROM tab0 cor0
----
16119

skipif mysql # not compatible
query I rowsort label-3625
SELECT MIN ( ALL + - col1 ) * - SUM ( DISTINCT col0 ) FROM tab0 cor0
----
16119

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT + SUM( col0 ) AS col2 FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-3626
SELECT + SUM ( col0 ) AS col2 FROM tab2 cor0
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, + 60 col1 FROM tab1 AS cor0
----
-59
60
-68
60
-96
60

query I rowsort
SELECT ALL 42 FROM tab0 WHERE NOT - col1 <> - col1
----
42
42
42

query II rowsort
SELECT DISTINCT 68 AS col2, 61 FROM tab0
----
68
61

onlyif mysql # DIV for integer division: 
query I rowsort label-3630
SELECT col1 * - col1 * col1 + - 98 DIV + - col0 FROM tab2
----
-132649
-300762
-456532

skipif mysql # not compatible
query I rowsort label-3630
SELECT col1 * - col1 * col1 + - 98 / + - col0 FROM tab2
----
-132649
-300762
-456532

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 ) * - col1 IS NULL AND col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 + col0 + + + col1 FROM tab2
----
120
181
200

query I rowsort
SELECT - 51 + - 66 FROM tab2
----
-117
-117
-117

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + 96
----

query I rowsort
SELECT 12 + + col0 FROM tab1
----
103
63
97

query I rowsort
SELECT DISTINCT + 59 * - col1 / - - col0 FROM tab2 WHERE - + col1 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT 8, + 89 AS col0 FROM tab0
----
8
89
8
89
8
89

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - - col2 )
----

query I rowsort
SELECT col0 / - col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 * + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + - + 99 AS col1 FROM tab0
----
-114
-186
-196

query III rowsort
SELECT * FROM tab0 WHERE col1 >= + col0 + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 + + + 39 FROM tab2
----
103
114
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3643
SELECT DISTINCT 83 DIV - col2 AS col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-3643
SELECT DISTINCT 83 / - col2 AS col2 FROM tab1
----
-1
0

query I rowsort
SELECT + 69 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT ALL - - col0 * - 69 FROM tab0 AS cor0
----
-1035
-6003
-6693

query I rowsort
SELECT 36 * - col1 + + 55 AS col2 FROM tab2 AS cor0
----
-1781
-2357
-2717

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 17 - + ( col0 ) col2 FROM tab0 cor0
----
-13
-157
-177

query I rowsort
SELECT - + col1 + 7 AS col1 FROM tab2 AS cor0
----
-44
-60
-70

query III rowsort
SELECT * FROM tab1 WHERE + col1 + col0 > - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 - + - 37 * col2 + + - 45 AS col1 FROM tab1
----
2143
2518
3521

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT ( NULL ) IS NULL )
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE + col2 > NULL
----

query II rowsort
SELECT DISTINCT col2, - col1 FROM tab1
----
59
-5
68
-47
96
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3655
SELECT ALL - + CAST( NULL AS SIGNED ) / - ( + col2 ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL - + CAST ( NULL AS INTEGER ) / - ( + col2 ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col2 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
1
21
81

query II rowsort
SELECT - + col1 AS col0, + col2 + + col1 FROM tab1 AS cor0
----
-14
110
-47
115
-5
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT MAX( + - 23 ) AS col0 FROM tab0 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3658
SELECT MAX ( + - 23 ) AS col0 FROM tab0 cor0
----
-23

query I rowsort
SELECT + 94 * col1 + 17 * + 21 FROM tab2
----
5151
6655
7595

query I rowsort
SELECT 41 + + col2 * + col0 FROM tab0
----
746
911
9644

query I rowsort
SELECT DISTINCT 28 AS col1 FROM tab0 WHERE NOT ( NULL ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 col1 FROM tab0
----
56
56
56

query I rowsort
SELECT ALL + ( + col0 ) * 97 AS col1 FROM tab1 WHERE NOT - 54 IS NULL
----
4947
8245
8827

query I rowsort
SELECT 72 * 89 + col0 * col0 FROM tab2 WHERE NOT NULL BETWEEN 30 + 92 / - 94 AND NULL
----

query I rowsort
SELECT - 49 + col1 AS col0 FROM tab0
----
-28
-48
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT DISTINCT + ( COUNT( DISTINCT col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3666
SELECT DISTINCT + ( COUNT ( DISTINCT col0 ) ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE 3 > 96 * col0
----

query I rowsort
SELECT - 39 + 54 FROM tab0
----
15
15
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3669
SELECT CAST( 55 AS SIGNED ) AS col1 FROM tab2
----
55
55
55

skipif mysql # not compatible
query I rowsort label-3669
SELECT CAST ( 55 AS INTEGER ) AS col1 FROM tab2
----
55
55
55

query III rowsort
SELECT ALL * FROM tab1 WHERE - 1 / - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT SUM( ALL 22 ) FROM tab1 WHERE NOT ( - 1 * - ( 56 ) ) IN ( - 32 * + col1 - + ( 68 ) )
----
66

skipif mysql # not compatible
query I rowsort label-3671
SELECT SUM ( ALL 22 ) FROM tab1 WHERE NOT ( - 1 * - ( 56 ) ) IN ( - 32 * + col1 - + ( 68 ) )
----
66

query I rowsort
SELECT ALL + 61 AS col0 FROM tab1 WHERE NULL IS NULL
----
61
61
61

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 23 ) BETWEEN 90 AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + 63 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT MAX( DISTINCT - 0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3675
SELECT MAX ( DISTINCT - 0 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT DISTINCT + MIN( ALL - 64 ) * + COUNT( * ) FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT + MIN ( ALL - 64 ) * + COUNT ( * ) FROM tab1
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT DISTINCT COUNT( ALL + 71 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT COUNT ( ALL + 71 ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 * - 5 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE + col2 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT - COUNT( DISTINCT col2 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3680
SELECT - COUNT ( DISTINCT col2 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT + col0 + 33 FROM tab0 WHERE col2 * col2 >= + 47
----
120
130
48

query I rowsort
SELECT ALL + col1 + col0 * + 28 FROM tab2 AS cor0
----
1339
1869
2167

onlyif mysql # DIV for integer division: 
query I rowsort label-3683
SELECT DISTINCT col2 DIV + ( - 2 ) FROM tab2 AS cor0 WHERE ( - col0 * 88 ) NOT BETWEEN col0 AND ( col1 )
----
-11
-20
-29

skipif mysql # not compatible
query I rowsort label-3683
SELECT DISTINCT col2 / + ( - 2 ) FROM tab2 AS cor0 WHERE ( - col0 * 88 ) NOT BETWEEN col0 AND ( col1 )
----
-11
-20
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 25 ) + - col2 col2 FROM tab1
----
-34
-43
-71

query I rowsort
SELECT DISTINCT 40 * + 22 - 41 * + col2 FROM tab0
----
-1047
-3179
470

query III rowsort
SELECT * FROM tab0 WHERE ( + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT DISTINCT - MIN( ALL col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT - MIN ( ALL col0 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT + 54 + + col0 FROM tab2 AS cor0
----
100
118
129

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 38 / col2 IS NOT NULL
----

query I rowsort
SELECT - ( 30 ) AS col0 FROM tab0 cor0 WHERE col1 - col1 NOT BETWEEN 79 * - col0 AND NULL
----

query I rowsort
SELECT ALL col0 + 86 AS col0 FROM tab1 AS cor0
----
137
171
177

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col2 + - col2 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT ALL + MIN( ALL - 3 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL + MIN ( ALL - 3 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 79 * col2 + - 47 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab0 AS cor0 WHERE NOT + col2 <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3696
SELECT + CAST( ( - 3 ) AS SIGNED ) + 11 DIV col2 col2 FROM tab0
----
-2
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3696
SELECT + CAST ( ( - 3 ) AS INTEGER ) + 11 / col2 col2 FROM tab0
----
-2
-3
-3

query I rowsort
SELECT col0 + - col1 FROM tab0 WHERE 15 >= NULL
----

query I rowsort
SELECT ALL 66 + + + col0 FROM tab2
----
112
130
141

query I rowsort
SELECT col0 + col2 + 48 FROM tab1
----
192
195
207

query I rowsort
SELECT - col0 * + col2 + + 2 AS col1 FROM tab2
----
-1056
-2558
-4348

query I rowsort
SELECT ALL + col2 * + + ( - 79 ) AS col1 FROM tab2
----
-1817
-3160
-4582

query I rowsort
SELECT + col0 * + col1 FROM tab0 WHERE NOT NULL NOT IN ( col0 - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT ALL - SUM( - 61 ) FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL - SUM ( - 61 ) FROM tab2 AS cor0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) + COUNT( * ) col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3704
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) col1 FROM tab2 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 59 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT - ( - + COUNT( * ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3706
SELECT - ( - + COUNT ( * ) ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3707
SELECT - ( - + ( + col2 ) ) DIV - col2 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3707
SELECT - ( - + ( + col2 ) ) / - col2 AS col0 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 80 col2 FROM tab0 WHERE + col1 - col1 * col0 IS NOT NULL
----
-80

query I rowsort
SELECT DISTINCT + col2 * - 25 AS col0 FROM tab2 AS cor0 WHERE 42 - + col2 / - ( - col2 ) IN ( - 53 )
----

query I rowsort
SELECT DISTINCT + 72 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = ( col1 + - col0 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT + MAX( ( - col1 ) ) FROM tab1 AS cor0 WHERE NOT 60 >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3713
SELECT + MAX ( ( - col1 ) ) FROM tab1 AS cor0 WHERE NOT 60 >= ( NULL )
----
NULL

query I rowsort
SELECT DISTINCT 69 * col0 * + 55 FROM tab0 cor0
----
330165
368115
56925

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT - - COUNT( * ) + - + 36 col0 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3715
SELECT - - COUNT ( * ) + - + 36 col0 FROM tab0 AS cor0
----
-33

query I rowsort
SELECT ALL - ( + col0 ) AS col1 FROM tab0 AS cor0 WHERE + 68 - - - col1 IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col2 )
----

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT + col0 * - col1 + 47 IS NULL
----
1
21
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3719
SELECT col1 * ( + CAST( NULL AS DECIMAL ) ) + 8 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3719
SELECT col1 * ( + CAST ( NULL AS REAL ) ) + 8 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN + col0 AND 53 * + 68
----

query III rowsort
SELECT * FROM tab2 WHERE ( col1 + + col1 + - 25 * + 33 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT 9 + - + 79 - + - COUNT( * ) AS col2 FROM tab0
----
-67

skipif mysql # not compatible
query I rowsort label-3722
SELECT 9 + - + 79 - + - COUNT ( * ) AS col2 FROM tab0
----
-67

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 + + 67 AS col2 FROM tab0
----
114
166
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 <> - 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT ALL COUNT( * ) * COUNT( * ) AS col1 FROM tab1 WHERE NOT + col0 * + col1 + - col1 = col0 * - ( + 53 )
----
9

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col0 * + col1 + - col1 = col0 * - ( + 53 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3727
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + - col0 / + col0 * + CAST( NULL AS SIGNED ) <> ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + - col0 / + col0 * + CAST ( NULL AS INTEGER ) <> ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( + 74 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN - + col1 * - col0 AND NULL
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT 25 * col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3731
SELECT 84 DIV + - col1 col0 FROM tab1 AS cor0
----
-1
-16
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3731
SELECT 84 / + - col1 col0 FROM tab1 AS cor0
----
-1
-16
-6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 BETWEEN - - 43 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT COUNT( * ) + - 46 + - 37 AS col2 FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-3733
SELECT COUNT ( * ) + - 46 + - 37 AS col2 FROM tab0 AS cor0
----
-80

query I rowsort
SELECT - ( + 71 ) + + col1 + - - 29 + 11 * - col0 * - 81 FROM tab0 AS cor0
----
13404
77496
86386

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3735
SELECT DISTINCT + - CAST( ( col0 ) AS SIGNED ) AS col2 FROM tab2 cor0 WHERE NOT 18 + - col0 IS NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT + - CAST ( ( col0 ) AS INTEGER ) AS col2 FROM tab2 cor0 WHERE NOT 18 + - col0 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT + SUM( - - 14 ) col0 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3736
SELECT + SUM ( - - 14 ) col0 FROM tab0 AS cor0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3737
SELECT + 46 / + CAST( NULL AS SIGNED ) - + 38, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-3737
SELECT + 46 / + CAST ( NULL AS INTEGER ) - + 38, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT DISTINCT 94 FROM tab2 WHERE ( col2 + - - 49 ) IS NOT NULL
----
94

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT COUNT( * ) * MAX( 46 ) AS col1 FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-3740
SELECT COUNT ( * ) * MAX ( 46 ) AS col1 FROM tab0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT SUM( 62 ) FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-3741
SELECT SUM ( 62 ) FROM tab2 AS cor0
----
186

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 7 BETWEEN + 77 / + col2 + col2 AND - col2 * + 78 + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 88 AS col1 FROM tab0 AS cor0 WHERE NOT + 42 IS NULL
----
-88
-88
-88

query I rowsort
SELECT col1 + col2 FROM tab1 cor0 WHERE NOT - col0 * - col1 IN ( - ( + 58 ) + col0 * - col0 )
----
110
115
64

query I rowsort
SELECT DISTINCT - col2 * - + col0 FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( 99 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3747
SELECT DISTINCT col0 + col0 * - ( - col1 + - 88 ) AS col0 FROM tab1 WHERE NOT + + col1 + 80 + + 72 * col0 - + - CAST( NULL AS SIGNED ) + + 68 / + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT col0 + col0 * - ( - col1 + - 88 ) AS col0 FROM tab1 WHERE NOT + + col1 + 80 + + 72 * col0 - + - CAST ( NULL AS INTEGER ) + + 68 / + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * 99 * - ( + col0 ) FROM tab1 AS cor0
----
-42075
-423423
-70686

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3749
SELECT ALL ( - + CAST( col1 AS SIGNED ) ) * - - ( - col2 ) + + CAST( - 58 AS SIGNED ) + col0 DIV 17 * + col2 AS col1 FROM tab0 AS cor0
----
202
3749
536

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL ( - + CAST ( col1 AS INTEGER ) ) * - - ( - col2 ) + + CAST ( - 58 AS INTEGER ) + col0 / 17 * + col2 AS col1 FROM tab0 AS cor0
----
202
3749
536

query II rowsort
SELECT ( ( + - col1 ) ), ( - 39 ) AS col1 FROM tab1 cor0
----
-14
-39
-47
-39
-5
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3751
SELECT ALL COUNT( * ) * CAST( - ( MAX( - 63 ) ) AS SIGNED ) + COUNT( * ) FROM tab0 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL COUNT ( * ) * CAST ( - ( MAX ( - 63 ) ) AS INTEGER ) + COUNT ( * ) FROM tab0 AS cor0
----
192

query I rowsort
SELECT DISTINCT - 89 + + 25 FROM tab2 AS cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT ALL 33 - + SUM( col2 ) + ( + 45 ) + + 37 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3753
SELECT ALL 33 - + SUM ( col2 ) + ( + 45 ) + + 37 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - col1 * - col2 + - 34 AS col1 FROM tab2
----
1139
3046
3852

onlyif mysql # aggregate syntax: 
query II rowsort label-3755
SELECT - COUNT( - - col1 ) + + COUNT( * ) AS col1, + 3 col0 FROM tab2
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3755
SELECT - COUNT ( - - col1 ) + + COUNT ( * ) AS col1, + 3 col0 FROM tab2
----
0
3

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + col0 * - col0 + - col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3757
SELECT - col2 + - 33 + + col0 DIV - col0 AS col0 FROM tab1
----
-102
-130
-93

skipif mysql # not compatible
query I rowsort label-3757
SELECT - col2 + - 33 + + col0 / - col0 AS col0 FROM tab1
----
-102
-130
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT + COUNT( * ) + ( - COUNT( * ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3758
SELECT + COUNT ( * ) + ( - COUNT ( * ) ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT ALL - ( + COUNT( * ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL - ( + COUNT ( * ) ) AS col0 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3760
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 * + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 * + col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 9 + - + 51 AS col1 FROM tab2 AS cor0
----
-42
-42
-42

query I rowsort
SELECT - 0 AS col2 FROM tab0 cor0 WHERE + col2 * 59 - + 22 / - + col1 IS NOT NULL
----
0
0
0

query I rowsort
SELECT DISTINCT + ( - 41 ) AS col2 FROM tab0 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT DISTINCT - COUNT( * ) - - SUM( - - col2 ) col0 FROM tab0
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3764
SELECT DISTINCT - COUNT ( * ) - - SUM ( - - col2 ) col0 FROM tab0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT DISTINCT + COUNT( * ) - 89 AS col0 FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-3765
SELECT DISTINCT + COUNT ( * ) - 89 AS col0 FROM tab1
----
-86

query I rowsort
SELECT + 76 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3767
SELECT - CAST( NULL AS SIGNED ) - - 86 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3767
SELECT - CAST ( NULL AS INTEGER ) - - 86 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3768
SELECT ALL - col1, ( CAST( NULL AS DECIMAL ) ) + - - 98 AS col1 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-3768
SELECT ALL - col1, ( CAST ( NULL AS REAL ) ) + - - 98 AS col1 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3769
SELECT DISTINCT CAST( + 93 AS SIGNED ) AS col2 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-3769
SELECT DISTINCT CAST ( + 93 AS INTEGER ) AS col2 FROM tab1
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3770
SELECT + COUNT( * ), + 62 * + 82 * + CAST( - 37 AS SIGNED ) AS col2 FROM tab0
----
3
-188108

skipif mysql # not compatible
query II rowsort label-3770
SELECT + COUNT ( * ), + 62 * + 82 * + CAST ( - 37 AS INTEGER ) AS col2 FROM tab0
----
3
-188108

query I rowsort
SELECT - col1 * + - 8 AS col1 FROM tab1
----
112
376
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT DISTINCT - COUNT( DISTINCT - col0 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT - COUNT ( DISTINCT - col0 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE + col0 BETWEEN + col0 * 60 - + 5 + + col1 AND + 35
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3774
SELECT ALL CAST( + - col0 AS SIGNED ) AS col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL CAST ( + - col0 AS INTEGER ) AS col0 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT - 12 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 >= - + 84
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3776
SELECT COUNT( * ) AS col2, MAX( DISTINCT 11 ) FROM tab1 AS cor0
----
3
11

skipif mysql # not compatible
query II rowsort label-3776
SELECT COUNT ( * ) AS col2, MAX ( DISTINCT 11 ) FROM tab1 AS cor0
----
3
11

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 + + col2 * - col1 BETWEEN ( NULL ) AND 38 * col0
----

query I rowsort
SELECT - col2 - - ( - col1 ) FROM tab1 cor0 WHERE NOT 46 IN ( + + col0, 69, col2 )
----
-110
-115
-64

query II rowsort
SELECT ALL - col1 * - 65 * + 1, - 31 AS col2 FROM tab0 AS cor0
----
1365
-31
5265
-31
65
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT ALL - COUNT( * ) + + COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3780
SELECT ALL - COUNT ( * ) + + COUNT ( * ) FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3781
SELECT col0 DIV - + col0 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3781
SELECT col0 / - + col0 AS col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT col1 * + - col2 FROM tab1
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> ( col0 + + 88 * - col2 + - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3784
SELECT ALL col1 DIV col1 DIV + ( + ( - col1 ) ) FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL col1 / col1 / + ( + ( - col1 ) ) FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT DISTINCT + COUNT( + col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT + COUNT ( + col0 ) AS col0 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT col2 + + - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3789
SELECT ALL + col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 2 + col2 + - 63 FROM tab0 AS cor0
----
-14
-51
38

onlyif mysql # DIV for integer division: 
query II rowsort label-3791
SELECT ALL + + 15 DIV - col0 + - 92 + + - 73 * - col0 + + col2, - col1 col2 FROM tab0 AS cor0
----
1049
-81
6269
-21
7088
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3791
SELECT ALL + + 15 / - col0 + - 92 + + - 73 * - col0 + + col2, - col1 col2 FROM tab0 AS cor0
----
1049
-81
6269
-21
7088
-1

query II rowsort
SELECT DISTINCT + col1 + - col2, col2 AS col0 FROM tab2 AS cor0
----
28
23
37
40
9
58

query I rowsort
SELECT DISTINCT + 23 + + + 75 AS col0 FROM tab2 AS cor0
----
98

query I rowsort
SELECT DISTINCT + col0 + - - 26 + - + col2 AS col2 FROM tab1 AS cor0
----
-19
49
52

query II rowsort
SELECT + 97 + - - col1 AS col2, - ( - - col0 ) FROM tab1
----
102
-85
111
-51
144
-91

query I rowsort
SELECT - col2 + - col1 + col2 AS col1 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3797
SELECT + COUNT( * ) + MAX( ALL - - col0 ) AS col1, 83 DIV - + COUNT( - + col2 ) FROM tab2
----
78
-27

skipif mysql # not compatible
query II rowsort label-3797
SELECT + COUNT ( * ) + MAX ( ALL - - col0 ) AS col1, 83 / - + COUNT ( - + col2 ) FROM tab2
----
78
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3798
SELECT CAST( - - col2 AS SIGNED ) + - col1 + col0 + + 71 + - col0 FROM tab1
----
125
153
92

skipif mysql # not compatible
query I rowsort label-3798
SELECT CAST ( - - col2 AS INTEGER ) + - col1 + col0 + + 71 + - col0 FROM tab1
----
125
153
92

query I rowsort
SELECT DISTINCT + col1 + - + 63 FROM tab0
----
-42
-62
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3800
SELECT ALL + CAST( - col1 AS SIGNED ) * col1 FROM tab2
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL + CAST ( - col1 AS INTEGER ) * col1 FROM tab2
----
-2601
-4489
-5929

query III rowsort
SELECT * FROM tab2 WHERE - 77 * + + col2 = - 65
----

query I rowsort
SELECT DISTINCT ( + col1 ) * col1 FROM tab1
----
196
2209
25

query I rowsort
SELECT DISTINCT + - col2 + + + ( + col2 ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3804
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - ( 29 ) AND NULL OR + col1 * col1 + CAST( NULL AS SIGNED ) * + + col1 * + col0 IN ( col0 )
----

skipif mysql # not compatible
query III rowsort label-3804
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - ( 29 ) AND NULL OR + col1 * col1 + CAST ( NULL AS INTEGER ) * + + col1 * + col0 IN ( col0 )
----

query I rowsort
SELECT ALL col0 * + ( 21 ) + 46 AS col1 FROM tab2
----
1012
1390
1621

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE - col1 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 41 >= NULL
----

query I rowsort
SELECT + + ( - 19 ) AS col2 FROM tab2 AS cor0
----
-19
-19
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-3809
SELECT DISTINCT - 27 DIV - - col0 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3809
SELECT DISTINCT - 27 / - - col0 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT ALL + MIN( col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3810
SELECT ALL + MIN ( col0 ) FROM tab0 AS cor0
----
15

query II rowsort
SELECT DISTINCT 19, + col1 + - + 43 * - col0 - + 37 + 43 * col0 AS col2 FROM tab2 AS cor0
----
19
3970
19
5544
19
6480

query I rowsort
SELECT + + ( - - col1 ) AS col2 FROM tab1 AS cor0
----
14
47
5

query II rowsort
SELECT col0 * col1 * col0 AS col1, 39 + - col2 * - - col2 + + 79 FROM tab1 AS cor0
----
36125
-3363
36414
-9098
389207
-4506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3814
SELECT CAST( + 22 AS SIGNED ) AS col0, - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
22
-3

skipif mysql # not compatible
query II rowsort label-3814
SELECT CAST ( + 22 AS INTEGER ) AS col0, - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
22
-3

query I rowsort
SELECT ALL 41 * + 65 AS col1 FROM tab0
----
2665
2665
2665

query I rowsort
SELECT DISTINCT + col1 * + col2 * + - 90 * - col1 FROM tab0
----
27753030
396900
8910

onlyif mysql # DIV for integer division: 
query I rowsort label-3817
SELECT - col2 DIV - 27 col1 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3817
SELECT - col2 / - 27 col1 FROM tab2 AS cor0
----
0
1
2

query II rowsort
SELECT col0, + col1 FROM tab2 AS cor0 WHERE NOT col1 + 90 IS NOT NULL
----

query I rowsort
SELECT ALL 28 * - - col1 AS col2 FROM tab0
----
2268
28
588

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 / + + 5 IS NOT NULL
----

query I rowsort
SELECT - + 4 * - col0 AS col0 FROM tab0 cor0
----
348
388
60

query I rowsort
SELECT ALL + + col0 + + col1 * - col2 + + - 36 * col2 FROM tab2 AS cor0
----
-1955
-4456
-5899

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3823
SELECT DISTINCT col0 + ( - + CAST( NULL AS SIGNED ) ) + - - 86 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3823
SELECT DISTINCT col0 + ( - + CAST ( NULL AS INTEGER ) ) + - - 86 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3824
SELECT DISTINCT + - COUNT( * ) + CAST( + - 94 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT + - COUNT ( * ) + CAST ( + - 94 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-97

query II rowsort
SELECT DISTINCT + 23 + - + col1 AS col2, col2 FROM tab2
----
-28
23
-44
58
-54
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 41 - - col2 col2 FROM tab1
----
100
109
137

query I rowsort
SELECT DISTINCT col2 + 76 + - + col1 AS col2 FROM tab1
----
130
158
97

query I rowsort
SELECT + 14 + 32 FROM tab2
----
46
46
46

query I rowsort
SELECT - + col0 AS col0 FROM tab1 WHERE - + 22 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT COUNT( * ) + 81 + + + COUNT( * ) AS col0 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-3830
SELECT COUNT ( * ) + 81 + + + COUNT ( * ) AS col0 FROM tab2
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - + col1 col0 FROM tab2
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT + ( + COUNT( * ) ) * - ( + + MIN( DISTINCT + 94 ) ) + 27 + ( + 14 ) AS col0 FROM tab2
----
-241

skipif mysql # not compatible
query I rowsort label-3832
SELECT + ( + COUNT ( * ) ) * - ( + + MIN ( DISTINCT + 94 ) ) + 27 + ( + 14 ) AS col0 FROM tab2
----
-241

query I rowsort
SELECT 94 * col1 - + col0 - 15 + + col2 FROM tab0 AS cor0
----
1882
7631
81

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT col0 = NULL )
----

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query I rowsort
SELECT ALL - + 93 + 99 * + col2 FROM tab2 AS cor0
----
2184
3867
5649

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT NULL = + + col0 )
----

query I rowsort
SELECT DISTINCT - col1 + + 13 + col0 FROM tab1 AS cor0
----
50
57
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3839
SELECT ALL + col2 DIV - + col2 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3839
SELECT ALL + col2 / - + col2 AS col1 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col2 * - - 55 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3841
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3841
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT + COUNT( * ) * + COUNT( DISTINCT col0 ) col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3842
SELECT + COUNT ( * ) * + COUNT ( DISTINCT col0 ) col1 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3843
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT - col1 * - + 60 AS col2 FROM tab0
----
1260
4860
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3845
SELECT - 20 DIV - + SUM( ALL + 65 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3845
SELECT - 20 / - + SUM ( ALL + 65 ) FROM tab1
----
0

query I rowsort
SELECT ALL 47 * col2 FROM tab1
----
2773
3196
4512

onlyif mysql # DIV for integer division: 
query I rowsort label-3847
SELECT DISTINCT - 7 DIV 18 * - 78 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT - 7 / 18 * - 78 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab1 WHERE NOT NULL > + col2 * 15 + - 24
----

query II rowsort
SELECT DISTINCT col0, - col1 FROM tab0
----
15
-81
87
-21
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT - MAX( - - ( + + 45 ) ) AS col0 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-3850
SELECT - MAX ( - - ( + + 45 ) ) AS col0 FROM tab0
----
-45

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 37 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT - 67 * - COUNT( * ) FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-3852
SELECT - 67 * - COUNT ( * ) FROM tab1
----
201

query I rowsort
SELECT ALL + col0 + + 66 FROM tab1 AS cor0
----
117
151
157

query I rowsort
SELECT ALL col1 + - - col0 * 14 + + col1 * + - 15 FROM tab0 AS cor0
----
-924
1344
924

query II rowsort
SELECT - col2 AS col0, - ( - 85 ) + - + 17 AS col2 FROM tab0 AS cor0
----
-10
68
-47
68
-99
68

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 30 IN ( 43 / - col2, 36 + 12, + 84 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 8 FROM tab0 cor0 WHERE ( NOT - 25 * ( - col1 ) NOT BETWEEN 57 AND NULL )
----

query I rowsort
SELECT - - ( + - col0 ) + col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT - - 73 + - ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-3859
SELECT - - 73 + - ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT + COUNT( * ) + - MAX( ALL - - 37 ) FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-3860
SELECT + COUNT ( * ) + - MAX ( ALL - - 37 ) FROM tab0 AS cor0
----
-34

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT NULL NOT IN ( - 54 ) )
----

query I rowsort
SELECT + ( col2 ) + + + col1 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT DISTINCT + + 21 + + - col2 AS col1 FROM tab1 AS cor0
----
-38
-47
-75

query I rowsort
SELECT DISTINCT 51 + + ( - + col0 ) FROM tab0 AS cor0
----
-36
-46
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT DISTINCT COUNT( DISTINCT col0 ) AS col1 FROM tab1 WHERE NOT - col0 NOT BETWEEN - - col0 / + col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT COUNT ( DISTINCT col0 ) AS col1 FROM tab1 WHERE NOT - col0 NOT BETWEEN - - col0 / + col0 AND NULL
----
0

query I rowsort
SELECT ALL + 13 + 37 * - col2 * - 85 AS col2 FROM tab1
----
185568
213873
301933

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3867
SELECT DISTINCT - 5 DIV col1 + CAST( - + 20 AS SIGNED ) FROM tab0
----
-20
-25

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT - 5 / col1 + CAST ( - + 20 AS INTEGER ) FROM tab0
----
-20
-25

query I rowsort
SELECT ALL 56 + + + 51 * - - col2 FROM tab2
----
1229
2096
3014

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = ( - 67 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT DISTINCT COUNT( * ) + + + 14 + + - 82 FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-3870
SELECT DISTINCT COUNT ( * ) + + + 14 + + - 82 FROM tab1
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3871
SELECT + CAST( NULL AS SIGNED ) - + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3871
SELECT + CAST ( NULL AS INTEGER ) - + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * ( 59 ) AS col0 FROM tab2 AS cor0
----
3009
3953
4543

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 50 * - 68 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3874
SELECT DISTINCT + 44 DIV col0 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT + 44 / col0 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL 30 * + 90 AS col1 FROM tab0
----
2700
2700
2700

onlyif mysql # aggregate syntax: 
query II rowsort label-3876
SELECT - COUNT( * ) AS col1, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3876
SELECT - COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT ALL - + ( - COUNT( * ) ) * 27 - + COUNT( * ) + + 28 FROM tab1 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL - + ( - COUNT ( * ) ) * 27 - + COUNT ( * ) + + 28 FROM tab1 AS cor0
----
106

onlyif mysql # DIV for integer division: 
query II rowsort label-3878
SELECT + 12 col0, + col0 DIV col1 + - col0 FROM tab1 AS cor0
----
12
-48
12
-68
12
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3878
SELECT + 12 col0, + col0 / col1 + - col0 FROM tab1 AS cor0
----
12
-48
12
-68
12
-90

query I rowsort
SELECT ALL + ( col1 ) / + 18 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT - COUNT( DISTINCT - + 63 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3880
SELECT - COUNT ( DISTINCT - + 63 ) AS col2 FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 col1 FROM tab1
----
60
60
60

query I rowsort
SELECT DISTINCT + 56 AS col2 FROM tab0
----
56

query I rowsort
SELECT ALL + 94 FROM tab0 WHERE 54 * + 51 + - 48 NOT IN ( - col1 )
----
94
94
94

query III rowsort
SELECT * FROM tab1 WHERE NOT + 10 IS NOT NULL
----

query I rowsort
SELECT 64 * - col0 * - col1 FROM tab2
----
150144
315392
321600

onlyif mysql # aggregate syntax: 
query II rowsort label-3886
SELECT MIN( - col0 ), - 9 + - COUNT( * ) AS col0 FROM tab1
----
-91
-12

skipif mysql # not compatible
query II rowsort label-3886
SELECT MIN ( - col0 ), - 9 + - COUNT ( * ) AS col0 FROM tab1
----
-91
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT - + COUNT( ALL col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3887
SELECT - + COUNT ( ALL col1 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col2 + + col1 + + col1 FROM tab0 AS cor0 WHERE + 71 * col0 <= NULL
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN 94 AND - col2
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3890
SELECT ALL - + 38 + + CAST( NULL AS SIGNED ) * - COUNT( - + 69 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL - + 38 + + CAST ( NULL AS INTEGER ) * - COUNT ( - + 69 ) AS col2 FROM tab1 AS cor0
----
NULL

query IIIIII rowsort
SELECT ALL * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3892
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= 58 + + 23
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3894
SELECT ALL 58 DIV col0 * + col2 col1 FROM tab1 AS cor0
----
0
0
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3894
SELECT ALL 58 / col0 * + col2 col1 FROM tab1 AS cor0
----
0
0
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3895
SELECT DISTINCT + - col1 + ( 44 ) + - ( - col0 ) + + col1 DIV + col2 + + col0 * + col2 FROM tab2 AS cor0
----
1099
2592
4403

skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT + - col1 + ( 44 ) + - ( - col0 ) + + col1 / + col2 + + col0 * + col2 FROM tab2 AS cor0
----
1099
2592
4403

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 47 - + 94 col0 FROM tab0 AS cor0
----
-141
-141
-141

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col2 + 60 BETWEEN NULL AND 51
----

query II rowsort
SELECT DISTINCT col2 + + col2, col2 AS col0 FROM tab2
----
116
58
46
23
80
40

query II rowsort
SELECT - 67 + - 11 AS col2, + col1 AS col0 FROM tab1
----
-78
14
-78
47
-78
5

query II rowsort
SELECT ALL col1 - col1 AS col0, + col1 FROM tab2
----
0
51
0
67
0
77

onlyif mysql # DIV for integer division: 
query II rowsort label-3901
SELECT col0 * + 77 + + col2 DIV 1 AS col1, col0 AS col2 FROM tab1
----
4023
51
6604
85
7075
91

skipif mysql # not compatible
query II rowsort label-3901
SELECT col0 * + 77 + + col2 / 1 AS col1, col0 AS col2 FROM tab1
----
4023
51
6604
85
7075
91

query I rowsort
SELECT 57 * - col1 + - + 44 FROM tab1
----
-2723
-329
-842

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT ALL + SUM( 4 ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL + SUM ( 4 ) FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT - MIN( + 31 ) col0 FROM tab2
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3904
SELECT - MIN ( + 31 ) col0 FROM tab2
----
-31

query I rowsort
SELECT + - col1 + + col0 * - col1 * + 50 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= - col0
----

query I rowsort
SELECT ALL - 82 + + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 24 * - - 32 * col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + col2 / 37 * - + col2 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 29 IS NULL )
----

query I rowsort
SELECT ALL - 32 * + + col1 AS col1 FROM tab0 AS cor0
----
-2592
-32
-672

onlyif mysql # aggregate syntax: 
query II rowsort label-3911
SELECT ALL - 12 AS col0, - 36 * - MIN( ALL - col0 ) + COUNT( * ) FROM tab2 AS cor0
----
-12
-2697

skipif mysql # not compatible
query II rowsort label-3911
SELECT ALL - 12 AS col0, - 36 * - MIN ( ALL - col0 ) + COUNT ( * ) FROM tab2 AS cor0
----
-12
-2697

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - ( 34 ) * col1 - + 78 + col1 * + - 28 / + - col2 + - col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 23 + + col2 FROM tab1 AS cor0
----
36
45
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT ALL + + MIN( + - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL + + MIN ( + - col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT DISTINCT + - MIN( 31 ) col2 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3915
SELECT DISTINCT + - MIN ( 31 ) col2 FROM tab0 AS cor0
----
-31

query I rowsort
SELECT + 39 + - 53 - + 2 + - ( + col0 ) FROM tab1
----
-101
-107
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3917
SELECT ALL 90, + CAST( - + col2 AS SIGNED ) * + col1 AS col2 FROM tab0
----
90
-210
90
-3807
90
-99

skipif mysql # not compatible
query II rowsort label-3917
SELECT ALL 90, + CAST ( - + col2 AS INTEGER ) * + col1 AS col2 FROM tab0
----
90
-210
90
-3807
90
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, col2 + + col0 AS col0 FROM tab2
----
-46
69
-64
104
-75
133

query I rowsort
SELECT ( - - col2 ) + - col2 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT col2 AS col1, 96 AS col1 FROM tab2
----
23
96
40
96
58
96

query I rowsort
SELECT - + col1 + + 24 FROM tab2 WHERE - col2 = - col2 + - col0
----

query I rowsort
SELECT ALL col1 * ( + 17 ) FROM tab0
----
1377
17
357

query I rowsort
SELECT DISTINCT + + col0 + + 68 + - col2 + - col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 2 * + ( 20 ) * col2 FROM tab1
----
2360
2720
3840

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN ( NULL ) AND + 36
----
59
68
96

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 97 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
97

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( 12 ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT DISTINCT COUNT( * ) - - + COUNT( * ) col1 FROM tab1 cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3929
SELECT DISTINCT COUNT ( * ) - - + COUNT ( * ) col1 FROM tab1 cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT ALL - 27 * COUNT( * ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL - 27 * COUNT ( * ) FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT + + COUNT( * ) + + MIN( DISTINCT 21 ) col0 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3931
SELECT + + COUNT ( * ) + + MIN ( DISTINCT 21 ) col0 FROM tab0 AS cor0
----
24

query I rowsort
SELECT - 3 * - - col2 + 29 FROM tab1 AS cor0
----
-148
-175
-259

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( 96 + col2, col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col1 + - + ( - col0 ) > + col2
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 col1 FROM tab1 AS cor0
----
57
57
57

query II rowsort
SELECT ALL - col0 + + - col1 AS col1, col2 FROM tab0 AS cor0
----
-108
10
-96
47
-98
99

query I rowsort
SELECT + + ( + + ( + col1 ) ) AS col0 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 * + 30 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT DISTINCT + COUNT( * ) - + - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3939
SELECT DISTINCT + COUNT ( * ) - + - COUNT ( * ) FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT DISTINCT - MAX( + col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT - MAX ( + col1 ) FROM tab0
----
-81

query I rowsort
SELECT - 9 AS col2 FROM tab2 WHERE NOT + col2 * col0 IS NOT NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT + col2 * + + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1600
3364
529

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3943
SELECT DISTINCT CAST( MIN( col2 ) AS DECIMAL ) FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT CAST ( MIN ( col2 ) AS REAL ) FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3944
SELECT - + CAST( NULL AS SIGNED ) * - - ( - 56 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3944
SELECT - + CAST ( NULL AS INTEGER ) * - - ( - 56 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( - 59 ) <> - - 37
----

query I rowsort
SELECT 21 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT DISTINCT 77 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3948
SELECT - + CAST( - col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3948
SELECT - + CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT DISTINCT - ( - - col1 ) + - 51 FROM tab1 AS cor0
----
-56
-65
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - + col0 col1 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT - - col0 * + 12 + + + 55 FROM tab0 AS cor0
----
1099
1219
235

query I rowsort
SELECT ALL - + col0 + 65 FROM tab2 AS cor0
----
-10
1
19

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3953
SELECT ALL + ( - col0 ) * CAST( NULL AS DECIMAL ) + + CAST( 80 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL + ( - col0 ) * CAST ( NULL AS REAL ) + + CAST ( 80 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT ALL + MIN( - + col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3954
SELECT ALL + MIN ( - + col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-3955
SELECT DISTINCT col0 DIV - + col0 + col0 AS col2 FROM tab2
----
45
63
74

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT col0 / - + col0 + col0 AS col2 FROM tab2
----
45
63
74

query I rowsort
SELECT col1 * + - col2 AS col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT ALL - MAX( + col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL - MAX ( + col2 ) FROM tab0
----
-99

query I rowsort
SELECT col1 + + col0 * ( - + 90 ) FROM tab1
----
-4576
-7645
-8143

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3960
SELECT DISTINCT 70 * - ( + + 98 ) AS col2, 25 + + COUNT( * ) AS col2 FROM tab1
----
-6860
28

skipif mysql # not compatible
query II rowsort label-3960
SELECT DISTINCT 70 * - ( + + 98 ) AS col2, 25 + + COUNT ( * ) AS col2 FROM tab1
----
-6860
28

query II rowsort
SELECT + col0 AS col0, + col2 + + ( + 12 ) FROM tab0 WHERE NULL IS NULL
----
15
59
87
22
97
111

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE - col0 NOT BETWEEN NULL AND ( - 43 + col0 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT COUNT( * ) + - 66 FROM tab1 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-3963
SELECT COUNT ( * ) + - 66 FROM tab1 cor0
----
-63

query I rowsort
SELECT DISTINCT + + col2 * 10 FROM tab0 AS cor0
----
100
470
990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3965
SELECT DISTINCT - COUNT( - + ( + CAST( NULL AS SIGNED ) ) ) DIV + COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3965
SELECT DISTINCT - COUNT ( - + ( + CAST ( NULL AS INTEGER ) ) ) / + COUNT ( * ) AS col2 FROM tab2
----
0

query I rowsort
SELECT - col0 - col0 + + col1 - - col2 * + - 16 * 55 * - col1 * + col0 AS col1 FROM tab2 AS cor0
----
173465549
256475917
47482999

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT DISTINCT + MIN( + col1 ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-3967
SELECT DISTINCT + MIN ( + col1 ) FROM tab1 cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3968
SELECT DISTINCT - CAST( + CAST( + col1 AS SIGNED ) AS SIGNED ) - - col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3968
SELECT DISTINCT - CAST ( + CAST ( + col1 AS INTEGER ) AS INTEGER ) - - col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT + 30 AS col1, + col2 FROM tab1 AS cor0
----
30
59
30
68
30
96

query I rowsort
SELECT ALL - + 96 FROM tab0 cor0
----
-96
-96
-96

query I rowsort
SELECT 58 + + col2 FROM tab1 cor0 WHERE NOT + col0 / col2 * + 75 > ( NULL )
----

query II rowsort
SELECT ALL - - col1, + col1 AS col0 FROM tab1 AS cor0
----
14
14
47
47
5
5

query II rowsort
SELECT col0 AS col2, 42 AS col2 FROM tab1 WHERE NOT - col0 <> - col2
----

onlyif mysql # DIV for integer division: 
query III rowsort label-3974
SELECT + col0 DIV + + 36 col0, col1, - + col1 AS col1 FROM tab2
----
9 values hashing to 3bf658a3d91b9d1bfd58483f40a27c43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3974
SELECT + col0 / + + 36 col0, col1, - + col1 AS col1 FROM tab2
----
9 values hashing to 3bf658a3d91b9d1bfd58483f40a27c43

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT MAX( DISTINCT + col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-3975
SELECT MAX ( DISTINCT + col2 ) FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT ( + MAX( + + 79 ) ) col2 FROM tab0
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3976
SELECT ( + MAX ( + + 79 ) ) col2 FROM tab0
----
79

query II rowsort
SELECT - - col1 * 36 AS col0, col1 FROM tab1 AS cor0
----
1692
47
180
5
504
14

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > + 11
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( ( - 1 ) * + col1, - col1 )
----

query II rowsort
SELECT DISTINCT + col1 AS col2, col1 AS col0 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT ALL ( 78 ) AS col2 FROM tab2
----
78
78
78

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 <= - - col1 / + 54
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 87 + - col2 >= + col1 * ( + col1 )
----

query I rowsort
SELECT + - col1 + 15 FROM tab1 cor0
----
-32
1
10

query I rowsort
SELECT DISTINCT + + col0 + - + 25 FROM tab1 AS cor0
----
26
60
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3986
SELECT ALL * FROM tab1 cor0 WHERE 15 * col1 / ( - - 50 ) * - + CAST( - + col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3986
SELECT ALL * FROM tab1 cor0 WHERE 15 * col1 / ( - - 50 ) * - + CAST ( - + col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3987
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) + + 6 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3987
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + 6 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 51 + - - col2 AS col1 FROM tab0 AS cor0
----
150
61
98

query II rowsort
SELECT ALL ( col2 ) AS col2, + col0 + + col2 FROM tab2
----
23
69
40
104
58
133

onlyif mysql # DIV for integer division: 
query I rowsort label-3990
SELECT ( col2 ) + - col0 DIV - col1 AS col2 FROM tab1
----
69
76
99

skipif mysql # not compatible
query I rowsort label-3990
SELECT ( col2 ) + - col0 / - col1 AS col2 FROM tab1
----
69
76
99

query I rowsort
SELECT ( - 12 ) AS col1 FROM tab1
----
-12
-12
-12

query I rowsort
SELECT + 13 * + col1 FROM tab1
----
182
611
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3993
SELECT ALL col2 - + ( + col0 ) * - - col0 + - col0 DIV + ( + + col1 ) FROM tab0
----
-178
-7563
-9407

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL col2 - + ( + col0 ) * - - col0 + - col0 / + ( + + col1 ) FROM tab0
----
-178
-7563
-9407

query III rowsort
SELECT * FROM tab2 WHERE + 88 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3995
SELECT + col0 DIV - col0 + col2 AS col2 FROM tab2 AS cor0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-3995
SELECT + col0 / - col0 + col2 AS col2 FROM tab2 AS cor0
----
22
39
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3996
SELECT + col1 DIV 61 - col0 AS col2 FROM tab0 AS cor0
----
-14
-87
-97

skipif mysql # not compatible
query I rowsort label-3996
SELECT + col1 / 61 - col0 AS col2 FROM tab0 AS cor0
----
-14
-87
-97

query I rowsort
SELECT + - 39 - - 86 AS col1 FROM tab1 AS cor0
----
47
47
47

query I rowsort
SELECT + col0 - - col1 - 50 + + col1 * + 95 AS col0 FROM tab0 AS cor0
----
143
2053
7741

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT + 66 * - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
594

skipif mysql # not compatible
query I rowsort label-3999
SELECT + 66 * - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4000
SELECT + col1 * ( + + col1 ) - - ( + col2 ) * - + 43 * CAST( + - 7 AS SIGNED ) AS col0 FROM tab1 WHERE NULL IS NULL
----
17784
22677
29092

skipif mysql # not compatible
query I rowsort label-4000
SELECT + col1 * ( + + col1 ) - - ( + col2 ) * - + 43 * CAST ( + - 7 AS INTEGER ) AS col0 FROM tab1 WHERE NULL IS NULL
----
17784
22677
29092

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4001
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 + - CAST( NULL AS DECIMAL ) + + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4001
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 + - CAST ( NULL AS REAL ) + + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT MIN( col2 ) * - 42 col2 FROM tab2 AS cor0
----
-966

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4002
SELECT MIN ( col2 ) * - 42 col2 FROM tab2 AS cor0
----
-966

query II rowsort
SELECT ALL col0 * + 36 * - 54 * + 76 + - 81 + - - col1, + col1 AS col0 FROM tab2 AS cor0
----
-11080814
67
-6796254
51
-9455620
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 92 IS NULL
----

query I rowsort
SELECT + col2 * - 65 FROM tab2 AS cor0
----
-1495
-2600
-3770

onlyif mysql # DIV for integer division: 
query I rowsort label-4006
SELECT 84 DIV - col2 FROM tab2 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4006
SELECT 84 / - col2 FROM tab2 cor0
----
-1
-2
-3

query I rowsort
SELECT + + col2 * + col0 FROM tab2 cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT - COUNT( * ) * + + MIN( + - col0 ) col0 FROM tab1 AS cor0
----
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4008
SELECT - COUNT ( * ) * + + MIN ( + - col0 ) col0 FROM tab1 AS cor0
----
273

onlyif mysql # DIV for integer division: 
query I rowsort label-4009
SELECT ALL 71 DIV + + col1 FROM tab1
----
1
14
5

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL 71 / + + col1 FROM tab1
----
1
14
5

query II rowsort
SELECT DISTINCT - 65 AS col0, + ( + col1 ) FROM tab0
----
-65
1
-65
21
-65
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 col1 FROM tab2, tab1 AS cor0
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-4012
SELECT - + col0 DIV + - col2 FROM tab0 WHERE NOT - col1 IS NULL
----
0
0
8

skipif mysql # not compatible
query I rowsort label-4012
SELECT - + col0 / + - col2 FROM tab0 WHERE NOT - col1 IS NULL
----
0
0
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT - + COUNT( * ) FROM tab1 WHERE NOT NULL IN ( 57, + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4013
SELECT - + COUNT ( * ) FROM tab1 WHERE NOT NULL IN ( 57, + col2 )
----
0

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT ALL + col0 * - - 79 AS col1 FROM tab2 AS cor0
----
3634
5056
5925

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 / - 56 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * + col0 * - + col1 AS col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

onlyif mysql # DIV for integer division: 
query II rowsort label-4018
SELECT col0 AS col1, col0 DIV col2 FROM tab1 AS cor0
----
51
0
85
1
91
1

skipif mysql # not compatible
query II rowsort label-4018
SELECT col0 AS col1, col0 / col2 FROM tab1 AS cor0
----
51
0
85
1
91
1

query I rowsort
SELECT ALL - 8 AS col1 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT - ( - - col1 ) + - 25 AS col1 FROM tab1 AS cor0
----
-30
-39
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT ALL COUNT( * ) * - 84 AS col2 FROM tab0
----
-252

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL COUNT ( * ) * - 84 AS col2 FROM tab0
----
-252

onlyif mysql # DIV for integer division: 
query I rowsort label-4022
SELECT ALL ( - - col1 ) DIV + col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL ( - - col1 ) / + col1 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4023
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - COUNT( * ) / + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4024
SELECT + - CAST( + ( + COUNT( DISTINCT + + 86 ) ) AS SIGNED ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4024
SELECT + - CAST ( + ( + COUNT ( DISTINCT + + 86 ) ) AS INTEGER ) FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4025
SELECT - ( 23 ) DIV col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4025
SELECT - ( 23 ) / col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT DISTINCT COUNT( * ) + + + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT COUNT ( * ) + + + COUNT ( * ) FROM tab2 AS cor0
----
6

query II rowsort
SELECT 52 + - col2, - col2 * + 63 + - col1 * - + 85 / - 33 FROM tab1 cor0 WHERE NULL <> - ( - + 60 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4028
SELECT - CAST( NULL AS SIGNED ) - - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4028
SELECT - CAST ( NULL AS INTEGER ) - - col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT + - col0 <= + - col0
----

query I rowsort
SELECT 97 + - col1 FROM tab2
----
20
30
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4031
SELECT DISTINCT - col2 AS col2, + col1 * - + col0 + - CAST( - + ( + col1 ) AS SIGNED ) AS col0 FROM tab1
----
-59
-420
-68
-4230
-96
-700

skipif mysql # not compatible
query II rowsort label-4031
SELECT DISTINCT - col2 AS col2, + col1 * - + col0 + - CAST ( - + ( + col1 ) AS INTEGER ) AS col0 FROM tab1
----
-59
-420
-68
-4230
-96
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT - COUNT( * ) + - MAX( DISTINCT - ( - ( + col1 ) ) ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-4032
SELECT - COUNT ( * ) + - MAX ( DISTINCT - ( - ( + col1 ) ) ) FROM tab0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4033
SELECT ALL CAST( col2 AS SIGNED ) col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4033
SELECT ALL CAST ( col2 AS INTEGER ) col2 FROM tab1
----
59
68
96

query I rowsort
SELECT + ( + ( - 47 ) ) + col2 FROM tab0
----
-37
0
52

query I rowsort
SELECT ( + - col0 ) * - 64 + + ( - ( - - col1 ) ) + + + 76 FROM tab2 AS cor0
----
2969
4095
4809

query I rowsort
SELECT + + col2 * - - 48 + + col2 + - col1 FROM tab1 AS cor0
----
2886
3285
4690

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4037
SELECT DISTINCT col0 * + col2 + + 25 DIV + col1 + - CAST( - + col1 AS SIGNED ) FROM tab1 AS cor0
----
4911
5025
6235

skipif mysql # not compatible
query I rowsort label-4037
SELECT DISTINCT col0 * + col2 + + 25 / + col1 + - CAST ( - + col1 AS INTEGER ) FROM tab1 AS cor0
----
4911
5025
6235

query I rowsort
SELECT DISTINCT + - col0 + 39 AS col1 FROM tab0 AS cor0
----
-48
-58
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT DISTINCT - - MAX( + - 17 ) AS col2 FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT - - MAX ( + - 17 ) AS col2 FROM tab1 AS cor0
----
-17

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 37 + + 44 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT - - 90 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT + 4 * - 59 + + + 51 * 19 + + col2 + - col0 * col1 * + col1 * - - col1 FROM tab1 cor0 WHERE NOT - 28 * - - 27 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4043
SELECT - COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4043
SELECT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4044
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN + - CAST( + + col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN + - CAST ( + + col2 AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4045
SELECT - CAST( - col2 AS SIGNED ) * - col0 AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-4045
SELECT - CAST ( - col2 AS INTEGER ) * - col0 AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT 22 * + - MIN( ALL - ( 52 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 + + col1 * - 97 + col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4046
SELECT 22 * + - MIN ( ALL - ( 52 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 + + col1 * - 97 + col2 AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 * + + 76, - col0 col2 FROM tab2 AS cor0
----
-3496
-46
-4864
-64
-5700
-75

query I rowsort
SELECT DISTINCT + col0 * + + col2 FROM tab0
----
705
870
9603

query I rowsort
SELECT + + 57 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
57
57
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4050
SELECT 88 DIV + col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4050
SELECT 88 / + col2 FROM tab2
----
1
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT DISTINCT MAX( - - 42 ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT MAX ( - - 42 ) FROM tab2
----
42

query II rowsort
SELECT + col1 AS col1, col2 FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT - ( - - 55 ) FROM tab1
----
-55
-55
-55

query I rowsort
SELECT 72 AS col1 FROM tab0 WHERE NOT + - ( + col0 ) IS NULL
----
72
72
72

query I rowsort
SELECT DISTINCT - ( 9 ) AS col1 FROM tab1
----
-9

query I rowsort
SELECT ALL ( 46 ) FROM tab1
----
46
46
46

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 + - col1 + - 52 + col1 >= + 67
----

query I rowsort
SELECT DISTINCT - + col2 * col1 * + - col2 FROM tab2 cor0
----
123200
225388
26979

query I rowsort
SELECT ALL - col0 * + + col2 * - col0 AS col0 FROM tab1 AS cor0
----
249696
426275
563108

query I rowsort
SELECT ALL - col1 + + col2 - + ( + col1 ) FROM tab2 AS cor0
----
-114
-76
-79

query III rowsort
SELECT * FROM tab1 WHERE + col0 - 71 IS NULL
----

query I rowsort
SELECT DISTINCT 53 * ( + + col1 ) FROM tab2
----
2703
3551
4081

onlyif mysql # aggregate syntax: 
query II rowsort label-4063
SELECT ALL 97 AS col0, COUNT( * ) FROM tab1 AS cor0
----
97
3

skipif mysql # not compatible
query II rowsort label-4063
SELECT ALL 97 AS col0, COUNT ( * ) FROM tab1 AS cor0
----
97
3

query I rowsort
SELECT DISTINCT + + col1 * 18 - col0 FROM tab2 AS cor0
----
1131
1322
872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4065
SELECT - ( - col0 ) + + CAST( 6 AS SIGNED ) * - 19 FROM tab0 AS cor0
----
-17
-27
-99

skipif mysql # not compatible
query I rowsort label-4065
SELECT - ( - col0 ) + + CAST ( 6 AS INTEGER ) * - 19 FROM tab0 AS cor0
----
-17
-27
-99

query I rowsort
SELECT - - col2 + 83 AS col2 FROM tab2 AS cor0
----
106
123
141

query I rowsort
SELECT ALL + 33 * + col0 + + col0 AS col1 FROM tab0 AS cor0
----
2958
3298
510

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT + - COUNT( * ) - - + 72 - 10 FROM tab0 cor0 WHERE col1 IS NOT NULL
----
59

skipif mysql # not compatible
query I rowsort label-4068
SELECT + - COUNT ( * ) - - + 72 - 10 FROM tab0 cor0 WHERE col1 IS NOT NULL
----
59

query I rowsort
SELECT DISTINCT - ( + - col2 ) AS col0 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL - 94 FROM tab2 cor0 WHERE ( NULL ) BETWEEN - - col1 * + col0 * + 81 * - col1 AND + col2
----

query II rowsort
SELECT ALL col1 + 29 * col0 * + 31 AS col0, col2 AS col2 FROM tab0 AS cor0
----
13566
47
78234
10
87204
99

query I rowsort
SELECT DISTINCT 13 + - + col1 AS col0 FROM tab2 AS cor0
----
-38
-54
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4073
SELECT DISTINCT - CAST( NULL AS SIGNED ) + AVG ( col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + AVG ( col0 ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - 99 - col1 FROM tab1
----
-104
-113
-146

query I rowsort
SELECT DISTINCT - 40 - + col2 FROM tab1
----
-108
-136
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4076
SELECT ALL + col2 * - col1 * CAST( NULL AS DECIMAL ) AS col1, 59 * - ( - - ( 86 ) ) * col1 + - 67 FROM tab2
----
NULL
-258841
NULL
-340025
NULL
-390765

skipif mysql # not compatible
query II rowsort label-4076
SELECT ALL + col2 * - col1 * CAST ( NULL AS REAL ) AS col1, 59 * - ( - - ( 86 ) ) * col1 + - 67 FROM tab2
----
NULL
-258841
NULL
-340025
NULL
-390765

query I rowsort
SELECT ALL + + 72 AS col2 FROM tab0 AS cor0
----
72
72
72

query I rowsort
SELECT DISTINCT - 52 AS col0 FROM tab0 cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT DISTINCT + - MAX( DISTINCT - col1 ) * COUNT( * ) + - 49 FROM tab2 AS cor0
----
104

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT + - MAX ( DISTINCT - col1 ) * COUNT ( * ) + - 49 FROM tab2 AS cor0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT - 6 * - - MIN( ALL + 94 ) + - 8 col0 FROM tab2 AS cor0
----
-572

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4080
SELECT - 6 * - - MIN ( ALL + 94 ) + - 8 col0 FROM tab2 AS cor0
----
-572

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT DISTINCT - + COUNT( ALL col2 ) FROM tab0 cor0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT - + COUNT ( ALL col2 ) FROM tab0 cor0 WHERE + col1 IS NULL
----
0

query I rowsort
SELECT - 63 AS col0 FROM tab0 cor0
----
-63
-63
-63

query II rowsort
SELECT - 35 AS col1, - col0 * col0 FROM tab0
----
-35
-225
-35
-7569
-35
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT ALL SUM( - col1 ) col1 FROM tab2
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4084
SELECT ALL SUM ( - col1 ) col1 FROM tab2
----
-195

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + - ( - - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT DISTINCT COUNT( * ) * + + MIN( ALL + 48 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
432

skipif mysql # not compatible
query I rowsort label-4086
SELECT DISTINCT COUNT ( * ) * + + MIN ( ALL + 48 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT DISTINCT 9 * + COUNT( * ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4087
SELECT DISTINCT 9 * + COUNT ( * ) FROM tab2 AS cor0
----
27

query II rowsort
SELECT - col0, + 59 + + col2 + + col0 AS col0 FROM tab2 AS cor0
----
-46
128
-64
163
-75
192

query I rowsort
SELECT + ( - + 60 ) AS col2 FROM tab0 cor0 WHERE NOT ( NOT - col0 NOT BETWEEN NULL AND - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4090
SELECT ALL col0 DIV - 16 FROM tab1
----
-3
-5
-5

skipif mysql # not compatible
query I rowsort label-4090
SELECT ALL col0 / - 16 FROM tab1
----
-3
-5
-5

query I rowsort
SELECT ALL 25 AS col0 FROM tab1
----
25
25
25

query I rowsort
SELECT + 8 FROM tab0 WHERE NOT - - 44 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 72 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 77 + + col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col1 + - - col0 + + - ( - col2 ) * col1 * + - col2 col1 FROM tab1 AS cor0
----
-128259
-16895
-212960

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT DISTINCT + ( - COUNT( * ) ) * 91 FROM tab1 cor0
----
-273

skipif mysql # not compatible
query I rowsort label-4096
SELECT DISTINCT + ( - COUNT ( * ) ) * 91 FROM tab1 cor0
----
-273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4097
SELECT DISTINCT + + col2 + CAST( - ( col0 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT + + col2 + CAST ( - ( col0 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4098
SELECT ALL - - CAST( NULL AS SIGNED ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT DISTINCT COUNT( * ) + - MIN( col2 ) AS col1 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-4099
SELECT DISTINCT COUNT ( * ) + - MIN ( col2 ) AS col1 FROM tab2
----
-20

query II rowsort
SELECT col2 AS col1, 4 + + col2 FROM tab0
----
10
14
47
51
99
103

query I rowsort
SELECT DISTINCT + col1 * - 85 FROM tab1
----
-1190
-3995
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT + MIN( DISTINCT - - col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4102
SELECT + MIN ( DISTINCT - - col2 ) AS col0 FROM tab0 AS cor0
----
10

query I rowsort
SELECT DISTINCT - 70 * - - col0 FROM tab1 AS cor0
----
-3570
-5950
-6370

query I rowsort
SELECT ALL - 81 + + - col0 FROM tab2 AS cor0
----
-127
-145
-156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4105
SELECT * FROM tab0 AS cor0 WHERE ( + col2 + - CAST( ( - col1 ) AS SIGNED ) / + + col1 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4105
SELECT * FROM tab0 AS cor0 WHERE ( + col2 + - CAST ( ( - col1 ) AS INTEGER ) / + + col1 ) IS NULL
----

query I rowsort
SELECT ALL + - 97 FROM tab1 AS cor0 WHERE NULL > 18
----

query II rowsort
SELECT - col1 * - col1 * col1 + - col1, + 8 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
8
531360
8
9240
8

query I rowsort
SELECT DISTINCT - col0 * - col1 + col2 AS col1 FROM tab1 AS cor0
----
4345
484
810

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT DISTINCT MIN( ALL - 81 ) + - MAX( + 23 ) col1 FROM tab2
----
-104

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4109
SELECT DISTINCT MIN ( ALL - 81 ) + - MAX ( + 23 ) col1 FROM tab2
----
-104

query III rowsort
SELECT * FROM tab0 WHERE - col2 - + - col0 <> NULL
----

query I rowsort
SELECT 97 + + + col2 FROM tab0
----
107
144
196

query I rowsort
SELECT DISTINCT + - col1 + ( - col1 ) FROM tab1 WHERE NULL NOT BETWEEN - + 98 AND NULL
----

query I rowsort
SELECT + 49 + - col2 + + + col0 FROM tab0
----
126
17
47

query I rowsort
SELECT - col2 + + col1 + - + col1 AS col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT col1 + col2 + - + 48 FROM tab1
----
16
62
67

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT + col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 77 AS col2 FROM tab2 cor0
----
-77

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 29 / 80 * 14 * + col2 = + 6 - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT COUNT( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4119
SELECT COUNT ( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4120
SELECT + CAST( NULL AS SIGNED ) * + ( + - col1 ) + - + 13 + + col2 / - + 20 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4120
SELECT + CAST ( NULL AS INTEGER ) * + ( + - col1 ) + - + 13 + + col2 / - + 20 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 82 AS col2 FROM tab0 AS cor0
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT - + MIN( ALL - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4122
SELECT - + MIN ( ALL - col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4123
SELECT * FROM tab0 WHERE NOT ( + CAST( NULL AS SIGNED ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4123
SELECT * FROM tab0 WHERE NOT ( + CAST ( NULL AS INTEGER ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 29 + - - col2 FROM tab1
----
30
39
67

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= - + ( - col1 ) + + 34 / + 90
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4126
SELECT ALL + 45 AS col0, 92 - - SUM( col2 ) FROM tab1
----
45
315

skipif mysql # not compatible
query II rowsort label-4126
SELECT ALL + 45 AS col0, 92 - - SUM ( col2 ) FROM tab1
----
45
315

query II rowsort
SELECT ALL + col0, col1 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT 40 FROM tab0, tab0 AS cor0 WHERE NOT + 89 IS NULL
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 88 * - + col0 - - col0 / - 79 IS NOT NULL
----

query II rowsort
SELECT ALL 75 * + 52 * + col2 AS col0, - col0 + - col2 AS col2 FROM tab2
----
156000
-104
226200
-133
89700
-69

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 6 ) + + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( 30 ) * - col1 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL col1 / + col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( - col1 + 53 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4134
SELECT * FROM tab1 WHERE col1 IN ( CAST( + 77 AS SIGNED ) * - 48 )
----

skipif mysql # not compatible
query III rowsort label-4134
SELECT * FROM tab1 WHERE col1 IN ( CAST ( + 77 AS INTEGER ) * - 48 )
----

query I rowsort
SELECT ALL + col2 * + col1 + - col1 AS col1 FROM tab0
----
189
3726
98

query I rowsort
SELECT ALL + col1 - + col0 AS col0 FROM tab2
----
-8
13
5

query I rowsort
SELECT 70 * - 86 FROM tab0
----
-6020
-6020
-6020

onlyif mysql # DIV for integer division: 
query I rowsort label-4138
SELECT ALL 63 DIV - 43 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL 63 / - 43 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT - col0 * col2 + col2 AS col1 FROM tab1
----
-4800
-4956
-6120

onlyif mysql # DIV for integer division: 
query I rowsort label-4140
SELECT ALL 59 DIV + col0 + - col2 AS col0 FROM tab0
----
-10
-44
-99

skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL 59 / + col0 + - col2 AS col0 FROM tab0
----
-10
-44
-99

query I rowsort
SELECT - 71 AS col0 FROM tab2 WHERE NOT + col0 IS NULL
----
-71
-71
-71

query I rowsort
SELECT ALL ( + 20 ) + - col1 AS col2 FROM tab0
----
-1
-61
19

query I rowsort
SELECT 57 * col0 AS col1 FROM tab0 WHERE NOT - 96 + 62 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 21 > + col2 + + 14
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 53 AS col2 FROM tab2 WHERE 42 IS NOT NULL
----
-53

query I rowsort
SELECT - col2 + - 10 AS col2 FROM tab2
----
-33
-50
-68

query I rowsort
SELECT ( col0 ) * + col1 AS col0 FROM tab2 WHERE col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 + 53 col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 26 * + col1 FROM tab1
----
1222
130
364

query I rowsort
SELECT col0 + + 98 * 63 FROM tab1
----
6225
6259
6265

query I rowsort
SELECT col2 * + col0 AS col0 FROM tab2 WHERE ( - col0 ) >= ( col0 * - 61 )
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT COUNT( * ) + - COUNT( * ) AS col1 FROM tab1 WHERE ( NULL ) >= col1
----
0

skipif mysql # not compatible
query I rowsort label-4153
SELECT COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 WHERE ( NULL ) >= col1
----
0

query I rowsort
SELECT ALL + 92 * - 95 AS col2 FROM tab2
----
-8740
-8740
-8740

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT ALL COUNT( * ) * 17 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4155
SELECT ALL COUNT ( * ) * 17 FROM tab1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4156
SELECT ALL + ( + col0 ) DIV col2 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL + ( + col0 ) / col2 AS col0 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4157
SELECT ALL 78 / - col0 FROM tab1 WHERE NOT ( - col1 + CAST( NULL AS SIGNED ) ) NOT BETWEEN - ( col0 ) / - 14 + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL 78 / - col0 FROM tab1 WHERE NOT ( - col1 + CAST ( NULL AS INTEGER ) ) NOT BETWEEN - ( col0 ) / - 14 + col1 AND NULL
----

query I rowsort
SELECT ALL + col0 * - 64 AS col0 FROM tab1
----
-3264
-5440
-5824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4159
SELECT col2 - - col1 * CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4159
SELECT col2 - - col1 * CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - 78 FROM tab0
----
-63
19
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4161
SELECT 78 DIV 59 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4161
SELECT 78 / 59 FROM tab1
----
1
1
1

query I rowsort
SELECT col2 - 45 FROM tab1
----
14
23
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4163
SELECT ALL - 21 DIV + col1 + - col2 DIV + 86 AS col0 FROM tab1
----
-2
-4
0

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL - 21 / + col1 + - col2 / + 86 AS col0 FROM tab1
----
-2
-4
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4164
SELECT ( col2 ) DIV + 55 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4164
SELECT ( col2 ) / + 55 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL - 57 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col0 * col2 - col0 * + col1 FROM tab1
----
1911
4182
4590

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * 35 IS NULL
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE col2 / + col1 + + col2 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT - COUNT( col1 ) * - 48 FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-4169
SELECT - COUNT ( col1 ) * - 48 FROM tab0 AS cor0
----
144

query I rowsort
SELECT - 18 * col0 AS col2 FROM tab0 AS cor0
----
-1566
-1746
-270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4171
SELECT + ( + COUNT( DISTINCT col0 ) ) DIV 83 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4171
SELECT + ( + COUNT ( DISTINCT col0 ) ) / 83 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col2 * + 95 FROM tab1 AS cor0
----
-5605
-6460
-9120

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT DISTINCT MIN( DISTINCT + 85 ) AS col0 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-4173
SELECT DISTINCT MIN ( DISTINCT + 85 ) AS col0 FROM tab0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4174
SELECT * FROM tab2 WHERE NOT - col2 BETWEEN NULL AND ( 30 - - 29 * CAST( + col0 + - 30 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4174
SELECT * FROM tab2 WHERE NOT - col2 BETWEEN NULL AND ( 30 - - 29 * CAST ( + col0 + - 30 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT ALL 65 * COUNT( * ) AS col1 FROM tab2 cor0 WHERE + 54 = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4175
SELECT ALL 65 * COUNT ( * ) AS col1 FROM tab2 cor0 WHERE + 54 = ( NULL )
----
0

query I rowsort
SELECT + + 1 FROM tab1 cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( - col1 ) >= ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * + col1 + - col2 >= ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( col0 ) >= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 + col2 FROM tab0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT col2 FROM tab0 WHERE NOT - col1 + 81 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL col1 + + 62 AS col2 FROM tab0
----
143
63
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 * 72 col0 FROM tab1
----
-5544

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= 66 / + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4185
SELECT - ( - COUNT( * ) ) DIV 4 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4185
SELECT - ( - COUNT ( * ) ) / 4 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT - MAX( DISTINCT + ( 72 ) ) col1 FROM tab1
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4186
SELECT - MAX ( DISTINCT + ( 72 ) ) col1 FROM tab1
----
-72

query I rowsort
SELECT - col0 FROM tab1 WHERE + 38 + ( 2 ) NOT IN ( 48 )
----
-51
-85
-91

query I rowsort
SELECT + col0 + + col0 - col2 FROM tab0
----
-17
164
95

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 / + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4190
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE ( col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4190
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE ( col2 ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 75 + col1 col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 98 * + col0 + col0 * - 26 FROM tab2 AS cor0
----
-5704
-7936
-9300

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT + - 7 + + - COUNT( * ) - 15 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-4193
SELECT + - 7 + + - COUNT ( * ) - 15 FROM tab0 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT DISTINCT MAX( + 26 ) FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT MAX ( + 26 ) FROM tab1 AS cor0
----
26

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 ) BETWEEN col1 + - col1 AND col0 * ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 83 AS col1, - col2 - - col0 FROM tab2
----
-83
17
-83
23
-83
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT DISTINCT + COUNT( - + 63 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4198
SELECT DISTINCT + COUNT ( - + 63 ) col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT DISTINCT SUM( 35 ) AS col0 FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-4200
SELECT DISTINCT SUM ( 35 ) AS col0 FROM tab1
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4201
SELECT DISTINCT COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 62 - + - 38 BETWEEN ( col2 * + col0 ) AND 46
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4203
SELECT + col1 * + 93 - + col0 DIV - 71 FROM tab1 AS cor0
----
1302
4372
466

skipif mysql # not compatible
query I rowsort label-4203
SELECT + col1 * + 93 - + col0 / - 71 FROM tab1 AS cor0
----
1302
4372
466

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > - 93 + + col1 * col1
----

query I rowsort
SELECT DISTINCT + - 59 AS col1 FROM tab2 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT ALL + COUNT( - 55 ) col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4206
SELECT ALL + COUNT ( - 55 ) col1 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT + 35 - COUNT( * ) AS col0 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-4207
SELECT + 35 - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
32

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 22 = + - col1
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4209
SELECT - 60 * + col1 + + col2 FROM tab1 AS cor0 WHERE ( + col1 + + CAST( 80 AS SIGNED ) ) BETWEEN - col1 AND ( + col2 * - CAST( col0 * + 19 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-4209
SELECT - 60 * + col1 + + col2 FROM tab1 AS cor0 WHERE ( + col1 + + CAST ( 80 AS INTEGER ) ) BETWEEN - col1 AND ( + col2 * - CAST ( col0 * + 19 AS REAL ) )
----

query I rowsort
SELECT + col1 + + + ( col2 ) + col2 * - col1 FROM tab1 AS cor0
----
-1234
-231
-3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) + + col1 col1 FROM tab1
----
-37
-44
-80

query III rowsort
SELECT * FROM tab0 WHERE ( 75 ) NOT BETWEEN ( NULL ) AND ( + col0 )
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4213
SELECT ALL - 43 + + + 84 * - - CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL - 43 + + + 84 * - - CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 - - 23 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4215
SELECT ALL SUM( ALL 53 ) DIV COUNT( * ) AS col2 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL SUM ( ALL 53 ) / COUNT ( * ) AS col2 FROM tab1
----
53

query II rowsort
SELECT + ( + col0 ) AS col2, - 60 FROM tab1
----
51
-60
85
-60
91
-60

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( col2 ) NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4218
SELECT DISTINCT + ( 73 ), + 25 * - COUNT( * ) AS col0 FROM tab0
----
73
-75

skipif mysql # not compatible
query II rowsort label-4218
SELECT DISTINCT + ( 73 ), + 25 * - COUNT ( * ) AS col0 FROM tab0
----
73
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4219
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( CAST( NULL AS SIGNED ) + + col2 - 12 + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4219
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) + + col2 - 12 + col2 ) IS NOT NULL
----

query I rowsort
SELECT 35 AS col0 FROM tab0 cor0
----
35
35
35

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 12 BETWEEN - - col2 / 30 AND 42
----

query II rowsort
SELECT ALL - col0 * + col0 AS col0, + 31 * - 51 FROM tab0 AS cor0
----
-225
-1581
-7569
-1581
-9409
-1581

query I rowsort
SELECT col1 * + 99 AS col1 FROM tab2
----
5049
6633
7623

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 11 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT COUNT( * ) * 15 col2 FROM tab2
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4225
SELECT COUNT ( * ) * 15 col2 FROM tab2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT ALL MAX( DISTINCT + + 22 ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL MAX ( DISTINCT + + 22 ) FROM tab1
----
22

query I rowsort
SELECT - 67 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT ALL - ( - - COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL - ( - - COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL ( + 19 ) FROM tab2 AS cor0
----
19
19
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4230
SELECT DISTINCT 35 DIV + COUNT( * ) + - 45 FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-4230
SELECT DISTINCT 35 / + COUNT ( * ) + - 45 FROM tab2 AS cor0
----
-34

query I rowsort
SELECT + 42 + + + col1 FROM tab1 AS cor0
----
47
56
89

query I rowsort
SELECT + col1 + - col2 + + col1 FROM tab1 AS cor0
----
-49
-68
26

query I rowsort
SELECT ALL - col1 * - - col1 * - - 87 * - col1 + - - col2 AS col1 FROM tab2
----
11540660
26166439
39718411

query II rowsort
SELECT ALL - 19 AS col2, + col1 FROM tab0
----
-19
1
-19
21
-19
81

query III rowsort
SELECT * FROM tab0 WHERE + 77 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 79, 50 AS col0 FROM tab1
----
79
50

query II rowsort
SELECT + 82 + 95, ( + ( + col1 ) ) FROM tab0
----
177
1
177
21
177
81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 12 / + col2 IS NOT NULL
----

query I rowsort
SELECT + ( col1 ) + + - col0 FROM tab1
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT DISTINCT + ( - + COUNT( * ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4240
SELECT DISTINCT + ( - + COUNT ( * ) ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT + col1 FROM tab1 WHERE ( ( col1 ) BETWEEN NULL AND NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col0 * - ( + col2 ) ) < NULL
----

query II rowsort
SELECT DISTINCT 86 AS col2, - 88 AS col2 FROM tab2
----
86
-88

query III rowsort
SELECT * FROM tab1 WHERE ( + - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT + MAX( - + col2 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-4245
SELECT + MAX ( - + col2 ) AS col1 FROM tab2
----
-23

query II rowsort
SELECT DISTINCT + 11 AS col2, - col1 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4247
SELECT + 52, COUNT( * ) - + - 90 AS col2 FROM tab2 AS cor0
----
52
93

skipif mysql # not compatible
query II rowsort label-4247
SELECT + 52, COUNT ( * ) - + - 90 AS col2 FROM tab2 AS cor0
----
52
93

query I rowsort
SELECT DISTINCT 92 * + col2 FROM tab1 AS cor0
----
5428
6256
8832

query I rowsort
SELECT ALL + - col2 + + + 97 AS col0 FROM tab0 AS cor0
----
-2
50
87

query I rowsort
SELECT - - 97 * - - 12 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ea8fdc0eae852f43b9a1bf5f251e429d

query I rowsort
SELECT DISTINCT - col1 * 96 + - col1 AS col0 FROM tab2
----
-4947
-6499
-7469

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT ALL + COUNT( ALL - 98 ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL + COUNT ( ALL - 98 ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT + ( - COUNT( * ) ) FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-4253
SELECT + ( - COUNT ( * ) ) FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT DISTINCT - + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT - + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT DISTINCT SUM( DISTINCT - col2 ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2, - 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT SUM ( DISTINCT - col2 ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2, - 1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4256
SELECT * FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) * - col1 = + + col2 + - col2 - - col0 * - - col1
----

skipif mysql # not compatible
query III rowsort label-4256
SELECT * FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) * - col1 = + + col2 + - col2 - - col0 * - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT + COUNT( ALL + col1 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4257
SELECT + COUNT ( ALL + col1 ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT + + COUNT( * ) * 49 AS col1 FROM tab0 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-4258
SELECT + + COUNT ( * ) * 49 AS col1 FROM tab0 AS cor0
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-4259
SELECT + col1 DIV - - col1 col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4259
SELECT + col1 / - - col1 col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT - + ( + 7 ) * 86 + + - ( MIN( ALL + 66 ) ) FROM tab0 cor0
----
-668

skipif mysql # not compatible
query I rowsort label-4260
SELECT - + ( + 7 ) * 86 + + - ( MIN ( ALL + 66 ) ) FROM tab0 cor0
----
-668

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NOT + ( - + col2 ) IN ( - - 45 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NOT + ( - + col2 ) IN ( - - 45 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT ALL + + MIN( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL + + MIN ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL - 85 * - col0 FROM tab2 AS cor0
----
3910
5440
6375

query I rowsort
SELECT + col0 * + col0 * - col2 FROM tab1
----
-249696
-426275
-563108

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT DISTINCT - COUNT( * ) * 42 FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-4265
SELECT DISTINCT - COUNT ( * ) * 42 FROM tab1
----
-126

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 IN ( 29 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col0 ) col1 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT + COUNT( * ) * + COUNT( * ) AS col2 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4268
SELECT + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2 cor0
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4269
SELECT - + col2 * + - ( + col2 ) + - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= + CAST( NULL AS DECIMAL ) / col2
----

skipif mysql # not compatible
query I rowsort label-4269
SELECT - + col2 * + - ( + col2 ) + - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= + CAST ( NULL AS REAL ) / col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4270
SELECT DISTINCT col2 col2 FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) + + col0 <= col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4270
SELECT DISTINCT col2 col2 FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + col0 <= col0
----

query II rowsort
SELECT ALL + col1 AS col2, + col0 * + + col1 + col0 AS col0 FROM tab0 AS cor0
----
1
194
21
1914
81
1230

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4272
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 1 < - 34 / CAST( + + col2 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4272
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 1 < - 34 / CAST ( + + col2 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT - SUM( DISTINCT + col1 ) / 40 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 * - col0 AND ( col2 * 5 + + - 73 + - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4273
SELECT - SUM ( DISTINCT + col1 ) / 40 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 * - col0 AND ( col2 * 5 + + - 73 + - col2 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4274
SELECT ALL - 20 * - COUNT( * ) DIV + 99 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL - 20 * - COUNT ( * ) / + 99 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col1 + col2 * + 47 AS col0 FROM tab0 AS cor0 WHERE 64 * col1 + + col2 + + - 16 / col2 + - - 67 NOT BETWEEN ( 34 + - col0 + col2 ) AND - 87 * - col0
----
2290

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 / + 26 + - 13 <> + col2 + + col1 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 * + + col1 * col1 FROM tab0 AS cor0
----
-38367
-97
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT + COUNT( DISTINCT - - 58 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4278
SELECT + COUNT ( DISTINCT - - 58 ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT ALL - 11 + - COUNT( ALL - - ( ( - 42 ) ) ) AS col1 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL - 11 + - COUNT ( ALL - - ( ( - 42 ) ) ) AS col1 FROM tab2 AS cor0
----
-14

query I rowsort
SELECT + col2 * + + 17 AS col1 FROM tab0 cor0
----
1683
170
799

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 BETWEEN NULL AND col0 + - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( + col2, col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 67 + + col1 - + + col2 BETWEEN + col1 + - - col2 + + col2 AND col1 * col1
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT ALL + 3 + - COUNT( * ) AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL + 3 + - COUNT ( * ) AS col0 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL col0 * 46 AS col2 FROM tab0
----
4002
4462
690

query I rowsort
SELECT 88 + + col0 AS col2 FROM tab1
----
139
173
179

query I rowsort
SELECT DISTINCT ( + ( - - 9 ) ) * - ( - col0 ) + + col1 + + 39 AS col1 FROM tab1
----
512
809
905

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 18 col0 FROM tab2
----
-1206
-1386
-918

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4290
SELECT COUNT( * ) + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4290
SELECT COUNT ( * ) + CAST ( NULL AS REAL ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + ( - + 19 ) - - col1 col0 FROM tab2
----
122
123
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 + - col2 * + col0 + + + 32 col1 FROM tab1 AS cor0
----
-4794
-4913
-6086

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT DISTINCT SUM( - 86 ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-774

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4294
SELECT DISTINCT SUM ( - 86 ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-774

query II rowsort
SELECT - 54 AS col2, col1 AS col0 FROM tab2
----
-54
51
-54
67
-54
77

query II rowsort
SELECT ALL - col1 - + + col2, - col0 AS col0 FROM tab2
----
-117
-64
-125
-75
-74
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-4297
SELECT ALL col2 * - ( + + col0 ) - 14 DIV + - col2 AS col1 FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL col2 * - ( + + col0 ) - 14 / + - col2 AS col1 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT + 11 + - 47 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4299
SELECT - CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4299
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, col2 * - 67 + 64 + + 0 + + col1 * col1 AS col1 FROM tab2 AS cor0
----
51
1124
67
667
77
3313

query I rowsort
SELECT ALL + - 2 FROM tab0 cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT DISTINCT SUM( - 35 ) AS col1 FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT SUM ( - 35 ) AS col1 FROM tab1 AS cor0
----
-105

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 80 IN ( + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4304
SELECT + + COUNT( * ) DIV + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4304
SELECT + + COUNT ( * ) / + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - - 13 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT + MIN( ALL - 60 ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-4306
SELECT + MIN ( ALL - 60 ) FROM tab1
----
-60

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT NULL IN ( - 22 + + 80 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4308
SELECT ALL + 66 * CAST( NULL AS SIGNED ) col0, - 65 AS col2 FROM tab1
----
NULL
-65
NULL
-65
NULL
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4308
SELECT ALL + 66 * CAST ( NULL AS INTEGER ) col0, - 65 AS col2 FROM tab1
----
NULL
-65
NULL
-65
NULL
-65

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT DISTINCT + COUNT( + col0 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4310
SELECT DISTINCT + COUNT ( + col0 ) col1 FROM tab1 AS cor0
----
3

query II rowsort
SELECT - + ( + - 19 ) AS col0, col0 + - col0 AS col0 FROM tab2 cor0
----
19
0
19
0
19
0

query I rowsort
SELECT DISTINCT - + 8 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-4313
SELECT - COUNT( + - col2 ) * - - 78 AS col2, 94 FROM tab2
----
-234
94

skipif mysql # not compatible
query II rowsort label-4313
SELECT - COUNT ( + - col2 ) * - - 78 AS col2, 94 FROM tab2
----
-234
94

query I rowsort
SELECT DISTINCT 23 * col2 AS col2 FROM tab2
----
1334
529
920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4315
SELECT - + CAST( NULL AS SIGNED ) + + - 84 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4315
SELECT - + CAST ( NULL AS INTEGER ) + + - 84 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col0 * + 31 + + 27 AS col0 FROM tab2 AS cor0
----
-1399
-1957
-2298

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT + 48 * - 9 < ( + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT ALL - SUM( - + col2 ) * 49 FROM tab1 AS cor0
----
10927

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL - SUM ( - + col2 ) * 49 FROM tab1 AS cor0
----
10927

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4319
SELECT COUNT( * ) DIV 47 * 55 AS col1 FROM tab2 AS cor0 WHERE - col1 * - col2 NOT IN ( + 36 )
----
0

skipif mysql # not compatible
query I rowsort label-4319
SELECT COUNT ( * ) / 47 * 55 AS col1 FROM tab2 AS cor0 WHERE - col1 * - col2 NOT IN ( + 36 )
----
0

query I rowsort
SELECT - + AVG ( DISTINCT + + col1 ) FROM tab2 AS cor0 WHERE 41 IS NULL
----
NULL

query I rowsort
SELECT + - col1 + - 31 * + ( col0 ) FROM tab2 AS cor0
----
-1477
-2061
-2392

query I rowsort
SELECT ALL + 64 * - 45 + col1 AS col0 FROM tab0
----
-2799
-2859
-2879

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT ALL ( - COUNT( * ) ) * COUNT( * ) FROM tab1 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL ( - COUNT ( * ) ) * COUNT ( * ) FROM tab1 WHERE NULL >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT ALL COUNT( ALL col1 ) * + - 56 FROM tab2
----
-168

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL COUNT ( ALL col1 ) * + - 56 FROM tab2
----
-168

query I rowsort
SELECT ALL 53 - + 4 + + 29 AS col0 FROM tab2
----
78
78
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4326
SELECT ALL - COUNT( - col2 ) DIV + - COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL - COUNT ( - col2 ) / + - COUNT ( * ) FROM tab1
----
1

query I rowsort
SELECT col2 * + 62 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3658
4216
5952

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IN ( - ( - col0 ) * + - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4329
SELECT DISTINCT + 21 + - + CAST( MAX( DISTINCT - col1 ) AS SIGNED ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4329
SELECT DISTINCT + 21 + - + CAST ( MAX ( DISTINCT - col1 ) AS INTEGER ) FROM tab2 AS cor0
----
72

query I rowsort
SELECT ALL - col0 + - + col1 FROM tab2
----
-141
-142
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4331
SELECT DISTINCT + COUNT( * ) DIV - - ( + SUM( ALL + - 46 ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT + COUNT ( * ) / - - ( + SUM ( ALL + - 46 ) ) FROM tab2
----
0

query I rowsort
SELECT + - ( 43 ) * + col2 AS col2 FROM tab2 AS cor0
----
-1720
-2494
-989

query I rowsort
SELECT - + ( + 78 ) AS col0 FROM tab2 AS cor0
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-4334
SELECT - COUNT( * ) AS col1, COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-4334
SELECT - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4335
SELECT - - col1 DIV - + col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4335
SELECT - - col1 / - + col0 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4336
SELECT - COUNT( * ) * + COUNT( * ) DIV + 32 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4336
SELECT - COUNT ( * ) * + COUNT ( * ) / + 32 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4337
SELECT DISTINCT COUNT( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT COUNT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL 47 * - col0 AS col1 FROM tab0
----
-4089
-4559
-705

query I rowsort
SELECT 89 * + col0 FROM tab1
----
4539
7565
8099

query II rowsort
SELECT ALL + col0, col1 AS col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4341
SELECT DISTINCT + - col2 + - col2 - - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT + - col2 + - col2 - - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 30 col2 FROM tab1 cor0
----
-30
-30
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-4343
SELECT + 5 DIV + col0 + + ( + + col0 ) AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4343
SELECT + 5 / + col0 + + ( + + col0 ) AS col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT ALL COUNT( - + 52 ) + - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL COUNT ( - + 52 ) + - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT - - 98 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-4346
SELECT - - 98 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-4347
SELECT - 53 DIV 63 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4347
SELECT - 53 / 63 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT DISTINCT - ( - - COUNT( * ) ) FROM tab1 WHERE NOT - col1 + - 45 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4348
SELECT DISTINCT - ( - - COUNT ( * ) ) FROM tab1 WHERE NOT - col1 + - 45 IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4349
SELECT - 19 DIV - 67 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4349
SELECT - 19 / - 67 AS col1 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4350
SELECT * FROM tab2 AS cor0 WHERE - CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4350
SELECT * FROM tab2 AS cor0 WHERE - CAST ( col1 AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 53 col1 FROM tab0 AS cor0
----
53
53
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4352
SELECT ALL COUNT( * ) + + COUNT( * ) DIV + ( + 79 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL COUNT ( * ) + + COUNT ( * ) / + ( + 79 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col2 * - col1 * 60 FROM tab1 AS cor0
----
17700
191760
80640

query I rowsort
SELECT ALL 53 * col2 + - - 6 + col0 * - - 84 * col1 FROM tab1 AS cor0
----
362878
38833
65070

query I rowsort
SELECT DISTINCT + col0 + 46 * + col2 FROM tab0 AS cor0
----
2177
4651
547

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4356
SELECT 5 - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4356
SELECT 5 - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 52 IS NULL AND NOT 84 * + + 89 * + - 4 > 6
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL AND col1 NOT BETWEEN - col2 AND - col0
----
23
40
58

query I rowsort
SELECT DISTINCT col1 + + 50 FROM tab1
----
55
64
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4360
SELECT + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE + + col1 BETWEEN NULL AND + + 81 * 80
----

skipif mysql # not compatible
query I rowsort label-4360
SELECT + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE + + col1 BETWEEN NULL AND + + 81 * 80
----

query I rowsort
SELECT ALL + 72 - col0 - - 49 + - col2 * - - col0 AS col1 FROM tab2
----
-2503
-4304
-983

query I rowsort
SELECT - 32 FROM tab2 WHERE col2 IS NOT NULL
----
-32
-32
-32

query II rowsort
SELECT DISTINCT 90, col0 AS col0 FROM tab1
----
90
51
90
85
90
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + - ( + col2 ) col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT DISTINCT COUNT( + 24 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4365
SELECT DISTINCT COUNT ( + 24 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT 71 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT ALL + COUNT( * ) AS col0 FROM tab2 WHERE NOT - col0 * col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col0 * col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT ALL COUNT( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL COUNT ( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4369
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN CAST( - 70 AS SIGNED ) AND + col1 * + col1 * + CAST( NULL AS SIGNED ) + - 59
----
0

skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN CAST ( - 70 AS INTEGER ) AND + col1 * + col1 * + CAST ( NULL AS INTEGER ) + - 59
----
0

query I rowsort
SELECT DISTINCT - 39 - + + col1 AS col0 FROM tab0 WHERE NOT + col0 NOT BETWEEN + ( + 14 ) AND col2
----
-120
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT 61 * ( + - COUNT( * ) ) AS col0 FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-4371
SELECT 61 * ( + - COUNT ( * ) ) AS col0 FROM tab1
----
-183

query I rowsort
SELECT ( + - col2 ) * + 64 + + col0 AS col2 FROM tab1
----
-3691
-4261
-6093

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - - col2, col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= col2
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE NULL > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < + 30
----

query I rowsort
SELECT 96 + - col0 FROM tab0
----
-1
81
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT DISTINCT - - MIN( - col1 ) + + - COUNT( * ) col0 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4378
SELECT DISTINCT - - MIN ( - col1 ) + + - COUNT ( * ) col0 FROM tab0 AS cor0
----
-84

query II rowsort
SELECT ALL - col0 AS col2, col2 AS col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4380
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + - col2 BETWEEN - + col1 * + col0 + - col2 - + col2 AND - col2 * - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4380
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + - col2 BETWEEN - + col1 * + col0 + - col2 - + col2 AND - col2 * - CAST ( NULL AS REAL )
----

query I rowsort
SELECT - 29 + + + 18 * + 45 * - 77 FROM tab0 AS cor0
----
-62399
-62399
-62399

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 + - col0 <> + - 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4383
SELECT ALL - + col2 - col2 + + CAST( NULL AS SIGNED ) + col1 / - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL - + col2 - col2 + + CAST ( NULL AS INTEGER ) + col1 / - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4384
SELECT ALL * FROM tab1 AS cor0 WHERE col0 BETWEEN - + 30 * col2 + - col1 + - col0 + + - CAST( - 1 AS SIGNED ) AND - - col2
----
51
14
96

skipif mysql # not compatible
query III rowsort label-4384
SELECT ALL * FROM tab1 AS cor0 WHERE col0 BETWEEN - + 30 * col2 + - col1 + - col0 + + - CAST ( - 1 AS INTEGER ) AND - - col2
----
51
14
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4385
SELECT + COUNT( * ) DIV - COUNT( * ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4385
SELECT + COUNT ( * ) / - COUNT ( * ) FROM tab0 cor0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4386
SELECT + 93, 48 + 47 + MAX( DISTINCT - 74 ) AS col2 FROM tab1 AS cor0
----
93
21

skipif mysql # not compatible
query II rowsort label-4386
SELECT + 93, 48 + 47 + MAX ( DISTINCT - 74 ) AS col2 FROM tab1 AS cor0
----
93
21

query II rowsort
SELECT ALL 48 + + 66, + 65 AS col1 FROM tab0
----
114
65
114
65
114
65

query III rowsort
SELECT ALL * FROM tab2 WHERE 9 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IS NULL AND NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4390
SELECT - col1 - + + CAST( NULL AS SIGNED ) / 80 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4390
SELECT - col1 - + + CAST ( NULL AS INTEGER ) / 80 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT DISTINCT 49 - + COUNT( ALL - col0 ) FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-4391
SELECT DISTINCT 49 - + COUNT ( ALL - col0 ) FROM tab0
----
46

query I rowsort
SELECT - + col2 * - + col0 * + ( - col0 ) FROM tab2 AS cor0
----
-163840
-326250
-48668

query I rowsort
SELECT DISTINCT 88 * + + 79 AS col1 FROM tab2 AS cor0
----
6952

query I rowsort
SELECT + col0 * + + col0 AS col1 FROM tab1
----
2601
7225
8281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4395
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT - ( + + COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4396
SELECT - ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + 81 * + 33 AS col1 FROM tab2 AS cor0
----
2673
2673
2673

query I rowsort
SELECT ALL col0 * - 78 AS col1 FROM tab2 AS cor0
----
-3588
-4992
-5850

query I rowsort
SELECT ALL + 18 + + 63 FROM tab0 cor0 WHERE NOT col2 * + 58 IS NULL
----
81
81
81

query I rowsort
SELECT DISTINCT + - col1 * 46 FROM tab1 AS cor0
----
-2162
-230
-644

query II rowsort
SELECT + + ( 58 ) * - col2, + col1 AS col2 FROM tab0 AS cor0
----
-2726
81
-5742
1
-580
21

query III rowsort
SELECT ALL * FROM tab2 WHERE + 21 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE - + 68 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT - SUM( ALL - - col1 ) AS col0 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-4404
SELECT - SUM ( ALL - - col1 ) AS col0 FROM tab0
----
-103

query I rowsort
SELECT DISTINCT ( - + col0 ) FROM tab2
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( NULL ) = NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4407
SELECT ALL + MAX( col2 ) AS col2, + AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
99
NULL

skipif mysql # not compatible
query II rowsort label-4407
SELECT ALL + MAX ( col2 ) AS col2, + AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
99
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 4 * - 74, - col0 col0 FROM tab1
----
-296
-51
-296
-85
-296
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4409
SELECT - + 31 + col1 * col1 / CAST( NULL AS SIGNED ) + + 29 / + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4409
SELECT - + 31 + col1 * col1 / CAST ( NULL AS INTEGER ) + + 29 / + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4410
SELECT + CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab2 AS cor0 WHERE col1 * + 38 + + + 12 * col0 > - - ( - col0 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4410
SELECT + CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab2 AS cor0 WHERE col1 * + 38 + + + 12 * col0 > - - ( - col0 )
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 ) + + col2 col2 FROM tab1 AS cor0
----
-23
-26
45

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 97 <> NULL
----

query I rowsort
SELECT DISTINCT - ( 20 ) FROM tab1 AS cor0
----
-20

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE - col0 * + 28 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4416
SELECT ALL - CAST( NULL AS SIGNED ) + + 23 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL - CAST ( NULL AS INTEGER ) + + 23 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col0, col2 * - col2 * - 76 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND 73
----

query I rowsort
SELECT - col0 + + 50 AS col0 FROM tab2
----
-14
-25
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT DISTINCT + COUNT( * ) + 90 AS col1 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-4419
SELECT DISTINCT + COUNT ( * ) + 90 AS col1 FROM tab1
----
93

query I rowsort
SELECT DISTINCT - col2 * - - col0 - ( + col0 ) - - - 97 AS col1 FROM tab0
----
-1054
-817
-9797

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT + SUM( + 61 ) * + + 42 + + 73 AS col0 FROM tab2
----
7759

skipif mysql # not compatible
query I rowsort label-4421
SELECT + SUM ( + 61 ) * + + 42 + + 73 AS col0 FROM tab2
----
7759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4422
SELECT col0 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4422
SELECT col0 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4423
SELECT - CAST( + + col0 AS SIGNED ) AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4423
SELECT - CAST ( + + col0 AS INTEGER ) AS col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL - + 3 * - col0 AS col0 FROM tab2 AS cor0
----
138
192
225

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 > + + col1 * + + col2 + 30 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col2 AS col1, - col2 * - - col2 FROM tab1 AS cor0
----
-59
-3481
-68
-4624
-96
-9216

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4427
SELECT DISTINCT 36 col1, CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
36
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4427
SELECT DISTINCT 36 col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
36
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4428
SELECT ALL col0, 40 * - CAST( col0 AS SIGNED ) AS col0, - 18 - col1 AS col2 FROM tab0 AS cor0
----
9 values hashing to 2e8f0d8cfbcb5b2ca520339e460eca52

skipif mysql # not compatible
query III rowsort label-4428
SELECT ALL col0, 40 * - CAST ( col0 AS INTEGER ) AS col0, - 18 - col1 AS col2 FROM tab0 AS cor0
----
9 values hashing to 2e8f0d8cfbcb5b2ca520339e460eca52

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT ALL MAX( + col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL MAX ( + col1 ) AS col2 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT COUNT( DISTINCT - col2 ) * - - MIN( - + 86 ) AS col1 FROM tab1
----
-258

skipif mysql # not compatible
query I rowsort label-4430
SELECT COUNT ( DISTINCT - col2 ) * - - MIN ( - + 86 ) AS col1 FROM tab1
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT DISTINCT - + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4431
SELECT DISTINCT - + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4432
SELECT ALL COUNT( * ) DIV - COUNT( * ) FROM tab1, tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL COUNT ( * ) / - COUNT ( * ) FROM tab1, tab2 AS cor0
----
-1

query I rowsort
SELECT ALL - 96 + 63 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT ALL - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4434
SELECT ALL - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT - col0 * - col0 * + col1 AS col0 FROM tab0 AS cor0
----
158949
18225
9409

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 55 * - col1 FROM tab0 cor0
----
1155
4455
55

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 67 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col2 + + col2 * + col0 AS col2 FROM tab1 AS cor0
----
4992
5074
6256

query I rowsort
SELECT + col2 * - - 6 * - + col0 + + 35 + + col1 AS col0 FROM tab0 cor0
----
-4114
-5164
-57582

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 10 + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col2 + - 5 IS NULL
----

query I rowsort
SELECT ALL + 77 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 * - 32 col2 FROM tab2
----
2048
2048
2048

query I rowsort
SELECT ALL - col0 * - 32 FROM tab0
----
2784
3104
480

query I rowsort
SELECT + 83 * - col1 AS col1 FROM tab2
----
-4233
-5561
-6391

query II rowsort
SELECT - col2, + col2 FROM tab1
----
-59
59
-68
68
-96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 3 col2, col0 * + 91 FROM tab1
----
3
4641
3
7735
3
8281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4449
SELECT ALL COUNT( * ) DIV + + MAX( + + 71 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL COUNT ( * ) / + + MAX ( + + 71 ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT ALL - - COUNT( * ) - + + 45 AS col2 FROM tab2 WHERE col2 * - 4 + - col1 >= + + 1 + - - col1 * 61
----
-45

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL - - COUNT ( * ) - + + 45 AS col2 FROM tab2 WHERE col2 * - 4 + - col1 >= + + 1 + - - col1 * 61
----
-45

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 + + col0 + - col1 <= - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 + - - col0 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT DISTINCT + col0 + + 24 FROM tab2 AS cor0
----
70
88
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT ALL + 65 * COUNT( DISTINCT 93 ) AS col0 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL + 65 * COUNT ( DISTINCT 93 ) AS col0 FROM tab1
----
65

query I rowsort
SELECT ALL + ( col1 ) * - + 84 * - col1 + + col1 AS col2 FROM tab1
----
16478
185603
2105

query I rowsort
SELECT - - col1 + col2 + - + col0 * - col2 + - + col0 * + + col1 FROM tab1 AS cor0
----
2026
4292
4654

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT DISTINCT - MIN( DISTINCT + col1 ) + - 72 FROM tab2 AS cor0 WHERE NOT NULL >= col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4457
SELECT DISTINCT - MIN ( DISTINCT + col1 ) + - 72 FROM tab2 AS cor0 WHERE NOT NULL >= col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4458
SELECT + + col0 * - + col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4458
SELECT + + col0 * - + col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4459
SELECT - CAST( - COUNT( ALL - - 22 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4459
SELECT - CAST ( - COUNT ( ALL - - 22 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4460
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4460
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4461
SELECT ALL - COUNT( * ) DIV - 75 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL - COUNT ( * ) / - 75 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT ALL + - 89 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL + - 89 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4463
SELECT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4463
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 col1 FROM tab2, tab0 cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4465
SELECT CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4465
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 cor0
----
3

query II rowsort
SELECT DISTINCT - + col2 AS col0, col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + + col0 + - 24 AS col1 FROM tab1 cor0
----
13
20
56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4469
SELECT ALL - ( + + col1 ) * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL - ( + + col1 ) * - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE - ( + 49 ) IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4471
SELECT + 51 AS col2, COUNT( * ) col2 FROM tab1 AS cor0
----
51
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4471
SELECT + 51 AS col2, COUNT ( * ) col2 FROM tab1 AS cor0
----
51
3

query II rowsort
SELECT DISTINCT + + col1 AS col0, - 87 * - + col1 + col1 * - ( + - 16 ) * - - col1 + + col0 * col0 - - 5 AS col2 FROM tab0 AS cor0 WHERE + col2 / - col2 * col2 * - - 34 <> NULL
----

query II rowsort
SELECT + col0, + 27 + + col2 FROM tab2 cor0
----
46
50
64
67
75
85

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < - col0
----

query I rowsort
SELECT DISTINCT col1 + 2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
16
49
7

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 + col1 AS col0 FROM tab2 WHERE NOT + ( + col1 ) BETWEEN NULL AND + - col2 + - col0
----
102
134
154

query I rowsort
SELECT + ( - 23 ) + - 0 FROM tab2
----
-23
-23
-23

query I rowsort
SELECT DISTINCT 93 * - col0 FROM tab0
----
-1395
-8091
-9021

query I rowsort
SELECT DISTINCT + col2 * + 63 FROM tab0 AS cor0
----
2961
6237
630

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT ALL + COUNT( * ) + + 0 col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4481
SELECT ALL + COUNT ( * ) + + 0 col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4482
SELECT ALL - MIN( col0 ) / + 50 * + SUM( ALL CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL - MIN ( col0 ) / + 50 * + SUM ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( 21 ) * - + col0 BETWEEN NULL AND + 6
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4484
SELECT ALL + - 56, ( + col2 ) DIV - - col1 + CAST( - + col2 AS SIGNED ) + + 95 AS col0 FROM tab0 AS cor0
----
-56
48
-56
85
-56
95

skipif mysql # not compatible
query II rowsort label-4484
SELECT ALL + - 56, ( + col2 ) / - - col1 + CAST ( - + col2 AS INTEGER ) + + 95 AS col0 FROM tab0 AS cor0
----
-56
48
-56
85
-56
95

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL < - 61 * + 80 + col2 * + - 43
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 col1 FROM tab2
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT ALL + MIN( ALL - 10 ) AS col2 FROM tab1 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL + MIN ( ALL - 10 ) AS col2 FROM tab1 cor0
----
-10

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * + col1 IS NULL
----

query I rowsort
SELECT + - 6 * - - col0 AS col2 FROM tab0 AS cor0
----
-522
-582
-90

query I rowsort
SELECT ALL col2 * + + 90 FROM tab2
----
2070
3600
5220

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 3 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4492
SELECT + 81 DIV 83 + - + col2, col2 AS col2 FROM tab2 cor0
----
-23
23
-40
40
-58
58

skipif mysql # not compatible
query II rowsort label-4492
SELECT + 81 / 83 + - + col2, col2 AS col2 FROM tab2 cor0
----
-23
23
-40
40
-58
58

query I rowsort
SELECT DISTINCT col1 - - + 2 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
23
3
83

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT 84 * - - 72 NOT BETWEEN - + 35 * - + col2 + - - col2 AND - col0 AND - col0 = 49 / + 31
----

query I rowsort
SELECT - 0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT + 91 * + - ( 92 ) * + col2 * + + col2 + - col1 * + 14 + - + col1 FROM tab0
----
-18494963
-82053987
-837515

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4498
SELECT ALL - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) + + 42 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT ALL - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) + + 42 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col0 col0 FROM tab1
----
2601
7225
8281

query III rowsort
SELECT * FROM tab0 WHERE + col0 + - 32 + - col0 IN ( col2 * + 27 + - col1 / - + col1 * + col2 - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT ALL SUM( DISTINCT + - col1 ) + + - 60 * - 47 FROM tab2
----
2625

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL SUM ( DISTINCT + - col1 ) + + - 60 * - 47 FROM tab2
----
2625

query I rowsort
SELECT ALL col0 * - + col2 AS col2 FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN + + col1 AND 78
----

query II rowsort
SELECT ALL + - col1, col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT DISTINCT COUNT( + + ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT COUNT ( + + ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + 84 - + col2 AS col2 FROM tab1 AS cor0
----
-12
16
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4507
SELECT 86 * + CAST( NULL AS SIGNED ) - - col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4507
SELECT 86 * + CAST ( NULL AS INTEGER ) - - col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4508
SELECT DISTINCT + + 89, + COUNT( * ) DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
89
1

skipif mysql # not compatible
query II rowsort label-4508
SELECT DISTINCT + + 89, + COUNT ( * ) / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
89
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4509
SELECT DISTINCT - col1 + - CAST( NULL AS SIGNED ) * - col0 col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4509
SELECT DISTINCT - col1 + - CAST ( NULL AS INTEGER ) * - col0 col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 + + + col2 FROM tab0 cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query II rowsort label-4511
SELECT ALL COUNT( * ) AS col2, 32 col2 FROM tab2 AS cor0 WHERE NULL = NULL
----
0
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4511
SELECT ALL COUNT ( * ) AS col2, 32 col2 FROM tab2 AS cor0 WHERE NULL = NULL
----
0
32

query II rowsort
SELECT 14 * + - col1 AS col2, col2 * 66 FROM tab2 AS cor0
----
-1078
2640
-714
1518
-938
3828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4513
SELECT + CAST( col1 AS SIGNED ) * + 85 FROM tab1 AS cor0
----
1190
3995
425

skipif mysql # not compatible
query I rowsort label-4513
SELECT + CAST ( col1 AS INTEGER ) * + 85 FROM tab1 AS cor0
----
1190
3995
425

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT DISTINCT 39 * - COUNT( * ) * + + 16 FROM tab2 AS cor0
----
-1872

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT 39 * - COUNT ( * ) * + + 16 FROM tab2 AS cor0
----
-1872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4516
SELECT - COUNT( * ) * - COUNT( * ) * - + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4516
SELECT - COUNT ( * ) * - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - col0 * - + 22 < 67 )
----

query I rowsort
SELECT ALL - - col1 * 50 FROM tab2 AS cor0
----
2550
3350
3850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab2 AS cor0 WHERE NOT ( - ( 59 ) / - + 79 / - col2 IS NULL )
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 >= + 33 + + col1 + 83 + ( + 11 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + 96 AS col1, + col1 FROM tab2 WHERE NOT 39 <> NULL OR 69 / - + ( - + ( + col2 ) ) IN ( - 28, - col2, - ( + 47 ) )
----

query I rowsort
SELECT ALL ( - - 23 ) * + + ( + + col1 ) * - col0 AS col0 FROM tab2
----
-113344
-115575
-53958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 col0 FROM tab2
----
-99
-99
-99

query I rowsort
SELECT + - 81 AS col2 FROM tab1 cor0
----
-81
-81
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * + - col1 + - - 90 * + - 27 + ( + 9 ) / + col1 * + - 8 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4526
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + - col2 = NULL
----

skipif mysql # not compatible
query III rowsort label-4526
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4527
SELECT - + 8 + - - 8 DIV col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-4527
SELECT - + 8 + - - 8 / col1 / + col1 AS col1 FROM tab2 AS cor0
----
-8
-8
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-4528
SELECT + - col1 + col1 DIV col2 FROM tab0 AS cor0
----
-1
-19
-80

skipif mysql # not compatible
query I rowsort label-4528
SELECT + - col1 + col1 / col2 FROM tab0 AS cor0
----
-1
-19
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-4529
SELECT ALL + ( - + 51 ) DIV - col0 AS col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL + ( - + 51 ) / - col0 AS col1 FROM tab2 AS cor0
----
0
0
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 = col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 81 * - - ( - - 70 ) > NULL
----

query I rowsort
SELECT - - 72 * 33 FROM tab2 AS cor0
----
2376
2376
2376

query I rowsort
SELECT 53 AS col0 FROM tab0 cor0
----
53
53
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 78 col0 FROM tab1 cor0 WHERE NULL = 91
----

query I rowsort
SELECT DISTINCT - - 89 + - col1 FROM tab0 AS cor0
----
68
8
88

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col0 + - + col0 * + + col1 * - 49 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT + COUNT( DISTINCT - ( - col2 ) ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4537
SELECT + COUNT ( DISTINCT - ( - col2 ) ) AS col0 FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - col1 - + col2 col2 FROM tab1 AS cor0 WHERE NULL < col2 * + 7 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4539
SELECT ALL col2 + - CAST( + 1 AS SIGNED ) * + - col0 FROM tab2 cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-4539
SELECT ALL col2 + - CAST ( + 1 AS INTEGER ) * + - col0 FROM tab2 cor0
----
104
133
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4540
SELECT DISTINCT - - col2 DIV - - col2 - + col1 + + col0 + col1 + + col2 AS col1 FROM tab1 AS cor0
----
145
148
160

skipif mysql # not compatible
query I rowsort label-4540
SELECT DISTINCT - - col2 / - - col2 - + col1 + + col0 + col1 + + col2 AS col1 FROM tab1 AS cor0
----
145
148
160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + + 7 col0 FROM tab0
----
28
8
88

query II rowsort
SELECT ALL 76 AS col0, ( col0 ) AS col1 FROM tab2
----
76
46
76
64
76
75

query I rowsort
SELECT col0 * + + 54 + - - ( col0 ) * + + col0 AS col2 FROM tab0
----
1035
12267
14647

onlyif mysql # DIV for integer division: 
query I rowsort label-4544
SELECT DISTINCT + + col1 + + 99 DIV + + col1 - - + col1 * 10 * 77 AS col2 FROM tab0 AS cor0
----
16195
62452
870

skipif mysql # not compatible
query I rowsort label-4544
SELECT DISTINCT + + col1 + + 99 / + + col1 - - + col1 * 10 * 77 AS col2 FROM tab0 AS cor0
----
16195
62452
870

query I rowsort
SELECT DISTINCT - col2 + - ( col0 ) FROM tab0 cor0
----
-196
-62
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( - 94 ) IS NULL )
----

query I rowsort
SELECT ALL + - 56 + - col1 + col2 * - col2 + - col0 FROM tab2 AS cor0
----
-1797
-3562
-682

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 63 col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query II rowsort
SELECT ALL - col2 AS col2, col1 AS col2 FROM tab0
----
-10
21
-47
81
-99
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4550
SELECT ALL - col2 DIV + 14 AS col2 FROM tab0
----
-3
-7
0

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL - col2 / + 14 AS col2 FROM tab0
----
-3
-7
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + - col1 ) col0, - 1 FROM tab1
----
14
-1
47
-1
5
-1

query I rowsort
SELECT DISTINCT col0 / - 35 + - col2 + - 84 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT DISTINCT - ( - MAX( + col2 ) ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4553
SELECT DISTINCT - ( - MAX ( + col2 ) ) AS col1 FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + - 56 * + - col1 NOT BETWEEN col0 AND + ( - ( - - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT COUNT( * ) * 13 AS col2 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-4556
SELECT COUNT ( * ) * 13 AS col2 FROM tab1
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4557
SELECT + col0 * - + CAST( NULL AS SIGNED ) * - + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4557
SELECT + col0 * - + CAST ( NULL AS INTEGER ) * - + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4558
SELECT - + col2 AS col2 FROM tab0 WHERE NOT - 31 * - CAST( NULL AS SIGNED ) * 98 * - col0 - - + 16 + 47 >= NULL
----

skipif mysql # not compatible
query I rowsort label-4558
SELECT - + col2 AS col2 FROM tab0 WHERE NOT - 31 * - CAST ( NULL AS INTEGER ) * 98 * - col0 - - + 16 + 47 >= NULL
----

query I rowsort
SELECT DISTINCT 72 * col1 AS col1 FROM tab2
----
3672
4824
5544

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = col1 - + 24
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + AVG ( DISTINCT col0 ) col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, - col1 * + col2 col1 FROM tab0
----
15
-3807
87
-210
97
-99

query I rowsort
SELECT - col1 * + + col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4564
SELECT ALL - - COUNT( * ) - + 27 DIV + 50 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL - - COUNT ( * ) - + 27 / + 50 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT ALL - 61 + - COUNT( * ) FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL - 61 + - COUNT ( * ) FROM tab1 AS cor0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4567
SELECT * FROM tab1 AS cor0 WHERE - col0 * + col1 NOT BETWEEN ( - CAST( col1 AS SIGNED ) ) AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4567
SELECT * FROM tab1 AS cor0 WHERE - col0 * + col1 NOT BETWEEN ( - CAST ( col1 AS INTEGER ) ) AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4568
SELECT ALL - ( + - ( col2 ) ) + - 67 - - CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-101
-78
31

skipif mysql # not compatible
query I rowsort label-4568
SELECT ALL - ( + - ( col2 ) ) + - 67 - - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-101
-78
31

query I rowsort
SELECT DISTINCT - + col0 + - col1 AS col0 FROM tab2 cor0
----
-141
-142
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4570
SELECT ALL 66 FROM tab0 AS cor0 WHERE ( ( - CAST( NULL AS SIGNED ) + - col2 + + 57 * col2 < - 9 ) )
----

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL 66 FROM tab0 AS cor0 WHERE ( ( - CAST ( NULL AS INTEGER ) + - col2 + + 57 * col2 < - 9 ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4571
SELECT + 40 col2, col0 DIV 17 AS col1 FROM tab1 AS cor0
----
40
3
40
5
40
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4571
SELECT + 40 col2, col0 / 17 AS col1 FROM tab1 AS cor0
----
40
3
40
5
40
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4572
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ( + 91 ) AS col0 FROM tab2
----
91
91
91

query I rowsort
SELECT ALL + col2 - - - col1 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT DISTINCT + + col1 - + - 76 AS col2 FROM tab0 AS cor0
----
157
77
97

query II rowsort
SELECT + col2, + col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 96 FROM tab0 AS cor0 WHERE + 60 * + + 36 IS NOT NULL
----
96

query II rowsort
SELECT + 41 AS col2, ( col0 ) FROM tab0
----
41
15
41
87
41
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4579
SELECT + CAST( NULL AS SIGNED ) FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4579
SELECT + CAST ( NULL AS INTEGER ) FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT DISTINCT - col0 AS col1, col2 FROM tab0
----
-15
47
-87
10
-97
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 / - + 63 IS NOT NULL OR - 5 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 <= + col2 / - 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT - 99 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-4583
SELECT - 99 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
297

query I rowsort
SELECT ALL - 47 * + 63 FROM tab0 AS cor0
----
-2961
-2961
-2961

query II rowsort
SELECT ALL - + 79 * + col2 + - col1, - 1 AS col2 FROM tab2 AS cor0
----
-1868
-1
-3237
-1
-4649
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 - - 42 + + 23 * ( + 12 ) IS NOT NULL
----

query I rowsort
SELECT + + ( - - col2 ) FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4588
SELECT DISTINCT + ( CAST( col0 AS SIGNED ) ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4588
SELECT DISTINCT + ( CAST ( col0 AS INTEGER ) ) FROM tab2
----
46
64
75

query II rowsort
SELECT DISTINCT + col0, - col2 * + col0 AS col1 FROM tab2
----
46
-1058
64
-2560
75
-4350

query II rowsort
SELECT 12, col0 + - + 95 + - + ( - col0 ) * - col1 - col2 * + + col1 AS col1 FROM tab1
----
12
-2102
12
-730
12
-7477

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 col1 FROM tab0
----
705
870
9603

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 24 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + - col1 AS col2, + col0 FROM tab2 cor0
----
-51
46
-67
75
-77
64

query III rowsort
SELECT * FROM tab2 WHERE - 52 = + col2
----

query I rowsort
SELECT DISTINCT + col2 + + 64 AS col2 FROM tab1
----
123
132
160

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT - col1 IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4597
SELECT + - 33 DIV - col2 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4597
SELECT + - 33 / - col2 FROM tab0 AS cor0
----
0
0
3

query I rowsort
SELECT ALL - col1 * + ( + ( + - col1 ) ) AS col1 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT ALL 85 + - COUNT( * ) FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL 85 + - COUNT ( * ) FROM tab2 AS cor0
----
82

query I rowsort
SELECT + 95 - - col1 FROM tab0 AS cor0
----
116
176
96

query I rowsort
SELECT ALL + col2 + 64 AS col1 FROM tab2 AS cor0
----
104
122
87

query II rowsort
SELECT + col2 * - 23 - - + col0, ( - - col1 ) AS col0 FROM tab1 AS cor0
----
-1272
5
-1473
47
-2157
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4603
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - - 94 + col0 FROM tab1 AS cor0
----
145
179
185

onlyif mysql # DIV for integer division: 
query I rowsort label-4605
SELECT DISTINCT - col1 + - + 32 DIV col2 FROM tab0 cor0
----
-1
-24
-81

skipif mysql # not compatible
query I rowsort label-4605
SELECT DISTINCT - col1 + - + 32 / col2 FROM tab0 cor0
----
-1
-24
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT DISTINCT COUNT( DISTINCT - 20 ) FROM tab2, tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4606
SELECT DISTINCT COUNT ( DISTINCT - 20 ) FROM tab2, tab2 cor0
----
1

query I rowsort
SELECT 24 * + col1 * + 81 + - col1 AS col0 FROM tab1
----
27202
91321
9715

query I rowsort
SELECT ALL col2 * - ( + col0 ) + + col1 FROM tab2
----
-1007
-2483
-4283

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - - 24 col2 FROM tab0
----
-14
23
75

query I rowsort
SELECT 45 + - 39 FROM tab1
----
6
6
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4611
SELECT + col0 FROM tab0 WHERE col1 + col2 <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4611
SELECT + col0 FROM tab0 WHERE col1 + col2 <= + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT + 78, + ( - col1 ) AS col1 FROM tab2
----
78
-51
78
-67
78
-77

query I rowsort
SELECT DISTINCT - col2 - + 19 + + + col2 AS col1 FROM tab2
----
-19

query III rowsort
SELECT * FROM tab1 WHERE ( NOT col0 + - + 75 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT 65 * - 16 > ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 50 + + col1 AS col1 FROM tab2
----
101
117
127

query I rowsort
SELECT - 21 * - 90 + 63 FROM tab0
----
1953
1953
1953

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 32 ) IS NULL
----

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT NULL = ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT + COUNT( * ) FROM tab1 WHERE NULL BETWEEN NULL AND + 37
----
0

skipif mysql # not compatible
query I rowsort label-4620
SELECT + COUNT ( * ) FROM tab1 WHERE NULL BETWEEN NULL AND + 37
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4621
SELECT CAST( + col1 AS SIGNED ) + - col0 AS col1 FROM tab2
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-4621
SELECT CAST ( + col1 AS INTEGER ) + - col0 AS col1 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT - 10 - - COUNT( * ) AS col0 FROM tab2 WHERE col0 BETWEEN ( NULL ) AND 56
----
-10

skipif mysql # not compatible
query I rowsort label-4622
SELECT - 10 - - COUNT ( * ) AS col0 FROM tab2 WHERE col0 BETWEEN ( NULL ) AND 56
----
-10

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 * col1 ) NOT IN ( - 84 )
----

query I rowsort
SELECT col0 * - col2 + 6 FROM tab0
----
-699
-864
-9597

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT - ( COUNT( * ) ) FROM tab0 WHERE ( + col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4625
SELECT - ( COUNT ( * ) ) FROM tab0 WHERE ( + col2 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT DISTINCT 16 + COUNT( * ) AS col2 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT 16 + COUNT ( * ) AS col2 FROM tab1
----
19

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( col2 ) IN ( - col1 )
----

query I rowsort
SELECT - 61 * col1 FROM tab1
----
-2867
-305
-854

query I rowsort
SELECT ALL 6 AS col0 FROM tab0 WHERE NULL IS NULL
----
6
6
6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * + col2 + + col2 < col0 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 + 14 * 22 AS col2 FROM tab2
----
331
348
366

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 ) * - col2 >= ( 83 / + 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT DISTINCT + MAX( + col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4633
SELECT DISTINCT + MAX ( + col0 ) FROM tab1
----
91

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 ) >= ( ( col2 ) )
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE NOT col1 BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT + 34 AS col2 FROM tab2 AS cor0 WHERE NULL <> + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 53 IS NULL
----

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NULL = ( ( + 55 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4640
SELECT - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4640
SELECT - ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT ALL + MIN( DISTINCT + col0 ) + SUM( - 76 ) col2 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4641
SELECT ALL + MIN ( DISTINCT + col0 ) + SUM ( - 76 ) col2 FROM tab1 AS cor0
----
-177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4642
SELECT CAST( NULL AS SIGNED ) + - 1 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4642
SELECT CAST ( NULL AS INTEGER ) + - 1 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - ( ( 86 ) ) * - col1 FROM tab0
----
183
1893
6981

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE NULL <= col2
----
0

skipif mysql # not compatible
query I rowsort label-4644
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE NULL <= col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4645
SELECT ALL - col2 DIV 48 - col1 FROM tab0
----
-21
-3
-81

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL - col2 / 48 - col1 FROM tab0
----
-21
-3
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 ) NOT IN ( 14 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4647
SELECT DISTINCT - COUNT( * ) DIV - 51 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4647
SELECT DISTINCT - COUNT ( * ) / - 51 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT DISTINCT + COUNT( * ) + + 12 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4649
SELECT DISTINCT + COUNT ( * ) + + 12 FROM tab0 AS cor0
----
15

query I rowsort
SELECT + col1 * col1 + + ( - col0 ) * + col2 FROM tab1 AS cor0
----
-3979
-4700
-4990

query I rowsort
SELECT ALL - 97 FROM tab2 AS cor0 WHERE NOT col2 >= - 8
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 6 ) BETWEEN + 61 * - col2 AND 39
----

query I rowsort
SELECT - col2 * - 4 AS col1 FROM tab2 AS cor0
----
160
232
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + - 97 col1 FROM tab1 AS cor0
----
-12
-46
-6

query I rowsort
SELECT DISTINCT + 33 + + col1 AS col2 FROM tab1 AS cor0
----
38
47
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4656
SELECT - col2 + - col0 AS col1 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) < col2
----

skipif mysql # not compatible
query I rowsort label-4656
SELECT - col2 + - col0 AS col1 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) < col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + 20 - 45 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT 27 * - COUNT( - col2 ) FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-4658
SELECT 27 * - COUNT ( - col2 ) FROM tab1
----
-81

query I rowsort
SELECT - 98 * 5 AS col1 FROM tab0 WHERE ( col0 ) BETWEEN ( col2 ) AND - col1
----

query I rowsort
SELECT ALL 70 + - - 17 FROM tab0
----
87
87
87

query I rowsort
SELECT + 25 * col0 AS col1 FROM tab0 WHERE col1 > NULL
----

query I rowsort
SELECT DISTINCT 72 AS col0 FROM tab0 WHERE ( col0 ) NOT IN ( + 42 )
----
72

query I rowsort
SELECT 58 - col0 FROM tab1
----
-27
-33
7

query I rowsort
SELECT DISTINCT col0 * + 0 - + col2 AS col0 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT - ( + col2 ) AS col0 FROM tab1 WHERE NOT NULL < col2
----

query I rowsort
SELECT 79 FROM tab0 WHERE NOT ( 94 * col1 + + 78 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * ( - col1 ) AS col1 FROM tab1
----
-196
-2209
-25

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 37 ) NOT IN ( - col2 )
----

query I rowsort
SELECT + + 59 AS col1 FROM tab1 cor0
----
59
59
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4670
SELECT 30 DIV + col2 + 32 FROM tab1 AS cor0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-4670
SELECT 30 / + col2 + 32 FROM tab1 AS cor0
----
32
32
32

query I rowsort
SELECT ALL + col2 * - + col0 + + col0 FROM tab2 AS cor0
----
-1012
-2496
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT + - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4672
SELECT + - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query II rowsort
SELECT - col1 AS col1, + col2 FROM tab0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT ALL + col1 FROM tab0 cor0 WHERE NOT col2 = col2 + - col0 OR NOT 87 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4675
SELECT - + COUNT( * ) AS col1, 93 AS col0 FROM tab0 AS cor0
----
-3
93

skipif mysql # not compatible
query II rowsort label-4675
SELECT - + COUNT ( * ) AS col1, 93 AS col0 FROM tab0 AS cor0
----
-3
93

query I rowsort
SELECT ALL + ( + col1 ) + col0 + 18 AS col0 FROM tab2 AS cor0
----
115
159
160

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT ALL SUM( DISTINCT + - 42 ) col0 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4677
SELECT ALL SUM ( DISTINCT + - 42 ) col0 FROM tab0 AS cor0
----
-42

query II rowsort
SELECT ALL + col1 AS col0, - col2 * col2 + 32 FROM tab1 AS cor0
----
14
-9184
47
-4592
5
-3449

onlyif mysql # DIV for integer division: 
query I rowsort label-4679
SELECT + - 74 * - col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
74
74
74

skipif mysql # not compatible
query I rowsort label-4679
SELECT + - 74 * - col0 / + col0 AS col0 FROM tab2 AS cor0
----
74
74
74

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 97 * - - col2 ) <> + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col2, 4 FROM tab0 AS cor0
----
10
4
47
4
99
4

query I rowsort
SELECT - 61 FROM tab1 WHERE NOT ( col0 ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4683
SELECT ALL + COUNT( * ) * + COUNT( * ) / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL + COUNT ( * ) * + COUNT ( * ) / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT - col2 + + col2 AS col0 FROM tab1 WHERE + 33 <= + col2
----
0
0
0

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 WHERE NOT NULL = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 + - col1 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT - 6 * - 88 + MAX( ALL - - col0 ) + COUNT( * ) AS col0 FROM tab1
----
622

skipif mysql # not compatible
query I rowsort label-4688
SELECT - 6 * - 88 + MAX ( ALL - - col0 ) + COUNT ( * ) AS col0 FROM tab1
----
622

query I rowsort
SELECT - col2 + 82 * - col2 FROM tab0 AS cor0
----
-3901
-8217
-830

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4690
SELECT ALL MIN( - 65 ) DIV MAX( DISTINCT col0 ) AS col2 FROM tab0 AS cor0 WHERE ( - col2 * + col0 ) <= + 19 * + col2
----
0

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL MIN ( - 65 ) / MAX ( DISTINCT col0 ) AS col2 FROM tab0 AS cor0 WHERE ( - col2 * + col0 ) <= + 19 * + col2
----
0

query I rowsort
SELECT ALL + col0 * + 53 + + - 85 FROM tab0 AS cor0
----
4526
5056
710

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 4 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN + col1 * + - col1 + 46 AND ( + col2 )
----

query I rowsort
SELECT DISTINCT 80 * + 46 FROM tab2 AS cor0 WHERE NOT ( 58 ) IS NULL
----
3680

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT ALL + 25 + - - MAX( DISTINCT + col2 ) AS col1 FROM tab2 cor0
----
83

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL + 25 + - - MAX ( DISTINCT + col2 ) AS col1 FROM tab2 cor0
----
83

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col2 NOT BETWEEN ( - col0 ) AND 5 * + col2
----
85
5
59
91
47
68

query I rowsort
SELECT + - 24 - + - col1 FROM tab1 AS cor0
----
-10
-19
23

query I rowsort
SELECT ALL + - 27 - - col0 * + col1 FROM tab0 cor0
----
1188
1800
70

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 ) > - col1 AND NOT NULL NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4700
SELECT + COUNT( ALL + + col0 ) - + - COUNT( * ) + + CAST( + - 63 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-4700
SELECT + COUNT ( ALL + + col0 ) - + - COUNT ( * ) + + CAST ( + - 63 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-4701
SELECT + col2 DIV + col2 + 41 AS col2 FROM tab0 AS cor0
----
42
42
42

skipif mysql # not compatible
query I rowsort label-4701
SELECT + col2 / + col2 + 41 AS col2 FROM tab0 AS cor0
----
42
42
42

query I rowsort
SELECT col0 * + col2 * 17 AS col0 FROM tab2 AS cor0 WHERE 37 + + col2 <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4703
SELECT + ( + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col0 - + 54 * + 70
----

skipif mysql # not compatible
query I rowsort label-4703
SELECT + ( + CAST ( NULL AS REAL ) ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col0 - + 54 * + 70
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4704
SELECT ALL + CAST( NULL AS SIGNED ) + 48 + 79 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL + CAST ( NULL AS INTEGER ) + 48 + 79 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col2, 16 AS col0 FROM tab0
----
10
16
47
16
99
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4706
SELECT ALL - col0 * col0 col2, - col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-225
NULL
-7569
NULL
-9409
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4706
SELECT ALL - col0 * col0 col2, - col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-225
NULL
-7569
NULL
-9409
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - 54 )
----

query I rowsort
SELECT DISTINCT + col2 * + - 13 FROM tab1
----
-1248
-767
-884

query I rowsort
SELECT ( + + 83 ) AS col2 FROM tab0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT ALL SUM( + 26 ) * COUNT( * ) FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL SUM ( + 26 ) * COUNT ( * ) FROM tab0
----
234

query I rowsort
SELECT ALL col1 + - - 18 AS col0 FROM tab2 WHERE NULL IS NULL
----
69
85
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT + SUM( - - col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4712
SELECT + SUM ( - - col1 ) FROM tab0
----
103

query I rowsort
SELECT 34 * 59 AS col2 FROM tab0
----
2006
2006
2006

query II rowsort
SELECT DISTINCT col1, col0 * - - col0 AS col1 FROM tab0 cor0
----
1
9409
21
7569
81
225

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4715
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST( - 66 AS SIGNED ) / + + col1 BETWEEN col0 AND col1 * CAST( col0 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4715
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( - 66 AS INTEGER ) / + + col1 BETWEEN col0 AND col1 * CAST ( col0 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1 AS col1, col1 + col1 FROM tab1 AS cor0
----
14
28
47
94
5
10

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col1 * + col1 ) IN ( col2 * - 8 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4718
SELECT - ( - - ( - 92 ) ) DIV ( - col2 ) FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-4718
SELECT - ( - - ( - 92 ) ) / ( - col2 ) FROM tab2
----
-1
-2
-4

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 68 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * - + 76 FROM tab2
----
-3876
-5092
-5852

query I rowsort
SELECT ALL - 75 AS col2 FROM tab0 WHERE NOT + col1 - - 71 <> ( col2 + + ( col2 ) * ( 84 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4722
SELECT ALL * FROM tab2 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4722
SELECT ALL * FROM tab2 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT + - col2 + - - col0 AS col0 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT - - ( + - ( - col2 ) ) * - 19 + + col0 * - - col0 AS col1 FROM tab2 AS cor0
----
1679
3336
4523

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT DISTINCT MAX( + col2 ) + COUNT( * ) * 64 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT MAX ( + col2 ) + COUNT ( * ) * 64 FROM tab1 AS cor0
----
288

query I rowsort
SELECT col2 + + 48 FROM tab1
----
107
116
144

query II rowsort
SELECT DISTINCT col0, - col1 * - + col1 FROM tab2
----
46
2601
64
5929
75
4489

skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query II rowsort
SELECT ALL col2 * + + 68 AS col2, - 37 / - 0 AS col2 FROM tab2 WHERE NOT NULL > + col0 OR NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT + + col0 > + - 75 + + col1
----
0

skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT + + col0 > + - 75 + + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT DISTINCT MAX( - col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT MAX ( - col1 ) FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4733
SELECT ALL + + CAST( + - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL + + CAST ( + - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT ALL - col2, - ( + + 83 ) + col1 + - 97 AS col1 FROM tab2 AS cor0
----
-23
-129
-40
-103
-58
-113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4735
SELECT ALL + col0 + - CAST( NULL AS SIGNED ) * + - 60 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL + col0 + - CAST ( NULL AS INTEGER ) * + - 60 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 83 - ( + - col0 ) FROM tab1 AS cor0
----
134
168
174

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT ALL + SUM( ALL + col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-4737
SELECT ALL + SUM ( ALL + col0 ) FROM tab0
----
199

query I rowsort
SELECT ALL - + 22 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4739
SELECT DISTINCT - + col1 * + - col2 * - CAST( NULL AS SIGNED ) * + 6 col2, 11 - - col1 * - + 69 * 83 FROM tab2 AS cor0
----
NULL
-292066
NULL
-383698
NULL
-440968

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4739
SELECT DISTINCT - + col1 * + - col2 * - CAST ( NULL AS INTEGER ) * + 6 col2, 11 - - col1 * - + 69 * 83 FROM tab2 AS cor0
----
NULL
-292066
NULL
-383698
NULL
-440968

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT - MIN( DISTINCT + col1 ) AS col1 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4740
SELECT - MIN ( DISTINCT + col1 ) AS col1 FROM tab1 cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4741
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( - 88 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4743
SELECT COUNT( * ) DIV ( 14 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4743
SELECT COUNT ( * ) / ( 14 ) AS col2 FROM tab1
----
0

query I rowsort
SELECT 65 AS col2 FROM tab1 WHERE NOT col2 IS NULL
----
65
65
65

query I rowsort
SELECT col1 * - 20 AS col1 FROM tab0
----
-1620
-20
-420

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col1 < ( NULL )
----

query I rowsort
SELECT + 83 * col1 FROM tab1
----
1162
3901
415

onlyif mysql # DIV for integer division: 
query I rowsort label-4748
SELECT ALL col2 * col0 DIV col2 * + 17 AS col2 FROM tab1 AS cor0
----
1445
1547
867

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL col2 * col0 / col2 * + 17 AS col2 FROM tab1 AS cor0
----
1445
1547
867

query I rowsort
SELECT + 42 * 81 AS col2 FROM tab0 AS cor0
----
3402
3402
3402

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4750
SELECT ALL + + 23 * - col2 DIV - ( - - col2 ) + col0, + CAST( + + 20 AS SIGNED ) + + ( + ( 11 ) ) AS col2 FROM tab2 AS cor0
----
69
31
87
31
98
31

skipif mysql # not compatible
query II rowsort label-4750
SELECT ALL + + 23 * - col2 / - ( - - col2 ) + col0, + CAST ( + + 20 AS INTEGER ) + + ( + ( 11 ) ) AS col2 FROM tab2 AS cor0
----
69
31
87
31
98
31

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < + + 62
----

query I rowsort
SELECT + 69 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 48 * col2 + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT DISTINCT + MIN( ALL + col0 ) FROM tab2 WHERE NOT col2 * 43 IN ( + 38, ( + + col2 ), 92 + - + 76 )
----
46

skipif mysql # not compatible
query I rowsort label-4754
SELECT DISTINCT + MIN ( ALL + col0 ) FROM tab2 WHERE NOT col2 * 43 IN ( + 38, ( + + col2 ), 92 + - + 76 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT ALL - + COUNT( * ) + + 90 AS col1 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL - + COUNT ( * ) + + 90 AS col1 FROM tab2 AS cor0
----
87

query I rowsort
SELECT ALL 91 * 3 FROM tab2 AS cor0
----
273
273
273

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 + - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 < + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE col2 IS NOT NULL
----
-10
-47
-99

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT ALL + 50 * + COUNT( * ) FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL + 50 * + COUNT ( * ) FROM tab0
----
150

query II rowsort
SELECT 5 + + + col1, col2 * 29 AS col2 FROM tab0
----
26
290
6
2871
86
1363

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4763
SELECT + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + col0 - ( - col0 ) AS col1 FROM tab0
----
184
293
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4765
SELECT DISTINCT - 68 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT - 68 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - + col0 ) + + col2 col2 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT ALL + COUNT( * ) * - - 66 AS col0 FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL + COUNT ( * ) * - - 66 AS col0 FROM tab1 AS cor0
----
198

query I rowsort
SELECT + + 29 + + col1 FROM tab0 cor0
----
110
30
50

onlyif mysql # aggregate syntax: 
query II rowsort label-4769
SELECT COUNT( * ), - COUNT( * ) AS col1 FROM tab0 cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-4769
SELECT COUNT ( * ), - COUNT ( * ) AS col1 FROM tab0 cor0
----
3
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 27 AND NULL
----

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT 56 + - col1 IS NOT NULL
----

query I rowsort
SELECT - 87 * - - col1 * - 82 AS col1 FROM tab0 AS cor0
----
149814
577854
7134

onlyif mysql # DIV for integer division: 
query I rowsort label-4774
SELECT ( + + col1 ) DIV + - 41 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4774
SELECT ( + + col1 ) / + - 41 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT - col2 * col1 * + - col0 * + 29 FROM tab1
----
1987776
727175
8434244

query I rowsort
SELECT + ( 89 ) FROM tab2
----
89
89
89

onlyif mysql # aggregate syntax: 
query II rowsort label-4777
SELECT + MAX( ALL - + col2 ), COUNT( * ) AS col2 FROM tab0
----
-10
3

skipif mysql # not compatible
query II rowsort label-4777
SELECT + MAX ( ALL - + col2 ), COUNT ( * ) AS col2 FROM tab0
----
-10
3

query II rowsort
SELECT ( 53 ) AS col1, - col2 FROM tab2
----
53
-23
53
-40
53
-58

query I rowsort
SELECT - col1 * - + 37 FROM tab1
----
1739
185
518

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT ALL - MAX( - + 46 ) FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL - MAX ( - + 46 ) FROM tab0
----
46

query II rowsort
SELECT ALL + col0 * - + col0 * - 14 * - col0 AS col0, col1 AS col1 FROM tab1
----
-10549994
47
-1857114
14
-8597750
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * + + 1 AS col2, col1 col0 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT DISTINCT + + 32 AS col0 FROM tab0 AS cor0
----
32

query I rowsort
SELECT ALL - - 52 * + col1 AS col1 FROM tab1 cor0
----
2444
260
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4785
SELECT 80 * + - CAST( + 49 AS SIGNED ) FROM tab2
----
-3920
-3920
-3920

skipif mysql # not compatible
query I rowsort label-4785
SELECT 80 * + - CAST ( + 49 AS INTEGER ) FROM tab2
----
-3920
-3920
-3920

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4787
SELECT DISTINCT + col0 + - col0 * CAST( NULL AS SIGNED ) + - col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4787
SELECT DISTINCT + col0 + - col0 * CAST ( NULL AS INTEGER ) + - col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + 6 + col0 FROM tab2 AS cor0
----
52
70
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4789
SELECT DISTINCT + - COUNT( * ) DIV + MIN( DISTINCT - col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4789
SELECT DISTINCT + - COUNT ( * ) / + MIN ( DISTINCT - col0 ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4790
SELECT + col0 + - col1 DIV - col1 AS col1, + col0 - - ( - 37 ) * + col2 FROM tab1 AS cor0
----
52
-3501
86
-2098
92
-2425

skipif mysql # not compatible
query II rowsort label-4790
SELECT + col0 + - col1 / - col1 AS col1, + col0 - - ( - 37 ) * + col2 FROM tab1 AS cor0
----
52
-3501
86
-2098
92
-2425

query I rowsort
SELECT - - col2 + + 92 FROM tab0 AS cor0
----
102
139
191

query I rowsort
SELECT - 81 FROM tab0 cor0 WHERE NULL IS NULL
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT + ( + + ( - COUNT( * ) ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4793
SELECT + ( + + ( - COUNT ( * ) ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col2 * - col0 - col0 * + 5 * + + col1 AS col0 FROM tab0 AS cor0
----
-10005
-10088
-6780

query II rowsort
SELECT - col1, - col0 AS col0 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT + SUM( DISTINCT - - col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-4796
SELECT + SUM ( DISTINCT - - col2 ) AS col2 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT + COUNT( 29 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4797
SELECT + COUNT ( 29 ) FROM tab1
----
3

query I rowsort
SELECT + ( 19 ) FROM tab0
----
19
19
19

onlyif mysql # DIV for integer division: 
query I rowsort label-4799
SELECT DISTINCT col1 - + + col1 - - col0 * col0 DIV col0 + 69 AS col1 FROM tab1
----
120
154
160

skipif mysql # not compatible
query I rowsort label-4799
SELECT DISTINCT col1 - + + col1 - - col0 * col0 / col0 + 69 AS col1 FROM tab1
----
120
154
160

query I rowsort
SELECT ALL 79 * - 82 * - col1 FROM tab0
----
136038
524718
6478

query I rowsort
SELECT ALL + - 93 * - 51 AS col1 FROM tab0 AS cor0
----
4743
4743
4743

query I rowsort
SELECT DISTINCT - col1 * - + col1 AS col2 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # DIV for integer division: 
query I rowsort label-4803
SELECT + - col0 - + col0 DIV - 48 FROM tab0 AS cor0
----
-15
-86
-95

skipif mysql # not compatible
query I rowsort label-4803
SELECT + - col0 - + col0 / - 48 FROM tab0 AS cor0
----
-15
-86
-95

query I rowsort
SELECT ALL + col0 * - col0 + - - col0 AS col2 FROM tab2 AS cor0
----
-2070
-4032
-5550

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT - - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4805
SELECT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

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-4807
SELECT DISTINCT + MAX( + 35 ) FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-4807
SELECT DISTINCT + MAX ( + 35 ) FROM tab2 AS cor0
----
35

query I rowsort
SELECT + - col1 * + 39 * - 38 + - 3 - - 38 AS col2 FROM tab2 AS cor0
----
114149
75617
99329

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4809
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE NOT + col1 * + - col0 + + + CAST( ( col2 ) AS DECIMAL ) + - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4809
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE NOT + col1 * + - col0 + + + CAST ( ( col2 ) AS REAL ) + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4810
SELECT DISTINCT - - COUNT( * ) - CAST( NULL AS SIGNED ) - - ( + + 88 ) / 8 AS col0 FROM tab2 WHERE NOT + - col1 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4810
SELECT DISTINCT - - COUNT ( * ) - CAST ( NULL AS INTEGER ) - - ( + + 88 ) / 8 AS col0 FROM tab2 WHERE NOT + - col1 <> NULL
----
NULL

query I rowsort
SELECT ALL + - 35 AS col0 FROM tab1 WHERE NOT ( NOT ( NULL ) IS NULL )
----
-35
-35
-35

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 NOT BETWEEN col0 + + col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + 82 * 36 * + 12 * + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4815
SELECT CAST( + + COUNT( * ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4815
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT ALL COUNT( - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL COUNT ( - col1 ) FROM tab2
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4817
SELECT ALL - CAST( NULL AS DECIMAL ) col1, - col1 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4817
SELECT ALL - CAST ( NULL AS REAL ) col1, - col1 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

query I rowsort
SELECT DISTINCT + col1 + col0 + + col0 AS col2 FROM tab1
----
116
175
229

query I rowsort
SELECT col2 * 1 + + col1 AS col1 FROM tab1 AS cor0
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + - - ( col0 ) AS col2, - 14 col0 FROM tab0 AS cor0
----
196
-14
62
-14
97
-14

query I rowsort
SELECT DISTINCT + col0 + + 93 AS col0 FROM tab1 AS cor0
----
144
178
184

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT - COUNT( DISTINCT 17 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-4822
SELECT - COUNT ( DISTINCT 17 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT DISTINCT 4 + COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
4

skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT 4 + COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT DISTINCT + ( - 34 ) * - COUNT( * ) * COUNT( * ) + + + SUM( DISTINCT + 59 ) AS col1 FROM tab2
----
365

skipif mysql # not compatible
query I rowsort label-4824
SELECT DISTINCT + ( - 34 ) * - COUNT ( * ) * COUNT ( * ) + + + SUM ( DISTINCT + 59 ) AS col1 FROM tab2
----
365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 * - + col2 col2 FROM tab0
----
-423
-891
-90

query II rowsort
SELECT - 61 * - + 76, col0 AS col2 FROM tab0 AS cor0
----
4636
15
4636
87
4636
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT DISTINCT ( - SUM( ALL + col0 ) ) FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4827
SELECT DISTINCT ( - SUM ( ALL + col0 ) ) FROM tab1 cor0
----
-227

query I rowsort
SELECT DISTINCT + 41 * col1 + - 5 FROM tab0 AS cor0
----
3316
36
856

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 29 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 - - col0 col0 FROM tab0 AS cor0 WHERE col2 < - 0 * col1
----

query I rowsort
SELECT + col2 + + + col2 AS col1 FROM tab1
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT DISTINCT + 27 * - COUNT( * ) + + 48 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-4832
SELECT DISTINCT + 27 * - COUNT ( * ) + + 48 FROM tab1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT ALL + SUM( ALL - 56 ) + + - ( 68 ) AS col2 FROM tab1
----
-236

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL + SUM ( ALL - 56 ) + + - ( 68 ) AS col2 FROM tab1
----
-236

query I rowsort
SELECT DISTINCT - col0 - - col2 AS col2 FROM tab0
----
-77
2
32

query III rowsort
SELECT * FROM tab2 WHERE col1 + + col2 <> ( + + col1 + + 57 * + 68 * ( - - col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 55 - - ( - col1 ) FROM tab2
----
-12
-22
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4837
SELECT CAST( NULL AS SIGNED ) + + col1 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4837
SELECT CAST ( NULL AS INTEGER ) + + col1 col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 17 FROM tab2 WHERE NOT + 1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( col0 ) NOT BETWEEN + col2 AND NULL
----
51
14
96

query I rowsort
SELECT ALL 43 * - col1 AS col0 FROM tab2
----
-2193
-2881
-3311

query I rowsort
SELECT DISTINCT col2 - col0 * + 26 FROM tab2
----
-1173
-1624
-1892

query I rowsort
SELECT ALL + col1 - - col1 * + 7 * + col1 AS col1 FROM tab1
----
1386
15510
180

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT MIN( + col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4843
SELECT MIN ( + col2 ) AS col0 FROM tab0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4844
SELECT ALL CAST( 69 AS SIGNED ) FROM tab0 AS cor0
----
69
69
69

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL CAST ( 69 AS INTEGER ) FROM tab0 AS cor0
----
69
69
69

query II rowsort
SELECT DISTINCT + col2 AS col2, - col1 + - 42 FROM tab2 AS cor0
----
23
-93
40
-119
58
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT - ( + MIN( ALL col0 ) ) col1 FROM tab1 cor0 WHERE - 46 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4846
SELECT - ( + MIN ( ALL col0 ) ) col1 FROM tab1 cor0 WHERE - 46 IS NULL
----
NULL

query I rowsort
SELECT ALL - col2 * + - col2 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4848
SELECT + CAST( NULL AS SIGNED ) + 26 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4848
SELECT + CAST ( NULL AS INTEGER ) + 26 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT DISTINCT + 54 + + COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
57

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT + 54 + + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4850
SELECT DISTINCT + - col2 col2, CAST( NULL AS SIGNED ) * - 55 AS col2 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4850
SELECT DISTINCT + - col2 col2, CAST ( NULL AS INTEGER ) * - 55 AS col2 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

query II rowsort
SELECT ALL + + col1 AS col2, + 19 AS col0 FROM tab2 AS cor0
----
51
19
67
19
77
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT + + SUM( col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4852
SELECT + + SUM ( col1 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT + 36 = - + col1 / - col2
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4854
SELECT DISTINCT - + CAST( + 97 AS SIGNED ) FROM tab1 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4854
SELECT DISTINCT - + CAST ( + 97 AS INTEGER ) FROM tab1 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT 1 * + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4855
SELECT 1 * + COUNT ( * ) FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4856
SELECT - COUNT( * ) DIV - 36 * + 83 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4856
SELECT - COUNT ( * ) / - 36 * + 83 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4857
SELECT + 68 * + - 89 AS col1, - MAX( DISTINCT + col0 ) AS col0 FROM tab0
----
-6052
-97

skipif mysql # not compatible
query II rowsort label-4857
SELECT + 68 * + - 89 AS col1, - MAX ( DISTINCT + col0 ) AS col0 FROM tab0
----
-6052
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-4858
SELECT + 86 DIV + col1 col1, + 27 FROM tab2
----
1
27
1
27
1
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4858
SELECT + 86 / + col1 col1, + 27 FROM tab2
----
1
27
1
27
1
27

query I rowsort
SELECT col1 * + col1 * - + col2 AS col0 FROM tab1
----
-1475
-150212
-18816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 col0 FROM tab0
----
85
85
85

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( - + 79 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT DISTINCT ( - 55 ) + - COUNT( * ) FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT ( - 55 ) + - COUNT ( * ) FROM tab1 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT + COUNT( + + 23 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4863
SELECT + COUNT ( + + 23 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + ( - - col1 ) AS col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE col0 < ( - 92 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL = + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4867
SELECT ALL 40 + + + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL 40 + + + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4868
SELECT - 16 * - + 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-4868
SELECT - 16 * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-4869
SELECT - col0 + + 38 + col1 - + - 30 - - col1 DIV + + col2 AS col1 FROM tab1
----
-12
24
31

skipif mysql # not compatible
query I rowsort label-4869
SELECT - col0 + + 38 + col1 - + - 30 - - col1 / + + col2 AS col1 FROM tab1
----
-12
24
31

query I rowsort
SELECT DISTINCT - col0 * + ( - - col0 ) * + 78 - - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT DISTINCT + COUNT( ALL + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4871
SELECT DISTINCT + COUNT ( ALL + col0 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query II rowsort
SELECT DISTINCT - ( + ( 0 ) ) AS col0, col0 AS col2 FROM tab1 AS cor0
----
0
51
0
85
0
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT MIN( + col2 ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-4874
SELECT MIN ( + col2 ) FROM tab1 cor0
----
59

query I rowsort
SELECT ALL + + col0 * - - 21 + - + col2 FROM tab0 AS cor0 WHERE NULL < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT - ( - - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4876
SELECT - ( - - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col0 + col1 * + 39 * 1 AS col0 FROM tab0
----
136
3174
906

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT ALL COUNT( * ) + + - COUNT( * ) * + + 26 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL COUNT ( * ) + + - COUNT ( * ) * + + 26 FROM tab2
----
-75

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 - + + col2 col1 FROM tab1
----
-18
-27
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4881
SELECT ALL + 30 * + col0 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL + 30 * + col0 - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 48 - col2 FROM tab2
----
-10
25
8

query I rowsort
SELECT DISTINCT + 1 + col1 AS col0 FROM tab1
----
15
48
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4884
SELECT ALL ( + COUNT( * ) ) AS col2 FROM tab2 WHERE NOT - 57 BETWEEN NULL AND - CAST( NULL AS SIGNED ) * - 28 + - 15 * - - col1
----
0

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL ( + COUNT ( * ) ) AS col2 FROM tab2 WHERE NOT - 57 BETWEEN NULL AND - CAST ( NULL AS INTEGER ) * - 28 + - 15 * - - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT ALL + ( - COUNT( * ) ) AS col1 FROM tab0, tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL + ( - COUNT ( * ) ) AS col1 FROM tab0, tab2 cor0
----
-9

query I rowsort
SELECT ALL + ( + 37 ) - + + 93 AS col2 FROM tab2
----
-56
-56
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-4887
SELECT ( - 72 ) DIV + - ( - - 64 ) AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4887
SELECT ( - 72 ) / + - ( - - 64 ) AS col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4888
SELECT ALL - CAST( - - 77 AS SIGNED ) FROM tab0 AS cor0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL - CAST ( - - 77 AS INTEGER ) FROM tab0 AS cor0
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT - - COUNT( * ) * - 1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4889
SELECT - - COUNT ( * ) * - 1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT MAX( + 1 ) * + + 84 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-4890
SELECT MAX ( + 1 ) * + + 84 FROM tab1 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT ALL COUNT( * ) * 39 * - 19 FROM tab0 AS cor0
----
-2223

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL COUNT ( * ) * 39 * - 19 FROM tab0 AS cor0
----
-2223

query I rowsort
SELECT ALL - col0 * - 64 * col1 FROM tab0
----
116928
6208
77760

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4893
SELECT DISTINCT CAST( NULL AS DECIMAL ) / - col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT CAST ( NULL AS REAL ) / - col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4894
SELECT DISTINCT - col0 DIV + + 90 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT - col0 / + + 90 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT - - COUNT( + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4895
SELECT - - COUNT ( + col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT - - COUNT( + - 23 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4896
SELECT - - COUNT ( + - 23 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT + + col0 AS col0, + 97 AS col2 FROM tab1 AS cor0
----
51
97
85
97
91
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4898
SELECT DISTINCT + CAST( - + col0 AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT + CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT COUNT( * ) * + + 58 FROM tab1 cor0
----
174

skipif mysql # not compatible
query I rowsort label-4899
SELECT COUNT ( * ) * + + 58 FROM tab1 cor0
----
174

query I rowsort
SELECT DISTINCT + - ( - col1 ) * + col2 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col2, + 77 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 * + col0 + - col1 * col0 col0 FROM tab0 AS cor0
----
-645
1479
3589

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4903
SELECT col1 * + CAST( - col2 AS SIGNED ) FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-4903
SELECT col1 * + CAST ( - col2 AS INTEGER ) FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab1 WHERE NOT - + ( - 91 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 39 * + - ( - 37 ) AS col1 FROM tab1
----
1443
1443
1443

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT + COUNT( ALL + + col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4906
SELECT + COUNT ( ALL + + col0 ) AS col0 FROM tab0
----
3

query II rowsort
SELECT DISTINCT 88, + col1 FROM tab1
----
88
14
88
47
88
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - - col1 + + 14 * col2 col1 FROM tab2 AS cor0
----
350
597
821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 col1 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4910
SELECT DISTINCT + CAST( + - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT + CAST ( + - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 WHERE - + 49 * - 38 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col1 + + 0 * + col1 NOT BETWEEN NULL AND + col2 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT DISTINCT - + 79 - - COUNT( * ) + - 48 * - 60 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
2810

skipif mysql # not compatible
query I rowsort label-4913
SELECT DISTINCT - + 79 - - COUNT ( * ) + - 48 * - 60 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
2810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 16 col2 FROM tab2 AS cor0
----
16

query I rowsort
SELECT + 17 FROM tab2 cor0 WHERE + col2 + + + col1 < ( + col2 + - 33 )
----

query I rowsort
SELECT col1 + 96 AS col1 FROM tab2 AS cor0
----
147
163
173

query I rowsort
SELECT + col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 50 + + + col1 FROM tab1
----
55
64
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT DISTINCT COUNT( * ) - 22 + 53 - + - COUNT( DISTINCT + + 75 ) FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT COUNT ( * ) - 22 + 53 - + - COUNT ( DISTINCT + + 75 ) FROM tab0
----
35

query I rowsort
SELECT - col1 * + 18 FROM tab0 WHERE NULL IS NULL
----
-1458
-18
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT + MIN( col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4921
SELECT + MIN ( col1 ) FROM tab1
----
5

query II rowsort
SELECT DISTINCT + col2 AS col0, + 64 - col2 AS col0 FROM tab0
----
10
54
47
17
99
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT + SUM( - col1 ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-4923
SELECT + SUM ( - col1 ) AS col1 FROM tab2
----
-195

query I rowsort
SELECT - + col1 * col2 + + - col2 AS col2 FROM tab0 AS cor0
----
-198
-220
-3854

onlyif mysql # aggregate syntax: 
query II rowsort label-4925
SELECT DISTINCT 88 col1, 87 + COUNT( * ) + + MIN( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
88
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4925
SELECT DISTINCT 88 col1, 87 + COUNT ( * ) + + MIN ( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
88
43

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4926
SELECT * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) * ( + col0 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4926
SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) * ( + col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4927
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4927
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT + col0 IS NULL
----
NULL

query I rowsort
SELECT ALL - 14 AS col2 FROM tab0
----
-14
-14
-14

query I rowsort
SELECT ALL col2 * 17 * + col1 AS col0 FROM tab0 AS cor0
----
1683
3570
64719

query I rowsort
SELECT ALL + + 30 * col2 + + - col2 AS col2 FROM tab0 AS cor0
----
1363
2871
290

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT DISTINCT - COUNT( DISTINCT - + 40 ) * + - 45 AS col1 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT - COUNT ( DISTINCT - + 40 ) * + - 45 AS col1 FROM tab0 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT ALL + - COUNT( DISTINCT 30 ) + + 35 FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-4932
SELECT ALL + - COUNT ( DISTINCT 30 ) + + 35 FROM tab1 AS cor0
----
34

query I rowsort
SELECT - col1 - + ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 + - 58 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - ( - 14 ) + - col1 + col1, + ( + col2 ) * + 81 - - 44 * + 34 + - col2 AS col2 FROM tab0 AS cor0
----
14
2296
14
5256
14
9416

query I rowsort
SELECT + col2 + + 73 AS col1 FROM tab0
----
120
172
83

query I rowsort
SELECT DISTINCT + - col0 * col2 * col0 - col1 + 8 AS col2 FROM tab2 WHERE NOT col2 / + col1 * - col0 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT COUNT( * ) * 86 * + 59 AS col2 FROM tab2
----
15222

skipif mysql # not compatible
query I rowsort label-4937
SELECT COUNT ( * ) * 86 * + 59 AS col2 FROM tab2
----
15222

query II rowsort
SELECT - col1 * 41 * + col2, col1 FROM tab0
----
-156087
81
-4059
1
-8610
21

query I rowsort
SELECT col0 * + - ( + - 33 ) FROM tab0
----
2871
3201
495

onlyif mysql # DIV for integer division: 
query I rowsort label-4940
SELECT DISTINCT col1 + col0 DIV + - col1 FROM tab2
----
51
66
77

skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT col1 + col0 / + - col1 FROM tab2
----
51
66
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4941
SELECT ALL - col1 * + CAST( + col0 AS SIGNED ) FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL - col1 * + CAST ( + col0 AS INTEGER ) FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT + col0 * + + col0 * - + col1 FROM tab1
----
-36125
-36414
-389207

query II rowsort
SELECT ALL col2, + ( + + 70 ) FROM tab0
----
10
70
47
70
99
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT DISTINCT COUNT( col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT COUNT ( col0 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 14 + col2 * + col2 * - col1 NOT IN ( col2 * - ( + col0 ) + + col1 * - 25 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col0 col0 FROM tab0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT ALL - COUNT( * ) * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-81

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL - COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN + + col1 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4949
SELECT ALL - 64 AS col0, col2 + + CAST( NULL AS DECIMAL ) + + ( - - col1 ) FROM tab0 AS cor0
----
-64
NULL
-64
NULL
-64
NULL

skipif mysql # not compatible
query II rowsort label-4949
SELECT ALL - 64 AS col0, col2 + + CAST ( NULL AS REAL ) + + ( - - col1 ) FROM tab0 AS cor0
----
-64
NULL
-64
NULL
-64
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab2 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT - + col2 FROM tab2 cor0 WHERE 97 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4952
SELECT ( - 37 ) * - 45 DIV - 1 FROM tab2 AS cor0
----
-1665
-1665
-1665

skipif mysql # not compatible
query I rowsort label-4952
SELECT ( - 37 ) * - 45 / - 1 FROM tab2 AS cor0
----
-1665
-1665
-1665

query I rowsort
SELECT - 75 * - + col2 AS col2 FROM tab1 AS cor0
----
4425
5100
7200

query I rowsort
SELECT - - col0 FROM tab2 AS cor0 WHERE ( col1 ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + - col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT + + col2 AS col2, 25 FROM tab2 AS cor0
----
23
25
40
25
58
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4957
SELECT + col1 DIV - 49 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4957
SELECT + col1 / - 49 AS col0 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4958
SELECT + CAST( NULL AS SIGNED ) / + + COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4958
SELECT + CAST ( NULL AS INTEGER ) / + + COUNT ( * ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 38 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT ALL - SUM( ALL + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL - SUM ( ALL + col2 ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT 18 * - - 18 FROM tab2 cor0
----
324
324
324

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT ALL - COUNT( * ) * - ( - 36 ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-324

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL - COUNT ( * ) * - ( - 36 ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT DISTINCT - COUNT( col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT - COUNT ( col0 ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4964
SELECT - col0 DIV - 72 AS col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4964
SELECT - col0 / - 72 AS col1 FROM tab2 AS cor0
----
0
0
1

query II rowsort
SELECT + 82 AS col2, - 97 + + - col2 FROM tab0 AS cor0
----
82
-107
82
-144
82
-196

query I rowsort
SELECT - col1 + - col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 37 AND + + 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT SUM( ALL + + ( 5 ) ) FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4967
SELECT SUM ( ALL + + ( 5 ) ) FROM tab2 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT - MIN( - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT 53 BETWEEN + + col2 AND NULL
----
99

skipif mysql # not compatible
query I rowsort label-4968
SELECT - MIN ( - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT 53 BETWEEN + + col2 AND NULL
----
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + - - col0 * ( col0 ) + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT DISTINCT - COUNT( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4970
SELECT DISTINCT - COUNT ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT - MAX( 96 ) * 66 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 * 50, col0 / + 64, - 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4971
SELECT - MAX ( 96 ) * 66 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 * 50, col0 / + 64, - 98 )
----
NULL

query I rowsort
SELECT ALL col0 * col2 + + 50 FROM tab2 AS cor0
----
1108
2610
4400

query II rowsort
SELECT + - col0 AS col0, col2 * - col2 - + - col1 AS col2 FROM tab0 AS cor0
----
-15
-2128
-87
-79
-97
-9800

onlyif mysql # aggregate syntax: 
query II rowsort label-4974
SELECT + COUNT( * ) AS col2, 78 AS col2 FROM tab1 cor0
----
3
78

skipif mysql # not compatible
query II rowsort label-4974
SELECT + COUNT ( * ) AS col2, 78 AS col2 FROM tab1 cor0
----
3
78

query II rowsort
SELECT DISTINCT col1 * + col1, - col0 AS col0 FROM tab0
----
1
-97
441
-87
6561
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT ALL ( + 74 ) * - COUNT( * ) AS col2 FROM tab2
----
-222

skipif mysql # not compatible
query I rowsort label-4976
SELECT ALL ( + 74 ) * - COUNT ( * ) AS col2 FROM tab2
----
-222

query I rowsort
SELECT ALL col2 * + 73 AS col1 FROM tab0
----
3431
7227
730

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + col0 BETWEEN + col2 AND NULL
----

query I rowsort
SELECT + 2 + + 91 * + col2 + - col2 FROM tab1 AS cor0
----
5312
6122
8642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab1 AS cor0 WHERE 76 = NULL
----

query I rowsort
SELECT ALL col1 - + 2 FROM tab1
----
12
3
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT DISTINCT COUNT( * ) - 90 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT COUNT ( * ) - 90 FROM tab0
----
-87

query I rowsort
SELECT + - col2 AS col0 FROM tab1 WHERE NULL <= + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4984
SELECT DISTINCT 58 DIV + + COUNT( * ) + - 15 FROM tab0 cor0
----
4

skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT 58 / + + COUNT ( * ) + - 15 FROM tab0 cor0
----
4

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= - - ( - col0 ) * - col2 * + - 1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 = - 42
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-4987
SELECT ALL col1 DIV + col1, col1 FROM tab1
----
1
14
1
47
1
5

skipif mysql # not compatible
query II rowsort label-4987
SELECT ALL col1 / + col1, col1 FROM tab1
----
1
14
1
47
1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT DISTINCT COUNT( - 73 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4988
SELECT DISTINCT COUNT ( - 73 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 + - + col0 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4990
SELECT DISTINCT + COUNT( * ), - 84 AS col1 FROM tab1 AS cor0
----
3
-84

skipif mysql # not compatible
query II rowsort label-4990
SELECT DISTINCT + COUNT ( * ), - 84 AS col1 FROM tab1 AS cor0
----
3
-84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4991
SELECT CAST( NULL AS DECIMAL ) * - col0 / col1 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4991
SELECT CAST ( NULL AS REAL ) * - col0 / col1 col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4992
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
3

query II rowsort
SELECT DISTINCT 28 + + 4 AS col0, - col2 FROM tab1 AS cor0
----
32
-59
32
-68
32
-96

query II rowsort
SELECT - col1 * + col2 + + 18, - 51 AS col2 FROM tab0 AS cor0
----
-192
-51
-3789
-51
-81
-51

query I rowsort
SELECT ALL - col0 + - + col2 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT ALL col1 - - + col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT - SUM( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0 WHERE NULL <= + 4 * - col2 * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4997
SELECT - SUM ( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0 WHERE NULL <= + 4 * - col2 * + col1
----
NULL

query I rowsort
SELECT ALL col1 + 2 FROM tab2
----
53
69
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT ALL COUNT( ( 83 ) ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4999
SELECT ALL COUNT ( ( 83 ) ) col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT col2 + + 99 AS col2 FROM tab1
----
158
167
195

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 46 * + col1 + + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - ( - col0 ) ) * - + 61 col1 FROM tab2
----
-2806
-3904
-4575

query I rowsort
SELECT DISTINCT col2 * + col1 * + - col1 AS col2 FROM tab2
----
-237160
-260362
-59823

query I rowsort
SELECT DISTINCT + col1 * 99 - 31 FROM tab2
----
5018
6602
7592

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 12 + + 23 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 - col2 + ( - col2 ) * - + col0 / + col2 AND + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT ALL SUM( DISTINCT col1 ) AS col0 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL SUM ( DISTINCT col1 ) AS col0 FROM tab1 cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab1 AS cor0 WHERE NOT + ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT + col1 * + col2 - col1 * + - 23 AS col0 FROM tab0 cor0
----
122
5670
693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5010
SELECT DISTINCT - 45 * col0 / 25 + + 1 * + 15 * + CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT - 45 * col0 / 25 + + 1 * + 15 * + CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - + col1 * - + col2 AS col1 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT DISTINCT + ( + 24 ) FROM tab2 AS cor0
----
24

query I rowsort
SELECT DISTINCT - 23 AS col2 FROM tab1 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT ALL MAX( - + 17 ) * 61 FROM tab1
----
-1037

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL MAX ( - + 17 ) * 61 FROM tab1
----
-1037

query I rowsort
SELECT DISTINCT col2 * + - 7 FROM tab0
----
-329
-693
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5016
SELECT ALL + ( - MAX( + + col1 ) ) / + 85 * + + CAST( NULL AS SIGNED ) + + ( + 86 ) + - - 45 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL + ( - MAX ( + + col1 ) ) / + 85 * + + CAST ( NULL AS INTEGER ) + + ( + 86 ) + - - 45 AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5017
SELECT ALL col1 DIV - + col0 col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5017
SELECT ALL col1 / - + col0 col2 FROM tab2
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5018
SELECT DISTINCT + 63 DIV + 74 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5018
SELECT DISTINCT + 63 / + 74 AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT DISTINCT - COUNT( - + col1 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5019
SELECT DISTINCT - COUNT ( - + col1 ) AS col0 FROM tab1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5020
SELECT MIN( - col2 ) * + CAST( 29 AS SIGNED ) FROM tab1 AS cor0
----
-2784

skipif mysql # not compatible
query I rowsort label-5020
SELECT MIN ( - col2 ) * + CAST ( 29 AS INTEGER ) FROM tab1 AS cor0
----
-2784

query I rowsort
SELECT + 0 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT COUNT( * ) + - 90 AS col1 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-5022
SELECT COUNT ( * ) + - 90 AS col1 FROM tab2 AS cor0
----
-87

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 >= - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT DISTINCT SUM( + + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-5024
SELECT DISTINCT SUM ( + + col1 ) FROM tab2
----
195

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-51
-67
-77

query II rowsort
SELECT - 18 AS col1, - col0 + - + 51 FROM tab0 AS cor0
----
-18
-138
-18
-148
-18
-66

query II rowsort
SELECT DISTINCT + col1 AS col1, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 * + col2 / 34 + + col0 BETWEEN NULL AND col0
----

query I rowsort
SELECT ALL + + col1 * - col1 AS col2 FROM tab2 cor0 WHERE 2 IS NOT NULL
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query II rowsort label-5030
SELECT + 32, - MAX( - col0 ) * - COUNT( * ) + + ( COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
32
-135

skipif mysql # not compatible
query II rowsort label-5030
SELECT + 32, - MAX ( - col0 ) * - COUNT ( * ) + + ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
32
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT ALL + ( - + COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL + ( - + COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col2 + - - 20 AS col1 FROM tab0 AS cor0
----
119
30
67

query I rowsort
SELECT DISTINCT + - col1 + ( col0 ) - - ( col0 ) FROM tab0 AS cor0
----
-51
153
193

query I rowsort
SELECT ALL - 32 + - - col1 AS col2 FROM tab1 AS cor0
----
-18
-27
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5035
SELECT ALL col1 - + - col1 * col1 * CAST( NULL AS SIGNED ) / + + ( - + col1 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL col1 - + - col1 * col1 * CAST ( NULL AS INTEGER ) / + + ( - + col1 ) AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE 32 + - 51 - + col1 + + 40 + 23 + ( + - col2 ) * + 4 = + ( - - col0 )
----

query I rowsort
SELECT DISTINCT col1 - + 61 FROM tab1
----
-14
-47
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT ALL + ( - - MIN( + col0 ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5038
SELECT ALL + ( - - MIN ( + col0 ) ) FROM tab0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5039
SELECT 70 + + col1 * + col1 DIV - - col1 col2 FROM tab0
----
151
71
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5039
SELECT 70 + + col1 * + col1 / - - col1 col2 FROM tab0
----
151
71
91

query I rowsort
SELECT ALL col0 - - + col2 AS col2 FROM tab0
----
196
62
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, - 75 FROM tab0
----
1
-75
21
-75
81
-75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( - col0 ) + col2 + - + 88 - 62 * - col0 * + col0 + + 91 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 14 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 < - + col0 * - + col0
----

query I rowsort
SELECT + 88 * - - col2 AS col0 FROM tab2 AS cor0
----
2024
3520
5104

query I rowsort
SELECT - col0 * 34 * + - col1 FROM tab0 AS cor0
----
3298
41310
62118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5047
SELECT ALL - col1 + ( + - CAST( + col2 AS SIGNED ) ) * - - ( + col1 ) + + + col0 FROM tab0 AS cor0 WHERE NOT + 53 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL - col1 + ( + - CAST ( + col2 AS INTEGER ) ) * - - ( + col1 ) + + + col0 FROM tab0 AS cor0 WHERE NOT + 53 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - 47 ) FROM tab0
----
-47

query III rowsort
SELECT * FROM tab1 WHERE NOT 94 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5050
SELECT - CAST( - MIN( DISTINCT col2 ) AS SIGNED ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-5050
SELECT - CAST ( - MIN ( DISTINCT col2 ) AS INTEGER ) FROM tab1
----
59

query I rowsort
SELECT DISTINCT - 56 FROM tab0 WHERE NOT 54 - + - col1 IS NULL
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT DISTINCT - SUM( - col1 ) * 47 FROM tab2 AS cor0
----
9165

skipif mysql # not compatible
query I rowsort label-5052
SELECT DISTINCT - SUM ( - col1 ) * 47 FROM tab2 AS cor0
----
9165

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 19 IS NULL
----

query I rowsort
SELECT + col0 + - - col1 AS col2 FROM tab2
----
141
142
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 14 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 68 + - col0 AS col2 FROM tab2 AS cor0
----
-7
22
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT ALL - - COUNT( * ) + - COUNT( * ) col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5057
SELECT ALL - - COUNT ( * ) + - COUNT ( * ) col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5058
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( + col0 AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5058
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( + col0 AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1 AS col1, col0 AS col1 FROM tab2 AS cor0
----
51
46
67
75
77
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + - 69 col0 FROM tab1 AS cor0
----
-22
-55
-64

query III rowsort
SELECT * FROM tab0 WHERE - col1 / - col2 - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT - 43 + + COUNT( - col1 ) FROM tab0 WHERE + ( - 40 ) - - 13 IS NULL
----
-43

skipif mysql # not compatible
query I rowsort label-5062
SELECT - 43 + + COUNT ( - col1 ) FROM tab0 WHERE + ( - 40 ) - - 13 IS NULL
----
-43

query II rowsort
SELECT ALL + - col0 AS col1, col1 FROM tab2 WHERE NOT NULL IS NOT NULL AND + col0 / col2 >= NULL
----

query I rowsort
SELECT DISTINCT + ( col2 ) - - 86 + 93 + col2 * + - col0 + - + col2 AS col0 FROM tab1
----
-4717
-4836
-6009

query I rowsort
SELECT + ( col0 ) + + 18 * - 35 AS col1 FROM tab1 AS cor0
----
-539
-545
-579

query I rowsort
SELECT DISTINCT + + 49 AS col0 FROM tab1 AS cor0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-5067
SELECT - 25 DIV + col0 + - + 40 AS col2 FROM tab0 AS cor0
----
-40
-40
-41

skipif mysql # not compatible
query I rowsort label-5067
SELECT - 25 / + col0 + - + 40 AS col2 FROM tab0 AS cor0
----
-40
-40
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT DISTINCT COUNT( * ) * MAX( ALL + 2 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-5069
SELECT DISTINCT COUNT ( * ) * MAX ( ALL + 2 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 WHERE NOT + col1 + + col1 IS NULL
----
14
47
5

query II rowsort
SELECT - ( - col1 ), col0 + + + col0 AS col2 FROM tab2
----
51
92
67
150
77
128

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 0 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5073
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) NOT IN ( + col0, + col1 )
----

skipif mysql # not compatible
query III rowsort label-5073
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT IN ( + col0, + col1 )
----

query I rowsort
SELECT DISTINCT - + col1 * + - col2 FROM tab0 AS cor0
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 66 col2 FROM tab0 AS cor0
----
66

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col2 < ( NULL )
----

query II rowsort
SELECT ( + - col0 ) * + - col1 + + col1 * - - 95, + col0 FROM tab2 AS cor0
----
11390
75
12243
64
7191
46

query II rowsort
SELECT DISTINCT - col0 AS col2, - col2 + - 86 * 76 FROM tab2
----
-46
-6559
-64
-6576
-75
-6594

query III rowsort
SELECT * FROM tab2 WHERE NOT - 95 / - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5081
SELECT ALL CAST( + - col1 AS SIGNED ) FROM tab1 WHERE + 24 + + col0 <= + + 19 * col1
----
-14
-47

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL CAST ( + - col1 AS INTEGER ) FROM tab1 WHERE + 24 + + col0 <= + + 19 * col1
----
-14
-47

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( col2 IS NULL ) )
----

query II rowsort
SELECT ALL - col1 AS col0, - col0 AS col1 FROM tab2
----
-51
-46
-67
-75
-77
-64

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT - col0 / col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT ALL MAX( DISTINCT - col1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL MAX ( DISTINCT - col1 ) AS col1 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5086
SELECT DISTINCT 55 AS col1, - MAX( ALL col1 ) FROM tab0
----
55
-81

skipif mysql # not compatible
query II rowsort label-5086
SELECT DISTINCT 55 AS col1, - MAX ( ALL col1 ) FROM tab0
----
55
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5087
SELECT + col0 * col0 + - + col0 + - col0 DIV - - 78 FROM tab2
----
2070
4032
5550

skipif mysql # not compatible
query I rowsort label-5087
SELECT + col0 * col0 + - + col0 + - col0 / - - 78 FROM tab2
----
2070
4032
5550

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT - 36 + - - COUNT( * ) FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-5088
SELECT - 36 + - - COUNT ( * ) FROM tab0 AS cor0
----
-33

query I rowsort
SELECT DISTINCT - 20 + - ( + 29 ) AS col2 FROM tab2 WHERE ( col1 ) <> ( NULL )
----

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( - 79 )
----

query I rowsort
SELECT ALL 57 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
57
57
57

query III rowsort
SELECT * FROM tab0 WHERE - 43 / 2 + col2 IS NULL
----

query I rowsort
SELECT - col2 + ( col1 ) * 55 AS col1 FROM tab2
----
2782
3627
4195

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE NOT 39 IN ( col2 * - col0 + + 98 )
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 ) IN ( + 95 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT ALL - 89 * COUNT( * ) + COUNT( * ) * COUNT( * ) FROM tab0 WHERE NOT ( - col0 + + col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL - 89 * COUNT ( * ) + COUNT ( * ) * COUNT ( * ) FROM tab0 WHERE NOT ( - col0 + + col1 ) IS NOT NULL
----
0

query I rowsort
SELECT 4 + 48 FROM tab0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT COUNT( * ) + + 10 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-5099
SELECT COUNT ( * ) + + 10 FROM tab2
----
13

query I rowsort
SELECT DISTINCT - 65 + col2 FROM tab2
----
-25
-42
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5101
SELECT CAST( NULL AS SIGNED ) + + 26 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5101
SELECT CAST ( NULL AS INTEGER ) + + 26 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5102
SELECT col0 DIV 51 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5102
SELECT col0 / 51 FROM tab0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5103
SELECT - col2 DIV 20 AS col2 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-5103
SELECT - col2 / 20 AS col2 FROM tab2
----
-1
-2
-2

query I rowsort
SELECT col0 * 7 FROM tab2
----
322
448
525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5105
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE ( 72 ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-5105
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE ( 72 ) <= NULL
----

query I rowsort
SELECT DISTINCT - col1 + + 7 FROM tab1
----
-40
-7
2

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 / + col0 + col2 <> ( col1 ) - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT - MIN( + 36 ) * COUNT( * ) FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-5108
SELECT - MIN ( + 36 ) * COUNT ( * ) FROM tab2
----
-108

query I rowsort
SELECT DISTINCT 3 + - 23 * col2 AS col0 FROM tab1
----
-1354
-1561
-2205

onlyif mysql # DIV for integer division: 
query I rowsort label-5110
SELECT ALL + col2 DIV + col1 AS col1 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-5110
SELECT ALL + col2 / + col1 AS col1 FROM tab1
----
1
11
6

query I rowsort
SELECT - 48 + 78 FROM tab2
----
30
30
30

onlyif mysql # DIV for integer division: 
query I rowsort label-5112
SELECT ALL ( col1 ) DIV - 96 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL ( col1 ) / - 96 FROM tab1
----
0
0
0

query I rowsort
SELECT + col2 + + ( - ( - col1 ) - + 42 * - col2 ) FROM tab0
----
2102
4258
451

onlyif mysql # DIV for integer division: 
query I rowsort label-5114
SELECT DISTINCT col2 DIV 2 FROM tab0
----
23
49
5

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT col2 / 2 FROM tab0
----
23
49
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 col0 FROM tab1
----
-12
-12
-12

query I rowsort
SELECT 59 * 87 FROM tab1 cor0
----
5133
5133
5133

query I rowsort
SELECT + ( + col2 ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 45 - + 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT - 72 * - COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
648

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5118
SELECT - 72 * - COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
648

query I rowsort
SELECT DISTINCT + 21 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5120
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + CAST( - 48 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5120
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + CAST ( - 48 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5121
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 WHERE NOT ( - col2 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5121
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 WHERE NOT ( - col2 ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT 64 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 60 NOT BETWEEN 17 / - 77 AND ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5124
SELECT col0 / col1 FROM tab0 AS cor0 WHERE NOT 53 * - CAST( NULL AS SIGNED ) - + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5124
SELECT col0 / col1 FROM tab0 AS cor0 WHERE NOT 53 * - CAST ( NULL AS INTEGER ) - + col0 IS NULL
----

query I rowsort
SELECT ( - 42 ) + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
25
35
9

query I rowsort
SELECT - - col2 + + 45 AS col1 FROM tab0 AS cor0
----
144
55
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 73 col1 FROM tab2
----
1679
2920
4234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5128
SELECT ALL ( - SUM( - col0 ) ) AS col2 FROM tab0 WHERE NOT ( - CAST( 42 AS SIGNED ) ) >= col2
----
199

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL ( - SUM ( - col0 ) ) AS col2 FROM tab0 WHERE NOT ( - CAST ( 42 AS INTEGER ) ) >= col2
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5129
SELECT ALL CAST( - + col1 AS SIGNED ) AS col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL CAST ( - + col1 AS INTEGER ) AS col0 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT - COUNT( ALL - + col1 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5130
SELECT - COUNT ( ALL - + col1 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5131
SELECT - SUM( ALL + + col1 ) DIV - COUNT( * ) FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-5131
SELECT - SUM ( ALL + + col1 ) / - COUNT ( * ) FROM tab2
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5132
SELECT - COUNT( * ) DIV 52 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5132
SELECT - COUNT ( * ) / 52 AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE NOT - col1 IS NULL
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN 29 * col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 + - - col2 + + 96 AS col2 FROM tab2 cor0
----
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( ( col2 ) * - 56 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5137
SELECT ALL - - 43 * + + col2 + + CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5137
SELECT ALL - - 43 * + + col2 + + CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5138
SELECT ALL + 95 DIV - - col0 + col0 AS col0 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL + 95 / - - col0 + col0 AS col0 FROM tab1 AS cor0
----
52
86
92

query I rowsort
SELECT - 98 + - 39 FROM tab0 AS cor0
----
-137
-137
-137

query I rowsort
SELECT col0 * 22 + + 17 + col1 FROM tab1 AS cor0
----
1153
1892
2066

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NOT ( NULL ) NOT BETWEEN col1 + - col2 * - col2 AND NULL
----

query I rowsort
SELECT - 70 + col2 AS col1 FROM tab0 AS cor0
----
-23
-60
29

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE ( + col1 ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT DISTINCT SUM( DISTINCT - + 85 ) + COUNT( * ) AS col2 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT SUM ( DISTINCT - + 85 ) + COUNT ( * ) AS col2 FROM tab0
----
-82

query I rowsort
SELECT + 53 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT + + 63 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT + + 72 * - 74 AS col0 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f56cca28a0ddf2bbd706c90fad8e08a1

query I rowsort
SELECT 37 + + col0 FROM tab2
----
101
112
83

onlyif mysql # DIV for integer division: 
query I rowsort label-5149
SELECT ALL col2 DIV - 28 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL col2 / - 28 FROM tab2
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT DISTINCT + 83 * - - ( - COUNT( * ) ) + 59 FROM tab1 cor0
----
-190

skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT + 83 * - - ( - COUNT ( * ) ) + 59 FROM tab1 cor0
----
-190

query I rowsort
SELECT DISTINCT - 14 * - + col0 * col1 AS col1 FROM tab1 AS cor0
----
5950
59878
9996

query I rowsort
SELECT - - 64 * - + col1 FROM tab0 AS cor0
----
-1344
-5184
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5153
SELECT ALL COUNT( DISTINCT - - col0 ) / + - CAST( NULL AS SIGNED ) * 20 + + 34 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5153
SELECT ALL COUNT ( DISTINCT - - col0 ) / + - CAST ( NULL AS INTEGER ) * 20 + + 34 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN ( + 75 ) AND col1
----
81

query I rowsort
SELECT DISTINCT + - col2 + + 79 FROM tab2 cor0
----
21
39
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5156
SELECT col0 / CAST( NULL AS SIGNED ) * + col2 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT col0 / CAST ( NULL AS INTEGER ) * + col2 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5157
SELECT col2 DIV + col0 + - - col2 * + col2 FROM tab0 AS cor0
----
100
2212
9802

skipif mysql # not compatible
query I rowsort label-5157
SELECT col2 / + col0 + - - col2 * + col2 FROM tab0 AS cor0
----
100
2212
9802

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT - SUM( - + col0 ) * + 25 FROM tab2 AS cor0
----
4625

skipif mysql # not compatible
query I rowsort label-5158
SELECT - SUM ( - + col0 ) * + 25 FROM tab2 AS cor0
----
4625

query II rowsort
SELECT - col0 AS col1, col1 AS col2 FROM tab0 cor0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT DISTINCT + COUNT( * ) + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5160
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) FROM tab0
----
6

query II rowsort
SELECT DISTINCT col2 + + 87, ( - 46 ) AS col1 FROM tab0
----
134
-46
186
-46
97
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 - - col1 col2, 38 AS col2 FROM tab1
----
10
38
28
38
94
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 col1 FROM tab0
----
68
68
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5164
SELECT ALL - col2 DIV - ( ( - col2 ) ) AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL - col2 / - ( ( - col2 ) ) AS col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT 47 FROM tab2 WHERE NOT - - col2 * + 68 + 58 + col2 * - 88 IS NULL
----
47
47
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 81 + - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT NULL < ( NULL ) ) )
----

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5169
SELECT * FROM tab0 WHERE NOT - 40 * + col1 + + CAST( 74 AS SIGNED ) <> + 51 * - 50
----

skipif mysql # not compatible
query III rowsort label-5169
SELECT * FROM tab0 WHERE NOT - 40 * + col1 + + CAST ( 74 AS INTEGER ) <> + 51 * - 50
----

query II rowsort
SELECT ALL 96, col0 AS col2 FROM tab1
----
96
51
96
85
96
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5171
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT DISTINCT + MIN( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5172
SELECT DISTINCT + MIN ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT col0 * + col2 FROM tab1 AS cor0 WHERE NOT + 59 IS NOT NULL
----

query II rowsort
SELECT ALL - col1 AS col0, - col0 + col0 FROM tab0 AS cor0
----
-1
0
-21
0
-81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT ALL + ( - + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL + ( - + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT + - COUNT( - 49 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5176
SELECT + - COUNT ( - 49 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col1 + - col1 FROM tab2 AS cor0 WHERE + 38 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5178
SELECT ALL + COUNT( * ) + - - ( SUM( CAST( - col1 AS SIGNED ) ) ) AS col1 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL + COUNT ( * ) + - - ( SUM ( CAST ( - col1 AS INTEGER ) ) ) AS col1 FROM tab1 AS cor0
----
-63

query I rowsort
SELECT - ( - 38 ) FROM tab1 AS cor0
----
38
38
38

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 * - 96 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT - + MIN( 48 ) FROM tab2 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-5181
SELECT - + MIN ( 48 ) FROM tab2 cor0
----
-48

query I rowsort
SELECT DISTINCT col0 + + - 55 FROM tab0 AS cor0
----
-40
32
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT ALL - - SUM( ALL - 28 ) FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL - - SUM ( ALL - 28 ) FROM tab2 AS cor0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5184
SELECT DISTINCT + col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT + col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5185
SELECT - COUNT( * ) AS col1, 49 + + + 37 FROM tab0
----
-3
86

skipif mysql # not compatible
query II rowsort label-5185
SELECT - COUNT ( * ) AS col1, 49 + + + 37 FROM tab0
----
-3
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT ( COUNT( * ) ) FROM tab1 WHERE NULL BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5186
SELECT ( COUNT ( * ) ) FROM tab1 WHERE NULL BETWEEN NULL AND ( NULL )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 + 31 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 75 * col0 * 48 * - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - + 60 * col2 / 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT + ( + 79 ) + + COUNT( - 90 ) AS col0 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-5190
SELECT + ( + 79 ) + + COUNT ( - 90 ) AS col0 FROM tab0
----
82

query II rowsort
SELECT + 56 AS col1, col1 - 61 + col0 * col2 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
56
1048
56
2576
56
4356

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5192
SELECT DISTINCT col1 + - CAST( + col1 AS SIGNED ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5192
SELECT DISTINCT col1 + - CAST ( + col1 AS INTEGER ) FROM tab1
----
0

query I rowsort
SELECT ALL - + 39 * - col0 FROM tab2 AS cor0
----
1794
2496
2925

query I rowsort
SELECT ALL col0 + - + col0 * + col0 AS col2 FROM tab0 AS cor0
----
-210
-7482
-9312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5195
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL OR - 33 < - 91 + CAST( NULL AS SIGNED ) - - col0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5195
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL OR - 33 < - 91 + CAST ( NULL AS INTEGER ) - - col0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT DISTINCT COUNT( col0 ) + + 49 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-5196
SELECT DISTINCT COUNT ( col0 ) + + 49 FROM tab2 AS cor0
----
52

query I rowsort
SELECT DISTINCT - 15 * + - 47 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
705

query I rowsort
SELECT + ( - - col1 ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT col2 + 28 FROM tab2 cor0
----
51
68
86

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * + ( + col2 ) >= + col1
----

query I rowsort
SELECT - + 99 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT ALL 71 - - col1 + - col2 FROM tab2
----
108
80
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5203
SELECT 60 DIV col0 - col0 AS col1 FROM tab1
----
-50
-85
-91

skipif mysql # not compatible
query I rowsort label-5203
SELECT 60 / col0 - col0 AS col1 FROM tab1
----
-50
-85
-91

query I rowsort
SELECT ALL 18 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( ( + 38 ) + - col2 / + 46 ) >= + 63 AND NOT col2 BETWEEN + col2 + col1 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * + col0 - - 35 + - col1 * 50 * 38 AS col0 FROM tab2
----
-122915
-143705
-95807

onlyif mysql # DIV for integer division: 
query I rowsort label-5207
SELECT col0 DIV + 56 - ( 98 ) AS col0 FROM tab0 AS cor0
----
-97
-97
-98

skipif mysql # not compatible
query I rowsort label-5207
SELECT col0 / + 56 - ( 98 ) AS col0 FROM tab0 AS cor0
----
-97
-97
-98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col0 AND NULL
----

query I rowsort
SELECT col1 - - - col2 * - + col0 AS col2 FROM tab0 AS cor0
----
786
891
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT - + ( + 40 ) + - MAX( col0 ) AS col1 FROM tab1 cor0
----
-131

skipif mysql # not compatible
query I rowsort label-5210
SELECT - + ( + 40 ) + - MAX ( col0 ) AS col1 FROM tab1 cor0
----
-131

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 + + ( - + col1 ) col2 FROM tab0 cor0
----
-4
56
76

query I rowsort
SELECT DISTINCT - + 64 * + col1 + - - col1 + - col0 FROM tab1 AS cor0 WHERE NOT col2 * - - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT + 7 + ( - MAX( + 43 ) ) FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-5214
SELECT + 7 + ( - MAX ( + 43 ) ) FROM tab2 AS cor0
----
-36

query I rowsort
SELECT DISTINCT ( + + col2 ) FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 65 <> NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - col2 * 56 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 * 26 = - + 56
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5219
SELECT 21 DIV ( COUNT( * ) ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-5219
SELECT 21 / ( COUNT ( * ) ) FROM tab2
----
7

query I rowsort
SELECT 55 * col2 FROM tab0 WHERE NOT + + 66 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5221
SELECT ALL 45 DIV + 94 * - ( - + col1 ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL 45 / + 94 * - ( - + col1 ) AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + col2 * - - 67 FROM tab1
----
3953
4556
6432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 6, col0 col2 FROM tab2 AS cor0
----
6
46
6
64
6
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5224
SELECT ALL CAST( NULL AS SIGNED ) AS col1, + col1 col0 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5224
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, + col1 col0 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT ALL + MAX( ALL - col2 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL + MAX ( ALL - col2 ) AS col1 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT + COUNT( * ) * - + 26 * - 66 AS col2 FROM tab0
----
5148

skipif mysql # not compatible
query I rowsort label-5226
SELECT + COUNT ( * ) * - + 26 * - 66 AS col2 FROM tab0
----
5148

onlyif mysql # DIV for integer division: 
query II rowsort label-5227
SELECT + col0 * + col2, + 59 DIV - - col2 AS col0 FROM tab1
----
4896
0
5015
1
6188
0

skipif mysql # not compatible
query II rowsort label-5227
SELECT + col0 * + col2, + 59 / - - col2 AS col0 FROM tab1
----
4896
0
5015
1
6188
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 55 col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= 85
----

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT NULL <> 30
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5231
SELECT DISTINCT - + 71 + MAX( DISTINCT + col0 ) - - CAST( NULL AS SIGNED ) AS col0, COUNT( * ) * ( - 99 ) AS col1 FROM tab2 cor0
----
NULL
-297

skipif mysql # not compatible
query II rowsort label-5231
SELECT DISTINCT - + 71 + MAX ( DISTINCT + col0 ) - - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) * ( - 99 ) AS col1 FROM tab2 cor0
----
NULL
-297

query II rowsort
SELECT DISTINCT + + 96 - col1, col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT 84 + col2 FROM tab2 AS cor0
----
107
124
142

onlyif mysql # aggregate syntax: 
query II rowsort label-5234
SELECT ALL + + COUNT( ( + ( - - ( - - col2 ) ) ) ), + COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5234
SELECT ALL + + COUNT ( ( + ( - - ( - - col2 ) ) ) ), + COUNT ( * ) FROM tab0 AS cor0
----
3
3

query II rowsort
SELECT col0, - ( col2 ) * - col1 AS col0 FROM tab1
----
51
1344
85
295
91
3196

query I rowsort
SELECT - 50 * + + col2 AS col2 FROM tab2
----
-1150
-2000
-2900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, + col1 AS col0 FROM tab1
----
-51
14
-85
5
-91
47

query III rowsort
SELECT * FROM tab1 WHERE - 22 * + col2 + + 77 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5239
SELECT + CAST( 71 AS SIGNED ) AS col1 FROM tab1
----
71
71
71

skipif mysql # not compatible
query I rowsort label-5239
SELECT + CAST ( 71 AS INTEGER ) AS col1 FROM tab1
----
71
71
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5240
SELECT - MAX( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5240
SELECT - MAX ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5241
SELECT 73 * - - col2 DIV + col2 AS col1 FROM tab0
----
73
73
73

skipif mysql # not compatible
query I rowsort label-5241
SELECT 73 * - - col2 / + col2 AS col1 FROM tab0
----
73
73
73

query II rowsort
SELECT DISTINCT - 32, + col2 AS col0 FROM tab1
----
-32
59
-32
68
-32
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5243
SELECT 14 DIV col2 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5243
SELECT 14 / col2 AS col1 FROM tab0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5244
SELECT + 68 * 32 DIV + col2 - + col2 FROM tab2 AS cor0
----
-21
14
71

skipif mysql # not compatible
query I rowsort label-5244
SELECT + 68 * 32 / + col2 - + col2 FROM tab2 AS cor0
----
-21
14
71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 38 * - - col2 - - col1 = - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + - col2 * 43 col2 FROM tab0 cor0
----
-2006
-343
-4160

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - + 65 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT ALL + 25 - + - ( SUM( - 81 ) ) FROM tab1
----
-218

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL + 25 - + - ( SUM ( - 81 ) ) FROM tab1
----
-218

query I rowsort
SELECT DISTINCT - + col0 * + 3 AS col2 FROM tab2 AS cor0
----
-138
-192
-225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5251
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT DISTINCT + COUNT( * ) * - MAX( ALL + col0 ) FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-5252
SELECT DISTINCT + COUNT ( * ) * - MAX ( ALL + col0 ) FROM tab2 AS cor0
----
-225

onlyif mysql # DIV for integer division: 
query I rowsort label-5253
SELECT + col1 DIV - - col1 + + col1 FROM tab2 AS cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-5253
SELECT + col1 / - - col1 + + col1 FROM tab2 AS cor0
----
52
68
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 * - col0 col1, col0 AS col0 FROM tab2 AS cor0
----
2116
46
4096
64
5625
75

query I rowsort
SELECT ALL - col0 * - 82 AS col2 FROM tab1 AS cor0
----
4182
6970
7462

query II rowsort
SELECT DISTINCT + col1, 16 FROM tab1 AS cor0
----
14
16
47
16
5
16

query II rowsort
SELECT ALL + 74, + col2 FROM tab1 AS cor0
----
74
59
74
68
74
96

query I rowsort
SELECT ALL + - col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 + 5 / - col0, + 4 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5259
SELECT CAST( - - CAST( + 50 AS SIGNED ) AS SIGNED ) + - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-14
-25
4

skipif mysql # not compatible
query I rowsort label-5259
SELECT CAST ( - - CAST ( + 50 AS INTEGER ) AS INTEGER ) + - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-14
-25
4

query I rowsort
SELECT DISTINCT - 85 FROM tab2, tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT DISTINCT - 97 * - - MIN( - 71 ) FROM tab2
----
6887

skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT - 97 * - - MIN ( - 71 ) FROM tab2
----
6887

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 col1 FROM tab0
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT ALL + COUNT( * ) col0 FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5263
SELECT ALL + COUNT ( * ) col0 FROM tab0, tab2 AS cor0
----
9

query I rowsort
SELECT ALL - 47 AS col1 FROM tab1 cor0
----
-47
-47
-47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT + + 51 * col2 + + + 72 FROM tab1 AS cor0
----
3081
3540
4968

query I rowsort
SELECT DISTINCT + col1 + col1 * - ( + col1 ) FROM tab1 cor0 WHERE ( + 61 ) BETWEEN ( + 35 ) AND NULL
----

query I rowsort
SELECT ALL + - col1 * + col2 + + 53 FROM tab1 AS cor0
----
-1291
-242
-3143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col2 AS col1, + 52 * + + col1 * - - col2 col1, col0 FROM tab1 cor0
----
9 values hashing to 05c149f6029fc2fa57706791be2d8635

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - + 78 col1 FROM tab2 AS cor0
----
-20
-38
-55

query I rowsort
SELECT ALL - - 18 * 95 + + - 6 FROM tab0 AS cor0
----
1704
1704
1704

query I rowsort
SELECT ALL - + col1 + 23 FROM tab2 AS cor0
----
-28
-44
-54

query I rowsort
SELECT DISTINCT 46 + - - ( + col0 ) FROM tab2
----
110
121
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT 55 + - MAX( ALL col1 ) FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-5274
SELECT 55 + - MAX ( ALL col1 ) FROM tab2
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-5275
SELECT - col0 DIV + 33 + - - 53 FROM tab1
----
51
51
52

skipif mysql # not compatible
query I rowsort label-5275
SELECT - col0 / + 33 + - - 53 FROM tab1
----
51
51
52

query II rowsort
SELECT DISTINCT ( - - 9 ) AS col1, - col2 + col0 FROM tab2
----
9
17
9
23
9
24

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT - ( + col0 ) > + col1 * - + col1 * - + col1
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5278
SELECT - + COUNT( + + col2 ) + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5278
SELECT - + COUNT ( + + col2 ) + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col0 + + 44 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 3
----

query I rowsort
SELECT + col1 * + 54 FROM tab0 cor0
----
1134
4374
54

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
10
47
99

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46
64
75

query I rowsort
SELECT DISTINCT - 57 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-57

query II rowsort
SELECT - col0 + - 54 AS col2, 2 AS col2 FROM tab1 WHERE NOT - col1 = + + col2
----
-105
2
-139
2
-145
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5285
SELECT ALL 26 DIV - 98 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL 26 / - 98 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) >= + - 5 / 55 + + col0 + + 19 + - ( 90 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT MAX( + col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5287
SELECT MAX ( + col1 ) AS col0 FROM tab0 AS cor0
----
81

query II rowsort
SELECT DISTINCT - - 64 AS col0, col0 AS col0 FROM tab0 cor0
----
64
15
64
87
64
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col0 col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 18 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1, col1 + - col1 - 60 FROM tab2
----
51
-60
67
-60
77
-60

query II rowsort
SELECT ALL col1 AS col2, + col1 AS col1 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT col0 * - 4 FROM tab2
----
-184
-256
-300

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 87 * + + 99 - + 65 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT ALL + MIN( DISTINCT - + col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL + MIN ( DISTINCT - + col2 ) FROM tab2
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 9 col1 FROM tab1
----
126
423
45

onlyif mysql # aggregate syntax: 
query II rowsort label-5298
SELECT + COUNT( * ), COUNT( * ) AS col1 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-5298
SELECT + COUNT ( * ), COUNT ( * ) AS col1 FROM tab1
----
3
3

query II rowsort
SELECT - col1 AS col1, col2 * col2 AS col0 FROM tab2
----
-51
529
-67
3364
-77
1600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5300
SELECT + 33 AS col0 FROM tab0 WHERE NOT col2 >= col1 * - 47 + - col2 + + 49 * + - CAST( - 95 AS SIGNED )
----
33
33
33

skipif mysql # not compatible
query I rowsort label-5300
SELECT + 33 AS col0 FROM tab0 WHERE NOT col2 >= col1 * - 47 + - col2 + + 49 * + - CAST ( - 95 AS INTEGER )
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT ALL MAX( ALL + 17 ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL MAX ( ALL + 17 ) FROM tab0
----
17

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 < col2
----
97
1
99

query I rowsort
SELECT ALL + + 9 * - - 74 * + col0 AS col1 FROM tab1 cor0
----
33966
56610
60606

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT DISTINCT + - COUNT( ALL + col1 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5304
SELECT DISTINCT + - COUNT ( ALL + col1 ) col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT COUNT( * ) * + 15 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-5305
SELECT COUNT ( * ) * + 15 FROM tab2
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-5306
SELECT + 4 DIV + - 6 * 76 * 69 + + - col2, col1 AS col2 FROM tab0
----
-10
21
-47
81
-99
1

skipif mysql # not compatible
query II rowsort label-5306
SELECT + 4 / + - 6 * 76 * 69 + + - col2, col1 AS col2 FROM tab0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT ALL col1 * + 81 FROM tab2
----
4131
5427
6237

query I rowsort
SELECT ALL + col1 * - 10 FROM tab0 AS cor0
----
-10
-210
-810

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5309
SELECT + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5309
SELECT + CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE + col1 IS NULL
----

query II rowsort
SELECT DISTINCT + - col1 + - - 88, col0 FROM tab2 cor0
----
11
64
21
75
37
46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT SUM( DISTINCT - col1 ) FROM tab1 cor0 WHERE NULL IS NULL
----
-66

skipif mysql # not compatible
query I rowsort label-5312
SELECT SUM ( DISTINCT - col1 ) FROM tab1 cor0 WHERE NULL IS NULL
----
-66

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 * - col0 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT - COUNT( ALL + col1 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5314
SELECT - COUNT ( ALL + col1 ) FROM tab2 cor0
----
-3

query I rowsort
SELECT + - 66 * + + col2 AS col1 FROM tab0 AS cor0
----
-3102
-6534
-660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5316
SELECT DISTINCT - col2 + - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5316
SELECT DISTINCT - col2 + - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, - 15 - - col2 + + ( 61 ) * + col2 FROM tab2
----
51
1411
67
3581
77
2465

query III rowsort
SELECT ALL * FROM tab2 WHERE 11 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL <> 6 * + - col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 63 / + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 55 * + col0 AS col0 FROM tab2
----
2530
3520
4125

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT ALL + + MIN( ALL - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL + + MIN ( ALL - col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5323
SELECT - + 58 DIV - + COUNT( * ) + + - ( + COUNT( * ) ) FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-5323
SELECT - + 58 / - + COUNT ( * ) + + - ( + COUNT ( * ) ) FROM tab2 AS cor0
----
16

query I rowsort
SELECT ALL - + col2 * + col2 + + col1 AS col2 FROM tab1 AS cor0
----
-3476
-4577
-9202

onlyif mysql # DIV for integer division: 
query I rowsort label-5325
SELECT DISTINCT 62 DIV + col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT 62 / + col2 FROM tab0
----
0
1
6

query I rowsort
SELECT - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 55 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - - 14 NOT BETWEEN + col2 AND - ( - 55 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5328
SELECT DISTINCT CAST( + 0 AS SIGNED ), - COUNT( * ) AS col0 FROM tab0 AS cor0
----
0
-3

skipif mysql # not compatible
query II rowsort label-5328
SELECT DISTINCT CAST ( + 0 AS INTEGER ), - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 88 * col1 + - + 14 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 52 AS col0 FROM tab1 AS cor0
----
52
52
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5331
SELECT * FROM tab0 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5331
SELECT * FROM tab0 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab2 AS cor0 WHERE NOT - 69 IS NULL
----
51
67
77

query I rowsort
SELECT + col0 * - 61 FROM tab1
----
-3111
-5185
-5551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5334
SELECT DISTINCT - COUNT( ALL CAST( col2 AS SIGNED ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT - COUNT ( ALL CAST ( col2 AS INTEGER ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT MIN( - 53 ) * + 82 FROM tab1
----
-4346

skipif mysql # not compatible
query I rowsort label-5335
SELECT MIN ( - 53 ) * + 82 FROM tab1
----
-4346

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT MAX( 60 ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-5336
SELECT MAX ( 60 ) FROM tab2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT COUNT( - + col2 ) * - MAX( DISTINCT + - col1 ) * COUNT( * ) AS col0 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-5337
SELECT COUNT ( - + col2 ) * - MAX ( DISTINCT + - col1 ) * COUNT ( * ) AS col0 FROM tab1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT - - 11 + + ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-5338
SELECT - - 11 + + ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT ALL + 43 * - 77 + - MIN( ALL + + 48 ) FROM tab1 AS cor0
----
-3359

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL + 43 * - 77 + - MIN ( ALL + + 48 ) FROM tab1 AS cor0
----
-3359

query I rowsort
SELECT ALL + col2 + - - 94 FROM tab1 cor0
----
153
162
190

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5342
SELECT COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL - ( - 69 ) + + + col0 AS col2 FROM tab2
----
115
133
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 14 col2 FROM tab1
----
1344
826
952

query I rowsort
SELECT DISTINCT ( + 48 ) FROM tab0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5346
SELECT ALL + CAST( NULL AS SIGNED ) * ( - - col0 ) * + 12 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5346
SELECT ALL + CAST ( NULL AS INTEGER ) * ( - - col0 ) * + 12 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 27 - - 67 AS col0 FROM tab0 AS cor0
----
94
94
94

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * - - col1 NOT IN ( col0 + 68, col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = col2
----

query I rowsort
SELECT ALL col1 + - + col2 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT ALL 13 - + 29 FROM tab1 cor0
----
-16
-16
-16

query I rowsort
SELECT + + col2 * + 17 + - col0 + - + col1 FROM tab1 AS cor0
----
1018
1567
913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col0 + - col0 AS col1, col1 col2, + - col0 col1 FROM tab0
----
9 values hashing to 1477aa70a1796473aa0cb031845373d3

query I rowsort
SELECT 36 FROM tab1 WHERE NULL <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT DISTINCT - 84 + + COUNT( * ) FROM tab1 WHERE NULL > + + 79 + - col0
----
-84

skipif mysql # not compatible
query I rowsort label-5355
SELECT DISTINCT - 84 + + COUNT ( * ) FROM tab1 WHERE NULL > + + 79 + - col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT 94 + + COUNT( * ) - - + COUNT( * ) AS col2 FROM tab1
----
100

skipif mysql # not compatible
query I rowsort label-5356
SELECT 94 + + COUNT ( * ) - - + COUNT ( * ) AS col2 FROM tab1
----
100

onlyif mysql # DIV for integer division: 
query II rowsort label-5357
SELECT ALL - col0 - - - col1 AS col2, + col1 DIV - 64 AS col2 FROM tab2
----
-141
-1
-142
-1
-97
0

skipif mysql # not compatible
query II rowsort label-5357
SELECT ALL - col0 - - - col1 AS col2, + col1 / - 64 AS col2 FROM tab2
----
-141
-1
-142
-1
-97
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5358
SELECT 35 + + col0 / - + col0 * col2 * - CAST( NULL AS DECIMAL ) * col1 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5358
SELECT 35 + + col0 / - + col0 * col2 * - CAST ( NULL AS REAL ) * col1 col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 40 AS col2 FROM tab1 cor0
----
-40
-40
-40

query I rowsort
SELECT ALL ( - + 1 ) AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col2 col0 FROM tab0
----
10
10
47
47
99
99

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5363
SELECT - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - - 40 - - + 13 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5365
SELECT DISTINCT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) / - 71 * + ( - ( - col0 ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5365
SELECT DISTINCT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) / - 71 * + ( - ( - col0 ) ) IS NOT NULL
----

query II rowsort
SELECT col0, 35 AS col1 FROM tab2
----
46
35
64
35
75
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col1, 29 col1 FROM tab1 AS cor0
----
51
29
85
29
91
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT ALL SUM( ( col0 ) ) FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
185

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL SUM ( ( col0 ) ) FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 4 col0 FROM tab2 AS cor0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5370
SELECT - col1 / - 97 + + - CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT - col1 / - 97 + + - CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > + col1
----

query I rowsort
SELECT ALL + 60 + - + col2 AS col1 FROM tab1 AS cor0
----
-36
-8
1

query III rowsort
SELECT * FROM tab1 WHERE NOT - 4 <> NULL
----

query I rowsort
SELECT DISTINCT 95 AS col0 FROM tab1
----
95

query I rowsort
SELECT DISTINCT - 85 AS col2 FROM tab0
----
-85

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 5 * col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 39 ) + - 53 > + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT ALL - ( + - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5379
SELECT ALL - ( + - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5380
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5380
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 35 - - ( - col2 ) / col2 + - col1 BETWEEN + - col2 AND - col0
----
87
21
10
97
1
99

query I rowsort
SELECT ALL + 96 AS col0 FROM tab2 cor0
----
96
96
96

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE - col2 <= - - 66 * + col1
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5385
SELECT ALL + ( CAST( + - col2 AS SIGNED ) ) col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5385
SELECT ALL + ( CAST ( + - col2 AS INTEGER ) ) col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL - col2 + + - 84 FROM tab0 AS cor0
----
-131
-183
-94

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + - - col1 * - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + 83 FROM tab1
----
130
88
97

query I rowsort
SELECT + col1 - + col0 - + col1 * 80 AS col1 FROM tab1
----
-1157
-3804
-480

query I rowsort
SELECT DISTINCT col1 * + col2 + - 8 AS col2 FROM tab1
----
1336
287
3188

query I rowsort
SELECT + 95 AS col0 FROM tab0 WHERE NULL IS NULL
----
95
95
95

query I rowsort
SELECT ALL 77 - - 27 * - col0 AS col1 FROM tab2
----
-1165
-1651
-1948

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE NOT + - 84 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT COUNT( * ) * + MIN( 33 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5395
SELECT COUNT ( * ) * + MIN ( 33 ) FROM tab0 AS cor0
----
99

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - ( - col2 ) < - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * + 57 AS col2 FROM tab2 AS cor0
----
2622
3648
4275

query I rowsort
SELECT ALL - + col1 + col1 + 8 + + 77 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 * col1 > NULL
----

query I rowsort
SELECT - col1 * + 66 - - - col0 * - 5 * - + 81 * - col0 * col1 / - - col0 * col1 + - col0 FROM tab2 WHERE NOT ( NOT ( NULL ) <= + 32 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT ALL + 80 * - + MAX( + 45 ) FROM tab2
----
-3600

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL + 80 * - + MAX ( + 45 ) FROM tab2
----
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5401
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT ALL + col1 * - 92 * - 22 FROM tab2
----
103224
135608
155848

query II rowsort
SELECT - + ( col0 ), col2 AS col0 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT - ( - COUNT( - col1 ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5404
SELECT - ( - COUNT ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT + - COUNT( col0 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5405
SELECT + - COUNT ( col0 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5406
SELECT DISTINCT + COUNT( * ) * + MIN( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT + COUNT ( * ) * + MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 9 * - ( ( + + 86 ) ) AS col0 FROM tab1 AS cor0
----
-774
-774
-774

query I rowsort
SELECT ( + 38 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5409
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + CAST( NULL AS SIGNED ), + col0 * col2, + + col1, col2 * + col0 )
----

skipif mysql # not compatible
query III rowsort label-5409
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + CAST ( NULL AS INTEGER ), + col0 * col2, + + col1, col2 * + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5410
SELECT * FROM tab2 WHERE NOT + + col2 * - - col2 + col2 + - - CAST( - + col0 AS SIGNED ) + - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5410
SELECT * FROM tab2 WHERE NOT + + col2 * - - col2 + col2 + - - CAST ( - + col0 AS INTEGER ) + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT ALL COUNT( 68 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5411
SELECT ALL COUNT ( 68 ) col0 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col0 + - col2 - col0 / - col0 * - ( + + 75 ) * + + col0 - + + col2 col2 FROM tab2 WHERE NOT NULL < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT - 56 + - COUNT( - col0 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-5413
SELECT - 56 + - COUNT ( - col0 ) FROM tab1
----
-59

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE NOT NULL IN ( + - col2 + - col0, ( - ( + - col0 ) ), + - 50 )
----

query I rowsort
SELECT + 26 * - col2 + + col1 + - col0 AS col1 FROM tab0 AS cor0
----
-1156
-2670
-326

query I rowsort
SELECT - + col0 + 39 AS col0 FROM tab0 AS cor0
----
-48
-58
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5417
SELECT DISTINCT CAST( + - col1 AS SIGNED ) + + col0, col1 col2 FROM tab0 AS cor0
----
-66
81
66
21
96
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5417
SELECT DISTINCT CAST ( + - col1 AS INTEGER ) + + col0, col1 col2 FROM tab0 AS cor0
----
-66
81
66
21
96
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( - 37 ) IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5419
SELECT - CAST( - CAST( + col2 AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5419
SELECT - CAST ( - CAST ( + col2 AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT NULL < - ( + 7 )
----
0

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT NULL < - ( + 7 )
----
0

query III rowsort
SELECT * FROM tab0 WHERE + + 63 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 - - + 22 AS col0 FROM tab1 AS cor0
----
107
113
73

query I rowsort
SELECT ALL - + 84 AS col1 FROM tab1 AS cor0
----
-84
-84
-84

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + + 38 * col0 + - + 63 * - 51 = - col0
----

query I rowsort
SELECT + + 92 - + + col1 FROM tab2 cor0
----
15
25
41

query I rowsort
SELECT + + 25 * - col0 - - - col0 AS col0 FROM tab2 AS cor0
----
-1196
-1664
-1950

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT ALL - - ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL - - ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5428
SELECT DISTINCT - - col0 * - 41 + - 45 + - col1 * col2 DIV - col0 AS col2 FROM tab2 AS cor0
----
-1906
-2621
-3069

skipif mysql # not compatible
query I rowsort label-5428
SELECT DISTINCT - - col0 * - 41 + - 45 + - col1 * col2 / - col0 AS col2 FROM tab2 AS cor0
----
-1906
-2621
-3069

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 13 col2 FROM tab1 AS cor0
----
18
27
60

query I rowsort
SELECT - + col1 + - 33 - + col2 + - 84 * - 26 FROM tab0 AS cor0
----
2023
2051
2120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5431
SELECT - + 31 * - + CAST( - 56 AS SIGNED ) + - COUNT( * ) * + 51 + + COUNT( * ) DIV 40 col0 FROM tab2 AS cor0
----
-1889

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5431
SELECT - + 31 * - + CAST ( - 56 AS INTEGER ) + - COUNT ( * ) * + 51 + + COUNT ( * ) / 40 col0 FROM tab2 AS cor0
----
-1889

query I rowsort
SELECT - col0 - 85 * + ( col0 ) AS col0 FROM tab2 AS cor0 WHERE col2 > col1 * + col1
----

query I rowsort
SELECT - + col2 + + 95 * - - col2 AS col2 FROM tab0 AS cor0
----
4418
9306
940

onlyif mysql # DIV for integer division: 
query I rowsort label-5434
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN 49 DIV - + 39 + - 64 + col1 AND col2 DIV - col0
----
-81

skipif mysql # not compatible
query I rowsort label-5434
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN 49 / - + 39 + - 64 + col1 AND col2 / - col0
----
-81

query I rowsort
SELECT DISTINCT + col2 * + + 75 * + 27 + + col1 AS col1 FROM tab0
----
200476
20271
95256

query I rowsort
SELECT DISTINCT + + 30 FROM tab0 WHERE - 58 IS NOT NULL
----
30

query III rowsort
SELECT * FROM tab0 WHERE - col1 * + 98 NOT BETWEEN - col1 AND + + ( - col1 ) + + 53
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT + MIN( - col2 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-5439
SELECT + MIN ( - col2 ) AS col0 FROM tab1
----
-96

query I rowsort
SELECT col1 * col1 * + + col2 FROM tab2 WHERE NOT ( ( ( NULL ) = col0 - - col0 * + col0 + col2 ) )
----

query I rowsort
SELECT ( - col2 ) * - ( col2 ) AS col1 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT - - 13 * + col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN ( 74 ) AND 75 - - col1
----
1248
767
884

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL BETWEEN 13 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT ALL - ( - - MIN( DISTINCT - col1 ) ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL - ( - - MIN ( DISTINCT - col1 ) ) FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-5445
SELECT + COUNT( * ), MAX( - col1 ) AS col0 FROM tab0
----
3
-1

skipif mysql # not compatible
query II rowsort label-5445
SELECT + COUNT ( * ), MAX ( - col1 ) AS col0 FROM tab0
----
3
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5446
SELECT 15, + COUNT( + - 41 ) AS col0 FROM tab1
----
15
3

skipif mysql # not compatible
query II rowsort label-5446
SELECT 15, + COUNT ( + - 41 ) AS col0 FROM tab1
----
15
3

query I rowsort
SELECT DISTINCT col2 * + col0 + - col2 + + col2 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT ALL + 25 + - ( + col1 ) AS col0 FROM tab1 cor0
----
-22
11
20

onlyif mysql # DIV for integer division: 
query II rowsort label-5449
SELECT ALL + + col1 DIV + col2 col2, 90 AS col2 FROM tab0 AS cor0
----
0
90
1
90
2
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5449
SELECT ALL + + col1 / + col2 col2, 90 AS col2 FROM tab0 AS cor0
----
0
90
1
90
2
90

query I rowsort
SELECT DISTINCT - 48 * - col1 * col0 + + ( 2 ) FROM tab1 AS cor0
----
20402
205298
34274

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT - 66 * + COUNT( * ) AS col2 FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-5452
SELECT - 66 * + COUNT ( * ) AS col2 FROM tab1
----
-198

query II rowsort
SELECT ALL - col0 + - ( col2 ), + col0 AS col1 FROM tab2
----
-104
64
-133
75
-69
46

query I rowsort
SELECT - ( - - 50 ) FROM tab0
----
-50
-50
-50

query I rowsort
SELECT ( col0 ) * - - col0 AS col2 FROM tab2
----
2116
4096
5625

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * - col2 * + col2 - + - col0 / + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5457
SELECT + CAST( - + col1 AS SIGNED ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5457
SELECT + CAST ( - + col1 AS INTEGER ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT 18 * + - col0, col1 FROM tab0
----
-1566
21
-1746
1
-270
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT + MAX( DISTINCT - - col2 ) * - 71 * COUNT( * ) AS col2 FROM tab2
----
-12354

skipif mysql # not compatible
query I rowsort label-5459
SELECT + MAX ( DISTINCT - - col2 ) * - 71 * COUNT ( * ) AS col2 FROM tab2
----
-12354

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT ALL - COUNT( * ) * ( - 9 ) AS col2 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL - COUNT ( * ) * ( - 9 ) AS col2 FROM tab2
----
27

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL < + 77
----

query I rowsort
SELECT ALL - 52 * + + 60 - - 15 + + 47 + - ( + col2 ) FROM tab1 AS cor0
----
-3117
-3126
-3154

query I rowsort
SELECT - 1 + col2 + + + col1 AS col1 FROM tab2 AS cor0
----
116
124
73

query II rowsort
SELECT + - col0 + + col0 * 31 AS col1, 12 * - 88 FROM tab1 AS cor0
----
1530
-1056
2550
-1056
2730
-1056

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5465
SELECT + + 49 * + col0 * col2 + - CAST( NULL AS SIGNED ) + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5465
SELECT + + 49 * + col0 * col2 + - CAST ( NULL AS INTEGER ) + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - col1 ) - - 26 * - + col2 FROM tab0
----
-1141
-239
-2573

query I rowsort
SELECT DISTINCT + 50 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5468
SELECT COUNT( * ) + - CAST( 52 AS SIGNED ), + 42 DIV COUNT( * ) AS col2 FROM tab1
----
-49
14

skipif mysql # not compatible
query II rowsort label-5468
SELECT COUNT ( * ) + - CAST ( 52 AS INTEGER ), + 42 / COUNT ( * ) AS col2 FROM tab1
----
-49
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5469
SELECT DISTINCT col1 DIV 75 col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5469
SELECT DISTINCT col1 / 75 col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL 90 AS col2 FROM tab1 AS cor0 WHERE NOT ( + col1 ) NOT IN ( + 48, col0, - col0 + + - col0 )
----

query I rowsort
SELECT + 83 * + 6 + + 58 - - - col1 + + col2 * - col0 * col1 * 45 + - col0 * + - 0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-2569250
-431580
-821615

query II rowsort
SELECT - + 60, - col1 * + - 54 AS col1 FROM tab2 AS cor0
----
-60
2754
-60
3618
-60
4158

query I rowsort
SELECT - ( + 70 ) * + col2 FROM tab0 AS cor0
----
-3290
-6930
-700

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 66 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - 4 + - col1 FROM tab1 WHERE - col0 IS NULL
----

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT - ( + col2 ) IS NULL AND col1 IS NOT NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5477
SELECT * FROM tab2 WHERE NOT - CAST( col1 AS SIGNED ) NOT BETWEEN col2 * + - 60 * col2 + - ( col2 ) * - col1 AND + 91 * col1 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5477
SELECT * FROM tab2 WHERE NOT - CAST ( col1 AS INTEGER ) NOT BETWEEN col2 * + - 60 * col2 + - ( col2 ) * - col1 AND + 91 * col1 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 39 FROM tab0 AS cor0 WHERE col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT ALL + + MIN( col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL + + MIN ( col0 ) AS col0 FROM tab0 AS cor0
----
15

query II rowsort
SELECT DISTINCT - ( col2 ), 87 AS col2 FROM tab1 AS cor0
----
-59
87
-68
87
-96
87

query I rowsort
SELECT + 30 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT COUNT( DISTINCT + - 96 ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5482
SELECT COUNT ( DISTINCT + - 96 ) AS col1 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT DISTINCT + MIN( 67 ) AS col2 FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-5483
SELECT DISTINCT + MIN ( 67 ) AS col2 FROM tab1 AS cor0
----
67

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 AS cor0 WHERE + 37 - - + col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 / + + col0 BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL - 38 + + + ( + - col0 ) AS col0, - col0 FROM tab2 AS cor0
----
-102
-64
-113
-75
-84
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL SUM( ALL + col1 ) col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5487
SELECT ALL SUM ( ALL + col1 ) col2 FROM tab1 AS cor0
----
66

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( - col1 ) <> + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 16 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + - 61 FROM tab1
----
-10
24
30

query I rowsort
SELECT ALL + col1 * - 25 AS col1 FROM tab0
----
-2025
-25
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT ALL + ( + COUNT( * ) ) + 31 AS col1 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL + ( + COUNT ( * ) ) + 31 AS col1 FROM tab2
----
34

query I rowsort
SELECT DISTINCT + + 81 + - col2 FROM tab1 AS cor0
----
-15
13
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT DISTINCT 94 * - 82 + + MIN( col0 ) col1 FROM tab0 AS cor0 WHERE NULL = - col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5494
SELECT DISTINCT 94 * - 82 + + MIN ( col0 ) col1 FROM tab0 AS cor0 WHERE NULL = - col0
----
NULL

query I rowsort
SELECT ALL col2 * - col0 - + col1 AS col2 FROM tab1 AS cor0
----
-4910
-5020
-6235

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 + + 44 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT DISTINCT + MAX( ALL - + col1 ) * - 41 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-5497
SELECT DISTINCT + MAX ( ALL - + col1 ) * - 41 FROM tab0 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT + SUM( - col0 ) col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5498
SELECT + SUM ( - col0 ) col2 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ( + col0 ) FROM tab0 AS cor0 WHERE + ( - + col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 37 IS NULL
----

query I rowsort
SELECT - col1 - + col0 * col1 FROM tab2
----
-2397
-5005
-5092

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * - 54 * 27 / + col0 IS NULL AND NOT + col0 BETWEEN col0 AND + 23
----
87
21
10
97
1
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + - + col2 >= + + 84
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5504
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - CAST( + 45 AS SIGNED ) BETWEEN NULL AND 53 )
----

skipif mysql # not compatible
query III rowsort label-5504
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - CAST ( + 45 AS INTEGER ) BETWEEN NULL AND 53 )
----

query I rowsort
SELECT + - 83 * - col0 * + col0 AS col2 FROM tab1 cor0
----
215883
599675
687323

query II rowsort
SELECT col0 AS col2, - col0 * - 44 FROM tab2
----
46
2024
64
2816
75
3300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5507
SELECT DISTINCT + COUNT( ALL + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 WHERE 78 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5507
SELECT DISTINCT + COUNT ( ALL + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 WHERE 78 IS NULL
----
0

query II rowsort
SELECT + 38 AS col0, col1 FROM tab0
----
38
1
38
21
38
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT + 99 * - - COUNT( * ) AS col2 FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-5509
SELECT + 99 * - - COUNT ( * ) AS col2 FROM tab2
----
297

query II rowsort
SELECT col2, + col1 AS col2 FROM tab0
----
10
21
47
81
99
1

query II rowsort
SELECT ALL col1 AS col0, - col1 FROM tab2
----
51
-51
67
-67
77
-77

query I rowsort
SELECT DISTINCT ( + - col0 ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT + - AVG ( 34 ) FROM tab2 cor0 WHERE NOT 88 + 68 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 4 * col0 AS col2 FROM tab1 cor0
----
204
340
364

query I rowsort
SELECT - + 31 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5516
SELECT - 42 * MAX( ALL - col1 ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5516
SELECT - 42 * MAX ( ALL - col1 ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 21 col2 FROM tab0 AS cor0
----
-21

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 62 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
62
62
62

query II rowsort
SELECT - + col2, col0 FROM tab2 AS cor0 WHERE - col1 * col2 <> + col0
----
-23
46
-40
64
-58
75

query I rowsort
SELECT DISTINCT - 81 + - col2 FROM tab0 AS cor0
----
-128
-180
-91

query I rowsort
SELECT ALL - ( - col2 ) + - col0 AS col1 FROM tab0 cor0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5524
SELECT ALL + CAST( NULL AS SIGNED ) + + - AVG ( 22 ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5524
SELECT ALL + CAST ( NULL AS INTEGER ) + + - AVG ( 22 ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT + + ( + 92 ) * 27 + - - 69 AS col2 FROM tab2 AS cor0
----
2553

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT - MIN( 45 ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-5526
SELECT - MIN ( 45 ) FROM tab2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5527
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + 94 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + 94 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT + col1 * 82 AS col1 FROM tab2
----
4182
5494
6314

query I rowsort
SELECT DISTINCT + ( - col0 ) * + + 8 + + + 30 AS col0 FROM tab0
----
-666
-746
-90

query I rowsort
SELECT ALL col0 * + + col0 FROM tab2
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT + COUNT( * ) * - + COUNT( * ) col1 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5531
SELECT + COUNT ( * ) * - + COUNT ( * ) col1 FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5532
SELECT ALL col2 - + CAST( + col0 AS SIGNED ) FROM tab0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-5532
SELECT ALL col2 - + CAST ( + col0 AS INTEGER ) FROM tab0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT DISTINCT COUNT( * ) * + 17 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5533
SELECT DISTINCT COUNT ( * ) * + 17 FROM tab1
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5534
SELECT ALL - CAST( NULL AS DECIMAL ) * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL - CAST ( NULL AS REAL ) * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE ( + - 81 >= col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT DISTINCT - SUM( DISTINCT + 61 ) + + - ( - 47 ) AS col2 FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT - SUM ( DISTINCT + 61 ) + + - ( - 47 ) AS col2 FROM tab1 AS cor0
----
-14

query I rowsort
SELECT DISTINCT + - col2 - 78 AS col0 FROM tab2 AS cor0
----
-101
-118
-136

query I rowsort
SELECT + col0 + 6 * col2 AS col0 FROM tab1 AS cor0
----
439
499
627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5540
SELECT + CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5540
SELECT + CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT DISTINCT + ( 26 ) * - COUNT( * ) AS col1 FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-5541
SELECT DISTINCT + ( 26 ) * - COUNT ( * ) AS col1 FROM tab0
----
-78

query I rowsort
SELECT + col0 + + col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 17 * + 73 * - 11 FROM tab1 AS cor0
----
-13651
-13651
-13651

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT + COUNT( + col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5544
SELECT + COUNT ( + col0 ) AS col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT - col0, col1 * + ( col1 ) AS col1 FROM tab2 AS cor0
----
-46
2601
-64
5929
-75
4489

query I rowsort
SELECT - col2 * - - 87 AS col0 FROM tab0 AS cor0
----
-4089
-8613
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT COUNT( * ) * + 62 * - + COUNT( * ) FROM tab2 AS cor0
----
-558

skipif mysql # not compatible
query I rowsort label-5547
SELECT COUNT ( * ) * + 62 * - + COUNT ( * ) FROM tab2 AS cor0
----
-558

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT + MIN( ALL col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5548
SELECT + MIN ( ALL col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL - col0 * + ( 3 ) AS col2 FROM tab1
----
-153
-255
-273

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL < NULL )
----

query II rowsort
SELECT DISTINCT + ( + 92 ) AS col2, col2 AS col2 FROM tab1 WHERE + + col2 IS NULL
----

query I rowsort
SELECT ALL - - ( + 20 ) FROM tab0 AS cor0
----
20
20
20

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5553
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( - CAST( + + CAST( + + CAST( + col0 AS DECIMAL ) AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5553
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( - CAST ( + + CAST ( + + CAST ( + col0 AS REAL ) AS INTEGER ) AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT DISTINCT + COUNT( * ) * COUNT( * ) * 80 AS col1 FROM tab0 WHERE NULL IS NULL
----
720

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) * 80 AS col1 FROM tab0 WHERE NULL IS NULL
----
720

query II rowsort
SELECT + 42 AS col0, col1 + + + col1 FROM tab1 AS cor0
----
42
10
42
28
42
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT + 23 * - + COUNT( * ) FROM tab1 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-5556
SELECT + 23 * - + COUNT ( * ) FROM tab1 cor0
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) + + - 48 col1 FROM tab2 AS cor0
----
-106
-71
-88

query I rowsort
SELECT ALL - col1 + - 32 FROM tab2 AS cor0
----
-109
-83
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 60 * col2 < NULL
----

query I rowsort
SELECT - 73 + - 70 FROM tab2 AS cor0
----
-143
-143
-143

query I rowsort
SELECT + + col0 + - - col2 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query II rowsort label-5562
SELECT DISTINCT SUM( DISTINCT col1 ) + + 93, COUNT( + col0 ) col1 FROM tab0 AS cor0
----
196
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5562
SELECT DISTINCT SUM ( DISTINCT col1 ) + + 93, COUNT ( + col0 ) col1 FROM tab0 AS cor0
----
196
3

query III rowsort
SELECT * FROM tab2 WHERE + col1 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 0 * + + col0 BETWEEN - - col2 * - + col0 + + 77 * + + col1 AND + col2
----

query I rowsort
SELECT - 15 FROM tab0 WHERE - col2 - + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT 56 - + + col2 * col2 FROM tab1
----
-3425
-4568
-9160

onlyif mysql # DIV for integer division: 
query I rowsort label-5567
SELECT ALL + col1 + col1 DIV - col1 + + col1 DIV + col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL + col1 + col1 / - col1 + + col1 / + col1 FROM tab1
----
14
47
5

query I rowsort
SELECT + col2 + ( - col1 ) FROM tab0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query II rowsort label-5569
SELECT SUM( ALL + col0 ) col0, COUNT( DISTINCT + 70 ) + - COUNT( DISTINCT + col2 ) FROM tab1
----
227
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5569
SELECT SUM ( ALL + col0 ) col0, COUNT ( DISTINCT + 70 ) + - COUNT ( DISTINCT + col2 ) FROM tab1
----
227
-2

query I rowsort
SELECT ALL - 11 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT - ( + + COUNT( DISTINCT col0 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5571
SELECT - ( + + COUNT ( DISTINCT col0 ) ) FROM tab1
----
-3

query I rowsort
SELECT 44 AS col1 FROM tab1 cor0 WHERE + col0 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5573
SELECT ( - COUNT( * ) ) DIV - - CAST( 82 AS SIGNED ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5573
SELECT ( - COUNT ( * ) ) / - - CAST ( 82 AS INTEGER ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT - ( + col0 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL + 17 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT + - COUNT( * ) FROM tab1 WHERE NOT + - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5576
SELECT + - COUNT ( * ) FROM tab1 WHERE NOT + - col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT ALL - - SUM( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL - - SUM ( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT DISTINCT - + 84 * + col2 FROM tab1 AS cor0
----
-4956
-5712
-8064

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT + ( SUM( DISTINCT - ( - col0 ) ) ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-5579
SELECT + ( SUM ( DISTINCT - ( - col0 ) ) ) AS col2 FROM tab1 AS cor0
----
227

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 44 / - col1 * - col2 = - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - ( col2 ) * + col1 AS col2 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT DISTINCT - MIN( + col2 ) * COUNT( * ) * MIN( DISTINCT 65 ) FROM tab2 cor0
----
-4485

skipif mysql # not compatible
query I rowsort label-5582
SELECT DISTINCT - MIN ( + col2 ) * COUNT ( * ) * MIN ( DISTINCT 65 ) FROM tab2 cor0
----
-4485

onlyif mysql # DIV for integer division: 
query I rowsort label-5583
SELECT DISTINCT - col2 * - 92 + + 35 DIV - col1 FROM tab2 AS cor0
----
2116
3680
5336

skipif mysql # not compatible
query I rowsort label-5583
SELECT DISTINCT - col2 * - 92 + + 35 / - col1 FROM tab2 AS cor0
----
2116
3680
5336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5584
SELECT ALL COUNT( * ) DIV + 76 col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5584
SELECT ALL COUNT ( * ) / + 76 col2 FROM tab1
----
0

query II rowsort
SELECT col2 AS col1, + 78 FROM tab2
----
23
78
40
78
58
78

query I rowsort
SELECT DISTINCT - ( - 88 ) AS col2 FROM tab0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5587
SELECT ALL - 60 / - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL - 60 / - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5588
SELECT ALL * FROM tab1 WHERE NOT + + CAST( col0 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-5588
SELECT ALL * FROM tab1 WHERE NOT + + CAST ( col0 AS INTEGER ) BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT 88 AS col0, col1 * - + 13 AS col1 FROM tab0
----
88
-1053
88
-13
88
-273

query I rowsort
SELECT 91 * col0 AS col0 FROM tab2
----
4186
5824
6825

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT DISTINCT - ( + - SUM( ALL 49 ) ) FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-5591
SELECT DISTINCT - ( + - SUM ( ALL 49 ) ) FROM tab2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT - COUNT( + + col1 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5592
SELECT - COUNT ( + + col1 ) AS col0 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5593
SELECT + col0 DIV + ( - col0 ) FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5593
SELECT + col0 / + ( - col0 ) FROM tab2
----
-1
-1
-1

query I rowsort
SELECT col0 * 47 FROM tab1 AS cor0
----
2397
3995
4277

onlyif mysql # DIV for integer division: 
query III rowsort label-5595
SELECT ALL - col2 DIV col2 AS col2, col0 DIV + - col2 + 78 AS col2, - - col2 AS col1 FROM tab2
----
9 values hashing to 1879c104935cd8dc5576630dd4785357

skipif mysql # not compatible
query III rowsort label-5595
SELECT ALL - col2 / col2 AS col2, col0 / + - col2 + 78 AS col2, - - col2 AS col1 FROM tab2
----
9 values hashing to 1879c104935cd8dc5576630dd4785357

onlyif mysql # aggregate syntax: 
query II rowsort label-5596
SELECT 6 + + ( - + 56 ) * - MIN( col1 ), + 7 + + MIN( - col0 ) + 91 * + 77 AS col0 FROM tab1
----
286
6923

skipif mysql # not compatible
query II rowsort label-5596
SELECT 6 + + ( - + 56 ) * - MIN ( col1 ), + 7 + + MIN ( - col0 ) + 91 * + 77 AS col0 FROM tab1
----
286
6923

query I rowsort
SELECT - col1 + + - col0 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT - col0 * + - 57 + + col1 - + 95 FROM tab0
----
4885
5435
841

onlyif mysql # DIV for integer division: 
query I rowsort label-5599
SELECT DISTINCT + col2 DIV - + col1 AS col2 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT + col2 / - + col1 AS col2 FROM tab1
----
-1
-11
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5600
SELECT - 38 * + CAST( - col1 AS SIGNED ) + + CAST( 63 AS SIGNED ) + - ( + 23 ) * + col0 * + + col0 FROM tab1
----
-165922
-188614
-59228

skipif mysql # not compatible
query I rowsort label-5600
SELECT - 38 * + CAST ( - col1 AS INTEGER ) + + CAST ( 63 AS INTEGER ) + - ( + 23 ) * + col0 * + + col0 FROM tab1
----
-165922
-188614
-59228

query I rowsort
SELECT 54 + - col2 * + col1 AS col0 FROM tab2
----
-1119
-3026
-3832

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT DISTINCT + ( + MAX( DISTINCT col2 ) ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT + ( + MAX ( DISTINCT col2 ) ) FROM tab2
----
58

query I rowsort
SELECT DISTINCT + 73 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
73

query I rowsort
SELECT DISTINCT 84 + + col2 FROM tab1 AS cor0
----
143
152
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - 60 ) col2 FROM tab1 AS cor0
----
-60
-60
-60

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( + - col1 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - 0 * col0 FROM tab1 cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 > NULL
----

query I rowsort
SELECT ALL - - 4 + + col2 AS col1 FROM tab2 AS cor0
----
27
44
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT DISTINCT - - ( - COUNT( * ) ) FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + - col1 * + 40 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5610
SELECT DISTINCT - - ( - COUNT ( * ) ) FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + - col1 * + 40 AND NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5611
SELECT ALL + - ( - 39 ) + + 35 DIV + COUNT( * ) FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL + - ( - 39 ) + + 35 / + COUNT ( * ) FROM tab2 AS cor0
----
50

query I rowsort
SELECT DISTINCT - col2 - + col2 AS col0 FROM tab0
----
-198
-20
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5613
SELECT ALL CAST( + 20 AS SIGNED ) * - - col0 * col0 - col0 + 45 AS col2 FROM tab2
----
112470
42319
81901

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL CAST ( + 20 AS INTEGER ) * - - col0 * col0 - col0 + 45 AS col2 FROM tab2
----
112470
42319
81901

onlyif mysql # DIV for integer division: 
query I rowsort label-5614
SELECT - 78 - col2 + - col1 DIV + - ( 91 ) AS col0 FROM tab2
----
-101
-118
-136

skipif mysql # not compatible
query I rowsort label-5614
SELECT - 78 - col2 + - col1 / + - ( 91 ) AS col0 FROM tab2
----
-101
-118
-136

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 81 + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 66 + + col1 + + - 35 FROM tab2
----
108
82
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5617
SELECT ALL - CAST( NULL AS SIGNED ) - + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL - CAST ( NULL AS INTEGER ) - + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5618
SELECT ALL - col0 * - ( - 11 ) * - col1 * 63 - CAST( 86 AS SIGNED ) FROM tab0
----
1266025
67135
841909

skipif mysql # not compatible
query I rowsort label-5618
SELECT ALL - col0 * - ( - 11 ) * - col1 * 63 - CAST ( 86 AS INTEGER ) FROM tab0
----
1266025
67135
841909

onlyif mysql # DIV for integer division: 
query I rowsort label-5619
SELECT DISTINCT + + 16 * + col0 + - + 88 - + col0 + col2 DIV col0 * + + col2 * + 56 + col0 FROM tab0 AS cor0
----
1304
7008
8048

skipif mysql # not compatible
query I rowsort label-5619
SELECT DISTINCT + + 16 * + col0 + - + 88 - + col0 + col2 / col0 * + + col2 * + 56 + col0 FROM tab0 AS cor0
----
1304
7008
8048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5620
SELECT ALL + CAST( - col0 AS SIGNED ) col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5620
SELECT ALL + CAST ( - col0 AS INTEGER ) col0 FROM tab2
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 col2 FROM tab2
----
54
54
54

query I rowsort
SELECT - 63 + + col1 AS col0 FROM tab0
----
-42
-62
18

query III rowsort
SELECT * FROM tab1 WHERE 96 = + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> 8
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 < ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5626
SELECT - 52 + - col1 DIV col1 AS col1 FROM tab2
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-5626
SELECT - 52 + - col1 / col1 AS col1 FROM tab2
----
-53
-53
-53

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 < 2
----

query I rowsort
SELECT DISTINCT 94 FROM tab1 WHERE col1 IS NOT NULL
----
94

query I rowsort
SELECT ALL + col0 + - 28 * col0 AS col2 FROM tab1
----
-1377
-2295
-2457

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT ALL COUNT( * ) * + MAX( DISTINCT + col0 ) + COUNT( * ) AS col1 FROM tab2 WHERE - 84 * + col0 >= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL COUNT ( * ) * + MAX ( DISTINCT + col0 ) + COUNT ( * ) AS col1 FROM tab2 WHERE - 84 * + col0 >= col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5631
SELECT + col2 + - col2 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5631
SELECT + col2 + - col2 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE col1 + + col0 IN ( ( col0 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE - 87 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( - 86 ) AS col0 FROM tab0
----
-86

query I rowsort
SELECT col1 * + 22 + - ( + col0 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-75
1767
375

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT DISTINCT SUM( ALL + 14 ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-5636
SELECT DISTINCT SUM ( ALL + 14 ) FROM tab1
----
42

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT + 38 + col1 * ( - col2 ) BETWEEN ( NULL ) AND col2 + + col2 * col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 61 / 17 NOT BETWEEN col0 / col1 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT - SUM( DISTINCT col2 ) + - 66 * + 29 AS col0 FROM tab2
----
-2035

skipif mysql # not compatible
query I rowsort label-5639
SELECT - SUM ( DISTINCT col2 ) + - 66 * + 29 AS col0 FROM tab2
----
-2035

query I rowsort
SELECT 82 * col2 FROM tab0 WHERE NULL IS NULL
----
3854
8118
820

onlyif mysql # DIV for integer division: 
query I rowsort label-5641
SELECT col1 DIV + 63 + - col1 AS col0 FROM tab2
----
-51
-66
-76

skipif mysql # not compatible
query I rowsort label-5641
SELECT col1 / + 63 + - col1 AS col0 FROM tab2
----
-51
-66
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT - SUM( DISTINCT 33 ) FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-5642
SELECT - SUM ( DISTINCT 33 ) FROM tab0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5643
SELECT ALL * FROM tab1 WHERE NOT NULL = ( - CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5643
SELECT ALL * FROM tab1 WHERE NOT NULL = ( - CAST ( col2 AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 + col0 <> ( 34 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> + col2 + - col2
----

query I rowsort
SELECT col1 + ( + col0 - + col1 ) FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT ALL COUNT( * ) * 13 + ( + COUNT( * ) ) FROM tab2 WHERE NULL BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL COUNT ( * ) * 13 + ( + COUNT ( * ) ) FROM tab2 WHERE NULL BETWEEN NULL AND ( NULL )
----
0

query I rowsort
SELECT + col1 * + 90 AS col1 FROM tab1
----
1260
4230
450

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT DISTINCT MAX( 8 ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-5650
SELECT DISTINCT MAX ( 8 ) FROM tab1
----
8

query I rowsort
SELECT ( - 51 ) + - col2 * + col1 AS col2 FROM tab2 AS cor0 WHERE 12 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col1 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT ALL ( - ( + COUNT( * ) ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL ( - ( + COUNT ( * ) ) ) FROM tab0
----
-3

query I rowsort
SELECT + col0 FROM tab0 WHERE NULL BETWEEN + col1 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-5655
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5656
SELECT col0 - - col0 * CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5656
SELECT col0 - - col0 * CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * + col2 + - ( col2 ) NOT IN ( col0 * 90 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 86 NOT BETWEEN ( + col0 ) AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <> ( - 58 + 98 )
----

query I rowsort
SELECT 94 * col0 + + col2 FROM tab2 AS cor0
----
4347
6056
7108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5662
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 78 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 78 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 26 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT 58 NOT BETWEEN ( 46 ) AND col0
----
-59
-68

query I rowsort
SELECT DISTINCT - + 40 AS col1 FROM tab1 cor0
----
-40

query I rowsort
SELECT ALL + 85 * - 1 + col2 FROM tab0 AS cor0
----
-38
-75
14

query I rowsort
SELECT - 58 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-58
-58
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 96 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 - + col2 + 12 FROM tab1
----
-42
-70
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 + 66 col0 FROM tab1
----
37
37
37

query I rowsort
SELECT ALL col2 * + col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col2 + + 79
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5673
SELECT DISTINCT CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5673
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5674
SELECT CAST( 68 AS SIGNED ) FROM tab1
----
68
68
68

skipif mysql # not compatible
query I rowsort label-5674
SELECT CAST ( 68 AS INTEGER ) FROM tab1
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT ALL 75 - - COUNT( * ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL 75 - - COUNT ( * ) FROM tab2
----
78

query I rowsort
SELECT + 95 * + - col1 FROM tab0
----
-1995
-7695
-95

query I rowsort
SELECT - + 49 * - - col1 + + col1 AS col0 FROM tab0 cor0
----
-1008
-3888
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5678
SELECT DISTINCT CAST( NULL AS SIGNED ) * ( COUNT( ALL col2 ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT CAST ( NULL AS INTEGER ) * ( COUNT ( ALL col2 ) ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 col2 FROM tab1 cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT ALL + + COUNT( * ) * 24 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
216

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL + + COUNT ( * ) * 24 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
216

query I rowsort
SELECT DISTINCT + 53 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5682
SELECT CAST( col0 AS SIGNED ) - 93 * + 8 col0 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5682
SELECT CAST ( col0 AS INTEGER ) - 93 * + 8 col0 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - 38 AS col2 FROM tab0, tab2 AS cor0
----
-38

query I rowsort
SELECT 59 * 31 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b9855acf8b54ba226eaa48b0a391f34a

query I rowsort
SELECT col1 AS col1 FROM tab1 cor0 WHERE NOT + 5 * + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT ALL MAX( DISTINCT + - col0 ) * + + COUNT( * ) * + 5 AS col1 FROM tab1 cor0
----
-765

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL MAX ( DISTINCT + - col0 ) * + + COUNT ( * ) * + 5 AS col1 FROM tab1 cor0
----
-765

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT SUM( 22 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5688
SELECT SUM ( 22 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 + + ( - col0 ) FROM tab2 cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT + SUM( - 37 ) * - + COUNT( * ) * + 83 FROM tab0 AS cor0
----
27639

skipif mysql # not compatible
query I rowsort label-5690
SELECT + SUM ( - 37 ) * - + COUNT ( * ) * + 83 FROM tab0 AS cor0
----
27639

query III rowsort
SELECT * FROM tab2 WHERE NOT + 35 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5692
SELECT 50 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5692
SELECT 50 / col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + col2 * + - 44 AS col2 FROM tab1
----
-2596
-2992
-4224

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT COUNT( DISTINCT - - 46 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5694
SELECT COUNT ( DISTINCT - - 46 ) AS col0 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT ALL 66 * + COUNT( * ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL 66 * + COUNT ( * ) FROM tab1
----
198

query I rowsort
SELECT ALL 43 * + col1 AS col2 FROM tab1 WHERE NOT + col2 IS NULL
----
2021
215
602

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT ALL - - COUNT( * ) * - COUNT( * ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL - - COUNT ( * ) * - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT ALL col0 + + + col2 * col1 FROM tab0 AS cor0
----
196
297
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT ALL + - SUM( DISTINCT + 19 ) + + + 63 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-5699
SELECT ALL + - SUM ( DISTINCT + 19 ) + + + 63 FROM tab0 AS cor0
----
44

query I rowsort
SELECT - + 90 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT - - col1 FROM tab0 WHERE + - col0 >= - col2
----
1
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5702
SELECT * FROM tab0 cor0 WHERE + CAST( NULL AS SIGNED ) NOT IN ( - 46 )
----

skipif mysql # not compatible
query III rowsort label-5702
SELECT * FROM tab0 cor0 WHERE + CAST ( NULL AS INTEGER ) NOT IN ( - 46 )
----

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < - col0 + - col1 / + col0 + + 60 / col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5705
SELECT + 99 DIV col2 AS col0 FROM tab0 AS cor0
----
1
2
9

skipif mysql # not compatible
query I rowsort label-5705
SELECT + 99 / col2 AS col0 FROM tab0 AS cor0
----
1
2
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5706
SELECT DISTINCT + MIN( ALL CAST( NULL AS SIGNED ) ) + + COUNT( * ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT + MIN ( ALL CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - + 55 + + col0 + col2 * - + 16 FROM tab1 AS cor0
----
-1052
-1540
-914

query I rowsort
SELECT DISTINCT + 18 + 51 AS col0 FROM tab1 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT 14 * - 29 - - COUNT( * ) FROM tab1 AS cor0
----
-403

skipif mysql # not compatible
query I rowsort label-5709
SELECT 14 * - 29 - - COUNT ( * ) FROM tab1 AS cor0
----
-403

query III rowsort
SELECT * FROM tab0 WHERE ( - + col0 * + col2 ) <> ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5711
SELECT - CAST( 97 AS SIGNED ) FROM tab2
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-5711
SELECT - CAST ( 97 AS INTEGER ) FROM tab2
----
-97
-97
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5712
SELECT ALL col1 DIV - ( - + col2 ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL col1 / - ( - + col2 ) AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( col2 * - col2 ) AND NULL
----

query II rowsort
SELECT col1 AS col1, col1 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT ALL COUNT( col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5716
SELECT ALL COUNT ( col1 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT - ( ( - 34 ) ) FROM tab2 AS cor0
----
34
34
34

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) NOT BETWEEN NULL AND ( - - 7 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5719
SELECT + col2 + + + CAST( 40 AS SIGNED ) AS col0 FROM tab2 WHERE NOT ( - - 53 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5719
SELECT + col2 + + + CAST ( 40 AS INTEGER ) AS col0 FROM tab2 WHERE NOT ( - - 53 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT MAX( DISTINCT - col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5720
SELECT MAX ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5721
SELECT ALL * FROM tab1 AS cor0 WHERE col2 BETWEEN - col1 * + + ( 12 ) + col0 AND - CAST( NULL AS SIGNED ) + ( col2 )
----

skipif mysql # not compatible
query III rowsort label-5721
SELECT ALL * FROM tab1 AS cor0 WHERE col2 BETWEEN - col1 * + + ( 12 ) + col0 AND - CAST ( NULL AS INTEGER ) + ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col1 * - col1 NOT BETWEEN - col1 AND + 84 + - col0 + + col1 * col2 * ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT DISTINCT + - COUNT( * ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5723
SELECT DISTINCT + - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT ALL - 48 + - + COUNT( * ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL - 48 + - + COUNT ( * ) AS col1 FROM tab2
----
-51

query II rowsort
SELECT ALL + 6 AS col1, col2 FROM tab1
----
6
59
6
68
6
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT - COUNT( + col1 ) AS col2 FROM tab0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5726
SELECT - COUNT ( + col1 ) AS col2 FROM tab0 WHERE NULL > NULL
----
0

query I rowsort
SELECT DISTINCT 43 + - + 25 AS col2 FROM tab2
----
18

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 + + - col0 + + col1 - + 96 * - col1 * - col2 / col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * - ( - col0 ) * - 4 AS col1 FROM tab0
----
-30276
-37636
-900

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 * col1 + - - col0 ) = ( 46 ) OR NOT col0 * col2 < - 24 * - col0
----
64
77
40
75
67
58

query I rowsort
SELECT + col0 + 44 FROM tab0
----
131
141
59

query I rowsort
SELECT 63 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5733
SELECT ALL - - SUM( ALL + CAST( - col0 AS SIGNED ) ) * + 64 * + 15 AS col2 FROM tab1 AS cor0
----
-217920

skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL - - SUM ( ALL + CAST ( - col0 AS INTEGER ) ) * + 64 * + 15 AS col2 FROM tab1 AS cor0
----
-217920

query II rowsort
SELECT ALL - 63, - col1 / - col0 / col2 + col1 AS col2 FROM tab0 AS cor0 WHERE NOT - 15 IS NOT NULL
----

query I rowsort
SELECT - col0 - - col2 * - col0 FROM tab2
----
-1104
-2624
-4425

query III rowsort
SELECT * FROM tab2 WHERE + + col0 * + + col2 IN ( - 52 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT - ( - 55 ) + + + COUNT( * ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5737
SELECT - ( - 55 ) + + + COUNT ( * ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT - 19 + + col0 + + col2 FROM tab0 AS cor0
----
177
43
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT ALL MIN( DISTINCT + - ( + col1 ) ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5739
SELECT ALL MIN ( DISTINCT + - ( + col1 ) ) FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5740
SELECT ALL - CAST( - 94 AS SIGNED ) + - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL - CAST ( - 94 AS INTEGER ) + - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
97

query I rowsort
SELECT - ( 35 ) * 57 + + col0 - + col1 FROM tab0 cor0
----
-1899
-1929
-2061

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT - - COUNT( * ) * ( COUNT( * ) ) + 41 * + 11 FROM tab1 AS cor0
----
460

skipif mysql # not compatible
query I rowsort label-5742
SELECT - - COUNT ( * ) * ( COUNT ( * ) ) + 41 * + 11 FROM tab1 AS cor0
----
460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5743
SELECT ALL CAST( + - 50 AS SIGNED ) FROM tab0 AS cor0
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-5743
SELECT ALL CAST ( + - 50 AS INTEGER ) FROM tab0 AS cor0
----
-50
-50
-50

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * + col1 * + 72 col1, + col1 - + + 83 FROM tab0
----
31752
-62
472392
-2
72
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, + col1 + - col0 FROM tab2
----
46
5
64
13
75
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-5747
SELECT COUNT( * ), + COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-5747
SELECT COUNT ( * ), + COUNT ( * ) FROM tab0
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5748
SELECT ALL 36 DIV - - col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5748
SELECT ALL 36 / - - col2 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT + MIN( ALL - - col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5749
SELECT + MIN ( ALL - - col0 ) AS col2 FROM tab2
----
46

query II rowsort
SELECT DISTINCT - col0 AS col0, col0 FROM tab2
----
-46
46
-64
64
-75
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 56 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT DISTINCT - COUNT( * ) * - + COUNT( ALL col0 ) FROM tab0 AS cor0 WHERE NOT - ( col0 ) + + + col2 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT - COUNT ( * ) * - + COUNT ( ALL col0 ) FROM tab0 AS cor0 WHERE NOT - ( col0 ) + + + col2 IS NULL
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 - - 8 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5754
SELECT - col1 DIV + 44 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5754
SELECT - col1 / + 44 AS col1 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT ALL + 43 * COUNT( * ) AS col2 FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL + 43 * COUNT ( * ) AS col2 FROM tab1
----
129

query I rowsort
SELECT DISTINCT 90 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT + MAX( - - col0 ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5757
SELECT + MAX ( - - col0 ) AS col2 FROM tab0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5758
SELECT + - 61 DIV - col2 + + - 35 FROM tab0 AS cor0
----
-29
-34
-35

skipif mysql # not compatible
query I rowsort label-5758
SELECT + - 61 / - col2 + + - 35 FROM tab0 AS cor0
----
-29
-34
-35

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 22 IS NULL
----

query I rowsort
SELECT col1 * - col2 + + - col0 FROM tab2 AS cor0 WHERE ( NULL ) >= + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 + + + ( + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5762
SELECT COUNT( * ), + COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5762
SELECT COUNT ( * ), + COUNT ( * ) FROM tab2 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT COUNT( ALL col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5763
SELECT COUNT ( ALL col1 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT - col1 * - col0 * - ( - col2 ) AS col2 FROM tab1
----
25075
290836
68544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5765
SELECT DISTINCT + COUNT( * ) * CAST( + 40 AS SIGNED ) AS col1 FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT + COUNT ( * ) * CAST ( + 40 AS INTEGER ) AS col1 FROM tab1
----
120

query I rowsort
SELECT ALL - col2 - + - 48 FROM tab1
----
-11
-20
-48

query I rowsort
SELECT 37 FROM tab0 AS cor0 WHERE col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT DISTINCT - COUNT( * ) + - SUM( DISTINCT + ( + 98 ) ) FROM tab2 cor0
----
-101

skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT - COUNT ( * ) + - SUM ( DISTINCT + ( + 98 ) ) FROM tab2 cor0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT - - COUNT( * ) + - + 47 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-5769
SELECT - - COUNT ( * ) + - + 47 FROM tab1 AS cor0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5770
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 * + + CAST( 56 AS SIGNED ) <= - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5770
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 * + + CAST ( 56 AS INTEGER ) <= - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + ( 59 ) FROM tab2 AS cor0
----
-59
-59
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-5772
SELECT ALL - col2 AS col2, + col1 * + col2 DIV + col2 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

skipif mysql # not compatible
query II rowsort label-5772
SELECT ALL - col2 AS col2, + col1 * + col2 / + col2 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT ALL ( + + COUNT( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL ( + + COUNT ( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5774
SELECT ALL + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5774
SELECT ALL + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT ALL - MIN( ALL - 24 ) * 83 AS col0 FROM tab2
----
1992

skipif mysql # not compatible
query I rowsort label-5775
SELECT ALL - MIN ( ALL - 24 ) * 83 AS col0 FROM tab2
----
1992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5776
SELECT DISTINCT 91 DIV 14 * + 49 * - + COUNT( * ) * - CAST( - 80 AS SIGNED ) FROM tab2
----
-70560

skipif mysql # not compatible
query I rowsort label-5776
SELECT DISTINCT 91 / 14 * + 49 * - + COUNT ( * ) * - CAST ( - 80 AS INTEGER ) FROM tab2
----
-70560

query I rowsort
SELECT col0 * - ( - - 5 ) FROM tab2
----
-230
-320
-375

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5778
SELECT DISTINCT * FROM tab1 WHERE - + col2 * + - 24 + ( - + 47 ) NOT IN ( + col2, 83 + col1, + CAST( - col2 AS SIGNED ), ( - col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5778
SELECT DISTINCT * FROM tab1 WHERE - + col2 * + - 24 + ( - + 47 ) NOT IN ( + col2, 83 + col1, + CAST ( - col2 AS INTEGER ), ( - col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 93 * col2 AS col2 FROM tab1
----
-5487
-6324
-8928

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT ALL MIN( - - col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-5780
SELECT ALL MIN ( - - col1 ) FROM tab2
----
51

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE + col0 + + ( + - col2 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 26 <= - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5783
SELECT CAST( + - col1 AS SIGNED ) FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5783
SELECT CAST ( + - col1 AS INTEGER ) FROM tab0 AS cor0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 col1 FROM tab0 AS cor0
----
96
96
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 47 + - - col2 >= ( 52 - - col2 + + col2 + + col1 * 39 + 71 + + 96 + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * - 94 AS col1 FROM tab2 AS cor0
----
-4324
-6016
-7050

query I rowsort
SELECT DISTINCT + ( + 73 ) AS col2 FROM tab2
----
73

query I rowsort
SELECT - ( col0 ) FROM tab0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT DISTINCT + - SUM( - + 79 ) FROM tab2 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-5789
SELECT DISTINCT + - SUM ( - + 79 ) FROM tab2 AS cor0
----
237

query II rowsort
SELECT DISTINCT - col0, + 39 AS col2 FROM tab1 cor0 WHERE col0 <= NULL
----

query II rowsort
SELECT + col1, - 18 AS col0 FROM tab2 AS cor0
----
51
-18
67
-18
77
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5792
SELECT + COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5792
SELECT + COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( - ( - col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5793
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( - ( - col1 ) )
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col1 / + - 55 + + col0 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT - COUNT( * ) * - ( - - SUM( DISTINCT + 44 ) ) * + ( + 24 ) AS col1 FROM tab1 AS cor0
----
3168

skipif mysql # not compatible
query I rowsort label-5795
SELECT - COUNT ( * ) * - ( - - SUM ( DISTINCT + 44 ) ) * + ( + 24 ) AS col1 FROM tab1 AS cor0
----
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT - COUNT( * ) FROM tab1 cor0 WHERE NULL = + 82
----
0

skipif mysql # not compatible
query I rowsort label-5796
SELECT - COUNT ( * ) FROM tab1 cor0 WHERE NULL = + 82
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - + 63 IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT ALL + 86 + - + COUNT( * ) + 88 FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL + 86 + - + COUNT ( * ) + 88 FROM tab1 AS cor0
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE + col2 - + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5799
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE + col2 - + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT - 38 + - + COUNT( * ) FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-5800
SELECT - 38 + - + COUNT ( * ) FROM tab1
----
-41

query I rowsort
SELECT - 56 + - ( - + 36 ) * col1 + - col1 FROM tab0
----
-21
2779
679

query II rowsort
SELECT DISTINCT - - 83, col1 AS col1 FROM tab1 WHERE - 92 IS NOT NULL
----
83
14
83
47
83
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5803
SELECT 52 * - COUNT( * ) col2, - COUNT( * ) DIV COUNT( - col0 ) AS col0 FROM tab0
----
-156
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5803
SELECT 52 * - COUNT ( * ) col2, - COUNT ( * ) / COUNT ( - col0 ) AS col0 FROM tab0
----
-156
-1

query I rowsort
SELECT + col0 * + col1 * 48 FROM tab1 AS cor0
----
20400
205296
34272

query I rowsort
SELECT + ( + 16 ) FROM tab1 AS cor0 WHERE - col2 = NULL
----

query I rowsort
SELECT + col0 * - ( - col0 ) AS col2 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT ALL + + MAX( 40 ) AS col2 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL + + MAX ( 40 ) AS col2 FROM tab2 AS cor0
----
40

query I rowsort
SELECT 36 - - col1 + col0 AS col0 FROM tab2 AS cor0
----
133
177
178

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT + ( + + COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5809
SELECT + ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT MIN( + 94 ) FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-5810
SELECT MIN ( + 94 ) FROM tab1 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT DISTINCT + - COUNT( * ) col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5811
SELECT DISTINCT + - COUNT ( * ) col0 FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5812
SELECT + CAST( + - col1 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5812
SELECT + CAST ( + - col1 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + ( - - col0 ) ) NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT - 43 * - + COUNT( * ) AS col1 FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-5814
SELECT - 43 * - + COUNT ( * ) AS col1 FROM tab0
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5815
SELECT DISTINCT CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5815
SELECT DISTINCT CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) col0 FROM tab2
----
NULL

query I rowsort
SELECT - 28 * + col2 FROM tab0
----
-1316
-2772
-280

query II rowsort
SELECT ALL - col1 AS col2, + 26 + + 2 * + ( 47 ) FROM tab1
----
-14
120
-47
120
-5
120

onlyif mysql # aggregate syntax: 
query II rowsort label-5818
SELECT - COUNT( * ) AS col2, - 64 * MAX( + col1 ) FROM tab1
----
-3
-3008

skipif mysql # not compatible
query II rowsort label-5818
SELECT - COUNT ( * ) AS col2, - 64 * MAX ( + col1 ) FROM tab1
----
-3
-3008

query II rowsort
SELECT ALL - 33 AS col2, + ( col1 ) * + col1 FROM tab1
----
-33
196
-33
2209
-33
25

query II rowsort
SELECT DISTINCT + col2 AS col0, col2 * - col0 AS col2 FROM tab0
----
10
-870
47
-705
99
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5821
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE + 93 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5821
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE + 93 IS NOT NULL
----
NULL

query I rowsort
SELECT - 62 AS col0 FROM tab2 AS cor0 WHERE NOT col0 + - col1 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5823
SELECT DISTINCT col0 DIV col1 - + ( - col2 ) AS col0 FROM tab0 AS cor0
----
14
196
47

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT col0 / col1 - + ( - col2 ) AS col0 FROM tab0 AS cor0
----
14
196
47

query II rowsort
SELECT DISTINCT + 54 AS col1, col1 + - + col2 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
54
-98
54
11
54
34

query I rowsort
SELECT ALL + - 84 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 71 IS NOT NULL
----

query I rowsort
SELECT - - col2 * 13 AS col2 FROM tab2 AS cor0
----
299
520
754

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT - 82 + + COUNT( - + col0 ) FROM tab1 AS cor0 WHERE col1 IS NULL
----
-82

skipif mysql # not compatible
query I rowsort label-5828
SELECT - 82 + + COUNT ( - + col0 ) FROM tab1 AS cor0 WHERE col1 IS NULL
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5829
SELECT 51 / CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5829
SELECT 51 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col0 - - 35 IS NULL
----

query I rowsort
SELECT - col0 * 57 AS col1 FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT ALL COUNT( * ) - - 1 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-5832
SELECT ALL COUNT ( * ) - - 1 FROM tab1
----
4

query I rowsort
SELECT DISTINCT + 11 - 47 FROM tab0
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5834
SELECT ALL + COUNT( * ) DIV 58 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5834
SELECT ALL + COUNT ( * ) / 58 AS col2 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5835
SELECT col0 DIV - col2 - + 20 AS col2 FROM tab0
----
-20
-20
-28

skipif mysql # not compatible
query I rowsort label-5835
SELECT col0 / - col2 - + 20 AS col2 FROM tab0
----
-20
-20
-28

query II rowsort
SELECT ALL + col0 AS col1, + 10 FROM tab2
----
46
10
64
10
75
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT DISTINCT SUM( ALL - 86 ) FROM tab1
----
-258

skipif mysql # not compatible
query I rowsort label-5837
SELECT DISTINCT SUM ( ALL - 86 ) FROM tab1
----
-258

query I rowsort
SELECT DISTINCT - col0 + + - col0 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-5839
SELECT COUNT( * ) col2, - COUNT( * ) AS col1 FROM tab1
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5839
SELECT COUNT ( * ) col2, - COUNT ( * ) AS col1 FROM tab1
----
3
-3

query I rowsort
SELECT DISTINCT + 23 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
23

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT IN ( 39, 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT - SUM( + col0 ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-5842
SELECT - SUM ( + col0 ) AS col1 FROM tab2
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5843
SELECT ALL - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5843
SELECT ALL - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 77 col2, 47 FROM tab2 AS cor0
----
77
47
77
47
77
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5845
SELECT - COUNT( * ) AS col2, + SUM( 32 ) FROM tab2 AS cor0
----
-3
96

skipif mysql # not compatible
query II rowsort label-5845
SELECT - COUNT ( * ) AS col2, + SUM ( 32 ) FROM tab2 AS cor0
----
-3
96

query I rowsort
SELECT + - 79 * + ( + col0 ) AS col0 FROM tab1 AS cor0
----
-4029
-6715
-7189

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT - + SUM( - ( - 71 ) ) AS col1 FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-5847
SELECT - + SUM ( - ( - 71 ) ) AS col1 FROM tab2 AS cor0
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT + SUM( DISTINCT + 96 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5848
SELECT + SUM ( DISTINCT + 96 ) FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5849
SELECT COUNT( * ) AS col1, CAST( 87 AS SIGNED ) FROM tab2 AS cor0
----
3
87

skipif mysql # not compatible
query II rowsort label-5849
SELECT COUNT ( * ) AS col1, CAST ( 87 AS INTEGER ) FROM tab2 AS cor0
----
3
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5850
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5851
SELECT DISTINCT * FROM tab2 WHERE NOT - ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5851
SELECT DISTINCT * FROM tab2 WHERE NOT - ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( ( + 16 ) ) * col2 AS col0 FROM tab0
----
1584
160
752

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * - 62 + + - col1 BETWEEN col0 AND 74
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 * - + col1 * - col2 AS col0 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT 90 + - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT + 7 * col0 / + col1 IS NOT NULL
----

query I rowsort
SELECT - ( + + col2 ) + + 23 * 61 FROM tab1 AS cor0
----
1307
1335
1344

query II rowsort
SELECT ALL col2, 67 FROM tab1 cor0 WHERE NOT - 66 * - - 27 - col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5858
SELECT * FROM tab2 cor0 WHERE - col0 - - 42 * CAST( + col0 AS SIGNED ) * + 97 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5858
SELECT * FROM tab2 cor0 WHERE - col0 - - 42 * CAST ( + col0 AS INTEGER ) * + 97 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT - ( SUM( - - 20 ) ) FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-5859
SELECT - ( SUM ( - - 20 ) ) FROM tab1 AS cor0
----
-60

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 34 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT DISTINCT COUNT( * ) * 94 + - 21 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
-21

skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT COUNT ( * ) * 94 + - 21 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
-21

query II rowsort
SELECT - - col2 AS col2, - col2 * col0 FROM tab1 cor0
----
59
-5015
68
-6188
96
-4896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - 22 - + col0 + - - col2 col2 FROM tab2 AS cor0
----
1259
483
856

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT ALL - + SUM( ALL - col2 ) + - ( 16 ) AS col0 FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL - + SUM ( ALL - col2 ) + - ( 16 ) AS col0 FROM tab2 AS cor0
----
105

query I rowsort
SELECT - col1 + - - col2 * col0 - - 11 FROM tab2 AS cor0
----
1018
2494
4294

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT + - 39 * - 77 + - + COUNT( * ) AS col2 FROM tab1 cor0
----
3000

skipif mysql # not compatible
query I rowsort label-5866
SELECT + - 39 * - 77 + - + COUNT ( * ) AS col2 FROM tab1 cor0
----
3000

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 AS cor0 WHERE NOT 3 IS NOT NULL AND + col2 IS NOT NULL
----

query I rowsort
SELECT ALL col2 FROM tab1 WHERE - 10 + + col0 * + + col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + - col0 * + 56 - col2 > ( + + col1 - + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE col0 <> + + 96
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + - - col2 FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5872
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) - + 32 - + 0 AS col0 FROM tab1
----
-35

skipif mysql # not compatible
query I rowsort label-5872
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) - + 32 - + 0 AS col0 FROM tab1
----
-35

query I rowsort
SELECT - col1 * - 23 AS col2 FROM tab0
----
1863
23
483

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 - - + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + 61 col2 FROM tab0 AS cor0
----
2867
6039
610

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 92 <> + + 18 * + + 62
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN col0 AND - ( + - 27 ) * - col2
----

query II rowsort
SELECT col2, 97 AS col2 FROM tab0
----
10
97
47
97
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT ALL COUNT( * ) * - MAX( ALL - - col2 ) col0 FROM tab2 WHERE ( - col2 / - col0 ) IS NOT NULL
----
-174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5879
SELECT ALL COUNT ( * ) * - MAX ( ALL - - col2 ) col0 FROM tab2 WHERE ( - col2 / - col0 ) IS NOT NULL
----
-174

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 31 IS NULL
----

query I rowsort
SELECT + col1 * - 58 + 28 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-262
-2698
-784

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT ( + + 68 + + + 43 * + - col0 + col0 IS NULL )
----
-23
-40
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5883
SELECT ALL ( + CAST( NULL AS DECIMAL ) ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5883
SELECT ALL ( + CAST ( NULL AS REAL ) ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT - + MIN( - + col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5884
SELECT - + MIN ( - + col1 ) AS col2 FROM tab2 AS cor0
----
77

query I rowsort
SELECT - col1 * - + ( + 21 ) FROM tab0 AS cor0
----
1701
21
441

query II rowsort
SELECT DISTINCT col1, + col1 AS col0 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT ( col0 ) * - ( col2 ) AS col1 FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5888
SELECT ALL + - ( + col0 ) + - col1 * - col2 + CAST( NULL AS SIGNED ), ( + + 1 ) * + 89 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-5888
SELECT ALL + - ( + col0 ) + - col1 * - col2 + CAST ( NULL AS INTEGER ), ( + + 1 ) * + 89 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL col0, col1 AS col0 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT DISTINCT MAX( - 83 ) col1 FROM tab0
----
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5890
SELECT DISTINCT MAX ( - 83 ) col1 FROM tab0
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-5891
SELECT ( - 8 ) * + COUNT( * ) + - 1, + 75 * + 42 AS col2 FROM tab1
----
-25
3150

skipif mysql # not compatible
query II rowsort label-5891
SELECT ( - 8 ) * + COUNT ( * ) + - 1, + 75 * + 42 AS col2 FROM tab1
----
-25
3150

query II rowsort
SELECT + - col0, - 50 FROM tab0 WHERE NOT 42 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, col2 AS col1 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5894
SELECT ALL + - 78 + - CAST( - ( - 0 ) AS SIGNED ) * 6 AS col1 FROM tab0 cor0
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-5894
SELECT ALL + - 78 + - CAST ( - ( - 0 ) AS INTEGER ) * 6 AS col1 FROM tab0 cor0
----
-78
-78
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-5895
SELECT ALL col1 + col1 DIV - col0 col1 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5895
SELECT ALL col1 + col1 / - col0 col1 FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT DISTINCT 7 + + + 39 AS col1 FROM tab1 AS cor0
----
46

query I rowsort
SELECT DISTINCT + ( - + ( + + col0 ) ) AS col1 FROM tab2
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 * - + ( 10 ) + - 26 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f3d4bda483c78f538b28a9f609440927

query I rowsort
SELECT ( 82 ) + - 54 - - 4 FROM tab2
----
32
32
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5900
SELECT - 68 + + col0 DIV + col0 AS col2 FROM tab0
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-5900
SELECT - 68 + + col0 / + col0 AS col2 FROM tab0
----
-67
-67
-67

query I rowsort
SELECT ALL + - 16 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT DISTINCT col2 * - - 66 AS col2 FROM tab0
----
3102
6534
660

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 55 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5904
SELECT + CAST( - - col1 AS SIGNED ), + col1 FROM tab2 cor0
----
51
51
67
67
77
77

skipif mysql # not compatible
query II rowsort label-5904
SELECT + CAST ( - - col1 AS INTEGER ), + col1 FROM tab2 cor0
----
51
51
67
67
77
77

query I rowsort
SELECT DISTINCT + - 72 FROM tab1 cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5906
SELECT DISTINCT + CAST( 18 AS SIGNED ) col2 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5906
SELECT DISTINCT + CAST ( 18 AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT ALL - - 42 + + COUNT( * ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL - - 42 + + COUNT ( * ) FROM tab0 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT DISTINCT + COUNT( * ) + + - 43 AS col2 FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-5908
SELECT DISTINCT + COUNT ( * ) + + - 43 AS col2 FROM tab0 AS cor0
----
-40

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 25 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ( - 84 ) AS col2, 93 AS col1 FROM tab1 AS cor0
----
-84
93
-84
93
-84
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT MAX( - 22 ) - COUNT( * ) FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-5911
SELECT MAX ( - 22 ) - COUNT ( * ) FROM tab2
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-5912
SELECT col1 - col0 + + + ( - col1 ) DIV - - 66 * + col0 + - + 74 AS col1 FROM tab1
----
-111
-118
-154

skipif mysql # not compatible
query I rowsort label-5912
SELECT col1 - col0 + + + ( - col1 ) / - - 66 * + col0 + - + 74 AS col1 FROM tab1
----
-111
-118
-154

query I rowsort
SELECT ALL col1 - - - col2 AS col1 FROM tab0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT DISTINCT COUNT( * ) + 86 FROM tab2 WHERE NOT ( NULL ) IS NULL AND NOT col0 IS NULL
----
86

skipif mysql # not compatible
query I rowsort label-5914
SELECT DISTINCT COUNT ( * ) + 86 FROM tab2 WHERE NOT ( NULL ) IS NULL AND NOT col0 IS NULL
----
86

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + col2 AND - 74 AND NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 33 IS NOT NULL
----

query I rowsort
SELECT ALL + 33 AS col1 FROM tab2 cor0
----
33
33
33

onlyif mysql # DIV for integer division: 
query I rowsort label-5918
SELECT - col2 DIV - col0 col0 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5918
SELECT - col2 / - col0 col0 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT DISTINCT col2 * + 64 FROM tab2 AS cor0
----
1472
2560
3712

query I rowsort
SELECT ALL + 88 * col2 FROM tab0
----
4136
8712
880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5921
SELECT ALL - - col1 * - - col0 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-5921
SELECT ALL - - col1 * - - col0 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
425
4277
714

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * + 68 >= - + col2 - + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + ( + + ( col2 ) ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5924
SELECT * FROM tab0 AS cor0 WHERE NOT - 14 + - CAST( + col1 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-5924
SELECT * FROM tab0 AS cor0 WHERE NOT - 14 + - CAST ( + col1 AS INTEGER ) <> NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT DISTINCT MIN( DISTINCT - col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT MIN ( DISTINCT - col0 ) AS col0 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT + COUNT( * ) AS col0 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5927
SELECT + COUNT ( * ) AS col0 FROM tab1, tab1 AS cor0
----
9

query I rowsort
SELECT col2 + + col0 + - 64 AS col2 FROM tab2
----
40
5
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col2, - col2 * + + col0 col2 FROM tab2
----
-46
-1058
-64
-2560
-75
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 61 * - + col0 + + 23 col2, - col2 AS col1 FROM tab1
----
-3088
-96
-5162
-59
-5528
-68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5931
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( - + CAST( + - 69 AS SIGNED ) ) * - col2 = NULL
----

skipif mysql # not compatible
query III rowsort label-5931
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( - + CAST ( + - 69 AS INTEGER ) ) * - col2 = NULL
----

query I rowsort
SELECT - - col0 * - col2 AS col1 FROM tab0 AS cor0 WHERE NULL <> - col0 * - col1 * col2 * col1 * ( col0 ) - + 3 - + 28
----

query I rowsort
SELECT + 94 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT 88 - - MIN( DISTINCT - - col1 ) FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-5934
SELECT 88 - - MIN ( DISTINCT - - col1 ) FROM tab0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5935
SELECT col0 + - + CAST( + + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-5935
SELECT col0 + - + CAST ( + + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5936
SELECT ALL + COUNT( * ) AS col2, - 47 AS col0 FROM tab2 AS cor0
----
3
-47

skipif mysql # not compatible
query II rowsort label-5936
SELECT ALL + COUNT ( * ) AS col2, - 47 AS col0 FROM tab2 AS cor0
----
3
-47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + - 85 <= - - 12
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5938
SELECT ALL - 95 + 83 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( CAST( NULL AS SIGNED ) ) AND col1
----

skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL - 95 + 83 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( CAST ( NULL AS INTEGER ) ) AND col1
----

query I rowsort
SELECT 31 + - col1 AS col1 FROM tab2 cor0
----
-20
-36
-46

query II rowsort
SELECT ALL - 52 + + - col0 * + + ( - - col1 ) AS col0, col2 FROM tab1 AS cor0
----
-4329
68
-477
59
-766
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col1 )
----

query II rowsort
SELECT DISTINCT - 90 * col1 * 81, - 78 AS col0 FROM tab0
----
-153090
-78
-590490
-78
-7290
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT DISTINCT + + COUNT( * ) FROM tab2 WHERE + col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5943
SELECT DISTINCT + + COUNT ( * ) FROM tab2 WHERE + col2 > NULL
----
0

query I rowsort
SELECT ALL 63 * - - col1 AS col1 FROM tab2
----
3213
4221
4851

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT + - COUNT( * ) * + - ( + ( - SUM( ALL + + col2 ) ) ) * + - 0 AS col2 FROM tab1 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5945
SELECT + - COUNT ( * ) * + - ( + ( - SUM ( ALL + + col2 ) ) ) * + - 0 AS col2 FROM tab1 WHERE NOT col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT - SUM( - - 98 ) col2 FROM tab0
----
-294

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5946
SELECT - SUM ( - - 98 ) col2 FROM tab0
----
-294

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 - + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT ALL SUM( - col0 ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL SUM ( - col0 ) AS col2 FROM tab2
----
-185

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 < - + 8 - ( - 66 ) + 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5950
SELECT ALL - + COUNT( * ) * - - COUNT( * ) col2, - MIN( ALL + - col0 ) FROM tab1 cor0
----
-9
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5950
SELECT ALL - + COUNT ( * ) * - - COUNT ( * ) col2, - MIN ( ALL + - col0 ) FROM tab1 cor0
----
-9
91

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT ALL + COUNT( * ) AS col2 FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL + COUNT ( * ) AS col2 FROM tab0, tab2 AS cor0
----
9

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE + 98 IS NOT NULL
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col2 ) <= NULL
----

query I rowsort
SELECT DISTINCT - + ( + 71 ) * - col1 FROM tab2 AS cor0
----
3621
4757
5467

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = - col1 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5957
SELECT ALL col1 + + CAST( NULL AS SIGNED ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5957
SELECT ALL col1 + + CAST ( NULL AS INTEGER ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT DISTINCT - - 89 * + + SUM( ALL 97 ) + - 72 FROM tab1 AS cor0 WHERE NOT col0 - - + 23 IS NULL
----
25827

skipif mysql # not compatible
query I rowsort label-5959
SELECT DISTINCT - - 89 * + + SUM ( ALL 97 ) + - 72 FROM tab1 AS cor0 WHERE NOT col0 - - + 23 IS NULL
----
25827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - 82 col2 FROM tab0
----
-1230
-7134
-7954

query II rowsort
SELECT DISTINCT 43 + col2 AS col2, - col1 AS col2 FROM tab0
----
142
-1
53
-21
90
-81

query I rowsort
SELECT DISTINCT + col2 * + + col0 AS col2 FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5963
SELECT CAST( + col0 AS SIGNED ) * col1 AS col1 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-5963
SELECT CAST ( + col0 AS INTEGER ) * col1 AS col1 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5964
SELECT + col0 * - + CAST( - 83 AS SIGNED ) col2 FROM tab1
----
4233
7055
7553

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5964
SELECT + col0 * - + CAST ( - 83 AS INTEGER ) col2 FROM tab1
----
4233
7055
7553

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5965
SELECT - ( + col0 ) * 48 / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5965
SELECT - ( + col0 ) * 48 / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + 53 AS col2 FROM tab0 AS cor0
----
134
54
74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 BETWEEN + col2 / + - ( + col2 ) AND ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 7 * col1 + - 17 FROM tab0
----
-164
-24
-584

query II rowsort
SELECT DISTINCT - 51 - - col1 * + col2, + col0 AS col0 FROM tab1
----
1293
51
244
85
3145
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5970
SELECT ALL col1 - - CAST( NULL AS SIGNED ) * + + col1 / col0 * - + col0 * + 91 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5970
SELECT ALL col1 - - CAST ( NULL AS INTEGER ) * + + col1 / col0 * - + col0 * + 91 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 - 28 - + 25 - - col2 * 7 AS col0 FROM tab2 AS cor0 WHERE 26 < NULL
----

query II rowsort
SELECT DISTINCT - + 57, + 59 + - col0 AS col1 FROM tab1 cor0
----
-57
-26
-57
-32
-57
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5973
SELECT ALL 86 FROM tab2 AS cor0 WHERE NOT + CAST( - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5973
SELECT ALL 86 FROM tab2 AS cor0 WHERE NOT + CAST ( - col1 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 5 * - - col1 AS col2 FROM tab2 AS cor0
----
255
335
385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5975
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5975
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + - col0 IS NULL
----

query II rowsort
SELECT + 50 AS col1, - col2 FROM tab1 AS cor0
----
50
-59
50
-68
50
-96

query I rowsort
SELECT - + 74 AS col1 FROM tab0 cor0
----
-74
-74
-74

query II rowsort
SELECT + 89 AS col0, col1 * ( + - 52 ) AS col2 FROM tab0
----
89
-1092
89
-4212
89
-52

query II rowsort
SELECT ALL col1, col0 AS col2 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT ALL + MIN( + ( + col0 ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL + MIN ( + ( + col0 ) ) FROM tab2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5981
SELECT + 27 DIV + + col0 * - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5981
SELECT + 27 / + + col0 * - col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> ( + 70 )
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE NOT - col2 < col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5984
SELECT DISTINCT - + ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5984
SELECT DISTINCT - + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL col1 AS col1, + 89 AS col1 FROM tab0 AS cor0
----
1
89
21
89
81
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5986
SELECT DISTINCT + + col1, + col2 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-5986
SELECT DISTINCT + + col1, + col2 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT ALL MIN( ALL + col0 ) + + 43 FROM tab1 WHERE NOT + 35 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL MIN ( ALL + col0 ) + + 43 FROM tab1 WHERE NOT + 35 BETWEEN NULL AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 37 * + 92 col2, - 23 * - col1 AS col2 FROM tab1 AS cor0
----
-3404
1081
-3404
115
-3404
322

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL <> + col0 / col1 + - col2 )
----

query I rowsort
SELECT - - col0 * 92 FROM tab2 cor0
----
4232
5888
6900

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 69 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT ALL + MIN( ALL col2 ) + - + 93 AS col1 FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-5992
SELECT ALL + MIN ( ALL col2 ) + - + 93 AS col1 FROM tab2 AS cor0
----
-70

query I rowsort
SELECT DISTINCT 38 + + 46 FROM tab1 AS cor0
----
84

query I rowsort
SELECT + ( - + col1 ) AS col0 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5995
SELECT col0 * - col1 + + - ( col2 ) DIV - col0 FROM tab1 AS cor0
----
-425
-4277
-713

skipif mysql # not compatible
query I rowsort label-5995
SELECT col0 * - col1 + + - ( col2 ) / - col0 FROM tab1 AS cor0
----
-425
-4277
-713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5996
SELECT ALL + 40 * 63 * - CAST( col0 AS SIGNED ) FROM tab0
----
-219240
-244440
-37800

skipif mysql # not compatible
query I rowsort label-5996
SELECT ALL + 40 * 63 * - CAST ( col0 AS INTEGER ) FROM tab0
----
-219240
-244440
-37800

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - + col2 ) = - col0 + + 96
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 * + 79 AS col1 FROM tab0
----
1185
6873
7663

query I rowsort
SELECT ALL col1 * - ( col2 ) AS col0 FROM tab0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-6000
SELECT ALL 7 + - + 1 DIV 16 + + 63 FROM tab2
----
70
70
70

skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL 7 + - + 1 / 16 + + 63 FROM tab2
----
70
70
70

query II rowsort
SELECT col0 AS col0, col0 AS col1 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6002
SELECT - - CAST( NULL AS DECIMAL ) + - COUNT( * ) * CAST( NULL AS SIGNED ) + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - 23 + + - 11 BETWEEN - 69 + 14 AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6002
SELECT - - CAST ( NULL AS REAL ) + - COUNT ( * ) * CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - 23 + + - 11 BETWEEN - 69 + 14 AND col1
----
NULL

query I rowsort
SELECT + col2 AS col2 FROM tab1 cor0 WHERE ( NULL ) NOT IN ( - + col2, - col2, ( - - col0 ) * - 13 + + col0 )
----

query I rowsort
SELECT - col2 + - 99 AS col1 FROM tab0 AS cor0 WHERE col0 * 59 * - ( col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * col0 + + 61 AS col1 FROM tab1 cor0
----
-2540
-7164
-8220

query I rowsort
SELECT ALL + 33 * 31 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 106fd24c97679b11d7945605f6e9c241

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6008
SELECT ALL CAST( NULL AS SIGNED ) - + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL CAST ( NULL AS INTEGER ) - + COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT DISTINCT COUNT( ALL + + col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6009
SELECT DISTINCT COUNT ( ALL + + col1 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT - - 61 * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-6010
SELECT - - 61 * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-183

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 73 * col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6012
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col1 * ( - 19 ) - + - 63 * + - col2 / col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6012
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col1 * ( - 19 ) - + - 63 * + - col2 / col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + - 94 * - ( - 23 ) * - + col0 * - - col1 FROM tab0 AS cor0 WHERE NOT NULL <= - col1
----

query II rowsort
SELECT 70 * 88 * - + 74 AS col1, + ( - - 51 ) AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-455840
51
-455840
51
-455840
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6015
SELECT ALL col2 DIV + + 34 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL col2 / + + 34 FROM tab0 AS cor0
----
0
1
2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - ( + + 49 ) AS col1 FROM tab1
----
-49
-49
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6018
SELECT + SUM( DISTINCT - - CAST( 69 AS SIGNED ) ) AS col1 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-6018
SELECT + SUM ( DISTINCT - - CAST ( 69 AS INTEGER ) ) AS col1 FROM tab1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT MAX( + 95 ) AS col0 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-6019
SELECT MAX ( + 95 ) AS col0 FROM tab0
----
95

query I rowsort
SELECT DISTINCT ( + + ( + col0 ) ) FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT 23 * + + 4 * + - SUM( DISTINCT - + col0 ) FROM tab2
----
17020

skipif mysql # not compatible
query I rowsort label-6021
SELECT 23 * + + 4 * + - SUM ( DISTINCT - + col0 ) FROM tab2
----
17020

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6022
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT - col2 = 82 * CAST( NULL AS DECIMAL ) * + - col1 - + col1
----

skipif mysql # not compatible
query I rowsort label-6022
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT - col2 = 82 * CAST ( NULL AS REAL ) * + - col1 - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab2 AS cor0 WHERE NOT col0 - - - col0 IS NULL
----
46
64
75

query I rowsort
SELECT 13 * + col0 * col0 AS col0 FROM tab2
----
27508
53248
73125

query I rowsort
SELECT ( + 67 ) * + 59 AS col1 FROM tab2
----
3953
3953
3953

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6026
SELECT + CAST( NULL AS SIGNED ) + - - COUNT( * ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6026
SELECT + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) col2 FROM tab0
----
NULL

query I rowsort
SELECT - 56 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT - col2 + - + col0 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE - 35 IS NOT NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6030
SELECT ALL 97 + + ( + CAST( - 99 AS SIGNED ) ) AS col0 FROM tab1 cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-6030
SELECT ALL 97 + + ( + CAST ( - 99 AS INTEGER ) ) AS col0 FROM tab1 cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6031
SELECT DISTINCT COUNT( * ) + - - 93 col0 FROM tab2 cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6031
SELECT DISTINCT COUNT ( * ) + - - 93 col0 FROM tab2 cor0
----
96

query II rowsort
SELECT - col0 AS col0, + col2 AS col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT - + COUNT( ALL col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6033
SELECT - + COUNT ( ALL col2 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE + 28 IS NULL
----

query I rowsort
SELECT ALL + col2 + + col2 * + col1 AS col2 FROM tab1
----
1440
3264
354

query I rowsort
SELECT ALL + ( - col2 ) * + col0 - + col2 AS col2 FROM tab0
----
-752
-880
-9702

query I rowsort
SELECT DISTINCT - col1 * + col0 * col2 * col2 * - col1 + - col0 AS col2 FROM tab1
----
7397040
92123085
929511765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 17 * 24 col2 FROM tab0
----
408

query I rowsort
SELECT col0 * - - 26 FROM tab1
----
1326
2210
2366

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT + COUNT( * ) * - + 76 FROM tab0
----
-228

skipif mysql # not compatible
query I rowsort label-6040
SELECT + COUNT ( * ) * - + 76 FROM tab0
----
-228

query I rowsort
SELECT DISTINCT + col2 - + col0 AS col2 FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT - MAX( - col0 ) - + COUNT( * ) * 87 * - SUM( - 14 ) AS col1 FROM tab1
----
-10911

skipif mysql # not compatible
query I rowsort label-6042
SELECT - MAX ( - col0 ) - + COUNT ( * ) * 87 * - SUM ( - 14 ) AS col1 FROM tab1
----
-10911

query II rowsort
SELECT + col2 * col1 * - col0 + - + col1 + + - 28 * col1 * - + 43 AS col2, - col0 FROM tab2 WHERE ( NOT NULL NOT BETWEEN ( NULL ) AND - 78 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6044
SELECT ALL - 96 DIV - 40 AS col0, SUM( + col0 ) FROM tab1
----
2
227

skipif mysql # not compatible
query II rowsort label-6044
SELECT ALL - 96 / - 40 AS col0, SUM ( + col0 ) FROM tab1
----
2
227

query II rowsort
SELECT ALL 81 * - 48 AS col2, col2 FROM tab1
----
-3888
59
-3888
68
-3888
96

query I rowsort
SELECT ALL 8 FROM tab0, tab0 cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT ALL + + col0 * - col2 * + col2 FROM tab2 AS cor0
----
-102400
-24334
-252300

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + + + col2 + - 24 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + + + col2 * col2 FROM tab0 cor0
----
121
2290
9802

query I rowsort
SELECT DISTINCT - col2 + - - col1 + + col1 FROM tab1 cor0
----
-49
-68
26

query I rowsort
SELECT - col2 + - 46 - + 2 * - col1 AS col1 FROM tab2 AS cor0
----
30
33
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6052
SELECT + COUNT( * ) + + - 51 DIV + 41 AS col0 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-6052
SELECT + COUNT ( * ) + + - 51 / + 41 AS col0 FROM tab2 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT DISTINCT - - MIN( + col2 ) col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN - - col0 AND - + 79 OR NULL NOT BETWEEN NULL AND col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6053
SELECT DISTINCT - - MIN ( + col2 ) col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN - - col0 AND - + 79 OR NULL NOT BETWEEN NULL AND col2
----
NULL

query I rowsort
SELECT DISTINCT 81 * col0 AS col1 FROM tab0
----
1215
7047
7857

query I rowsort
SELECT DISTINCT - col2 * 69 AS col1 FROM tab0
----
-3243
-6831
-690

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 BETWEEN col1 * - - col1 + + col1 + + 65 / + col2 AND - ( - - 69 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 84 * + - 44 * - col0 col2 FROM tab1 AS cor0
----
-188496
-314160
-336336

query I rowsort
SELECT - col1 * + + col2 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT + + COUNT( * ) * + + 65 FROM tab1 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-6060
SELECT + + COUNT ( * ) * + + 65 FROM tab1 AS cor0
----
195

query I rowsort
SELECT col0 / + col0 * - 60 * col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6062
SELECT + CAST( - COUNT( ALL 85 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6062
SELECT + CAST ( - COUNT ( ALL 85 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + ( - - col2 ) AS col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6064
SELECT CAST( NULL AS SIGNED ) / + + col0 * + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6064
SELECT CAST ( NULL AS INTEGER ) / + + col0 * + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * - ( 37 ) AS col1 FROM tab1 AS cor0
----
1739
185
518

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( NOT NULL = + col0 * 56 * - col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6067
SELECT - col2 DIV + - col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6067
SELECT - col2 / + - col0 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT - + 61 * COUNT( * ) FROM tab2 cor0
----
-183

skipif mysql # not compatible
query I rowsort label-6068
SELECT - + 61 * COUNT ( * ) FROM tab2 cor0
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT + MAX( ALL + col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-6069
SELECT + MAX ( ALL + col1 ) FROM tab1 cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT DISTINCT COUNT( ALL + ( 90 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6070
SELECT DISTINCT COUNT ( ALL + ( 90 ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT ALL - MAX( ALL col0 ) FROM tab2 WHERE NOT + - 48 * 40 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6071
SELECT ALL - MAX ( ALL col0 ) FROM tab2 WHERE NOT + - 48 * 40 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT DISTINCT 54 * MAX( ALL - - col1 ) AS col2 FROM tab1
----
2538

skipif mysql # not compatible
query I rowsort label-6072
SELECT DISTINCT 54 * MAX ( ALL - - col1 ) AS col2 FROM tab1
----
2538

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6073
SELECT ALL * FROM tab2 AS cor0 WHERE - 5 = + col2 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6073
SELECT ALL * FROM tab2 AS cor0 WHERE - 5 = + col2 + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 95 AS col1 FROM tab0 AS cor0 WHERE - ( - - 34 ) * - + 42 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT - + COUNT( * ) col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6075
SELECT - + COUNT ( * ) col2 FROM tab0 cor0
----
-3

query IIIIII rowsort
SELECT * FROM tab1, tab2 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - 9 AS col0, col0 FROM tab0
----
-9
15
-9
87
-9
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT + + ( + - COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6078
SELECT + + ( + - COUNT ( * ) ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 5 col2 FROM tab0 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT DISTINCT + 11 + + COUNT( * ) FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-6080
SELECT DISTINCT + 11 + + COUNT ( * ) FROM tab1 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT COUNT( * ) * ( - - 6 ) + - 99 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6081
SELECT COUNT ( * ) * ( - - 6 ) + - 99 FROM tab1 AS cor0
----
-81

query I rowsort
SELECT + 53 * - col0 + 66 * - 30 AS col2 FROM tab1 AS cor0
----
-4683
-6485
-6803

query I rowsort
SELECT DISTINCT - col2 + - - col0 AS col2 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT DISTINCT - COUNT( * ) + - - SUM( - 82 ) col0 FROM tab0 AS cor0
----
-249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6084
SELECT DISTINCT - COUNT ( * ) + - - SUM ( - 82 ) col0 FROM tab0 AS cor0
----
-249

query I rowsort
SELECT DISTINCT + col0 + col0 * - 60 + - col1 - + 83 - col2 * + 50 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-3998
-5936
-7475

query I rowsort
SELECT + col1 + + - col1 - - + col0 + + + col0 * + + 43 AS col0 FROM tab0 AS cor0
----
3828
4268
660

query I rowsort
SELECT col1 + col1 * + + 53 FROM tab1 cor0
----
2538
270
756

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT ALL - COUNT( * ) * COUNT( * ) * - COUNT( * ) - + 68 AS col2 FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL - COUNT ( * ) * COUNT ( * ) * - COUNT ( * ) - + 68 AS col2 FROM tab1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6089
SELECT + AVG ( - 31 ) * - 79 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6089
SELECT + AVG ( - 31 ) * - 79 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL 45 - + col1 * col1 AS col1 FROM tab0
----
-396
-6516
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT + COUNT( DISTINCT - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6091
SELECT + COUNT ( DISTINCT - col1 ) FROM tab2
----
3

query II rowsort
SELECT DISTINCT - col0 AS col0, ( ( + 31 ) ) + col0 + - + col2 AS col1 FROM tab2
----
-46
54
-64
55
-75
48

query II rowsort
SELECT ALL + + 36 AS col2, col2 FROM tab1 AS cor0
----
36
59
36
68
36
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6094
SELECT + + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6094
SELECT + + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT - col2, - col0 AS col2 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

query I rowsort
SELECT + 28 - col2 FROM tab2 AS cor0
----
-12
-30
5

query I rowsort
SELECT - - 52 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query II rowsort
SELECT ( + ( col0 ) ) AS col1, - col0 AS col0 FROM tab1
----
51
-51
85
-85
91
-91

query I rowsort
SELECT ALL ( ( col0 ) ) AS col2 FROM tab0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 * - ( + 51 ) col0 FROM tab2
----
-4743
-4743
-4743

query I rowsort
SELECT + 60 * - + col0 * + + col1 AS col2 FROM tab2 AS cor0
----
-140760
-295680
-301500

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 20 * col0 + + + col2 <> NULL
----

query I rowsort
SELECT - - col0 * col0 * - 92 FROM tab0 cor0
----
-20700
-696348
-865628

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT ALL 38 * - COUNT( * ) FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-6104
SELECT ALL 38 * - COUNT ( * ) FROM tab0 AS cor0
----
-114

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN 78 AND - + 3 - - 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 <= + 21
----
1

skipif mysql # not compatible
query I rowsort label-6106
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 <= + 21
----
1

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL + - col0 * + col2 * - 64 FROM tab2 cor0
----
163840
278400
67712

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 / col0 * + col0 NOT BETWEEN + ( 55 ) * + col0 AND NULL
----

query II rowsort
SELECT DISTINCT col2, + col2 AS col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6111
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + col1 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6111
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + col1 AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT ALL + MAX( 77 ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL + MAX ( 77 ) FROM tab1
----
77

onlyif mysql # DIV for integer division: 
query II rowsort label-6113
SELECT ( + 74 ) DIV + col2 AS col2, ( - col2 ) AS col0 FROM tab0
----
0
-99
1
-47
7
-10

skipif mysql # not compatible
query II rowsort label-6113
SELECT ( + 74 ) / + col2 AS col2, ( - col2 ) AS col0 FROM tab0
----
0
-99
1
-47
7
-10

query I rowsort
SELECT + col0 * - col0 * + + col1 * + 53 FROM tab2
----
-16715776
-19974375
-5719548

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 51 * + 99 + + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6116
SELECT ALL - CAST( NULL AS DECIMAL ) / - + ( + + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6116
SELECT ALL - CAST ( NULL AS REAL ) / - + ( + + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + ( - col1 ) col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ( 86 ) * - col1 FROM tab1
----
-1204
-4042
-430

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT DISTINCT COUNT( * ) + 65 AS col2 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-6120
SELECT DISTINCT COUNT ( * ) + 65 AS col2 FROM tab2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT - ( + 7 ) + - MIN( DISTINCT col0 ) FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-6121
SELECT - ( + 7 ) + - MIN ( DISTINCT col0 ) FROM tab2
----
-53

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 8 IN ( 80 * + col1 - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT DISTINCT - MAX( - 20 ) FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-6124
SELECT DISTINCT - MAX ( - 20 ) FROM tab1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6125
SELECT ALL - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT + col2 + - col0 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6125
SELECT ALL - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT + col2 + - col0 > NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 WHERE 65 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6129
SELECT ALL + CAST( NULL AS SIGNED ) * - MAX( DISTINCT + col1 * - 47 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL + CAST ( NULL AS INTEGER ) * - MAX ( DISTINCT + col1 * - 47 ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6130
SELECT COUNT( * ) DIV 33 + 66 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-6130
SELECT COUNT ( * ) / 33 + 66 FROM tab2
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 col1 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT 43 * + col2 FROM tab1
----
2537
2924
4128

query III rowsort
SELECT * FROM tab0 WHERE ( col1 * - ( col2 ) ) BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6134
SELECT + COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6134
SELECT + COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6135
SELECT + 88 DIV 84 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6135
SELECT + 88 / 84 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE NULL = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6136
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE NULL = ( NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6137
SELECT ALL - col2 DIV 9 FROM tab1
----
-10
-6
-7

skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL - col2 / 9 FROM tab1
----
-10
-6
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT + COUNT( * ) + - MAX( DISTINCT 83 ) AS col2 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-6138
SELECT + COUNT ( * ) + - MAX ( DISTINCT 83 ) AS col2 FROM tab0
----
-80

query I rowsort
SELECT - ( + 0 ) + - col1 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 NOT BETWEEN ( NULL ) AND ( 59 )
----
97
1
99

query I rowsort
SELECT col0 - - col1 FROM tab1 WHERE - 2 IS NOT NULL
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT + 85 + ( COUNT( * ) ) AS col0 FROM tab2 WHERE - 53 NOT BETWEEN + col2 AND NULL
----
88

skipif mysql # not compatible
query I rowsort label-6142
SELECT + 85 + ( COUNT ( * ) ) AS col0 FROM tab2 WHERE - 53 NOT BETWEEN + col2 AND NULL
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6143
SELECT 37 * - 67 - - COUNT( * ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6143
SELECT 37 * - 67 - - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6144
SELECT ( COUNT( * ) ) DIV 37 + 87 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-6144
SELECT ( COUNT ( * ) ) / 37 + 87 FROM tab1
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6145
SELECT COUNT( * ) * ( 31 DIV - COUNT( * ) ) FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-6145
SELECT COUNT ( * ) * ( 31 / - COUNT ( * ) ) FROM tab1
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6146
SELECT ALL 47 DIV COUNT( * ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-6146
SELECT ALL 47 / COUNT ( * ) AS col1 FROM tab0
----
15

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 68 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6148
SELECT - 74 DIV col2 FROM tab0 AS cor0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-6148
SELECT - 74 / col2 FROM tab0 AS cor0
----
-1
-7
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - 81 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT MAX( + col1 ) AS col1 FROM tab2 WHERE NOT + col0 <> col0
----
77

skipif mysql # not compatible
query I rowsort label-6150
SELECT MAX ( + col1 ) AS col1 FROM tab2 WHERE NOT + col0 <> col0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6151
SELECT ALL + col0 FROM tab0 WHERE - CAST( NULL AS SIGNED ) - - 28 >= ( - col1 * - 27 )
----

skipif mysql # not compatible
query I rowsort label-6151
SELECT ALL + col0 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) - - 28 >= ( - col1 * - 27 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( col1 - + ( 95 ) ) >= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT DISTINCT + COUNT( ALL ( + col0 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6153
SELECT DISTINCT + COUNT ( ALL ( + col0 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + ( ( - col0 ) ) * col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT col2 + 8 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( 6 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 79 col2 FROM tab0 AS cor0
----
-1659
-6399
-79

query I rowsort
SELECT + col0 + col1 FROM tab0 AS cor0 WHERE NOT + 73 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT DISTINCT + - COUNT( * ) * 31 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT + - COUNT ( * ) * 31 FROM tab2 AS cor0
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-6159
SELECT ALL col0 DIV 23 AS col1 FROM tab0 AS cor0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL col0 / 23 AS col1 FROM tab0 AS cor0
----
0
3
4

query I rowsort
SELECT 90 * - col1 AS col2 FROM tab0 AS cor0
----
-1890
-7290
-90

query I rowsort
SELECT - col2 AS col1 FROM tab2 cor0 WHERE NOT NULL IN ( col1 * + col2 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 BETWEEN col0 / + 14 + col1 AND ( 49 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6163
SELECT ALL CAST( + ( + ( col2 ) ) AS SIGNED ) DIV + col1 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL CAST ( + ( + ( col2 ) ) AS INTEGER ) / + col1 FROM tab0 AS cor0
----
0
0
99

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL 38 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
38
38
38

onlyif mysql # DIV for integer division: 
query I rowsort label-6166
SELECT ( + + 85 ) DIV - col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-6166
SELECT ( + + 85 ) / - col0 FROM tab0
----
-5
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6167
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6167
SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IS NOT NULL OR NOT - col1 / col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 64 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 + - 73 AS col0 FROM tab1
----
-26
-59
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 7 * 72 - - col2 IN ( - 83 )
----
-3

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 7 * 72 - - col2 IN ( - 83 )
----
-3

query I rowsort
SELECT + col0 * + col0 * + col1 + col2 FROM tab0 AS cor0
----
158959
18272
9508

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + col1 * 45 AND + 66 - ( + 49 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT DISTINCT + SUM( - - col0 ) * - 20 + 52 AS col2 FROM tab0 AS cor0
----
-3928

skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT + SUM ( - - col0 ) * - 20 + 52 AS col2 FROM tab0 AS cor0
----
-3928

query I rowsort
SELECT 49 FROM tab2 AS cor0 WHERE NULL >= - col0
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE - 8 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 * - ( - col0 ) + ( 44 + + 85 ) * + 88 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 46 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
46

query I rowsort
SELECT + - 11 + col0 AS col1 FROM tab2 AS cor0
----
35
53
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + + 29 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT DISTINCT + + COUNT( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6183
SELECT DISTINCT + + COUNT ( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 30 + + + col0 * col0 + - col2 * - col1 FROM tab0 AS cor0
----
4002
7749
9478

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 + + col1 col2 FROM tab2 AS cor0
----
101
111
85

query I rowsort
SELECT - ( + ( + 61 ) ) + ( - 83 ) FROM tab0 AS cor0
----
-144
-144
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT COUNT( * ) + MAX( + col0 ) FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-6187
SELECT COUNT ( * ) + MAX ( + col0 ) FROM tab0 AS cor0
----
100

query I rowsort
SELECT ALL - 98 + + col1 FROM tab2 AS cor0
----
-21
-31
-47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 IN ( - + col2 + col0 )
----

query I rowsort
SELECT DISTINCT - + 58 + + col2 AS col0 FROM tab2 AS cor0
----
-18
-35
0

query I rowsort
SELECT + + col0 * - 43 * + 76 * col1 + 81 AS col1 FROM tab0 AS cor0
----
-316915
-3970539
-5970555

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT + MAX( DISTINCT - col2 ) FROM tab0 WHERE NULL IS NULL
----
-10

skipif mysql # not compatible
query I rowsort label-6192
SELECT + MAX ( DISTINCT - col2 ) FROM tab0 WHERE NULL IS NULL
----
-10

query I rowsort
SELECT ALL + col2 + - 27 + + 4 * 14 FROM tab0
----
128
39
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT - 53 * - COUNT( * ) FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-6194
SELECT - 53 * - COUNT ( * ) FROM tab1
----
159

query III rowsort
SELECT * FROM tab0 WHERE NOT - 2 NOT IN ( 79 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= ( col2 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT COUNT( DISTINCT + 82 ) + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 * 37 NOT IN ( + col0 + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6197
SELECT COUNT ( DISTINCT + 82 ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 * 37 NOT IN ( + col0 + + col0 )
----
0

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 WHERE + col2 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT 39 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
39

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 38 + 26 > NULL
----

query I rowsort
SELECT ALL - - 48 * 46 AS col1 FROM tab0 AS cor0
----
2208
2208
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6202
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col2 )
----
0

query I rowsort
SELECT - col2 + + + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col2 + - col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * - 97 FROM tab2 AS cor0
----
-4462
-6208
-7275

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT ALL SUM( - 17 ) AS col1 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-6206
SELECT ALL SUM ( - 17 ) AS col1 FROM tab0
----
-51

query I rowsort
SELECT 67 * 40 FROM tab0
----
2680
2680
2680

query I rowsort
SELECT ALL col1 * - 78 AS col1 FROM tab2
----
-3978
-5226
-6006

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 1 col2 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL 25 * 7 * - - col1 FROM tab1
----
2450
8225
875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6211
SELECT CAST( NULL AS SIGNED ) * 53 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6211
SELECT CAST ( NULL AS INTEGER ) * 53 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col0 * + - col0, col2 * - - 72 AS col0 FROM tab0
----
225
3384
7569
720
9409
7128

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6214
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 / + - col1 NOT IN ( - CAST( - col2 AS SIGNED ) + 68 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6214
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 / + - col1 NOT IN ( - CAST ( - col2 AS INTEGER ) + 68 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col2 * + - ( - col0 ) * + - 32 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 71 * col2 FROM tab2 AS cor0 WHERE - col2 BETWEEN NULL AND ( - - col2 + - col0 )
----

query II rowsort
SELECT 43 + - col2 AS col0, - col1 AS col2 FROM tab0
----
-4
-81
-56
-1
33
-21

query I rowsort
SELECT + ( - - col2 ) + + col2 FROM tab2
----
116
46
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6219
SELECT ALL + + CAST( NULL AS SIGNED ) - - MAX( 75 ) AS col1, - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-6219
SELECT ALL + + CAST ( NULL AS INTEGER ) - - MAX ( 75 ) AS col1, - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
-9

query I rowsort
SELECT DISTINCT + col1 * - col2 + + + col2 + + - col0 - - col1 AS col1 FROM tab2 cor0
----
-1145
-3027
-3836

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 65 + - - col2 col1, - col1 AS col1 FROM tab1 cor0
----
124
-5
133
-47
161
-14

query I rowsort
SELECT ALL 83 + 92 * col1 AS col2 FROM tab0 AS cor0
----
175
2015
7535

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT - SUM( ALL + col2 ) - - 10 AS col1 FROM tab0 AS cor0
----
-146

skipif mysql # not compatible
query I rowsort label-6223
SELECT - SUM ( ALL + col2 ) - - 10 AS col1 FROM tab0 AS cor0
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT ALL + COUNT( ALL - col2 ) - MIN( col0 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-48

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL + COUNT ( ALL - col2 ) - MIN ( col0 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-48

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 19 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT SUM( DISTINCT - col0 ) col1 FROM tab0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6226
SELECT SUM ( DISTINCT - col0 ) col1 FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT ALL - COUNT( 54 ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6227
SELECT ALL - COUNT ( 54 ) col1 FROM tab0
----
-3

query II rowsort
SELECT DISTINCT 96, 92 AS col0 FROM tab2
----
96
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6229
SELECT + COUNT( col0 ) * CAST( - MIN( - col2 ) AS SIGNED ) AS col1 FROM tab0 WHERE NOT NULL = - CAST( + 27 AS SIGNED ) * - col0 + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6229
SELECT + COUNT ( col0 ) * CAST ( - MIN ( - col2 ) AS INTEGER ) AS col1 FROM tab0 WHERE NOT NULL = - CAST ( + 27 AS INTEGER ) * - col0 + col2
----
NULL

query II rowsort
SELECT ALL + + col0, - 12 FROM tab2 AS cor0
----
46
-12
64
-12
75
-12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 81 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 30 * - col0 - - col0 AS col0 FROM tab0 AS cor0
----
2697
3007
465

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6233
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * - col0 > - CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6233
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * - col0 > - CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - ( - 41 ) IS NOT NULL
----

query II rowsort
SELECT + 18 * col0, col0 FROM tab2 AS cor0
----
1152
64
1350
75
828
46

query I rowsort
SELECT DISTINCT 90 + - col1 FROM tab1 AS cor0
----
43
76
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 77 * + 52 col2 FROM tab2 AS cor0
----
4004

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT - - SUM( - 57 ) FROM tab2 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-6238
SELECT - - SUM ( - 57 ) FROM tab2 AS cor0
----
-171

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6239
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) + + col0 / col0 / col2 / - 68 / - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6239
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) + + col0 / col0 / col2 / - 68 / - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 90 * - col0 + - col0 AS col2 FROM tab0 AS cor0
----
1335
7743
8633

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6241
SELECT DISTINCT + 22 * + COUNT( * ) * - 22 * MAX( ALL - col2 ) + + + 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-6241
SELECT DISTINCT + 22 * + COUNT ( * ) * - 22 * MAX ( ALL - col2 ) + + + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT DISTINCT - - SUM( col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-6242
SELECT DISTINCT - - SUM ( col1 ) FROM tab1 cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + - ( + + 28 ) col2 FROM tab2
----
23
39
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6244
SELECT + col2 * + - col1 + + + col0 + + CAST( NULL AS SIGNED ) * + - col2 * - - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6244
SELECT + col2 * + - col1 + + + col0 + + CAST ( NULL AS INTEGER ) * + - col2 * - - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - - col2 ) FROM tab1 WHERE - - col0 BETWEEN NULL AND + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT ALL + 74 * - COUNT( * ) AS col0 FROM tab0
----
-222

skipif mysql # not compatible
query I rowsort label-6246
SELECT ALL + 74 * - COUNT ( * ) AS col0 FROM tab0
----
-222

query I rowsort
SELECT DISTINCT col1 + ( + - col0 ) FROM tab1
----
-37
-44
-80

query I rowsort
SELECT - col1 + + + col0 AS col0 FROM tab2
----
-13
-5
8

query I rowsort
SELECT - 78 AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT - + MAX( - + col0 ) AS col2 FROM tab1 cor0 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6250
SELECT - + MAX ( - + col0 ) AS col2 FROM tab1 cor0 WHERE - col2 IS NULL
----
NULL

query II rowsort
SELECT - + col2, col0 * col1 AS col2 FROM tab0 AS cor0
----
-10
1827
-47
1215
-99
97

query I rowsort
SELECT ALL - col1 * + 57 + + + col0 AS col0 FROM tab2 AS cor0
----
-2861
-3744
-4325

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT + MIN( + - col0 ) * 88 FROM tab2 AS cor0
----
-6600

skipif mysql # not compatible
query I rowsort label-6253
SELECT + MIN ( + - col0 ) * 88 FROM tab2 AS cor0
----
-6600

query II rowsort
SELECT + col2 AS col2, 26 * + col1 FROM tab1 AS cor0
----
59
130
68
1222
96
364

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6255
SELECT + COUNT( * ) - - + 61 DIV + + COUNT( * ) FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-6255
SELECT + COUNT ( * ) - - + 61 / + + COUNT ( * ) FROM tab0
----
23

query II rowsort
SELECT col0, col1 FROM tab1 WHERE ( - col0 ) / - + col1 IS NOT NULL
----
51
14
85
5
91
47

query I rowsort
SELECT col2 - - col0 * 96 AS col1 FROM tab1
----
4992
8219
8804

query I rowsort
SELECT + col1 + col2 AS col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query II rowsort
SELECT + col0 + - col2, - 1 AS col0 FROM tab1 cor0
----
-45
-1
23
-1
26
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT - + MAX( col2 ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-6260
SELECT - + MAX ( col2 ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-61

query I rowsort
SELECT col2 * 91 + - col0 AS col1 FROM tab0 AS cor0
----
4262
823
8912

query I rowsort
SELECT + + col2 * - + 76 + col1 AS col1 FROM tab1 AS cor0
----
-4479
-5121
-7282

query I rowsort
SELECT + + 98 * - - 54 * - col0 FROM tab0 AS cor0
----
-460404
-513324
-79380

query II rowsort
SELECT DISTINCT - 8, col1 FROM tab0 AS cor0
----
-8
1
-8
21
-8
81

query I rowsort
SELECT DISTINCT - + col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6266
SELECT + 79 DIV - - col2 col1 FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6266
SELECT + 79 / - - col2 col1 FROM tab2 AS cor0
----
1
1
3

query I rowsort
SELECT ALL col1 * - + col1 AS col2 FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT ALL + 89 FROM tab1 WHERE NOT - + col1 IS NULL
----
89
89
89

onlyif mysql # DIV for integer division: 
query I rowsort label-6269
SELECT ALL col2 DIV - col0 AS col1 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL col2 / - col0 AS col1 FROM tab0
----
-1
-3
0

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT - 17 NOT IN ( - + col0 + - col2, 70 + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6271
SELECT DISTINCT + 73 DIV - col1 FROM tab1
----
-1
-14
-5

skipif mysql # not compatible
query I rowsort label-6271
SELECT DISTINCT + 73 / - col1 FROM tab1
----
-1
-14
-5

query I rowsort
SELECT ALL 26 * + col1 FROM tab1
----
1222
130
364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6273
SELECT DISTINCT MAX( + - ( + CAST( NULL AS SIGNED ) ) ) AS col1, COUNT( * ) * - 96 AS col0 FROM tab0
----
NULL
-288

skipif mysql # not compatible
query II rowsort label-6273
SELECT DISTINCT MAX ( + - ( + CAST ( NULL AS INTEGER ) ) ) AS col1, COUNT ( * ) * - 96 AS col0 FROM tab0
----
NULL
-288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 col2 FROM tab1 AS cor0
----
98

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 40 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col1 ) * + col0 + + col0 col2 FROM tab2 AS cor0
----
-2300
-4864
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT DISTINCT + MIN( ALL - + col1 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6277
SELECT DISTINCT + MIN ( ALL - + col1 ) AS col2 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT - col2 + + - 24 * col0 FROM tab2 AS cor0
----
-1127
-1576
-1858

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 + - col1 + + col1 col2 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT ALL - col1 * + + col2 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT + ( - COUNT( * ) ) * + COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-6282
SELECT + ( - COUNT ( * ) ) * + COUNT ( * ) FROM tab2
----
-9

query III rowsort
SELECT * FROM tab2 WHERE ( - + 46 ) NOT BETWEEN NULL AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + 69 ) AS col0 FROM tab0
----
69
69
69

query III rowsort
SELECT * FROM tab2 WHERE + 8 / - 81 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 10 col1 FROM tab1 AS cor0
----
-10
-10
-10

query I rowsort
SELECT - 36 FROM tab0 AS cor0 WHERE 21 / - col0 * - 80 = ( NULL )
----

query I rowsort
SELECT + 22 + 46 AS col1 FROM tab1 AS cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT ALL - - ( - - ( - COUNT( * ) ) ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6289
SELECT ALL - - ( - - ( - COUNT ( * ) ) ) col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL col1 + + col1 AS col0 FROM tab2 cor0
----
102
134
154

query I rowsort
SELECT + 98 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT DISTINCT + 60 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT COUNT( * ) col0 FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6293
SELECT COUNT ( * ) col0 FROM tab1, tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col0, + col2 col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 76 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT 82 * COUNT( * ) FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-6296
SELECT 82 * COUNT ( * ) FROM tab0 AS cor0
----
246

query I rowsort
SELECT ALL col2 * - 8 AS col1 FROM tab0 AS cor0
----
-376
-792
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6298
SELECT + + COUNT( * ) DIV COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6298
SELECT + + COUNT ( * ) / COUNT ( * ) FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 11 col0, + 94 FROM tab1 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6300
SELECT col1 * + col1 DIV - - col1 AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6300
SELECT col1 * + col1 / - - col1 AS col0 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6301
SELECT DISTINCT - ( + CAST( col2 AS SIGNED ) ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-6301
SELECT DISTINCT - ( + CAST ( col2 AS INTEGER ) ) FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6302
SELECT CAST( NULL AS SIGNED ) * - 52 / - - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6302
SELECT CAST ( NULL AS INTEGER ) * - 52 / - - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT DISTINCT - COUNT( * ) * + - 47 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT - COUNT ( * ) * + - 47 FROM tab1
----
141

query I rowsort
SELECT + col0 * - col0 - - + col0 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-2550
-7140
-8190

query I rowsort
SELECT ALL - col0 * col1 * + col0 AS col1 FROM tab0 AS cor0
----
-158949
-18225
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT ALL + MIN( + + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6306
SELECT ALL + MIN ( + + col1 ) FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT DISTINCT - MIN( - col0 ) col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6307
SELECT DISTINCT - MIN ( - col0 ) col1 FROM tab2 AS cor0
----
75

query I rowsort
SELECT 19 * + col2 AS col1 FROM tab0 cor0
----
1881
190
893

query I rowsort
SELECT ALL - col1 * - + col1 + - col0 FROM tab0
----
-96
354
6546

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 81 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 22 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT ALL - 36 * + + ( COUNT( * ) ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-6312
SELECT ALL - 36 * + + ( COUNT ( * ) ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 col2 FROM tab1 AS cor0
----
61
61
61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 79 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6315
SELECT DISTINCT + col2 + col1 + - CAST( NULL AS SIGNED ) * ( + col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6315
SELECT DISTINCT + col2 + col1 + - CAST ( NULL AS INTEGER ) * ( + col2 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 39 + - 85 * - ( - - 7 ) AS col0 FROM tab2 AS cor0
----
634
634
634

query I rowsort
SELECT col0 + ( + 69 ) AS col1 FROM tab2 AS cor0
----
115
133
144

onlyif mysql # DIV for integer division: 
query I rowsort label-6318
SELECT 51 * - 24 + - col1 DIV - 61 AS col1 FROM tab2
----
-1223
-1223
-1224

skipif mysql # not compatible
query I rowsort label-6318
SELECT 51 * - 24 + - col1 / - 61 AS col1 FROM tab2
----
-1223
-1223
-1224

query II rowsort
SELECT DISTINCT + ( - 98 ) AS col1, - 71 AS col2 FROM tab1, tab0 AS cor0
----
-98
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-6320
SELECT col2 DIV 92 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6320
SELECT col2 / 92 AS col0 FROM tab0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6321
SELECT ALL col0 + ( + col2 ) DIV + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6321
SELECT ALL col0 + ( + col2 ) / + col0 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6323
SELECT DISTINCT col1 + - - CAST( NULL AS DECIMAL ) + + col0 * 2 * + col2 FROM tab0 WHERE col1 * 61 IN ( - ( - col1 ) * + col2 + - - col1 )
----

skipif mysql # not compatible
query I rowsort label-6323
SELECT DISTINCT col1 + - - CAST ( NULL AS REAL ) + + col0 * 2 * + col2 FROM tab0 WHERE col1 * 61 IN ( - ( - col1 ) * + col2 + - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT DISTINCT MIN( ( 24 ) ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-6324
SELECT DISTINCT MIN ( ( 24 ) ) FROM tab2
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 col1 FROM tab0 AS cor0
----
89

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN + + ( - 94 ) AND NULL
----

query I rowsort
SELECT ALL + 93 * + 76 AS col1 FROM tab2 AS cor0
----
7068
7068
7068

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT ALL SUM( DISTINCT col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL SUM ( DISTINCT col0 ) FROM tab1 AS cor0
----
227

query II rowsort
SELECT + 86, + col2 FROM tab2
----
86
23
86
40
86
58

query II rowsort
SELECT ( + col0 ) * col1 AS col1, + col0 + - - col1 + + col0 * + col2 AS col0 FROM tab2
----
2346
1155
4928
2701
5025
4492

query I rowsort
SELECT ALL - 63 * + col1 FROM tab0
----
-1323
-5103
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT + MIN( + col1 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6332
SELECT + MIN ( + col1 ) AS col2 FROM tab2
----
51

query I rowsort
SELECT 60 * 76 AS col1 FROM tab2
----
4560
4560
4560

query II rowsort
SELECT + col0 AS col0, + ( - col0 ) FROM tab0
----
15
-15
87
-87
97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT DISTINCT - ( + + ( + COUNT( * ) ) ) * 77 - + 99 FROM tab0 AS cor0
----
-330

skipif mysql # not compatible
query I rowsort label-6335
SELECT DISTINCT - ( + + ( + COUNT ( * ) ) ) * 77 - + 99 FROM tab0 AS cor0
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT ALL COUNT( * ) AS col0 FROM tab0, tab1 AS cor0 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL COUNT ( * ) AS col0 FROM tab0, tab1 AS cor0 WHERE NULL IS NULL
----
9

query I rowsort
SELECT + 52 * - 49 + - col1 AS col1 FROM tab2
----
-2599
-2615
-2625

query I rowsort
SELECT ALL col1 * - + 62 + - ( - + col2 ) FROM tab0
----
-1292
-4975
37

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 62 >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 13 + + + col2 FROM tab0 AS cor0
----
-3
34
86

query I rowsort
SELECT DISTINCT + 56 + - col1 - - col1 + - + col2 * col0 AS col0 FROM tab0 AS cor0
----
-649
-814
-9547

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6342
SELECT ALL col1 + - 67 + + + CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-25
-65
95

skipif mysql # not compatible
query I rowsort label-6342
SELECT ALL col1 + - 67 + + + CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-25
-65
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6343
SELECT CAST( - 46 AS SIGNED ) FROM tab0 AS cor0
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-6343
SELECT CAST ( - 46 AS INTEGER ) FROM tab0 AS cor0
----
-46
-46
-46

query I rowsort
SELECT - 89 * + - col0 FROM tab1 AS cor0
----
4539
7565
8099

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT + ( - + COUNT( ALL + 30 ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6345
SELECT + ( - + COUNT ( ALL + 30 ) ) AS col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE - 3 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6347
SELECT DISTINCT col1 - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6347
SELECT DISTINCT col1 - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - - col1 col2 FROM tab1
----
138
65
90

query I rowsort
SELECT DISTINCT 66 * + 89 * col1 - + col2 AS col2 FROM tab1
----
276010
29311
82140

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT + ( - SUM( ALL + - 93 ) ) * - - 18 - - 8 AS col0 FROM tab2
----
5030

skipif mysql # not compatible
query I rowsort label-6350
SELECT + ( - SUM ( ALL + - 93 ) ) * - - 18 - - 8 AS col0 FROM tab2
----
5030

query I rowsort
SELECT DISTINCT + + col2 + 56 AS col0 FROM tab0 WHERE NOT NULL > - col2 AND col1 + - 83 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - ( - - col2 ) ) - 72 * + col1 + - col2 - ( col0 ) col2 FROM tab1
----
-1059
-3475
-445

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6353
SELECT col2 * ( CAST( NULL AS SIGNED ) ) / + col2 - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6353
SELECT col2 * ( CAST ( NULL AS INTEGER ) ) / + col2 - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT COUNT( * ) * 93 + + MIN( - ( - col0 ) ) AS col1 FROM tab1 WHERE + - 19 = - + ( - - col0 ) + - 18 - - - col0 * - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6354
SELECT COUNT ( * ) * 93 + + MIN ( - ( - col0 ) ) AS col1 FROM tab1 WHERE + - 19 = - + ( - - col0 ) + - 18 - - - col0 * - col1
----
NULL

query II rowsort
SELECT DISTINCT + col1 * + 70 AS col0, - 77 * - col0 FROM tab0 cor0
----
1470
6699
5670
1155
70
7469

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6357
SELECT ALL + + CAST( - COUNT( * ) AS SIGNED ), - ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-6357
SELECT ALL + + CAST ( - COUNT ( * ) AS INTEGER ), - ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT DISTINCT - MAX( 18 ) AS col2 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-6358
SELECT DISTINCT - MAX ( 18 ) AS col2 FROM tab1
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + ( - - col1 ) col2 FROM tab0 WHERE - ( + 86 ) <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN + col2 AND + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6361
SELECT DISTINCT COUNT( * ), COUNT( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6361
SELECT DISTINCT COUNT ( * ), COUNT ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT ALL MIN( DISTINCT - col1 ) * + COUNT( * ) AS col2 FROM tab1 cor0
----
-141

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL MIN ( DISTINCT - col1 ) * + COUNT ( * ) AS col2 FROM tab1 cor0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT - SUM( DISTINCT - + col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-6363
SELECT - SUM ( DISTINCT - + col0 ) AS col1 FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6364
SELECT - CAST( NULL AS SIGNED ) AS col0, - col0 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-6364
SELECT - CAST ( NULL AS INTEGER ) AS col0, - col0 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 33 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 col0 FROM tab1
----
78
78
78

query I rowsort
SELECT 78 * 92 FROM tab1
----
7176
7176
7176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + + 68 col1, + col0 * + col0 FROM tab1
----
21
8281
54
2601
63
7225

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * + 0 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6370
SELECT - col1 * - col1 / col2 AS col2 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) + - col2 BETWEEN NULL AND + - 6 * 20 + 36
----

skipif mysql # not compatible
query I rowsort label-6370
SELECT - col1 * - col1 / col2 AS col2 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) + - col2 BETWEEN NULL AND + - 6 * 20 + 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT ALL COUNT( * ) + 78 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 * - + 61 )
----
78

skipif mysql # not compatible
query I rowsort label-6371
SELECT ALL COUNT ( * ) + 78 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 * - + 61 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT - - MAX( DISTINCT col0 ) AS col1 FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-6372
SELECT - - MAX ( DISTINCT col0 ) AS col1 FROM tab0 cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT DISTINCT SUM( 99 ) + - + 89 AS col0 FROM tab0 AS cor0
----
208

skipif mysql # not compatible
query I rowsort label-6373
SELECT DISTINCT SUM ( 99 ) + - + 89 AS col0 FROM tab0 AS cor0
----
208

query I rowsort
SELECT ALL + + AVG ( ALL + + col1 ) FROM tab0 AS cor0 WHERE 86 + - col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6375
SELECT DISTINCT 38 + - + ( - + CAST( - col0 AS SIGNED ) ) col1 FROM tab0 AS cor0
----
-49
-59
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6375
SELECT DISTINCT 38 + - + ( - + CAST ( - col0 AS INTEGER ) ) col1 FROM tab0 AS cor0
----
-49
-59
23

query II rowsort
SELECT ALL - col2, col2 AS col1 FROM tab0
----
-10
10
-47
47
-99
99

query III rowsort
SELECT * FROM tab1 WHERE NULL = - 63
----

query I rowsort
SELECT ALL - col1 * - - col1 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6379
SELECT DISTINCT + + 19 * CAST( NULL AS SIGNED ) / + - MAX( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6379
SELECT DISTINCT + + 19 * CAST ( NULL AS INTEGER ) / + - MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6380
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col2 / - + 70 + + + ( + col1 ) * - - 64 * - col1 - - col0 AS col2, + 55 AS col0 FROM tab0 AS cor0
----
NULL
55

skipif mysql # not compatible
query II rowsort label-6380
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col2 / - + 70 + + + ( + col1 ) * - - 64 * - col1 - - col0 AS col2, + 55 AS col0 FROM tab0 AS cor0
----
NULL
55

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( NULL ) IN ( 79 * + + ( + col2 ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 23 + + + col2 col1 FROM tab0 AS cor0
----
-13
24
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT - 94 + COUNT( * ) FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-6383
SELECT - 94 + COUNT ( * ) FROM tab0 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT + COUNT( * ) + + + 33 AS col2 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-6384
SELECT + COUNT ( * ) + + + 33 AS col2 FROM tab1 AS cor0
----
36

query I rowsort
SELECT col1 + 44 AS col0 FROM tab2 AS cor0
----
111
121
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT MIN( ALL ( - col2 ) ) + + MIN( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-6386
SELECT MIN ( ALL ( - col2 ) ) + + MIN ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-198

query III rowsort
SELECT * FROM tab1 WHERE NULL <> - col0
----

query I rowsort
SELECT DISTINCT + ( + + col0 ) + - + col2 + + + 80 * - col1 FROM tab0
----
-1603
-6512
-82

query I rowsort
SELECT ALL col2 * col0 - col1 FROM tab2
----
1007
2483
4283

query I rowsort
SELECT DISTINCT - 75 * - + ( ( - col2 ) ) - - 79 FROM tab1
----
-4346
-5021
-7121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + col1 col0 FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6392
SELECT ALL + col1 + - col2 DIV + col0 col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6392
SELECT ALL + col1 + - col2 / + col0 col0 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6393
SELECT CAST( NULL AS DECIMAL ), COUNT( * ) col2 FROM tab2
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6393
SELECT CAST ( NULL AS REAL ), COUNT ( * ) col2 FROM tab2
----
NULL
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + ( + + ( + col2 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT MIN( - - col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6395
SELECT MIN ( - - col1 ) AS col2 FROM tab1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6396
SELECT - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE + 11 - col0 NOT BETWEEN + col2 AND + col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6396
SELECT - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE + 11 - col0 NOT BETWEEN + col2 AND + col0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 - col0 + + col0 * col0 + ( col0 ) + - 44 * - 58 FROM tab0
----
10131
12060
2824

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT COUNT( * ) * - 77 AS col0 FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-6398
SELECT COUNT ( * ) * - 77 AS col0 FROM tab2
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT ALL + COUNT( * ) - - + MIN( ALL + 69 ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-6399
SELECT ALL + COUNT ( * ) - - + MIN ( ALL + 69 ) FROM tab0
----
72

onlyif mysql # DIV for integer division: 
query II rowsort label-6400
SELECT - col2 DIV + + col0 + - col1 - - + col0 AS col1, 31 AS col1 FROM tab0 cor0
----
-69
31
66
31
95
31

skipif mysql # not compatible
query II rowsort label-6400
SELECT - col2 / + + col0 + - col1 - - + col0 AS col1, 31 AS col1 FROM tab0 cor0
----
-69
31
66
31
95
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6401
SELECT ALL - col1 * + - CAST( + 23 AS SIGNED ) col0 FROM tab0
----
1863
23
483

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6401
SELECT ALL - col1 * + - CAST ( + 23 AS INTEGER ) col0 FROM tab0
----
1863
23
483

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + col2 + + col0 * - - col0 + 75 + col2 <> - + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6403
SELECT + - COUNT( * ), ( 31 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
31

skipif mysql # not compatible
query II rowsort label-6403
SELECT + - COUNT ( * ), ( 31 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
31

query I rowsort
SELECT - col1 + ( 18 ) FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT - MAX( DISTINCT + + col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-6405
SELECT - MAX ( DISTINCT + + col2 ) AS col0 FROM tab0 AS cor0
----
-99

query II rowsort
SELECT DISTINCT - col0 - - col0, + col2 FROM tab2 cor0 WHERE + col0 * 58 * + - 96 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + + col1 * 96 AS col1 FROM tab0 AS cor0
----
195
2026
7823

onlyif mysql # aggregate syntax: 
query II rowsort label-6408
SELECT DISTINCT - COUNT( - col0 ) col1, 29 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6408
SELECT DISTINCT - COUNT ( - col0 ) col1, 29 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3
87

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col0 IN ( col2, - 71, - col2, - + col0 / - - col2 + + 87 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6410
SELECT CAST( NULL AS SIGNED ) AS col0, col1 + - col0 AS col1 FROM tab0
----
NULL
-66
NULL
-96
NULL
66

skipif mysql # not compatible
query II rowsort label-6410
SELECT CAST ( NULL AS INTEGER ) AS col0, col1 + - col0 AS col1 FROM tab0
----
NULL
-66
NULL
-96
NULL
66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6411
SELECT CAST( NULL AS DECIMAL ) / + - ( + + COUNT( * ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6411
SELECT CAST ( NULL AS REAL ) / + - ( + + COUNT ( * ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT ALL MAX( ALL + ( + ( - col0 ) ) ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL MAX ( ALL + ( + ( - col0 ) ) ) FROM tab1
----
-51

query I rowsort
SELECT ALL - + col0 AS col2 FROM tab2 WHERE NOT + 33 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT DISTINCT + - COUNT( * ) * + COUNT( * ) + - 29 AS col1 FROM tab2 WHERE NOT + col2 * 76 IS NOT NULL
----
-29

skipif mysql # not compatible
query I rowsort label-6414
SELECT DISTINCT + - COUNT ( * ) * + COUNT ( * ) + - 29 AS col1 FROM tab2 WHERE NOT + col2 * 76 IS NOT NULL
----
-29

query III rowsort
SELECT * FROM tab2 WHERE - 40 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 39 col1 FROM tab1
----
-39
-39
-39

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 3 < + ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-6418
SELECT ALL MAX( + 42 ) col2, + 50 FROM tab0
----
42
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6418
SELECT ALL MAX ( + 42 ) col2, + 50 FROM tab0
----
42
50

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + - + col0 + 63 * col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6420
SELECT ALL + CAST( NULL AS SIGNED ) * + COUNT( * ) * 13 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * 13 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 IS NULL AND NOT - 90 >= + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col0 - + 85 FROM tab0 AS cor0
----
-100
-172
-182

query I rowsort
SELECT ALL + 32 + - 13 AS col1 FROM tab2 AS cor0
----
19
19
19

query I rowsort
SELECT DISTINCT col2 + - 16 + + + col1 FROM tab1 AS cor0
----
48
94
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6425
SELECT ( + 47 ) - col0 + + 71 + + CAST( col2 AS SIGNED ) * + col2 FROM tab1
----
3514
4651
9283

skipif mysql # not compatible
query I rowsort label-6425
SELECT ( + 47 ) - col0 + + 71 + + CAST ( col2 AS INTEGER ) * + col2 FROM tab1
----
3514
4651
9283

query I rowsort
SELECT DISTINCT - + col2 FROM tab2 WHERE - 69 - - - 78 < - col1
----
-23
-40
-58

query I rowsort
SELECT ALL + col2 + - + 65 FROM tab0
----
-18
-55
34

query I rowsort
SELECT DISTINCT 32 * + col2 FROM tab2
----
1280
1856
736

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 23 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6430
SELECT CAST( + 87 AS SIGNED ) FROM tab1
----
87
87
87

skipif mysql # not compatible
query I rowsort label-6430
SELECT CAST ( + 87 AS INTEGER ) FROM tab1
----
87
87
87

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 + + col1 - + + col2 IS NOT NULL
----

query I rowsort
SELECT col2 * + 59 * - + col2 AS col0 FROM tab0 AS cor0
----
-130331
-578259
-5900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, col1 AS col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query I rowsort
SELECT col1 * col1 * 49 * - + 94 AS col2 FROM tab1 AS cor0
----
-10174654
-115150
-902776

onlyif mysql # DIV for integer division: 
query I rowsort label-6435
SELECT - 4 DIV + + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6435
SELECT - 4 / + + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + 42 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-42

query II rowsort
SELECT DISTINCT + 93, + col2 * + + col1 FROM tab2 WHERE NOT NULL >= - 42
----

query II rowsort
SELECT - col1, 53 AS col0 FROM tab0
----
-1
53
-21
53
-81
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
15
15
15

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT NULL = ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - 50 + + + 31 col1 FROM tab2 AS cor0
----
21
39
4

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND col1 + - col1
----

query II rowsort
SELECT - 57, + col1 FROM tab2 AS cor0
----
-57
51
-57
67
-57
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6444
SELECT 15 * + CAST( + 90 AS SIGNED ) FROM tab1 cor0
----
1350
1350
1350

skipif mysql # not compatible
query I rowsort label-6444
SELECT 15 * + CAST ( + 90 AS INTEGER ) FROM tab1 cor0
----
1350
1350
1350

query I rowsort
SELECT ALL + + 58 AS col0 FROM tab0 AS cor0
----
58
58
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6446
SELECT CAST( - COUNT( ALL - - 91 ) AS SIGNED ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6446
SELECT CAST ( - COUNT ( ALL - - 91 ) AS INTEGER ) AS col2 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT DISTINCT + MAX( DISTINCT + col2 ) * - + 97 AS col0 FROM tab0
----
-9603

skipif mysql # not compatible
query I rowsort label-6447
SELECT DISTINCT + MAX ( DISTINCT + col2 ) * - + 97 AS col0 FROM tab0
----
-9603

onlyif mysql # DIV for integer division: 
query II rowsort label-6448
SELECT ALL + col1 DIV - col0, + col0 AS col0 FROM tab2
----
-1
46
-1
64
0
75

skipif mysql # not compatible
query II rowsort label-6448
SELECT ALL + col1 / - col0, + col0 AS col0 FROM tab2
----
-1
46
-1
64
0
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT COUNT( * ) + - 82 * - COUNT( * ) * + + COUNT( * ) + COUNT( * ) FROM tab1 WHERE - 83 IS NOT NULL
----
744

skipif mysql # not compatible
query I rowsort label-6449
SELECT COUNT ( * ) + - 82 * - COUNT ( * ) * + + COUNT ( * ) + COUNT ( * ) FROM tab1 WHERE - 83 IS NOT NULL
----
744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6450
SELECT + col2 + - CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6450
SELECT + col2 + - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 21 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-21
-21
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 2 col1 FROM tab2 cor0
----
2
2
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6453
SELECT MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6453
SELECT MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6454
SELECT ALL + CAST( NULL AS SIGNED ) - - 85 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6454
SELECT ALL + CAST ( NULL AS INTEGER ) - - 85 FROM tab2
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab2 cor1 ON NULL IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT ALL - - col1 + ( + 18 ) AS col1 FROM tab1 AS cor0 WHERE - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT - - MAX( ALL - - col1 ) + ( + + COUNT( * ) ) * - - 12 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-6458
SELECT - - MAX ( ALL - - col1 ) + ( + + COUNT ( * ) ) * - - 12 FROM tab1 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT ALL + COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT 85 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT 85 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT - ( - MIN( ALL col0 ) ) + + 95 AS col1 FROM tab1 cor0
----
146

skipif mysql # not compatible
query I rowsort label-6460
SELECT - ( - MIN ( ALL col0 ) ) + + 95 AS col1 FROM tab1 cor0
----
146

query I rowsort
SELECT DISTINCT - 8 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6462
SELECT ALL - CAST( - - MIN( ( + col2 ) ) AS SIGNED ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-6462
SELECT ALL - CAST ( - - MIN ( ( + col2 ) ) AS INTEGER ) AS col2 FROM tab2
----
-23

query I rowsort
SELECT col0 + col0 FROM tab1 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6464
SELECT DISTINCT + col1 * 57 col2, col1 + + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
2679
NULL
285
NULL
798
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6464
SELECT DISTINCT + col1 * 57 col2, col1 + + + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
2679
NULL
285
NULL
798
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT - COUNT( - ( + 23 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6465
SELECT - COUNT ( - ( + 23 ) ) FROM tab1
----
-3

query II rowsort
SELECT - ( - + col0 ) AS col0, + 52 FROM tab1
----
51
52
85
52
91
52

query I rowsort
SELECT col1 * - 60 FROM tab1
----
-2820
-300
-840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6468
SELECT CAST( - 27 AS SIGNED ) FROM tab2
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-6468
SELECT CAST ( - 27 AS INTEGER ) FROM tab2
----
-27
-27
-27

query I rowsort
SELECT 16 * col0 FROM tab1 AS cor0
----
1360
1456
816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6470
SELECT col2 * CAST( col0 AS SIGNED ) * + + col0 FROM tab1
----
249696
426275
563108

skipif mysql # not compatible
query I rowsort label-6470
SELECT col2 * CAST ( col0 AS INTEGER ) * + + col0 FROM tab1
----
249696
426275
563108

onlyif mysql # aggregate syntax: 
query II rowsort label-6471
SELECT ALL COUNT( * ) AS col0, + 22 AS col0 FROM tab0
----
3
22

skipif mysql # not compatible
query II rowsort label-6471
SELECT ALL COUNT ( * ) AS col0, + 22 AS col0 FROM tab0
----
3
22

query I rowsort
SELECT DISTINCT + 50 * + 62 + col2 AS col1 FROM tab1 AS cor0
----
3159
3168
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + - col0 col2 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT + 50 + - col2 FROM tab1 AS cor0
----
-18
-46
-9

query I rowsort
SELECT ALL - + 92 + + 5 * 42 AS col0 FROM tab0 AS cor0
----
118
118
118

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > col0 * col0
----

query I rowsort
SELECT col1 * + 51 AS col2 FROM tab1 AS cor0
----
2397
255
714

query I rowsort
SELECT DISTINCT 23 + - + 22 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6479
SELECT - AVG ( DISTINCT + col1 ) AS col2 FROM tab0 cor0 WHERE - col1 * - CAST( + - 76 AS SIGNED ) - + col2 + - - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6479
SELECT - AVG ( DISTINCT + col1 ) AS col2 FROM tab0 cor0 WHERE - col1 * - CAST ( + - 76 AS INTEGER ) - + col2 + - - col2 IS NULL
----
NULL

query I rowsort
SELECT + col2 FROM tab0 WHERE NULL NOT IN ( 66, 16, ( + 75 ) + - - 43, 22 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT ALL COUNT( DISTINCT + + col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6481
SELECT ALL COUNT ( DISTINCT + + col0 ) FROM tab0
----
3

query I rowsort
SELECT ALL col0 * + - 42 FROM tab2
----
-1932
-2688
-3150

query II rowsort
SELECT + 66 AS col2, col2 FROM tab1
----
66
59
66
68
66
96

query I rowsort
SELECT DISTINCT + col1 + + col1 FROM tab1 WHERE NOT NULL = + col2
----

query I rowsort
SELECT col2 * + - col0 AS col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT col1 * + col0 - - col0 FROM tab1
----
4368
510
765

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 + - ( - col2 ) * - col1 / col0 * + col1 < - 77
----
87
21
10
97
1
99

query I rowsort
SELECT + 68 + - 1 FROM tab0 cor0
----
67
67
67

query I rowsort
SELECT + 9 * - 85 + - col2 * + 21 FROM tab1 AS cor0
----
-2004
-2193
-2781

query I rowsort
SELECT col1 * + + col0 + + col1 + + 21 AS col1 FROM tab0 AS cor0
----
119
1317
1869

query II rowsort
SELECT DISTINCT - col1 * - + col2 + + 65 AS col1, col2 * - + 78 * + col1 FROM tab0
----
164
-7722
275
-16380
3872
-296946

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT - COUNT( col0 ) + 43 AS col0 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-6492
SELECT - COUNT ( col0 ) + 43 AS col0 FROM tab1
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-6493
SELECT ( + 33 ) AS col2, + COUNT( * ) - COUNT( * ) AS col0 FROM tab1
----
33
0

skipif mysql # not compatible
query II rowsort label-6493
SELECT ( + 33 ) AS col2, + COUNT ( * ) - COUNT ( * ) AS col0 FROM tab1
----
33
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT SUM( - 57 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-513

skipif mysql # not compatible
query I rowsort label-6494
SELECT SUM ( - 57 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-513

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 25 BETWEEN + col1 AND - ( 57 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT - SUM( + + col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-6496
SELECT - SUM ( + + col0 ) AS col2 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT + ( col0 ) * - - col2 - + ( col2 ) FROM tab0 AS cor0
----
658
860
9504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

query I rowsort
SELECT - - col0 * - + ( col1 ) FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-6500
SELECT 19 DIV + - col2 + - 8 + + 97 FROM tab0 AS cor0
----
88
89
89

skipif mysql # not compatible
query I rowsort label-6500
SELECT 19 / + - col2 + - 8 + + 97 FROM tab0 AS cor0
----
88
89
89

query II rowsort
SELECT + 22 AS col0, + col2 FROM tab1
----
22
59
22
68
22
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6502
SELECT 41 / + CAST( NULL AS SIGNED ) / + col2 * - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6502
SELECT 41 / + CAST ( NULL AS INTEGER ) / + col2 * - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT col2 AS col1, col0 AS col1 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT ( NULL ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT - 4 * col1 FROM tab0
----
-324
-4
-84

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT NULL IS NOT NULL )
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT 64 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
64
64
64

query I rowsort
SELECT ALL + 82 + + - 61 AS col2 FROM tab0 cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT DISTINCT + 32 * - COUNT( * ) * 95 AS col0 FROM tab0 cor0
----
-9120

skipif mysql # not compatible
query I rowsort label-6510
SELECT DISTINCT + 32 * - COUNT ( * ) * 95 AS col0 FROM tab0 cor0
----
-9120

onlyif mysql # DIV for integer division: 
query I rowsort label-6511
SELECT ALL + + ( - + col1 ) + + 45 + + - col1 DIV - - ( col0 ) + - col0 FROM tab2 AS cor0
----
-53
-97
-97

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL + + ( - + col1 ) + + 45 + + - col1 / - - ( col0 ) + - col0 FROM tab2 AS cor0
----
-53
-97
-97

query I rowsort
SELECT ( ( - - 75 ) ) FROM tab2 AS cor0
----
75
75
75

query I rowsort
SELECT ALL + col2 + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6514
SELECT + COUNT( DISTINCT - 24 ) AS col2, SUM( + - col2 ) FROM tab2 AS cor0
----
1
-121

skipif mysql # not compatible
query II rowsort label-6514
SELECT + COUNT ( DISTINCT - 24 ) AS col2, SUM ( + - col2 ) FROM tab2 AS cor0
----
1
-121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6515
SELECT - 1 / + CAST( NULL AS SIGNED ) AS col1, + 7 col1 FROM tab0 AS cor0
----
NULL
7
NULL
7
NULL
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6515
SELECT - 1 / + CAST ( NULL AS INTEGER ) AS col1, + 7 col1 FROM tab0 AS cor0
----
NULL
7
NULL
7
NULL
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT SUM( - ( col0 ) ) * - 86 AS col1 FROM tab0 AS cor0
----
17114

skipif mysql # not compatible
query I rowsort label-6516
SELECT SUM ( - ( col0 ) ) * - 86 AS col1 FROM tab0 AS cor0
----
17114

query I rowsort
SELECT DISTINCT + + 18 + - col0 AS col1 FROM tab1 AS cor0
----
-33
-67
-73

query I rowsort
SELECT ALL - + 71 + + + col1 - - - 43 AS col2 FROM tab1 AS cor0
----
-100
-109
-67

query I rowsort
SELECT 62 + + col2 FROM tab1 AS cor0
----
121
130
158

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6520
SELECT + CAST( NULL AS DECIMAL ) + - col1 - col2 + - col2 + - - col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6520
SELECT + CAST ( NULL AS REAL ) + - col1 - col2 + - col2 + - - col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6521
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * - CAST( + col2 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6521
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - CAST ( + col2 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 col0 FROM tab2 AS cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT ALL COUNT( col2 ) * 83 AS col1 FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL COUNT ( col2 ) * 83 AS col1 FROM tab0
----
249

query I rowsort
SELECT DISTINCT - col2 - - col2 + + ( + + 31 ) FROM tab1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT - + MIN( DISTINCT + - col2 ) / + COUNT( * ) AS col1 FROM tab2 WHERE NULL = - - col2 * - ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6525
SELECT - + MIN ( DISTINCT + - col2 ) / + COUNT ( * ) AS col1 FROM tab2 WHERE NULL = - - col2 * - ( col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6526
SELECT ALL + CAST( + 18 AS SIGNED ) * - + col1 * + + col1 * - + 69 * CAST( + col2 AS SIGNED ) FROM tab1
----
1831950
186563304
23369472

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL + CAST ( + 18 AS INTEGER ) * - + col1 * + + col1 * - + 69 * CAST ( + col2 AS INTEGER ) FROM tab1
----
1831950
186563304
23369472

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * + + col0 * - + 55 col0, 31 + + - col0 AS col0 FROM tab2 AS cor0
----
116380
-15
225280
-33
309375
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 74 ) col2 FROM tab0 AS cor0
----
74
74
74

query I rowsort
SELECT ALL - col1 + col0 * + - col0 FROM tab0 AS cor0
----
-306
-7590
-9410

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE ( NOT ( + - 37 ) * - col0 * - - col0 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * + 28 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6532
SELECT DISTINCT - COUNT( + col0 ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6532
SELECT DISTINCT - COUNT ( + col0 ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT ALL 63 + + + COUNT( - col1 ) AS col0 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-6533
SELECT ALL 63 + + + COUNT ( - col1 ) AS col0 FROM tab0
----
66

query II rowsort
SELECT + col2 AS col1, col0 AS col0 FROM tab1 WHERE ( NULL ) >= col1
----

query II rowsort
SELECT + col1 + 36, col2 FROM tab2
----
103
58
113
40
87
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT ALL - - COUNT( ALL + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL - - COUNT ( ALL + col2 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col1, - col1 * - col2 * + col2 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT + MAX( - + 22 ) col2 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6538
SELECT + MAX ( - + 22 ) col2 FROM tab2 AS cor0
----
-22

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= + col0 * col0 * + ( 63 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 23 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT MAX( + 40 ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
40

skipif mysql # not compatible
query I rowsort label-6541
SELECT MAX ( + 40 ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
40

query I rowsort
SELECT ALL ( - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT 75 < NULL
----

query I rowsort
SELECT - - 50 AS col0 FROM tab0 WHERE NOT ( NULL < + 43 )
----

query I rowsort
SELECT DISTINCT - 87 * - ( 27 ) FROM tab2
----
2349

query I rowsort
SELECT + ( + ( 32 ) ) AS col2 FROM tab2
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT ALL SUM( - 16 ) AS col0 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL SUM ( - 16 ) AS col0 FROM tab2
----
-48

query I rowsort
SELECT DISTINCT + 7 AS col0 FROM tab2 cor0
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 51 ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 IN ( - col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6550
SELECT DISTINCT ( - 35 ) + - col0 + - - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6550
SELECT DISTINCT ( - 35 ) + - col0 + - - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6551
SELECT DISTINCT + col2 + col1 - - + col2 DIV + - col2 col1 FROM tab1 AS cor0
----
109
114
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6551
SELECT DISTINCT + col2 + col1 - - + col2 / + - col2 col1 FROM tab1 AS cor0
----
109
114
63

query I rowsort
SELECT DISTINCT - - col0 * - + 52 + + col2 FROM tab2 cor0
----
-2369
-3288
-3842

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT ALL - COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6553
SELECT ALL - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6554
SELECT DISTINCT + 42 * - COUNT( * ) + - 69 AS col1, COUNT( * ) col1 FROM tab0 AS cor0
----
-195
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6554
SELECT DISTINCT + 42 * - COUNT ( * ) + - 69 AS col1, COUNT ( * ) col1 FROM tab0 AS cor0
----
-195
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 * - + col1 * col2 * + col1 col0 FROM tab2
----
-20632920
-22651494
-5204601

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 37 - + + col2 col1 FROM tab0
----
-136
-47
-84

query I rowsort
SELECT - col2 - + 42 FROM tab1
----
-101
-110
-138

query I rowsort
SELECT ALL col1 - - + 84 FROM tab2
----
135
151
161

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6559
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) + - - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6559
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) + - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT ALL 73 - COUNT( * ) FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL 73 - COUNT ( * ) FROM tab1
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6561
SELECT ALL - 61 * - CAST( + + 48 AS SIGNED ) col0 FROM tab0 cor0
----
2928
2928
2928

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6561
SELECT ALL - 61 * - CAST ( + + 48 AS INTEGER ) col0 FROM tab0 cor0
----
2928
2928
2928

onlyif mysql # DIV for integer division: 
query I rowsort label-6562
SELECT ALL + col1 + - 85 * 49 DIV - + col1 FROM tab1 AS cor0
----
135
311
838

skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL + col1 + - 85 * 49 / - + col1 FROM tab1 AS cor0
----
135
311
838

query I rowsort
SELECT + - 52 + - col1 AS col1 FROM tab0 AS cor0
----
-133
-53
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT DISTINCT SUM( - + col0 ) + - 69 AS col1 FROM tab0 AS cor0
----
-268

skipif mysql # not compatible
query I rowsort label-6564
SELECT DISTINCT SUM ( - + col0 ) + - 69 AS col1 FROM tab0 AS cor0
----
-268

query I rowsort
SELECT DISTINCT - col1 - - - col1 FROM tab2 cor0
----
-102
-134
-154

query I rowsort
SELECT + + ( - - col0 ) FROM tab2 AS cor0
----
46
64
75

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6568
SELECT DISTINCT + col0 DIV + 79 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6568
SELECT DISTINCT + col0 / + 79 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - 63 / - - 21 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 19 / + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * - - 92 FROM tab1 AS cor0
----
5428
6256
8832

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 9 * + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + + 69 AS col1, - 12 FROM tab2 AS cor0
----
69
-12

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6574
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) <= CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6574
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) <= CAST ( NULL AS REAL )
----

query I rowsort
SELECT + ( - ( col1 ) ) AS col2 FROM tab1 cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 col2 FROM tab2 AS cor0
----
-95
-95
-95

query II rowsort
SELECT 2, col1 AS col1 FROM tab2
----
2
51
2
67
2
77

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 / + 96 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - + 25 col2 FROM tab2
----
1150
1600
1875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6580
SELECT + 25 DIV - MAX( DISTINCT col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6580
SELECT + 25 / - MAX ( DISTINCT col2 ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6581
SELECT ALL 64 DIV CAST( - col2 AS SIGNED ) DIV - - col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6581
SELECT ALL 64 / CAST ( - col2 AS INTEGER ) / - - col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT 70 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT DISTINCT + COUNT( - col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6583
SELECT DISTINCT + COUNT ( - col0 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ALL + - col0 FROM tab2 WHERE col0 / - 18 + + col0 <= 77
----
-46
-64
-75

query I rowsort
SELECT + + 52 + - col2 FROM tab2 WHERE NOT col2 + - col2 IN ( 73, 31, - col2 - + - 69 )
----
-6
12
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 64 col2, col0 + + col1 FROM tab0 AS cor0
----
64
108
64
96
64
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6587
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6587
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT + + SUM( ALL - + 30 ) FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-6588
SELECT + + SUM ( ALL - + 30 ) FROM tab0 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT - SUM( - 46 ) AS col1 FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-6589
SELECT - SUM ( - 46 ) AS col1 FROM tab1 AS cor0
----
138

query II rowsort
SELECT ALL col0 AS col0, 83 AS col1 FROM tab0 AS cor0
----
15
83
87
83
97
83

query I rowsort
SELECT 91 * - col2 FROM tab0
----
-4277
-9009
-910

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 >= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 * - 1 NOT BETWEEN + 1 AND + 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6594
SELECT COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT + + 57 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT - 57 * col1 + - + col1 + col0 + + col0 FROM tab2 AS cor0
----
-2866
-3736
-4338

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 60 + col2 AS col2, + 33 + - col0 col0 FROM tab1 AS cor0
----
119
-52
128
-58
156
-18

query I rowsort
SELECT + col2 * + col0 + + col0 FROM tab2 AS cor0
----
1104
2624
4425

query II rowsort
SELECT + + col1 + - col2 + + 95 AS col1, - col2 * - 66 + + col1 FROM tab1 AS cor0
----
13
6350
41
3899
74
4535

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6600
SELECT + COUNT( * ) / CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6600
SELECT + COUNT ( * ) / CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT + - COUNT( * ) + + MAX( - col2 ) * + 63 FROM tab0 AS cor0
----
-633

skipif mysql # not compatible
query I rowsort label-6601
SELECT + - COUNT ( * ) + + MAX ( - col2 ) * + 63 FROM tab0 AS cor0
----
-633

onlyif mysql # DIV for integer division: 
query I rowsort label-6602
SELECT DISTINCT 33 * + col0 + + 24 + col2 DIV - col0 * + 82 FROM tab2 cor0
----
1542
2136
2499

skipif mysql # not compatible
query I rowsort label-6602
SELECT DISTINCT 33 * + col0 + + 24 + col2 / - col0 * + 82 FROM tab2 cor0
----
1542
2136
2499

query I rowsort
SELECT + 70 * - 85 AS col1 FROM tab0
----
-5950
-5950
-5950

query I rowsort
SELECT + col2 * + 95 AS col0 FROM tab0
----
4465
9405
950

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 IS NULL )
----

query I rowsort
SELECT 6 * 13 AS col0 FROM tab2 AS cor0
----
78
78
78

query I rowsort
SELECT DISTINCT + col0 + - 69 AS col0 FROM tab2 AS cor0
----
-23
-5
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT DISTINCT + MIN( - 40 ) FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-6608
SELECT DISTINCT + MIN ( - 40 ) FROM tab2 AS cor0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6609
SELECT DISTINCT CAST( + 11 AS SIGNED ) + COUNT( col1 + col2 ) AS col1 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-6609
SELECT DISTINCT CAST ( + 11 AS INTEGER ) + COUNT ( col1 + col2 ) AS col1 FROM tab2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT MIN( DISTINCT 85 ) + 88 AS col0 FROM tab0
----
173

skipif mysql # not compatible
query I rowsort label-6610
SELECT MIN ( DISTINCT 85 ) + 88 AS col0 FROM tab0
----
173

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE ( col2 ) BETWEEN 7 AND col0
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6612
SELECT DISTINCT + MIN( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6612
SELECT DISTINCT + MIN ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col2 + ( + col2 + - 16 ) AS col0 FROM tab1 WHERE NOT NULL IN ( - 3 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( 14 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6615
SELECT - CAST( - 66 AS SIGNED ) FROM tab0 WHERE NOT ( col0 ) NOT BETWEEN col0 AND + col2 + col1
----
66
66

skipif mysql # not compatible
query I rowsort label-6615
SELECT - CAST ( - 66 AS INTEGER ) FROM tab0 WHERE NOT ( col0 ) NOT BETWEEN col0 AND + col2 + col1
----
66
66

query I rowsort
SELECT + 7 AS col2 FROM tab0 WHERE NOT ( - 24 * - ( + col1 * col2 ) ) NOT IN ( - col1 )
----

query I rowsort
SELECT + col2 + + col0 * - 59 FROM tab2
----
-2691
-3736
-4367

query III rowsort
SELECT * FROM tab2 WHERE NULL <> ( + col0 * - ( - col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6619
SELECT * FROM tab0 WHERE NOT - col2 > CAST( col2 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6619
SELECT * FROM tab0 WHERE NOT - col2 > CAST ( col2 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( 62 ) FROM tab2
----
62
62
62

query III rowsort
SELECT * FROM tab0 WHERE col0 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6622
SELECT CAST( + col0 AS SIGNED ) FROM tab2 WHERE NOT col2 / - CAST( col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6622
SELECT CAST ( + col0 AS INTEGER ) FROM tab2 WHERE NOT col2 / - CAST ( col0 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 - + 44 AS col1 FROM tab2
----
23
33
7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * - col0 < NULL
----

query I rowsort
SELECT ALL - ( + col0 ) + 38 AS col1 FROM tab0 WHERE ( 52 ) >= 92
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 93 * - col1 col2 FROM tab2
----
4789
6306
7225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 col0 FROM tab0 WHERE col1 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT COUNT( DISTINCT col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6628
SELECT COUNT ( DISTINCT col1 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT + 75 + + col1 FROM tab2
----
126
142
152

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col0 ) IN ( 62 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT DISTINCT + MIN( col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-6631
SELECT DISTINCT + MIN ( col0 ) AS col2 FROM tab0
----
15

query I rowsort
SELECT DISTINCT 70 + + 9 FROM tab2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT - SUM( DISTINCT - col1 ) AS col2 FROM tab1 WHERE + 71 * 67 = - 15 * col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6633
SELECT - SUM ( DISTINCT - col1 ) AS col2 FROM tab1 WHERE + 71 * 67 = - 15 * col1
----
NULL

query I rowsort
SELECT DISTINCT + 89 + - col1 FROM tab1
----
42
75
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6635
SELECT COUNT( * ) * - CAST( - SUM( DISTINCT 7 ) AS SIGNED ) + + 22 DIV - 93 AS col0 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-6635
SELECT COUNT ( * ) * - CAST ( - SUM ( DISTINCT 7 ) AS INTEGER ) + + 22 / - 93 AS col0 FROM tab1
----
21

query I rowsort
SELECT AVG ( - 98 ) AS col2 FROM tab0 WHERE NOT ( + col1 + col2 ) NOT BETWEEN ( 57 ) AND - ( + 14 ) + col0 / col2
----
NULL

query I rowsort
SELECT DISTINCT 67 + col0 * + col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
4344
492
781

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6638
SELECT DISTINCT + 75 * col0 FROM tab0 WHERE NOT - col0 * - CAST( 79 AS SIGNED ) IS NULL
----
1125
6525
7275

skipif mysql # not compatible
query I rowsort label-6638
SELECT DISTINCT + 75 * col0 FROM tab0 WHERE NOT - col0 * - CAST ( 79 AS INTEGER ) IS NULL
----
1125
6525
7275

query III rowsort
SELECT * FROM tab1 WHERE + 75 / col1 BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT ALL COUNT( * ) - + ( + 32 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
-23

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL COUNT ( * ) - + ( + 32 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6641
SELECT - CAST( + col2 AS SIGNED ) + col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6641
SELECT - CAST ( + col2 AS INTEGER ) + col2 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * 27 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) = - col2 * - col2
----

query I rowsort
SELECT DISTINCT - 97 + col2 AS col0 FROM tab1 cor0
----
-1
-29
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6645
SELECT DISTINCT - - col1 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6645
SELECT DISTINCT - - col1 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 + col0 * - col0 FROM tab1 AS cor0
----
-2587
-7220
-8234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6647
SELECT - 19 * MIN( DISTINCT CAST( col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-6647
SELECT - 19 * MIN ( DISTINCT CAST ( col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-285

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 NOT IN ( col1 + 52 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 53 + + col2 FROM tab0 AS cor0
----
100
152
63

query I rowsort
SELECT DISTINCT col1 - col2 AS col1 FROM tab2 cor0
----
28
37
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - 4 col0 FROM tab2
----
19
36
54

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 + - col0 NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT ALL ( COUNT( * ) ) - COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL ( COUNT ( * ) ) - COUNT ( * ) AS col2 FROM tab2
----
0

query I rowsort
SELECT 54 - - 1 FROM tab0
----
55
55
55

query I rowsort
SELECT + ( 44 ) - + col2 * + col2 FROM tab1
----
-3437
-4580
-9172

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NULL = ( + col1 )
----

query I rowsort
SELECT col0 * 17 * col2 + - 43 FROM tab2
----
17943
43477
73907

query III rowsort
SELECT ALL * FROM tab2 WHERE 13 + 50 IN ( - 35 )
----

query I rowsort
SELECT + col1 * 69 + + col2 AS col1 FROM tab2 WHERE NOT ( col1 ) > col1
----
3542
4681
5353

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT SUM( - - col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-6660
SELECT SUM ( - - col1 ) FROM tab2 cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT MAX( DISTINCT - - 60 ) AS col1 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-6661
SELECT MAX ( DISTINCT - - 60 ) AS col1 FROM tab0 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT DISTINCT - COUNT( * ) * + SUM( ALL col1 ) AS col2 FROM tab2 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-6662
SELECT DISTINCT - COUNT ( * ) * + SUM ( ALL col1 ) AS col2 FROM tab2 AS cor0
----
-585

query I rowsort
SELECT - + 67 AS col2 FROM tab2 cor0
----
-67
-67
-67

query I rowsort
SELECT ALL 21 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT ALL 37 * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6665
SELECT ALL 37 * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT ( COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6666
SELECT ( COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + + ( col0 ) <> ( NULL )
----

query I rowsort
SELECT - col2 * + col0 - + - col2 AS col1 FROM tab2 AS cor0
----
-1035
-2520
-4292

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT ALL + COUNT( 45 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL + COUNT ( 45 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - col1 FROM tab2 cor0 WHERE - 97 * + col2 * - col2 < ( NULL )
----

query I rowsort
SELECT ALL col1 * 80 - + 69 * + col2 FROM tab1 cor0
----
-3671
-5504
-932

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 BETWEEN NULL AND + 36
----

query I rowsort
SELECT - - 53 * col2 AS col1 FROM tab2 AS cor0
----
1219
2120
3074

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 18 col2 FROM tab1 AS cor0
----
-1062
-1224
-1728

query I rowsort
SELECT + + 99 AS col0 FROM tab0 AS cor0
----
99
99
99

query I rowsort
SELECT 88 * + 43 * + col1 * + col0 FROM tab1 AS cor0
----
1608200
16184168
2701776

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT - + MIN( + col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6677
SELECT - + MIN ( + col2 ) AS col0 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT - SUM( DISTINCT - col0 ) col0 FROM tab1 cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6678
SELECT - SUM ( DISTINCT - col0 ) col0 FROM tab1 cor0
----
227

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT col2 BETWEEN ( + col2 ) AND ( - col1 * 14 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE NOT + 24 NOT BETWEEN ( + 20 ) AND ( + col0 )
----
2

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NOT + 24 NOT BETWEEN ( + 20 ) AND ( + col0 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6681
SELECT ALL * FROM tab0 WHERE NOT NULL >= ( col0 + - CAST( NULL AS SIGNED ) * + col0 )
----

skipif mysql # not compatible
query III rowsort label-6681
SELECT ALL * FROM tab0 WHERE NOT NULL >= ( col0 + - CAST ( NULL AS INTEGER ) * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT ALL - SUM( - ( + + col1 ) ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-6682
SELECT ALL - SUM ( - ( + + col1 ) ) AS col2 FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6683
SELECT ALL 64 / + CAST( NULL AS SIGNED ) + + + CAST( NULL AS SIGNED ) + + - 85 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6683
SELECT ALL 64 / + CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS INTEGER ) + + - 85 + + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 58 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL BETWEEN NULL AND - 27
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6685
SELECT DISTINCT 64 * CAST( + - col2 AS SIGNED ) DIV col2 + - col0 AS col0 FROM tab0 AS cor0
----
-151
-161
-79

skipif mysql # not compatible
query I rowsort label-6685
SELECT DISTINCT 64 * CAST ( + - col2 AS INTEGER ) / col2 + - col0 AS col0 FROM tab0 AS cor0
----
-151
-161
-79

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL > - 72
----

query II rowsort
SELECT + col1 + - col1 - + - 45 AS col0, col1 FROM tab2 AS cor0
----
45
51
45
67
45
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6688
SELECT ALL + - col0 DIV + 32 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL + - col0 / + 32 FROM tab0 AS cor0
----
-2
-3
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 31 * + - 44 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col2 ) NOT BETWEEN 51 * + + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 + + 85 * col0 * 63 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT ( MAX( - - ( + - 82 ) ) ) AS col2 FROM tab0, tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-6692
SELECT ( MAX ( - - ( + - 82 ) ) ) AS col2 FROM tab0, tab1 AS cor0
----
-82

query I rowsort
SELECT DISTINCT + - col2 + - + col2 AS col1 FROM tab2 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL col0 * - col2 + - - col1 AS col2 FROM tab0
----
-624
-849
-9602

query I rowsort
SELECT DISTINCT + 76 AS col1 FROM tab0, tab1 AS cor0
----
76

query III rowsort
SELECT DISTINCT col0, + 76 AS col0, - col0 * col0 - + ( col2 ) FROM tab1
----
9 values hashing to 50e00dcbfebdca624051f31de06b8aed

query I rowsort
SELECT + + col1 * - + col2 AS col0 FROM tab0 WHERE NOT - col2 IS NULL
----
-210
-3807
-99

query II rowsort
SELECT DISTINCT - col2 AS col2, 44 AS col1 FROM tab1
----
-59
44
-68
44
-96
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6699
SELECT ALL CAST( NULL AS SIGNED ) AS col0, - col2 + - col0 FROM tab1
----
NULL
-144
NULL
-147
NULL
-159

skipif mysql # not compatible
query II rowsort label-6699
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, - col2 + - col0 FROM tab1
----
NULL
-144
NULL
-147
NULL
-159

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 + - col0 / col0 * + 18 * + 4 IS NULL
----

query II rowsort
SELECT ( - col0 ), + col1 AS col2 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT ALL + ( + - col0 ) FROM tab1 AS cor0
----
-51
-85
-91

query II rowsort
SELECT DISTINCT col2, 77 AS col0 FROM tab0 AS cor0
----
10
77
47
77
99
77

query I rowsort
SELECT DISTINCT - + 27 * + col0 FROM tab1 cor0
----
-1377
-2295
-2457

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT ALL + + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6705
SELECT ALL + + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> ( col2 )
----

query I rowsort
SELECT ALL - col1 + col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT - 99 <> ( - col2 ) )
----
21
81

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6709
SELECT ALL + col1 AS col0, - ( ( 33 ) ) / - 11 FROM tab1 AS cor0 WHERE ( NULL ) >= + + CAST( NULL AS DECIMAL ) - 18
----

skipif mysql # not compatible
query II rowsort label-6709
SELECT ALL + col1 AS col0, - ( ( 33 ) ) / - 11 FROM tab1 AS cor0 WHERE ( NULL ) >= + + CAST ( NULL AS REAL ) - 18
----

query I rowsort
SELECT DISTINCT - ( + col0 ) FROM tab1 AS cor0 WHERE NOT + 62 IS NULL
----
-51
-85
-91

query I rowsort
SELECT + col1 * + 82 AS col1 FROM tab1 AS cor0
----
1148
3854
410

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( - 26 * 30 ) OR NOT col1 > col2 / ( + 20 )
----

query I rowsort
SELECT DISTINCT - 66 AS col1 FROM tab1
----
-66

query I rowsort
SELECT ALL 61 * + 0 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT ALL + - 77 * + COUNT( * ) FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-6715
SELECT ALL + - 77 * + COUNT ( * ) FROM tab2 AS cor0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT ALL - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6717
SELECT SUM( ALL col2 ) AS col0 FROM tab1 WHERE col2 + - 49 / - + CAST( NULL AS SIGNED ) <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6717
SELECT SUM ( ALL col2 ) AS col0 FROM tab1 WHERE col2 + - 49 / - + CAST ( NULL AS INTEGER ) <= ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT ALL + 87 * - COUNT( * ) FROM tab2
----
-261

skipif mysql # not compatible
query I rowsort label-6718
SELECT ALL + 87 * - COUNT ( * ) FROM tab2
----
-261

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6720
SELECT ALL 20 DIV + ( col2 ) * ( - + 76 ) + - col0 * + + col0 + + + CAST( ( - CAST( col0 AS SIGNED ) ) AS SIGNED ) - + col1 - 38 AS col0 FROM tab2
----
-2251
-4275
-5805

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL 20 / + ( col2 ) * ( - + 76 ) + - col0 * + + col0 + + + CAST ( ( - CAST ( col0 AS INTEGER ) ) AS INTEGER ) - + col1 - 38 AS col0 FROM tab2
----
-2251
-4275
-5805

query I rowsort
SELECT ALL + 61 * + col2 + + + 54 FROM tab1 cor0
----
3653
4202
5910

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT ALL - COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0 WHERE NOT 44 > + 30
----
0

skipif mysql # not compatible
query I rowsort label-6722
SELECT ALL - COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 44 > + 30
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6723
SELECT DISTINCT + ( - 81 ) DIV + 85 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6723
SELECT DISTINCT + ( - 81 ) / + 85 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT DISTINCT + + 46 + + COUNT( * ) + + ( - COUNT( * ) ) col0 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6724
SELECT DISTINCT + + 46 + + COUNT ( * ) + + ( - COUNT ( * ) ) col0 FROM tab0 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6725
SELECT - col0 - + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6725
SELECT - col0 - + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6726
SELECT + 59 * - + CAST( NULL AS DECIMAL ) / + AVG ( + ( - 29 ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6726
SELECT + 59 * - + CAST ( NULL AS REAL ) / + AVG ( + ( - 29 ) ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT col2 * - - col1 * - col0 * - 65 AS col1 FROM tab2
----
12812800
18944250
3507270

onlyif mysql # aggregate syntax: 
query II rowsort label-6728
SELECT 69 AS col2, + COUNT( + 5 ) AS col2 FROM tab2
----
69
3

skipif mysql # not compatible
query II rowsort label-6728
SELECT 69 AS col2, + COUNT ( + 5 ) AS col2 FROM tab2
----
69
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT ALL + 97 * COUNT( * ) FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL + 97 * COUNT ( * ) FROM tab0
----
291

query I rowsort
SELECT + col0 * + 0 - col1 FROM tab2 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6731
SELECT - 96, COUNT( * ) AS col0 FROM tab1 AS cor0
----
-96
3

skipif mysql # not compatible
query II rowsort label-6731
SELECT - 96, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-96
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6733
SELECT CAST( + 57 AS SIGNED ) FROM tab2
----
57
57
57

skipif mysql # not compatible
query I rowsort label-6733
SELECT CAST ( + 57 AS INTEGER ) FROM tab2
----
57
57
57

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT - + COUNT( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) BETWEEN ( 5 ) AND col1 * - + col1
----
0

skipif mysql # not compatible
query I rowsort label-6735
SELECT - + COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) BETWEEN ( 5 ) AND col1 * - + col1
----
0

query I rowsort
SELECT ALL - col2 * 56 - - col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6737
SELECT DISTINCT col2 + + col0 * + col1 DIV + - col1 - - col1 FROM tab0 AS cor0
----
-56
113
3

skipif mysql # not compatible
query I rowsort label-6737
SELECT DISTINCT col2 + + col0 * + col1 / + - col1 - - col1 FROM tab0 AS cor0
----
-56
113
3

query II rowsort
SELECT - - col1 AS col1, + 46 + - 72 FROM tab1 AS cor0
----
14
-26
47
-26
5
-26

query I rowsort
SELECT ALL 46 + ( + col0 ) FROM tab0 AS cor0
----
133
143
61

query I rowsort
SELECT + col0 * + col1 + + + 81 AS col2 FROM tab1 AS cor0
----
4358
506
795

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col1 IN ( + - 68 * col0, - col1 * + 20, - col1, - - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + - col2, - 54 col2 FROM tab2
----
0
-54
0
-54
0
-54

query I rowsort
SELECT ALL 78 FROM tab1, tab2 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT DISTINCT 47 + col1 * 53 * col2 FROM tab0
----
11177
201818
5294

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT ( NULL IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 79 col0 FROM tab0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6747
SELECT + CAST( - col1 AS SIGNED ) + - + col2 - + col2 FROM tab2
----
-157
-183
-97

skipif mysql # not compatible
query I rowsort label-6747
SELECT + CAST ( - col1 AS INTEGER ) + - + col2 - + col2 FROM tab2
----
-157
-183
-97

query I rowsort
SELECT ALL - - col2 + + col1 - col2 FROM tab1 WHERE NOT ( - col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT DISTINCT SUM( ALL col1 ) * + ( 59 ) + - - COUNT( * ) FROM tab1
----
3897

skipif mysql # not compatible
query I rowsort label-6749
SELECT DISTINCT SUM ( ALL col1 ) * + ( 59 ) + - - COUNT ( * ) FROM tab1
----
3897

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * - + ( - - col1 ) * + 29 NOT IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6751
SELECT col1 DIV - + 87 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6751
SELECT col1 / - + 87 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + - - col2 AS col0 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6753
SELECT ALL + COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6753
SELECT ALL + COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab2
----
-1

query I rowsort
SELECT - - col1 AS col2 FROM tab1 WHERE - 7 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL 79 * - col1 FROM tab2
----
-4029
-5293
-6083

onlyif mysql # DIV for integer division: 
query II rowsort label-6756
SELECT ALL col0 AS col1, col1 * - col1 DIV ( col1 ) * col2 col1 FROM tab0 AS cor0
----
15
-3807
87
-210
97
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6756
SELECT ALL col0 AS col1, col1 * - col1 / ( col1 ) * col2 col1 FROM tab0 AS cor0
----
15
-3807
87
-210
97
-99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL ( + col2 ) AS col1 FROM tab2 cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6759
SELECT DISTINCT - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6759
SELECT DISTINCT - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6760
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 + + CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6760
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 + + CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col2 NOT IN ( - - col0 / - 52, col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6762
SELECT ALL CAST( - col0 AS SIGNED ) * + col0 AS col1 FROM tab2
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL CAST ( - col0 AS INTEGER ) * + col0 AS col1 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT ALL - - col0 * + + ( col0 ) - + col1 AS col2 FROM tab1 WHERE - col1 - - + ( - + 29 ) + col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6764
SELECT ALL 97 DIV + SUM( 77 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL 97 / + SUM ( 77 ) AS col0 FROM tab0
----
0

query I rowsort
SELECT ( - 1 ) AS col2 FROM tab0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 42 < - 73
----

query I rowsort
SELECT - 86 + + col2 AS col2 FROM tab1 WHERE NOT + + 83 IS NULL
----
-18
-27
10

onlyif mysql # DIV for integer division: 
query I rowsort label-6768
SELECT ALL 63 DIV 60 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6768
SELECT ALL 63 / 60 AS col2 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6769
SELECT DISTINCT * FROM tab0 WHERE CAST( 67 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6769
SELECT DISTINCT * FROM tab0 WHERE CAST ( 67 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL NOT IN ( + col1 + + col2, col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6770
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL NOT IN ( + col1 + + col2, col1 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 * - 35 BETWEEN - col2 AND + 82 / col1 * - 1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6772
SELECT ALL + CAST( - + col1 AS SIGNED ) AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL + CAST ( - + col1 AS INTEGER ) AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT - MIN( + - col1 ) + + COUNT( * ) AS col0 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-6773
SELECT - MIN ( + - col1 ) + + COUNT ( * ) AS col0 FROM tab0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT DISTINCT COUNT( * ) FROM tab0, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-6774
SELECT DISTINCT COUNT ( * ) FROM tab0, tab0 cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6775
SELECT ALL - COUNT( * ) * + - 50 * + CAST( - SUM( ALL - ( - col0 ) ) AS SIGNED ) FROM tab0 AS cor0 WHERE ( - 39 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6775
SELECT ALL - COUNT ( * ) * + - 50 * + CAST ( - SUM ( ALL - ( - col0 ) ) AS INTEGER ) FROM tab0 AS cor0 WHERE ( - 39 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT + - ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6776
SELECT + - ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT ALL - - COUNT( * ) + + + 37 + + COUNT( * ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-6777
SELECT ALL - - COUNT ( * ) + + + 37 + + COUNT ( * ) FROM tab2 AS cor0
----
43

query I rowsort
SELECT DISTINCT col2 + - 3 + + col0 FROM tab1 AS cor0
----
141
144
156

onlyif mysql # aggregate syntax: 
query II rowsort label-6779
SELECT ALL - 47 + - + MIN( ALL + col1 ) AS col0, - 76 AS col1 FROM tab1 AS cor0
----
-52
-76

skipif mysql # not compatible
query II rowsort label-6779
SELECT ALL - 47 + - + MIN ( ALL + col1 ) AS col0, - 76 AS col1 FROM tab1 AS cor0
----
-52
-76

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <= 86 * - 87
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6781
SELECT 17 * - - CAST( + - col0 AS SIGNED ) FROM tab0
----
-1479
-1649
-255

skipif mysql # not compatible
query I rowsort label-6781
SELECT 17 * - - CAST ( + - col0 AS INTEGER ) FROM tab0
----
-1479
-1649
-255

query II rowsort
SELECT ALL + ( col0 ) * - - col1, col2 FROM tab2 WHERE NOT col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT DISTINCT - 3 + + - COUNT( - + 20 ) AS col0 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-6783
SELECT DISTINCT - 3 + + - COUNT ( - + 20 ) AS col0 FROM tab2
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 88 col0 FROM tab0
----
88
88
88

onlyif mysql # DIV for integer division: 
query I rowsort label-6785
SELECT ALL - col2 - ( - 41 ) + + 41 DIV + 84 * - col2 AS col1 FROM tab1
----
-18
-27
-55

skipif mysql # not compatible
query I rowsort label-6785
SELECT ALL - col2 - ( - 41 ) + + 41 / + 84 * - col2 AS col1 FROM tab1
----
-18
-27
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT ALL - COUNT( * ) * SUM( + - ( - col2 ) ) FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-6786
SELECT ALL - COUNT ( * ) * SUM ( + - ( - col2 ) ) FROM tab0
----
-468

query I rowsort
SELECT + col0 - - + 60 FROM tab0
----
147
157
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT - 1 + + COUNT( * ) AS col1 FROM tab1 WHERE 9 IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-6788
SELECT - 1 + + COUNT ( * ) AS col1 FROM tab1 WHERE 9 IS NULL
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT + COUNT( * ) - - COUNT( * ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-6789
SELECT + COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2
----
6

query II rowsort
SELECT + col1 - - + col0 AS col2, - col0 FROM tab1
----
138
-91
65
-51
90
-85

query III rowsort
SELECT * FROM tab2 WHERE + 43 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 88 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6793
SELECT ALL + col0 + - CAST( NULL AS SIGNED ) / + CAST( - - 45 AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6793
SELECT ALL + col0 + - CAST ( NULL AS INTEGER ) / + CAST ( - - 45 AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 FROM tab2 AS cor0 WHERE ( NOT - - col1 <> - + 61 )
----

query I rowsort
SELECT 4 + + col0 AS col0 FROM tab1 AS cor0
----
55
89
95

query I rowsort
SELECT DISTINCT + col0 + - 68 FROM tab0 AS cor0
----
-53
19
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT ALL + ( + + COUNT( * ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6797
SELECT ALL + ( + + COUNT ( * ) ) FROM tab2
----
3

query I rowsort
SELECT col1 - + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 col2 FROM tab1 AS cor0
----
87

query I rowsort
SELECT DISTINCT + ( 70 ) * + col1 AS col2 FROM tab0 AS cor0
----
1470
5670
70

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6802
SELECT 95 DIV col2 * - + 41 - - col1 FROM tab0 AS cor0
----
-1
-348
1

skipif mysql # not compatible
query I rowsort label-6802
SELECT 95 / col2 * - + 41 - - col1 FROM tab0 AS cor0
----
-1
-348
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6803
SELECT DISTINCT - + col0 DIV - - col2 + CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-48
-65
-76

skipif mysql # not compatible
query I rowsort label-6803
SELECT DISTINCT - + col0 / - - col2 + CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-48
-65
-76

query I rowsort
SELECT DISTINCT col0 * 56 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - col2 + col1 + + - ( + col1 ) ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6805
SELECT ALL - 14 * 92 DIV col0 DIV 71 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL - 14 * 92 / col0 / 71 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6806
SELECT ALL + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6806
SELECT ALL + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6807
SELECT ALL - ( ( - + COUNT( * ) ) ) DIV - ( - - COUNT( * ) ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL - ( ( - + COUNT ( * ) ) ) / - ( - - COUNT ( * ) ) AS col2 FROM tab2
----
-1

query I rowsort
SELECT ALL - col0 * 53 AS col1 FROM tab2 AS cor0
----
-2438
-3392
-3975

onlyif mysql # DIV for integer division: 
query I rowsort label-6809
SELECT ALL - + 44 * 71 DIV - col0 - - col2 FROM tab1 AS cor0
----
102
157
95

skipif mysql # not compatible
query I rowsort label-6809
SELECT ALL - + 44 * 71 / - col0 - - col2 FROM tab1 AS cor0
----
102
157
95

query I rowsort
SELECT + - ( - 66 ) * + - col0 FROM tab1 AS cor0
----
-3366
-5610
-6006

query I rowsort
SELECT ALL + 39 + + - 59 FROM tab1 AS cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT MAX( ALL - + 77 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6812
SELECT MAX ( ALL - + 77 ) AS col0 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6813
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-6814
SELECT ALL - 2 * + - 95 AS col0, COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
190
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6814
SELECT ALL - 2 * + - 95 AS col0, COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
190
9

query I rowsort
SELECT col2 * - 18 - - - 16 + + ( col0 ) * + + col2 FROM tab2 cor0
----
1824
3290
628

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6816
SELECT COUNT( * ) DIV SUM( ALL - 80 ) + - - 86 FROM tab1 cor0
----
86

skipif mysql # not compatible
query I rowsort label-6816
SELECT COUNT ( * ) / SUM ( ALL - 80 ) + - - 86 FROM tab1 cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT DISTINCT - MAX( ALL + - 3 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6817
SELECT DISTINCT - MAX ( ALL + - 3 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) = + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + - col2 + col0 * + col0 col1 FROM tab1 cor0 WHERE NOT 13 = NULL
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 cor0 WHERE + 10 - + + col2 IS NOT NULL
----
1
21
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < 44 * col1
----

query I rowsort
SELECT DISTINCT col1 + col0 - - col1 * + + col1 - - 3 AS col2 FROM tab2 AS cor0
----
2701
4634
6073

onlyif mysql # DIV for integer division: 
query I rowsort label-6823
SELECT ALL + col2 DIV col0 + + col2 * 28 + 97 AS col0 FROM tab1 AS cor0
----
1749
2001
2786

skipif mysql # not compatible
query I rowsort label-6823
SELECT ALL + col2 / col0 + + col2 * 28 + 97 AS col0 FROM tab1 AS cor0
----
1749
2001
2786

query I rowsort
SELECT - 15 + + col2 AS col2 FROM tab2 AS cor0
----
25
43
8

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6825
SELECT ALL * FROM tab0 AS cor0 WHERE + 33 BETWEEN ( + col2 ) AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6825
SELECT ALL * FROM tab0 AS cor0 WHERE + 33 BETWEEN ( + col2 ) AND CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6826
SELECT + + col1 AS col0 FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6826
SELECT + + col1 AS col0 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT ALL col2 AS col2, 84 FROM tab0
----
10
84
47
84
99
84

query I rowsort
SELECT 58 * - 90 AS col0 FROM tab2
----
-5220
-5220
-5220

query I rowsort
SELECT ALL - ( + + col2 ) FROM tab0
----
-10
-47
-99

query I rowsort
SELECT 66 * - - ( + col0 ) FROM tab0
----
5742
6402
990

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 BETWEEN + col1 AND - col2
----

query I rowsort
SELECT 9 - + 30 AS col0 FROM tab2 cor0
----
-21
-21
-21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6833
SELECT - + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( + ( - col2 ) ) BETWEEN - 79 + + CAST( + 2 AS DECIMAL ) + - + 88 - + 79 * col2 + - col0 AND + col1 + col1 + col0
----
-3

skipif mysql # not compatible
query I rowsort label-6833
SELECT - + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( + ( - col2 ) ) BETWEEN - 79 + + CAST ( + 2 AS REAL ) + - + 88 - + 79 * col2 + - col0 AND + col1 + col1 + col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6834
SELECT - COUNT( * ) AS col1, MAX( ALL + ( + + 91 ) ) FROM tab2 AS cor0
----
-3
91

skipif mysql # not compatible
query II rowsort label-6834
SELECT - COUNT ( * ) AS col1, MAX ( ALL + ( + + 91 ) ) FROM tab2 AS cor0
----
-3
91

query II rowsort
SELECT - - 96 AS col2, col0 * - col1 * + col0 FROM tab0 cor0
----
96
-158949
96
-18225
96
-9409

query I rowsort
SELECT - + 30 AS col1 FROM tab1 AS cor0
----
-30
-30
-30

query I rowsort
SELECT + - 31 AS col1 FROM tab0 AS cor0
----
-31
-31
-31

query I rowsort
SELECT + - col0 * col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-225
-7569
-9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6839
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6840
SELECT DISTINCT + col2 * + 0 DIV - + 80 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6840
SELECT DISTINCT + col2 * + 0 / - + 80 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT - COUNT( * ) * - - 98 FROM tab0
----
-294

skipif mysql # not compatible
query I rowsort label-6841
SELECT - COUNT ( * ) * - - 98 FROM tab0
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT DISTINCT - MIN( - + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT - MIN ( - + col1 ) FROM tab1
----
47

query I rowsort
SELECT + 9 * col0 * - col0 FROM tab1
----
-23409
-65025
-74529

query II rowsort
SELECT + ( + + col0 ) AS col2, col2 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6845
SELECT - CAST( 85 AS SIGNED ) * + col1 + 41 FROM tab2
----
-4294
-5654
-6504

skipif mysql # not compatible
query I rowsort label-6845
SELECT - CAST ( 85 AS INTEGER ) * + col1 + 41 FROM tab2
----
-4294
-5654
-6504

query I rowsort
SELECT + ( - 77 ) AS col2 FROM tab1
----
-77
-77
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-6847
SELECT DISTINCT col2 DIV col0 + + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6847
SELECT DISTINCT col2 / col0 + + col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT + col2 IN ( - - col0, + 59, col0, + col1, 22 * + col2 )
----
51
91

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE + ( col1 ) <> NULL
----

query I rowsort
SELECT DISTINCT + col0 + + + col0 AS col0 FROM tab0
----
174
194
30

onlyif mysql # aggregate syntax: 
query II rowsort label-6851
SELECT ALL + 95, COUNT( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
95
9

skipif mysql # not compatible
query II rowsort label-6851
SELECT ALL + 95, COUNT ( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
95
9

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6852
SELECT DISTINCT + CAST( 32 AS DECIMAL ) AS col2, col1 FROM tab1 AS cor0 WHERE ( 11 ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-6852
SELECT DISTINCT + CAST ( 32 AS REAL ) AS col2, col1 FROM tab1 AS cor0 WHERE ( 11 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6853
SELECT * FROM tab2 AS cor0 WHERE CAST( + col2 AS SIGNED ) * col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6853
SELECT * FROM tab2 AS cor0 WHERE CAST ( + col2 AS INTEGER ) * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT - COUNT( + col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6854
SELECT - COUNT ( + col1 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - col2 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 - - col0 * + - col1 AS col1 FROM tab2
----
-2300
-4864
-4950

query I rowsort
SELECT ALL - ( - 26 ) + 13 FROM tab0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT ALL COUNT( * ) + + - ( - 63 ) col2 FROM tab2 WHERE NOT + + ( 26 ) IS NULL
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6860
SELECT ALL COUNT ( * ) + + - ( - 63 ) col2 FROM tab2 WHERE NOT + + ( 26 ) IS NULL
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6861
SELECT + col0 * col1 * + col0 * CAST( NULL AS SIGNED ) * - 63 - + + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6861
SELECT + col0 * col1 * + col0 * CAST ( NULL AS INTEGER ) * - 63 - + + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6862
SELECT ALL - 25 - col0, col0 - + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
-100
NULL
-71
NULL
-89
NULL

skipif mysql # not compatible
query II rowsort label-6862
SELECT ALL - 25 - col0, col0 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
-100
NULL
-71
NULL
-89
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - col1 AS col2, col0 col2 FROM tab1
----
-196
51
-2209
91
-25
85

query I rowsort
SELECT col2 + 28 AS col0 FROM tab1
----
124
87
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6865
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT ALL - + MAX( col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL - + MAX ( col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - + col1 col2 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT ALL - - 30 * 97 AS col2 FROM tab0 AS cor0
----
2910
2910
2910

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 86 + 13 IN ( col2, col1 * - col2 * col0 + 84, 36, + 50 + - 69, - 32, - 14 )
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT + - 20 FROM tab0 AS cor0 WHERE + col0 / - 22 <> NULL
----

query I rowsort
SELECT ( - ( + 77 ) ) * col2 AS col0 FROM tab0 AS cor0
----
-3619
-7623
-770

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6872
SELECT - SUM( ALL - - col1 ) DIV - COUNT( * ) + - 59 FROM tab0 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-6872
SELECT - SUM ( ALL - - col1 ) / - COUNT ( * ) + - 59 FROM tab0 cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT - 60 * - + COUNT( * ) AS col1 FROM tab2 cor0
----
180

skipif mysql # not compatible
query I rowsort label-6873
SELECT - 60 * - + COUNT ( * ) AS col1 FROM tab2 cor0
----
180

query I rowsort
SELECT 80 * col1 AS col1 FROM tab0
----
1680
6480
80

query II rowsort
SELECT DISTINCT col1 AS col0, - col2 FROM tab2
----
51
-23
67
-58
77
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT MAX( + + col2 ) + - - 89 FROM tab1
----
185

skipif mysql # not compatible
query I rowsort label-6876
SELECT MAX ( + + col2 ) + - - 89 FROM tab1
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT DISTINCT ( - SUM( + 18 ) ) AS col2 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT ( - SUM ( + 18 ) ) AS col2 FROM tab1
----
-54

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - 80
----

query I rowsort
SELECT - col2 + 52 FROM tab2 AS cor0
----
-6
12
29

query I rowsort
SELECT + ( 96 ) AS col1 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * - - col0 AS col2 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6882
SELECT * FROM tab1 WHERE - col0 * col1 BETWEEN - - col1 * + col1 + + + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-6882
SELECT * FROM tab1 WHERE - col0 * col1 BETWEEN - - col1 * + col1 + + + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6883
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + - - col1 * - col1 * col1 + - - CAST( NULL AS SIGNED ) * + col0 < NULL
----

skipif mysql # not compatible
query III rowsort label-6883
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + - - col1 * - col1 * col1 + - - CAST ( NULL AS INTEGER ) * + col0 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6884
SELECT DISTINCT - - 51 DIV + 1 + + col2 FROM tab2 AS cor0
----
109
74
91

skipif mysql # not compatible
query I rowsort label-6884
SELECT DISTINCT - - 51 / + 1 + + col2 FROM tab2 AS cor0
----
109
74
91

query I rowsort
SELECT + ( - + ( - col1 ) ) + col1 AS col1 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT ALL - ( + col1 ) + - 8 * col0 FROM tab1 AS cor0
----
-422
-685
-775

query I rowsort
SELECT DISTINCT ( + + 9 ) * + 1 + - 54 AS col0 FROM tab1 AS cor0
----
-45

query I rowsort
SELECT 80 + - col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
16
34
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6889
SELECT col2 DIV + + col1 - + - col0 FROM tab1 AS cor0 WHERE + 38 + + CAST( NULL AS SIGNED ) IS NULL
----
57
92
96

skipif mysql # not compatible
query I rowsort label-6889
SELECT col2 / + + col1 - + - col0 FROM tab1 AS cor0 WHERE + 38 + + CAST ( NULL AS INTEGER ) IS NULL
----
57
92
96

query I rowsort
SELECT - col1 + - - col2 * + - col1 FROM tab0 cor0
----
-100
-231
-3888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6891
SELECT DISTINCT + 12 + CAST( - + col0 AS SIGNED ) * + col0 FROM tab1 cor0
----
-2589
-7213
-8269

skipif mysql # not compatible
query I rowsort label-6891
SELECT DISTINCT + 12 + CAST ( - + col0 AS INTEGER ) * + col0 FROM tab1 cor0
----
-2589
-7213
-8269

query I rowsort
SELECT ALL - 55 FROM tab2 WHERE - 47 BETWEEN col2 + - col1 AND + 73 + - 85
----

query I rowsort
SELECT ALL col1 + + - 6 FROM tab2
----
45
61
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * ( + MIN( - + col0 ) ) FROM tab0
----
-873

skipif mysql # not compatible
query I rowsort label-6894
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * ( + MIN ( - + col0 ) ) FROM tab0
----
-873

query I rowsort
SELECT DISTINCT - ( 2 ) - + col0 FROM tab0
----
-17
-89
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6896
SELECT + col0 * - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6896
SELECT + col0 * - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + - col0 AS col1 FROM tab0
----
1215
1827
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / col0 IS NOT NULL
----

query I rowsort
SELECT - ( - + col0 ) AS col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL - - 44 FROM tab0 AS cor0
----
44
44
44

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6902
SELECT DISTINCT + + CAST( - col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6902
SELECT DISTINCT + + CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT ALL col2 + - - col2 AS col1 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT + - col0 - col1 FROM tab0 WHERE NOT 59 / - 6 >= NULL
----

query I rowsort
SELECT ALL + col2 + 73 AS col2 FROM tab0 AS cor0
----
120
172
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 95 col2 FROM tab2 AS cor0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6907
SELECT ALL col0 + - CAST( 94 AS SIGNED ) FROM tab1 AS cor0
----
-3
-43
-9

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL col0 + - CAST ( 94 AS INTEGER ) FROM tab1 AS cor0
----
-3
-43
-9

query I rowsort
SELECT ALL 50 + col0 AS col0 FROM tab2
----
114
125
96

query III rowsort
SELECT * FROM tab2 WHERE + col1 >= - - 25
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 + - 20 AS col2 FROM tab2
----
31
47
57

query I rowsort
SELECT col0 + + 44 FROM tab1
----
129
135
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab2 WHERE NOT + 6 IN ( + col0, 22 * + 7 + 55 )
----
3

skipif mysql # not compatible
query I rowsort label-6912
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab2 WHERE NOT + 6 IN ( + col0, 22 * + 7 + 55 )
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * 44 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6914
SELECT DISTINCT 35 DIV + + col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6914
SELECT DISTINCT 35 / + + col0 FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6915
SELECT DISTINCT - col0 + CAST( col0 AS SIGNED ) + + - col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT - col0 + CAST ( col0 AS INTEGER ) + + - col2 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT ALL + MIN( DISTINCT 73 ) FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL + MIN ( DISTINCT 73 ) FROM tab0 AS cor0
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 col2 FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col0 * - col0 * - - col1 col0 FROM tab2 AS cor0
----
-107870
-315328
-376800

query II rowsort
SELECT + - col1 - 29 AS col1, col2 FROM tab2 cor0
----
-106
40
-80
23
-96
58

query I rowsort
SELECT + col1 - - ( col2 ) FROM tab2
----
117
125
74

query II rowsort
SELECT - col1 + + 15 - + - col2 * + col2 * 63 * - col0 + - col2 AS col0, - 82 + + 83 FROM tab0
----
-2087618
1
-548116
1
-59893996
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6922
SELECT ALL + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT col1 FROM tab0 WHERE NOT ( - col2 ) + col0 IS NULL
----
1
21
81

query I rowsort
SELECT DISTINCT + col0 * + 77 FROM tab2
----
3542
4928
5775

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - ( 76 ) + - - 19 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT + COUNT( + col1 ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6926
SELECT + COUNT ( + col1 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9

query II rowsort
SELECT col2 * - 27 AS col0, - col2 AS col0 FROM tab1 AS cor0
----
-1593
-59
-1836
-68
-2592
-96

query I rowsort
SELECT ALL 75 * ( - - col1 ) FROM tab2 AS cor0
----
3825
5025
5775

onlyif mysql # DIV for integer division: 
query I rowsort label-6929
SELECT DISTINCT 42 DIV - col1 AS col2 FROM tab1
----
-3
-8
0

skipif mysql # not compatible
query I rowsort label-6929
SELECT DISTINCT 42 / - col1 AS col2 FROM tab1
----
-3
-8
0

query I rowsort
SELECT DISTINCT - 78 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-78

query II rowsort
SELECT ALL - col1 AS col1, - 25 FROM tab0 AS cor0
----
-1
-25
-21
-25
-81
-25

query I rowsort
SELECT 78 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT DISTINCT - + MIN( - col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-6933
SELECT DISTINCT - + MIN ( - col0 ) AS col0 FROM tab1 AS cor0
----
91

query II rowsort
SELECT - - 77, 33 AS col2 FROM tab0 AS cor0
----
77
33
77
33
77
33

query I rowsort
SELECT DISTINCT - + col1 + - - 45 AS col2 FROM tab2 AS cor0
----
-22
-32
-6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 56 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6937
SELECT + + CAST( - + col2 AS SIGNED ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6937
SELECT + + CAST ( - + col2 AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6938
SELECT ALL CAST( col2 AS SIGNED ) + + 7 AS col1 FROM tab1 AS cor0
----
103
66
75

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL CAST ( col2 AS INTEGER ) + + 7 AS col1 FROM tab1 AS cor0
----
103
66
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6939
SELECT ALL 22 DIV col1 FROM tab0 AS cor0
----
0
1
22

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL 22 / col1 FROM tab0 AS cor0
----
0
1
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6940
SELECT DISTINCT + + col1 * + - col1 + - - col2 + - CAST( - 2 AS SIGNED ) * + + 2 * + - col1 FROM tab0 cor0
----
-515
-6838
94

skipif mysql # not compatible
query I rowsort label-6940
SELECT DISTINCT + + col1 * + - col1 + - - col2 + - CAST ( - 2 AS INTEGER ) * + + 2 * + - col1 FROM tab0 cor0
----
-515
-6838
94

query I rowsort
SELECT + 7 + - col1 + col0 * - 78 AS col2 FROM tab0
----
-1244
-6800
-7560

query I rowsort
SELECT - 47 + - - 29 * col1 AS col2 FROM tab0
----
-18
2302
562

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6943
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) + + col0 IN ( ( - 21 ), 29 + 42 * - col2 + + - col2, - 76 )
----

skipif mysql # not compatible
query III rowsort label-6943
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) + + col0 IN ( ( - 21 ), 29 + 42 * - col2 + + - col2, - 76 )
----

query II rowsort
SELECT + 70, + col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
70
51
70
85
70
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT ALL - COUNT( - col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6945
SELECT ALL - COUNT ( - col2 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - + col0 FROM tab2 WHERE + 97 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT + col0 + + - col1 FROM tab1
----
37
44
80

query I rowsort
SELECT DISTINCT + col1 + + 21 FROM tab2 AS cor0
----
72
88
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6949
SELECT - col1 DIV col1 + - col0 FROM tab2 AS cor0
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-6949
SELECT - col1 / col1 + - col0 FROM tab2 AS cor0
----
-47
-65
-76

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6951
SELECT ALL + 43 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL + 43 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + 99 AS col0 FROM tab0 WHERE NOT + 74 NOT BETWEEN ( col1 ) AND - col2 + - + ( + + col0 ) * - - col2 * col0 * - 12
----
109
198

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT DISTINCT + + COUNT( * ) FROM tab1 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6953
SELECT DISTINCT + + COUNT ( * ) FROM tab1 WHERE col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT + COUNT( DISTINCT - + col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6954
SELECT + COUNT ( DISTINCT - + col2 ) AS col1 FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT 1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6956
SELECT DISTINCT 65 DIV - + 83 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6956
SELECT DISTINCT 65 / - + 83 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6957
SELECT ALL CAST( - + col1 AS SIGNED ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6957
SELECT ALL CAST ( - + col1 AS INTEGER ) FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT MAX( + col1 ) * COUNT( * ) FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-6958
SELECT MAX ( + col1 ) * COUNT ( * ) FROM tab2
----
231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6959
SELECT + + CAST( - 79 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-6959
SELECT + + CAST ( - 79 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-79
-79
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 79 col0, 8 FROM tab2 AS cor0
----
79
8
79
8
79
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6961
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

query I rowsort
SELECT + 63 + - + 58 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT ALL - 22 + - 88 FROM tab0 AS cor0
----
-110
-110
-110

query I rowsort
SELECT 60 FROM tab2 AS cor0 WHERE NOT ( NULL ) < - 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT DISTINCT - + MAX( DISTINCT ( + 96 ) ) AS col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-96

skipif mysql # not compatible
query I rowsort label-6965
SELECT DISTINCT - + MAX ( DISTINCT ( + 96 ) ) AS col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 > - col2 - + col1 + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > 85
----

query I rowsort
SELECT + 18 * - col1 * 45 FROM tab2 cor0
----
-41310
-54270
-62370

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 59 + + + col0 col0 FROM tab2 AS cor0
----
105
123
134

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 ) NOT BETWEEN ( NULL ) AND col0
----
51
14
96

query I rowsort
SELECT col2 * - 74 AS col2 FROM tab0
----
-3478
-7326
-740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6972
SELECT 20 + + - col1 * + col0 * ( CAST( NULL AS SIGNED ) ) * 66 + + col0 + + col1 + - - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6972
SELECT 20 + + - col1 * + col0 * ( CAST ( NULL AS INTEGER ) ) * 66 + + col0 + + col1 + - - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col2 ) * - 18 + - col2 - + col2 col0 FROM tab2
----
368
640
928

query I rowsort
SELECT DISTINCT + + col0 + - - col2 FROM tab2 cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT ALL + COUNT( * ) + - + 0 AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6975
SELECT ALL + COUNT ( * ) + - + 0 AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT 59 + - col0 FROM tab1 AS cor0
----
-26
-32
8

query II rowsort
SELECT ALL - + col0 AS col1, 27 FROM tab0 AS cor0 WHERE - 28 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT DISTINCT + + 8 * - COUNT( col1 ) - - - COUNT( * ) FROM tab2 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-6978
SELECT DISTINCT + + 8 * - COUNT ( col1 ) - - - COUNT ( * ) FROM tab2 cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT - COUNT( DISTINCT - - 34 ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6979
SELECT - COUNT ( DISTINCT - - 34 ) AS col1 FROM tab2
----
-1

query III rowsort
SELECT * FROM tab2 WHERE - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT - - ( - - col2 ) = + ( - ( col0 ) ) + + 7 * - col2
----
3

skipif mysql # not compatible
query I rowsort label-6981
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT - - ( - - col2 ) = + ( - ( col0 ) ) + + 7 * - col2
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + - + col1 - - col2 <> + ( + + 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT DISTINCT - ( COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6983
SELECT DISTINCT - ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6984
SELECT DISTINCT - CAST( + - col1 AS SIGNED ) * - - col2 AS col2 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT - CAST ( + - col1 AS INTEGER ) * - - col2 AS col2 FROM tab2 AS cor0
----
1173
3080
3886

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * + 58 * + 14 BETWEEN NULL AND - 88
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= col2 + + + col2
----

query I rowsort
SELECT ALL 54 AS col2 FROM tab1 cor0
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6988
SELECT - CAST( NULL AS SIGNED ) / + - col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6988
SELECT - CAST ( NULL AS INTEGER ) / + - col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6989
SELECT 63 DIV - - 30 AS col0 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-6989
SELECT 63 / - - 30 AS col0 FROM tab2 AS cor0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6990
SELECT 96 * - CAST( - 42 AS SIGNED ) * - col1 + + col2 AS col1 FROM tab2 cor0
----
-205609
-270086
-310424

skipif mysql # not compatible
query I rowsort label-6990
SELECT 96 * - CAST ( - 42 AS INTEGER ) * - col1 + + col2 AS col1 FROM tab2 cor0
----
-205609
-270086
-310424

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6991
SELECT - col1 AS col1, - 28 DIV col2 - CAST( - 81 AS SIGNED ) AS col2 FROM tab2
----
-51
80
-67
81
-77
81

skipif mysql # not compatible
query II rowsort label-6991
SELECT - col1 AS col1, - 28 / col2 - CAST ( - 81 AS INTEGER ) AS col2 FROM tab2
----
-51
80
-67
81
-77
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT + SUM( DISTINCT col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-6992
SELECT + SUM ( DISTINCT col2 ) AS col0 FROM tab2
----
121

query I rowsort
SELECT ALL + col1 * 10 * - + col0 FROM tab2
----
-23460
-49280
-50250

query I rowsort
SELECT + - 77 AS col0 FROM tab0 WHERE NOT - - col2 * - col2 + 20 < + 32
----

query I rowsort
SELECT DISTINCT + + col2 * + - 3 AS col1 FROM tab1 AS cor0
----
-177
-204
-288

query I rowsort
SELECT ALL + + 85 * col2 FROM tab0 AS cor0
----
3995
8415
850

query I rowsort
SELECT DISTINCT col2 * + - 46 + - col1 AS col2 FROM tab2 AS cor0
----
-1109
-1917
-2735

query II rowsort
SELECT DISTINCT 38 AS col1, 44 FROM tab1
----
38
44

query I rowsort
SELECT ALL 81 * - col2 * + 31 FROM tab0
----
-118017
-248589
-25110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7000
SELECT - - ( CAST( NULL AS SIGNED ) ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7000
SELECT - - ( CAST ( NULL AS INTEGER ) ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col1 + - col0 * - + col1 FROM tab1 AS cor0
----
420
4230
700

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT - 67 + + SUM( - + 95 ) FROM tab2 AS cor0
----
-352

skipif mysql # not compatible
query I rowsort label-7002
SELECT - 67 + + SUM ( - + 95 ) FROM tab2 AS cor0
----
-352

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT ALL - ( MAX( + col2 ) ) + + + 33 AS col1 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7003
SELECT ALL - ( MAX ( + col2 ) ) + + + 33 AS col1 FROM tab0 AS cor0
----
-66

query I rowsort
SELECT 80 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT DISTINCT - 54 * ( + 99 ) AS col0 FROM tab2
----
-5346

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * - - 56 col2, col1 FROM tab2
----
2576
51
3584
77
4200
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7007
SELECT ALL - CAST( NULL AS SIGNED ) * - + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL - CAST ( NULL AS INTEGER ) * - + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7008
SELECT * FROM tab1 WHERE - - col2 / + 90 + col1 = - CAST( NULL AS SIGNED ) + col0
----

skipif mysql # not compatible
query III rowsort label-7008
SELECT * FROM tab1 WHERE - - col2 / + 90 + col1 = - CAST ( NULL AS INTEGER ) + col0
----

query I rowsort
SELECT DISTINCT col1 * - 70 FROM tab1
----
-3290
-350
-980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7010
SELECT 18 DIV + - MIN( DISTINCT 50 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7010
SELECT 18 / + - MIN ( DISTINCT 50 ) FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7011
SELECT - + 6 * - 81 - + ( + 42 ) * + + CAST( - + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 cor0
----
612

skipif mysql # not compatible
query I rowsort label-7011
SELECT - + 6 * - 81 - + ( + 42 ) * + + CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 cor0
----
612

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7012
SELECT - col1 * + CAST( col0 AS SIGNED ) * - 42 * + col1, 72 AS col2 FROM tab2 AS cor0
----
14140350
72
15937152
72
5025132
72

skipif mysql # not compatible
query II rowsort label-7012
SELECT - col1 * + CAST ( col0 AS INTEGER ) * - 42 * + col1, 72 AS col2 FROM tab2 AS cor0
----
14140350
72
15937152
72
5025132
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7013
SELECT DISTINCT + col0 + + ( + 95 ), + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
110
NULL
182
NULL
192
NULL

skipif mysql # not compatible
query II rowsort label-7013
SELECT DISTINCT + col0 + + ( + 95 ), + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
110
NULL
182
NULL
192
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT 63 + + COUNT( ALL + col2 ) + + - MAX( DISTINCT - + col0 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-7014
SELECT 63 + + COUNT ( ALL + col2 ) + + - MAX ( DISTINCT - + col0 ) FROM tab0
----
81

query I rowsort
SELECT col1 + - 90 FROM tab0
----
-69
-89
-9

query I rowsort
SELECT + - col0 FROM tab2 WHERE NOT ( col0 ) = - + col1
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7017
SELECT CAST( NULL AS SIGNED ) * + 57 * - + AVG ( - 2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7017
SELECT CAST ( NULL AS INTEGER ) * + 57 * - + AVG ( - 2 ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7018
SELECT col1 DIV - - col2 + + + col0 AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7018
SELECT col1 / - - col2 + + + col0 AS col1 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7019
SELECT DISTINCT - col1 DIV - 64 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7019
SELECT DISTINCT - col1 / - 64 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - ( + - ( - + col0 ) ) FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, col0 col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query II rowsort
SELECT col0, col2 AS col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT - + 73 * + + 81 AS col0 FROM tab0 cor0
----
-5913
-5913
-5913

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT ALL - - SUM( - + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL - - SUM ( - + col2 ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT DISTINCT + 81 AS col1 FROM tab2 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 col1 FROM tab0
----
86
86
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7027
SELECT CAST( 93 AS SIGNED ) FROM tab0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-7027
SELECT CAST ( 93 AS INTEGER ) FROM tab0
----
93
93
93

query I rowsort
SELECT 16 * + 37 FROM tab2
----
592
592
592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + 3 ) AS col0, 8 + 11 col1 FROM tab0
----
3
19
3
19
3
19

query I rowsort
SELECT ALL ( + - col0 ) FROM tab1 AS cor0
----
-51
-85
-91

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT 93 + + + COUNT( * ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-7032
SELECT 93 + + + COUNT ( * ) FROM tab1
----
96

query I rowsort
SELECT - ( + 21 ) * + 71 * + ( 89 ) FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-132699
-132699
-132699

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 <= + 97 + + col0 + + col2 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 + - 3 - + + col2 AS col0 FROM tab2 AS cor0
----
-120
-128
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT ALL COUNT( * ) + - + 4 AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL COUNT ( * ) + - + 4 AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT - + MAX( + ( - 90 ) ) FROM tab1 AS cor0 WHERE col1 * + col2 IS NOT NULL
----
90

skipif mysql # not compatible
query I rowsort label-7037
SELECT - + MAX ( + ( - 90 ) ) FROM tab1 AS cor0 WHERE col1 * + col2 IS NOT NULL
----
90

query I rowsort
SELECT DISTINCT - 5 + - 71 FROM tab1 AS cor0
----
-76

query I rowsort
SELECT 40 * + ( - col1 ) + - + 59 AS col0 FROM tab2 AS cor0
----
-2099
-2739
-3139

query I rowsort
SELECT ALL + ( + col1 ) * - 17 * + - 48 + 11 + + col2 FROM tab0 AS cor0
----
17157
66154
926

query I rowsort
SELECT - col2 FROM tab1 WHERE NULL > - 37
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT + COUNT( * ) * + - 57 FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-7042
SELECT + COUNT ( * ) * + - 57 FROM tab2
----
-171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 64 col1 FROM tab2
----
64

query I rowsort
SELECT ALL 16 * - col1 FROM tab1
----
-224
-752
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7045
SELECT COUNT( * ) - - COUNT( * ) + + CAST( + 94 AS SIGNED ) AS col2 FROM tab1
----
100

skipif mysql # not compatible
query I rowsort label-7045
SELECT COUNT ( * ) - - COUNT ( * ) + + CAST ( + 94 AS INTEGER ) AS col2 FROM tab1
----
100

query I rowsort
SELECT - col1 - col1 - - col2 + + col1 * + col2 AS col1 FROM tab0
----
178
196
3692

query I rowsort
SELECT DISTINCT + col1 * - - 72 AS col0 FROM tab0
----
1512
5832
72

query I rowsort
SELECT col1 + + col2 + + + col1 FROM tab1
----
124
162
69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - - col0 ) IS NULL
----

query I rowsort
SELECT ( + - col0 ) + 97 FROM tab2 cor0
----
22
33
51

query I rowsort
SELECT ALL - col2 + - + ( + - col2 ) FROM tab0 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7052
SELECT - - ( - CAST( + - col1 AS SIGNED ) ) * + 77 * + col1 / 66 + - 43 - + - 55 - + col1 + 71 / - - 10 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

skipif mysql # not compatible
query I rowsort label-7052
SELECT - - ( - CAST ( + - col1 AS INTEGER ) ) * + 77 * + col1 / 66 + - 43 - + - 55 - + col1 + 71 / - - 10 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT + 74 - - + 11 * + col0 - - - 88 AS col0 FROM tab0 WHERE ( NULL ) IS NULL OR NOT - + 83 IS NOT NULL
----
1053
151
943

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT SUM( - col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-7054
SELECT SUM ( - col2 ) AS col0 FROM tab0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-7055
SELECT DISTINCT - 9 DIV col1 - - 68 AS col1 FROM tab0 cor0
----
59
68

skipif mysql # not compatible
query I rowsort label-7055
SELECT DISTINCT - 9 / col1 - - 68 AS col1 FROM tab0 cor0
----
59
68

query I rowsort
SELECT ( 6 ) AS col1 FROM tab0 AS cor0
----
6
6
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7057
SELECT - - SUM( DISTINCT - - 39 ) * - 48 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7057
SELECT - - SUM ( DISTINCT - - 39 ) * - 48 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT - col1 + + col1 / + + col1 * + - 74 / + + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT DISTINCT + MAX( ALL - + col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7059
SELECT DISTINCT + MAX ( ALL - + col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 + + 9 col2 FROM tab0 AS cor0 WHERE NOT - ( + col1 ) IS NULL
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT - COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7061
SELECT - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT + 44 * + + col1 AS col2 FROM tab2 AS cor0 WHERE NOT - 56 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7063
SELECT MIN( ALL + col2 ) DIV - 98 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7063
SELECT MIN ( ALL + col2 ) / - 98 col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7064
SELECT col1 DIV - CAST( + - ( col0 ) AS SIGNED ) AS col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-7064
SELECT col1 / - CAST ( + - ( col0 ) AS INTEGER ) AS col0 FROM tab0
----
0
0
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 AS col2, + 17 col2 FROM tab0
----
-15
17
-87
17
-97
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT - + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7066
SELECT - + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 48 + + col2 - - + col0 + + - 98 col0 FROM tab2
----
2419
3251
3702

query I rowsort
SELECT - ( - col2 ) * ( + 89 ) + - + 61 FROM tab0 AS cor0
----
4122
829
8750

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 71 + - col2 + + - 68 * - col0 IS NOT NULL
----

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab1 cor0 WHERE NOT - 68 BETWEEN - 21 AND + - 26
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7071
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - col2 AS col1 FROM tab1 cor0 WHERE CAST( + col1 AS SIGNED ) NOT IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-7071
SELECT DISTINCT - CAST ( NULL AS REAL ) * - col2 AS col1 FROM tab1 cor0 WHERE CAST ( + col1 AS INTEGER ) NOT IN ( col1 )
----

query I rowsort
SELECT col1 * - 92 + col2 FROM tab0
----
-1922
-7405
7

query I rowsort
SELECT DISTINCT - 88 AS col2 FROM tab2 WHERE NOT ( col0 + + col1 * col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7074
SELECT DISTINCT - COUNT( DISTINCT - col2 ) * ( + COUNT( * ) DIV + 1 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-7074
SELECT DISTINCT - COUNT ( DISTINCT - col2 ) * ( + COUNT ( * ) / + 1 ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE NOT + 11 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7075
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE NOT + 11 IS NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7076
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - + ( - col0 - - col1 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT - CAST ( NULL AS REAL ) - + ( - col0 - - col1 ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7077
SELECT - CAST( NULL AS SIGNED ) * 80 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7077
SELECT - CAST ( NULL AS INTEGER ) * 80 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7078
SELECT + col1 - col1 * + 53 FROM tab2 WHERE NOT CAST( + col0 AS SIGNED ) <= + col2 + - col1
----
-2652
-3484
-4004

skipif mysql # not compatible
query I rowsort label-7078
SELECT + col1 - col1 * + 53 FROM tab2 WHERE NOT CAST ( + col0 AS INTEGER ) <= + col2 + - col1
----
-2652
-3484
-4004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7079
SELECT + 33 FROM tab0 WHERE NOT ( CAST( + col2 AS SIGNED ) ) = NULL
----

skipif mysql # not compatible
query I rowsort label-7079
SELECT + 33 FROM tab0 WHERE NOT ( CAST ( + col2 AS INTEGER ) ) = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7080
SELECT ALL 17 DIV COUNT( DISTINCT 81 ) col1 FROM tab1
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7080
SELECT ALL 17 / COUNT ( DISTINCT 81 ) col1 FROM tab1
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7081
SELECT SUM( ALL col0 ) * - MAX( col1 DIV + col2 ) AS col2 FROM tab2
----
-370

skipif mysql # not compatible
query I rowsort label-7081
SELECT SUM ( ALL col0 ) * - MAX ( col1 / + col2 ) AS col2 FROM tab2
----
-370

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 69 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT DISTINCT - 43 * - COUNT( * ) FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-7083
SELECT DISTINCT - 43 * - COUNT ( * ) FROM tab1
----
129

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT ( + 63 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT ALL - COUNT( * ) AS col1 FROM tab0 WHERE NOT ( 24 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7085
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( 24 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT COUNT( * ) + - 66 AS col2 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-7086
SELECT COUNT ( * ) + - 66 AS col2 FROM tab1
----
-63

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 10 ) <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT 70 + COUNT( * ) FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-7088
SELECT 70 + COUNT ( * ) FROM tab1
----
73

query III rowsort
SELECT * FROM tab1 WHERE ( 77 * col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7090
SELECT ALL 20 DIV - 94 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7090
SELECT ALL 20 / - 94 FROM tab1
----
0
0
0

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE ( - ( col1 ) * - 14 ) IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT DISTINCT MAX( DISTINCT - col2 ) - - SUM( - col1 ) AS col0 FROM tab0
----
-113

skipif mysql # not compatible
query I rowsort label-7092
SELECT DISTINCT MAX ( DISTINCT - col2 ) - - SUM ( - col1 ) AS col0 FROM tab0
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7093
SELECT + COUNT( * ) - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7093
SELECT + COUNT ( * ) - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT + COUNT( * ) * + 36 - COUNT( * ) FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-7094
SELECT + COUNT ( * ) * + 36 - COUNT ( * ) FROM tab2 AS cor0
----
105

query I rowsort
SELECT ALL 29 * ( col1 ) AS col0 FROM tab0 AS cor0
----
2349
29
609

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT ( COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7096
SELECT ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND ( col2 )
----
0

query I rowsort
SELECT ALL + 56 * + 23 AS col1 FROM tab0 AS cor0
----
1288
1288
1288

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT DISTINCT + MAX( ALL - 12 ) * COUNT( * ) AS col2 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-7098
SELECT DISTINCT + MAX ( ALL - 12 ) * COUNT ( * ) AS col2 FROM tab2
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7099
SELECT CAST( AVG ( 96 ) AS SIGNED ) AS col0 FROM tab2 WHERE NOT col0 * 3 + - col1 IS NULL
----
96

skipif mysql # not compatible
query I rowsort label-7099
SELECT CAST ( AVG ( 96 ) AS INTEGER ) AS col0 FROM tab2 WHERE NOT col0 * 3 + - col1 IS NULL
----
96

query I rowsort
SELECT 91 * - 89 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to e9b18a7c6246db20cf628b331b5cb703

query I rowsort
SELECT + col0 * 24 AS col1 FROM tab2 AS cor0
----
1104
1536
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT ALL + + MIN( 26 ) AS col2 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-7102
SELECT ALL + + MIN ( 26 ) AS col2 FROM tab1 AS cor0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7103
SELECT - CAST( + col2 AS SIGNED ) - 99 FROM tab1 AS cor0 WHERE NOT - ( 4 ) / ( 67 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7103
SELECT - CAST ( + col2 AS INTEGER ) - 99 FROM tab1 AS cor0 WHERE NOT - ( 4 ) / ( 67 ) IS NOT NULL
----

query I rowsort
SELECT + 32 * + col2 FROM tab0 AS cor0
----
1504
3168
320

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= ( - 85 * col0 - 82 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = 66 - col1
----

query I rowsort
SELECT DISTINCT - + col0 * - col1 AS col1 FROM tab1 cor0
----
425
4277
714

query I rowsort
SELECT ALL - col2 * 16 AS col0 FROM tab0 AS cor0
----
-1584
-160
-752

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 >= ( - col0 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) * + 17 col0 FROM tab1 AS cor0
----
238
799
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT - COUNT( * ) col0 FROM tab0 WHERE NOT - 34 NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7111
SELECT - COUNT ( * ) col0 FROM tab0 WHERE NOT - 34 NOT BETWEEN ( NULL ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT DISTINCT MIN( - col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-7112
SELECT DISTINCT MIN ( - col2 ) AS col2 FROM tab2
----
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 / 33 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 78 + col1 FROM tab1 AS cor0
----
125
83
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7115
SELECT ALL - + CAST( NULL AS SIGNED ) + ( col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7115
SELECT ALL - + CAST ( NULL AS INTEGER ) + ( col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 80 + - 88 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL AND col0 IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT - + COUNT( * ) * + 99 * + 45 + + 87 * 7 AS col1 FROM tab2 AS cor0
----
-12756

skipif mysql # not compatible
query I rowsort label-7117
SELECT - + COUNT ( * ) * + 99 * + 45 + + 87 * 7 AS col1 FROM tab2 AS cor0
----
-12756

query I rowsort
SELECT DISTINCT + 10 + - - 54 FROM tab2 AS cor0
----
64

query I rowsort
SELECT DISTINCT - 15 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT - COUNT( * ) + - MIN( ALL - 74 ) col1 FROM tab0
----
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7120
SELECT - COUNT ( * ) + - MIN ( ALL - 74 ) col1 FROM tab0
----
71

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 97 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col2 ) <> col2 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT ALL - COUNT( ALL - + col1 ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL - COUNT ( ALL - + col1 ) AS col2 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL 94 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7125
SELECT ALL - col1 DIV + - col2 + + ( col0 ) * + 61 FROM tab2 AS cor0
----
2808
3905
4576

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL - col1 / + - col2 + + ( col0 ) * + 61 FROM tab2 AS cor0
----
2808
3905
4576

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + 8 AND - col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 + col0 > ( + 6 )
----

query I rowsort
SELECT ALL 18 + + - col0 * - - col0 FROM tab0 AS cor0
----
-207
-7551
-9391

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7130
SELECT DISTINCT col1 + + - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7130
SELECT DISTINCT col1 + + - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7131
SELECT 89 - col2 + + - CAST( NULL AS SIGNED ) + ( - col0 ) * + col1 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7131
SELECT 89 - col2 + + - CAST ( NULL AS INTEGER ) + ( - col0 ) * + col1 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 31 - + ( - - col1 ) FROM tab2
----
-20
-36
-46

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7133
SELECT * FROM tab0 WHERE NOT + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-7133
SELECT * FROM tab0 WHERE NOT + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7134
SELECT ALL * FROM tab1 WHERE NOT + CAST( + col1 AS SIGNED ) * + 7 < ( col2 * - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7134
SELECT ALL * FROM tab1 WHERE NOT + CAST ( + col1 AS INTEGER ) * + 7 < ( col2 * - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( - + 52 ) FROM tab1 AS cor0
----
52

query I rowsort
SELECT 80 * - col2 FROM tab1 AS cor0 WHERE NOT + col2 + 2 * 88 <> + 48
----

query I rowsort
SELECT - + 40 AS col1 FROM tab1 cor0
----
-40
-40
-40

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL ) >= ( col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7139
SELECT DISTINCT - + col2 * CAST( + - ( + col0 ) AS SIGNED ) FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-7139
SELECT DISTINCT - + col2 * CAST ( + - ( + col0 ) AS INTEGER ) FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT + col0 * + 96 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
4416
6144
7200

query I rowsort
SELECT 92 * + col1 - 22 FROM tab1 AS cor0
----
1266
4302
438

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT - - SUM( - + 85 ) AS col1 FROM tab0 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-7142
SELECT - - SUM ( - + 85 ) AS col1 FROM tab0 AS cor0
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT DISTINCT MIN( DISTINCT + ( + 43 ) ) / 36 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7143
SELECT DISTINCT MIN ( DISTINCT + ( + 43 ) ) / 36 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT + MIN( col1 ) AS col1 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-7144
SELECT + MIN ( col1 ) AS col1 FROM tab1 cor0
----
5

query I rowsort
SELECT ALL - - col0 * + - col0 - + 59 * - - col0 FROM tab0 AS cor0
----
-1110
-12702
-15132

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT ALL - 33 * - COUNT( * ) + + MIN( DISTINCT col1 ) FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL - 33 * - COUNT ( * ) + + MIN ( DISTINCT col1 ) FROM tab2 AS cor0
----
150

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 / col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7148
SELECT ALL ( + MAX( + - col1 ) ) DIV + - COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7148
SELECT ALL ( + MAX ( + - col1 ) ) / + - COUNT ( * ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL col2 + - col1 + - - 1 * + - 59 + col1 * + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1122
136
1757

query II rowsort
SELECT - 74 + + col2 * ( - - col1 ) AS col1, col0 AS col2 FROM tab1
----
1270
51
221
85
3122
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7151
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2, tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT 30 + 55 * + - col1 FROM tab0
----
-1125
-25
-4425

query II rowsort
SELECT - col0 AS col2, col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT + MIN( - col2 ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-7154
SELECT + MIN ( - col2 ) AS col1 FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7155
SELECT + 37, + 66 * + ( - + CAST( col1 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
37
-3102
37
-330
37
-924

skipif mysql # not compatible
query II rowsort label-7155
SELECT + 37, + 66 * + ( - + CAST ( col1 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
37
-3102
37
-330
37
-924

query I rowsort
SELECT 58 AS col0 FROM tab0 cor0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( 94 )
----
0

skipif mysql # not compatible
query I rowsort label-7157
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( 94 )
----
0

query I rowsort
SELECT col0 + + - col1 + - col0 AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL + + col2 + 68 AS col0 FROM tab0 AS cor0
----
115
167
78

query I rowsort
SELECT col2 + 25 * - 88 AS col2 FROM tab1 cor0
----
-2104
-2132
-2141

query I rowsort
SELECT + col0 + - 49 + + col0 FROM tab1 AS cor0
----
121
133
53

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT + COUNT( ALL col0 ) AS col1 FROM tab1 AS cor0 WHERE - col1 * + 83 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7163
SELECT + COUNT ( ALL col0 ) AS col1 FROM tab1 AS cor0 WHERE - col1 * + 83 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7164
SELECT * FROM tab2 AS cor0 WHERE ( + col2 + - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7164
SELECT * FROM tab2 AS cor0 WHERE ( + col2 + - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7165
SELECT 28 DIV - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7165
SELECT 28 / - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 + - + col0 * 62 AS col1 FROM tab1 AS cor0
----
-3111
-5185
-5551

query I rowsort
SELECT + 16 AS col0 FROM tab2 cor0 WHERE + col0 NOT IN ( col1, + col1 / - - col1 )
----
16
16
16

query I rowsort
SELECT DISTINCT - 60 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 AND + ( ( col1 ) ) + - - col2
----

query I rowsort
SELECT ALL + ( col2 ) * - col2 - col1 FROM tab0
----
-121
-2290
-9802

query III rowsort
SELECT ALL * FROM tab2 WHERE - 93 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * - col1 * 41 FROM tab0
----
-156087
-4059
-8610

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND 0 - + 31
----

query I rowsort
SELECT + + col1 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT col0, - col0 AS col2 FROM tab2
----
46
-46
64
-64
75
-75

query II rowsort
SELECT + col0 AS col2, + 45 + + - col1 FROM tab0
----
15
-36
87
24
97
44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7176
SELECT ALL * FROM tab1 WHERE - - col1 / - 90 + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7176
SELECT ALL * FROM tab1 WHERE - - col1 / - 90 + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT - + ( - col1 ) >= NULL
----

query II rowsort
SELECT col2 AS col2, - 76 AS col0 FROM tab0
----
10
-76
47
-76
99
-76

query I rowsort
SELECT + col0 * 96 FROM tab1
----
4896
8160
8736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 20 col2 FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 49 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7182
SELECT DISTINCT * FROM tab2 WHERE ( + CAST( NULL AS SIGNED ) ) NOT IN ( col1 + - ( 67 ) + + 69 * - + 36 + + 53 + col1 )
----

skipif mysql # not compatible
query III rowsort label-7182
SELECT DISTINCT * FROM tab2 WHERE ( + CAST ( NULL AS INTEGER ) ) NOT IN ( col1 + - ( 67 ) + + 69 * - + 36 + + 53 + col1 )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) NOT BETWEEN + + 18 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * col1 + col1 FROM tab1 WHERE - 58 NOT BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT MAX( ALL + col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7185
SELECT MAX ( ALL + col1 ) AS col1 FROM tab2
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab2 AS cor0 WHERE + col1 IN ( 88, - col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( - col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 cor0 WHERE NULL < NULL
----

query I rowsort
SELECT - 64 * + + col2 FROM tab2 AS cor0
----
-1472
-2560
-3712

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT DISTINCT COUNT( * ) + - + COUNT( DISTINCT - - 44 ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT COUNT ( * ) + - + COUNT ( DISTINCT - - 44 ) FROM tab2 AS cor0
----
2

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + ( + - 85 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT DISTINCT + COUNT( * ) * - + ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT + COUNT ( * ) * - + ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT 74 AS col1 FROM tab1 cor0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7195
SELECT ALL + CAST( NULL AS SIGNED ) + + - 18 AS col0, + col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-7195
SELECT ALL + CAST ( NULL AS INTEGER ) + + - 18 AS col0, + col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 58 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 88 + + col1 + - 1 AS col0 FROM tab0 cor0
----
108
168
88

onlyif mysql # DIV for integer division: 
query I rowsort label-7198
SELECT - col1 DIV + - ( - 87 ) col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7198
SELECT - col1 / + - ( - 87 ) col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT ALL ( - ( - + COUNT( * ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7199
SELECT ALL ( - ( - + COUNT ( * ) ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT DISTINCT + MAX( - 43 ) AS col1 FROM tab0
----
-43

skipif mysql # not compatible
query I rowsort label-7200
SELECT DISTINCT + MAX ( - 43 ) AS col1 FROM tab0
----
-43

query I rowsort
SELECT 32 * 27 AS col2 FROM tab1
----
864
864
864

query II rowsort
SELECT col0, col2 + col0 FROM tab0
----
15
62
87
97
97
196

query I rowsort
SELECT ALL col1 * - 85 FROM tab2
----
-4335
-5695
-6545

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT ( COUNT( * ) ) * + COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-7204
SELECT ( COUNT ( * ) ) * + COUNT ( * ) AS col1 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT DISTINCT - MIN( ALL - + col2 ) * + - 48 AS col2 FROM tab2
----
-2784

skipif mysql # not compatible
query I rowsort label-7205
SELECT DISTINCT - MIN ( ALL - + col2 ) * + - 48 AS col2 FROM tab2
----
-2784

query I rowsort
SELECT - 39 + + 12 AS col1 FROM tab0
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT + MIN( + col1 ) + 2 * - + 80 FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-7207
SELECT + MIN ( + col1 ) + 2 * - + 80 FROM tab0 AS cor0
----
-159

query I rowsort
SELECT DISTINCT + 71 + - col1 AS col0 FROM tab1 AS cor0
----
24
57
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT ALL + COUNT( * ) + + - COUNT( * ) + - + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7209
SELECT ALL + COUNT ( * ) + + - COUNT ( * ) + - + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

query II rowsort
SELECT + 48, + col0 AS col0 FROM tab2
----
48
46
48
64
48
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT + SUM( - 80 ) AS col0 FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-7211
SELECT + SUM ( - 80 ) AS col0 FROM tab1
----
-240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - ( - col2 ) col0 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7213
SELECT * FROM tab1 AS cor0 WHERE - 18 + + + 97 * + - 94 * - + col1 NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7213
SELECT * FROM tab1 AS cor0 WHERE - 18 + + + 97 * + - 94 * - + col1 NOT IN ( - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - col2 * - - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7215
SELECT - col0 * + - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7215
SELECT - col0 * + - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 81 AS col0, + col1 FROM tab2 AS cor0
----
-81
51
-81
67
-81
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7217
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( - 65 AS SIGNED ) * + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7217
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( - 65 AS INTEGER ) * + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( NULL ) > ( 26 ) )
----

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT - col1 <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT - - ( + MIN( + 86 ) ) AS col1 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-7220
SELECT - - ( + MIN ( + 86 ) ) AS col1 FROM tab1 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT - COUNT( - 4 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7221
SELECT - COUNT ( - 4 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7222
SELECT - + col0 * - CAST( + col2 AS SIGNED ) * - 56 * + - col2 - + 99 AS col2 FROM tab1 AS cor0
----
16569461
23563805
26320797

skipif mysql # not compatible
query I rowsort label-7222
SELECT - + col0 * - CAST ( + col2 AS INTEGER ) * - 56 * + - col2 - + 99 AS col2 FROM tab1 AS cor0
----
16569461
23563805
26320797

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 > ( NULL )
----

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE 6 IS NOT NULL
----
10
47
99

query II rowsort
SELECT ALL col1, col0 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT - ( 27 ) AS col2 FROM tab2 AS cor0
----
-27
-27
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 col2 FROM tab1 AS cor0
----
21

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT ( ( NULL ) NOT IN ( + col0 + - + 99, col2 * + + col1 * + - 95 * col2 ) ) )
----

query I rowsort
SELECT ALL + 47 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col2, col2, - + 29 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7230
SELECT + CAST( + 83 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
83
83
83

skipif mysql # not compatible
query I rowsort label-7230
SELECT + CAST ( + 83 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
83
83
83

query I rowsort
SELECT - ( + + col0 ) FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT - col2 * 91 + 81 FROM tab1 AS cor0
----
-5288
-6107
-8655

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7233
SELECT SUM( ALL + col0 ) DIV 13 + 28, 33 AS col2 FROM tab1 AS cor0
----
45
33

skipif mysql # not compatible
query II rowsort label-7233
SELECT SUM ( ALL + col0 ) / 13 + 28, 33 AS col2 FROM tab1 AS cor0
----
45
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 16 col0 FROM tab1 AS cor0
----
101
107
67

query I rowsort
SELECT + col2 + + 40 FROM tab2 AS cor0
----
63
80
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT DISTINCT + MAX( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7236
SELECT DISTINCT + MAX ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7237
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7237
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT ALL MAX( - + 59 ) FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7238
SELECT ALL MAX ( - + 59 ) FROM tab0 AS cor0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7239
SELECT - SUM( - col0 ) + + COUNT( DISTINCT + CAST( - 85 AS DECIMAL ) ) FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-7239
SELECT - SUM ( - col0 ) + + COUNT ( DISTINCT + CAST ( - 85 AS REAL ) ) FROM tab2
----
186

query I rowsort
SELECT DISTINCT col1 + + 37 FROM tab0
----
118
38
58

query I rowsort
SELECT 33 * + - col2 + + - 73 FROM tab0
----
-1624
-3340
-403

query I rowsort
SELECT DISTINCT + col1 * - col0 * col0 * - col0 FROM tab1
----
1857114
3070625
35417837

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT ALL + COUNT( + - col2 ) * + + 62 FROM tab1
----
186

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL + COUNT ( + - col2 ) * + + 62 FROM tab1
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT 15 * + AVG ( DISTINCT + col1 ) / + SUM( DISTINCT - col0 ) + + COUNT( * ) col0 FROM tab2 WHERE + col1 < - col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7244
SELECT 15 * + AVG ( DISTINCT + col1 ) / + SUM ( DISTINCT - col0 ) + + COUNT ( * ) col0 FROM tab2 WHERE + col1 < - col1
----
NULL

query I rowsort
SELECT 83 * - 78 AS col1 FROM tab1
----
-6474
-6474
-6474

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7246
SELECT DISTINCT + col0 + - CAST( + col2 AS SIGNED ) + + + col1 DIV + - col2 AS col1 FROM tab0 WHERE NOT ( + col2 DIV ( + col0 ) * - col2 ) IS NULL
----
-2
-33
75

skipif mysql # not compatible
query I rowsort label-7246
SELECT DISTINCT + col0 + - CAST ( + col2 AS INTEGER ) + + + col1 / + - col2 AS col1 FROM tab0 WHERE NOT ( + col2 / ( + col0 ) * - col2 ) IS NULL
----
-2
-33
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 * - + col2 col2 FROM tab2
----
102400
24334
252300

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( - - 26, + col1 / + + col0, - col0, - + col2 * + + col1 * - 42 / + 53 + col1 + - - col2 )
----

query I rowsort
SELECT DISTINCT - - 24 * - col1 + 96 + - 44 FROM tab1 AS cor0
----
-1076
-284
-68

query I rowsort
SELECT DISTINCT + - col0 + + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT ALL col2 + + 73 AS col2 FROM tab0 AS cor0
----
120
172
83

query I rowsort
SELECT - + col0 * + - col1 * - col2 * + - 40 + - col0 + - col1 * 1 - - - col1 * col0 FROM tab1 AS cor0
----
1002485
11629025
2740981

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7253
SELECT ALL 54 - - CAST( NULL AS SIGNED ) + + COUNT( * ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7253
SELECT ALL 54 - - CAST ( NULL AS INTEGER ) + + COUNT ( * ) col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT - SUM( - 86 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
774

skipif mysql # not compatible
query I rowsort label-7254
SELECT - SUM ( - 86 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
774

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE 82 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT - 51 * + + 33 * + 93 + + COUNT( * ) FROM tab2
----
-156516

skipif mysql # not compatible
query I rowsort label-7256
SELECT - 51 * + + 33 * + 93 + + COUNT ( * ) FROM tab2
----
-156516

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7257
SELECT ALL + 52 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7257
SELECT ALL + 52 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7258
SELECT + ( - 96 ) DIV col1 - - + col1 AS col1 FROM tab1 AS cor0
----
-14
45
8

skipif mysql # not compatible
query I rowsort label-7258
SELECT + ( - 96 ) / col1 - - + col1 AS col1 FROM tab1 AS cor0
----
-14
45
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT + 32 * - - SUM( - + col2 ) + + 62 - + 13 AS col1 FROM tab2 AS cor0
----
-3823

skipif mysql # not compatible
query I rowsort label-7259
SELECT + 32 * - - SUM ( - + col2 ) + + 62 - + 13 AS col1 FROM tab2 AS cor0
----
-3823

onlyif mysql # DIV for integer division: 
query I rowsort label-7260
SELECT - - col2 DIV 10 AS col0 FROM tab1 AS cor0
----
5
6
9

skipif mysql # not compatible
query I rowsort label-7260
SELECT - - col2 / 10 AS col0 FROM tab1 AS cor0
----
5
6
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7261
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT + 51 * + - col0 + - col1 AS col0 FROM tab2 cor0
----
-2397
-3341
-3892

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT ALL + ( - COUNT( * ) ) AS col2 FROM tab2 WHERE ( - + col1 + col0 ) <> - col2 * - + 82 / + - col1 * - 78 * - col1 - - + ( + 89 )
----
-3

skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL + ( - COUNT ( * ) ) AS col2 FROM tab2 WHERE ( - + col1 + col0 ) <> - col2 * - + 82 / + - col1 * - 78 * - col1 - - + ( + 89 )
----
-3

query I rowsort
SELECT ALL 28 * - col1 AS col1 FROM tab1
----
-1316
-140
-392

query I rowsort
SELECT ALL 73 + + 42 FROM tab1 WHERE NOT NULL BETWEEN - col0 AND - + col2
----

query I rowsort
SELECT - 82 AS col1 FROM tab2 WHERE NOT + col0 + + + 58 * - + col0 IS NULL
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT - MAX( DISTINCT 39 ) AS col2 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-7267
SELECT - MAX ( DISTINCT 39 ) AS col2 FROM tab0 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT DISTINCT + COUNT( DISTINCT - col2 ) + - 73 AS col0 FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-7268
SELECT DISTINCT + COUNT ( DISTINCT - col2 ) + - 73 AS col0 FROM tab2 AS cor0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7269
SELECT DISTINCT + - ( - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IN ( 18, - col0 - + - CAST( NULL AS SIGNED ), - col1 )
----

skipif mysql # not compatible
query I rowsort label-7269
SELECT DISTINCT + - ( - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IN ( 18, - col0 - + - CAST ( NULL AS INTEGER ), - col1 )
----

query I rowsort
SELECT ALL + 10 + + col2 FROM tab1 cor0
----
106
69
78

query I rowsort
SELECT DISTINCT + 65 AS col1 FROM tab2 WHERE col0 IS NOT NULL
----
65

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT COUNT( * ) + - + 29 * COUNT( * ) AS col1 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-7273
SELECT COUNT ( * ) + - + 29 * COUNT ( * ) AS col1 FROM tab2
----
-84

query I rowsort
SELECT 59 FROM tab1 WHERE - 79 NOT BETWEEN + 1 AND NULL
----
59
59
59

query I rowsort
SELECT - + 76 + + + col1 FROM tab2 WHERE NULL IS NULL
----
-25
-9
1

query I rowsort
SELECT ALL - 39 * - - col1 FROM tab2 cor0
----
-1989
-2613
-3003

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT ALL - MIN( DISTINCT 72 ) + + 86 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-7278
SELECT ALL - MIN ( DISTINCT 72 ) + + 86 FROM tab0 AS cor0
----
14

query I rowsort
SELECT + - 22 + - + col1 + - col0 AS col1 FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN + + 5 AND - ( + col1 ) * col0
----
-112
-160
-87

query I rowsort
SELECT ALL + col0 + + - 17 * - col0 + + col0 * - 29 FROM tab1
----
-1001
-561
-935

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7281
SELECT 73 - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7281
SELECT 73 - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 FROM tab0 WHERE - ( + ( - col0 ) ) NOT IN ( + 32 )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT DISTINCT - ( + SUM( + col0 ) ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-7283
SELECT DISTINCT - ( + SUM ( + col0 ) ) FROM tab1
----
-227

query I rowsort
SELECT DISTINCT - col1 * + 88 FROM tab2
----
-4488
-5896
-6776

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7285
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> CAST( NULL AS DECIMAL ) * - col2
----

skipif mysql # not compatible
query III rowsort label-7285
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> CAST ( NULL AS REAL ) * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7286
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN 70 AND - CAST( NULL AS SIGNED ) - + col0 * + col1
----

skipif mysql # not compatible
query III rowsort label-7286
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN 70 AND - CAST ( NULL AS INTEGER ) - + col0 * + col1
----

query I rowsort
SELECT ALL 70 + - + col0 AS col1 FROM tab0 AS cor0
----
-17
-27
55

query II rowsort
SELECT DISTINCT - 49 - col0 * + ( - col0 ), + col0 FROM tab2
----
2067
46
4047
64
5576
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT DISTINCT + SUM( ALL - - 5 ) * - 60 AS col2 FROM tab1
----
-900

skipif mysql # not compatible
query I rowsort label-7289
SELECT DISTINCT + SUM ( ALL - - 5 ) * - 60 AS col2 FROM tab1
----
-900

query I rowsort
SELECT + ( + 8 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 21 * 52 AS col0 FROM tab2 AS cor0
----
-1092
-1092
-1092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7292
SELECT col0 * + CAST( + + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-7292
SELECT col0 * + CAST ( + + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7293
SELECT ALL - 92 * CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1288
4324
460

skipif mysql # not compatible
query I rowsort label-7293
SELECT ALL - 92 * CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1288
4324
460

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT ALL + COUNT( * ) * + MAX( + + col1 ) - + - COUNT( * ) FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-7295
SELECT ALL + COUNT ( * ) * + MAX ( + + col1 ) - + - COUNT ( * ) FROM tab1 AS cor0
----
144

query I rowsort
SELECT col0 * + - ( 48 ) AS col2 FROM tab1 AS cor0
----
-2448
-4080
-4368

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 54 * + col2 ) IS NOT NULL OR NOT + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7298
SELECT DISTINCT - col2 DIV 97 AS col1 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7298
SELECT DISTINCT - col2 / 97 AS col1 FROM tab0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7299
SELECT - 70 DIV - 16 FROM tab0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-7299
SELECT - 70 / - 16 FROM tab0
----
4
4
4

query II rowsort
SELECT col1 * + + 97, + col2 AS col0 FROM tab0 WHERE NOT col1 IS NULL
----
2037
10
7857
47
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT ALL - COUNT( * ) * + 76 AS col1 FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL - COUNT ( * ) * + 76 AS col1 FROM tab1
----
-228

query III rowsort
SELECT * FROM tab0 WHERE NOT - 72 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - - col2 col2 FROM tab2
----
116
46
80

query I rowsort
SELECT ( 7 ) FROM tab0 AS cor0
----
7
7
7

query I rowsort
SELECT - + col2 AS col1 FROM tab1 WHERE col2 + 50 BETWEEN + - col1 AND - 88
----

query I rowsort
SELECT - ( + + col2 ) * - - 58 AS col2 FROM tab1
----
-3422
-3944
-5568

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 75 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7307
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 75 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT + MIN( ALL 65 ) AS col2 FROM tab1, tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
65

skipif mysql # not compatible
query I rowsort label-7308
SELECT + MIN ( ALL 65 ) AS col2 FROM tab1, tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT ALL MAX( ALL + + col0 ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-7309
SELECT ALL MAX ( ALL + + col0 ) FROM tab0 cor0
----
97

query I rowsort
SELECT 14 + - 10 * + col1 FROM tab0 AS cor0
----
-196
-796
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT 50 + + COUNT( * ) + - MAX( col2 ) FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-7311
SELECT 50 + + COUNT ( * ) + - MAX ( col2 ) FROM tab1 AS cor0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT ALL - COUNT( * ) * MAX( DISTINCT - + col0 ) * + COUNT( * ) * + 64 + + 51 FROM tab2 AS cor0
----
26547

skipif mysql # not compatible
query I rowsort label-7312
SELECT ALL - COUNT ( * ) * MAX ( DISTINCT - + col0 ) * + COUNT ( * ) * + 64 + + 51 FROM tab2 AS cor0
----
26547

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7313
SELECT - - ( - CAST( NULL AS SIGNED ) ) + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7313
SELECT - - ( - CAST ( NULL AS INTEGER ) ) + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 >= - col0 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col1 + + 4 AS col1 FROM tab0 AS cor0
----
-17
-77
3

query I rowsort
SELECT + 87 + 32 + + - col2 FROM tab1 cor0
----
23
51
60

query I rowsort
SELECT ALL - - col2 FROM tab0 AS cor0 WHERE - 86 * + col0 * - col0 * - col0 IS NULL
----

query I rowsort
SELECT + ( - col0 ) FROM tab0 AS cor0 WHERE ( + 13 ) IS NULL
----

query I rowsort
SELECT + col0 + + + 90 * 61 + + col1 FROM tab1 AS cor0
----
5555
5580
5628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7320
SELECT ALL COUNT( * ) + - CAST( + - 6 AS SIGNED ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL COUNT ( * ) + - CAST ( + - 6 AS INTEGER ) FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7321
SELECT + + col2 AS col1 FROM tab2 WHERE + ( + + CAST( NULL AS SIGNED ) ) NOT IN ( 17, col2 - - + col0 * col0 + + - col0 * - + col0 + ( + - col0 ) )
----

skipif mysql # not compatible
query I rowsort label-7321
SELECT + + col2 AS col1 FROM tab2 WHERE + ( + + CAST ( NULL AS INTEGER ) ) NOT IN ( 17, col2 - - + col0 * col0 + + - col0 * - + col0 + ( + - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT DISTINCT + COUNT( col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7322
SELECT DISTINCT + COUNT ( col2 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT - COUNT( * ) FROM tab1 WHERE + - 12 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7323
SELECT - COUNT ( * ) FROM tab1 WHERE + - 12 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT ALL + MAX( + - col0 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-7324
SELECT ALL + MAX ( + - col0 ) AS col0 FROM tab2
----
-46

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7326
SELECT - col0 * + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7326
SELECT - col0 * + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 32 / + + 79 FROM tab2 WHERE NOT - - col1 = + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7328
SELECT - col0 DIV - - col0 col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7328
SELECT - col0 / - - col0 col0 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT + 53 - - - MAX( - 82 ) FROM tab0 cor0
----
135

skipif mysql # not compatible
query I rowsort label-7329
SELECT + 53 - - - MAX ( - 82 ) FROM tab0 cor0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT DISTINCT - COUNT( * ) * + 22 col0 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7330
SELECT DISTINCT - COUNT ( * ) * + 22 col0 FROM tab2 AS cor0
----
-66

query I rowsort
SELECT DISTINCT - 37 FROM tab0 cor0
----
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, col0 FROM tab2 AS cor0 WHERE - col1 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - + col1 ) + + 77 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + col1 * col1 + + 4 FROM tab0 AS cor0
----
445
5
6565

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 - + col2 * - 18 BETWEEN 81 AND - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN - ( + + col1 ) * + col0 - + col1 / 14 * col2 AND + - col0
----

query I rowsort
SELECT ALL col1 * + - 50 AS col2 FROM tab2 WHERE NOT + col2 = + col1
----
-2550
-3350
-3850

query I rowsort
SELECT col0 * + col1 * - + col0 FROM tab1
----
-36125
-36414
-389207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 col1 FROM tab0
----
53
53
53

query II rowsort
SELECT - ( - col2 ), col0 AS col1 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query II rowsort label-7341
SELECT DISTINCT SUM( ALL - col0 ), - COUNT( * ) AS col1 FROM tab1
----
-227
-3

skipif mysql # not compatible
query II rowsort label-7341
SELECT DISTINCT SUM ( ALL - col0 ), - COUNT ( * ) AS col1 FROM tab1
----
-227
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7342
SELECT ALL col1 * - col1 + col0 * + 26 + 90 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7342
SELECT ALL col1 * - col1 + col0 * + 26 + 90 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 4 IS NULL
----

query II rowsort
SELECT + + col0 * - col0 * + col2 AS col2, 43 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT ALL ( + SUM( ALL - col2 ) ) * + - MIN( DISTINCT - ( - 24 ) ) FROM tab1
----
5352

skipif mysql # not compatible
query I rowsort label-7345
SELECT ALL ( + SUM ( ALL - col2 ) ) * + - MIN ( DISTINCT - ( - 24 ) ) FROM tab1
----
5352

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 19 <> + - 77
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7347
SELECT 68 * + 65 * CAST( NULL AS SIGNED ) * + - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7347
SELECT 68 * + 65 * CAST ( NULL AS INTEGER ) * + - col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 + - - col2 * - + col0 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7349
SELECT DISTINCT + - ( + CAST( NULL AS DECIMAL ) ) * + 95 * - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7349
SELECT DISTINCT + - ( + CAST ( NULL AS REAL ) ) * + 95 * - col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7350
SELECT 19 FROM tab0 AS cor0 WHERE col1 NOT IN ( + - 80 DIV col2 + 1, col0, - + 67 )
----
19
19

skipif mysql # not compatible
query I rowsort label-7350
SELECT 19 FROM tab0 AS cor0 WHERE col1 NOT IN ( + - 80 / col2 + 1, col0, - + 67 )
----
19
19

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 + + col1 > - 61
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7352
SELECT DISTINCT + col2 * 46 DIV 83 + 52 AS col0 FROM tab2 AS cor0
----
64
74
84

skipif mysql # not compatible
query I rowsort label-7352
SELECT DISTINCT + col2 * 46 / 83 + 52 AS col0 FROM tab2 AS cor0
----
64
74
84

query II rowsort
SELECT col0, - col2 * 80 FROM tab2 AS cor0
----
46
-1840
64
-3200
75
-4640

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT ALL 72 * + COUNT( * ) + - 56 col0 FROM tab1
----
160

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7354
SELECT ALL 72 * + COUNT ( * ) + - 56 col0 FROM tab1
----
160

query I rowsort
SELECT DISTINCT + 85 - - col1 AS col1 FROM tab0
----
106
166
86

query I rowsort
SELECT DISTINCT 72 * + 88 FROM tab2
----
6336

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT MIN( DISTINCT + + 50 ) + + COUNT( * ) - + 7 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-7357
SELECT MIN ( DISTINCT + + 50 ) + + COUNT ( * ) - + 7 FROM tab0
----
46

query I rowsort
SELECT col0 * - + ( - + 53 ) + + + 54 AS col1 FROM tab1
----
2757
4559
4877

query I rowsort
SELECT - col2 + + ( + 74 ) AS col1 FROM tab2
----
16
34
51

query II rowsort
SELECT ALL - col0 AS col0, + col0 + - 73 FROM tab1
----
-51
-22
-85
12
-91
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT + ( + COUNT( * ) ) + - COUNT( * ) + - COUNT( * ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7361
SELECT + ( + COUNT ( * ) ) + - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + col2 - - + col1 FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7363
SELECT ALL + - CAST( NULL AS SIGNED ) * col2 + + 92 AS col2 FROM tab0 WHERE NOT NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL + - CAST ( NULL AS INTEGER ) * col2 + + 92 AS col2 FROM tab0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7364
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7365
SELECT + 26 * CAST( - + col2 AS SIGNED ) FROM tab0 cor0
----
-1222
-2574
-260

skipif mysql # not compatible
query I rowsort label-7365
SELECT + 26 * CAST ( - + col2 AS INTEGER ) FROM tab0 cor0
----
-1222
-2574
-260

query II rowsort
SELECT DISTINCT + col1, col2 AS col0 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT ALL + + col1 FROM tab2 WHERE NOT NULL NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT - 41 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT + col0 * + 52 AS col0 FROM tab1 AS cor0
----
2652
4420
4732

query I rowsort
SELECT - 60 AS col0 FROM tab1 cor0
----
-60
-60
-60

query I rowsort
SELECT + + 98 * + col2 AS col1 FROM tab1 AS cor0
----
5782
6664
9408

query I rowsort
SELECT - 90 + - 77 FROM tab2
----
-167
-167
-167

onlyif mysql # aggregate syntax: 
query II rowsort label-7373
SELECT COUNT( * ) AS col0, COUNT( * ) AS col0 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-7373
SELECT COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab2
----
3
3

query II rowsort
SELECT col1 AS col1, - ( - col0 ) FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT DISTINCT - 47 * - + 34 FROM tab1 AS cor0
----
1598

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT COUNT( + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7376
SELECT COUNT ( + col0 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT - 6, + 79 AS col2 FROM tab0 AS cor0
----
-6
79
-6
79
-6
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT ALL SUM( + col2 ) + - COUNT( ALL - - col0 ) + 68 AS col2 FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-7378
SELECT ALL SUM ( + col2 ) + - COUNT ( ALL - - col0 ) + 68 AS col2 FROM tab2 AS cor0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT + + ( + COUNT( DISTINCT ( - col0 ) ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7379
SELECT + + ( + COUNT ( DISTINCT ( - col0 ) ) ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL 78 + col1 AS col1 FROM tab1
----
125
83
92

query I rowsort
SELECT DISTINCT + - ( - col2 ) AS col2 FROM tab0 WHERE NOT 85 / - col0 / + col1 / 57 - - 61 NOT BETWEEN - 64 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 64 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7383
SELECT DISTINCT + col0 DIV + col1 + col2 FROM tab0
----
14
196
47

skipif mysql # not compatible
query I rowsort label-7383
SELECT DISTINCT + col0 / + col1 + col2 FROM tab0
----
14
196
47

query I rowsort
SELECT 97 * 40 FROM tab1 WHERE - 40 <> NULL
----

query II rowsort
SELECT DISTINCT - col2 * - - col0, ( - + 34 ) AS col1 FROM tab1
----
-4896
-34
-5015
-34
-6188
-34

query II rowsort
SELECT DISTINCT - col0 * col0 * + col2 + col1, 2 AS col1 FROM tab2 AS cor0
----
-163763
2
-326183
2
-48617
2

query I rowsort
SELECT DISTINCT - + ( - + col2 ) + col0 * 17 FROM tab1 AS cor0
----
1504
1615
963

onlyif mysql # DIV for integer division: 
query II rowsort label-7388
SELECT + + 69 * - - col2 * + col1 + + + 34 + + + col0 * + col0 * col2 + + + 41 DIV + 89 AS col2, col2 FROM tab1 AS cor0
----
342466
96
446664
59
783666
68

skipif mysql # not compatible
query II rowsort label-7388
SELECT + + 69 * - - col2 * + col1 + + + 34 + + + col0 * + col0 * col2 + + + 41 / + 89 AS col2, col2 FROM tab1 AS cor0
----
342466
96
446664
59
783666
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7389
SELECT * FROM tab0 AS cor0 WHERE col1 * - - CAST( NULL AS SIGNED ) + CAST( + + col1 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7389
SELECT * FROM tab0 AS cor0 WHERE col1 * - - CAST ( NULL AS INTEGER ) + CAST ( + + col1 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + ( + col2 ) + + - ( + col2 ) FROM tab0 cor0
----
-198
-20
-94

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT IN ( col1 * 54, col2, + 31, - col1 )
----

query I rowsort
SELECT + col0 + + 86 AS col1 FROM tab1 AS cor0
----
137
171
177

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT + COUNT( * ) * - ( - + MAX( ALL - col1 ) ) + + + COUNT( * ) + + + SUM( - - col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-7393
SELECT + COUNT ( * ) * - ( - + MAX ( ALL - col1 ) ) + + + COUNT ( * ) + + + SUM ( - - col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + col2 col2 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7395
SELECT - col0 + + + CAST( NULL AS SIGNED ) AS col1, + col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-7395
SELECT - col0 + + + CAST ( NULL AS INTEGER ) AS col1, + col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT ALL ( + + col2 ) + + 59 + + 40 FROM tab0 AS cor0
----
109
146
198

query I rowsort
SELECT DISTINCT + 24 - - col2 + - col0 AS col1 FROM tab2 AS cor0
----
0
1
7

query III rowsort
SELECT * FROM tab1 WHERE - + 71 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT DISTINCT ( - COUNT( * ) ) + + + COUNT( * ) * + 42 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-7399
SELECT DISTINCT ( - COUNT ( * ) ) + + + COUNT ( * ) * + 42 FROM tab2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT COUNT( * ) FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7400
SELECT COUNT ( * ) FROM tab1, tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7401
SELECT CAST( NULL AS SIGNED ) * + 4 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7401
SELECT CAST ( NULL AS INTEGER ) * + 4 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT SUM( DISTINCT 99 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7402
SELECT SUM ( DISTINCT 99 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT + - col1 * col1 * 56 * + col0 AS col1 FROM tab2 AS cor0 WHERE NOT + ( 89 ) IS NULL
----
-18853800
-21249536
-6700176

query II rowsort
SELECT DISTINCT - 20, col1 - - col0 AS col2 FROM tab1
----
-20
138
-20
65
-20
90

query I rowsort
SELECT ALL ( col1 ) * - - 98 FROM tab1
----
1372
4606
490

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT + + MAX( - 70 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-70

skipif mysql # not compatible
query I rowsort label-7406
SELECT + + MAX ( - 70 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col0, - col1 col0 FROM tab0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT - col0 + col2 AS col1 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7409
SELECT CAST( - + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7409
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT ALL - - SUM( ALL + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-7410
SELECT ALL - - SUM ( ALL + col0 ) FROM tab1 AS cor0
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, - col2 col1 FROM tab1 cor0
----
-14
-96
-47
-68
-5
-59

query I rowsort
SELECT ALL + - col2 * - + col2 AS col0 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7413
SELECT ALL + CAST( + + col0 AS SIGNED ) + + + col1 * col1 + 18 - + 44 * - - col1 FROM tab2 cor0
----
1634
2623
421

skipif mysql # not compatible
query I rowsort label-7413
SELECT ALL + CAST ( + + col0 AS INTEGER ) + + + col1 * col1 + 18 - + 44 * - - col1 FROM tab2 cor0
----
1634
2623
421

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT DISTINCT + MAX( ALL col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7414
SELECT DISTINCT + MAX ( ALL col1 ) AS col2 FROM tab1
----
47

query I rowsort
SELECT + ( - col2 ) * - col2 - - ( - - 95 ) FROM tab0
----
195
2304
9896

query I rowsort
SELECT ( - - ( - + col1 ) ) FROM tab2
----
-51
-67
-77

query II rowsort
SELECT DISTINCT 87 * - - col2 AS col1, - ( - 95 ) FROM tab2
----
2001
95
3480
95
5046
95

query II rowsort
SELECT DISTINCT - + col1, - col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - + col2 + - 33 + - 32 + col0 * + 53 AS col2 FROM tab1 WHERE + 10 / + + 3 IS NOT NULL
----
2542
4381
4690

query I rowsort
SELECT + col0 + - 32 AS col1 FROM tab2 AS cor0
----
14
32
43

query I rowsort
SELECT col0 + - + col1 AS col0 FROM tab0
----
-66
66
96

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7423
SELECT DISTINCT col2 * + 42 - - + 63 DIV - col0 AS col0 FROM tab0
----
1970
4158
420

skipif mysql # not compatible
query I rowsort label-7423
SELECT DISTINCT col2 * + 42 - - + 63 / - col0 AS col0 FROM tab0
----
1970
4158
420

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE 91 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 65 = NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col1 AS col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT - - 87 - 5 AS col0 FROM tab1 AS cor0
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 * + 0 - + col1 * + col0 col2 FROM tab0 cor0
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 * 33 + - ( + col0 ) col2 FROM tab1 cor0
----
1658
1664
1698

query II rowsort
SELECT - 69, col2 FROM tab2 AS cor0
----
-69
23
-69
40
-69
58

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col1 ) col0 FROM tab2
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7434
SELECT ALL 78 DIV 61 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL 78 / 61 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7435
SELECT - CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7435
SELECT - CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-7436
SELECT ALL + COUNT( col0 ) AS col1, MIN( - - 13 ) FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7436
SELECT ALL + COUNT ( col0 ) AS col1, MIN ( - - 13 ) FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT DISTINCT + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7437
SELECT DISTINCT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT DISTINCT + - ( COUNT( * ) ) + + 13 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN 10 AND 13 * - col0
----
10

skipif mysql # not compatible
query I rowsort label-7438
SELECT DISTINCT + - ( COUNT ( * ) ) + + 13 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN 10 AND 13 * - col0
----
10

query I rowsort
SELECT ALL col2 * - - 28 FROM tab1
----
1652
1904
2688

query I rowsort
SELECT + - col1 FROM tab2 WHERE NOT + - 32 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + - + 65 AS col0 FROM tab2
----
-25
-42
-7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 96 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT DISTINCT + MIN( DISTINCT + - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7443
SELECT DISTINCT + MIN ( DISTINCT + - col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT DISTINCT + - 69 + + COUNT( * ) FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7445
SELECT DISTINCT + - 69 + + COUNT ( * ) FROM tab0 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT ALL - MAX( DISTINCT + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7446
SELECT ALL - MAX ( DISTINCT + col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ( col1 ) * + col1 + - col2 AS col0 FROM tab0 cor0
----
-98
431
6514

query I rowsort
SELECT + 96 + - - col2 FROM tab2 AS cor0
----
119
136
154

onlyif mysql # DIV for integer division: 
query I rowsort label-7449
SELECT DISTINCT col1 + - col1 DIV - + col0 FROM tab0
----
1
21
86

skipif mysql # not compatible
query I rowsort label-7449
SELECT DISTINCT col1 + - col1 / - + col0 FROM tab0
----
1
21
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT ALL MAX( 88 ) AS col1 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL MAX ( 88 ) AS col1 FROM tab1
----
88

query II rowsort
SELECT DISTINCT - col1 AS col0, - col1 AS col0 FROM tab2
----
-51
-51
-67
-67
-77
-77

query II rowsort
SELECT DISTINCT + col2 AS col2, + col1 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT 17 + - col1 * 51 FROM tab2
----
-2584
-3400
-3910

query I rowsort
SELECT DISTINCT - col2 * 95 * - col1 * + 43 FROM tab0
----
15551595
404415
857850

query I rowsort
SELECT DISTINCT 84 * + col1 AS col0 FROM tab0
----
1764
6804
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT COUNT( * ) FROM tab1 WHERE ( + col1 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-7456
SELECT COUNT ( * ) FROM tab1 WHERE ( + col1 IS NOT NULL )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7457
SELECT ALL + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 6 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 * - col2 + + col1 * + col1 + 28 FROM tab1 AS cor0
----
-3951
-4672
-4962

query I rowsort
SELECT ALL + col2 + + - col0 AS col0 FROM tab2 AS cor0
----
-17
-23
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - ( col1 ) col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT - - col1 * + 92, col2 FROM tab2 AS cor0
----
4692
23
6164
58
7084
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col0 * - ( col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= - col1 * + - 94 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7466
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) BETWEEN col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-7466
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) BETWEEN col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * + col1 < + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 12 * 2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, col0 + - - ( + + 30 ) AS col2 FROM tab2
----
51
76
67
105
77
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7470
SELECT DISTINCT - CAST( + AVG ( + - col2 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-7470
SELECT DISTINCT - CAST ( + AVG ( + - col2 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, col0 col1 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT ALL - MAX( DISTINCT 77 ) * COUNT( * ) AS col2 FROM tab2 cor0
----
-231

skipif mysql # not compatible
query I rowsort label-7472
SELECT ALL - MAX ( DISTINCT 77 ) * COUNT ( * ) AS col2 FROM tab2 cor0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT COUNT( + col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7473
SELECT COUNT ( + col1 ) FROM tab2
----
3

query I rowsort
SELECT + col2 * col1 + - col1 FROM tab1
----
1330
290
3149

query I rowsort
SELECT ALL 94 + + col1 AS col1 FROM tab0 AS cor0
----
115
175
95

query I rowsort
SELECT ALL - ( - - col2 ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT - 87 AS col1 FROM tab1 cor0
----
-87
-87
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 col1 FROM tab0 AS cor0
----
-46
-46
-46

query I rowsort
SELECT col0 * + 78 * - 98 AS col0 FROM tab2
----
-351624
-489216
-573300

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT 59 * - 64 * 95 - MAX( ALL + 23 ) - - MIN( - + col0 ) col2 FROM tab0
----
-358840

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7480
SELECT 59 * - 64 * 95 - MAX ( ALL + 23 ) - - MIN ( - + col0 ) col2 FROM tab0
----
-358840

query I rowsort
SELECT col1 + - col2 * - col2 * col2 FROM tab2
----
12218
195179
64077

query I rowsort
SELECT + col2 * + 49 + + - 93 + + col0 AS col2 FROM tab2 AS cor0
----
1080
1931
2824

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 BETWEEN + + 43 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + - col0 + - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 77 * - col0 AS col0 FROM tab0 cor0
----
1155
6699
7469

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT DISTINCT MAX( ( - 76 ) ) AS col0 FROM tab1 cor0
----
-76

skipif mysql # not compatible
query I rowsort label-7486
SELECT DISTINCT MAX ( ( - 76 ) ) AS col0 FROM tab1 cor0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7487
SELECT ALL - col1 + - - 24 * - col2 - col0 col2, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-1506
NULL
-1770
NULL
-2369
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7487
SELECT ALL - col1 + - - 24 * - col2 - col0 col2, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-1506
NULL
-1770
NULL
-2369
NULL

query I rowsort
SELECT 60 * 30 FROM tab0 AS cor0
----
1800
1800
1800

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7489
SELECT + - 2 * - col1 / - CAST( + 26 AS DECIMAL ) + + col2 / - col1 FROM tab1 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + + col1
----

skipif mysql # not compatible
query I rowsort label-7489
SELECT + - 2 * - col1 / - CAST ( + 26 AS REAL ) + + col2 / - col1 FROM tab1 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + + col1
----

query I rowsort
SELECT DISTINCT - col2 * - + col2 * + col1 FROM tab0 AS cor0
----
178929
2100
9801

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7491
SELECT 95 DIV + ( + CAST( - 77 AS SIGNED ) ) FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7491
SELECT 95 / + ( + CAST ( - 77 AS INTEGER ) ) FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT - COUNT( + 35 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7492
SELECT - COUNT ( + 35 ) AS col2 FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= - 11
----

query I rowsort
SELECT ALL - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 >= 91
----
-10
-47
-99

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - col0 ) - + 64 <= - - 13
----

query I rowsort
SELECT ALL AVG ( col0 ) FROM tab1 cor0 WHERE NULL >= NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - 4 * col0 IS NOT NULL
----

query I rowsort
SELECT + 6 FROM tab2 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT + + 73 + + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-7499
SELECT + + 73 + + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT + 72 + + COUNT( DISTINCT + col1 ) FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7500
SELECT + 72 + + COUNT ( DISTINCT + col1 ) FROM tab0 AS cor0
----
75

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE NULL <> col0
----

query I rowsort
SELECT ALL + col2 + + + 66 + 66 * 15 FROM tab0 AS cor0
----
1066
1103
1155

query I rowsort
SELECT DISTINCT + + col0 + - + 7 AS col2 FROM tab2 AS cor0
----
39
57
68

query I rowsort
SELECT ALL - col1 + - 99 FROM tab2 AS cor0
----
-150
-166
-176

query I rowsort
SELECT ( + + col1 ) + + + 25 FROM tab0 AS cor0
----
106
26
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT COUNT( * ) col2 FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7506
SELECT COUNT ( * ) col2 FROM tab0 WHERE NULL IS NULL
----
3

query II rowsort
SELECT ALL col2 + + + 21, - ( col0 ) AS col0 FROM tab1
----
117
-51
80
-85
89
-91

query III rowsort
SELECT * FROM tab2 WHERE NULL = 21
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 * + 13 col0 FROM tab0
----
-1261
-15795
-23751

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7510
SELECT - + SUM( ALL - 88 ) - COUNT( col1 ) DIV + 25 + + + CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-7510
SELECT - + SUM ( ALL - 88 ) - COUNT ( col1 ) / + 25 + + + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
261

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 IS NOT NULL AND NULL <> 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT ALL + - 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-7512
SELECT ALL + - COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 2 * 70 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-7513
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 2 * 70 IS NULL
----
9

query I rowsort
SELECT DISTINCT - - 78 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
78

query I rowsort
SELECT col0 * + - col1 * - - col0 FROM tab1 cor0
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT + MAX( - col0 ) col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7516
SELECT + MAX ( - col0 ) col1 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT - 90 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7518
SELECT - CAST( SUM( + col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-7518
SELECT - CAST ( SUM ( + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT DISTINCT + MAX( col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7519
SELECT DISTINCT + MAX ( col1 ) FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 2 * - + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7521
SELECT ALL + col1 AS col1, - col0 DIV col0 AS col2 FROM tab0
----
1
-1
21
-1
81
-1

skipif mysql # not compatible
query II rowsort label-7521
SELECT ALL + col1 AS col1, - col0 / col0 AS col2 FROM tab0
----
1
-1
21
-1
81
-1

query I rowsort
SELECT DISTINCT ( + ( col2 ) ) FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7523
SELECT ( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7523
SELECT ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 53 AS col1, - 37 AS col1 FROM tab1
----
53
-37
53
-37
53
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7525
SELECT - CAST( + - col1 AS SIGNED ) AS col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7525
SELECT - CAST ( + - col1 AS INTEGER ) AS col1 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT ALL MIN( DISTINCT - + col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL MIN ( DISTINCT - + col1 ) AS col0 FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT MAX( ALL + ( - col2 ) ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-7527
SELECT MAX ( ALL + ( - col2 ) ) AS col2 FROM tab2
----
-23

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab2 WHERE NULL NOT BETWEEN + col1 AND + - ( + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT - + 87 AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT ALL + COUNT( * ) + ( - - 78 ) FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7531
SELECT ALL + COUNT ( * ) + ( - - 78 ) FROM tab1 AS cor0
----
81

query I rowsort
SELECT - + 21 * + + 38 + - col2 AS col0 FROM tab2 AS cor0
----
-821
-838
-856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7533
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7533
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7534
SELECT DISTINCT col0 * col0 * col1 + + col1 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7534
SELECT DISTINCT col0 * col0 * col1 + + col1 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 82 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7536
SELECT DISTINCT + + COUNT( * ) * 20 + + - ( CAST( NULL AS DECIMAL ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7536
SELECT DISTINCT + + COUNT ( * ) * 20 + + - ( CAST ( NULL AS REAL ) ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT + 76 + - 31 AS col1 FROM tab1 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT ALL - 36 + ( MAX( ALL - - col0 ) ) FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL - 36 + ( MAX ( ALL - - col0 ) ) FROM tab2 AS cor0
----
39

query I rowsort
SELECT DISTINCT + col1 * + col2 * col0 + - col2 FROM tab1 AS cor0
----
25016
290768
68448

query I rowsort
SELECT DISTINCT + 63 - - col0 * col2 FROM tab2 AS cor0
----
1121
2623
4413

query I rowsort
SELECT ALL col2 * 65 + 26 * - + col2 * col1 AS col1 FROM tab0
----
-4810
-95927
3861

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7542
SELECT DISTINCT 98 + + CAST( + 92 AS SIGNED ) FROM tab2, tab1 cor0
----
190

skipif mysql # not compatible
query I rowsort label-7542
SELECT DISTINCT 98 + + CAST ( + 92 AS INTEGER ) FROM tab2, tab1 cor0
----
190

query I rowsort
SELECT col1 - - - col2 + - + col2 AS col1 FROM tab0
----
-13
-197
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7544
SELECT + ( - + CAST( - 62 AS SIGNED ) ) - col2 * + 40 AS col1 FROM tab2
----
-1538
-2258
-858

skipif mysql # not compatible
query I rowsort label-7544
SELECT + ( - + CAST ( - 62 AS INTEGER ) ) - col2 * + 40 AS col1 FROM tab2
----
-1538
-2258
-858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 - col2 col2 FROM tab1
----
-17
-45
-8

query II rowsort
SELECT col0 * - 29 + - 86 AS col0, - col0 AS col1 FROM tab0
----
-2609
-87
-2899
-97
-521
-15

query I rowsort
SELECT ALL - + col0 FROM tab1 WHERE NOT - col1 + + ( + col2 ) + col2 * + + col2 / col2 BETWEEN NULL AND + col1
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7548
SELECT + ( 89 ) DIV + 25 + col0 FROM tab2
----
49
67
78

skipif mysql # not compatible
query I rowsort label-7548
SELECT + ( 89 ) / + 25 + col0 FROM tab2
----
49
67
78

query I rowsort
SELECT col0 + + 84 FROM tab1
----
135
169
175

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT + 89 + + 14 * + 19 + COUNT( * ) FROM tab1
----
358

skipif mysql # not compatible
query I rowsort label-7550
SELECT + 89 + + 14 * + 19 + COUNT ( * ) FROM tab1
----
358

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 36 col0 FROM tab1, tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 21 + - 30 FROM tab0
----
-9
-9
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 26 col0 FROM tab1 AS cor0
----
-26
-26
-26

query II rowsort
SELECT 7 * col1 + col0 AS col2, col1 FROM tab0 AS cor0
----
104
1
234
21
582
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7555
SELECT DISTINCT * FROM tab1 WHERE NOT col2 = 25 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7555
SELECT DISTINCT * FROM tab1 WHERE NOT col2 = 25 * CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 WHERE NOT col1 / col1 <> col2
----
0

skipif mysql # not compatible
query I rowsort label-7556
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE NOT col1 / col1 <> col2
----
0

query I rowsort
SELECT col0 + + 78 AS col2 FROM tab1
----
129
163
169

query I rowsort
SELECT ALL col1 + + col0 * 5 FROM tab0
----
156
456
486

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + col2 AND NULL
----

query I rowsort
SELECT ALL + col1 * + 95 + - col2 AS col2 FROM tab1
----
1234
416
4397

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT IN ( + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + col2 AND 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT + COUNT( col1 ) AS col0 FROM tab2 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7563
SELECT + COUNT ( col1 ) AS col0 FROM tab2 WHERE - col2 IS NULL
----
0

query I rowsort
SELECT 63 + - col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= col2 - 30 / + 28
----

query I rowsort
SELECT ALL - ( col0 ) FROM tab0 WHERE ( 65 + + 59 ) IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT ALL + MIN( 48 ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-7567
SELECT ALL + MIN ( 48 ) FROM tab0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7568
SELECT ALL * FROM tab1 WHERE + ( - col2 ) * - CAST( NULL AS SIGNED ) + col0 NOT BETWEEN col1 AND col1
----

skipif mysql # not compatible
query III rowsort label-7568
SELECT ALL * FROM tab1 WHERE + ( - col2 ) * - CAST ( NULL AS INTEGER ) + col0 NOT BETWEEN col1 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT DISTINCT - MAX( + 80 ) AS col0 FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-7569
SELECT DISTINCT - MAX ( + 80 ) AS col0 FROM tab1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT - COUNT( * ) / 95 + - SUM( - col0 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7570
SELECT - COUNT ( * ) / 95 + - SUM ( - col0 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE ( - col2 ) IS NULL
----

query I rowsort
SELECT ALL + col2 + + ( col0 ) FROM tab2 WHERE NOT + col0 * - col1 IS NULL
----
104
133
69

query I rowsort
SELECT DISTINCT ( + col1 ) * col1 + 88 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col0 - + 56 AS col2 FROM tab2 WHERE NOT + 84 / - col1 <= - col1
----
-10
19
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT ALL + COUNT( DISTINCT col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL + COUNT ( DISTINCT col1 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT COUNT( * ) + + 50 AS col1 FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-7576
SELECT COUNT ( * ) + + 50 AS col1 FROM tab0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT SUM( DISTINCT col1 ) + - 51 AS col1 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-7577
SELECT SUM ( DISTINCT col1 ) + - 51 AS col1 FROM tab1
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 col2 FROM tab2
----
63

query I rowsort
SELECT ALL + 44 + col2 * - col1 FROM tab2
----
-1129
-3036
-3842

query I rowsort
SELECT - 73 * col0 AS col2 FROM tab2
----
-3358
-4672
-5475

query I rowsort
SELECT col1 * + 32 + + col1 FROM tab2
----
1683
2211
2541

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7582
SELECT COUNT( * ) + + CAST( - MAX( - col0 ) AS SIGNED ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-7582
SELECT COUNT ( * ) + + CAST ( - MAX ( - col0 ) AS INTEGER ) FROM tab0
----
18

query I rowsort
SELECT ALL 18 * col0 FROM tab0
----
1566
1746
270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7584
SELECT DISTINCT + COUNT( ALL - CAST( col1 AS SIGNED ) ) FROM tab1 WHERE NULL < - col0
----
0

skipif mysql # not compatible
query I rowsort label-7584
SELECT DISTINCT + COUNT ( ALL - CAST ( col1 AS INTEGER ) ) FROM tab1 WHERE NULL < - col0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col1 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT DISTINCT - 47 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-7586
SELECT DISTINCT - 47 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-44

query I rowsort
SELECT DISTINCT + ( + 10 ) AS col2 FROM tab0
----
10

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7589
SELECT COUNT( - col0 ) - - 12 DIV 33 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 22 * 80 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7589
SELECT COUNT ( - col0 ) - - 12 / 33 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 22 * 80 AND NULL
----
0

query I rowsort
SELECT - - 47 * - col0 + col0 FROM tab0 AS cor0
----
-4002
-4462
-690

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT ALL - COUNT( ALL - col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL - COUNT ( ALL - col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7592
SELECT + col1 DIV 15 + + col2 col0 FROM tab0 cor0
----
11
52
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7592
SELECT + col1 / 15 + + col2 col0 FROM tab0 cor0
----
11
52
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT ALL 9 + - COUNT( * ) AS col1 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL 9 + - COUNT ( * ) AS col1 FROM tab2 cor0
----
6

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7595
SELECT + 10 * col2 + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
1011
675
771

skipif mysql # not compatible
query I rowsort label-7595
SELECT + 10 * col2 + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
1011
675
771

query I rowsort
SELECT ALL - 65 + col1 AS col2 FROM tab2 AS cor0
----
-14
12
2

query I rowsort
SELECT - - 85 + col2 FROM tab2 AS cor0
----
108
125
143

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT - - ( + COUNT( * ) ) + 33 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-7598
SELECT - - ( + COUNT ( * ) ) + 33 FROM tab1 AS cor0
----
36

query I rowsort
SELECT ALL + + 14 + - 71 * 25 FROM tab2 AS cor0
----
-1761
-1761
-1761

query I rowsort
SELECT - 22 + + col0 FROM tab2 AS cor0
----
24
42
53

query I rowsort
SELECT DISTINCT - - col0 * 33 - + col2 AS col2 FROM tab1 AS cor0
----
1587
2746
2935

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7602
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - 10 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7602
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - 10 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7603
SELECT ALL col0 DIV + col1 - + 87 * col0 FROM tab0
----
-1305
-7565
-8342

skipif mysql # not compatible
query I rowsort label-7603
SELECT ALL col0 / + col1 - + 87 * col0 FROM tab0
----
-1305
-7565
-8342

query I rowsort
SELECT DISTINCT + col2 + + + col0 FROM tab1
----
144
147
159

query I rowsort
SELECT DISTINCT - col1 * 26 + 73 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND ( - col1 * + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = 67
----

query I rowsort
SELECT ALL col1 * col1 - - col2 AS col1 FROM tab0
----
100
451
6608

query I rowsort
SELECT - 84 - - 5 FROM tab0 WHERE - col1 + 36 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7609
SELECT ALL 50 DIV - col1 col2 FROM tab1
----
-1
-10
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7609
SELECT ALL 50 / - col1 col2 FROM tab1
----
-1
-10
-3

query I rowsort
SELECT ALL col1 * - + col0 - - col2 FROM tab1
----
-366
-4209
-618

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7613
SELECT - 43 * - + 90 * + 44 - - col0 DIV + col0 FROM tab1
----
170281
170281
170281

skipif mysql # not compatible
query I rowsort label-7613
SELECT - 43 * - + 90 * + 44 - - col0 / + col0 FROM tab1
----
170281
170281
170281

onlyif mysql # DIV for integer division: 
query I rowsort label-7614
SELECT + col2 - + col1 + - col2 DIV col1 DIV col1 AS col2 FROM tab0
----
-1
-11
-34

skipif mysql # not compatible
query I rowsort label-7614
SELECT + col2 - + col1 + - col2 / col1 / col1 AS col2 FROM tab0
----
-1
-11
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT + - MIN( + col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-7615
SELECT + - MIN ( + col0 ) FROM tab2 AS cor0
----
-46

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 29 + col1 IS NOT NULL
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT + ( + col2 ) NOT BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7618
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - ( - CAST( - 29 AS SIGNED ) ) * - col1 + 50 IN ( + col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-7618
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - ( - CAST ( - 29 AS INTEGER ) ) * - col1 + 50 IN ( + col2 )
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 >= + 47 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 84 * - 89 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 <> + col2
----

query I rowsort
SELECT DISTINCT - 18 * - col0 AS col0 FROM tab0
----
1566
1746
270

query I rowsort
SELECT col1 * - col2 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col0 / ( - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT COUNT( * ) FROM tab2 WHERE NOT ( + col0 * - 27 + + col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7623
SELECT COUNT ( * ) FROM tab2 WHERE NOT ( + col0 * - 27 + + col1 ) IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT NULL NOT BETWEEN NULL AND NULL )
----

query II rowsort
SELECT - col0 AS col1, col1 AS col0 FROM tab0
----
-15
81
-87
21
-97
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + col2 ) col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT ALL - + COUNT( - + 34 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL - + COUNT ( - + 34 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT 17 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
17
17
17

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN - col0 + + 11 * ( col0 ) AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7630
SELECT - 5, - SUM( ALL 42 ) col0 FROM tab2 AS cor0
----
-5
-126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7630
SELECT - 5, - SUM ( ALL 42 ) col0 FROM tab2 AS cor0
----
-5
-126

query I rowsort
SELECT + - col0 * - + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT ALL - ( COUNT( * ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL - ( COUNT ( * ) ) FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT + SUM( DISTINCT - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7633
SELECT + SUM ( DISTINCT - col0 ) FROM tab2 AS cor0
----
-185

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7635
SELECT DISTINCT + col0 * + - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-7635
SELECT DISTINCT + col0 * + - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT 93 <= + col2 * + col0
----

query I rowsort
SELECT + 39 FROM tab2 WHERE NOT col0 < + col1
----
39

query I rowsort
SELECT col0 + col2 FROM tab1 WHERE NOT - 36 * + + 6 / ( + col2 * col1 ) NOT IN ( - ( 47 ) * 38 + - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 + + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7640
SELECT CAST( 99 AS SIGNED ) AS col0, col0 AS col0 FROM tab2
----
99
46
99
64
99
75

skipif mysql # not compatible
query II rowsort label-7640
SELECT CAST ( 99 AS INTEGER ) AS col0, col0 AS col0 FROM tab2
----
99
46
99
64
99
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT ( MIN( ALL col0 ) ) * + COUNT( * ) FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-7641
SELECT ( MIN ( ALL col0 ) ) * + COUNT ( * ) FROM tab1
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT ALL - COUNT( + col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7642
SELECT ALL - COUNT ( + col2 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT ( COUNT( - - col2 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7643
SELECT ( COUNT ( - - col2 ) ) FROM tab2
----
3

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT 56 * + col2, ( - + 89 ) + 20 AS col1 FROM tab0
----
2632
-69
5544
-69
560
-69

query III rowsort
SELECT * FROM tab0 WHERE 25 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT DISTINCT COUNT( * ) - - 69 AS col2 FROM tab2 WHERE NOT + - col2 / + col0 NOT IN ( + col0 * + 78 )
----
69

skipif mysql # not compatible
query I rowsort label-7647
SELECT DISTINCT COUNT ( * ) - - 69 AS col2 FROM tab2 WHERE NOT + - col2 / + col0 NOT IN ( + col0 * + 78 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7648
SELECT DISTINCT - ( COUNT( - 81 ) ) * 99 AS col0 FROM tab1 WHERE ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT - ( COUNT ( - 81 ) ) * 99 AS col0 FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT - COUNT( * ) + + 37 + COUNT( col2 ) FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-7649
SELECT - COUNT ( * ) + + 37 + COUNT ( col2 ) FROM tab0 AS cor0
----
37

query I rowsort
SELECT DISTINCT + - 46 * + 91 + col2 + - ( - col0 ) AS col1 FROM tab0 cor0
----
-3990
-4089
-4124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7651
SELECT 2 FROM tab2 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-7651
SELECT 2 FROM tab2 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - + col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7653
SELECT - ( + + col1 ) + col0 * - - CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-430
-4324
-728

skipif mysql # not compatible
query I rowsort label-7653
SELECT - ( + + col1 ) + col0 * - - CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-430
-4324
-728

query I rowsort
SELECT DISTINCT 42 + - 69 FROM tab1
----
-27

query I rowsort
SELECT + 91 + - + ( - col0 ) FROM tab1
----
142
176
182

query I rowsort
SELECT ALL + ( - + 18 ) FROM tab1 AS cor0
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT - COUNT( * ) - + 90 AS col2 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-7657
SELECT - COUNT ( * ) - + 90 AS col2 FROM tab2 AS cor0
----
-93

query I rowsort
SELECT ALL + - 39 + - 14 AS col1 FROM tab0 cor0
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT - 91 - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-7659
SELECT - 91 - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-88

query I rowsort
SELECT + 53 AS col2 FROM tab1 AS cor0 WHERE NULL >= col1 - + - 28
----

query I rowsort
SELECT DISTINCT - 81 + col2 * - 15 FROM tab2
----
-426
-681
-951

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7662
SELECT DISTINCT CAST( - 27 AS SIGNED ) * 38 - - col0 + - + 67 col0 FROM tab1
----
-1002
-1008
-1042

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7662
SELECT DISTINCT CAST ( - 27 AS INTEGER ) * 38 - - col0 + - + 67 col0 FROM tab1
----
-1002
-1008
-1042

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 + - + col0 col1 FROM tab1
----
-21
24
59

query II rowsort
SELECT DISTINCT 87 AS col1, - col1 AS col2 FROM tab0
----
87
-1
87
-21
87
-81

query I rowsort
SELECT ALL - 70 * + 35 / - col1 * col2 FROM tab0 WHERE NULL >= - + 11
----

query II rowsort
SELECT col0 AS col0, - col2 * - - col0 FROM tab2
----
46
-1058
64
-2560
75
-4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7667
SELECT ALL 61 * - COUNT( * ), + ( - CAST( NULL AS SIGNED ) ) / + CAST( 52 AS SIGNED ) * - 6 AS col0 FROM tab2
----
-183
NULL

skipif mysql # not compatible
query II rowsort label-7667
SELECT ALL 61 * - COUNT ( * ), + ( - CAST ( NULL AS INTEGER ) ) / + CAST ( 52 AS INTEGER ) * - 6 AS col0 FROM tab2
----
-183
NULL

query II rowsort
SELECT DISTINCT col2 AS col2, 72 FROM tab2
----
23
72
40
72
58
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col1, + col0 col0 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7670
SELECT ALL + COUNT( * ) AS col1, CAST( NULL AS SIGNED ) * - 37 AS col2 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7670
SELECT ALL + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) * - 37 AS col2 FROM tab1
----
3
NULL

query I rowsort
SELECT + - 13 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-13
-13
-13

query II rowsort
SELECT ALL col1, - 19 + ( + 76 ) AS col1 FROM tab0 cor0
----
1
57
21
57
81
57

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col2 * + ( + + 57 ) IS NOT NULL
----

query I rowsort
SELECT - 60 * - 19 + - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1043
1053
1125

query II rowsort
SELECT DISTINCT + ( + col2 ) AS col1, - ( col2 ) AS col1 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT ALL COUNT( DISTINCT + col1 ) * + COUNT( * ) FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-7676
SELECT ALL COUNT ( DISTINCT + col1 ) * + COUNT ( * ) FROM tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-7677
SELECT - + MIN( 26 ) AS col2, + COUNT( * ) col2 FROM tab0 AS cor0
----
-26
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7677
SELECT - + MIN ( 26 ) AS col2, + COUNT ( * ) col2 FROM tab0 AS cor0
----
-26
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7678
SELECT ( + 11 ) DIV col2 col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7678
SELECT ( + 11 ) / col2 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT - + 50 + - + SUM( + ( + col2 ) ) * - COUNT( + + col0 ) * + 35 + MIN( ( + ( + ( - col2 ) ) ) ) * 50 FROM tab1 AS cor0
----
18565

skipif mysql # not compatible
query I rowsort label-7679
SELECT - + 50 + - + SUM ( + ( + col2 ) ) * - COUNT ( + + col0 ) * + 35 + MIN ( ( + ( + ( - col2 ) ) ) ) * 50 FROM tab1 AS cor0
----
18565

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN NULL AND + + 71
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT + 62 + - + COUNT( * ) FROM tab2 cor0
----
59

skipif mysql # not compatible
query I rowsort label-7681
SELECT + 62 + - + COUNT ( * ) FROM tab2 cor0
----
59

query I rowsort
SELECT 13 * - - ( col0 ) FROM tab1 WHERE NOT NULL NOT IN ( + + col0 + - + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 8 * - col1 * - col2 * col0 - col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7685
SELECT col0 + col2 + + + col2 DIV 17 FROM tab2
----
106
136
70

skipif mysql # not compatible
query I rowsort label-7685
SELECT col0 + col2 + + + col2 / 17 FROM tab2
----
106
136
70

query III rowsort
SELECT * FROM tab0 WHERE ( col1 * col2 ) IN ( + 8 * - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7687
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 WHERE NOT CAST( col1 AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7687
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT CAST ( col1 AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7688
SELECT ALL - 46 DIV + 15 AS col1 FROM tab2
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-7688
SELECT ALL - 46 / + 15 AS col1 FROM tab2
----
-3
-3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7689
SELECT 18 DIV - col2 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7689
SELECT 18 / - col2 col1 FROM tab2
----
0
0
0

query II rowsort
SELECT col1 AS col2, - col1 FROM tab2
----
51
-51
67
-67
77
-77

query II rowsort
SELECT DISTINCT - - col2 + col0 + + - 50 AS col0, - col2 * + col0 AS col1 FROM tab1 AS cor0
----
109
-6188
94
-5015
97
-4896

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= ( - col1 + - + 71 )
----

query II rowsort
SELECT col0, 65 + - col2 FROM tab2 AS cor0
----
46
42
64
25
75
7

query I rowsort
SELECT ALL ( + - 15 ) + - col2 FROM tab0 AS cor0
----
-114
-25
-62

query I rowsort
SELECT DISTINCT - col0 + + 22 AS col2 FROM tab0 AS cor0
----
-65
-75
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 16 col1 FROM tab2 AS cor0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7697
SELECT ALL 14 + - COUNT( DISTINCT + 95 ), - MIN( ALL + CAST( - ( - ( - - ( - col1 ) ) ) AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
13
77

skipif mysql # not compatible
query II rowsort label-7697
SELECT ALL 14 + - COUNT ( DISTINCT + 95 ), - MIN ( ALL + CAST ( - ( - ( - - ( - col1 ) ) ) AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
13
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT DISTINCT + COUNT( * ) col1 FROM tab0 WHERE NOT col1 + - 67 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7698
SELECT DISTINCT + COUNT ( * ) col1 FROM tab0 WHERE NOT col1 + - 67 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT DISTINCT ( - 40 ) + + - MAX( col2 ) FROM tab1
----
-136

skipif mysql # not compatible
query I rowsort label-7699
SELECT DISTINCT ( - 40 ) + + - MAX ( col2 ) FROM tab1
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT ALL - ( - COUNT( * ) ) + + 84 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
93

skipif mysql # not compatible
query I rowsort label-7700
SELECT ALL - ( - COUNT ( * ) ) + + 84 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * + + col0 <> NULL
----

query I rowsort
SELECT - 64 + + ( - col2 ) * - - ( - - col1 ) FROM tab1 AS cor0
----
-1408
-3260
-359

query I rowsort
SELECT + - col0 + - - col2 AS col2 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # DIV for integer division: 
query I rowsort label-7704
SELECT + + col1 DIV col2 * - 98 col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7704
SELECT + + col1 / col2 * - 98 col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col1 AND + - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7706
SELECT ALL + + CAST( - - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7706
SELECT ALL + + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT ( + col0 + + ( - col1 ) ) IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - 99 FROM tab0 WHERE NOT 91 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE - + 63 * + col0 NOT IN ( - ( - 53 ) + - + col0 )
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT COUNT( ALL + + col1 ) * MIN( + - col0 ) AS col0 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-7710
SELECT COUNT ( ALL + + col1 ) * MIN ( + - col0 ) AS col0 FROM tab2
----
-225

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 BETWEEN col0 + 39 AND ( + - 96 )
----

query II rowsort
SELECT + 86, col0 FROM tab2
----
86
46
86
64
86
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT ALL - MAX( ALL + + ( + col2 ) ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-7713
SELECT ALL - MAX ( ALL + + ( + col2 ) ) AS col1 FROM tab0
----
-99

query II rowsort
SELECT - col0, ( 41 ) AS col1 FROM tab2 AS cor0
----
-46
41
-64
41
-75
41

query I rowsort
SELECT col1 * 83 AS col2 FROM tab1 AS cor0
----
1162
3901
415

query I rowsort
SELECT DISTINCT - col1 * - + 12 * - - 63 * - 79 FROM tab1 AS cor0
----
-2807028
-298620
-836136

query I rowsort
SELECT - col2 * + - ( 94 ) FROM tab1 AS cor0
----
5546
6392
9024

onlyif mysql # aggregate syntax: 
query II rowsort label-7718
SELECT DISTINCT - MAX( 48 ) AS col1, - ( - 57 ) FROM tab2
----
-48
57

skipif mysql # not compatible
query II rowsort label-7718
SELECT DISTINCT - MAX ( 48 ) AS col1, - ( - 57 ) FROM tab2
----
-48
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT ALL - + ( COUNT( * ) ) AS col0 FROM tab0 cor0 WHERE col0 / + + col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7719
SELECT ALL - + ( COUNT ( * ) ) AS col0 FROM tab0 cor0 WHERE col0 / + + col1 >= NULL
----
0

query I rowsort
SELECT DISTINCT + - col0 * - col0 + + + col0 * - col2 AS col0 FROM tab2 AS cor0
----
1058
1275
1536

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 + + - 61 * - + col0 * - 25 + 53 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT ( COUNT( * ) ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7722
SELECT ( COUNT ( * ) ) col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT DISTINCT COUNT( * ) + 87 AS col0 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-7723
SELECT DISTINCT COUNT ( * ) + 87 AS col0 FROM tab1 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT ALL 57 * COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL 57 * COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT ALL COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( 7 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7725
SELECT ALL COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( 7 )
----
0

query I rowsort
SELECT ALL - + col1 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - col1 * - - col2 AS col2, + col1 FROM tab1
----
-1344
14
-295
5
-3196
47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7728
SELECT col2 DIV + CAST( - 55 AS SIGNED ) AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7728
SELECT col2 / + CAST ( - 55 AS INTEGER ) AS col0 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL NOT IN ( - col1, col1 ) )
----

query I rowsort
SELECT DISTINCT col1 * + 95 AS col2 FROM tab2
----
4845
6365
7315

onlyif mysql # DIV for integer division: 
query I rowsort label-7731
SELECT col2 + + 3 + col0 * + ( - col0 ) + - col0 DIV 54 + + col0 FROM tab1
----
-2451
-7079
-8120

skipif mysql # not compatible
query I rowsort label-7731
SELECT col2 + + 3 + col0 * + ( - col0 ) + - col0 / 54 + + col0 FROM tab1
----
-2451
-7079
-8120

query I rowsort
SELECT + 44 + - ( + - col2 ) AS col1 FROM tab0
----
143
54
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 <= NULL
----

query I rowsort
SELECT + col1 + - 96 FROM tab0 cor0
----
-15
-75
-95

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - ( - + col0 ) + + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 18 AND - col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * + 45 IN ( + - col1 * + 44, - col1, - 51 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7739
SELECT + col2, + col1 FROM tab2 AS cor0 WHERE NOT - 36 / + - col0 + - 48 < ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query II rowsort label-7739
SELECT + col2, + col1 FROM tab2 AS cor0 WHERE NOT - 36 / + - col0 + - 48 < ( - CAST ( NULL AS REAL ) )
----

query II rowsort
SELECT ALL 68 AS col2, + col0 FROM tab1 cor0
----
68
51
68
85
68
91

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN col0 AND - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7742
SELECT col1 DIV + + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7742
SELECT col1 / + + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7743
SELECT ALL - COUNT( * ) AS col1, + ( 63 ) AS col2 FROM tab2 AS cor0
----
-3
63

skipif mysql # not compatible
query II rowsort label-7743
SELECT ALL - COUNT ( * ) AS col1, + ( 63 ) AS col2 FROM tab2 AS cor0
----
-3
63

query I rowsort
SELECT ALL + col2 * ( + + 6 ) FROM tab0 AS cor0
----
282
594
60

query III rowsort
SELECT * FROM tab2 WHERE NOT - 46 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7746
SELECT ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7746
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + + col1 ) AS col2 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT DISTINCT + SUM( ALL - ( + - 97 ) ) FROM tab2
----
291

skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT + SUM ( ALL - ( + - 97 ) ) FROM tab2
----
291

query I rowsort
SELECT - 17 FROM tab0 WHERE NOT + col1 > col0
----
-17
-17

query I rowsort
SELECT ALL - - col1 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7751
SELECT + CAST( 17 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

skipif mysql # not compatible
query I rowsort label-7751
SELECT + CAST ( 17 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT COUNT( * ) * + 34 FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-7752
SELECT COUNT ( * ) * + 34 FROM tab1
----
102

query I rowsort
SELECT + 53 AS col0 FROM tab2 WHERE NOT NULL > - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT - + MIN( DISTINCT - 41 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
41

skipif mysql # not compatible
query I rowsort label-7754
SELECT - + MIN ( DISTINCT - 41 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) + 14 + + col1 * - 43 col1 FROM tab0 AS cor0
----
-3422
-879
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7756
SELECT ALL - + col1 + + ( - + CAST( NULL AS SIGNED ) ) + + - 35 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL - + col1 + + ( - + CAST ( NULL AS INTEGER ) ) + + - 35 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 + - col1 * col2 col0 FROM tab2 AS cor0
----
-1081
-2952
-3736

query II rowsort
SELECT DISTINCT + col1 AS col2, - 89 AS col1 FROM tab2
----
51
-89
67
-89
77
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT DISTINCT - COUNT( col2 ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7760
SELECT DISTINCT - COUNT ( col2 ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT ALL + col1 * col0 * + col0 + col2 FROM tab2 AS cor0
----
107939
315432
376933

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) col2 FROM tab2 AS cor0 WHERE col1 + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7763
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT + 73 - + col0 AS col2 FROM tab1 AS cor0
----
-12
-18
22

query I rowsort
SELECT - + col0 * + col2 - - col1 * + - 86 + + col2 AS col0 FROM tab0 AS cor0
----
-2666
-7624
-9590

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7766
SELECT COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT DISTINCT ( - ( + COUNT( * ) ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7767
SELECT DISTINCT ( - ( + COUNT ( * ) ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT DISTINCT - MAX( DISTINCT 81 ) FROM tab1 AS cor0 WHERE NOT + col2 * + 37 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7768
SELECT DISTINCT - MAX ( DISTINCT 81 ) FROM tab1 AS cor0 WHERE NOT + col2 * + 37 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) * - col1 * + 28 * - ( - + col0 ) col0 FROM tab1 AS cor0
----
-1011500
-1019592
-10897796

onlyif mysql # aggregate syntax: 
query II rowsort label-7770
SELECT DISTINCT + 72 * - - 38 col2, MIN( DISTINCT + 19 ) FROM tab2 AS cor0
----
2736
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7770
SELECT DISTINCT + 72 * - - 38 col2, MIN ( DISTINCT + 19 ) FROM tab2 AS cor0
----
2736
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT ALL MIN( DISTINCT + col0 ) * 1 AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7771
SELECT ALL MIN ( DISTINCT + col0 ) * 1 AS col1 FROM tab2 AS cor0
----
46

query II rowsort
SELECT 13, ( + col0 ) FROM tab0
----
13
15
13
87
13
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7773
SELECT CAST( - ( + COUNT( * ) ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7773
SELECT CAST ( - ( + COUNT ( * ) ) AS INTEGER ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NULL IN ( ( - col0 ), col1, 41 + col2 + col2, + col2 * col0, 39 )
----
0

skipif mysql # not compatible
query I rowsort label-7774
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IN ( ( - col0 ), col1, 41 + col2 + col2, + col2 * col0, 39 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7775
SELECT + COUNT( * ) AS col1, - MAX( DISTINCT + + 50 ) AS col1 FROM tab0 cor0
----
3
-50

skipif mysql # not compatible
query II rowsort label-7775
SELECT + COUNT ( * ) AS col1, - MAX ( DISTINCT + + 50 ) AS col1 FROM tab0 cor0
----
3
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, 10 * + 82 AS col0 FROM tab2 AS cor0
----
46
820
64
820
75
820

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
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-7777
SELECT ALL + COUNT ( * ) col0 FROM tab2 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < - col1
----

query I rowsort
SELECT ALL col1 * 55 AS col0 FROM tab0
----
1155
4455
55

query II rowsort
SELECT + col1 AS col2, + ( - - col2 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT ALL + - MAX( - - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7781
SELECT ALL + - MAX ( - - col0 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT - ( + col0 ) + + col1 + ( + + col2 ) - - 85 AS col1 FROM tab0 AS cor0
----
198
29
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7783
SELECT ALL + - CAST( NULL AS SIGNED ) + - 92 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7783
SELECT ALL + - CAST ( NULL AS INTEGER ) + - 92 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7784
SELECT DISTINCT - 44 DIV - col2, - ( - 14 ) AS col2 FROM tab2 AS cor0 WHERE + ( 94 ) NOT IN ( + + col0 * - col2 )
----
0
14
1
14

skipif mysql # not compatible
query II rowsort label-7784
SELECT DISTINCT - 44 / - col2, - ( - 14 ) AS col2 FROM tab2 AS cor0 WHERE + ( 94 ) NOT IN ( + + col0 * - col2 )
----
0
14
1
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7785
SELECT ALL + col1 - - - col2 DIV - - 96 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL + col1 - - - col2 / - - 96 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

query I rowsort
SELECT + col2 + + + col0 + - col0 AS col0 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT + 37 + COUNT( * ) AS col2 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-7787
SELECT + 37 + COUNT ( * ) AS col2 FROM tab1
----
40

query I rowsort
SELECT ALL - col1 * 69 FROM tab1
----
-3243
-345
-966

query I rowsort
SELECT DISTINCT - col2 + + - ( 92 ) AS col0 FROM tab2 AS cor0
----
-115
-132
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT DISTINCT + + 15 + - COUNT( + col1 ) * - 22 FROM tab2 AS cor0 WHERE NOT + col2 + + col1 + + col2 * + 67 >= NULL
----
15

skipif mysql # not compatible
query I rowsort label-7790
SELECT DISTINCT + + 15 + - COUNT ( + col1 ) * - 22 FROM tab2 AS cor0 WHERE NOT + col2 + + col1 + + col2 * + 67 >= NULL
----
15

query I rowsort
SELECT ALL 66 + + 4 FROM tab1 AS cor0
----
70
70
70

query I rowsort
SELECT ALL + ( 9 ) * + + 87 AS col0 FROM tab0
----
783
783
783

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7793
SELECT ALL - CAST( 44 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL - CAST ( 44 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT - + MAX( - + col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7794
SELECT - + MAX ( - + col0 ) AS col2 FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL + col1 * - col0 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * + ( col1 ) + + 64 + col1 * + + col1 IS NOT NULL
----

query I rowsort
SELECT + 62 AS col0 FROM tab0 cor0
----
62
62
62

query I rowsort
SELECT DISTINCT + + ( - - col1 ) AS col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7798
SELECT - 88 DIV + 95 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7798
SELECT - 88 / + 95 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 col2 FROM tab0
----
55
55
55

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= - 97 / 5 * + + col1
----

query I rowsort
SELECT - col1 * - - col1 AS col2 FROM tab0
----
-1
-441
-6561

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7803
SELECT + COUNT( - CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7803
SELECT + COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 * - 14 / 3 + + 43 IS NOT NULL
----

query II rowsort
SELECT + ( + - 75 ), - ( - - ( - 8 ) ) AS col0 FROM tab0 AS cor0
----
-75
8
-75
8
-75
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7806
SELECT ALL - COUNT( * ) * MIN( ALL + - col2 ) AS col2, 9 DIV - 7 FROM tab2 AS cor0
----
174
-1

skipif mysql # not compatible
query II rowsort label-7806
SELECT ALL - COUNT ( * ) * MIN ( ALL + - col2 ) AS col2, 9 / - 7 FROM tab2 AS cor0
----
174
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT - COUNT( * ) * + COUNT( * ) * 28 AS col0 FROM tab0 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-7807
SELECT - COUNT ( * ) * + COUNT ( * ) * 28 AS col0 FROM tab0 AS cor0
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT DISTINCT + 51 + + 22 + - + COUNT( * ) * - - COUNT( * ) FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-7808
SELECT DISTINCT + 51 + + 22 + - + COUNT ( * ) * - - COUNT ( * ) FROM tab2 AS cor0
----
64

query III rowsort
SELECT * FROM tab1 WHERE + 54 <> NULL
----

query I rowsort
SELECT - 94 AS col2 FROM tab0 WHERE + 28 IS NULL
----

query I rowsort
SELECT col1 * + col2 + - 24 + + + col0 + col0 AS col2 FROM tab0 AS cor0
----
269
360
3813

query II rowsort
SELECT ALL col1, + 96 + col0 * - col2 FROM tab0 AS cor0
----
1
-9507
21
-774
81
-609

query I rowsort
SELECT DISTINCT + col0 + - + col0 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT + - COUNT( * ) + - + 78 AS col0 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7814
SELECT + - COUNT ( * ) + - + 78 AS col0 FROM tab1 AS cor0
----
-81

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7816
SELECT DISTINCT + 49 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( CAST( + 59 AS DECIMAL ) * + col0 + + + col1 ) AND - 54
----

skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT + 49 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( CAST ( + 59 AS REAL ) * + col0 + + + col1 ) AND - 54
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 < - col0 * - col1 * 16
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7818
SELECT DISTINCT + COUNT( * ) * - - MAX( - col1 ) - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7818
SELECT DISTINCT + COUNT ( * ) * - - MAX ( - col1 ) - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + col2 + col1 * - col1 AS col1, col2 FROM tab1 AS cor0
----
-100
96
-2141
68
34
59

query I rowsort
SELECT DISTINCT - - 29 AS col2 FROM tab2 WHERE + 36 IS NOT NULL
----
29

query I rowsort
SELECT + ( + 35 ) AS col0 FROM tab0
----
35
35
35

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT ( + col0 + - - 12 + + 48 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT DISTINCT 66 - + COUNT( * ) col2 FROM tab0
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7823
SELECT DISTINCT 66 - + COUNT ( * ) col2 FROM tab0
----
63

query III rowsort
SELECT * FROM tab1 WHERE + + 66 * + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL >= + 65 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT ALL MIN( DISTINCT + 88 ) - - - COUNT( * ) AS col1 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-7826
SELECT ALL MIN ( DISTINCT + 88 ) - - - COUNT ( * ) AS col1 FROM tab2
----
85

query I rowsort
SELECT + 99 FROM tab1 WHERE ( NOT ( NOT - col1 NOT IN ( + - col0, 74, - col0 ) ) )
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT ( COUNT( * ) ) - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7828
SELECT ( COUNT ( * ) ) - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 >= NULL
----

query I rowsort
SELECT ALL + col1 * 3 FROM tab0
----
243
3
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT + MAX( ALL - - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7831
SELECT + MAX ( ALL - - col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-7832
SELECT ALL - 84 AS col2, + COUNT( * ) FROM tab2 AS cor0
----
-84
3

skipif mysql # not compatible
query II rowsort label-7832
SELECT ALL - 84 AS col2, + COUNT ( * ) FROM tab2 AS cor0
----
-84
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT - - MAX( DISTINCT col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7833
SELECT - - MAX ( DISTINCT col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT + + MAX( 68 ) FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-7834
SELECT + + MAX ( 68 ) FROM tab1 AS cor0
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + col2 ) * + col0 col1 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7836
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) * COUNT( * ) + - + SUM( ALL - - 73 ) AS col0, + 22 FROM tab0 AS cor0
----
NULL
22

skipif mysql # not compatible
query II rowsort label-7836
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) * COUNT ( * ) + - + SUM ( ALL - - 73 ) AS col0, + 22 FROM tab0 AS cor0
----
NULL
22

query I rowsort
SELECT DISTINCT + + 10 * + + col0 AS col1 FROM tab0 AS cor0
----
150
870
970

query I rowsort
SELECT - col2 * - ( + 38 ) AS col1 FROM tab1 AS cor0
----
2242
2584
3648

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT ALL - COUNT( * ) * 56 AS col2 FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-7839
SELECT ALL - COUNT ( * ) * 56 AS col2 FROM tab2 AS cor0
----
-168

query I rowsort
SELECT col1 * - col1 * - col0 * - col1 AS col2 FROM tab1
----
-10625
-139944
-9447893

query I rowsort
SELECT DISTINCT + col2 * 36 * + col2 FROM tab1
----
125316
166464
331776

query II rowsort
SELECT + col0, col0 AS col0 FROM tab2
----
46
46
64
64
75
75

query II rowsort
SELECT DISTINCT - 32 AS col2, + col0 - - col2 FROM tab2
----
-32
104
-32
133
-32
69

query I rowsort
SELECT - col0 * col1 * - col2 * + - col0 AS col1 FROM tab1
----
-2131375
-26466076
-3495744

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT ALL - SUM( DISTINCT - col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL - SUM ( DISTINCT - col0 ) AS col1 FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT DISTINCT ( + + COUNT( * ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7846
SELECT DISTINCT ( + + COUNT ( * ) ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7847
SELECT - CAST( + MIN( - col2 ) AS SIGNED ) col0 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7847
SELECT - CAST ( + MIN ( - col2 ) AS INTEGER ) col0 FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7848
SELECT ALL * FROM tab0 WHERE + col1 <> col0 / - col2 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7848
SELECT ALL * FROM tab0 WHERE + col1 <> col0 / - col2 + + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 col1 FROM tab0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT COUNT( + col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7850
SELECT COUNT ( + col0 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT - COUNT( DISTINCT ( + 15 ) ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7851
SELECT - COUNT ( DISTINCT ( + 15 ) ) AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT col2 + - + 37 FROM tab2 AS cor0
----
-14
21
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 col2 FROM tab2 WHERE + col2 - - col2 BETWEEN NULL AND ( + 56 - ( + 94 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT ALL MAX( DISTINCT + col2 ) col0 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7854
SELECT ALL MAX ( DISTINCT + col2 ) col0 FROM tab0
----
99

query I rowsort
SELECT ALL - + 64 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7856
SELECT DISTINCT 57 * col2 AS col2, CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
1311
NULL
2280
NULL
3306
NULL

skipif mysql # not compatible
query II rowsort label-7856
SELECT DISTINCT 57 * col2 AS col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
1311
NULL
2280
NULL
3306
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7857
SELECT - + CAST( - ( - col1 ) AS SIGNED ) * col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-7857
SELECT - + CAST ( - ( - col1 ) AS INTEGER ) * col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 + + - ( - col1 ) + + 61 IN ( + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 4 + col0 > - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 - - col0, + 87 + + 40 + + + col1 col2 FROM tab1 AS cor0
----
144
132
147
141
159
174

query I rowsort
SELECT - 61 - 39 AS col1 FROM tab0 AS cor0
----
-100
-100
-100

query III rowsort
SELECT * FROM tab1 WHERE - - 37 IS NULL
----

query I rowsort
SELECT - ( - col0 ) * 84 + - - ( col2 ) FROM tab0
----
1307
7318
8247

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT ALL COUNT( * ) * - SUM( - + ( col0 ) ) - ( - MIN( + col1 ) ) AS col1 FROM tab2
----
606

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL COUNT ( * ) * - SUM ( - + ( col0 ) ) - ( - MIN ( + col1 ) ) AS col1 FROM tab2
----
606

query I rowsort
SELECT + + col0 FROM tab2 WHERE - + 24 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT DISTINCT - ( MIN( ALL col1 ) ) - MAX( ALL - col1 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7866
SELECT DISTINCT - ( MIN ( ALL col1 ) ) - MAX ( ALL - col1 ) AS col1 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7867
SELECT col0 + col1 DIV ( col1 ) FROM tab1
----
52
86
92

skipif mysql # not compatible
query I rowsort label-7867
SELECT col0 + col1 / ( col1 ) FROM tab1
----
52
86
92

query II rowsort
SELECT ALL + col1 AS col2, col0 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query II rowsort label-7869
SELECT DISTINCT - + 82 - - MAX( + col1 ) AS col2, 27 col0 FROM tab2 WHERE NOT - col1 > - 27 * - col2
----
-5
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7869
SELECT DISTINCT - + 82 - - MAX ( + col1 ) AS col2, 27 col0 FROM tab2 WHERE NOT - col1 > - 27 * - col2
----
-5
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, col2 col0 FROM tab2
----
51
23
67
58
77
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * 9 * col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT + ( ( + - COUNT( * ) ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7872
SELECT + ( ( + - COUNT ( * ) ) ) AS col1 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT - 87 AS col1, 52 AS col1 FROM tab2 AS cor0
----
-87
52
-87
52
-87
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT + SUM( - col1 ) col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7874
SELECT + SUM ( - col1 ) col0 FROM tab1 AS cor0
----
-66

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT ALL - - ( MIN( DISTINCT - - col2 ) ) * 34 AS col2 FROM tab2 AS cor0
----
782

skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL - - ( MIN ( DISTINCT - - col2 ) ) * 34 AS col2 FROM tab2 AS cor0
----
782

query I rowsort
SELECT ALL ( col2 ) + - + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7878
SELECT + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT col2 + col1 * - + CAST( + - col0 AS SIGNED ) IS NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7878
SELECT + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT col2 + col1 * - + CAST ( + - col0 AS INTEGER ) IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT - MAX( + 56 ) AS col2 FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-7879
SELECT - MAX ( + 56 ) AS col2 FROM tab0 AS cor0
----
-56

query I rowsort
SELECT DISTINCT - 13 AS col1 FROM tab0 AS cor0
----
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 94 col2, ( + ( + - col0 ) ) AS col2 FROM tab0 WHERE NOT ( 36 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col1 * + - col0 AS col1 FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 IS NOT NULL )
----

query I rowsort
SELECT ALL - col0 * + + col2 AS col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT ( - + col2 ) * 46 AS col1 FROM tab2
----
-1058
-1840
-2668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7886
SELECT DISTINCT + CAST( - col0 AS SIGNED ) * + 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-7886
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) * + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL col2 * + 12 FROM tab2
----
276
480
696

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - col2 AND ( - 39 - 41 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7889
SELECT DISTINCT + - col0 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7889
SELECT DISTINCT + - col0 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT COUNT( - ( + col0 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7890
SELECT COUNT ( - ( + col0 ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= col2
----

query II rowsort
SELECT DISTINCT + col1, + col0 AS col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT DISTINCT MIN( DISTINCT + - 67 ) - - 24 col2 FROM tab0
----
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7893
SELECT DISTINCT MIN ( DISTINCT + - 67 ) - - 24 col2 FROM tab0
----
-43

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT DISTINCT col1 + - col0 + + col1 * + 17 AS col1 FROM tab2
----
1131
1322
872

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT - COUNT( * ) + - + 87 AS col2 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-7896
SELECT - COUNT ( * ) + - + 87 AS col2 FROM tab2 AS cor0
----
-90

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7898
SELECT DISTINCT - 87, - COUNT( * ) + - 40 + - + 19 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-87
NULL

skipif mysql # not compatible
query II rowsort label-7898
SELECT DISTINCT - 87, - COUNT ( * ) + - 40 + - + 19 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-87
NULL

query I rowsort
SELECT - col2 + 20 + + - 20 + ( - - col2 ) AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT ALL MAX( 80 ) col0 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7900
SELECT ALL MAX ( 80 ) col0 FROM tab1 AS cor0
----
80

query I rowsort
SELECT ALL - 28 * col1 + + 56 AS col1 FROM tab1 AS cor0
----
-1260
-336
-84

query I rowsort
SELECT DISTINCT - 1 + - 17 - - col0 * + 6 AS col0 FROM tab0 AS cor0
----
504
564
72

query II rowsort
SELECT + - 3 AS col0, 91 AS col2 FROM tab2 AS cor0
----
-3
91
-3
91
-3
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7904
SELECT col1 DIV + 80 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-7904
SELECT col1 / + 80 col0 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT ALL + 62 + + col2, + col2 + + 93 AS col1 FROM tab2 AS cor0
----
102
133
120
151
85
116

query I rowsort
SELECT + 64 * - col0 AS col2 FROM tab2 AS cor0 WHERE + 32 / - col1 IS NOT NULL
----
-2944
-4096
-4800

onlyif mysql # aggregate syntax: 
query II rowsort label-7907
SELECT DISTINCT - + 56 - 45 AS col0, COUNT( * ) FROM tab1 AS cor0
----
-101
3

skipif mysql # not compatible
query II rowsort label-7907
SELECT DISTINCT - + 56 - 45 AS col0, COUNT ( * ) FROM tab1 AS cor0
----
-101
3

query I rowsort
SELECT DISTINCT 61 + - col2 FROM tab1
----
-35
-7
2

query I rowsort
SELECT + + 60 AS col0 FROM tab0 WHERE NULL >= + 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT + COUNT( * ) * - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-7910
SELECT + COUNT ( * ) * - COUNT ( * ) FROM tab2
----
-9

query I rowsort
SELECT - ( col1 ) * + 50 AS col2 FROM tab2
----
-2550
-3350
-3850

query I rowsort
SELECT ALL + 77 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT DISTINCT + MAX( ALL - - col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7913
SELECT DISTINCT + MAX ( ALL - - col0 ) AS col0 FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL - + 79 AS col0 FROM tab0 cor0
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT - COUNT( * ) * + COUNT( col2 ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-7915
SELECT - COUNT ( * ) * + COUNT ( col2 ) AS col1 FROM tab2
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT NULL NOT BETWEEN - 70 AND - + 85 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT DISTINCT + COUNT( - 31 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7917
SELECT DISTINCT + COUNT ( - 31 ) AS col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL - - col1 AS col1, col1 AS col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 49 IS NOT NULL
----

query II rowsort
SELECT + 9, ( + + 30 ) + + - col0 * - col1 AS col0 FROM tab0 AS cor0
----
9
1245
9
127
9
1857

query I rowsort
SELECT DISTINCT + ( - 53 ) FROM tab1 AS cor0
----
-53

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 85 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT 73 * COUNT( * ) FROM tab0
----
219

skipif mysql # not compatible
query I rowsort label-7923
SELECT 73 * COUNT ( * ) FROM tab0
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT - ( COUNT( * ) ) * - COUNT( * ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-7924
SELECT - ( COUNT ( * ) ) * - COUNT ( * ) AS col2 FROM tab1
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE + 49 NOT BETWEEN NULL AND 93
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 <> col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7927
SELECT - ( - CAST( + - MIN( - + CAST( + - 97 AS DECIMAL ) ) AS SIGNED ) ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-7927
SELECT - ( - CAST ( + - MIN ( - + CAST ( + - 97 AS REAL ) ) AS INTEGER ) ) FROM tab0
----
-97

query I rowsort
SELECT - 78 + + + col1 FROM tab1
----
-31
-64
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT ALL + + COUNT( * ) + - 91 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL + + COUNT ( * ) + - 91 FROM tab1 AS cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT DISTINCT COUNT( * ) * - - 84 FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT COUNT ( * ) * - - 84 FROM tab1 AS cor0
----
252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 79 + - 82 col0 FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT DISTINCT + col1 + 44 AS col2 FROM tab0 AS cor0
----
125
45
65

query II rowsort
SELECT DISTINCT + + col0 * - 28 AS col2, + 61 * - + ( 39 ) - col0 AS col1 FROM tab2 AS cor0
----
-1288
-2425
-1792
-2443
-2100
-2454

query I rowsort
SELECT ( col1 ) * + + 13 AS col0 FROM tab2
----
1001
663
871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7935
SELECT ALL + + 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-7935
SELECT ALL + + 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 I rowsort label-7936
SELECT DISTINCT - SUM( ALL ( col0 ) ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-7936
SELECT DISTINCT - SUM ( ALL ( col0 ) ) AS col0 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT DISTINCT + + 62 + - 80 AS col0 FROM tab2 AS cor0
----
-18

query I rowsort
SELECT 75 - col0 AS col0 FROM tab2 AS cor0
----
0
11
29

query I rowsort
SELECT ALL + col1 + + - 17 AS col0 FROM tab1 AS cor0
----
-12
-3
30

query I rowsort
SELECT DISTINCT - + 12 + - AVG ( col0 ) AS col0 FROM tab0 AS cor0 WHERE col0 = + col2 * - 14
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7941
SELECT ALL CAST( + + 2 AS SIGNED ) * + col0 FROM tab2
----
128
150
92

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL CAST ( + + 2 AS INTEGER ) * + col0 FROM tab2
----
128
150
92

query I rowsort
SELECT - col2 * 92 AS col0 FROM tab0
----
-4324
-9108
-920

query II rowsort
SELECT ALL - col2 AS col0, ( + col2 ) AS col0 FROM tab0
----
-10
10
-47
47
-99
99

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col1 <= NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( + ( + col2 ) / + ( + col0 ) IS NULL ) )
----

query II rowsort
SELECT col2, - col1 AS col1 FROM tab2 cor0
----
23
-51
40
-77
58
-67

query I rowsort
SELECT DISTINCT + ( 54 ) FROM tab1 AS cor0
----
54

query I rowsort
SELECT ALL + + col1 * 32 FROM tab1 AS cor0
----
1504
160
448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7949
SELECT ALL - CAST( - col2 AS SIGNED ) * + 94 * - 66 AS col0 FROM tab1
----
-366036
-421872
-595584

skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL - CAST ( - col2 AS INTEGER ) * + 94 * - 66 AS col0 FROM tab1
----
-366036
-421872
-595584

query I rowsort
SELECT DISTINCT + ( + 70 ) AS col1 FROM tab0
----
70

query I rowsort
SELECT ( - + col1 ) + - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-102
-134
-154

query I rowsort
SELECT ALL + 90 + - col1 + - + col1 FROM tab1 AS cor0
----
-4
62
80

query I rowsort
SELECT + - 1 * + - col2 + - col2 + col0 + col2 FROM tab0 cor0
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7954
SELECT ALL + - 28 + + - col1 * + col2 * + CAST( NULL AS SIGNED ) + - col0 + - + 66 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL + - 28 + + - col1 * + col2 * + CAST ( NULL AS INTEGER ) + - col0 + - + 66 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7955
SELECT DISTINCT COUNT( - col0 ) + + CAST( + MIN( - col1 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-7955
SELECT DISTINCT COUNT ( - col0 ) + + CAST ( + MIN ( - col1 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-78

query I rowsort
SELECT - - 21 + - 57 + + col0 FROM tab1 AS cor0
----
15
49
55

query I rowsort
SELECT - + col1 * + col0 * - 35 + col2 AS col0 FROM tab0 AS cor0
----
3494
42572
63955

query I rowsort
SELECT ALL + 2 + 39 AS col2 FROM tab2 AS cor0
----
41
41
41

query I rowsort
SELECT - col2 + + 67 AS col0 FROM tab2
----
27
44
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT ALL COUNT( * ) * 50 AS col2 FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL COUNT ( * ) * 50 AS col2 FROM tab0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT + + COUNT( ALL + - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7961
SELECT + + COUNT ( ALL + - col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT ALL + 71 + + COUNT( * ) col1 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7962
SELECT ALL + 71 + + COUNT ( * ) col1 FROM tab1 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT + 42 - - 80 * + - COUNT( * ) FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-7963
SELECT + 42 - - 80 * + - COUNT ( * ) FROM tab1 AS cor0
----
-198

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL IS NULL )
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT COUNT( * ) + - 37 AS col2 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-7965
SELECT COUNT ( * ) + - 37 AS col2 FROM tab0
----
-34

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT ALL 88 * + + ( - - ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
2024
3520
5104

query I rowsort
SELECT - 14 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0 * + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7969
SELECT - col1 DIV col2 * + col0 FROM tab0
----
-15
-174
0

skipif mysql # not compatible
query I rowsort label-7969
SELECT - col1 / col2 * + col0 FROM tab0
----
-15
-174
0

query I rowsort
SELECT DISTINCT + 10 * + 16 FROM tab1
----
160

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7971
SELECT ALL * FROM tab2 WHERE + col0 + - - CAST( + col0 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-7971
SELECT ALL * FROM tab2 WHERE + col0 + - - CAST ( + col0 AS INTEGER ) = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT DISTINCT 80 * + - COUNT( * ) FROM tab2
----
-240

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT 80 * + - COUNT ( * ) FROM tab2
----
-240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + 95 ) * 55 AS col1, - col1 col1 FROM tab1
----
-5225
-14
-5225
-47
-5225
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7975
SELECT ALL - CAST( NULL AS SIGNED ) * + - COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7975
SELECT ALL - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT MIN( - col1 ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7976
SELECT MIN ( - col1 ) AS col1 FROM tab0
----
-81

query I rowsort
SELECT - - 43 FROM tab0 AS cor0 WHERE NOT 85 IS NULL
----
43
43
43

onlyif mysql # aggregate syntax: 
query II rowsort label-7978
SELECT + - COUNT( * ) AS col0, + 0 * + MIN( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-7978
SELECT + - COUNT ( * ) AS col0, + 0 * + MIN ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT ALL - 13 * - - COUNT( * ) AS col2 FROM tab0 cor0
----
-39

skipif mysql # not compatible
query I rowsort label-7979
SELECT ALL - 13 * - - COUNT ( * ) AS col2 FROM tab0 cor0
----
-39

query I rowsort
SELECT DISTINCT - + 60 * + col1 FROM tab2 cor0
----
-3060
-4020
-4620

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT - - SUM( ALL 79 ) FROM tab0 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-7981
SELECT - - SUM ( ALL 79 ) FROM tab0 AS cor0
----
237

query II rowsort
SELECT - col0 AS col0, + col0 AS col2 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT ALL + MIN( 25 ) + + 64 FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL + MIN ( 25 ) + + 64 FROM tab2 AS cor0
----
89

query I rowsort
SELECT ALL col0 * - - col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT ALL - SUM( + col2 ) + + 15 AS col2 FROM tab1 cor0
----
-208

skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL - SUM ( + col2 ) + + 15 AS col2 FROM tab1 cor0
----
-208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 25 col2, - 13 AS col1 FROM tab0 AS cor0
----
-25
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7987
SELECT DISTINCT - - 53 + + + 71 + + + COUNT( * ) * - ( 34 ) FROM tab2 WHERE NOT - 94 * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) < NULL
----
124

skipif mysql # not compatible
query I rowsort label-7987
SELECT DISTINCT - - 53 + + + 71 + + + COUNT ( * ) * - ( 34 ) FROM tab2 WHERE NOT - 94 * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) < NULL
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7988
SELECT * FROM tab2 WHERE - col0 + + CAST( + col2 AS SIGNED ) * - - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7988
SELECT * FROM tab2 WHERE - col0 + + CAST ( + col2 AS INTEGER ) * - - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7989
SELECT - CAST( NULL AS SIGNED ) * + - col2 + + 92 + - 17 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7989
SELECT - CAST ( NULL AS INTEGER ) * + - col2 + + 92 + - 17 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 IN ( col2, - 44 + + - ( - 28 ), + + 0 - col1, - col0 * - + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 92 + + 55 AS col0 FROM tab0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT DISTINCT + + col1 + + - 18 - - + col2 * 13 FROM tab0 AS cor0
----
1270
133
674

query I rowsort
SELECT ALL - - 18 AS col1 FROM tab1 AS cor0
----
18
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7994
SELECT ALL 51 * + ( + 66 ) - - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL 51 * + ( + 66 ) - - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT 11, 9 AS col2 FROM tab2
----
11
9
11
9
11
9

query I rowsort
SELECT ALL 86 AS col1 FROM tab0 WHERE + + col2 IS NOT NULL
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT ALL - ( - + COUNT( * ) ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL - ( - + COUNT ( * ) ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col0 * col1 + + - col2 FROM tab1 cor0
----
-4345
-484
-810

query I rowsort
SELECT ALL - ( - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT 92 + + 13 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT DISTINCT COUNT( * ) * - COUNT( * ) col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8001
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) col2 FROM tab0 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8002
SELECT + col2 DIV - - 2 AS col2 FROM tab1 AS cor0
----
29
34
48

skipif mysql # not compatible
query I rowsort label-8002
SELECT + col2 / - - 2 AS col2 FROM tab1 AS cor0
----
29
34
48

onlyif mysql # aggregate syntax: 
query II rowsort label-8003
SELECT - COUNT( * ), + 59 + - 84 AS col0 FROM tab2 AS cor0
----
-3
-25

skipif mysql # not compatible
query II rowsort label-8003
SELECT - COUNT ( * ), + 59 + - 84 AS col0 FROM tab2 AS cor0
----
-3
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT MIN( DISTINCT 25 ) FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-8004
SELECT MIN ( DISTINCT 25 ) FROM tab0
----
25

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 NOT BETWEEN NULL AND - - col2 + + - 2
----

query II rowsort
SELECT ALL + col0 * - 16 AS col1, - col2 * - col2 AS col2 FROM tab1
----
-1360
3481
-1456
4624
-816
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT COUNT( * ) * + 80 * COUNT( DISTINCT col2 ) AS col2 FROM tab0
----
720

skipif mysql # not compatible
query I rowsort label-8007
SELECT COUNT ( * ) * + 80 * COUNT ( DISTINCT col2 ) AS col2 FROM tab0
----
720

query II rowsort
SELECT ALL col2 * col1, - col1 - + + 82 AS col0 FROM tab1
----
1344
-96
295
-87
3196
-129

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT ALL - ( + COUNT( DISTINCT 78 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-8011
SELECT ALL - ( + COUNT ( DISTINCT 78 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT DISTINCT - MAX( ALL + - col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8012
SELECT DISTINCT - MAX ( ALL + - col0 ) FROM tab2
----
46

query II rowsort
SELECT DISTINCT 99, - 10 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT ALL MIN( + + 53 ) FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL MIN ( + + 53 ) FROM tab1
----
53

query I rowsort
SELECT DISTINCT 58 * 12 * - + 98 + - col2 FROM tab2 cor0
----
-68231
-68248
-68266

query I rowsort
SELECT + col0 + 40 * - + col1 FROM tab2 AS cor0
----
-1994
-2605
-3016

query I rowsort
SELECT + col2 * - 52 + + 63 AS col1 FROM tab1 AS cor0
----
-3005
-3473
-4929

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT DISTINCT + SUM( - 46 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT + SUM ( - 46 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8019
SELECT DISTINCT CAST( - + col2 AS SIGNED ) + - col1 AS col2 FROM tab2 AS cor0
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-8019
SELECT DISTINCT CAST ( - + col2 AS INTEGER ) + - col1 AS col2 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT ALL - COUNT( * ) + - 67 AS col1 FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL - COUNT ( * ) + - 67 AS col1 FROM tab2 AS cor0
----
-70

query I rowsort
SELECT + ( + col0 ) + - - col1 AS col1 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT + - 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-8022
SELECT + - COUNT ( * ) + COUNT ( * ) col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + 86 + + 26 + - col0 * - col0 FROM tab2 cor0
----
2056
4036
5565

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT + 88 * - - col0 + - col2 AS col2 FROM tab0 AS cor0
----
1273
7646
8437

query I rowsort
SELECT - col1 + - + col1 AS col2 FROM tab2 AS cor0
----
-102
-134
-154

query II rowsort
SELECT DISTINCT + col0 * - ( 75 ) + - 5, col1 FROM tab1
----
-3830
14
-6380
5
-6830
47

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 56 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col1, + col0 - + + col2 AS col0 FROM tab2
----
51
23
67
17
77
24

query I rowsort
SELECT ALL - 49 - + col0 AS col0 FROM tab2
----
-113
-124
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT DISTINCT SUM( - ( + - col1 ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8031
SELECT DISTINCT SUM ( - ( + - col1 ) ) FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT - MAX( + 53 ) FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-8032
SELECT - MAX ( + 53 ) FROM tab1
----
-53

query II rowsort
SELECT col2, + 85 + - - 98 FROM tab0
----
10
183
47
183
99
183

onlyif mysql # aggregate syntax: 
query II rowsort label-8034
SELECT ALL - + 31 + + COUNT( * ) AS col2, 23 FROM tab1 AS cor0
----
-28
23

skipif mysql # not compatible
query II rowsort label-8034
SELECT ALL - + 31 + + COUNT ( * ) AS col2, 23 FROM tab1 AS cor0
----
-28
23

query I rowsort
SELECT + col0 - + 21 FROM tab1 AS cor0
----
30
64
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT DISTINCT MIN( ALL - 7 ) AS col2 FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-8036
SELECT DISTINCT MIN ( ALL - 7 ) AS col2 FROM tab2 AS cor0
----
-7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 49 * 34 < + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT COUNT( * ) - 82 AS col0 FROM tab2 cor0
----
-79

skipif mysql # not compatible
query I rowsort label-8038
SELECT COUNT ( * ) - 82 AS col0 FROM tab2 cor0
----
-79

query I rowsort
SELECT col0 * + - col2 + - - 18 AS col2 FROM tab2 AS cor0
----
-1040
-2542
-4332

query I rowsort
SELECT col0 * 85 + - col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1228
7385
8146

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8041
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT ALL - COUNT( + 93 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8042
SELECT ALL - COUNT ( + 93 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT ( SUM( ALL - col2 ) ) AS col2 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8043
SELECT ( SUM ( ALL - col2 ) ) AS col2 FROM tab0 cor0
----
-156

query I rowsort
SELECT DISTINCT + - 26 AS col2 FROM tab0 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT - SUM( ALL - - ( + - 33 ) ) * + - MAX( + col1 ) FROM tab2 AS cor0
----
-7623

skipif mysql # not compatible
query I rowsort label-8045
SELECT - SUM ( ALL - - ( + - 33 ) ) * + - MAX ( + col1 ) FROM tab2 AS cor0
----
-7623

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT DISTINCT ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8046
SELECT DISTINCT ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT - + MIN( ALL - 23 ) * + - MAX( + col2 ) AS col2 FROM tab1 AS cor0
----
-2208

skipif mysql # not compatible
query I rowsort label-8047
SELECT - + MIN ( ALL - 23 ) * + - MAX ( + col2 ) AS col2 FROM tab1 AS cor0
----
-2208

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * 67 < + - col0 + col2 + - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8049
SELECT ( + col1 ) DIV + 89 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8049
SELECT ( + col1 ) / + 89 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - + ( - col1 ) * col1 BETWEEN NULL AND - col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 * - col1 <> NULL
----

query I rowsort
SELECT DISTINCT + 27 * + + col2 FROM tab0
----
1269
2673
270

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT DISTINCT ( - COUNT( * ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8053
SELECT DISTINCT ( - COUNT ( * ) ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT - 71 AS col0 FROM tab0 WHERE NOT 92 <= NULL
----

query I rowsort
SELECT DISTINCT + col1 + - 37 + + + 86 * + col0 FROM tab1 AS cor0
----
4363
7278
7836

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT DISTINCT - MIN( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8056
SELECT DISTINCT - MIN ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 94 + - 25 + - - 22 + - + 75 * + 46 col2 FROM tab0 AS cor0
----
-3547
-3547
-3547

query II rowsort
SELECT + - col0, col1 AS col0 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-15
81
-87
21
-97
1

query II rowsort
SELECT ALL + - 76 AS col2, + col0 FROM tab1 cor0
----
-76
51
-76
85
-76
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8060
SELECT ALL CAST( - MAX( DISTINCT + col2 ) AS SIGNED ) AS col1 FROM tab1 WHERE - 67 IN ( 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8060
SELECT ALL CAST ( - MAX ( DISTINCT + col2 ) AS INTEGER ) AS col1 FROM tab1 WHERE - 67 IN ( 74 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 51 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE NULL <> ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8062
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE NULL <> ( col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT DISTINCT + MIN( ALL + 95 ) FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-8063
SELECT DISTINCT + MIN ( ALL + 95 ) FROM tab1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT DISTINCT SUM( ALL - col2 ) col2 FROM tab0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8064
SELECT DISTINCT SUM ( ALL - col2 ) col2 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT ALL 66 * + SUM( DISTINCT 39 ) FROM tab2
----
2574

skipif mysql # not compatible
query I rowsort label-8065
SELECT ALL 66 * + SUM ( DISTINCT 39 ) FROM tab2
----
2574

query I rowsort
SELECT col1 * - col0 + 62 AS col2 FROM tab0
----
-1153
-1765
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT DISTINCT 56 * COUNT( ALL col1 * 6 ) AS col1 FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT 56 * COUNT ( ALL col1 * 6 ) AS col1 FROM tab1
----
168

query I rowsort
SELECT DISTINCT + col2 / - col0 AS col0 FROM tab0 WHERE NOT 94 IS NOT NULL
----

query I rowsort
SELECT + col1 + - 93 FROM tab0 WHERE NULL = - 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT - SUM( col0 ) FROM tab2 WHERE NOT 17 BETWEEN - col1 AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8070
SELECT - SUM ( col0 ) FROM tab2 WHERE NOT 17 BETWEEN - col1 AND + col2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - 66 * col2 + 58 * col1 <= col2
----

query I rowsort
SELECT - ( - 14 ) + col1 FROM tab1
----
19
28
61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8073
SELECT ALL * FROM tab2 WHERE CAST( + col1 AS SIGNED ) NOT BETWEEN col2 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8073
SELECT ALL * FROM tab2 WHERE CAST ( + col1 AS INTEGER ) NOT BETWEEN col2 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8074
SELECT - MAX( - col1 ) DIV 54 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8074
SELECT - MAX ( - col1 ) / 54 AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT - 91 * COUNT( * ) AS col0 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-8075
SELECT - 91 * COUNT ( * ) AS col0 FROM tab1
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT - ( - ( - COUNT( * ) ) ) * + 52 AS col2 FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-8076
SELECT - ( - ( - COUNT ( * ) ) ) * + 52 AS col2 FROM tab1
----
-156

query I rowsort
SELECT DISTINCT col0 + + col0 * col2 FROM tab1
----
4947
5100
6279

query III rowsort
SELECT * FROM tab0 WHERE NOT + 41 * + 45 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8079
SELECT DISTINCT 70 DIV ( - COUNT( * ) * - 34 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8079
SELECT DISTINCT 70 / ( - COUNT ( * ) * - 34 ) AS col0 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT IN ( - 52 * 94 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 52 IS NULL
----

query I rowsort
SELECT col0 * 94 + 43 FROM tab0
----
1453
8221
9161

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT 43 * + MAX( + 83 ) col0 FROM tab2
----
3569

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8083
SELECT 43 * + MAX ( + 83 ) col0 FROM tab2
----
3569

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT DISTINCT + COUNT( * ) col0 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND - 5 + + col1 * + 53
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8084
SELECT DISTINCT + COUNT ( * ) col0 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND - 5 + + col1 * + 53
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 ) IN ( - col2 )
----

query I rowsort
SELECT 56 * col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 / col2 IS NULL
----
4872
5432
840

query I rowsort
SELECT DISTINCT 19 AS col1 FROM tab0 WHERE NOT NULL IN ( - col2 + col1 * - col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8088
SELECT 3 DIV + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2
----
0

skipif mysql # not compatible
query I rowsort label-8088
SELECT 3 / + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8089
SELECT * FROM tab0 AS cor0 WHERE NOT ( 84 + - col0 * CAST( 43 / - col0 AS SIGNED ) ) BETWEEN ( NULL ) AND ( CAST( NULL AS SIGNED ) * + col2 )
----

skipif mysql # not compatible
query III rowsort label-8089
SELECT * FROM tab0 AS cor0 WHERE NOT ( 84 + - col0 * CAST ( 43 / - col0 AS INTEGER ) ) BETWEEN ( NULL ) AND ( CAST ( NULL AS INTEGER ) * + col2 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 55 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8091
SELECT ALL - 40 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8091
SELECT ALL - 40 / col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT DISTINCT MAX( - 37 ) col2 FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8092
SELECT DISTINCT MAX ( - 37 ) col2 FROM tab0 AS cor0
----
-37

query I rowsort
SELECT + col2 + col1 AS col1 FROM tab0 AS cor0 WHERE NOT + ( + col2 ) IS NULL
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT - SUM( DISTINCT - col2 ) * COUNT( * ) FROM tab1 AS cor0
----
669

skipif mysql # not compatible
query I rowsort label-8094
SELECT - SUM ( DISTINCT - col2 ) * COUNT ( * ) FROM tab1 AS cor0
----
669

query I rowsort
SELECT + 26 FROM tab1 AS cor0 WHERE NOT col0 + 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT - - COUNT( ALL col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8096
SELECT - - COUNT ( ALL col2 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + col2 * 12 + col2 * - col0 AS col0 FROM tab2 AS cor0 WHERE NOT 79 + + col1 * - 35 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 33 ) <= col0 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 + + - 38 - col2 * + 9 FROM tab2
----
-268
-438
-618

query I rowsort
SELECT ( - 62 ) + col0 AS col0 FROM tab0
----
-47
25
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8102
SELECT 25 + - col1 - - CAST( - col1 AS SIGNED ) FROM tab1
----
-3
-69
15

skipif mysql # not compatible
query I rowsort label-8102
SELECT 25 + - col1 - - CAST ( - col1 AS INTEGER ) FROM tab1
----
-3
-69
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8103
SELECT * FROM tab0 WHERE NOT NULL = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8103
SELECT * FROM tab0 WHERE NOT NULL = - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT - SUM( - col0 ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8104
SELECT - SUM ( - col0 ) AS col0 FROM tab2
----
185

query I rowsort
SELECT DISTINCT 20 * - col2 + + col0 AS col1 FROM tab1 AS cor0
----
-1095
-1269
-1869

query I rowsort
SELECT DISTINCT - col1 + + + col2 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT ALL + - 81 * + - col0 * + col0 + + col0 FROM tab1 AS cor0
----
210732
585310
670852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8108
SELECT ALL + CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) + + 18 / COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8108
SELECT ALL + CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) + + 18 / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8109
SELECT + CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8109
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( + - 49 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 * - col2 + + 94 + col0 FROM tab2
----
1313
3238
4055

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE + col2 = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( col1 + + 75 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8114
SELECT DISTINCT 0 * + + col0 DIV - col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT 0 * + + col0 / - col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8115
SELECT col1 * col1 FROM tab1 AS cor0 WHERE col2 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8115
SELECT col1 * col1 FROM tab1 AS cor0 WHERE col2 NOT IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - ( + col0 ) * + - 88 + + col1 FROM tab0 AS cor0
----
1401
7677
8537

query I rowsort
SELECT - + 22 AS col1 FROM tab2 AS cor0
----
-22
-22
-22

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + col0 + col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 88 >= - col2 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 92 + + + col0 + - 72 + 38 FROM tab0 AS cor0
----
145
155
73

query I rowsort
SELECT ALL + 41 FROM tab0 WHERE NULL IN ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8122
SELECT ALL col2 + ( - + CAST( NULL AS SIGNED ) ) - + col2 * + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL col2 + ( - + CAST ( NULL AS INTEGER ) ) - + col2 * + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - col0 ) + + - col2 + - 46 AS col0 FROM tab2
----
-22
-23
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-8124
SELECT DISTINCT col1 DIV col0 * + 67 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8124
SELECT DISTINCT col1 / col0 * + 67 AS col2 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + 97 AND - col1 / col1 + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 43 BETWEEN 11 * + col0 AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 col2 FROM tab0 WHERE ( + 42 * + 80 * + col1 + + 14 ) > 80
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT - MAX( - 83 ) + + COUNT( * ) FROM tab1 WHERE + ( + 96 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8128
SELECT - MAX ( - 83 ) + + COUNT ( * ) FROM tab1 WHERE + ( + 96 ) IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 9 + - 4 IS NULL
----

query I rowsort
SELECT ALL + 30 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
30
30
30

onlyif mysql # DIV for integer division: 
query I rowsort label-8131
SELECT ALL + 71 DIV - col0 AS col1 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL + 71 / - col0 AS col1 FROM tab0
----
-4
0
0

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( col2 * col1 * - col0 ) NOT IN ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 38 ) BETWEEN + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - + col1 * - col2, + col1 FROM tab0 AS cor0
----
210
21
3807
81
99
1

query I rowsort
SELECT DISTINCT col0 * 32 * + col2 AS col0 FROM tab0
----
22560
27840
307296

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT + 37 + COUNT( * ) FROM tab2 WHERE NOT 92 + 42 + - + 7 BETWEEN ( col2 + ( ( + col2 ) ) ) AND col2
----
40

skipif mysql # not compatible
query I rowsort label-8136
SELECT + 37 + COUNT ( * ) FROM tab2 WHERE NOT 92 + 42 + - + 7 BETWEEN ( col2 + ( ( + col2 ) ) ) AND col2
----
40

query I rowsort
SELECT - col2 * - ( + 91 ) * + + col2 FROM tab2 AS cor0
----
145600
306124
48139

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 60 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 67 * - 29 AS col2 FROM tab2 AS cor0
----
-1943
-1943
-1943

query I rowsort
SELECT DISTINCT - 80 * - col1 AS col0 FROM tab2 AS cor0 WHERE + col1 + + 4 + - col0 BETWEEN NULL AND + - ( 58 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT - - MIN( - ( - + col1 ) ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8141
SELECT - - MIN ( - ( - + col1 ) ) AS col2 FROM tab1 AS cor0
----
5

query II rowsort
SELECT DISTINCT 56, 65 AS col1 FROM tab0 AS cor0
----
56
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8143
SELECT ALL + CAST( - + ( col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL + CAST ( - + ( col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1, - 63 )
----

query II rowsort
SELECT ALL + col0 AS col1, + col2 * + + 45 FROM tab2
----
46
1035
64
1800
75
2610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8146
SELECT 15 / COUNT( * ) * + - COUNT( * ) * - 65 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8146
SELECT 15 / COUNT ( * ) * + - COUNT ( * ) * - 65 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8147
SELECT + 36 AS col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
36
NULL
36
NULL
36
NULL

skipif mysql # not compatible
query II rowsort label-8147
SELECT + 36 AS col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
36
NULL
36
NULL
36
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8148
SELECT + CAST( + 94 AS SIGNED ) * - 74 AS col0 FROM tab1
----
-6956
-6956
-6956

skipif mysql # not compatible
query I rowsort label-8148
SELECT + CAST ( + 94 AS INTEGER ) * - 74 AS col0 FROM tab1
----
-6956
-6956
-6956

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8150
SELECT + 14 * + + col0 * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8150
SELECT + 14 * + + col0 * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE - 96 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8152
SELECT DISTINCT ( - + CAST( - 21 AS SIGNED ) ) AS col1 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-8152
SELECT DISTINCT ( - + CAST ( - 21 AS INTEGER ) ) AS col1 FROM tab2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT + MIN( col0 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8153
SELECT + MIN ( col0 ) AS col1 FROM tab2
----
46

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + ( + col1 ) * col1 * col2 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT DISTINCT COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8155
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8156
SELECT DISTINCT + 22 DIV 4 + + 46 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-8156
SELECT DISTINCT + 22 / 4 + + 46 FROM tab0
----
51

query I rowsort
SELECT - 90 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab1 WHERE ( - 43 ) * 96 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL - - 89 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8160
SELECT DISTINCT + 22 AS col2 FROM tab0 WHERE NOT CAST( - col2 AS SIGNED ) * col1 NOT BETWEEN + col2 AND + 92 / col1
----

skipif mysql # not compatible
query I rowsort label-8160
SELECT DISTINCT + 22 AS col2 FROM tab0 WHERE NOT CAST ( - col2 AS INTEGER ) * col1 NOT BETWEEN + col2 AND + 92 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8161
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * + ( 14 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 - 2 FROM tab0 AS cor0
----
-1
19
79

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN - 22 * + col0 * col0 AND ( - col2 )
----
15
81
47
97
1
99

query I rowsort
SELECT - 54 - + + col2 + + col1 FROM tab0 AS cor0
----
-152
-20
-43

query II rowsort
SELECT + - 35 / + + col2 AS col2, + col1 AS col1 FROM tab2 AS cor0 WHERE NULL <= col0 + col0
----

query I rowsort
SELECT 78 + 3 FROM tab0
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT + COUNT( * ) + - + COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8168
SELECT + COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8169
SELECT COUNT( * ), + COUNT( * ) - + COUNT( * ) + + COUNT( * ) AS col2 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-8169
SELECT COUNT ( * ), + COUNT ( * ) - + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 71 NOT BETWEEN - 35 AND 40 * - col1 + + 35 * - + 72
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - 75 ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col2 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT ALL - MIN( col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8173
SELECT ALL - MIN ( col2 ) FROM tab1 AS cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 + ( 9 ) * - col0 col0 FROM tab0 AS cor0
----
-677
-686
-73

query I rowsort
SELECT + 58 FROM tab0 AS cor0 WHERE NOT 69 - + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8176
SELECT CAST( - ( + col0 ) AS SIGNED ) + col1 DIV - - 45 + - 91 AS col1 FROM tab2
----
-136
-154
-165

skipif mysql # not compatible
query I rowsort label-8176
SELECT CAST ( - ( + col0 ) AS INTEGER ) + col1 / - - 45 + - 91 AS col1 FROM tab2
----
-136
-154
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT ALL - SUM( col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL - SUM ( col0 ) AS col0 FROM tab2
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8178
SELECT ( + col0 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE - col0 * + col1 - - 86 IN ( 66 )
----

skipif mysql # not compatible
query I rowsort label-8178
SELECT ( + col0 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE - col0 * + col1 - - 86 IN ( 66 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8179
SELECT DISTINCT - 4 DIV col2 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8179
SELECT DISTINCT - 4 / col2 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT - ( - 97 ) + + ( COUNT( DISTINCT + - col2 ) ) col0 FROM tab1
----
100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8180
SELECT - ( - 97 ) + + ( COUNT ( DISTINCT + - col2 ) ) col0 FROM tab1
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8181
SELECT ALL 43 DIV + MIN( DISTINCT + col2 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL 43 / + MIN ( DISTINCT + col2 ) FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8182
SELECT ALL * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) / col1 <> + col2
----

skipif mysql # not compatible
query III rowsort label-8182
SELECT ALL * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) / col1 <> + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 col1 FROM tab1
----
-4896
-5015
-6188

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - 79 + 28 - - col0 )
----

query I rowsort
SELECT ALL + + 30 + + ( + 36 ) FROM tab2 AS cor0
----
66
66
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8187
SELECT MIN( - col1 ) - - CAST( NULL AS SIGNED ) - 62 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8187
SELECT MIN ( - col1 ) - - CAST ( NULL AS INTEGER ) - 62 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8188
SELECT + 69 DIV + - COUNT( * ) + 88 AS col0 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-8188
SELECT + 69 / + - COUNT ( * ) + 88 AS col0 FROM tab2 AS cor0
----
65

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * - - 89 = - col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8190
SELECT + CAST( + - 47 AS SIGNED ) DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8190
SELECT + CAST ( + - 47 AS INTEGER ) / col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 78 NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT + col1 - col0 AS col2 FROM tab0 AS cor0 WHERE NULL < col1 / + col1
----

query I rowsort
SELECT ALL + - 31 + + - col2 FROM tab1 AS cor0
----
-127
-90
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT - + 54 * - COUNT( * ) AS col1 FROM tab0 cor0
----
162

skipif mysql # not compatible
query I rowsort label-8194
SELECT - + 54 * - COUNT ( * ) AS col1 FROM tab0 cor0
----
162

query I rowsort
SELECT ALL ( + - col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT DISTINCT - 97 AS col1, + 21 * ( + 54 ) AS col1 FROM tab0 AS cor0
----
-97
1134

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 46 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT - COUNT( * ) FROM tab2 WHERE NOT - - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8198
SELECT - COUNT ( * ) FROM tab2 WHERE NOT - - col0 IS NULL
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT ALL COUNT( - col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL COUNT ( - col2 ) AS col2 FROM tab0
----
3

query II rowsort
SELECT ALL col1 * - col0 * - col0, + 56 AS col1 FROM tab1
----
36125
56
36414
56
389207
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT + - ( + ( + - COUNT( * ) ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8202
SELECT + - ( + ( + - COUNT ( * ) ) ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < 52
----

query I rowsort
SELECT col0 * - + col2 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 11 col2, 66 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
11
66
11
66
11
66

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 50 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT ALL - SUM( ALL + 92 ) + + - 63 AS col2 FROM tab1 AS cor0
----
-339

skipif mysql # not compatible
query I rowsort label-8207
SELECT ALL - SUM ( ALL + 92 ) + + - 63 AS col2 FROM tab1 AS cor0
----
-339

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL <= NULL )
----

query I rowsort
SELECT DISTINCT - 48 * + + col1 FROM tab2 AS cor0
----
-2448
-3216
-3696

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN ( + col1 * - - 73 ) AND ( + col0 )
----

query I rowsort
SELECT - 36 * + col0 AS col0 FROM tab2 cor0
----
-1656
-2304
-2700

query I rowsort
SELECT DISTINCT - col0 + + + 5 FROM tab1 AS cor0
----
-46
-80
-86

query I rowsort
SELECT ALL - - col1 * col1 * + col1 + - - col1 AS col1 FROM tab0 AS cor0
----
2
531522
9282

query I rowsort
SELECT ALL - - 17 AS col2 FROM tab2 cor0
----
17
17
17

query I rowsort
SELECT - col2 + - ( - + col1 ) - + col2 + + col1 * - col0 + + + col2 * - col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT - - col1 AS col2, + col0 * - col0 FROM tab1 cor0
----
14
-2601
47
-8281
5
-7225

query I rowsort
SELECT DISTINCT col1 + - + col0 FROM tab1
----
-37
-44
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-8218
SELECT + col0 DIV - 42 + + col1 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-8218
SELECT + col0 / - 42 + + col1 FROM tab2
----
50
66
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT DISTINCT MIN( ALL - col2 ) col1 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8219
SELECT DISTINCT MIN ( ALL - col2 ) col1 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT COUNT( * ) + - - COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-8220
SELECT COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab0
----
6

query I rowsort
SELECT - col1 + + ( + - col1 ) AS col1 FROM tab1
----
-10
-28
-94

query I rowsort
SELECT col2 + + 37 + + col0 + - col2 + - ( - col2 ) + 81 FROM tab0
----
180
215
314

onlyif mysql # DIV for integer division: 
query I rowsort label-8223
SELECT 81 DIV + + col2 + - - col0 col0 FROM tab1
----
51
86
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8223
SELECT 81 / + + col2 + - - col0 col0 FROM tab1
----
51
86
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 col0 FROM tab2
----
30
30
30

onlyif mysql # aggregate syntax: 
query II rowsort label-8225
SELECT DISTINCT COUNT( - - col0 ) AS col0, - COUNT( * ) * + + COUNT( * ) AS col1 FROM tab1
----
3
-9

skipif mysql # not compatible
query II rowsort label-8225
SELECT DISTINCT COUNT ( - - col0 ) AS col0, - COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab1
----
3
-9

query I rowsort
SELECT ALL + col1 - + 23 AS col0 FROM tab2 AS cor0
----
28
44
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT + COUNT( * ) * - SUM( ALL 62 ) FROM tab0
----
-558

skipif mysql # not compatible
query I rowsort label-8227
SELECT + COUNT ( * ) * - SUM ( ALL 62 ) FROM tab0
----
-558

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - 46 / 8, 5 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT ALL SUM( DISTINCT + col0 ) col0 FROM tab0 cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8229
SELECT ALL SUM ( DISTINCT + col0 ) col0 FROM tab0 cor0
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-8230
SELECT ALL - + col0 DIV + + 3 AS col2 FROM tab0 cor0
----
-29
-32
-5

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL - + col0 / + + 3 AS col2 FROM tab0 cor0
----
-29
-32
-5

query I rowsort
SELECT - + 34 AS col2 FROM tab0 AS cor0
----
-34
-34
-34

query I rowsort
SELECT - - 77 * + + col0 + col1 + + col2 AS col2 FROM tab1 AS cor0
----
4037
6609
7122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8233
SELECT - COUNT( * ) * 45 - - + 2 DIV + 74 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-135

skipif mysql # not compatible
query I rowsort label-8233
SELECT - COUNT ( * ) * 45 - - + 2 / + 74 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8234
SELECT + MIN( col0 ) DIV 31 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8234
SELECT + MIN ( col0 ) / 31 FROM tab0
----
0

query I rowsort
SELECT ALL col2 FROM tab0 WHERE - col0 IS NOT NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, col2 col2 FROM tab2
----
-51
23
-67
58
-77
40

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE NULL BETWEEN + 8 AND - - 43
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 95 AS col1, col0 col2 FROM tab0
----
95
15
95
87
95
97

query I rowsort
SELECT 70 * 73 FROM tab0
----
5110
5110
5110

onlyif mysql # DIV for integer division: 
query I rowsort label-8240
SELECT col0 DIV - + col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8240
SELECT col0 / - + col0 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 >= + col2 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 + - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( - col2 ) * + - ( - col0 ) FROM tab1
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8244
SELECT ALL - col2 * - + CAST( NULL AS DECIMAL ) / - - col1 + + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8244
SELECT ALL - col2 * - + CAST ( NULL AS REAL ) / - - col1 + + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col0 * + + 52 * col0 FROM tab1 AS cor0
----
-135252
-375700
-430612

query II rowsort
SELECT 44 + + col1 AS col0, col2 * col2 FROM tab1 AS cor0
----
49
3481
58
9216
91
4624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8247
SELECT ALL - 92 * - CAST( + - CAST( - col0 AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
1380
8004
8924

skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL - 92 * - CAST ( + - CAST ( - col0 AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
1380
8004
8924

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT ALL + 77 + - - COUNT( * ) + - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-8248
SELECT ALL + 77 + - - COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
83

query I rowsort
SELECT ALL + - col1 + - 6 AS col0 FROM tab1 AS cor0
----
-11
-20
-53

query I rowsort
SELECT 80 + - col2 AS col2 FROM tab2 AS cor0
----
22
40
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8251
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NULL <> + CAST( + 96 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NULL <> + CAST ( + 96 AS REAL )
----

query I rowsort
SELECT + - col2 + + - col1 * + col1 AS col2 FROM tab1 AS cor0
----
-2277
-292
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-8253
SELECT 96 + 45 AS col0, - SUM( + col0 ) AS col1 FROM tab1 AS cor0
----
141
-227

skipif mysql # not compatible
query II rowsort label-8253
SELECT 96 + 45 AS col0, - SUM ( + col0 ) AS col1 FROM tab1 AS cor0
----
141
-227

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE + col0 + col2 <= - 42 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8255
SELECT ALL - CAST( + 12 AS SIGNED ) * CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-552
-768
-900

skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL - CAST ( + 12 AS INTEGER ) * CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-552
-768
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT - MAX( 87 ) FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-8256
SELECT - MAX ( 87 ) FROM tab2
----
-87

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col2 * - col0 + + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL + - col2 + + - 10 AS col0 FROM tab1 WHERE NOT - + col2 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * - col0 AS col2 FROM tab0
----
1215
1827
97

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT ALL + COUNT( * ) * - 42 col2 FROM tab2
----
-126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8261
SELECT ALL + COUNT ( * ) * - 42 col2 FROM tab2
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8262
SELECT ALL CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab1 AS cor0 WHERE NULL = col2
----

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab1 AS cor0 WHERE NULL = col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) + col0 * - 74 col2 FROM tab2 AS cor0
----
-3381
-4696
-5492

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT SUM( - - col2 ) * - + COUNT( * ) FROM tab1 AS cor0
----
-669

skipif mysql # not compatible
query I rowsort label-8264
SELECT SUM ( - - col2 ) * - + COUNT ( * ) FROM tab1 AS cor0
----
-669

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + col2 IS NULL )
----

query I rowsort
SELECT 39 * - col0 AS col2 FROM tab2 cor0
----
-1794
-2496
-2925

onlyif mysql # DIV for integer division: 
query I rowsort label-8267
SELECT ALL 77 DIV - + 31 AS col1 FROM tab1 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-8267
SELECT ALL 77 / - + 31 AS col1 FROM tab1 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT DISTINCT - COUNT( + col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8268
SELECT DISTINCT - COUNT ( + col2 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8269
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST( - 70 AS SIGNED ) < - + 75
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST ( - 70 AS INTEGER ) < - + 75
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 <= + + 72
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8271
SELECT ALL MAX( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8271
SELECT ALL MAX ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT ALL COUNT( - - col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL COUNT ( - - col0 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT COUNT( DISTINCT - 87 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8273
SELECT COUNT ( DISTINCT - 87 ) AS col1 FROM tab0
----
1

query II rowsort
SELECT + 31, col1 AS col1 FROM tab1
----
31
14
31
47
31
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8276
SELECT ALL + - col1 * ( + CAST( NULL AS SIGNED ) ) + + 64 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL + - col1 * ( + CAST ( NULL AS INTEGER ) ) + + 64 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 77 NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT - COUNT( ALL + + col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8278
SELECT - COUNT ( ALL + + col2 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - ( + - col0 ) + - - 88 AS col2 FROM tab1 AS cor0
----
139
173
179

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT COUNT( * ) * + 68 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8280
SELECT COUNT ( * ) * + 68 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + + col2 AS col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL 79 * + col0 + ( + + col0 ) + + - 16 AS col0 FROM tab1
----
4064
6784
7264

query I rowsort
SELECT DISTINCT 47 * + 4 * 65 AS col1 FROM tab0
----
12220

query I rowsort
SELECT + - col2 FROM tab0 WHERE + 9 <> col1
----
-10
-47
-99

query I rowsort
SELECT col0 + - + col0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + 95 + + col1 AS col2 FROM tab0
----
116
176
96

query I rowsort
SELECT ALL + 60 + + - col1 FROM tab1 AS cor0
----
13
46
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT ALL - 97 * - - 17 * COUNT( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-4947

skipif mysql # not compatible
query I rowsort label-8288
SELECT ALL - 97 * - - 17 * COUNT ( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-4947

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 * - + col2 + - col0 + col1 * - 38 NOT BETWEEN col1 AND NULL
----
46
51
23
64
77
40

query II rowsort
SELECT DISTINCT - + col1 AS col2, 16 AS col0 FROM tab0 AS cor0
----
-1
16
-21
16
-81
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8291
SELECT DISTINCT - CAST( NULL AS SIGNED ) / CAST( 11 AS SIGNED ) / 77 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8291
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / CAST ( 11 AS INTEGER ) / 77 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8292
SELECT - col1 DIV 92 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8292
SELECT - col1 / 92 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col1 * + + 29 AS col0 FROM tab1 AS cor0
----
-1363
-145
-406

onlyif mysql # DIV for integer division: 
query I rowsort label-8294
SELECT - col2 DIV + + ( 89 ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8294
SELECT - col2 / + + ( 89 ) AS col0 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL + ( - 3 ) + 42, - ( - col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT DISTINCT + + SUM( DISTINCT 22 ) AS col0 FROM tab1 cor0
----
22

skipif mysql # not compatible
query I rowsort label-8296
SELECT DISTINCT + + SUM ( DISTINCT 22 ) AS col0 FROM tab1 cor0
----
22

query I rowsort
SELECT DISTINCT col0 / 14 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query II rowsort
SELECT ALL - col2 AS col0, - 33 + col2 FROM tab1 AS cor0
----
-59
26
-68
35
-96
63

query II rowsort
SELECT ALL col2 AS col1, - col1 * col0 FROM tab0 AS cor0
----
10
-1827
47
-1215
99
-97

onlyif mysql # aggregate syntax: 
query III rowsort label-8300
SELECT + COUNT( * ) * - - MAX( DISTINCT - + col1 ) AS col0, COUNT( * ), - 99 - COUNT( * ) col1 FROM tab2 cor0
----
-153
3
-102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-8300
SELECT + COUNT ( * ) * - - MAX ( DISTINCT - + col1 ) AS col0, COUNT ( * ), - 99 - COUNT ( * ) col1 FROM tab2 cor0
----
-153
3
-102

query I rowsort
SELECT col1 * - + ( - col1 ) AS col1 FROM tab0 AS cor0
----
1
441
6561

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 73 <= NULL
----

query I rowsort
SELECT col2 * + 24 FROM tab1
----
1416
1632
2304

onlyif mysql # DIV for integer division: 
query I rowsort label-8304
SELECT DISTINCT - col1 DIV + - col0 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8304
SELECT DISTINCT - col1 / + - col0 AS col2 FROM tab1
----
0

query I rowsort
SELECT ALL 67 * col2 AS col2 FROM tab2
----
1541
2680
3886

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8307
SELECT + ( col2 ), CAST( - 90 AS SIGNED ) FROM tab0 AS cor0
----
10
-90
47
-90
99
-90

skipif mysql # not compatible
query II rowsort label-8307
SELECT + ( col2 ), CAST ( - 90 AS INTEGER ) FROM tab0 AS cor0
----
10
-90
47
-90
99
-90

query I rowsort
SELECT DISTINCT + 82 + - + col0 + + - 56 FROM tab0 AS cor0
----
-61
-71
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT COUNT( * ) * - SUM( col0 ) AS col0 FROM tab1 AS cor0
----
-681

skipif mysql # not compatible
query I rowsort label-8309
SELECT COUNT ( * ) * - SUM ( col0 ) AS col0 FROM tab1 AS cor0
----
-681

query I rowsort
SELECT 5 * - 41 FROM tab2
----
-205
-205
-205

query I rowsort
SELECT - 94 + + + col0 AS col0 FROM tab2 AS cor0
----
-19
-30
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8312
SELECT + + CAST( NULL AS SIGNED ) + - COUNT( * ) * - 88 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8312
SELECT + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - 88 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + + ( - - col0 ) AS col0 FROM tab1 cor0 WHERE NULL < col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + + col1 ) + - col1, col0 col2 FROM tab0 AS cor0
----
0
15
0
87
0
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8316
SELECT DISTINCT - CAST( + 4 AS SIGNED ) FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-8316
SELECT DISTINCT - CAST ( + 4 AS INTEGER ) FROM tab2 AS cor0
----
-4

query I rowsort
SELECT - + 33 + - 81 FROM tab2 AS cor0
----
-114
-114
-114

query I rowsort
SELECT - ( - + AVG ( + 43 ) ) AS col0 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----
NULL

query II rowsort
SELECT col1, col2 + col1 AS col0 FROM tab2 AS cor0
----
51
74
67
125
77
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8320
SELECT ALL - - CAST( + - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL - - CAST ( + - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col0 / 65 > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) * + - COUNT( * ) - - - MIN( - 83 ) AS col2 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-8322
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) * + - COUNT ( * ) - - - MIN ( - 83 ) AS col2 FROM tab0
----
56

query I rowsort
SELECT DISTINCT - 10 AS col0 FROM tab1 WHERE NOT + - col2 + + col0 IS NULL
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT DISTINCT - 88 + + COUNT( * ) FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-8324
SELECT DISTINCT - 88 + + COUNT ( * ) FROM tab2 AS cor0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT ALL - MIN( DISTINCT - - 18 ) AS col0 FROM tab1 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL - MIN ( DISTINCT - - 18 ) AS col0 FROM tab1 cor0
----
-18

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 <= + - ( - col1 ) * - col2 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT DISTINCT COUNT( * ) * - 93 AS col0 FROM tab0 cor0
----
-279

skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT COUNT ( * ) * - 93 AS col0 FROM tab0 cor0
----
-279

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab0 WHERE ( ( NULL ) IS NOT NULL )
----

query I rowsort
SELECT - 79 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT - COUNT( ALL + + 27 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8330
SELECT - COUNT ( ALL + + 27 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT 65 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
65

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 <> - - ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 71 col2 FROM tab2 AS cor0
----
3266
4544
5325

query I rowsort
SELECT + - col2 * - 56 FROM tab2 AS cor0
----
1288
2240
3248

onlyif mysql # DIV for integer division: 
query I rowsort label-8335
SELECT col2 DIV 74 + - col2 FROM tab1 AS cor0
----
-59
-68
-95

skipif mysql # not compatible
query I rowsort label-8335
SELECT col2 / 74 + - col2 FROM tab1 AS cor0
----
-59
-68
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT ALL + SUM( + 33 ) * - 49 FROM tab0 AS cor0
----
-4851

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL + SUM ( + 33 ) * - 49 FROM tab0 AS cor0
----
-4851

query I rowsort
SELECT - + col0 * + 64 + - - 15 FROM tab2 AS cor0
----
-2929
-4081
-4785

query I rowsort
SELECT ALL + - col1 * - 79 AS col1 FROM tab2 cor0
----
4029
5293
6083

query I rowsort
SELECT ALL col2 * col1 * - 10 * - + col2 * - 46 AS col2 FROM tab1 AS cor0
----
-59351040
-8006300
-99970880

query I rowsort
SELECT DISTINCT - 86 * + ( + - 27 ) FROM tab1 AS cor0
----
2322

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT + MAX( ALL - - ( - 93 ) ) AS col0 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-8341
SELECT + MAX ( ALL - - ( - 93 ) ) AS col0 FROM tab0
----
-93

query I rowsort
SELECT DISTINCT - ( - 57 ) AS col2 FROM tab1
----
57

query II rowsort
SELECT ALL 47 AS col0, - col1 AS col2 FROM tab2
----
47
-51
47
-67
47
-77

query I rowsort
SELECT + ( + - col1 ) FROM tab1 WHERE NOT + 1 * + 36 + - col2 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT MAX( + 86 ) FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-8345
SELECT MAX ( + 86 ) FROM tab2
----
86

query I rowsort
SELECT ALL + col1 + + + 51 - 28 * col2 + + col2 * - col0 - + - col1 * - col0 + - + 99 AS col2 FROM tab0
----
-12519
-3004
-3203

query II rowsort
SELECT - + col0 AS col0, col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8348
SELECT + col0 DIV - + 12 + 1 FROM tab0 AS cor0
----
-6
-7
0

skipif mysql # not compatible
query I rowsort label-8348
SELECT + col0 / - + 12 + 1 FROM tab0 AS cor0
----
-6
-7
0

query I rowsort
SELECT col0 + - 66 * - col0 AS col2 FROM tab1 cor0
----
3417
5695
6097

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT + ( - - COUNT( * ) ) + - - 28 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-8350
SELECT + ( - - COUNT ( * ) ) + - - 28 FROM tab1 AS cor0
----
31

query I rowsort
SELECT DISTINCT + - col1 + 43 AS col2 FROM tab1 cor0
----
-4
29
38

query I rowsort
SELECT 23 * + col2 FROM tab1
----
1357
1564
2208

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( - col0 + - - 89 )
----

query I rowsort
SELECT + + col0 - - 15 + - col2 AS col0 FROM tab2 AS cor0
----
32
38
39

query I rowsort
SELECT DISTINCT - - 33 + + col1 * - - col1 FROM tab2 cor0
----
2634
4522
5962

query I rowsort
SELECT ALL + - ( + - col2 ) AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8357
SELECT DISTINCT - 81 + col1 DIV col0 AS col2 FROM tab2 AS cor0
----
-80
-81

skipif mysql # not compatible
query I rowsort label-8357
SELECT DISTINCT - 81 + col1 / col0 AS col2 FROM tab2 AS cor0
----
-80
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-8358
SELECT - col1 - - col0 DIV + col0 FROM tab2 AS cor0
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-8358
SELECT - col1 - - col0 / + col0 FROM tab2 AS cor0
----
-50
-66
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col1 ) + + col2 * + col0 * + - 42 col0 FROM tab0 cor0
----
-29691
-36561
-403327

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT DISTINCT COUNT( * ) - + 79 FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-8360
SELECT DISTINCT COUNT ( * ) - + 79 FROM tab2
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8361
SELECT ALL - CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL - CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 55 + + col1 - col0 FROM tab1
----
-135
-92
-99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 + + 42 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT + MIN( DISTINCT - col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8364
SELECT + MIN ( DISTINCT - col0 ) FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT DISTINCT - MAX( ALL - col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8365
SELECT DISTINCT - MAX ( ALL - col0 ) AS col2 FROM tab0
----
15

query I rowsort
SELECT ALL 55 FROM tab2 cor0
----
55
55
55

query I rowsort
SELECT + col1 * - col2 * + col1 FROM tab1 AS cor0
----
-1475
-150212
-18816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 col2 FROM tab0 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT DISTINCT + - SUM( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8369
SELECT DISTINCT + - SUM ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL - ( + - 22 ) * - col1 AS col0 FROM tab2 cor0
----
-1122
-1474
-1694

query I rowsort
SELECT DISTINCT + - 2 * + + col2 * - col0 * - 15 AS col2 FROM tab2 AS cor0
----
-130500
-31740
-76800

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT ALL + ( - SUM( DISTINCT + col0 ) ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL + ( - SUM ( DISTINCT + col0 ) ) FROM tab1
----
-227

query I rowsort
SELECT ALL + 92 * + col2 FROM tab0 cor0
----
4324
9108
920

query I rowsort
SELECT ALL - + col2 * - col0 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-8375
SELECT ALL col0 DIV + 14 FROM tab1 AS cor0
----
3
6
6

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL col0 / + 14 FROM tab1 AS cor0
----
3
6
6

query I rowsort
SELECT DISTINCT col1 * + - ( + + ( - 40 ) ) AS col0 FROM tab2 AS cor0
----
2040
2680
3080

query II rowsort
SELECT + col2 * + + col0 - + col2 AS col2, - col2 + - col2 + + + col2 * + col1 * - col0 - + - 99 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT + COUNT( DISTINCT col2 ) * + ( + 26 ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-8378
SELECT + COUNT ( DISTINCT col2 ) * + ( + 26 ) FROM tab1 AS cor0
----
78

query II rowsort
SELECT + - 68 + col2 + - 37 * 94, col1 AS col0 FROM tab1 AS cor0
----
-3450
14
-3478
47
-3487
5

query I rowsort
SELECT - - 19 + - 51 * + - 63 FROM tab2 AS cor0
----
3232
3232
3232

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + - + 60 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT ALL 61 * COUNT( * ) AS col0 FROM tab2
----
183

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL 61 * COUNT ( * ) AS col0 FROM tab2
----
183

query I rowsort
SELECT 70 * 56 + + col0 FROM tab2
----
3966
3984
3995

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT + 8 * - SUM( ALL - + 3 ) * + 84 AS col2 FROM tab2
----
6048

skipif mysql # not compatible
query I rowsort label-8384
SELECT + 8 * - SUM ( ALL - + 3 ) * + 84 AS col2 FROM tab2
----
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT - - SUM( ALL - - col2 ) + - - 76 AS col1 FROM tab2 WHERE + 45 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8385
SELECT - - SUM ( ALL - - col2 ) + - - 76 AS col1 FROM tab2 WHERE + 45 <= NULL
----
NULL

query I rowsort
SELECT ALL - - 18 - + col0 AS col2 FROM tab2 AS cor0 WHERE + 39 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8387
SELECT + COUNT( DISTINCT - 42 ) * - COUNT( * ) DIV - 13 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8387
SELECT + COUNT ( DISTINCT - 42 ) * - COUNT ( * ) / - 13 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 97 - - + col0 FROM tab2
----
143
161
172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, - col0 AS col1 FROM tab2
----
23
-46
40
-64
58
-75

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE - col2 IN ( + 69 * + + col0 )
----

query I rowsort
SELECT DISTINCT - 68 + - col1 FROM tab0 AS cor0
----
-149
-69
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8392
SELECT ALL + CAST( - 90 AS SIGNED ) / + col2 + + 74 + col2 col1 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8392
SELECT ALL + CAST ( - 90 AS INTEGER ) / + col2 + + 74 + col2 col1 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

query II rowsort
SELECT DISTINCT 6 + + ( + + ( - - col0 ) ) AS col0, - col2 * + - col0 AS col0 FROM tab1 AS cor0
----
57
4896
91
5015
97
6188

query I rowsort
SELECT col0 * - - 65 AS col0 FROM tab1 cor0
----
3315
5525
5915

onlyif mysql # DIV for integer division: 
query I rowsort label-8395
SELECT col2 DIV - + 40 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8395
SELECT col2 / - + 40 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT + col0 * - ( - + col0 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2601
7225
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-8397
SELECT DISTINCT - - 15 DIV - 21 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8397
SELECT DISTINCT - - 15 / - 21 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT DISTINCT - 74 + + 7 + - COUNT( * ) FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-8398
SELECT DISTINCT - 74 + + 7 + - COUNT ( * ) FROM tab2 AS cor0
----
-70

query I rowsort
SELECT - - 82 AS col1 FROM tab0 AS cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT DISTINCT + COUNT( * ) + ( + COUNT( * ) ) AS col0 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-8400
SELECT DISTINCT + COUNT ( * ) + ( + COUNT ( * ) ) AS col0 FROM tab2 cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8401
SELECT ALL 30 * col1 - + - col1 + + - col0 + - col1 + - col2 DIV - col1 + + - 52 * - col2 FROM tab0
----
1063
4859
5180

skipif mysql # not compatible
query I rowsort label-8401
SELECT ALL 30 * col1 - + - col1 + + - col0 + - col1 + - col2 / - col1 + + - 52 * - col2 FROM tab0
----
1063
4859
5180

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col0 / + ( - col0 ) ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 NOT BETWEEN NULL AND + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 * + col2 col2 FROM tab0
----
3807
8019
810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8405
SELECT DISTINCT ( - + CAST( col1 AS SIGNED ) ) - + col0 AS col1 FROM tab0 WHERE NOT NULL <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8405
SELECT DISTINCT ( - + CAST ( col1 AS INTEGER ) ) - + col0 AS col1 FROM tab0 WHERE NOT NULL <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 = ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT DISTINCT COUNT( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8407
SELECT DISTINCT COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query II rowsort
SELECT col1, col2 AS col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, 6 col0 FROM tab2 cor0
----
-46
6
-64
6
-75
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT DISTINCT - - MIN( ALL 8 ) AS col1 FROM tab2 cor0
----
8

skipif mysql # not compatible
query I rowsort label-8410
SELECT DISTINCT - - MIN ( ALL 8 ) AS col1 FROM tab2 cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8411
SELECT DISTINCT + col2 + - 87 + CAST( NULL AS SIGNED ) + + - ( + + 90 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8411
SELECT DISTINCT + col2 + - 87 + CAST ( NULL AS INTEGER ) + + - ( + + 90 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 + + + col0 + + col1 * col1 * + col2 + + - ( - - 80 ) + + col2 FROM tab1
----
150382
1624
18934

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT DISTINCT SUM( ALL - 23 ) FROM tab0, tab2 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT SUM ( ALL - 23 ) FROM tab0, tab2 AS cor0
----
-207

query I rowsort
SELECT - col1 * + - 6 AS col0 FROM tab2
----
306
402
462

query III rowsort
SELECT * FROM tab2 WHERE - + col2 * + 65 + + col2 / - 81 <> + + 95
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8416
SELECT DISTINCT + 95, MAX( ALL - 66 ) * COUNT( * ) + + + MIN( + col2 ) AS col0 FROM tab1
----
95
-139

skipif mysql # not compatible
query II rowsort label-8416
SELECT DISTINCT + 95, MAX ( ALL - 66 ) * COUNT ( * ) + + + MIN ( + col2 ) AS col0 FROM tab1
----
95
-139

query I rowsort
SELECT DISTINCT + ( - + col2 ) AS col0 FROM tab0 WHERE NOT + col2 IS NULL
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 79 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8419
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + col2, - col0 * + 7, + - CAST( - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8419
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + col2, - col0 * + 7, + - CAST ( - col0 AS INTEGER ) )
----

query I rowsort
SELECT ALL - 87 + col2 + + - col2 FROM tab2 cor0
----
-87
-87
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8421
SELECT ALL + - COUNT( * ) AS col0, + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-8421
SELECT ALL + - COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * - 81 / col0 + + + ( - - col2 ) / + + ( + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT - ( - MAX( + col2 ) ) * - COUNT( * ) AS col0 FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-8423
SELECT - ( - MAX ( + col2 ) ) * - COUNT ( * ) AS col0 FROM tab2
----
-174

onlyif mysql # DIV for integer division: 
query I rowsort label-8424
SELECT DISTINCT - col1 DIV + 90 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8424
SELECT DISTINCT - col1 / + 90 AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8425
SELECT DISTINCT COUNT( * ) DIV ( + 30 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8425
SELECT DISTINCT COUNT ( * ) / ( + 30 ) FROM tab1
----
0

query I rowsort
SELECT - 92 - + + col2 AS col1 FROM tab1 AS cor0
----
-151
-160
-188

query I rowsort
SELECT DISTINCT - 15 - + col0 FROM tab1 AS cor0
----
-100
-106
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-8428
SELECT 55 DIV - 66 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8428
SELECT 55 / - 66 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE 7 NOT IN ( - 13 + - col2 + - ( col0 ) + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-8429
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE 7 NOT IN ( - 13 + - col2 + - ( col0 ) + col1 )
----
3

query I rowsort
SELECT ALL - ( - 43 ) AS col0 FROM tab2
----
43
43
43

query II rowsort
SELECT col0, - col2 * + col1 FROM tab1
----
51
-1344
85
-295
91
-3196

query III rowsort
SELECT * FROM tab1 WHERE NOT - 61 BETWEEN + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8433
SELECT DISTINCT col2 DIV + 38 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-8433
SELECT DISTINCT col2 / + 38 FROM tab2
----
0
1

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < ( - 34 )
----

query I rowsort
SELECT - col1 * col1 - - + col1 + + - 40 + + - col1 + col0 * + + col2 AS col0 FROM tab2 AS cor0
----
-1583
-179
-3409

onlyif mysql # aggregate syntax: 
query II rowsort label-8436
SELECT + 69, COUNT( col0 ) + 5 AS col0 FROM tab0 AS cor0
----
69
8

skipif mysql # not compatible
query II rowsort label-8436
SELECT + 69, COUNT ( col0 ) + 5 AS col0 FROM tab0 AS cor0
----
69
8

onlyif mysql # aggregate syntax: 
query II rowsort label-8437
SELECT + - 92 AS col1, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-92
3

skipif mysql # not compatible
query II rowsort label-8437
SELECT + - 92 AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-92
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT - MIN( DISTINCT - 52 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
52

skipif mysql # not compatible
query I rowsort label-8438
SELECT - MIN ( DISTINCT - 52 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
52

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab2 AS cor0 WHERE 82 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8440
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8441
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 3 * - + 76 / - col1, + col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-8441
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 3 * - + 76 / - col1, + col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT col0 + 68 FROM tab1 cor0
----
119
153
159

onlyif mysql # DIV for integer division: 
query I rowsort label-8443
SELECT ( - - 71 ) DIV - 17 + - - 3 * - 9 * - 24 FROM tab2
----
644
644
644

skipif mysql # not compatible
query I rowsort label-8443
SELECT ( - - 71 ) / - 17 + - - 3 * - 9 * - 24 FROM tab2
----
644
644
644

query I rowsort
SELECT ALL 54 + + - ( + col2 ) AS col0 FROM tab1
----
-14
-42
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8445
SELECT col1 - - + ( + col2 ) AS col0, col1 * 10 FROM tab0 WHERE - CAST( NULL AS SIGNED ) * + col1 * + - col2 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-8445
SELECT col1 - - + ( + col2 ) AS col0, col1 * 10 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) * + col1 * + - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + - 70 AS col2 FROM tab1
----
-3290
-350
-980

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col2 / + 54 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8448
SELECT DISTINCT + 95 + + - CAST( col0 AS SIGNED ) - col1 - - 67 * + col0 AS col1 FROM tab0
----
1004
5816
6496

skipif mysql # not compatible
query I rowsort label-8448
SELECT DISTINCT + 95 + + - CAST ( col0 AS INTEGER ) - col1 - - 67 * + col0 AS col1 FROM tab0
----
1004
5816
6496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8449
SELECT + CAST( + ( - 18 ) AS SIGNED ) * COUNT( * ) + + SUM( + - col0 ) * + 57 AS col2, 34 DIV MIN( + + col2 ) DIV COUNT( * ) FROM tab1 WHERE - col0 IS NOT NULL
----
-12993
0

skipif mysql # not compatible
query II rowsort label-8449
SELECT + CAST ( + ( - 18 ) AS INTEGER ) * COUNT ( * ) + + SUM ( + - col0 ) * + 57 AS col2, 34 / MIN ( + + col2 ) / COUNT ( * ) FROM tab1 WHERE - col0 IS NOT NULL
----
-12993
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8450
SELECT DISTINCT 19 + - col2 - col1 DIV - 18 FROM tab2 cor0
----
-17
-2
-36

skipif mysql # not compatible
query I rowsort label-8450
SELECT DISTINCT 19 + - col2 - col1 / - 18 FROM tab2 cor0
----
-17
-2
-36

query I rowsort
SELECT DISTINCT + - 53 + + col1 AS col2 FROM tab1 AS cor0
----
-39
-48
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT - + MIN( DISTINCT + col0 ) - + 17 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-8452
SELECT - + MIN ( DISTINCT + col0 ) - + 17 FROM tab0 AS cor0
----
-32

query I rowsort
SELECT + + col1 - - 90 FROM tab2 AS cor0
----
141
157
167

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT + + COUNT( * ) + + + 33 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
42

skipif mysql # not compatible
query I rowsort label-8454
SELECT + + COUNT ( * ) + + + 33 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
42

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 95 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8456
SELECT DISTINCT - CAST( - 84 AS SIGNED ) - + COUNT( * ) col1 FROM tab2
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8456
SELECT DISTINCT - CAST ( - 84 AS INTEGER ) - + COUNT ( * ) col1 FROM tab2
----
81

query II rowsort
SELECT 66 AS col1, col0 + + + col1 FROM tab0
----
66
108
66
96
66
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT + MAX( ALL + + col2 ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-8458
SELECT + MAX ( ALL + + col2 ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT - COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8459
SELECT - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-3

query II rowsort
SELECT ALL + col2 AS col0, col1 AS col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT - 66 * - 88 + + col2 FROM tab1 cor0
----
5867
5876
5904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + - col2 * + 11 col1 FROM tab1 AS cor0
----
101376
38291
50864

onlyif mysql # aggregate syntax: 
query II rowsort label-8463
SELECT ALL 57 AS col1, 27 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
57
24

skipif mysql # not compatible
query II rowsort label-8463
SELECT ALL 57 AS col1, 27 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
57
24

onlyif mysql # aggregate syntax: 
query II rowsort label-8464
SELECT DISTINCT COUNT( * ), 92 - 89 AS col0 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8464
SELECT DISTINCT COUNT ( * ), 92 - 89 AS col0 FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT - ( + + 45 ) AS col0 FROM tab0 AS cor0
----
-45
-45
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8466
SELECT - COUNT( * ) DIV + MAX( col0 ) * - CAST( + MAX( - col1 ) AS SIGNED ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8466
SELECT - COUNT ( * ) / + MAX ( col0 ) * - CAST ( + MAX ( - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8467
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( + - col0 AS SIGNED ) + - 8 + col1 - - + col0 + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8467
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( + - col0 AS INTEGER ) + - 8 + col1 - - + col0 + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NOT 62 + + + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8468
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT 62 + + + col2 IS NOT NULL
----
0

query I rowsort
SELECT ALL + col0 + 82 FROM tab0 AS cor0 WHERE NOT - col1 / - - col0 * 79 IS NULL
----
169
179
97

query II rowsort
SELECT + 96 * - col0, - col1 AS col2 FROM tab0 cor0
----
-1440
-81
-8352
-21
-9312
-1

query I rowsort
SELECT ALL - + ( + ( + - 97 ) ) + 64 AS col1 FROM tab0 cor0
----
161
161
161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + + col1 col0 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT - COUNT( * ) + - 66 AS col2 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-8473
SELECT - COUNT ( * ) + - 66 AS col2 FROM tab2
----
-69

query I rowsort
SELECT col0 * - 62 AS col0 FROM tab1
----
-3162
-5270
-5642

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT + MIN( - + col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8475
SELECT + MIN ( - + col1 ) FROM tab0 AS cor0
----
-81

query II rowsort
SELECT ALL - + col0 AS col1, col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8477
SELECT DISTINCT + + col0 + col2 DIV col0 AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8477
SELECT DISTINCT + + col0 + col2 / col0 AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + 52 * + - 72 * col2 + + col0 FROM tab2 cor0
----
-149696
-217077
-86066

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT ALL + MAX( col0 ) AS col2 FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-8479
SELECT ALL + MAX ( col0 ) AS col2 FROM tab0 cor0
----
97

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT DISTINCT - COUNT( - + ( + col2 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT - COUNT ( - + ( + col2 ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT COUNT( + + col2 ) + COUNT( * ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8482
SELECT COUNT ( + + col2 ) + COUNT ( * ) AS col0 FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8483
SELECT + col0 * - - 10 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8483
SELECT + col0 * - - 10 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8484
SELECT CAST( ( 47 ) AS SIGNED ) + col1 * - - col1 * col0 * col1 AS col2 FROM tab0
----
144
7971662
805754

skipif mysql # not compatible
query I rowsort label-8484
SELECT CAST ( ( 47 ) AS INTEGER ) + col1 * - - col1 * col0 * col1 AS col2 FROM tab0
----
144
7971662
805754

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT COUNT( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8485
SELECT COUNT ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 col2 FROM tab2 AS cor0
----
35
35
35

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT DISTINCT + ( 35 ) - + COUNT( DISTINCT - 98 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
34

skipif mysql # not compatible
query I rowsort label-8488
SELECT DISTINCT + ( 35 ) - + COUNT ( DISTINCT - 98 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
34

query III rowsort
SELECT * FROM tab1 WHERE + col1 * - 72 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + + 80 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT ALL + + 63 FROM tab2 cor0
----
63
63
63

query I rowsort
SELECT DISTINCT + + 79 * - + col0 AS col1 FROM tab1 AS cor0
----
-4029
-6715
-7189

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + - + col1 * - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT DISTINCT COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8494
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

query I rowsort
SELECT ALL ( + 30 ) * 95 + - col1 * - ( - 29 ) AS col1 FROM tab0 AS cor0
----
2241
2821
501

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8496
SELECT - - COUNT( + col1 ) / CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8496
SELECT - - COUNT ( + col1 ) / CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT - - col2 AS col1, - col1 + - col0 AS col0 FROM tab0 AS cor0
----
10
-108
47
-96
99
-98

query I rowsort
SELECT ALL 29 * - - 37 FROM tab1 AS cor0
----
1073
1073
1073

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - col1 + col2 AND col2 - + col0
----

query I rowsort
SELECT ALL + col1 * + ( + + 53 ) AS col1 FROM tab1
----
2491
265
742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, + col2 * - col0 FROM tab0
----
15
-705
87
-870
97
-9603

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NOT + col0 IS NULL
----
51
67
77

query II rowsort
SELECT ALL + col1, + col2 * 70 AS col0 FROM tab2
----
51
1610
67
4060
77
2800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 55 AS col2, 91 col1 FROM tab1
----
-55
91
-55
91
-55
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT + ( - COUNT( * ) ) * MAX( - col2 ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8505
SELECT + ( - COUNT ( * ) ) * MAX ( - col2 ) FROM tab0 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT + 22 * - ( + + ( COUNT( * ) ) ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8506
SELECT + 22 * - ( + + ( COUNT ( * ) ) ) AS col0 FROM tab1
----
-66

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 88 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT + col2 * - 39 FROM tab1
----
-2301
-2652
-3744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8509
SELECT CAST( + - ( col0 ) AS SIGNED ) + col1 FROM tab1 AS cor0
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-8509
SELECT CAST ( + - ( col0 ) AS INTEGER ) + col1 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8510
SELECT + - col2 + col2 AS col2, + col0 * - CAST( - + 41 AS SIGNED ) * + col2 + - col2 * - col2 FROM tab2 AS cor0
----
0
106560
0
181714
0
43907

skipif mysql # not compatible
query II rowsort label-8510
SELECT + - col2 + col2 AS col2, + col0 * - CAST ( - + 41 AS INTEGER ) * + col2 + - col2 * - col2 FROM tab2 AS cor0
----
0
106560
0
181714
0
43907

query I rowsort
SELECT + col1 + - - col0 - + 91 * + 47 AS col2 FROM tab1 AS cor0
----
-4139
-4187
-4212

onlyif mysql # aggregate syntax: 
query II rowsort label-8512
SELECT + COUNT( * ) + 39 AS col0, - COUNT( DISTINCT - ( - 80 ) ) AS col2 FROM tab0 AS cor0
----
42
-1

skipif mysql # not compatible
query II rowsort label-8512
SELECT + COUNT ( * ) + 39 AS col0, - COUNT ( DISTINCT - ( - 80 ) ) AS col2 FROM tab0 AS cor0
----
42
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 74 + + 0 AS col2, + col2 col0 FROM tab2 AS cor0
----
-74
23
-74
40
-74
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT ALL + + COUNT( * ) + - COUNT( * ) col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8514
SELECT ALL + + COUNT ( * ) + - COUNT ( * ) col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT col0 + 90 AS col1 FROM tab2 AS cor0
----
136
154
165

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT IN ( + col1 * + col0, col2 + ( - col1 ) * - 54 )
----

query I rowsort
SELECT DISTINCT + col0 + - + col1 FROM tab0
----
-66
66
96

query I rowsort
SELECT - ( - col2 ) * + 28 AS col1 FROM tab1
----
1652
1904
2688

query I rowsort
SELECT DISTINCT + 70 FROM tab0, tab2 AS cor0 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab1, tab2 cor0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8521
SELECT ALL * FROM tab0 WHERE NOT ( NOT CAST( NULL AS SIGNED ) * - col1 NOT BETWEEN - - col2 AND NULL )
----

skipif mysql # not compatible
query III rowsort label-8521
SELECT ALL * FROM tab0 WHERE NOT ( NOT CAST ( NULL AS INTEGER ) * - col1 NOT BETWEEN - - col2 AND NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 97 = - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL <= + col0 + + col2
----

query I rowsort
SELECT col0 - + - 59 + + col2 AS col2 FROM tab2 AS cor0
----
128
163
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8525
SELECT + CAST( - + col2 AS SIGNED ) - + 97 AS col2 FROM tab0 AS cor0
----
-107
-144
-196

skipif mysql # not compatible
query I rowsort label-8525
SELECT + CAST ( - + col2 AS INTEGER ) - + 97 AS col2 FROM tab0 AS cor0
----
-107
-144
-196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8526
SELECT - - COUNT( * ) DIV + - 31 AS col0 FROM tab2 cor0 WHERE NULL NOT BETWEEN - 14 AND 45 * col1 + - 84 + col2
----
0

skipif mysql # not compatible
query I rowsort label-8526
SELECT - - COUNT ( * ) / + - 31 AS col0 FROM tab2 cor0 WHERE NULL NOT BETWEEN - 14 AND 45 * col1 + - 84 + col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8527
SELECT ALL + 38 AS col0, 10 + COUNT( * ) * + MAX( - col1 ) FROM tab0 AS cor0 WHERE NOT col0 = NULL
----
38
NULL

skipif mysql # not compatible
query II rowsort label-8527
SELECT ALL + 38 AS col0, 10 + COUNT ( * ) * + MAX ( - col1 ) FROM tab0 AS cor0 WHERE NOT col0 = NULL
----
38
NULL

query I rowsort
SELECT + 60 * 82 + + col0 * - col2 + - col0 FROM tab1 AS cor0
----
-1359
-180
-27

query I rowsort
SELECT DISTINCT - col1 * 77 FROM tab2 AS cor0
----
-3927
-5159
-5929

query I rowsort
SELECT - 53 * + 98 + 82 AS col2 FROM tab1 WHERE ( NULL ) IN ( + 99 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT - COUNT( * ) + - 37 * COUNT( * ) AS col2 FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-8531
SELECT - COUNT ( * ) + - 37 * COUNT ( * ) AS col2 FROM tab0
----
-114

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 / col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 16 * + 10 - - col0 ) IS NOT NULL
----

query I rowsort
SELECT - 38 * - 35 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT SUM( + col2 ) FROM tab1 WHERE NOT ( + col0 + - 57 / + ( + col1 ) ) IN ( + col1 )
----
223

skipif mysql # not compatible
query I rowsort label-8535
SELECT SUM ( + col2 ) FROM tab1 WHERE NOT ( + col0 + - 57 / + ( + col1 ) ) IN ( + col1 )
----
223

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 IN ( - col2 * - 32 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT 84 * 50 + - MAX( 10 ) AS col1 FROM tab2
----
4190

skipif mysql # not compatible
query I rowsort label-8537
SELECT 84 * 50 + - MAX ( 10 ) AS col1 FROM tab2
----
4190

query I rowsort
SELECT - col2 + 37 FROM tab2
----
-21
-3
14

query I rowsort
SELECT DISTINCT + 7 FROM tab2 WHERE - 25 < + col1
----
7

query I rowsort
SELECT ALL 49 - col0 FROM tab1 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT + MAX( + col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8541
SELECT + MAX ( + col1 ) AS col0 FROM tab0
----
81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 43 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8544
SELECT DISTINCT - SUM( DISTINCT CAST( 10 AS SIGNED ) ) FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT - SUM ( DISTINCT CAST ( 10 AS INTEGER ) ) FROM tab2
----
-10

query III rowsort
SELECT * FROM tab0 WHERE NOT 82 >= + col2
----
97
1
99

query III rowsort
SELECT * FROM tab2 WHERE NOT 85 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT 92 + COUNT( * ) FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-8547
SELECT 92 + COUNT ( * ) FROM tab2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-8548
SELECT 29 + - col2 DIV + col1 FROM tab0
----
-70
29
29

skipif mysql # not compatible
query I rowsort label-8548
SELECT 29 + - col2 / + col1 FROM tab0
----
-70
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT ALL + SUM( ALL + col1 ) * - 48 FROM tab1
----
-3168

skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL + SUM ( ALL + col1 ) * - 48 FROM tab1
----
-3168

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT DISTINCT COUNT( - col0 ) FROM tab2 WHERE NOT ( col0 / 30 ) = - col1
----
3

skipif mysql # not compatible
query I rowsort label-8550
SELECT DISTINCT COUNT ( - col0 ) FROM tab2 WHERE NOT ( col0 / 30 ) = - col1
----
3

query I rowsort
SELECT ( 20 ) FROM tab1 cor0 WHERE NOT ( 55 ) BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT DISTINCT - 90 + + MAX( DISTINCT 80 + - 81 ) * + 31 FROM tab1 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-8552
SELECT DISTINCT - 90 + + MAX ( DISTINCT 80 + - 81 ) * + 31 FROM tab1 AS cor0
----
-121

query I rowsort
SELECT DISTINCT + 75 * - col0 + + 74 FROM tab2 AS cor0
----
-3376
-4726
-5551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8554
SELECT ( CAST( 85 AS SIGNED ) ) * + col0 col1 FROM tab1 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
4335
7225
7735

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8554
SELECT ( CAST ( 85 AS INTEGER ) ) * + col0 col1 FROM tab1 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
4335
7225
7735

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT DISTINCT COUNT( * ) col1 FROM tab1 AS 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-8555
SELECT DISTINCT COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----
0

query I rowsort
SELECT + 66 - + 73 FROM tab2 AS cor0 WHERE 10 / col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT DISTINCT - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8557
SELECT DISTINCT - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1
----
-9

query I rowsort
SELECT DISTINCT 16 AS col2 FROM tab0 WHERE NOT NULL > - col2
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT 97 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 79 + col1 AS col2 FROM tab2
----
130
146
156

query III rowsort
SELECT * FROM tab1 WHERE col0 + - col2 * col2 IN ( + col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col0 + 74 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 ) < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 35 IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 20 + + col2 col1 FROM tab1 AS cor0
----
39
48
76

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( 32 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 11 - col0 FROM tab0 AS cor0
----
-108
-26
-98

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8569
SELECT DISTINCT 24 DIV COUNT( ALL + 72 + col2 * col0 ) + 97 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT 24 / COUNT ( ALL + 72 + col2 * col0 ) + 97 FROM tab1 AS cor0
----
105

query I rowsort
SELECT DISTINCT + 9 AS col2 FROM tab0 AS cor0 WHERE ( col0 * - col2 ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 46 col1 FROM tab0 AS cor0
----
127
47
67

query I rowsort
SELECT ALL + col0 + - 70 AS col0 FROM tab0 AS cor0
----
-55
17
27

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE - 21 IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL - - 93 * + col1 + ( col0 ) * col1 AS col0 FROM tab0 AS cor0
----
190
3780
8748

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( 44 + + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT DISTINCT + 90 + COUNT( * ) * + 41 col2 FROM tab2
----
213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8577
SELECT DISTINCT + 90 + COUNT ( * ) * + 41 col2 FROM tab2
----
213

query I rowsort
SELECT ALL 51 - + col0 AS col1 FROM tab1
----
-34
-40
0

query I rowsort
SELECT + col0 + + 59 FROM tab2
----
105
123
134

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 71 + - + 9 + col0 FROM tab2
----
-16
-34
-5

query I rowsort
SELECT ALL + 83 * + + col0 FROM tab1
----
4233
7055
7553

query I rowsort
SELECT + 89 + + col0 * - col2 FROM tab2
----
-2471
-4261
-969

query III rowsort
SELECT * FROM tab0 WHERE ( col1 + - 80 ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8585
SELECT - 33 DIV col2 + - col0 FROM tab0
----
-15
-90
-97

skipif mysql # not compatible
query I rowsort label-8585
SELECT - 33 / col2 + - col0 FROM tab0
----
-15
-90
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8586
SELECT + col0 + + + CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8586
SELECT + col0 + + + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE col2 * 54 IN ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8588
SELECT DISTINCT + col2 DIV CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-8588
SELECT DISTINCT + col2 / CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
1
11
6

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col2 ) < - col0
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8591
SELECT col2 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8591
SELECT col2 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE ( 64 ) BETWEEN NULL AND + 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT DISTINCT + + ( COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8595
SELECT DISTINCT + + ( COUNT ( * ) ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 30 col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-30

query II rowsort
SELECT DISTINCT + col2 AS col1, col2 FROM tab2
----
23
23
40
40
58
58

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 19 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT ALL col0 + 25 FROM tab1 AS cor0 WHERE 6 IS NOT NULL OR NOT ( col0 ) IS NULL
----
110
116
76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col2 + + col1 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + col1 IN ( 12 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 56 col1 FROM tab2 cor0 WHERE NOT 83 IN ( + 49 * - col0 )
----
-1288
-2240
-3248

query II rowsort
SELECT + 47 AS col1, col0 AS col2 FROM tab0 AS cor0
----
47
15
47
87
47
97

query II rowsort
SELECT DISTINCT - col2 AS col2, col1 AS col0 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8605
SELECT DISTINCT 68 FROM tab1 AS cor0 WHERE NOT - CAST( + col2 AS SIGNED ) * + col2 > ( + col2 + + ( 60 ) / + 8 )
----
68

skipif mysql # not compatible
query I rowsort label-8605
SELECT DISTINCT 68 FROM tab1 AS cor0 WHERE NOT - CAST ( + col2 AS INTEGER ) * + col2 > ( + col2 + + ( 60 ) / + 8 )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-8606
SELECT + - col0 + - col0 + + + col2 + + 78 * col2 DIV col2 AS col2 FROM tab1 AS cor0
----
-33
-36
72

skipif mysql # not compatible
query I rowsort label-8606
SELECT + - col0 + - col0 + + + col2 + + 78 * col2 / col2 AS col2 FROM tab1 AS cor0
----
-33
-36
72

query I rowsort
SELECT col0 + - col2 - - col2 + + 5 * + 4 AS col0 FROM tab1
----
105
111
71

query I rowsort
SELECT + col2 + - col0 * - - col2 AS col0 FROM tab1
----
-4800
-4956
-6120

query I rowsort
SELECT - col2 * col2 FROM tab2 WHERE NOT NULL < + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8610
SELECT 93 * COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT 93 * COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8611
SELECT ALL 98 FROM tab1 WHERE - + ( + CAST( NULL AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL 98 FROM tab1 WHERE - + ( + CAST ( NULL AS REAL ) ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * col1 BETWEEN - ( - col0 ) + col2 AND NULL
----
85
5
59

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 ) >= col1
----
15
81
47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN ( + col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8615
SELECT DISTINCT ( + + 70 ), + COUNT( * ) AS col1 FROM tab1
----
70
3

skipif mysql # not compatible
query II rowsort label-8615
SELECT DISTINCT ( + + 70 ), + COUNT ( * ) AS col1 FROM tab1
----
70
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 37 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 20 AS col1 FROM tab2 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL col1 * ( - col0 ) AS col2 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT - SUM( ALL - col0 ) FROM tab1 AS cor0 WHERE + col0 NOT IN ( + + 84 + 7 )
----
136

skipif mysql # not compatible
query I rowsort label-8619
SELECT - SUM ( ALL - col0 ) FROM tab1 AS cor0 WHERE + col0 NOT IN ( + + 84 + 7 )
----
136

query II rowsort
SELECT ALL - col0, col2 * - col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT ALL ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT 46 <= 57
----
0

skipif mysql # not compatible
query I rowsort label-8621
SELECT ALL ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT 46 <= 57
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8622
SELECT 30 FROM tab0 AS cor0 WHERE ( + - col1 ) * + col2 - + CAST( NULL AS SIGNED ) - + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8622
SELECT 30 FROM tab0 AS cor0 WHERE ( + - col1 ) * + col2 - + CAST ( NULL AS INTEGER ) - + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8623
SELECT DISTINCT col1 - + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT col1 - + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8624
SELECT 16 + CAST( + - COUNT( + col0 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-8624
SELECT 16 + CAST ( + - COUNT ( + col0 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
13

query I rowsort
SELECT - - col0 * - + col0 + - col1 AS col2 FROM tab2 AS cor0
----
-2167
-4173
-5692

query I rowsort
SELECT ALL 5 * 40 FROM tab0 AS cor0
----
200
200
200

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT + - MIN( ALL + + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8627
SELECT + - MIN ( ALL + + col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT col0 + + 3 * + + col2 + + - col0 * - - col0 AS col0 FROM tab2 AS cor0
----
-2001
-3912
-5376

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 3 * + 2 BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT 67 * + + col2 FROM tab0 AS cor0
----
3149
6633
670

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE + col1 = + col0
----

query II rowsort
SELECT DISTINCT col1 - col2, - 4 AS col0 FROM tab2
----
28
-4
37
-4
9
-4

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8634
SELECT - col0 * - 34 * + - 84 - + CAST( NULL AS SIGNED ) + - 39 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8634
SELECT - col0 * - 34 * + - 84 - + CAST ( NULL AS INTEGER ) + - 39 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col0 BETWEEN - col1 - + col1 AND + + col0 * - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 NOT BETWEEN - col1 AND 45
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8637
SELECT CAST( - ( + 84 ) AS SIGNED ) AS col1 FROM tab0
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-8637
SELECT CAST ( - ( + 84 ) AS INTEGER ) AS col1 FROM tab0
----
-84
-84
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8638
SELECT - ( - - COUNT( col0 ) ) DIV COUNT( * ) AS col0, 35 AS col0 FROM tab0
----
-1
35

skipif mysql # not compatible
query II rowsort label-8638
SELECT - ( - - COUNT ( col0 ) ) / COUNT ( * ) AS col0, 35 AS col0 FROM tab0
----
-1
35

onlyif mysql # DIV for integer division: 
query I rowsort label-8639
SELECT ALL 52 DIV + 75 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8639
SELECT ALL 52 / + 75 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT ALL - - SUM( - + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL - - SUM ( - + col1 ) FROM tab0 AS cor0
----
-103

query II rowsort
SELECT + + 24 AS col1, col0 + - 85 AS col0 FROM tab0 AS cor0
----
24
-70
24
12
24
2

query I rowsort
SELECT DISTINCT 12 * - - col2 AS col1 FROM tab1 cor0
----
1152
708
816

query I rowsort
SELECT + + col1 FROM tab0 cor0 WHERE NOT NULL <> + col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8645
SELECT DISTINCT + col1 + + CAST( NULL AS SIGNED ) + + + col1 * + col2 FROM tab0 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-8645
SELECT DISTINCT + col1 + + CAST ( NULL AS INTEGER ) + + + col1 * + col2 FROM tab0 WHERE NULL >= NULL
----

query I rowsort
SELECT 25 * - - col0 * - + col2 AS col1 FROM tab2
----
-108750
-26450
-64000

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * + col1 / + + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8649
SELECT DISTINCT ( MIN( ALL - 94 ) ) FROM tab1 AS cor0 WHERE NOT + col0 + - + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-8649
SELECT DISTINCT ( MIN ( ALL - 94 ) ) FROM tab1 AS cor0 WHERE NOT + col0 + - + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + - 88
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 * + 24 AND - + 11
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( ( + col0 ) / - col0 * ( + + col2 ) )
----

query I rowsort
SELECT - - col1 * col1 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN + - col0 * - col1 + col1 AND - 13 * - col2
----

query I rowsort
SELECT ( + 35 ) FROM tab2
----
35
35
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8654
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-8654
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, + 26 FROM tab1
----
NULL
26
NULL
26
NULL
26

query I rowsort
SELECT ALL 55 AS col0 FROM tab0 WHERE NOT - col2 < - 93
----
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT SUM( + 10 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-8656
SELECT SUM ( + 10 ) FROM tab0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8657
SELECT DISTINCT - CAST( + 92 AS SIGNED ) AS col2 FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-8657
SELECT DISTINCT - CAST ( + 92 AS INTEGER ) AS col2 FROM tab0
----
-92

query III rowsort
SELECT * FROM tab2 WHERE - col2 * + - col2 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 60 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8660
SELECT + + col1 * col0 + - col2 DIV + col0 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-8660
SELECT + + col1 * col0 + - col2 / + col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8661
SELECT ALL + + CAST( NULL AS SIGNED ) AS col2, 79 FROM tab0 AS cor0
----
NULL
79
NULL
79
NULL
79

skipif mysql # not compatible
query II rowsort label-8661
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col2, 79 FROM tab0 AS cor0
----
NULL
79
NULL
79
NULL
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8662
SELECT ALL + col2 * + ( + + CAST( col1 AS SIGNED ) ) AS col0 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-8662
SELECT ALL + col2 * + ( + + CAST ( col1 AS INTEGER ) ) AS col0 FROM tab1
----
1344
295
3196

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + 17 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8664
SELECT CAST( NULL AS SIGNED ) * + 80 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8664
SELECT CAST ( NULL AS INTEGER ) * + 80 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 7 FROM tab2 WHERE NOT - + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 - + col0 col2 FROM tab2 AS cor0
----
-141
-142
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 2 + - col0 * + col2 + col0 / - col2 > NULL
----

query I rowsort
SELECT ALL - 79 + - + ( - + col2 ) FROM tab1 cor0
----
-11
-20
17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8670
SELECT * FROM tab1 AS cor0 WHERE - CAST( col0 AS SIGNED ) * - + 29 > NULL
----

skipif mysql # not compatible
query III rowsort label-8670
SELECT * FROM tab1 AS cor0 WHERE - CAST ( col0 AS INTEGER ) * - + 29 > NULL
----

query I rowsort
SELECT DISTINCT 78 - + col1 AS col0 FROM tab0
----
-3
57
77

query I rowsort
SELECT - col1 + + 32 FROM tab0
----
-49
11
31

onlyif mysql # aggregate syntax: 
query II rowsort label-8673
SELECT ALL + SUM( DISTINCT - col0 ), - COUNT( ALL + col0 ) AS col0 FROM tab1 WHERE NOT + col2 IS NULL
----
-227
-3

skipif mysql # not compatible
query II rowsort label-8673
SELECT ALL + SUM ( DISTINCT - col0 ), - COUNT ( ALL + col0 ) AS col0 FROM tab1 WHERE NOT + col2 IS NULL
----
-227
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT ALL + MAX( DISTINCT col2 ) col2 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8674
SELECT ALL + MAX ( DISTINCT col2 ) col2 FROM tab1
----
96

query I rowsort
SELECT ALL + 90 * - + col1 AS col0 FROM tab0
----
-1890
-7290
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8676
SELECT CAST( + 42 AS SIGNED ) AS col1 FROM tab2
----
42
42
42

skipif mysql # not compatible
query I rowsort label-8676
SELECT CAST ( + 42 AS INTEGER ) AS col1 FROM tab2
----
42
42
42

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 + - + col2 > - 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 44 * - col2 * + + col1 * - 33 * + - col1 FROM tab0
----
-143748
-447748884
-6403320

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT DISTINCT COUNT( + 23 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8679
SELECT DISTINCT COUNT ( + 23 ) col1 FROM tab2
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8680
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - CAST( col2 AS DECIMAL ) / + + 42 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8680
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - CAST ( col2 AS REAL ) / + + 42 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + ( + col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8682
SELECT 84 * - col1 * col2 DIV + col1 FROM tab2
----
-1932
-3360
-4872

skipif mysql # not compatible
query I rowsort label-8682
SELECT 84 * - col1 * col2 / + col1 FROM tab2
----
-1932
-3360
-4872

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT + - COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8683
SELECT + - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT + col1 * - + 52 + - ( + 25 ) FROM tab0 cor0
----
-1117
-4237
-77

query I rowsort
SELECT + col2 * col0 FROM tab0 AS cor0 WHERE NOT ( NOT - col2 BETWEEN NULL AND - col2 / - col2 + - + col1 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT - + COUNT( * ) AS col0 FROM tab2 WHERE NOT col2 + - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8687
SELECT - + COUNT ( * ) AS col0 FROM tab2 WHERE NOT col2 + - col2 IS NULL
----
-3

query I rowsort
SELECT ( 47 ) + 78 * - col1 * + 6 AS col1 FROM tab0 AS cor0
----
-37861
-421
-9781

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT DISTINCT + MAX( - col2 ) + - + COUNT( 82 ) AS col2 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-8689
SELECT DISTINCT + MAX ( - col2 ) + - + COUNT ( 82 ) AS col2 FROM tab2 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT - - COUNT( * ) + - + COUNT( * ) col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8690
SELECT - - COUNT ( * ) + - + COUNT ( * ) col2 FROM tab2 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8691
SELECT DISTINCT - 35 DIV - + 84 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8691
SELECT DISTINCT - 35 / - + 84 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8692
SELECT ALL - + CAST( col0 AS SIGNED ) + + col0 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL - + CAST ( col0 AS INTEGER ) + + col0 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8693
SELECT ALL ( CAST( NULL AS SIGNED ) ) / - col2 + + col0 + - + 35 / - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8693
SELECT ALL ( CAST ( NULL AS INTEGER ) ) / - col2 + + col0 + - + 35 / - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8694
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( - col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8694
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( - col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8695
SELECT DISTINCT + 62 DIV - - col2 col1 FROM tab0
----
0
1
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8695
SELECT DISTINCT + 62 / - - col2 col1 FROM tab0
----
0
1
6

query I rowsort
SELECT + 94 FROM tab0, tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT DISTINCT SUM( ALL - ( + col1 ) ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-8697
SELECT DISTINCT SUM ( ALL - ( + col1 ) ) AS col1 FROM tab0
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-8698
SELECT DISTINCT - + col2 + + col2 DIV - col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8698
SELECT DISTINCT - + col2 + + col2 / - col1 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT - + col0 + + 96 * + 39 * col0 * ( - 70 ) + + - 40 * - col2 + + col1 AS col0 FROM tab0 AS cor0
----
-22800626
-25417896
-3929254

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - 74 AS col0, col0 * - col0 FROM tab0 AS cor0
----
-74
-225
-74
-7569
-74
-9409

query I rowsort
SELECT - 36 * col2 - + col0 + - 2 FROM tab1 AS cor0
----
-2211
-2541
-3509

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - - col0 + - ( - + col2 ) IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8704
SELECT col2, - 77 DIV - col0 AS col0 FROM tab0 cor0
----
10
0
47
5
99
0

skipif mysql # not compatible
query II rowsort label-8704
SELECT col2, - 77 / - col0 AS col0 FROM tab0 cor0
----
10
0
47
5
99
0

query I rowsort
SELECT - ( - 7 ) FROM tab2 AS cor0
----
7
7
7

query II rowsort
SELECT ALL - 25, - col1 * col0 + col0 AS col0 FROM tab1 AS cor0
----
-25
-340
-25
-4186
-25
-663

query II rowsort
SELECT DISTINCT + col1 AS col1, 43 FROM tab0 AS cor0
----
1
43
21
43
81
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8708
SELECT DISTINCT CAST( - + ( - + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8708
SELECT DISTINCT CAST ( - + ( - + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT ALL + MIN( + col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL + MIN ( + col1 ) AS col1 FROM tab0 AS cor0
----
1

query II rowsort
SELECT + col2, - col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 * - - col1 col1 FROM tab1
----
1222
130
364

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT DISTINCT COUNT( * ) * COUNT( * ) col1 FROM tab1 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8712
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) col1 FROM tab1 WHERE NULL IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT ALL + COUNT( * ) * + 65 FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL + COUNT ( * ) * + 65 FROM tab1
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT COUNT( - col0 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8714
SELECT COUNT ( - col0 ) col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT SUM( + - col1 ) * - COUNT( DISTINCT - 76 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8715
SELECT SUM ( + - col1 ) * - COUNT ( DISTINCT - 76 ) AS col2 FROM tab0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8716
SELECT col1 * - 32 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8716
SELECT col1 * - 32 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - 75 ) AS col0 FROM tab1
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT ALL - + SUM( - col1 ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8718
SELECT ALL - + SUM ( - col1 ) AS col2 FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT + col0 * - 72 * - 23 FROM tab2 AS cor0
----
105984
124200
76176

query I rowsort
SELECT ALL col1 * col0 + + col2 AS col2 FROM tab1 AS cor0
----
4345
484
810

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 INNER JOIN tab1 AS cor1 ON NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8722
SELECT DISTINCT COUNT( * ) * + 47 AS col2, + COUNT( * ) + + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1, tab2 AS cor0
----
423
18

skipif mysql # not compatible
query II rowsort label-8722
SELECT DISTINCT COUNT ( * ) * + 47 AS col2, + COUNT ( * ) + + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0
----
423
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8723
SELECT - 55 * + COUNT( * ), CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0
----
-495
NULL

skipif mysql # not compatible
query II rowsort label-8723
SELECT - 55 * + COUNT ( * ), CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0
----
-495
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 col1 FROM tab0 cor0
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT DISTINCT + COUNT( * ) + + 29 FROM tab1 cor0
----
32

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT + COUNT ( * ) + + 29 FROM tab1 cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT - MAX( ALL - col1 ) AS col1 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-8726
SELECT - MAX ( ALL - col1 ) AS col1 FROM tab2 cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8727
SELECT DISTINCT - 34 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT 85 IN ( + ( 44 ), - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8727
SELECT DISTINCT - 34 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 85 IN ( + ( 44 ), - col2 )
----
NULL

query I rowsort
SELECT 87 AS col1 FROM tab0 WHERE + col1 - + 67 IS NOT NULL
----
87
87
87

query II rowsort
SELECT col0 * - col2 + + 9 * + col1 AS col1, + 40 AS col0 FROM tab0
----
-681
40
-9594
40
24
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT DISTINCT - COUNT( 77 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8730
SELECT DISTINCT - COUNT ( 77 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8731
SELECT ALL CAST( + + col0 AS SIGNED ) col1, col1 * col2 AS col1 FROM tab2
----
46
1173
64
3080
75
3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8731
SELECT ALL CAST ( + + col0 AS INTEGER ) col1, col1 * col2 AS col1 FROM tab2
----
46
1173
64
3080
75
3886

query I rowsort
SELECT + col2 + + 24 * - - 41 AS col2 FROM tab1
----
1043
1052
1080

query I rowsort
SELECT col1 + - + col2 AS col1 FROM tab2
----
28
37
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8734
SELECT col2 DIV - 54 + - col2 - 63 AS col0 FROM tab0
----
-110
-163
-73

skipif mysql # not compatible
query I rowsort label-8734
SELECT col2 / - 54 + - col2 - 63 AS col0 FROM tab0
----
-110
-163
-73

query I rowsort
SELECT + col2 * - col2 + - col2 + - col1 + - col1 * + + 87 AS col1 FROM tab1
----
-10544
-3980
-8828

query I rowsort
SELECT + col1 + - + col0 AS col0 FROM tab0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT ALL 18 * - - COUNT( * ) AS col0 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL 18 * - - COUNT ( * ) AS col0 FROM tab1
----
54

query I rowsort
SELECT - - col1 - - + col2 FROM tab2 WHERE NULL > + 22 / + - col1
----

query I rowsort
SELECT DISTINCT - col2 * col2 + - + col2 AS col1 FROM tab0 AS cor0
----
-110
-2256
-9900

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND - - 0 + col2 + + 73
----
87
21
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + + 51 + 16 * - - ( - + col2 ) + + 91 / + col2 NOT IN ( + + col1, + ( col0 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8742
SELECT DISTINCT + - 9 * - 80, CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
720
NULL

skipif mysql # not compatible
query II rowsort label-8742
SELECT DISTINCT + - 9 * - 80, CAST ( CAST ( NULL AS INTEGER ) AS REAL ) AS col2 FROM tab0 AS cor0
----
720
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT DISTINCT + SUM( - col2 ) col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8743
SELECT DISTINCT + SUM ( - col2 ) col2 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN 78 AND - 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT DISTINCT + + COUNT( DISTINCT + col2 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8745
SELECT DISTINCT + + COUNT ( DISTINCT + col2 ) AS col2 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8746
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) col2, col0 AS col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8746
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) col2, col0 AS col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # DIV for integer division: 
query II rowsort label-8747
SELECT DISTINCT + col2 * + col0, col1 DIV - - col2 AS col2 FROM tab1 AS cor0
----
4896
0
5015
0
6188
0

skipif mysql # not compatible
query II rowsort label-8747
SELECT DISTINCT + col2 * + col0, col1 / - - col2 AS col2 FROM tab1 AS cor0
----
4896
0
5015
0
6188
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 * + + 7 col0 FROM tab1
----
-245
-245
-245

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT - COUNT( 85 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8749
SELECT - COUNT ( 85 ) AS col0 FROM tab1
----
-3

query II rowsort
SELECT + 48, 62 AS col0 FROM tab2
----
48
62
48
62
48
62

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN - col2 - 64 * + - col1 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT ALL SUM( + col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8752
SELECT ALL SUM ( + col0 ) FROM tab0
----
199

query II rowsort
SELECT + 37, + 66 * + - col1 AS col2 FROM tab2
----
37
-3366
37
-4422
37
-5082

query II rowsort
SELECT DISTINCT + - col1, 66 - col0 AS col1 FROM tab2 AS cor0
----
-51
20
-67
-9
-77
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = 83
----
0

skipif mysql # not compatible
query I rowsort label-8755
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = 83
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 92 + 80 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 34 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT 72 * COUNT( * ) col1 FROM tab2 AS cor0
----
216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8758
SELECT 72 * COUNT ( * ) col1 FROM tab2 AS cor0
----
216

query I rowsort
SELECT - col1 * 62 FROM tab1 AS cor0
----
-2914
-310
-868

query I rowsort
SELECT DISTINCT + 49 + + + 17 AS col0 FROM tab1 AS cor0
----
66

query I rowsort
SELECT + 9 + + 67 AS col1 FROM tab1 AS cor0
----
76
76
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8762
SELECT ALL - col0 * 51 + + 46 DIV - 22 FROM tab2 AS cor0
----
-2348
-3266
-3827

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL - col0 * 51 + + 46 / - 22 FROM tab2 AS cor0
----
-2348
-3266
-3827

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT DISTINCT - COUNT( * ) + COUNT( * ) AS col0 FROM tab2 cor0 WHERE ( NOT ( - 17 IS NOT NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-8763
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE ( NOT ( - 17 IS NOT NULL ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8764
SELECT + - col1 + 68 + + + ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8764
SELECT + - col1 + 68 + + + ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - ( + col1 ) + ( - col1 ) FROM tab1 AS cor0
----
-10
-28
-94

query I rowsort
SELECT ALL 87 + + col1 - + 17 AS col0 FROM tab1 AS cor0
----
117
75
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8767
SELECT - + 16 + - col2 DIV col1 DIV col2 + + + 93 FROM tab1 AS cor0
----
77
77
77

skipif mysql # not compatible
query I rowsort label-8767
SELECT - + 16 + - col2 / col1 / col2 + + + 93 FROM tab1 AS cor0
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 * + + col2 + + col1 * col2 * + col0 col1 FROM tab1 AS cor0
----
297228
30621
77568

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT + - MAX( DISTINCT - 11 ) col2 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8769
SELECT + - MAX ( DISTINCT - 11 ) col2 FROM tab0 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT - MIN( 41 ) AS col2 FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-8770
SELECT - MIN ( 41 ) AS col2 FROM tab1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT ALL COUNT( * ) + - + 31 AS col1 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-8771
SELECT ALL COUNT ( * ) + - + 31 AS col1 FROM tab1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT + SUM( + col2 ) * - + ( COUNT( * ) ) AS col2 FROM tab2
----
-363

skipif mysql # not compatible
query I rowsort label-8772
SELECT + SUM ( + col2 ) * - + ( COUNT ( * ) ) AS col2 FROM tab2
----
-363

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8773
SELECT col1 - - 61 - + col1 AS col0, CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE + 71 IS NOT NULL
----
61
NULL
61
NULL
61
NULL

skipif mysql # not compatible
query II rowsort label-8773
SELECT col1 - - 61 - + col1 AS col0, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE + 71 IS NOT NULL
----
61
NULL
61
NULL
61
NULL

query I rowsort
SELECT - col0 + + 36 AS col0 FROM tab1 AS cor0
----
-15
-49
-55

query I rowsort
SELECT ALL - 26 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT - 18 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 45 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 31 AS col1 FROM tab2, tab1 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT COUNT( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8779
SELECT COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE NOT - - 59 - - + 5 IS NOT NULL
----

query I rowsort
SELECT ALL - 73 + + col2 AS col2 FROM tab0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT - + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-59
-68
-96

query II rowsort
SELECT ALL col1 AS col2, col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT ALL + + 5 AS col2 FROM tab0 AS cor0
----
5
5
5

query II rowsort
SELECT DISTINCT - - col1 AS col0, - col0 + col2 FROM tab1 AS cor0
----
14
45
47
-23
5
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT + + COUNT( * ) * 26 AS col0 FROM tab1 cor0
----
78

skipif mysql # not compatible
query I rowsort label-8786
SELECT + + COUNT ( * ) * 26 AS col0 FROM tab1 cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT + COUNT( * ) * - ( + COUNT( * ) ) + - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8787
SELECT + COUNT ( * ) * - ( + COUNT ( * ) ) + - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-6

query II rowsort
SELECT DISTINCT - col1 AS col0, col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query I rowsort
SELECT DISTINCT - + ( - 83 ) FROM tab1 AS cor0
----
83

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 4 * + col2 < + + col2 / col0
----

query I rowsort
SELECT ALL 15 FROM tab0 WHERE NOT - - col2 IS NULL
----
15
15
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8792
SELECT CAST( CAST( + - MAX( DISTINCT - + col1 ) AS SIGNED ) AS SIGNED ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8792
SELECT CAST ( CAST ( + - MAX ( DISTINCT - + col1 ) AS INTEGER ) AS INTEGER ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8793
SELECT + CAST( NULL AS SIGNED ) * + ( + ( - ( + col0 ) ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8793
SELECT + CAST ( NULL AS INTEGER ) * + ( + ( - ( + col0 ) ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + 47 AS col2 FROM tab2
----
111
122
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT ALL - ( - MAX( + + 14 ) ) FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL - ( - MAX ( + + 14 ) ) FROM tab1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT DISTINCT 66 * ( - + COUNT( ALL col0 ) ) col2 FROM tab0
----
-198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8796
SELECT DISTINCT 66 * ( - + COUNT ( ALL col0 ) ) col2 FROM tab0
----
-198

query II rowsort
SELECT ALL + col0 * col2 * - col1 AS col2, 97 + - + 54 AS col1 FROM tab1 AS cor0
----
-25075
43
-290836
43
-68544
43

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL IN ( + col1 * - col1, + col0, - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8799
SELECT - COUNT( * ) AS col0, SUM( + 56 ) FROM tab2 cor0
----
-3
168

skipif mysql # not compatible
query II rowsort label-8799
SELECT - COUNT ( * ) AS col0, SUM ( + 56 ) FROM tab2 cor0
----
-3
168

query I rowsort
SELECT DISTINCT - col2 + col1 * + col1 * - + col0 - col2 + + - col1 * - col0 FROM tab2 AS cor0
----
-117346
-331766
-374608

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 25 + + 91 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - col2 * + 2 col1 FROM tab1 AS cor0
----
113
178
89

onlyif mysql # DIV for integer division: 
query I rowsort label-8803
SELECT + ( + + 42 ) DIV col2 - col0 AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8803
SELECT + ( + + 42 ) / col2 - col0 AS col1 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT + col0 + + 32 AS col0 FROM tab2
----
107
78
96

query I rowsort
SELECT ALL + ( + - col0 ) * col0 * + col2 * - 1 + + + col2 - - col1 FROM tab1 WHERE NOT - - col1 BETWEEN + col0 AND ( + + col2 * - ( + - col0 ) )
----
249806
426339
563223

query I rowsort
SELECT ALL col1 * - 68 AS col1 FROM tab1
----
-3196
-340
-952

query I rowsort
SELECT - 25 + - 59 + + col0 AS col2 FROM tab1
----
-33
1
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8809
SELECT + col1 FROM tab2 WHERE NULL BETWEEN - - col2 AND + + col0 + - 17 + - - CAST( - 58 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8809
SELECT + col1 FROM tab2 WHERE NULL BETWEEN - - col2 AND + + col0 + - 17 + - - CAST ( - 58 AS INTEGER )
----

query I rowsort
SELECT + col2 + + + col2 * ( - col0 ) * - 52 AS col2 FROM tab2
----
133160
226258
55039

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8811
SELECT DISTINCT col1 * + ( + ( - - CAST( - col2 AS SIGNED ) ) ) FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-8811
SELECT DISTINCT col1 * + ( + ( - - CAST ( - col2 AS INTEGER ) ) ) FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT col1 * 63 + 80 AS col1 FROM tab2
----
3293
4301
4931

onlyif mysql # DIV for integer division: 
query I rowsort label-8813
SELECT DISTINCT - col0 DIV 81 AS col2 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8813
SELECT DISTINCT - col0 / 81 AS col2 FROM tab0
----
-1
0

query I rowsort
SELECT DISTINCT - col0 + - 91 + - col1 AS col0 FROM tab2
----
-188
-232
-233

query I rowsort
SELECT ALL 85 + - col2 FROM tab1
----
-11
17
26

onlyif mysql # DIV for integer division: 
query I rowsort label-8816
SELECT ALL - 22 DIV - + 22 - col2 col1 FROM tab2 AS cor0
----
-22
-39
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8816
SELECT ALL - 22 / - + 22 - col2 col1 FROM tab2 AS cor0
----
-22
-39
-57

query I rowsort
SELECT DISTINCT col1 + + + col2 AS col1 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 82 * - col2 * 95 > + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 59 * col0 AS col2 FROM tab2 AS cor0
----
-2714
-3776
-4425

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8820
SELECT DISTINCT - col2 * - CAST( NULL AS DECIMAL ) + col0 AS col0 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND + - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-8820
SELECT DISTINCT - col2 * - CAST ( NULL AS REAL ) + col0 AS col0 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND + - 87
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8821
SELECT DISTINCT - col1 DIV + ( - col1 ) AS col1, + col0 AS col1 FROM tab0
----
1
15
1
87
1
97

skipif mysql # not compatible
query II rowsort label-8821
SELECT DISTINCT - col1 / + ( - col1 ) AS col1, + col0 AS col1 FROM tab0
----
1
15
1
87
1
97

query I rowsort
SELECT DISTINCT - 36 * col1 * - 70 AS col0 FROM tab1
----
118440
12600
35280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col0, 21 FROM tab0
----
15
21
87
21
97
21

query I rowsort
SELECT DISTINCT - col2 * + 81 AS col1 FROM tab2
----
-1863
-3240
-4698

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT DISTINCT SUM( - col1 ) col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8827
SELECT DISTINCT SUM ( - col1 ) col1 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT - MIN( + col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8828
SELECT - MIN ( + col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 * - col2 + + + col1 col1 FROM tab2 AS cor0
----
-1099
-1923
-2833

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 36 col2, 43 * - + col0 + - - col2 col2 FROM tab1 AS cor0
----
-36
-2097
-36
-3596
-36
-3845

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - + col0 col1 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8832
SELECT ALL COUNT( * ) DIV + + MIN( DISTINCT col1 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL COUNT ( * ) / + + MIN ( DISTINCT col1 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT col0 * + 84 + col2 AS col0 FROM tab2 WHERE NOT + - col1 * + col0 + - col0 >= 36 / - 58 + + col2
----
3887
5416
6358

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT - ( - 2 ) * + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-8834
SELECT - ( - 2 ) * + COUNT ( * ) FROM tab0
----
6

query II rowsort
SELECT 28, + col2 FROM tab2
----
28
23
28
40
28
58

query I rowsort
SELECT - 7 FROM tab2 WHERE NOT 78 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8837
SELECT DISTINCT - 64 + - - col1 + - - col1 * + col2, CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1294
NULL
236
NULL
3179
NULL

skipif mysql # not compatible
query II rowsort label-8837
SELECT DISTINCT - 64 + - - col1 + - - col1 * + col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1294
NULL
236
NULL
3179
NULL

query I rowsort
SELECT ALL ( + - col2 ) + - col1 FROM tab0 cor0
----
-100
-128
-31

query I rowsort
SELECT ALL - + ( - col1 ) + + col0 AS col2 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT ALL - 88 AS col0 FROM tab0
----
-88
-88
-88

query I rowsort
SELECT ALL + col0 * - - col1 * + col1 - - col0 + col2 AS col2 FROM tab0 AS cor0
----
293
38464
98477

query I rowsort
SELECT ALL - col1 + - 69 FROM tab2 cor0
----
-120
-136
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-8843
SELECT + col0 * col0 + - col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
2115
4095
5624

skipif mysql # not compatible
query I rowsort label-8843
SELECT + col0 * col0 + - col0 / + col0 AS col0 FROM tab2 AS cor0
----
2115
4095
5624

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT 62 IS NULL ) OR ( NULL ) > col0 * - col2
----

query I rowsort
SELECT + col1 + - 25 * col0 FROM tab0 AS cor0
----
-2154
-2424
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT ALL + 4 * - 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-8846
SELECT ALL + 4 * - COUNT ( * ) + COUNT ( * ) col0 FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8847
SELECT ALL - 72 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL - 72 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * + 5 * + col1 - + 46 + + col1 + - - col2 * col1 * + col1 + - col1 FROM tab1
----
-46
12050
134186

query II rowsort
SELECT col1, + col1 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8850
SELECT ALL + CAST( - - col1 AS SIGNED ) * - ( + + 63 ) * - - col2 * - col1 * - 41 - - col2 AS col2 FROM tab0
----
-11391020
-255618
-796511914

skipif mysql # not compatible
query I rowsort label-8850
SELECT ALL + CAST ( - - col1 AS INTEGER ) * - ( + + 63 ) * - - col2 * - col1 * - 41 - - col2 AS col2 FROM tab0
----
-11391020
-255618
-796511914

query I rowsort
SELECT DISTINCT 72 * col2 - + - col1 AS col2 FROM tab0
----
3465
7129
741

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 * + col0 IS NULL AND NOT ( NULL ) BETWEEN + col0 + 16 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT 6 - - COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8853
SELECT 6 - - COUNT ( * ) AS col2 FROM tab2
----
9

query II rowsort
SELECT DISTINCT - + col1 AS col0, - col0 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15

query II rowsort
SELECT col2 AS col0, + 58 AS col1 FROM tab0 AS cor0
----
10
58
47
58
99
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8856
SELECT DISTINCT CAST( + 69 AS SIGNED ) * + - 52 FROM tab2 AS cor0 WHERE ( NULL IN ( - 82, - col1 ) )
----

skipif mysql # not compatible
query I rowsort label-8856
SELECT DISTINCT CAST ( + 69 AS INTEGER ) * + - 52 FROM tab2 AS cor0 WHERE ( NULL IN ( - 82, - col1 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8857
SELECT - MIN( ALL - + 19 ) AS col0, - 87 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
19
-87

skipif mysql # not compatible
query II rowsort label-8857
SELECT - MIN ( ALL - + 19 ) AS col0, - 87 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
19
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-8858
SELECT DISTINCT + col2 DIV - + col2 col1, + col2 * 9 + - col1 FROM tab0
----
-1
342
-1
69
-1
890

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8858
SELECT DISTINCT + col2 / - + col2 col1, + col2 * 9 + - col1 FROM tab0
----
-1
342
-1
69
-1
890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8859
SELECT - - MAX( ALL - col0 ) DIV + COUNT( ALL - col0 ) FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8859
SELECT - - MAX ( ALL - col0 ) / + COUNT ( ALL - col0 ) FROM tab2 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 58 col0 FROM tab0 AS cor0 WHERE NOT NULL <> - col1
----

query I rowsort
SELECT - + col1 * col0 FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----

query II rowsort
SELECT col1 * + - col0 AS col0, - col1 * 3 * 27 FROM tab2 AS cor0
----
-2346
-4131
-4928
-6237
-5025
-5427

onlyif mysql # DIV for integer division: 
query I rowsort label-8863
SELECT ALL - col1 DIV 21 * - 86 col0 FROM tab0
----
0
258
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8863
SELECT ALL - col1 / 21 * - 86 col0 FROM tab0
----
0
258
86

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT - MIN( + col1 ) col1 FROM tab1
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8865
SELECT - MIN ( + col1 ) col1 FROM tab1
----
-5

query II rowsort
SELECT - col1 AS col2, col2 * col2 FROM tab2
----
-51
529
-67
3364
-77
1600

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 93 <= + col2 / col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col2, col1 AS col0 FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT ALL - - 70 AS col2 FROM tab1 AS cor0 WHERE ( + col2 ) BETWEEN + 66 AND - 10
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col1 * + col1 AND ( - col2 ) + - col2 / - 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT - COUNT( * ) col1 FROM tab1 WHERE 72 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8871
SELECT - COUNT ( * ) col1 FROM tab1 WHERE 72 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT col2 - 8 AS col2 FROM tab0
----
2
39
91

query I rowsort
SELECT DISTINCT + col2 + - + col1 + + col0 * - 64 AS col1 FROM tab0 AS cor0
----
-5579
-6110
-994

query II rowsort
SELECT ALL 40 AS col2, col2 FROM tab0 AS cor0
----
40
10
40
47
40
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8875
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + - 42 / - col2 * + col0 + + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8875
SELECT DISTINCT CAST ( NULL AS REAL ) + + - 42 / - col2 * + col0 + + col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 10 + + col1 FROM tab1 AS cor0
----
15
24
57

query I rowsort
SELECT 20 + col0 + col0 FROM tab0 AS cor0
----
194
214
50

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 67 * 57 - - col0 * - 43 IS NULL
----

query I rowsort
SELECT 26 + + col1 FROM tab2
----
103
77
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8880
SELECT + col2 * 74 / + + CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8880
SELECT + col2 * 74 / + + CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 42 + - col2 + - 95 AS col0 FROM tab1 WHERE + + col1 IS NULL
----

query I rowsort
SELECT ALL - col1 + - ( - col1 ) FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8883
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) AS col0, 12 FROM tab0
----
3
12

skipif mysql # not compatible
query II rowsort label-8883
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col0, 12 FROM tab0
----
3
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT - MIN( col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8884
SELECT - MIN ( col2 ) FROM tab1
----
-59

query I rowsort
SELECT 91 FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NULL
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT + MIN( + - col0 ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8886
SELECT + MIN ( + - col0 ) AS col2 FROM tab1
----
-91

query II rowsort
SELECT ALL col1 AS col1, + col2 AS col0 FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT ALL col1 * + + col1 FROM tab0
----
1
441
6561

query I rowsort
SELECT 50 * col0 AS col0 FROM tab0 AS cor0
----
4350
4850
750

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT DISTINCT + + COUNT( * ) * SUM( col2 ) * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-2007

skipif mysql # not compatible
query I rowsort label-8890
SELECT DISTINCT + + COUNT ( * ) * SUM ( col2 ) * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-2007

query I rowsort
SELECT DISTINCT col0 * + col0 FROM tab1 cor0 WHERE NOT 37 IS NULL
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT DISTINCT - SUM( + - col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8892
SELECT DISTINCT - SUM ( + - col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL ( 17 ) AS col2 FROM tab0
----
17
17
17

query I rowsort
SELECT 53 + + col2 FROM tab1 WHERE NULL <= - + col1
----

query I rowsort
SELECT DISTINCT - 40 + ( col1 ) FROM tab0 cor0
----
-19
-39
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 AS cor0 WHERE NULL = col1
----

query I rowsort
SELECT ALL + - 27 + col0 FROM tab2 AS cor0
----
19
37
48

query I rowsort
SELECT - - col0 + - + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 23 * - + col1 AS col1 FROM tab1
----
-1081
-115
-322

query I rowsort
SELECT DISTINCT 56 - + col2 + 77 FROM tab0
----
123
34
86

query I rowsort
SELECT col2 * + + col1 + + col2 + - col0 * + - col0 - col0 FROM tab0 AS cor0
----
4064
7702
9510

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8902
SELECT + col0 * - + 63 / + - col0 * CAST( + col1 AS DECIMAL ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE 23 < - 35
----

skipif mysql # not compatible
query I rowsort label-8902
SELECT + col0 * - + 63 / + - col0 * CAST ( + col1 AS REAL ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE 23 < - 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT SUM( - + 93 ) FROM tab2 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-8903
SELECT SUM ( - + 93 ) FROM tab2 AS cor0
----
-279

query I rowsort
SELECT ALL col2 + + + col2 - - - col2 AS col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL + col1 * + - col2 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 55 ) * + col1 + - col0 col0 FROM tab0 AS cor0
----
-42
1068
4440

query I rowsort
SELECT DISTINCT 16 + - col0 AS col2 FROM tab2 AS cor0
----
-30
-48
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT - - MIN( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8908
SELECT - - MIN ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT - ( - + col1 ) FROM tab0 WHERE NOT - - col2 IS NULL
----
1
21
81

query I rowsort
SELECT ALL - 68 * 15 * ( 30 ) FROM tab1, tab0 AS cor0
----
9 values hashing to c6a98b126445703a22881b5e037f9011

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8911
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN CAST( - col0 AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8911
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN CAST ( - col0 AS REAL ) AND NULL
----

query I rowsort
SELECT - col2 * - 13 + - col1 AS col1 FROM tab2 AS cor0
----
248
443
687

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT 38 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT + COUNT( - col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8914
SELECT + COUNT ( - col1 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - 77 * + - 23 + + col1 * + - col1 + - + 60 AS col1 FROM tab0 AS cor0
----
-4850
1270
1710

query I rowsort
SELECT DISTINCT + - col1 * + + col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 + + 99 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col1 AS col0, + col2 AS col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT COUNT( DISTINCT col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8919
SELECT COUNT ( DISTINCT col0 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NULL < - col0 * + col1 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, - col1 col2 FROM tab1
----
51
-14
85
-5
91
-47

query I rowsort
SELECT - 80 + + + col2 FROM tab0
----
-33
-70
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 19 * col0 col2 FROM tab2
----
1216
1425
874

query I rowsort
SELECT DISTINCT - 92 * + - 17 AS col1 FROM tab0
----
1564

query I rowsort
SELECT ALL 43 * - col0 FROM tab2 AS cor0
----
-1978
-2752
-3225

query I rowsort
SELECT 58 + + col1 FROM tab2 AS cor0
----
109
125
135

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT ALL + + COUNT( * ) * - MAX( + 5 ) + + - 83 AS col0 FROM tab0 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-8928
SELECT ALL + + COUNT ( * ) * - MAX ( + 5 ) + + - 83 AS col0 FROM tab0 AS cor0
----
-98

query I rowsort
SELECT ALL - + 34 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query II rowsort
SELECT DISTINCT - 97 + - ( col0 ) + + col2, col2 AS col0 FROM tab1
----
-120
68
-123
59
-52
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8931
SELECT DISTINCT col2 DIV + col0 * - - col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8931
SELECT DISTINCT col2 / + col0 * - - col2 FROM tab2
----
0

query I rowsort
SELECT - col1 / - - col2 * - - 52 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 64 AS col0 FROM tab0 cor0
----
64

query I rowsort
SELECT + - 69 AS col0 FROM tab0 AS cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT - SUM( col1 ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8936
SELECT - SUM ( col1 ) AS col0 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT DISTINCT 51 * + COUNT( - - col0 ) AS col0 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-8937
SELECT DISTINCT 51 * + COUNT ( - - col0 ) AS col0 FROM tab1
----
153

query I rowsort
SELECT DISTINCT + col2 * - - col2 FROM tab0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8939
SELECT CAST( NULL AS SIGNED ) AS col2, 58 AS col0 FROM tab0
----
NULL
58
NULL
58
NULL
58

skipif mysql # not compatible
query II rowsort label-8939
SELECT CAST ( NULL AS INTEGER ) AS col2, 58 AS col0 FROM tab0
----
NULL
58
NULL
58
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT ALL + 69 + + + COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
72

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL + 69 + + + COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * 89 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 16 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT + COUNT( * ) - + - COUNT( * ) - + 76 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-58

skipif mysql # not compatible
query I rowsort label-8943
SELECT + COUNT ( * ) - + - COUNT ( * ) - + 76 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + - col1 col2 FROM tab2 cor0
----
-13
-5
8

query I rowsort
SELECT DISTINCT - + 66 + col2 FROM tab0 AS cor0
----
-19
-56
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT COUNT( * ) + + 39 + + + 25 * - + 73 FROM tab2 AS cor0
----
-1783

skipif mysql # not compatible
query I rowsort label-8946
SELECT COUNT ( * ) + + 39 + + + 25 * - + 73 FROM tab2 AS cor0
----
-1783

query I rowsort
SELECT - col2 * - + 42 + col0 + - col2 FROM tab2 AS cor0
----
1704
2453
989

onlyif mysql # DIV for integer division: 
query I rowsort label-8948
SELECT - col0 DIV + col1 + + 49 FROM tab1 AS cor0
----
32
46
48

skipif mysql # not compatible
query I rowsort label-8948
SELECT - col0 / + col1 + + 49 FROM tab1 AS cor0
----
32
46
48

query II rowsort
SELECT + col0 AS col0, + col1 AS col0 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT MAX( - + col0 ) * - 15 FROM tab1
----
765

skipif mysql # not compatible
query I rowsort label-8950
SELECT MAX ( - + col0 ) * - 15 FROM tab1
----
765

query I rowsort
SELECT + col0 * + 28 * 58 FROM tab1
----
138040
147784
82824

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8952
SELECT DISTINCT - col1 * + col2 / + - col0 * + CAST( NULL AS DECIMAL ) * + 60 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8952
SELECT DISTINCT - col1 * + col2 / + - col0 * + CAST ( NULL AS REAL ) * + 60 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT + + COUNT( * ) * - + 73 - + 70 FROM tab1 cor0
----
-289

skipif mysql # not compatible
query I rowsort label-8953
SELECT + + COUNT ( * ) * - + 73 - + 70 FROM tab1 cor0
----
-289

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL = col1 * 26
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8955
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8955
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8956
SELECT + 51 AS col1, COUNT( * ) - 10 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
51
-1

skipif mysql # not compatible
query II rowsort label-8956
SELECT + 51 AS col1, COUNT ( * ) - 10 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
51
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8957
SELECT + - 89 DIV - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8957
SELECT + - 89 / - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8958
SELECT DISTINCT - 27 FROM tab0 WHERE col0 * + CAST( - + col1 AS DECIMAL ) - col1 > - 60
----

skipif mysql # not compatible
query I rowsort label-8958
SELECT DISTINCT - 27 FROM tab0 WHERE col0 * + CAST ( - + col1 AS REAL ) - col1 > - 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT - COUNT( * ) * COUNT( * ) FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8959
SELECT - COUNT ( * ) * COUNT ( * ) FROM tab2 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT ALL COUNT( * ) - + 49 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
-49

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL COUNT ( * ) - + 49 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
-49

query I rowsort
SELECT 91 AS col1 FROM tab0 cor0 WHERE NOT ( col1 * + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT COUNT( DISTINCT - + col0 ) * - 31 AS col2 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-8962
SELECT COUNT ( DISTINCT - + col0 ) * - 31 AS col2 FROM tab1 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-8963
SELECT DISTINCT + - COUNT( * ), - 36 * 59 AS col1 FROM tab1 AS cor0
----
-3
-2124

skipif mysql # not compatible
query II rowsort label-8963
SELECT DISTINCT + - COUNT ( * ), - 36 * 59 AS col1 FROM tab1 AS cor0
----
-3
-2124

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT ALL - 25 * + + COUNT( * ) FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL - 25 * + + COUNT ( * ) FROM tab0
----
-75

query I rowsort
SELECT DISTINCT col1 * - 65 FROM tab2
----
-3315
-4355
-5005

onlyif mysql # DIV for integer division: 
query I rowsort label-8966
SELECT ALL + 57 DIV + col2 AS col1 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8966
SELECT ALL + 57 / + col2 AS col1 FROM tab2
----
0
1
2

query I rowsort
SELECT ALL + - 84 AS col2 FROM tab1 AS cor0
----
-84
-84
-84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 10 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT DISTINCT - COUNT( ALL + col1 ) * - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8969
SELECT DISTINCT - COUNT ( ALL + col1 ) * - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT col0 * + + col1 * 10 FROM tab0 cor0
----
12150
18270
970

onlyif mysql # DIV for integer division: 
query I rowsort label-8971
SELECT - col0 DIV ( - col1 ) AS col2 FROM tab1 cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-8971
SELECT - col0 / ( - col1 ) AS col2 FROM tab1 cor0
----
1
17
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN - 61 AND - + 40 + + ( + + col1 ) - - 55 * + col0 + - + col0 * col0 * 86 + 2 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT DISTINCT + COUNT( * ) + + 75 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
78

skipif mysql # not compatible
query I rowsort label-8973
SELECT DISTINCT + COUNT ( * ) + + 75 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
78

query I rowsort
SELECT DISTINCT + col1 + col0 + + - ( - 48 ) * - col0 FROM tab2 cor0
----
-2111
-2931
-3458

query I rowsort
SELECT ALL 55 * + + 27 - - 86 + - 48 AS col0 FROM tab1
----
1523
1523
1523

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8976
SELECT DISTINCT - col2 * - + ( + 71 ) - 29 col0, col1 + + CAST( NULL AS SIGNED ) FROM tab0
----
3308
NULL
681
NULL
7000
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8976
SELECT DISTINCT - col2 * - + ( + 71 ) - 29 col0, col1 + + CAST ( NULL AS INTEGER ) FROM tab0
----
3308
NULL
681
NULL
7000
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 73 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 38, col2 + + 6 AS col1 FROM tab2
----
-38
29
-38
46
-38
64

query I rowsort
SELECT ( + + col1 ) * + col2 * - col2 + - col1 + col0 AS col0 FROM tab1
----
-128987
-17325
-217284

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab2 WHERE NOT ( + + col1 * + + 85 ) >= - col0 * - + col2
----
0

skipif mysql # not compatible
query I rowsort label-8980
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( + + col1 * + + 85 ) >= - col0 * - + col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8981
SELECT + col1 / 88 + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + col2 + - col0 * - - 3 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8981
SELECT + col1 / 88 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + col2 + - col0 * - - 3 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - - ( - col1 ) ) FROM tab1
----
-14
-47
-5

query I rowsort
SELECT col0 + + 33 FROM tab1
----
118
124
84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8984
SELECT + col0 + - + ( - CAST( NULL AS DECIMAL ) ) / - - col2 * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8984
SELECT + col0 + - + ( - CAST ( NULL AS REAL ) ) / - - col2 * col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + - col1 + - col0 * col1 AS col0 FROM tab1 AS cor0
----
-345
-4233
-677

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8986
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NULL <= + 14
----

skipif mysql # not compatible
query I rowsort label-8986
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NULL <= + 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT DISTINCT - COUNT( * ) col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8987
SELECT DISTINCT - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

query I rowsort
SELECT - - 54 * - col2 AS col1 FROM tab2 AS cor0
----
-1242
-2160
-3132

query I rowsort
SELECT DISTINCT - 42 AS col0 FROM tab1 cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT + + ( COUNT( * ) ) + 82 + + MIN( ALL + + 59 ) AS col0 FROM tab1 cor0 WHERE NOT - col1 >= + col0
----
144

skipif mysql # not compatible
query I rowsort label-8990
SELECT + + ( COUNT ( * ) ) + 82 + + MIN ( ALL + + 59 ) AS col0 FROM tab1 cor0 WHERE NOT - col1 >= + col0
----
144

query I rowsort
SELECT ALL + 58 FROM tab0 cor0
----
58
58
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8992
SELECT DISTINCT SUM( + col2 ) * + + COUNT( * ) * + + 21 * - AVG ( ALL - ( + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8992
SELECT DISTINCT SUM ( + col2 ) * + + COUNT ( * ) * + + 21 * - AVG ( ALL - ( + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 * - 58 AS col2 FROM tab2 AS cor0
----
-2958
-3886
-4466

query I rowsort
SELECT ALL + - col0 * - col0 * - col0 + 35 AS col2 FROM tab2 AS cor0
----
-262109
-421840
-97301

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8996
SELECT ALL - COUNT( * ) col1, + COUNT( - col1 ) AS col2 FROM tab2
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8996
SELECT ALL - COUNT ( * ) col1, + COUNT ( - col1 ) AS col2 FROM tab2
----
-3
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8997
SELECT ALL - 65 DIV - - COUNT( DISTINCT col2 ) col2 FROM tab0
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8997
SELECT ALL - 65 / - - COUNT ( DISTINCT col2 ) col2 FROM tab0
----
-21

query I rowsort
SELECT + 19 AS col1 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT ( - - COUNT( * ) ) * + ( - COUNT( + col2 ) ) + COUNT( * ) AS col1 FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8999
SELECT ( - - COUNT ( * ) ) * + ( - COUNT ( + col2 ) ) + COUNT ( * ) AS col1 FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - 13 ) col0 FROM tab2
----
-13
-13
-13

query I rowsort
SELECT DISTINCT - ( - + 15 ) AS col0 FROM tab0
----
15

query I rowsort
SELECT DISTINCT 92 + + col1 FROM tab2
----
143
159
169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 50 ) col0 FROM tab1 cor0
----
50
50
50

query I rowsort
SELECT ALL + col1 * - 50 + - ( - + col0 ) * 64 * + 12 + + col0 FROM tab0 AS cor0
----
65853
74543
7485

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT - + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9005
SELECT - + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col0 * - 66 AS col2 FROM tab2
----
3036
4224
4950

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + - col2 * col2 NOT IN ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( 24 + 15 * + 94 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + col2 col1 FROM tab0
----
-2
-32
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9010
SELECT - CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9010
SELECT - CAST ( NULL AS REAL ) * - COUNT ( * ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + 97 >= col0 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 22 - - col2 FROM tab1
----
118
81
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 WHERE 60 BETWEEN 64 AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-9013
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE 60 BETWEEN 64 AND - col0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - 10 = ( 97 * col2 + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 70 FROM tab1 WHERE + col2 * col2 = NULL
----

query I rowsort
SELECT + col1 + col0 FROM tab2 WHERE NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 21 BETWEEN col0 AND ( - ( - col1 ) * + col0 )
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT MAX( col0 ) FROM tab0 WHERE col0 + col1 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9018
SELECT MAX ( col0 ) FROM tab0 WHERE col0 + col1 = NULL
----
NULL

query I rowsort
SELECT ( col2 ) + + col0 FROM tab2
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 * ( col0 ) col1 FROM tab2
----
1702
2368
2775

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT DISTINCT 31 * - MAX( DISTINCT col1 ) + COUNT( col2 ) AS col1 FROM tab0
----
-2508

skipif mysql # not compatible
query I rowsort label-9021
SELECT DISTINCT 31 * - MAX ( DISTINCT col1 ) + COUNT ( col2 ) AS col1 FROM tab0
----
-2508

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * col2 + col1 * col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 14 * 56 FROM tab1 WHERE NOT ( col1 ) IS NULL
----
784

query I rowsort
SELECT DISTINCT col2 * 83 AS col0 FROM tab1 WHERE NOT ( + 31 + + ( col1 ) * 43 ) IS NOT NULL
----

query I rowsort
SELECT 55 * 6 AS col0 FROM tab2 WHERE ( - 33 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 92 * 74 AS col0 FROM tab1
----
-6808

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT DISTINCT 9 * SUM( ALL - 48 ) FROM tab0
----
-1296

skipif mysql # not compatible
query I rowsort label-9027
SELECT DISTINCT 9 * SUM ( ALL - 48 ) FROM tab0
----
-1296

query I rowsort
SELECT ALL 26 * + 31 FROM tab0
----
806
806
806

query I rowsort
SELECT DISTINCT - 67 AS col0 FROM tab2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT + COUNT( col0 ) + 78 * 7 FROM tab0
----
549

skipif mysql # not compatible
query I rowsort label-9030
SELECT + COUNT ( col0 ) + 78 * 7 FROM tab0
----
549

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9031
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - ( - CAST( NULL AS SIGNED ) ) / - 43 )
----

skipif mysql # not compatible
query III rowsort label-9031
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - ( - CAST ( NULL AS INTEGER ) ) / - 43 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9032
SELECT DISTINCT 43 DIV + col2 AS col2 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-9032
SELECT DISTINCT 43 / + col2 AS col2 FROM tab2
----
0
1

query I rowsort
SELECT DISTINCT - 46 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-46

query I rowsort
SELECT DISTINCT + 34 + - col2 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT DISTINCT SUM( ALL col0 ) + COUNT( * ) AS col2 FROM tab2
----
188

skipif mysql # not compatible
query I rowsort label-9035
SELECT DISTINCT SUM ( ALL col0 ) + COUNT ( * ) AS col2 FROM tab2
----
188

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE col1 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9037
SELECT - COUNT( * ) DIV - 15 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9037
SELECT - COUNT ( * ) / - 15 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + col2 * col2 FROM tab0 WHERE - col1 <> col1
----
100
2209
9801

onlyif mysql # DIV for integer division: 
query I rowsort label-9039
SELECT 15 DIV + col1 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-9039
SELECT 15 / + col1 FROM tab1
----
0
1
3

query I rowsort
SELECT ALL col2 - - ( - col2 ) FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT 52 * + MIN( col0 ) FROM tab0 WHERE NULL IN ( - ( col1 ) * + 77 - 27 * - 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9041
SELECT 52 * + MIN ( col0 ) FROM tab0 WHERE NULL IN ( - ( col1 ) * + 77 - 27 * - 61 )
----
NULL

query I rowsort
SELECT - col1 * 89 + - 53 * col1 FROM tab2
----
-10934
-7242
-9514

query I rowsort
SELECT 34 AS col1 FROM tab1 cor0 WHERE 66 NOT IN ( - 37 )
----
34
34
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9044
SELECT - col1 + - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9044
SELECT - col1 + - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9045
SELECT 30 + CAST( col2 AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
4926
5045
6218

skipif mysql # not compatible
query I rowsort label-9045
SELECT 30 + CAST ( col2 AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
4926
5045
6218

query I rowsort
SELECT DISTINCT + col1 + - 52 AS col0 FROM tab2 AS cor0
----
-1
15
25

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( ( 98 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9048
SELECT + 42 / CAST( NULL AS DECIMAL ) + col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9048
SELECT + 42 / CAST ( NULL AS REAL ) + col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9049
SELECT - col2 DIV 56 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9049
SELECT - col2 / 56 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + 54 AS col0 FROM tab0 cor0 CROSS JOIN tab0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT 74 * 94 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to cfc84ab21d0d39677814d4f4b2a36046

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT DISTINCT + ( - MAX( DISTINCT col2 ) ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9052
SELECT DISTINCT + ( - MAX ( DISTINCT col2 ) ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT ALL + - 98 AS col0 FROM tab2 AS cor0
----
-98
-98
-98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9054
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 - - CAST( + col2 + + col1 / col0 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-9054
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 - - CAST ( + col2 + + col1 / col0 AS INTEGER ) <= NULL
----

query I rowsort
SELECT DISTINCT + ( - 70 ) FROM tab1 AS cor0
----
-70

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9057
SELECT - - CAST( NULL AS SIGNED ) * col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9057
SELECT - - CAST ( NULL AS INTEGER ) * col0 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 <= NULL
----

query I rowsort
SELECT - + 74 * 5 FROM tab1 AS cor0
----
-370
-370
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT 41 * - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-123

skipif mysql # not compatible
query I rowsort label-9060
SELECT 41 * - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-123

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 42 * - 73 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * col1 + + col0 BETWEEN + 91 * + ( + 9 ) AND ( NULL )
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col0 col2 FROM tab1 AS cor0 WHERE NULL BETWEEN ( col2 + + col1 * ( + 11 ) ) AND - 59 + - 4 * col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 BETWEEN + 95 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT + ( - COUNT( * ) ) * + 94 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9065
SELECT + ( - COUNT ( * ) ) * + 94 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 / + 5 col0 FROM tab0 WHERE NOT col0 + - 15 IS NOT NULL
----

query I rowsort
SELECT + 31 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( + 80 ) OR NOT ( col1 ) BETWEEN + col2 AND - ( col2 )
----
31
31
31

query I rowsort
SELECT 84 + + col0 AS col2 FROM tab2 cor0
----
130
148
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT + - MAX( ALL + col1 ) + 83 AS col2 FROM tab0 cor0
----
2

skipif mysql # not compatible
query I rowsort label-9069
SELECT + - MAX ( ALL + col1 ) + 83 AS col2 FROM tab0 cor0
----
2

query I rowsort
SELECT col2 * - 52 FROM tab0 AS cor0 WHERE + col2 + 87 < ( - 91 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9071
SELECT + 62 + - COUNT( * ) + 9 DIV 64 AS col0 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9071
SELECT + 62 + - COUNT ( * ) + 9 / 64 AS col0 FROM tab2 AS cor0
----
59

query I rowsort
SELECT ALL 33 + + 15 FROM tab1 AS cor0
----
48
48
48

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NULL BETWEEN col2 / col1 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9074
SELECT + 21 DIV + col0 FROM tab0 AS cor0 WHERE ( col1 ) NOT IN ( + col0 * + col0 )
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9074
SELECT + 21 / + col0 FROM tab0 AS cor0 WHERE ( col1 ) NOT IN ( + col0 * + col0 )
----
0
0
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 98 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
98

query I rowsort
SELECT ALL - 27 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1 cor0 INNER JOIN tab0 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT DISTINCT + - ( + SUM( DISTINCT + - 32 ) ) * 8 col0 FROM tab2 AS cor0
----
256

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9079
SELECT DISTINCT + - ( + SUM ( DISTINCT + - 32 ) ) * 8 col0 FROM tab2 AS cor0
----
256

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT MIN( + col1 ) - + 45 AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9080
SELECT MIN ( + col1 ) - + 45 AS col2 FROM tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + 3 + + - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9082
SELECT ALL - col0 + + col2 DIV 91 FROM tab0 AS cor0
----
-15
-87
-96

skipif mysql # not compatible
query I rowsort label-9082
SELECT ALL - col0 + + col2 / 91 FROM tab0 AS cor0
----
-15
-87
-96

query I rowsort
SELECT - col1 * col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9084
SELECT * FROM tab2 AS cor0 WHERE CAST( - - col2 AS SIGNED ) * + 54 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9084
SELECT * FROM tab2 AS cor0 WHERE CAST ( - - col2 AS INTEGER ) * + 54 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT - + COUNT( col2 ) FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9085
SELECT - + COUNT ( col2 ) FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9086
SELECT - 30 / - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NULL IN ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-9086
SELECT - 30 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NULL IN ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9087
SELECT col1 + - col2 DIV + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9087
SELECT col1 + - col2 / + col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT - ( 14 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT MIN( - + col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-96

skipif mysql # not compatible
query I rowsort label-9089
SELECT MIN ( - + col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 + col0 col0 FROM tab1
----
4368
510
765

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + + 62 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 47 - 49 AS col0 FROM tab0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT COUNT( * ) + - 86 FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-9093
SELECT COUNT ( * ) + - 86 FROM tab0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT MAX( col0 ) AS col0 FROM tab0 WHERE + - 59 IS NOT NULL
----
97

skipif mysql # not compatible
query I rowsort label-9094
SELECT MAX ( col0 ) AS col0 FROM tab0 WHERE + - 59 IS NOT NULL
----
97

query I rowsort
SELECT ALL col2 * + 75 * 45 * col2 - - col2 AS col1 FROM tab2
----
11353558
1785398
5400040

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT 8 * - 31 + 45 * 27 * ( ( - MIN( ALL 24 ) ) ) AS col2 FROM tab1
----
-29408

skipif mysql # not compatible
query I rowsort label-9096
SELECT 8 * - 31 + 45 * 27 * ( ( - MIN ( ALL 24 ) ) ) AS col2 FROM tab1
----
-29408

query I rowsort
SELECT 2 + + - 30 AS col0 FROM tab2
----
-28
-28
-28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9098
SELECT DISTINCT * FROM tab2 WHERE ( - col1 + + col2 * CAST( 37 - col1 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9098
SELECT DISTINCT * FROM tab2 WHERE ( - col1 + + col2 * CAST ( 37 - col1 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 9 * - col0 FROM tab1
----
-459
-765
-819

query II rowsort
SELECT ( - col1 ), col0 + + + 51 AS col0 FROM tab0
----
-1
148
-21
138
-81
66

query I rowsort
SELECT ALL - ( + 48 ) FROM tab2 AS cor0
----
-48
-48
-48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( 26 * col2 + - 42 * col0 ) NOT IN ( col0 ) )
----

query I rowsort
SELECT DISTINCT + col2 * + 14 - 78 FROM tab2 AS cor0
----
244
482
734

onlyif mysql # DIV for integer division: 
query II rowsort label-9104
SELECT ALL 29 DIV - + 41, col0 AS col1 FROM tab2 AS cor0
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-9104
SELECT ALL 29 / - + 41, col0 AS col1 FROM tab2 AS cor0
----
0
46
0
64
0
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9105
SELECT - COUNT( * ) DIV + 78 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9105
SELECT - COUNT ( * ) / + 78 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9106
SELECT ALL COUNT( * ) * 77 FROM tab2 WHERE CAST( + col2 AS SIGNED ) * - - col1 IS NOT NULL
----
231

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL COUNT ( * ) * 77 FROM tab2 WHERE CAST ( + col2 AS INTEGER ) * - - col1 IS NOT NULL
----
231

query I rowsort
SELECT DISTINCT 41 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT DISTINCT - COUNT( * ) + + - 97 FROM tab0 AS cor0 WHERE NOT NULL IN ( 10 )
----
-97

skipif mysql # not compatible
query I rowsort label-9108
SELECT DISTINCT - COUNT ( * ) + + - 97 FROM tab0 AS cor0 WHERE NOT NULL IN ( 10 )
----
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= ( ( - + col1 ) * - - 52 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9111
SELECT DISTINCT col0 * col2 DIV + col2 + + + col2 * - col2 - - col0 * col0 AS col2 FROM tab2 AS cor0
----
1633
2336
2560

skipif mysql # not compatible
query I rowsort label-9111
SELECT DISTINCT col0 * col2 / + col2 + + + col2 * - col2 - - col0 * col0 AS col2 FROM tab2 AS cor0
----
1633
2336
2560

query II rowsort
SELECT DISTINCT + 16 AS col0, col1 FROM tab1 AS cor0
----
16
14
16
47
16
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9113
SELECT MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9113
SELECT MAX ( DISTINCT + CAST ( NULL AS REAL ) ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9114
SELECT - ( + CAST( + ( + - 44 ) AS SIGNED ) ) DIV - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9114
SELECT - ( + CAST ( + ( + - 44 ) AS INTEGER ) ) / - col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9115
SELECT 16, COUNT( * ) + + 99 AS col0 FROM tab1
----
16
102

skipif mysql # not compatible
query II rowsort label-9115
SELECT 16, COUNT ( * ) + + 99 AS col0 FROM tab1
----
16
102

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT - COUNT( * ) AS col2 FROM tab2, tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9116
SELECT - COUNT ( * ) AS col2 FROM tab2, tab1 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT DISTINCT 53 * - COUNT( * ) FROM tab0
----
-159

skipif mysql # not compatible
query I rowsort label-9117
SELECT DISTINCT 53 * - COUNT ( * ) FROM tab0
----
-159

query I rowsort
SELECT ALL - + col1 * - col0 + + + col0 AS col0 FROM tab0 AS cor0
----
1230
1914
194

query I rowsort
SELECT DISTINCT - col1 * - + col1 + col2 AS col2 FROM tab2 AS cor0
----
2624
4547
5969

query I rowsort
SELECT + + 9 AS col0 FROM tab0 AS cor0
----
9
9
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9121
SELECT ALL + + COUNT( * ) + + MAX( - + ( + CAST( ( + 29 ) AS SIGNED ) ) ) / CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9121
SELECT ALL + + COUNT ( * ) + + MAX ( - + ( + CAST ( ( + 29 ) AS INTEGER ) ) ) / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT - MIN( 65 ) + + 14 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-9122
SELECT - MIN ( 65 ) + + 14 FROM tab0
----
-51

query I rowsort
SELECT ALL 52 * - col1 FROM tab2
----
-2652
-3484
-4004

query III rowsort
SELECT * FROM tab2 WHERE ( 98 ) < - 99
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + + col0 col2 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT + COUNT( * ) * COUNT( * ) * + 37 AS col0 FROM tab0 cor0
----
333

skipif mysql # not compatible
query I rowsort label-9126
SELECT + COUNT ( * ) * COUNT ( * ) * + 37 AS col0 FROM tab0 cor0
----
333

onlyif mysql # aggregate syntax: 
query II rowsort label-9127
SELECT ALL 76 + + - 82, - COUNT( * ) - + + 7 AS col0 FROM tab2 AS cor0
----
-6
-10

skipif mysql # not compatible
query II rowsort label-9127
SELECT ALL 76 + + - 82, - COUNT ( * ) - + + 7 AS col0 FROM tab2 AS cor0
----
-6
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT ALL - COUNT( - col1 ) + ( - 50 ) AS col1 FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL - COUNT ( - col1 ) + ( - 50 ) AS col1 FROM tab0 AS cor0
----
-53

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 55 ) < col2
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT 93 * - COUNT( * ) FROM tab1 WHERE ( + 53 * + 13 / - - col1 ) <> - 28 * + col0 * + + col1
----
-279

skipif mysql # not compatible
query I rowsort label-9130
SELECT 93 * - COUNT ( * ) FROM tab1 WHERE ( + 53 * + 13 / - - col1 ) <> - 28 * + col0 * + + col1
----
-279

query II rowsort
SELECT col1 * col2 - + ( col2 ) AS col0, 29 AS col1 FROM tab1
----
1248
29
236
29
3128
29

query I rowsort
SELECT ALL + col0 + + col0 - - + 14 * - - col1 * - col2 + ( - 11 ) AS col1 FROM tab1 WHERE col1 <= NULL
----

query I rowsort
SELECT + col0 - + col0 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT ALL COUNT( - col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9134
SELECT ALL COUNT ( - col1 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT + col2 * + + 34 AS col2 FROM tab2
----
1360
1972
782

query III rowsort
SELECT * FROM tab0 WHERE NOT 72 + + col1 * col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, - 89 AS col0 FROM tab2
----
51
-89
67
-89
77
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT DISTINCT MAX( + ( + col2 ) ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-9138
SELECT DISTINCT MAX ( + ( + col2 ) ) AS col2 FROM tab2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9139
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( - CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9139
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( - CAST ( - col1 AS INTEGER ) )
----

query II rowsort
SELECT + + col2, + 57 * - 11 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 61 * - col0 col2 FROM tab1 AS cor0 WHERE NOT - 99 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9142
SELECT - col1 DIV - 93 - - col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9142
SELECT - col1 / - 93 - - col1 FROM tab2 AS cor0
----
51
67
77

query II rowsort
SELECT - col1 AS col1, + col0 FROM tab0 cor0
----
-1
97
-21
87
-81
15

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + + 81, + ( - 96 ) )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9146
SELECT MAX( + col2 ), + 78 AS col2 FROM tab1 AS cor0
----
96
78

skipif mysql # not compatible
query II rowsort label-9146
SELECT MAX ( + col2 ), + 78 AS col2 FROM tab1 AS cor0
----
96
78

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * - 30 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9148
SELECT + ( + 8 ) AS col0, - COUNT( * ) FROM tab0 AS cor0
----
8
-3

skipif mysql # not compatible
query II rowsort label-9148
SELECT + ( + 8 ) AS col0, - COUNT ( * ) FROM tab0 AS cor0
----
8
-3

query II rowsort
SELECT col2 AS col2, - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < + 25 * + col1
----

query I rowsort
SELECT - 55 - - col2 AS col1 FROM tab2 WHERE + col1 * + + col0 + + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9151
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 * col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9151
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 * col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9152
SELECT * FROM tab1 WHERE NULL IS NOT NULL AND NOT NULL < + - CAST( - col1 AS SIGNED ) + - col0
----

skipif mysql # not compatible
query III rowsort label-9152
SELECT * FROM tab1 WHERE NULL IS NOT NULL AND NOT NULL < + - CAST ( - col1 AS INTEGER ) + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col1, - col2 col1 FROM tab2
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT ALL + COUNT( + col2 ) + + MAX( ALL - - col2 ) AS col0 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL + COUNT ( + col2 ) + + MAX ( ALL - - col2 ) AS col0 FROM tab1
----
99

query I rowsort
SELECT - ( col1 ) + + 57 FROM tab0
----
-24
36
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT COUNT( - - col0 ) * 61 AS col2 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-9156
SELECT COUNT ( - - col0 ) * 61 AS col2 FROM tab0
----
183

query I rowsort
SELECT ALL col2 * - ( + + col0 ) FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9158
SELECT + MAX( - CAST( 56 AS SIGNED ) ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-56

skipif mysql # not compatible
query I rowsort label-9158
SELECT + MAX ( - CAST ( 56 AS INTEGER ) ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-56

query I rowsort
SELECT ALL col2 + - - col2 AS col0 FROM tab1 cor0
----
118
136
192

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 * + col0 ) IS NULL
----

query I rowsort
SELECT + + col0 * + col2 * + 20 - col1 + + + col0 * - col2 + - 23 FROM tab1 cor0
----
117502
92987
95257

query I rowsort
SELECT - col2 + + 92 AS col2 FROM tab1 AS cor0
----
-4
24
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9163
SELECT ALL - col2 + + col1 * - + 41 - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9163
SELECT ALL - col2 + + col1 * - + 41 - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT DISTINCT ( COUNT( * ) ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9164
SELECT DISTINCT ( COUNT ( * ) ) AS col1 FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT + col2 + 7 + 46 AS col2 FROM tab1 cor0
----
112
121
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 25 * + col1 col2 FROM tab2 AS cor0 WHERE NOT col0 + - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - + 3 + - + col1 - + col1 * - 13 AS col0 FROM tab1 AS cor0
----
165
561
57

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + ( - - 60 ) + 52 * - + col0 col0 FROM tab1 AS cor0
----
-10192
-5712
-9520

query I rowsort
SELECT ALL 54 * - col2 AS col0 FROM tab0
----
-2538
-5346
-540

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + col1 ) - + 55 IN ( + col2, + col2 * - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT MAX( - 66 ) AS col1 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-9172
SELECT MAX ( - 66 ) AS col1 FROM tab0
----
-66

query I rowsort
SELECT AVG ( DISTINCT + - col1 ) FROM tab2 WHERE NOT NULL NOT IN ( + + ( - col1 ) + + col0 + col0 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( NULL ) <> - col2 / - col2 )
----

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT - - col1 >= NULL
----

query I rowsort
SELECT ALL - + 14 AS col0 FROM tab2 AS cor0
----
-14
-14
-14

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 87 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-9178
SELECT 86 DIV - + col0 AS col2, - col0 FROM tab2 AS cor0
----
-1
-46
-1
-64
-1
-75

skipif mysql # not compatible
query II rowsort label-9178
SELECT 86 / - + col0 AS col2, - col0 FROM tab2 AS cor0
----
-1
-46
-1
-64
-1
-75

query III rowsort
SELECT * FROM tab2 WHERE NOT + 76 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT DISTINCT + + MAX( ALL + + 86 ) AS col1 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-9180
SELECT DISTINCT + + MAX ( ALL + + 86 ) AS col1 FROM tab0 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT DISTINCT COUNT( DISTINCT + 77 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9181
SELECT DISTINCT COUNT ( DISTINCT + 77 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL + - col1 + + col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 67 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col1 + + - 31 FROM tab2 AS cor0
----
20
36
46

query I rowsort
SELECT DISTINCT + 97 + ( col0 ) AS col2 FROM tab1 AS cor0
----
148
182
188

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT 90 + - ( COUNT( * ) ) * MIN( DISTINCT + 16 ) FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-9186
SELECT 90 + - ( COUNT ( * ) ) * MIN ( DISTINCT + 16 ) FROM tab1 AS cor0
----
42

query I rowsort
SELECT + ( col1 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - col0 + + ( + - col1 ) + - 82 * col0 * + col1 * + + col1 * + col2 AND + 43
----

query I rowsort
SELECT DISTINCT col2 + + - col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col0 + + col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
104
133
69

query II rowsort
SELECT ALL 81 * + 38 AS col2, 89 AS col1 FROM tab2 WHERE NOT 76 BETWEEN + + 73 AND ( - col2 )
----
3078
89
3078
89
3078
89

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 + - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 >= ( + col2 ) AND NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9193
SELECT CAST( NULL AS SIGNED ) - + col2 + + - col1 + - 29 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9193
SELECT CAST ( NULL AS INTEGER ) - + col2 + + - col1 + - 29 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 68 - ( + ( 99 ) ) FROM tab2 AS cor0
----
-167
-167
-167

query I rowsort
SELECT + col1 * col2 + - + col1 FROM tab0 AS cor0
----
189
3726
98

query II rowsort
SELECT col0, 10 AS col1 FROM tab2 cor0 WHERE 17 NOT BETWEEN ( - col1 ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT - COUNT( * ) + - 18 - + 59 col0 FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9197
SELECT - COUNT ( * ) + - 18 - + 59 col0 FROM tab2 AS cor0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9198
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9199
SELECT ALL + col1 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( - col0 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9199
SELECT ALL + col1 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( - col0 * CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT 43 * - - 83 + - col1 FROM tab2
----
3492
3502
3518

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> + col1
----

query I rowsort
SELECT DISTINCT - 56 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-9203
SELECT ALL COUNT( * ), + COUNT( * ) AS col2 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-9203
SELECT ALL COUNT ( * ), + COUNT ( * ) AS col2 FROM tab2
----
3
3

query I rowsort
SELECT ALL - ( ( - - 20 ) ) FROM tab2, tab2 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9205
SELECT + MAX( ALL + + 62 ) DIV - MAX( - + 22 ) AS col2 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9205
SELECT + MAX ( ALL + + 62 ) / - MAX ( - + 22 ) AS col2 FROM tab1 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9207
SELECT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9208
SELECT DISTINCT - CAST( - col2 AS SIGNED ) * CAST( + col0 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-9208
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) * CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9209
SELECT + - CAST( NULL AS SIGNED ) * - 37 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-9209
SELECT + - CAST ( NULL AS INTEGER ) * - 37 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT DISTINCT + MAX( ( col0 ) ) * + - MIN( + - col1 ) AS col0 FROM tab2 AS cor0
----
5775

skipif mysql # not compatible
query I rowsort label-9210
SELECT DISTINCT + MAX ( ( col0 ) ) * + - MIN ( + - col1 ) AS col0 FROM tab2 AS cor0
----
5775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 48 col2, + 1 FROM tab0
----
48
1
48
1
48
1

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 36 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT ALL - COUNT( * ) AS col0 FROM tab0 WHERE NULL <> + col1
----
0

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 WHERE NULL <> + col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL <> - col1 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9215
SELECT ALL + CAST( NULL AS SIGNED ) * 11 + + ( + - col0 ) / + 99 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL + CAST ( NULL AS INTEGER ) * 11 + + ( + - col0 ) / + 99 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9216
SELECT DISTINCT + col0 / + 99 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9216
SELECT DISTINCT + col0 / + 99 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - 6 + + - 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT - COUNT( ALL + + col1 ) FROM tab2 WHERE NOT col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9218
SELECT - COUNT ( ALL + + col1 ) FROM tab2 WHERE NOT col1 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9219
SELECT DISTINCT * FROM tab2 WHERE NOT + - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9219
SELECT DISTINCT * FROM tab2 WHERE NOT + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 33 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9221
SELECT + col0 * + - col1 DIV + col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9221
SELECT + col0 * + - col1 / + col1 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT - ( - COUNT( * ) ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9222
SELECT - ( - COUNT ( * ) ) col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE ( + - col1 ) < - col2
----
15
87

query II rowsort
SELECT - - col2 * + - 11 AS col0, col2 FROM tab0 AS cor0
----
-1089
99
-110
10
-517
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9225
SELECT ALL + ( CAST( NULL AS SIGNED ) ) + - - 5 + + col2 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) + - - 5 + + col2 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 65 + + col1 FROM tab2 AS cor0 WHERE + col2 + + - 96 < + 55 * + col0
----
-14
12
2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 21 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9228
SELECT ( + col2 ) DIV - 35 + + 51 + - col0 + + + col2 * - 22 * - col0 * col2 FROM tab0
----
191364
20915286
729005

skipif mysql # not compatible
query I rowsort label-9228
SELECT ( + col2 ) / - 35 + + 51 + - col0 + + + col2 * - 22 * - col0 * col2 FROM tab0
----
191364
20915286
729005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col0 * + - 59 col2 FROM tab1
----
2995
5010
5322

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> + col2
----

query I rowsort
SELECT col1 + + 16 FROM tab0
----
17
37
97

query I rowsort
SELECT col0 * + ( col1 ) * + col1 FROM tab1 AS cor0
----
201019
2125
9996

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 96 + + col2 NOT BETWEEN + col1 AND - + col0
----

query I rowsort
SELECT DISTINCT ( - col1 ) + - col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) > + col0 - + - col1
----

query I rowsort
SELECT DISTINCT col1 * 88 + - col2 + - col1 FROM tab1 AS cor0
----
1122
376
4021

query I rowsort
SELECT ALL + 67 * + col2 - col2 + - col0 * - + col2 AS col0 FROM tab2 cor0
----
2576
5200
8178

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 77 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 - + 12 * col0 FROM tab0
----
-1034
-1065
-133

query II rowsort
SELECT - 56 - + col1 AS col1, 55 FROM tab0
----
-137
55
-57
55
-77
55

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> - 11
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > - col2
----

query I rowsort
SELECT ALL - - 76 FROM tab2 cor0
----
76
76
76

query II rowsort
SELECT DISTINCT - ( 75 ), + 86 AS col2 FROM tab2 AS cor0
----
-75
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT ALL + SUM( DISTINCT - - col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL + SUM ( DISTINCT - - col0 ) FROM tab1
----
227

query III rowsort
SELECT * FROM tab2 WHERE NOT 77 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 WHERE - col0 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9246
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE - col0 BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NOT NULL >= 33
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9250
SELECT DISTINCT - col2 - - 91 AS col1 FROM tab0 AS cor0 WHERE NOT + CAST( + col2 AS SIGNED ) + - - 56 <= NULL
----

skipif mysql # not compatible
query I rowsort label-9250
SELECT DISTINCT - col2 - - 91 AS col1 FROM tab0 AS cor0 WHERE NOT + CAST ( + col2 AS INTEGER ) + - - 56 <= NULL
----

query I rowsort
SELECT - col1 * col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-2601
-4489
-5929

query I rowsort
SELECT ALL - - col1 FROM tab0 WHERE NOT col1 * + col0 IS NULL
----
1
21
81

query II rowsort
SELECT ALL - col1, + 46 AS col0 FROM tab0
----
-1
46
-21
46
-81
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 45 * 16 col0, ( + col2 ) FROM tab2
----
-720
23
-720
40
-720
58

query II rowsort
SELECT DISTINCT 88 AS col0, col0 FROM tab0
----
88
15
88
87
88
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 40 ) / col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT COUNT( * ) + - 10 * + 41 col0 FROM tab1 AS cor0
----
-407

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9257
SELECT COUNT ( * ) + - 10 * + 41 col0 FROM tab1 AS cor0
----
-407

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col1 ) >= + col1
----

query I rowsort
SELECT + 77 + 9 FROM tab1 AS cor0
----
86
86
86

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT ALL SUM( + 80 ) * - 5 FROM tab0
----
-1200

skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL SUM ( + 80 ) * - 5 FROM tab0
----
-1200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 col1 FROM tab0 WHERE NULL IS NULL
----
-10
-47
-99

query I rowsort
SELECT col2 - + - 64 AS col0 FROM tab1
----
123
132
160

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT MIN( + col1 ) - - - 13 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-9264
SELECT MIN ( + col1 ) - - - 13 FROM tab1 AS cor0
----
-8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 > 84 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9266
SELECT + CAST( - col2 AS SIGNED ) - - + ( - col0 ) * 64 - col1 DIV - col0, col1 * col1 + + 62 AS col0 FROM tab0 AS cor0
----
-1002
6623
-5578
503
-6307
63

skipif mysql # not compatible
query II rowsort label-9266
SELECT + CAST ( - col2 AS INTEGER ) - - + ( - col0 ) * 64 - col1 / - col0, col1 * col1 + + 62 AS col0 FROM tab0 AS cor0
----
-1002
6623
-5578
503
-6307
63

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 NOT BETWEEN col2 + + + 75 * + + col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9268
SELECT + COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9268
SELECT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + col0 + - 41 * + + col0 AS col2 FROM tab1 AS cor0
----
-2040
-3400
-3640

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9270
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 * + ( + - CAST( NULL AS SIGNED ) ) * ( 55 ) + + CAST( NULL AS SIGNED ) - + 31 + - + 59 + + - col0 + - + col2 IN ( + - col0 / col1, col2 )
----

skipif mysql # not compatible
query III rowsort label-9270
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 * + ( + - CAST ( NULL AS INTEGER ) ) * ( 55 ) + + CAST ( NULL AS INTEGER ) - + 31 + - + 59 + + - col0 + - + col2 IN ( + - col0 / col1, col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9271
SELECT COUNT( * ), COUNT( col1 ) col2 FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9271
SELECT COUNT ( * ), COUNT ( col1 ) col2 FROM tab2
----
3
3

query I rowsort
SELECT DISTINCT - 7 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-7

query I rowsort
SELECT DISTINCT + 15 AS col2 FROM tab1 cor0 WHERE NOT col1 + - 29 IS NULL
----
15

onlyif mysql # DIV for integer division: 
query II rowsort label-9274
SELECT 90, 28 DIV - + col0 + - col1 AS col1 FROM tab2 AS cor0
----
90
-51
90
-67
90
-77

skipif mysql # not compatible
query II rowsort label-9274
SELECT 90, 28 / - + col0 + - col1 AS col1 FROM tab2 AS cor0
----
90
-51
90
-67
90
-77

query I rowsort
SELECT - - col0 AS col2 FROM tab1 AS cor0 WHERE NOT col0 * 43 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 * - col1 col1 FROM tab2 AS cor0
----
-123200
-225388
-26979

query II rowsort
SELECT DISTINCT + col1 * - + col1 + + - 84, col2 * + col0 AS col2 FROM tab0 AS cor0
----
-525
870
-6645
705
-85
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT DISTINCT + + COUNT( * ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9278
SELECT DISTINCT + + COUNT ( * ) col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col2 * + col0 * col1 AS col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

query I rowsort
SELECT DISTINCT - + 59 FROM tab2 cor0
----
-59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 48 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT - COUNT( * ) * 63 - + 6 FROM tab1 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9282
SELECT - COUNT ( * ) * 63 - + 6 FROM tab1 AS cor0
----
-195

query I rowsort
SELECT ALL 69 AS col2 FROM tab0 WHERE + - 47 IN ( + col1, - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 24 col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9285
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9285
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT ALL + ( - MAX( + - col1 ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL + ( - MAX ( + - col1 ) ) FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT - COUNT( * ) FROM tab1, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9287
SELECT - COUNT ( * ) FROM tab1, tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT DISTINCT + + ( + - COUNT( * ) ) FROM tab0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9288
SELECT DISTINCT + + ( + - COUNT ( * ) ) FROM tab0 WHERE NULL IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9289
SELECT DISTINCT + 27 * col0 DIV - col0 - - 57 AS col0 FROM tab0 cor0 WHERE + col0 * - col2 * + + 88 IS NOT NULL
----
30

skipif mysql # not compatible
query I rowsort label-9289
SELECT DISTINCT + 27 * col0 / - col0 - - 57 AS col0 FROM tab0 cor0 WHERE + col0 * - col2 * + + 88 IS NOT NULL
----
30

query I rowsort
SELECT + 17 * - col2 * - + col1 + + 87 + + col2 * 70 AS col0 FROM tab1 cor0
----
29655
59179
9232

query I rowsort
SELECT ALL - 35 + + + 47 FROM tab1 cor0
----
12
12
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9292
SELECT CAST( NULL AS SIGNED ) AS col2, col1 - + 84 * + col1 FROM tab0
----
NULL
-1743
NULL
-6723
NULL
-83

skipif mysql # not compatible
query II rowsort label-9292
SELECT CAST ( NULL AS INTEGER ) AS col2, col1 - + 84 * + col1 FROM tab0
----
NULL
-1743
NULL
-6723
NULL
-83

query I rowsort
SELECT - ( 8 ) AS col2 FROM tab2 cor0
----
-8
-8
-8

query I rowsort
SELECT DISTINCT - + col0 * + + col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 91 * col1 + - + 73 + - 28 IN ( - - col0 )
----

query II rowsort
SELECT DISTINCT - col2 + + col2 * + + col2 AS col0, + 25 * + + 5 AS col2 FROM tab1 AS cor0
----
3422
125
4556
125
9120
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9297
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9297
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + - col1 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 37 * - - col2 = ( - col2 + + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT ALL - 22 - - MIN( DISTINCT - + ( - col1 ) ) col2 FROM tab1
----
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9299
SELECT ALL - 22 - - MIN ( DISTINCT - + ( - col1 ) ) col2 FROM tab1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-9300
SELECT ALL 49 DIV col2 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL 49 / col2 FROM tab0
----
0
1
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9301
SELECT ALL ( + + col1 ) DIV - col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL ( + + col1 ) / - col0 FROM tab0
----
-5
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9302
SELECT DISTINCT + CAST( - 37 AS SIGNED ) - + col0 FROM tab0
----
-124
-134
-52

skipif mysql # not compatible
query I rowsort label-9302
SELECT DISTINCT + CAST ( - 37 AS INTEGER ) - + col0 FROM tab0
----
-124
-134
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-9303
SELECT DISTINCT + 2 DIV col2 + + + 63 + + - 21 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-9303
SELECT DISTINCT + 2 / col2 + + + 63 + + - 21 FROM tab2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-9304
SELECT - col1 DIV - 18 AS col1 FROM tab2
----
2
3
4

skipif mysql # not compatible
query I rowsort label-9304
SELECT - col1 / - 18 AS col1 FROM tab2
----
2
3
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9305
SELECT ALL 16 DIV - col1 FROM tab0
----
-16
0
0

skipif mysql # not compatible
query I rowsort label-9305
SELECT ALL 16 / - col1 FROM tab0
----
-16
0
0

query I rowsort
SELECT ALL - 81 * + col2 FROM tab2
----
-1863
-3240
-4698

query I rowsort
SELECT - col2 * + col2 * + 67 AS col1 FROM tab1
----
-233227
-309808
-617472

query II rowsort
SELECT ALL - - ( + 61 ) AS col0, col2 AS col2 FROM tab0 AS cor0
----
61
10
61
47
61
99

query I rowsort
SELECT - 21 AS col2 FROM tab2 cor0
----
-21
-21
-21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9310
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( - ( - col0 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9310
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( - ( - col0 ) AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9311
SELECT ALL + MAX( col1 ) AS col2, 9 FROM tab1 AS cor0
----
47
9

skipif mysql # not compatible
query II rowsort label-9311
SELECT ALL + MAX ( col1 ) AS col2, 9 FROM tab1 AS cor0
----
47
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 < col2
----

query II rowsort
SELECT + col2 AS col2, + 58 AS col2 FROM tab0
----
10
58
47
58
99
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9314
SELECT ALL ( COUNT( + col2 ) ) AS col0, CAST( 15 AS SIGNED ) FROM tab2
----
3
15

skipif mysql # not compatible
query II rowsort label-9314
SELECT ALL ( COUNT ( + col2 ) ) AS col0, CAST ( 15 AS INTEGER ) FROM tab2
----
3
15

query II rowsort
SELECT ALL col0, - col1 FROM tab0
----
15
-81
87
-21
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT DISTINCT + ( + SUM( + - col0 ) ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-9316
SELECT DISTINCT + ( + SUM ( + - col0 ) ) FROM tab2
----
-185

query I rowsort
SELECT ( + ( + - col1 ) ) AS col0 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT ALL SUM( + 25 ) + - + COUNT( * ) + + ( - 64 ) + + COUNT( * ) * - MAX( + col2 ) * + 23 * SUM( DISTINCT + - 19 ) AS col1 FROM tab0 AS cor0
----
129797

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL SUM ( + 25 ) + - + COUNT ( * ) + + ( - 64 ) + + COUNT ( * ) * - MAX ( + col2 ) * + 23 * SUM ( DISTINCT + - 19 ) AS col1 FROM tab0 AS cor0
----
129797

query I rowsort
SELECT DISTINCT 22 AS col1 FROM ( tab1 cor0 CROSS JOIN tab0 cor1 )
----
22

query I rowsort
SELECT col1 + + col2 - col1 + + col2 * - col1 * + 22 FROM tab2
----
-25783
-67720
-85434

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT DISTINCT - - SUM( DISTINCT + 6 ) AS col0 FROM tab1 WHERE NOT NULL <= + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9321
SELECT DISTINCT - - SUM ( DISTINCT + 6 ) AS col0 FROM tab1 WHERE NOT NULL <= + 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9322
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab2 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9323
SELECT + - ( + 17 ) * col0 + + col1 + 47 DIV - ( - col2 ) + + 81 col0 FROM tab0 AS cor0
----
-1373
-1567
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9323
SELECT + - ( + 17 ) * col0 + + col1 + 47 / - ( - col2 ) + + 81 col0 FROM tab0 AS cor0
----
-1373
-1567
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 col0 FROM tab1 AS cor0
----
-27

query I rowsort
SELECT DISTINCT - + col1 * + - 56 + - + col0 AS col0 FROM tab0 AS cor0
----
-41
1089
4521

query III rowsort
SELECT * FROM tab0 cor0 WHERE 13 NOT BETWEEN NULL AND + 46 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 39 + + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9328
SELECT - CAST( 22 AS SIGNED ) * col2 FROM tab1 WHERE NULL NOT BETWEEN - col0 AND col2
----

skipif mysql # not compatible
query I rowsort label-9328
SELECT - CAST ( 22 AS INTEGER ) * col2 FROM tab1 WHERE NULL NOT BETWEEN - col0 AND col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN col1 AND - - col2
----

query I rowsort
SELECT DISTINCT 26 + + + col2 AS col1 FROM tab1
----
122
85
94

query I rowsort
SELECT DISTINCT ( - - 83 ) AS col1 FROM tab0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9332
SELECT + 87 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9332
SELECT + 87 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 94 * + 1 FROM tab1 AS cor0
----
94
94
94

query I rowsort
SELECT ALL col0 * - + col2 + - - col2 AS col1 FROM tab0 AS cor0
----
-658
-860
-9504

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9335
SELECT - CAST( + 68 AS SIGNED ) DIV - col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9335
SELECT - CAST ( + 68 AS INTEGER ) / - col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - ( 52 ) * + ( + col0 ) FROM tab0 AS cor0
----
-4524
-5044
-780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9337
SELECT + + ( - - CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9337
SELECT + + ( - - CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + ( + - col2 ) AS col0, 43 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
43
-68
43
-96
43

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 3 + col1 + + col2 NOT BETWEEN + 66 * + + 54 + col0 + - 61 * - col2 AND + 32
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 45 * - - col2 + - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT SUM( ALL - - col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9341
SELECT SUM ( ALL - - col0 ) AS col1 FROM tab1
----
227

query II rowsort
SELECT + 85, col2 AS col0 FROM tab2
----
85
23
85
40
85
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * col2 > - - 92 + + col1 + - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 22, col2 col2 FROM tab0 AS cor0
----
-22
10
-22
47
-22
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT + - 80 * + 93 + + COUNT( * ) FROM tab2 AS cor0
----
-7437

skipif mysql # not compatible
query I rowsort label-9345
SELECT + - 80 * + 93 + + COUNT ( * ) FROM tab2 AS cor0
----
-7437

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1 * - 35, + col2 col0 FROM tab2 AS cor0
----
1785
23
2345
58
2695
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9347
SELECT - ( + + CAST( + COUNT( * ) AS SIGNED ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9347
SELECT - ( + + CAST ( + COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + ( - + 2 ) * + + ( - 22 ) AS col2 FROM tab2
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 73 + 12, + 68 - - col0 col1 FROM tab1 AS cor0
----
85
119
85
153
85
159

query I rowsort
SELECT DISTINCT - 20 + - ( 89 ) + + + col2 FROM tab1 AS cor0
----
-13
-41
-50

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 51 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9352
SELECT ALL + col1 DIV col0 * col1 FROM tab2 AS cor0
----
0
51
77

skipif mysql # not compatible
query I rowsort label-9352
SELECT ALL + col1 / col0 * col1 FROM tab2 AS cor0
----
0
51
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 col2 FROM tab1
----
96
96
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9354
SELECT ALL 30 AS col2, ( - + 90 ) + MAX( + col0 ) AS col1 FROM tab1
----
30
1

skipif mysql # not compatible
query II rowsort label-9354
SELECT ALL 30 AS col2, ( - + 90 ) + MAX ( + col0 ) AS col1 FROM tab1
----
30
1

query I rowsort
SELECT - - 75 - + 49 AS col0 FROM tab2 AS cor0
----
26
26
26

query I rowsort
SELECT - col0 * - + ( - col1 ) + 56 * + col1 AS col2 FROM tab0 AS cor0
----
-41
-651
3321

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT DISTINCT - - ( - + COUNT( * ) ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9357
SELECT DISTINCT - - ( - + COUNT ( * ) ) AS col0 FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL - - col0 + - - 26 * + 19 FROM tab0 AS cor0
----
509
581
591

query II rowsort
SELECT ALL + + col2, col1 FROM tab2 AS cor0 WHERE NULL BETWEEN + col2 * - ( - col0 ) AND col2
----

query I rowsort
SELECT 25 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( - 31 ) AND ( NULL )
----

query I rowsort
SELECT ALL - 39 - + col1 FROM tab1
----
-44
-53
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9362
SELECT ALL + 26 * - + COUNT( * ) DIV + SUM( ALL - col0 ) * - 40 + - COUNT( * ) + - ( - COUNT( * ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL + 26 * - + COUNT ( * ) / + SUM ( ALL - col0 ) * - 40 + - COUNT ( * ) + - ( - COUNT ( * ) ) FROM tab2
----
0

query I rowsort
SELECT + col1 * - col0 + + col2 * col1 + + col0 + + col2 FROM tab0
----
-1520
198
2654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9364
SELECT col0 * + - col2 * - ( - ( 80 ) ) * - CAST( - col2 AS SIGNED ) FROM tab0
----
-2650800
-696000
-76055760

skipif mysql # not compatible
query I rowsort label-9364
SELECT col0 * + - col2 * - ( - ( 80 ) ) * - CAST ( - col2 AS INTEGER ) FROM tab0
----
-2650800
-696000
-76055760

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT DISTINCT + MAX( + ( + + col2 ) ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9365
SELECT DISTINCT + MAX ( + ( + + col2 ) ) FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9366
SELECT CAST( col1 AS SIGNED ) * + - CAST( - col0 AS SIGNED ) + col0 * 78 + - - 49 FROM tab0 AS cor0
----
2434
7712
8662

skipif mysql # not compatible
query I rowsort label-9366
SELECT CAST ( col1 AS INTEGER ) * + - CAST ( - col0 AS INTEGER ) + col0 * 78 + - - 49 FROM tab0 AS cor0
----
2434
7712
8662

query II rowsort
SELECT + col2 AS col0, - 93 + + col1 AS col2 FROM tab1
----
59
-88
68
-46
96
-79

query I rowsort
SELECT ALL 30 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 53 / - col0 + col2 + + 73 NOT BETWEEN - 36 * col1 AND NULL
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT DISTINCT + + 6 AS col2 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9372
SELECT ALL - ( + MAX( - - col0 ) ) DIV - 88 + - 68 AS col0 FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL - ( + MAX ( - - col0 ) ) / - 88 + - 68 AS col0 FROM tab1 AS cor0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT MAX( ( col1 ) ) col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9373
SELECT MAX ( ( col1 ) ) col1 FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT col1 FROM tab1 cor0 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 - + col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 61 * col2 * - - col1 * + - col2 FROM tab1
----
-1061705
-13257008
-7870464

query I rowsort
SELECT + 9 * + + 42 AS col0 FROM tab1
----
378
378
378

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 82 ) * + + col0 col1 FROM tab2
----
-3772
-5248
-6150

query I rowsort
SELECT - col1 * - col1 AS col0 FROM tab0 WHERE col2 IS NOT NULL
----
1
441
6561

onlyif mysql # aggregate syntax: 
query II rowsort label-9380
SELECT + COUNT( * ) AS col1, + COUNT( * ) AS col0 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-9380
SELECT + COUNT ( * ) AS col1, + COUNT ( * ) AS col0 FROM tab2
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9381
SELECT - CAST( + col2 AS SIGNED ) AS col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9381
SELECT - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - + 81 ) BETWEEN + + 13 AND NULL
----

query I rowsort
SELECT DISTINCT 52 + + + 46 FROM tab2 AS cor0
----
98

query I rowsort
SELECT DISTINCT - - col2 * - - col0 + col2 FROM tab1 AS cor0
----
4992
5074
6256

query I rowsort
SELECT - ( - + col1 ) + - 61 FROM tab0 cor0
----
-40
-60
20

query I rowsort
SELECT - 34 * - + col0 + col1 + - 61 FROM tab0
----
2918
3238
530

query II rowsort
SELECT - col2 AS col0, - 19 FROM tab1 cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT - - col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + - 32 - + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT + COUNT( * ) * + - MAX( + col2 ) AS col2 FROM tab2 cor0
----
-174

skipif mysql # not compatible
query I rowsort label-9389
SELECT + COUNT ( * ) * + - MAX ( + col2 ) AS col2 FROM tab2 cor0
----
-174

query I rowsort
SELECT 55 * col1 AS col2 FROM tab2 AS cor0
----
2805
3685
4235

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-9392
SELECT + 53 DIV + col0 AS col1, + col2 * + col0 AS col0 FROM tab2 AS cor0
----
0
2560
0
4350
1
1058

skipif mysql # not compatible
query II rowsort label-9392
SELECT + 53 / + col0 AS col1, + col2 * + col0 AS col0 FROM tab2 AS cor0
----
0
2560
0
4350
1
1058

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT - 58 - COUNT( + ( + 51 ) ) FROM tab1 cor0
----
-61

skipif mysql # not compatible
query I rowsort label-9393
SELECT - 58 - COUNT ( + ( + 51 ) ) FROM tab1 cor0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT + - SUM( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9394
SELECT + - SUM ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT MIN( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE NOT ( NOT NULL < - ( + col2 ) * - - col1 / - 81 + + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9395
SELECT MIN ( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE NOT ( NOT NULL < - ( + col2 ) * - - col1 / - 81 + + col1 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9396
SELECT + col0 DIV - 74 AS col2, + col1 FROM tab2 AS cor0
----
-1
67
0
51
0
77

skipif mysql # not compatible
query II rowsort label-9396
SELECT + col0 / - 74 AS col2, + col1 FROM tab2 AS cor0
----
-1
67
0
51
0
77

query II rowsort
SELECT ALL col0 AS col2, col2 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9398
SELECT ALL CAST( NULL AS SIGNED ), COUNT( * ) AS col0 FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9398
SELECT ALL CAST ( NULL AS INTEGER ), COUNT ( * ) AS col0 FROM tab1
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9399
SELECT ( + CAST( ( + col1 ) AS SIGNED ) ) FROM tab1 WHERE NOT - - 82 >= NULL
----

skipif mysql # not compatible
query I rowsort label-9399
SELECT ( + CAST ( ( + col1 ) AS INTEGER ) ) FROM tab1 WHERE NOT - - 82 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9400
SELECT col2 * CAST( col1 AS SIGNED ), - col0 AS col2 FROM tab0
----
210
-87
3807
-15
99
-97

skipif mysql # not compatible
query II rowsort label-9400
SELECT col2 * CAST ( col1 AS INTEGER ), - col0 AS col2 FROM tab0
----
210
-87
3807
-15
99
-97

query I rowsort
SELECT + col1 * - + col2 * - 9 FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * 28 NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL - 62 * - + 21 AS col0 FROM tab0 cor0 WHERE NOT + col0 <> 83 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT + COUNT( col0 ) * + SUM( ALL - 63 ) * 56 AS col0 FROM tab1 AS cor0
----
-31752

skipif mysql # not compatible
query I rowsort label-9404
SELECT + COUNT ( col0 ) * + SUM ( ALL - 63 ) * 56 AS col0 FROM tab1 AS cor0
----
-31752

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 < - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col0 AS col1 FROM tab1 cor0 WHERE col0 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9407
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + ( + SUM( DISTINCT + col2 ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9407
SELECT DISTINCT - CAST ( NULL AS REAL ) + + ( + SUM ( DISTINCT + col2 ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9408
SELECT - COUNT( * ) + + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9408
SELECT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL <> - - ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT 44 + + 90 * + - MIN( ALL + 29 ) AS col2 FROM tab1
----
-2566

skipif mysql # not compatible
query I rowsort label-9410
SELECT 44 + + 90 * + - MIN ( ALL + 29 ) AS col2 FROM tab1
----
-2566

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 38 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT - MAX( DISTINCT - 38 ) + - - 87 AS col0 FROM tab2
----
125

skipif mysql # not compatible
query I rowsort label-9412
SELECT - MAX ( DISTINCT - 38 ) + - - 87 AS col0 FROM tab2
----
125

query I rowsort
SELECT ALL 39 * col1 AS col1 FROM tab2
----
1989
2613
3003

onlyif mysql # DIV for integer division: 
query I rowsort label-9414
SELECT col1 + - ( + 40 ) DIV - + col2 FROM tab2
----
52
67
78

skipif mysql # not compatible
query I rowsort label-9414
SELECT col1 + - ( + 40 ) / - + col2 FROM tab2
----
52
67
78

query I rowsort
SELECT ALL + 31 * + col2 AS col1 FROM tab1 AS cor0
----
1829
2108
2976

query I rowsort
SELECT DISTINCT 36 FROM tab1 AS cor0 WHERE NOT ( - 98 ) IS NULL
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9417
SELECT ALL - 79 DIV + + MAX( - + 9 ) + 63 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
197

skipif mysql # not compatible
query I rowsort label-9417
SELECT ALL - 79 / + + MAX ( - + 9 ) + 63 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
197

query I rowsort
SELECT DISTINCT 85 - 57 + + col0 - + - col0 FROM tab0 cor0
----
202
222
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9419
SELECT - col2 - - CAST( NULL AS SIGNED ) + - ( - - col0 ) * + col1 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9419
SELECT - col2 - - CAST ( NULL AS INTEGER ) + - ( - - col0 ) * + col1 col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 76 - col2 FROM tab2
----
18
36
53

query II rowsort
SELECT - 46 + + 31 + + - col1 * 16, 52 + 52 AS col0 FROM tab1 WHERE col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 99 * - - col1 > + 26
----

query II rowsort
SELECT DISTINCT - col1, 36 + - + col0 AS col0 FROM tab1 AS cor0
----
-14
-15
-47
-55
-5
-49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9425
SELECT DISTINCT + CAST( + + col0 AS SIGNED ) DIV - col1 col1 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9425
SELECT DISTINCT + CAST ( + + col0 AS INTEGER ) / - col1 col1 FROM tab0 AS cor0
----
-4
-97
0

query I rowsort
SELECT ALL + 44 AS col0 FROM tab2 AS cor0
----
44
44
44

onlyif mysql # aggregate syntax: 
query II rowsort label-9427
SELECT COUNT( ALL 40 ), COUNT( * ) AS col0 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-9427
SELECT COUNT ( ALL 40 ), COUNT ( * ) AS col0 FROM tab2
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9428
SELECT ALL * FROM tab2 WHERE - CAST( - CAST( + - 36 AS SIGNED ) AS SIGNED ) <> + - ( + col0 ) * col2 + + 77 + - 42
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9428
SELECT ALL * FROM tab2 WHERE - CAST ( - CAST ( + - 36 AS INTEGER ) AS INTEGER ) <> + - ( + col0 ) * col2 + + 77 + - 42
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 * 36 AS col0 FROM tab1
----
-1692
-180
-504

query I rowsort
SELECT DISTINCT - 80 AS col2 FROM tab0 AS cor0
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-9431
SELECT + col0 DIV + + col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9431
SELECT + col0 / + + col0 AS col1 FROM tab0 AS cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 4 IS NULL
----

query I rowsort
SELECT ALL + 33 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL - 58 * col2 + - col1 - + + 62 AS col1, - 3 + - - ( + 32 ) + col0 + + - col1 * ( 28 ) AS col2 FROM tab1 cor0
----
-3489
-26
-4053
-1196
-5644
-312

query I rowsort
SELECT - 71 + - col1 AS col0 FROM tab1 AS cor0
----
-118
-76
-85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9436
SELECT + col0, CAST( NULL AS SIGNED ) * - - col0 col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9436
SELECT + col0, CAST ( NULL AS INTEGER ) * - - col0 col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT ALL - COUNT( DISTINCT + 72 ) + 2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL - COUNT ( DISTINCT + 72 ) + 2 FROM tab0 AS cor0
----
1

query II rowsort
SELECT DISTINCT - 23, + col0 * - col2 * col1 + col1 AS col0 FROM tab1 AS cor0
----
-23
-25070
-23
-290789
-23
-68530

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT ALL - MAX( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL - MAX ( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 96 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 95 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT + 47 AS col1, 50 AS col2 FROM tab2 AS cor0
----
47
50
47
50
47
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9443
SELECT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-9443
SELECT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) = NULL
----

query I rowsort
SELECT ALL - 95 + - 71 FROM tab0 AS cor0
----
-166
-166
-166

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 * col1 col2 FROM tab1 AS cor0
----
1176
3948
420

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( - col0 ) IS NOT NULL OR NOT + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT 34 * + - COUNT( * ) AS col1 FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-9447
SELECT 34 * + - COUNT ( * ) AS col1 FROM tab2
----
-102

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9448
SELECT - ( COUNT( ( - - col2 ) ) ) AS col1, COUNT( * ) AS col0 FROM tab0 WHERE + CAST( NULL AS DECIMAL ) > NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-9448
SELECT - ( COUNT ( ( - - col2 ) ) ) AS col1, COUNT ( * ) AS col0 FROM tab0 WHERE + CAST ( NULL AS REAL ) > NULL
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT ALL - COUNT( * ) * - + COUNT( * ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9449
SELECT ALL - COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab2
----
9

query II rowsort
SELECT DISTINCT + col2 * col1 AS col1, col2 * col0 FROM tab1
----
1344
4896
295
5015
3196
6188

query III rowsort
SELECT * FROM tab2 WHERE + col2 * + 49 * - - 3 * + - col2 + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 * + 51 + + col1 + - + col1 col1 FROM tab2 AS cor0
----
4386
4386
4386

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 92 * - - col0 col0 FROM tab1 AS cor0
----
4692
7820
8372

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9454
SELECT ALL - col1 + + CAST( - col1 AS SIGNED ) + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9454
SELECT ALL - col1 + + CAST ( - col1 AS INTEGER ) + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9455
SELECT + + CAST( NULL AS SIGNED ) / - 31 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9455
SELECT + + CAST ( NULL AS INTEGER ) / - 31 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 52 - + + col0 AS col0, 28 FROM tab1 AS cor0
----
-33
28
-39
28
1
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 - 36 * + col1, + col1 col0 FROM tab0
----
-2901
81
-669
21
61
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9458
SELECT ALL - 5 DIV + COUNT( * ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9458
SELECT ALL - 5 / + COUNT ( * ) AS col1 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9459
SELECT + + 77, + COUNT( * ) * + COUNT( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
77
9

skipif mysql # not compatible
query II rowsort label-9459
SELECT + + 77, + COUNT ( * ) * + COUNT ( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
77
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT - + MIN( 26 ) * + 82 + + 42 FROM tab1 AS cor0
----
-2090

skipif mysql # not compatible
query I rowsort label-9460
SELECT - + MIN ( 26 ) * + 82 + + 42 FROM tab1 AS cor0
----
-2090

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9461
SELECT + + CAST( - - COUNT( - + col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9461
SELECT + + CAST ( - - COUNT ( - + col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT 40 * + col0 * - col1 AS col2 FROM tab2
----
-197120
-201000
-93840

query III rowsort
SELECT * FROM tab1 WHERE NOT - 9 BETWEEN + + 67 + - col0 + - 38 + + col1 * + 25 * + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col0 AS col1, - col2 - + 57 FROM tab2
----
46
-80
64
-97
75
-115

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9465
SELECT DISTINCT + CAST( - col2 AS SIGNED ) AS col1, + 80 AS col0 FROM tab1
----
-59
80
-68
80
-96
80

skipif mysql # not compatible
query II rowsort label-9465
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) AS col1, + 80 AS col0 FROM tab1
----
-59
80
-68
80
-96
80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + ( - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9467
SELECT - + col1 FROM tab2 WHERE NOT - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9467
SELECT - + col1 FROM tab2 WHERE NOT - CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9468
SELECT ALL 74 DIV 77 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL 74 / 77 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 NOT BETWEEN NULL AND - col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col0 * + 32 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9471
SELECT - col1 * + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9471
SELECT - col1 * + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 74 AS col1, + col2 AS col1 FROM tab1
----
74
59
74
68
74
96

onlyif mysql # DIV for integer division: 
query II rowsort label-9473
SELECT ALL - + 84, 22 DIV - col1 AS col0 FROM tab1 AS cor0
----
-84
-1
-84
-4
-84
0

skipif mysql # not compatible
query II rowsort label-9473
SELECT ALL - + 84, 22 / - col1 AS col0 FROM tab1 AS cor0
----
-84
-1
-84
-4
-84
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9474
SELECT ALL col0 DIV 51 AS col2 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL col0 / 51 AS col2 FROM tab0 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 17 col0, ( 60 ) * 54 * 90 * + + col2 col0 FROM tab0 WHERE NOT + 57 + - - col1 > NULL
----

query I rowsort
SELECT 44 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # aggregate syntax: 
query II rowsort label-9477
SELECT ALL - SUM( - col0 ) AS col1, - COUNT( * ) FROM tab2 AS cor0
----
185
-3

skipif mysql # not compatible
query II rowsort label-9477
SELECT ALL - SUM ( - col0 ) AS col1, - COUNT ( * ) FROM tab2 AS cor0
----
185
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9478
SELECT ALL col1 + + + 16 - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL col1 + + + 16 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT MAX( ALL + - col1 ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9479
SELECT MAX ( ALL + - col1 ) FROM tab1 cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9480
SELECT 67 DIV - col0 + - CAST( + - col2 AS SIGNED ) + 4 + + 26 * + col1 FROM tab2 AS cor0
----
1352
1804
2045

skipif mysql # not compatible
query I rowsort label-9480
SELECT 67 / - col0 + - CAST ( + - col2 AS INTEGER ) + 4 + + 26 * + col1 FROM tab2 AS cor0
----
1352
1804
2045

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9481
SELECT DISTINCT + 57 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL AND + CAST( NULL AS SIGNED ) IS NULL
----
57

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT + 57 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL AND + CAST ( NULL AS INTEGER ) IS NULL
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9482
SELECT DISTINCT + COUNT( - + col1 ), COUNT( + - col0 ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9482
SELECT DISTINCT + COUNT ( - + col1 ), COUNT ( + - col0 ) FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT ALL - col1 * - col2 + 73 FROM tab2 cor0
----
1246
3153
3959

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9484
SELECT * FROM tab0 AS cor0 WHERE + col1 IS NULL AND NOT + col2 < + col1 * - CAST( - + col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9484
SELECT * FROM tab0 AS cor0 WHERE + col1 IS NULL AND NOT + col2 < + col1 * - CAST ( - + col1 AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 * col0 - + - 92 + - 12 col0 FROM tab0
----
1190
6518
7258

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 91 * col1 IN ( + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT - MAX( col0 ) + - 62 + + 67 AS col1 FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-9487
SELECT - MAX ( col0 ) + - 62 + + 67 AS col1 FROM tab1
----
-86

onlyif mysql # DIV for integer division: 
query II rowsort label-9488
SELECT DISTINCT col2 AS col0, col0 DIV + col1 - + - 58 * + col2 * - + 52 + + 98 + + - col2 AS col2 FROM tab2
----
23
-69293
40
-120582
58
-174887

skipif mysql # not compatible
query II rowsort label-9488
SELECT DISTINCT col2 AS col0, col0 / + col1 - + - 58 * + col2 * - + 52 + + 98 + + - col2 AS col2 FROM tab2
----
23
-69293
40
-120582
58
-174887

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT ALL - SUM( DISTINCT - + col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL - SUM ( DISTINCT - + col2 ) FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT - 40 * 87 + 68 + - 73 + - SUM( DISTINCT 74 ) FROM tab2
----
-3559

skipif mysql # not compatible
query I rowsort label-9490
SELECT - 40 * 87 + 68 + - 73 + - SUM ( DISTINCT 74 ) FROM tab2
----
-3559

query I rowsort
SELECT + col0 * + col0 * + col2 + + 5 AS col1 FROM tab0
----
10580
75695
931496

query I rowsort
SELECT ALL 32 * col2 FROM tab2
----
1280
1856
736

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT DISTINCT - MIN( ALL col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9493
SELECT DISTINCT - MIN ( ALL col2 ) AS col2 FROM tab0 AS cor0
----
-10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 84 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 col2 FROM tab2
----
43
43
43

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 41 > - 53
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9498
SELECT ALL * FROM tab1 WHERE ( NULL ) = + CAST( NULL AS SIGNED ) * col1 + + col2
----

skipif mysql # not compatible
query III rowsort label-9498
SELECT ALL * FROM tab1 WHERE ( NULL ) = + CAST ( NULL AS INTEGER ) * col1 + + col2
----

query I rowsort
SELECT - 92 FROM tab0 WHERE NOT NULL BETWEEN + col2 AND + col2 + col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT - MIN( DISTINCT 20 ) AS col2 FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-9500
SELECT - MIN ( DISTINCT 20 ) AS col2 FROM tab0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT DISTINCT COUNT( DISTINCT col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9501
SELECT DISTINCT COUNT ( DISTINCT col0 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT + 20 + + MAX( + col1 + - col2 ) * 33 col2 FROM tab1
----
-673

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9502
SELECT + 20 + + MAX ( + col1 + - col2 ) * 33 col2 FROM tab1
----
-673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 12 col0 FROM tab2
----
-12

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 - - col0 ) <= - 18
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 50 AS col1 FROM tab0 WHERE NOT 13 IS NOT NULL
----

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( col2 + col2 / col0 ) IS NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN - col2 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT ALL COUNT( ALL + 78 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL COUNT ( ALL + 78 ) FROM tab1
----
3

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE - col2 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT ALL COUNT( * ) FROM tab1 WHERE ( NULL ) IN ( 98 )
----
0

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL COUNT ( * ) FROM tab1 WHERE ( NULL ) IN ( 98 )
----
0

query I rowsort
SELECT ALL ( col0 ) + col1 * + col0 AS col0 FROM tab1
----
4368
510
765

onlyif mysql # DIV for integer division: 
query III rowsort label-9512
SELECT DISTINCT * FROM tab2 WHERE col0 DIV - 89 + - col1 DIV - col0 IN ( col1 - + col1 )
----
75
67
58

skipif mysql # not compatible
query III rowsort label-9512
SELECT DISTINCT * FROM tab2 WHERE col0 / - 89 + - col1 / - col0 IN ( col1 - + col1 )
----
75
67
58

query I rowsort
SELECT ALL 41 - col0 FROM tab2
----
-23
-34
-5

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE ( col0 ) IS NULL
----

query I rowsort
SELECT - col0 + - 82 AS col1 FROM tab1
----
-133
-167
-173

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 ) >= - col1 * 74
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT 52 * + COUNT( * ) - 98 FROM tab1 WHERE ( + 1 - col0 * + col2 ) BETWEEN - 63 * col2 AND ( + col1 )
----
-46

skipif mysql # not compatible
query I rowsort label-9518
SELECT 52 * + COUNT ( * ) - 98 FROM tab1 WHERE ( + 1 - col0 * + col2 ) BETWEEN - 63 * col2 AND ( + col1 )
----
-46

query I rowsort
SELECT 40 + col1 FROM tab2
----
107
117
91

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) < + ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9521
SELECT AVG ( ALL + CAST( - col0 AS SIGNED ) ) col1 FROM tab1 WHERE NOT 8 + - 45 * - col2 <> - 70
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9521
SELECT AVG ( ALL + CAST ( - col0 AS INTEGER ) ) col1 FROM tab1 WHERE NOT 8 + - 45 * - col2 <> - 70
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 * 95 ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9523
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN 78 AND CAST( - 84 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9523
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN 78 AND CAST ( - 84 AS INTEGER )
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT + 44 / + 92 + 86 > - col0 * - ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9525
SELECT ALL + col0 * + col1 + 72 DIV - col0 FROM tab1 AS cor0
----
425
4277
713

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL + col0 * + col1 + 72 / - col0 FROM tab1 AS cor0
----
425
4277
713

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT - 23 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-9526
SELECT - 23 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-69

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 51 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 BETWEEN + col1 AND ( 74 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 ) NOT IN ( 53 + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 - ( - 3 + - 39 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9531
SELECT - 12 * SUM( DISTINCT 31 DIV col1 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9531
SELECT - 12 * SUM ( DISTINCT 31 / col1 ) FROM tab1 AS cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col2 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 11 * - col2 + + 54 / 7 FROM tab2 AS cor0 WHERE - col0 >= col2 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT DISTINCT + MIN( + col2 ) + 21 col1 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9534
SELECT DISTINCT + MIN ( + col2 ) + 21 col1 FROM tab1 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT - ( + SUM( - col1 ) ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9535
SELECT - ( + SUM ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9536
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( CAST( NULL AS SIGNED ) * col2 + + 51 * col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9536
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) * col2 + + 51 * col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( 31 * col0 ) AND - 84 + + col1
----

query I rowsort
SELECT ALL col2 + 20 AS col2 FROM tab1 AS cor0
----
116
79
88

query I rowsort
SELECT DISTINCT + - 48 - - col2 AS col0 FROM tab2 AS cor0
----
-25
-8
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 25 col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1175
125
350

query I rowsort
SELECT ALL + ( - 17 ) + + 40 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( 70 ) AND NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE col1 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9544
SELECT DISTINCT COUNT( * ) - 37 DIV - 47 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9544
SELECT DISTINCT COUNT ( * ) - 37 / - 47 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 * col1 col2 FROM tab1
----
-2585
-275
-770

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE + col0 IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 + 79 < ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 - col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9549
SELECT 67 DIV - + col2 - + 53 FROM tab2
----
-54
-54
-55

skipif mysql # not compatible
query I rowsort label-9549
SELECT 67 / - + col2 - + 53 FROM tab2
----
-54
-54
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-9550
SELECT + - 65 + + + 15 DIV + col0 AS col1 FROM tab2 AS cor0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-9550
SELECT + - 65 + + + 15 / + col0 AS col1 FROM tab2 AS cor0
----
-65
-65
-65

query I rowsort
SELECT + 62 + + - col0 FROM tab1 AS cor0
----
-23
-29
11

query I rowsort
SELECT DISTINCT 96 - 14 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
82

query II rowsort
SELECT ALL 16 AS col0, - col2 AS col1 FROM tab2
----
16
-23
16
-40
16
-58

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT 59 * + COUNT( * ) FROM tab0 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-9555
SELECT 59 * + COUNT ( * ) FROM tab0 AS cor0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT MIN( col0 ) * MIN( DISTINCT col2 ) FROM tab1 cor0
----
3009

skipif mysql # not compatible
query I rowsort label-9556
SELECT MIN ( col0 ) * MIN ( DISTINCT col2 ) FROM tab1 cor0
----
3009

query I rowsort
SELECT + 79 * + col1 * 98 FROM tab2 cor0
----
394842
518714
596134

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT DISTINCT ( + ( + SUM( - 26 ) ) ) * 7 FROM tab0 AS cor0
----
-546

skipif mysql # not compatible
query I rowsort label-9558
SELECT DISTINCT ( + ( + SUM ( - 26 ) ) ) * 7 FROM tab0 AS cor0
----
-546

query I rowsort
SELECT + col2 * col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 + col1 + col0 ) BETWEEN ( col2 ) AND + 83
----
51
14
96
85
5
59

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT DISTINCT 33 * - - COUNT( * ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-9562
SELECT DISTINCT 33 * - - COUNT ( * ) FROM tab2
----
99

query I rowsort
SELECT DISTINCT - ( col2 ) AS col2 FROM tab0 WHERE + - col0 NOT BETWEEN ( - - 74 ) AND 34 * + col2
----
-10
-47
-99

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 12 <= 58
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 32 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-117
-123
-83

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + + col1 + + col0 ) BETWEEN 19 AND NULL
----

query I rowsort
SELECT col1 + col2 + 46 FROM tab0
----
146
174
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 + + col2 col1 FROM tab1 AS cor0
----
104
113
141

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN - col0 AND ( + + 7 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 col1 FROM tab1 AS cor0 WHERE col2 / + 41 < ( - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 - + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT DISTINCT - + ( + COUNT( * ) ) * - COUNT( * ) * - - COUNT( * ) + 89 AS col2 FROM tab0 cor0
----
116

skipif mysql # not compatible
query I rowsort label-9573
SELECT DISTINCT - + ( + COUNT ( * ) ) * - COUNT ( * ) * - - COUNT ( * ) + 89 AS col2 FROM tab0 cor0
----
116

query II rowsort
SELECT ALL - col2 AS col1, 66 * - 34 AS col2 FROM tab2
----
-23
-2244
-40
-2244
-58
-2244

onlyif mysql # aggregate syntax: 
query II rowsort label-9575
SELECT COUNT( * ) AS col1, + ( 17 ) + - - 95 FROM tab0
----
3
112

skipif mysql # not compatible
query II rowsort label-9575
SELECT COUNT ( * ) AS col1, + ( 17 ) + - - 95 FROM tab0
----
3
112

query I rowsort
SELECT ALL + 61 + - 87 + 91 * col2 FROM tab1 AS cor0
----
5343
6162
8710

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0 col2, - col2 FROM tab1 cor0
----
51
-96
85
-59
91
-68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 4 + - col1 * col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * - - col0 + + + 73 AS col0 FROM tab1 cor0
----
-352
-4204
-641

query I rowsort
SELECT + 74 * + 36 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
2664
2664
2664

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT DISTINCT - + COUNT( * ) + - 72 AS col2 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9581
SELECT DISTINCT - + COUNT ( * ) + - 72 AS col2 FROM tab1 AS cor0
----
-75

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE - - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 51 - - 74 col0 FROM tab0
----
125
125
125

query I rowsort
SELECT + 90 + + col1 AS col1 FROM tab0
----
111
171
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT + MAX( ALL col2 ) FROM tab0 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9585
SELECT + MAX ( ALL col2 ) FROM tab0 WHERE - col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT DISTINCT MAX( DISTINCT + col0 ) - + COUNT( * ) col2 FROM tab2
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9586
SELECT DISTINCT MAX ( DISTINCT + col0 ) - + COUNT ( * ) col2 FROM tab2
----
72

query I rowsort
SELECT ALL + col0 - - col0 AS col0 FROM tab2
----
128
150
92

query I rowsort
SELECT DISTINCT 53 AS col2 FROM tab1 WHERE - col2 + 95 - - 17 NOT BETWEEN 3 * - 63 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + 30 col0 FROM tab1
----
-16
-25
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT MIN( DISTINCT - + ( + col2 ) ) AS col0 FROM tab0 WHERE + col0 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9590
SELECT MIN ( DISTINCT - + ( + col2 ) ) AS col0 FROM tab0 WHERE + col0 >= NULL
----
NULL

query II rowsort
SELECT col1 AS col2, - 72 AS col0 FROM tab0
----
1
-72
21
-72
81
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT - + MAX( DISTINCT - 2 ) AS col0 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9592
SELECT - + MAX ( DISTINCT - 2 ) AS col0 FROM tab2 AS cor0
----
2

query I rowsort
SELECT ALL 27 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> ( 73 )
----

query I rowsort
SELECT ALL + ( + - col1 ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9595
SELECT ( col0 ) DIV - col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9595
SELECT ( col0 ) / - col0 FROM tab0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col1 + - col2, col0 / - 86 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT - + COUNT( * ) col1 FROM tab1 cor0 WHERE NOT - col0 < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9597
SELECT - + COUNT ( * ) col1 FROM tab1 cor0 WHERE NOT - col0 < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9598
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + + CAST( col0 AS SIGNED ) / - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9598
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + + CAST ( col0 AS INTEGER ) / - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col0 * + - 91 * - 5 + - 72 * + col1 + 31 FROM tab0 AS cor0
----
-12626
-41066
-44176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9600
SELECT COUNT( ALL - + 76 ) * - CAST( - 85 AS SIGNED ) + - + 41 FROM tab1 AS cor0
----
214

skipif mysql # not compatible
query I rowsort label-9600
SELECT COUNT ( ALL - + 76 ) * - CAST ( - 85 AS INTEGER ) + - + 41 FROM tab1 AS cor0
----
214

query I rowsort
SELECT ALL - 60 * + + ( col2 ) - - col2 + + - 19 FROM tab1 AS cor0
----
-3500
-4031
-5683

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT + SUM( ALL - col2 ) FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-9602
SELECT + SUM ( ALL - col2 ) FROM tab2 cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT SUM( - - col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-9603
SELECT SUM ( - - col2 ) AS col1 FROM tab2
----
121

query I rowsort
SELECT ALL - ( - col2 ) * - 73 FROM tab0
----
-3431
-7227
-730

query I rowsort
SELECT 48 * + col1 FROM tab1
----
2256
240
672

query I rowsort
SELECT DISTINCT - - col0 * - col1 - col2 * + + ( + 90 ) * + 9 AS col0 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT ALL - ( - + COUNT( * ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9607
SELECT ALL - ( - + COUNT ( * ) ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ALL - 23 + + - 7 FROM tab1 cor0
----
-30
-30
-30

query I rowsort
SELECT - 20 / + 87 + - col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT DISTINCT 98 + + - 32 FROM tab0 AS cor0
----
66

query I rowsort
SELECT + 90 * + col2 * + col1 + - ( col0 ) FROM tab0 cor0
----
18813
342615
8813

onlyif mysql # DIV for integer division: 
query I rowsort label-9612
SELECT - col0 DIV col0 + + + col1 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-9612
SELECT - col0 / col0 + + + col1 FROM tab2
----
50
66
76

query I rowsort
SELECT DISTINCT + 49 - + - col0 + col1 + - 8 AS col1 FROM tab0
----
137
139
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT DISTINCT - col2 + - col2 + - + col0 * - + 56 + col2 * - 51 FROM tab2 cor0
----
1126
1357
1464

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 74 < NULL
----

query I rowsort
SELECT col1 - + 42 + - col1 AS col2 FROM tab0 AS cor0
----
-42
-42
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + - col2 - 52 col1 FROM tab2 AS cor0
----
-1225
-3132
-3938

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9619
SELECT DISTINCT - ( + AVG ( - + 48 ) ) + CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9619
SELECT DISTINCT - ( + AVG ( - + 48 ) ) + CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT ALL col1 - + 0 FROM tab0
----
1
21
81

query I rowsort
SELECT col2 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT + ( - 3 ) FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( - + ( + 16 ) + - col1, + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9624
SELECT DISTINCT - MAX( DISTINCT 46 ) * + CAST( - 37 AS SIGNED ) AS col1 FROM tab2
----
1702

skipif mysql # not compatible
query I rowsort label-9624
SELECT DISTINCT - MAX ( DISTINCT 46 ) * + CAST ( - 37 AS INTEGER ) AS col1 FROM tab2
----
1702

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 43 * - - col1 FROM tab2
----
2193
2881
3311

onlyif mysql # aggregate syntax: 
query II rowsort label-9627
SELECT + 85, + ( - COUNT( * ) ) AS col1 FROM tab2 WHERE NOT col0 * + col2 / - + 86 = NULL
----
85
0

skipif mysql # not compatible
query II rowsort label-9627
SELECT + 85, + ( - COUNT ( * ) ) AS col1 FROM tab2 WHERE NOT col0 * + col2 / - + 86 = NULL
----
85
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9628
SELECT ALL COUNT( * ) DIV - 60 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9628
SELECT ALL COUNT ( * ) / - 60 AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query III rowsort label-9629
SELECT - + col2 AS col2, col2 * - col0 AS col2, col1 DIV - + 4 + + 31 col1 FROM tab0 AS cor0
----
9 values hashing to 09a2687d5072e7de5f941834973dfe5b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-9629
SELECT - + col2 AS col2, col2 * - col0 AS col2, col1 / - + 4 + + 31 col1 FROM tab0 AS cor0
----
9 values hashing to 09a2687d5072e7de5f941834973dfe5b

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9630
SELECT DISTINCT - ( - col0 ) FROM tab1 AS cor0 WHERE NOT + col2 * + col2 > col1 * + CAST( + - 37 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-9630
SELECT DISTINCT - ( - col0 ) FROM tab1 AS cor0 WHERE NOT + col2 * + col2 > col1 * + CAST ( + - 37 AS REAL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < 93
----

query I rowsort
SELECT + + 40 * + 36 + + 81 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2589b782410504096731f9929f8ab8ef

query II rowsort
SELECT col2, 9 FROM tab0
----
10
9
47
9
99
9

query I rowsort
SELECT DISTINCT - 1 * + col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-9635
SELECT - - col0 AS col1, ( + col0 ) DIV col1 AS col2 FROM tab0 AS cor0
----
15
0
87
4
97
97

skipif mysql # not compatible
query II rowsort label-9635
SELECT - - col0 AS col1, ( + col0 ) / col1 AS col2 FROM tab0 AS cor0
----
15
0
87
4
97
97

query I rowsort
SELECT DISTINCT - col2 + - 66 AS col0 FROM tab0 AS cor0
----
-113
-165
-76

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * + col1 BETWEEN ( - col0 ) AND col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 - + col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9639
SELECT DISTINCT + - 14 + - - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) > + CAST( + - 33 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT + - 14 + - - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) > + CAST ( + - 33 AS INTEGER )
----

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NULL BETWEEN - 9 AND col0
----

query II rowsort
SELECT DISTINCT - ( - col1 ) AS col1, ( + + 92 ) AS col1 FROM tab0
----
1
92
21
92
81
92

query II rowsort
SELECT DISTINCT + col1 * - col2 AS col1, - col0 FROM tab2
----
-1173
-46
-3080
-64
-3886
-75

query I rowsort
SELECT 79 + 58 FROM tab1
----
137
137
137

query I rowsort
SELECT + col0 + + 22 FROM tab1
----
107
113
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT + - 56 + - - MAX( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-9645
SELECT + - 56 + - - MAX ( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-9646
SELECT DISTINCT - ( - + col2 ) DIV 25 + + - col2 AS col0 FROM tab2 AS cor0
----
-23
-39
-56

skipif mysql # not compatible
query I rowsort label-9646
SELECT DISTINCT - ( - + col2 ) / 25 + + - col2 AS col0 FROM tab2 AS cor0
----
-23
-39
-56

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9647
SELECT DISTINCT * FROM tab0 WHERE NOT + - col2 IN ( col2, - CAST( NULL AS DECIMAL ) * + + 17 )
----

skipif mysql # not compatible
query III rowsort label-9647
SELECT DISTINCT * FROM tab0 WHERE NOT + - col2 IN ( col2, - CAST ( NULL AS REAL ) * + + 17 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9648
SELECT ALL - col0 DIV + ( - + 15 ) FROM tab2
----
3
4
5

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL - col0 / + ( - + 15 ) FROM tab2
----
3
4
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * col1 >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 + col1 col0 FROM tab2 cor0
----
18
34
44

onlyif mysql # aggregate syntax: 
query II rowsort label-9651
SELECT + 10, COUNT( * ) AS col1 FROM tab0 AS cor0
----
10
3

skipif mysql # not compatible
query II rowsort label-9651
SELECT + 10, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
10
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT DISTINCT - ( + COUNT( * ) ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9652
SELECT DISTINCT - ( + COUNT ( * ) ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT + COUNT( col1 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9653
SELECT + COUNT ( col1 ) AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT + col2 * - 46 AS col1 FROM tab0
----
-2162
-4554
-460

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col1 * - 46 * + col2 + - col0 * - + col0 + - col1 / + col0 NOT BETWEEN NULL AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) col1 FROM tab1
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 97 + - col2 - - 98 * - + 42 + + 53 + ( - col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * + 73 FROM tab1 AS cor0 WHERE ( - 9 * - 53 / - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9659
SELECT - COUNT( * ) DIV - 76 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9659
SELECT - COUNT ( * ) / - 76 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9660
SELECT DISTINCT + COUNT( * ) DIV MAX( DISTINCT - - col2 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9660
SELECT DISTINCT + COUNT ( * ) / MAX ( DISTINCT - - col2 ) AS col2 FROM tab2
----
0

query I rowsort
SELECT - 43 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT ALL + COUNT( 41 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9662
SELECT ALL + COUNT ( 41 ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9663
SELECT * FROM tab1 AS cor0 WHERE CAST( + col0 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-9663
SELECT * FROM tab1 AS cor0 WHERE CAST ( + col0 AS INTEGER ) <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9664
SELECT col1, col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-9664
SELECT col1, col2 / + col0 AS col1 FROM tab2 AS cor0
----
51
0
67
0
77
0

query I rowsort
SELECT DISTINCT + + col1 + - 51 AS col2 FROM tab0 AS cor0
----
-30
-50
30

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col1 NOT BETWEEN + - 66 AND ( - - col2 )
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT col2 * 8 AS col0 FROM tab1
----
472
544
768

onlyif mysql # DIV for integer division: 
query I rowsort label-9668
SELECT 7 DIV - ( col1 ) col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9668
SELECT 7 / - ( col1 ) col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE + col0 * - 1 + + - col1 - + 29 - + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 78 * col1 + + + col0 AS col0 FROM tab2
----
4024
5301
6070

query I rowsort
SELECT + 89 * col1 FROM tab2 WHERE NULL IS NULL
----
4539
5963
6853

query II rowsort
SELECT DISTINCT 38, + col2 AS col0 FROM tab1
----
38
59
38
68
38
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9673
SELECT DISTINCT + + COUNT( * ) + 16 AS col0, 68 * + 24 FROM tab0 AS cor0
----
19
1632

skipif mysql # not compatible
query II rowsort label-9673
SELECT DISTINCT + + COUNT ( * ) + 16 AS col0, 68 * + 24 FROM tab0 AS cor0
----
19
1632

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT DISTINCT - 0 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9674
SELECT DISTINCT - 0 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9675
SELECT ALL + + CAST( NULL AS SIGNED ) + 0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9675
SELECT ALL + + CAST ( NULL AS INTEGER ) + 0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9676
SELECT - 63 + - COUNT( * ), COUNT( * ) AS col1 FROM tab1 AS cor0
----
-66
3

skipif mysql # not compatible
query II rowsort label-9676
SELECT - 63 + - COUNT ( * ), COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-66
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT DISTINCT - COUNT( * ) + + - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9677
SELECT DISTINCT - COUNT ( * ) + + - COUNT ( * ) FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT ALL - 58 * - 52 - - COUNT( * ) FROM tab0 AS cor0
----
3019

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL - 58 * - 52 - - COUNT ( * ) FROM tab0 AS cor0
----
3019

query I rowsort
SELECT + - 56 + + col2 AS col1 FROM tab2 cor0
----
-16
-33
2

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE ( NOT ( NULL IN ( col2 * - + col1 ) ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9681
SELECT - 84 + - COUNT( col0 ) AS col0, 51 AS col2 FROM tab1
----
-87
51

skipif mysql # not compatible
query II rowsort label-9681
SELECT - 84 + - COUNT ( col0 ) AS col0, 51 AS col2 FROM tab1
----
-87
51

query I rowsort
SELECT DISTINCT 68 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
68

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9683
SELECT ALL * FROM tab1 WHERE NOT + CAST( NULL AS DECIMAL ) * - + 81 - + CAST( NULL AS SIGNED ) IN ( 14 * + col1, + 18 * - col2 * col0 )
----

skipif mysql # not compatible
query III rowsort label-9683
SELECT ALL * FROM tab1 WHERE NOT + CAST ( NULL AS REAL ) * - + 81 - + CAST ( NULL AS INTEGER ) IN ( 14 * + col1, + 18 * - col2 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + - + col1 col2, 3 FROM tab2
----
-13
3
-5
3
8
3

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + col0 ) AND + col1
----

query I rowsort
SELECT - + 12 FROM tab0 cor0
----
-12
-12
-12

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 84 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * - col1 - + + col1 AS col1 FROM tab2 AS cor0
----
-2397
-5005
-5092

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 - + col2 > - - 2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( NULL ) = NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE NOT ( NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9691
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( NULL IS NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT DISTINCT + MIN( DISTINCT + - col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT + MIN ( DISTINCT + - col0 ) AS col1 FROM tab2
----
-75

query I rowsort
SELECT ALL col2 * 93 FROM tab0
----
4371
9207
930

onlyif mysql # aggregate syntax: 
query II rowsort label-9694
SELECT - 32 AS col2, COUNT( * ) AS col1 FROM tab1 cor0
----
-32
3

skipif mysql # not compatible
query II rowsort label-9694
SELECT - 32 AS col2, COUNT ( * ) AS col1 FROM tab1 cor0
----
-32
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9695
SELECT + + CAST( NULL AS DECIMAL ) / AVG ( ALL + ( - 79 ) ) * ( 16 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9695
SELECT + + CAST ( NULL AS REAL ) / AVG ( ALL + ( - 79 ) ) * ( 16 ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 46 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT MAX( ALL - 77 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9697
SELECT MAX ( ALL - 77 ) AS col1 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT + - col1 * + ( 52 ) AS col2 FROM tab0 AS cor0
----
-1092
-4212
-52

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col0 * + + col1 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT DISTINCT - MAX( - col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9700
SELECT DISTINCT - MAX ( - col2 ) AS col2 FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9701
SELECT ALL + 52 AS col0 FROM tab1 AS cor0 WHERE 43 <= CAST( - ( + 96 ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL + 52 AS col0 FROM tab1 AS cor0 WHERE 43 <= CAST ( - ( + 96 ) AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( col1 ) col1, - col0 AS col0 FROM tab1 cor0
----
14
-51
47
-91
5
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9703
SELECT DISTINCT col1 + + CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9703
SELECT DISTINCT col1 + + CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT + COUNT( + - col0 ) * - + COUNT( * ) col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9704
SELECT + COUNT ( + - col0 ) * - + COUNT ( * ) col2 FROM tab0 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9705
SELECT ALL col1 * + - col0 DIV + col0 + ( 98 ) FROM tab2 AS cor0
----
21
31
47

skipif mysql # not compatible
query I rowsort label-9705
SELECT ALL col1 * + - col0 / + col0 + ( 98 ) FROM tab2 AS cor0
----
21
31
47

query I rowsort
SELECT ALL + col1 + + + 51 + col1 AS col0 FROM tab2 AS cor0
----
153
185
205

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 15 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * - - col0 + - 76 + col2 col0 FROM tab1 AS cor0
----
-4876
-5032
-6196

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 58 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 BETWEEN + 22 * + col2 + + col0 + - 43 AND - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9711
SELECT DISTINCT - col2 DIV + col1 AS col1, col1 FROM tab0 AS cor0
----
-99
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-9711
SELECT DISTINCT - col2 / + col1 AS col1, col1 FROM tab0 AS cor0
----
-99
1
0
21
0
81

query I rowsort
SELECT DISTINCT + 19 * col2 + - col2 AS col2 FROM tab0
----
1782
180
846

query I rowsort
SELECT ALL + col0 + - 33 AS col1 FROM tab2 WHERE NOT NULL >= + col1 * 26
----

query I rowsort
SELECT - col1 + + + 43 AS col2 FROM tab2
----
-24
-34
-8

query I rowsort
SELECT 56 * - col2 + - 47 * col2 FROM tab2
----
-2369
-4120
-5974

query I rowsort
SELECT 17 + - col0 AS col0 FROM tab0
----
-70
-80
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9717
SELECT ALL + CAST( - col1 AS SIGNED ) AS col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT 9 + 85 AS col0 FROM tab1
----
94
94
94

query I rowsort
SELECT + col2 * - col2 * ( col2 ) FROM tab2
----
-12167
-195112
-64000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) col1 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 98 >= - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 83 * col0 - - 19 - 77 FROM tab0
----
1187
7163
7993

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT ALL + SUM( DISTINCT 65 ) + - 52 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
13

skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL + SUM ( DISTINCT 65 ) + - 52 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
13

query II rowsort
SELECT DISTINCT - col0 AS col1, + col0 AS col2 FROM tab2
----
-46
46
-64
64
-75
75

query II rowsort
SELECT col0 AS col2, col0 - + col2 * + ( - col1 ) FROM tab0
----
15
3822
87
297
97
196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0, + 62 col1 FROM tab1 AS cor0
----
51
62
85
62
91
62

query I rowsort
SELECT DISTINCT + col0 + - col1 FROM tab2 AS cor0 WHERE NOT NULL < col1 - - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 98 col0, + col0 - + col2 FROM tab2 AS cor0
----
98
17
98
23
98
24

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 >= - col0
----

query I rowsort
SELECT ALL - ( 98 ) FROM tab0 AS cor0
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT DISTINCT + + MIN( 91 ) FROM tab1 AS cor0 WHERE NOT col0 * + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9731
SELECT DISTINCT + + MIN ( 91 ) FROM tab1 AS cor0 WHERE NOT col0 * + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9732
SELECT ALL + COUNT( * ) AS col2, + 61 AS col1 FROM tab1 AS cor0
----
3
61

skipif mysql # not compatible
query II rowsort label-9732
SELECT ALL + COUNT ( * ) AS col2, + 61 AS col1 FROM tab1 AS cor0
----
3
61

query II rowsort
SELECT ALL + col0 AS col0, ( - + col0 ) FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT ALL COUNT( + - 2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL COUNT ( + - 2 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 23 col2 FROM tab2
----
-1173
-1541
-1771

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9736
SELECT - CAST( ( + + col2 ) AS SIGNED ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9736
SELECT - CAST ( ( + + col2 ) AS INTEGER ) FROM tab2
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + + ( col0 ) ) col0 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9738
SELECT - CAST( CAST( - col1 AS SIGNED ) AS SIGNED ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9738
SELECT - CAST ( CAST ( - col1 AS INTEGER ) AS INTEGER ) FROM tab2
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT 34 AS col2 FROM tab0 WHERE NOT NULL = + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9741
SELECT DISTINCT col0, col0 col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + CAST( - - col1 AS SIGNED ) * + + ( 80 ) - + + col0 + - col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9741
SELECT DISTINCT col0, col0 col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + CAST ( - - col1 AS INTEGER ) * + + ( 80 ) - + + col0 + - col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN NULL AND + col2
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9743
SELECT CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9743
SELECT CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 5 * - - 50 AS col2 FROM tab2 WHERE + - col2 > + col0
----

query I rowsort
SELECT - col1 + + 10 * col1 AS col2 FROM tab2 cor0
----
459
603
693

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + + - col1 = col0
----

query I rowsort
SELECT ( - 29 ) + + - 31 FROM tab1 AS cor0
----
-60
-60
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + + 8 + + 78 + - 69 + - 55 col2 FROM tab0 AS cor0
----
330
34
746

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT - ( COUNT( * ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9749
SELECT - ( COUNT ( * ) ) FROM tab2 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 24 * 97 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 FROM tab0 WHERE - - 65 IS NULL
----

query II rowsort
SELECT DISTINCT col2 * - col2 AS col0, col0 FROM tab0
----
-100
87
-2209
15
-9801
97

query I rowsort
SELECT ALL + col0 - - - col1 AS col2 FROM tab0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT + 38 - SUM( + - 8 ) FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-9756
SELECT + 38 - SUM ( + - 8 ) FROM tab0
----
62

query I rowsort
SELECT ALL - col2 - ( - col0 ) FROM tab2
----
17
23
24

query I rowsort
SELECT ALL - col0 + + 91 AS col2 FROM tab1 AS cor0
----
0
40
6

query I rowsort
SELECT DISTINCT - col0 * - col1 - + 26 FROM tab0 AS cor0
----
1189
1801
71

query I rowsort
SELECT + ( + + 46 ) AS col0 FROM tab2 AS cor0
----
46
46
46

query II rowsort
SELECT ALL + col1, col2 FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT + col2 * + col0 - + 1 + + col0 FROM tab0 AS cor0
----
719
956
9699

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - - col1 AND + 39 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT DISTINCT - + 26 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-9764
SELECT DISTINCT - + 26 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT ( MIN( DISTINCT + 99 ) ) FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9765
SELECT ( MIN ( DISTINCT + 99 ) ) FROM tab2 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9766
SELECT + + col0 DIV - + 91 + + col0 AS col2 FROM tab0 AS cor0
----
15
87
96

skipif mysql # not compatible
query I rowsort label-9766
SELECT + + col0 / - + 91 + + col0 AS col2 FROM tab0 AS cor0
----
15
87
96

query I rowsort
SELECT + 53 * - col2 * - col1 + + col2 FROM tab1 AS cor0
----
15694
169456
71328

query I rowsort
SELECT - 9 * - + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( col0 ) - - 83 IS NULL
----
135
783
873

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> col0 / - col0 - - 73
----

query I rowsort
SELECT + col2 * - 8 AS col2 FROM tab2 cor0
----
-184
-320
-464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9771
SELECT + CAST( - col1 AS SIGNED ) col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9771
SELECT + CAST ( - col1 AS INTEGER ) col1 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9772
SELECT ALL + col2 AS col0, - CAST( NULL AS SIGNED ) + - col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-9772
SELECT ALL + col2 AS col0, - CAST ( NULL AS INTEGER ) + - col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

query II rowsort
SELECT DISTINCT col0 AS col1, col0 AS col0 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT ALL + 74 * - ( + + col1 ) AS col1 FROM tab0
----
-1554
-5994
-74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9775
SELECT * FROM tab2 WHERE NOT - + CAST( NULL AS SIGNED ) * - col0 = ( ( - col1 ) )
----

skipif mysql # not compatible
query III rowsort label-9775
SELECT * FROM tab2 WHERE NOT - + CAST ( NULL AS INTEGER ) * - col0 = ( ( - col1 ) )
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9777
SELECT CAST( NULL AS SIGNED ), col1 AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-9777
SELECT CAST ( NULL AS INTEGER ), col1 AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, + col0 col1 FROM tab2
----
23
46
40
64
58
75

query I rowsort
SELECT + 1 + + col0 FROM tab0
----
16
88
98

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col0 * + ( + - col2 ) * - col0 + - 71 + - ( - - 28 ) / - 49
----

query II rowsort
SELECT col1 + - - col0, col1 FROM tab2 AS cor0
----
141
77
142
67
97
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9782
SELECT * FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) * - 31 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9782
SELECT * FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - 31 IS NULL
----

query I rowsort
SELECT - col1 + - col1 + + col1 * - 15 + 15 * - + 47 * + + col1 * - 51 AS col2 FROM tab0 cor0
----
2910978
35938
754698

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT ALL COUNT( - - col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL COUNT ( - - col2 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT ALL COUNT( * ) + 98 * 10 AS col1 FROM tab0 cor0
----
983

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL COUNT ( * ) + 98 * 10 AS col1 FROM tab0 cor0
----
983

query III rowsort
SELECT * FROM tab1 WHERE - col0 + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT DISTINCT 31 + - MAX( 79 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-48

skipif mysql # not compatible
query I rowsort label-9787
SELECT DISTINCT 31 + - MAX ( 79 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9788
SELECT ALL - CAST( + + 51 AS SIGNED ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL - CAST ( + + 51 AS INTEGER ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col2 FROM tab2 WHERE NOT - - col1 IS NULL
----
51
67
77

query I rowsort
SELECT + + 53 - - 50 AS col2 FROM tab0 AS cor0
----
103
103
103

query I rowsort
SELECT + + 38 + - + 10 FROM tab2 AS cor0
----
28
28
28

query II rowsort
SELECT - col1 + + col0, col1 FROM tab1 AS cor0
----
37
14
44
47
80
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 45 AND + col0 * col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = col1 / - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9795
SELECT ALL + CAST( NULL AS SIGNED ) - ( col1 ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9795
SELECT ALL + CAST ( NULL AS INTEGER ) - ( col1 ) FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 4 * + + col0 * - col2 * col1 * + col2 / + col0 IS NULL
----

query II rowsort
SELECT ALL - 75 - 91, + col1 FROM tab2 cor0
----
-166
51
-166
67
-166
77

query I rowsort
SELECT ALL 53 + + + 76 FROM tab2
----
129
129
129

query I rowsort
SELECT - col0 + col1 FROM tab0 WHERE - + col2 <= - 35
----
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT 61 + + COUNT( col0 ) FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-9800
SELECT 61 + + COUNT ( col0 ) FROM tab1
----
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + col1 + col1 col0 FROM tab1
----
14
47
5

query I rowsort
SELECT 68 * - col2 FROM tab2
----
-1564
-2720
-3944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - col1 col2 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT ALL COUNT( * ) * 41 AS col1 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL COUNT ( * ) * 41 AS col1 FROM tab2
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-9805
SELECT ( 10 ) * - COUNT( * ) AS col0, - 14 FROM tab0
----
-30
-14

skipif mysql # not compatible
query II rowsort label-9805
SELECT ( 10 ) * - COUNT ( * ) AS col0, - 14 FROM tab0
----
-30
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-9806
SELECT DISTINCT col1 DIV + col2 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9806
SELECT DISTINCT col1 / + col2 col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT COUNT( * ) * - 85 AS col0 FROM tab2
----
-255

skipif mysql # not compatible
query I rowsort label-9807
SELECT COUNT ( * ) * - 85 AS col0 FROM tab2
----
-255

query I rowsort
SELECT DISTINCT - col2 + + - 42 + + col1 * + - 27 FROM tab0 AS cor0
----
-168
-2276
-619

query II rowsort
SELECT DISTINCT - col1, + col0 + - 90 + col0 AS col1 FROM tab1 cor0
----
-14
12
-47
92
-5
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - col0 - col0 col2 FROM tab1 AS cor0
----
14
-102
47
-182
5
-170

query II rowsort
SELECT DISTINCT + 50 * + 7, + col2 AS col2 FROM tab0
----
350
10
350
47
350
99

query I rowsort
SELECT + 67 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
67
67
67

query I rowsort
SELECT - - col1 + + col0 / col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 39 * + col1 AS col2 FROM tab0 AS cor0
----
-3159
-39
-819

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT DISTINCT - COUNT( ALL - + col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9815
SELECT DISTINCT - COUNT ( ALL - + col1 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT ALL - MIN( - 24 ) FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL - MIN ( - 24 ) FROM tab2 AS cor0
----
24

query I rowsort
SELECT DISTINCT + col2 + + col0 / - + col0 * - - ( col2 ) + col1 + col0 + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9818
SELECT + 22 * - COUNT( * ) AS col0, 37 + 54 FROM tab2 AS cor0
----
-66
91

skipif mysql # not compatible
query II rowsort label-9818
SELECT + 22 * - COUNT ( * ) AS col0, 37 + 54 FROM tab2 AS cor0
----
-66
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT ALL + COUNT( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9819
SELECT ALL + COUNT ( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + ( - - ( + + 39 ) ) FROM tab0 AS cor0 WHERE NOT - col1 > 40 + col1 - - + 93
----
39
39
39

query I rowsort
SELECT + col1 * + - 23 AS col2 FROM tab0 AS cor0
----
-1863
-23
-483

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - 4 ) col0 FROM tab1 AS cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT - MIN( DISTINCT + - 46 ) * + 76 AS col2 FROM tab2 AS cor0
----
3496

skipif mysql # not compatible
query I rowsort label-9823
SELECT - MIN ( DISTINCT + - 46 ) * + 76 AS col2 FROM tab2 AS cor0
----
3496

query II rowsort
SELECT DISTINCT 18 AS col0, + 49 AS col2 FROM tab1
----
18
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT DISTINCT - MAX( DISTINCT - col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9825
SELECT DISTINCT - MAX ( DISTINCT - col1 ) FROM tab0
----
1

query I rowsort
SELECT 93 * + 34 FROM tab1
----
3162
3162
3162

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 48 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0 + - - 69 * + 73 * + col1 + + + col1 col0, 94 * - 94 * col2 * + col1 - col0 + - + col2 + - col2 AS col2 FROM tab0 cor0
----
105885
-1855667
408093
-33638761
5135
-875059

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9829
SELECT DISTINCT + col2 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9829
SELECT DISTINCT + col2 + + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9830
SELECT + COUNT( ALL - + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9830
SELECT + COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 56 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT - COUNT( * ) + ( - COUNT( * ) ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-9832
SELECT - COUNT ( * ) + ( - COUNT ( * ) ) FROM tab0
----
-6

query I rowsort
SELECT DISTINCT + 53 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9834
SELECT ALL + 18 DIV SUM( + - 24 ) * - ( - - COUNT( * ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL + 18 / SUM ( + - 24 ) * - ( - - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9835
SELECT ALL + COUNT( * ), 3 FROM tab1 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9835
SELECT ALL + COUNT ( * ), 3 FROM tab1 cor0
----
3
3

query I rowsort
SELECT ALL + col0 + 86 AS col2 FROM tab0 AS cor0
----
101
173
183

query I rowsort
SELECT DISTINCT - 66 + - col0 AS col0 FROM tab0 AS cor0
----
-153
-163
-81

query I rowsort
SELECT + 9 * + - 6 AS col0 FROM tab1 AS cor0
----
-54
-54
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9839
SELECT - 13 DIV - - SUM( DISTINCT - col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9839
SELECT - 13 / - - SUM ( DISTINCT - col2 ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9840
SELECT + - col2 * + - CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-9840
SELECT + - col2 * + - CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT DISTINCT col1 + - - col1 FROM tab2 AS cor0
----
102
134
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9842
SELECT ALL - ( 2 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL - ( 2 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT ALL + COUNT( * ) + - 23 AS col1 FROM tab1 cor0
----
-20

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL + COUNT ( * ) + - 23 AS col1 FROM tab1 cor0
----
-20

query I rowsort
SELECT DISTINCT col1 - + 63 AS col0 FROM tab0
----
-42
-62
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT 73 - - SUM( DISTINCT + 12 ) * + COUNT( * ) FROM tab1
----
109

skipif mysql # not compatible
query I rowsort label-9845
SELECT 73 - - SUM ( DISTINCT + 12 ) * + COUNT ( * ) FROM tab1
----
109

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 > - col1
----

query II rowsort
SELECT ALL col1 * + + 89, col2 AS col2 FROM tab0
----
1869
10
7209
47
89
99

query I rowsort
SELECT - 50 * + col1 + + 15 AS col2 FROM tab0 AS cor0
----
-1035
-35
-4035

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * + col2 * + col1 AS col1 FROM tab0 AS cor0
----
18270
57105
9603

query I rowsort
SELECT DISTINCT - 82 FROM tab0 AS cor0 WHERE NOT ( + 83 ) IS NULL
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT 58 - - - ( COUNT( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
49

skipif mysql # not compatible
query I rowsort label-9852
SELECT 58 - - - ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
49

query I rowsort
SELECT DISTINCT - col1 * ( - + col0 ) FROM tab1
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL NOT BETWEEN - 24 AND + col1 + - col1 / - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT DISTINCT + - COUNT( - + col0 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT + - COUNT ( - + col0 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9856
SELECT - 10, CAST( col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
-10
51
-10
85
-10
91

skipif mysql # not compatible
query II rowsort label-9856
SELECT - 10, CAST ( col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
-10
51
-10
85
-10
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT + MIN( col0 ) * 88 FROM tab1 AS cor0
----
4488

skipif mysql # not compatible
query I rowsort label-9858
SELECT + MIN ( col0 ) * 88 FROM tab1 AS cor0
----
4488

query I rowsort
SELECT ALL + - col0 * - - col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL - + 37 + 80 FROM tab1 AS cor0
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9861
SELECT + + CAST( ( + col0 ) AS SIGNED ) AS col0, 78 AS col0 FROM tab1 cor0
----
51
78
85
78
91
78

skipif mysql # not compatible
query II rowsort label-9861
SELECT + + CAST ( ( + col0 ) AS INTEGER ) AS col0, 78 AS col0 FROM tab1 cor0
----
51
78
85
78
91
78

query II rowsort
SELECT DISTINCT 94, + 24 * 50 + + 66 + - 96 + - 33 AS col1 FROM tab0 AS cor0
----
94
1137

onlyif mysql # DIV for integer division: 
query I rowsort label-9863
SELECT DISTINCT - 6 DIV + 53 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9863
SELECT DISTINCT - 6 / + 53 AS col2 FROM tab1
----
0

query I rowsort
SELECT - col1 + + col2 * + + 36 * - - col1 * - 85 AS col1 FROM tab0
----
-11649501
-302941
-642621

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT col2 + - col1 + ( col1 ) - - + ( col0 ) FROM tab0
----
196
62
97

query I rowsort
SELECT - col2 + + 52 FROM tab1
----
-16
-44
-7

query I rowsort
SELECT ALL - 93 + + col0 FROM tab0 AS cor0
----
-6
-78
4

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NOT NULL NOT BETWEEN + col2 AND ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT - COUNT( * ) * - - COUNT( * ) AS col0 FROM tab1 cor0 WHERE 50 NOT IN ( + col1, - col1 )
----
-9

skipif mysql # not compatible
query I rowsort label-9870
SELECT - COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab1 cor0 WHERE 50 NOT IN ( + col1, - col1 )
----
-9

query I rowsort
SELECT DISTINCT col2 + - 18 FROM tab2 cor0
----
22
40
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT + ( + SUM( + col1 ) ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9872
SELECT + ( + SUM ( + col1 ) ) FROM tab2 AS cor0
----
195

query II rowsort
SELECT ALL + col1 AS col2, col2 AS col1 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT - 13 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9875
SELECT * FROM tab0 AS cor0 WHERE + col1 / 58 * col0 + + col1 + + col1 * - col1 * - - col2 - + - 18 * + + CAST( NULL AS SIGNED ) * + col1 * col1 + - col2 * - 32 - - CAST( NULL AS SIGNED ) > col0
----

skipif mysql # not compatible
query III rowsort label-9875
SELECT * FROM tab0 AS cor0 WHERE + col1 / 58 * col0 + + col1 + + col1 * - col1 * - - col2 - + - 18 * + + CAST ( NULL AS INTEGER ) * + col1 * col1 + - col2 * - 32 - - CAST ( NULL AS INTEGER ) > col0
----

query I rowsort
SELECT ALL - ( 19 ) + - col1 + 16 FROM tab1 AS cor0
----
-17
-50
-8

query I rowsort
SELECT DISTINCT - ( + - col1 ) + - 94 AS col0 FROM tab0 AS cor0
----
-13
-73
-93

query I rowsort
SELECT DISTINCT - - 97 + 72 AS col1 FROM tab1 AS cor0
----
169

query II rowsort
SELECT DISTINCT + col2 + - ( + 2 ) AS col2, ( - col2 ) + + 68 AS col1 FROM tab0 AS cor0
----
45
21
8
58
97
-31

query I rowsort
SELECT ALL col1 - + col0 FROM tab1 AS cor0
----
-37
-44
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col2, + 21 col1 FROM tab1
----
59
21
68
21
96
21

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 49 > + + 53
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT - MIN( + col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9883
SELECT - MIN ( + col1 ) FROM tab1
----
-5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 48 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9885
SELECT - col2 * + + CAST( - 47 AS SIGNED ) FROM tab2 AS cor0
----
1081
1880
2726

skipif mysql # not compatible
query I rowsort label-9885
SELECT - col2 * + + CAST ( - 47 AS INTEGER ) FROM tab2 AS cor0
----
1081
1880
2726

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT DISTINCT + SUM( ALL ( - 48 ) ) * + - 13 FROM tab0 AS cor0
----
1872

skipif mysql # not compatible
query I rowsort label-9886
SELECT DISTINCT + SUM ( ALL ( - 48 ) ) * + - 13 FROM tab0 AS cor0
----
1872

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9887
SELECT ALL - 74 DIV + COUNT( * ) FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-9887
SELECT ALL - 74 / + COUNT ( * ) FROM tab2
----
-24

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> - col0 * - 65
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 23 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT ALL + + 60 * - col1 FROM tab0 AS cor0
----
-1260
-4860
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + + 84, + col2 + - 28 + - ( - col0 ) * - col0 * col2 col2 FROM tab1 AS cor0
----
37
-563068
70
-249628
79
-426244

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT DISTINCT COUNT( * ) + - - MAX( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-9893
SELECT DISTINCT COUNT ( * ) + - - MAX ( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
61

query II rowsort
SELECT ALL + col1 * + col2, + 50 * + col2 * + 99 AS col2 FROM tab1 AS cor0
----
1344
475200
295
292050
3196
336600

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + + col0 IS NULL
----

query I rowsort
SELECT - col2 * - - 4 + - col2 AS col0 FROM tab2 cor0
----
-115
-200
-290

onlyif mysql # DIV for integer division: 
query I rowsort label-9897
SELECT ALL + col2 DIV + + 85 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL + col2 / + + 85 AS col0 FROM tab0
----
0
0
1

query I rowsort
SELECT + 99 * + + ( + col2 ) FROM tab1
----
5841
6732
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT - SUM( - col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-9899
SELECT - SUM ( - col2 ) FROM tab2
----
121

query I rowsort
SELECT ALL 14 + + 96 AS col1 FROM tab2 AS cor0
----
110
110
110

query II rowsort
SELECT ALL - 42 / - 87 * 11 + col0 AS col2, col0 AS col1 FROM tab2 AS cor0 WHERE + col2 NOT IN ( + col2, - col2 / + - 35 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 21 + 15 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT + - col1 * col1 + + col1 AS col1 FROM tab2 AS cor0
----
-2550
-4422
-5852

onlyif mysql # DIV for integer division: 
query I rowsort label-9905
SELECT ALL - col0 DIV col1 + + + col2 FROM tab0 AS cor0
----
2
47
6

skipif mysql # not compatible
query I rowsort label-9905
SELECT ALL - col0 / col1 + + + col2 FROM tab0 AS cor0
----
2
47
6

query I rowsort
SELECT DISTINCT - col0 + + - 4 FROM tab2 AS cor0
----
-50
-68
-79

query I rowsort
SELECT 22 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query III rowsort
SELECT * FROM tab0 WHERE - col1 * - 41 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 28 + + col1 AS col2, col2 AS col1 FROM tab0
----
109
47
29
99
49
10

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL - ( + 11 ) FROM tab0 cor0
----
-11
-11
-11

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col2 * col0 + - + col2 NOT IN ( 8 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9913
SELECT - + 7 - + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9913
SELECT - + 7 - + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 68 * + - ( - - 21 ) FROM tab1 AS cor0
----
-1428
-1428
-1428

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT + + MAX( DISTINCT 16 ) col2 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9915
SELECT + + MAX ( DISTINCT 16 ) col2 FROM tab1 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT + + MAX( ALL + - ( + col2 ) ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9916
SELECT + + MAX ( ALL + - ( + col2 ) ) FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT ALL MIN( + - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL MIN ( + - col2 ) FROM tab2
----
-58

query II rowsort
SELECT DISTINCT - col1 AS col2, col0 FROM tab1
----
-14
51
-47
91
-5
85

query I rowsort
SELECT - 6 AS col1 FROM tab1 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL + - col0 AS col0 FROM tab2 WHERE NOT - + col0 = + + col1
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 col0 FROM tab2
----
73
73
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9922
SELECT col2 * CAST( NULL AS SIGNED ) / col0 * - + 23 * + - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9922
SELECT col2 * CAST ( NULL AS INTEGER ) / col0 * - + 23 * + - col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT + MAX( col1 ) * + + 59 + + 33 + SUM( DISTINCT col2 ) FROM tab1 cor0
----
3029

skipif mysql # not compatible
query I rowsort label-9923
SELECT + MAX ( col1 ) * + + 59 + + 33 + SUM ( DISTINCT col2 ) FROM tab1 cor0
----
3029

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 col1 FROM tab1 AS cor0
----
-72

query I rowsort
SELECT DISTINCT - col0 * + + 62 FROM tab2 cor0
----
-2852
-3968
-4650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9926
SELECT DISTINCT - CAST( - + ( + col1 ) AS SIGNED ) + + - 50 - + + 96 AS col2 FROM tab1 AS cor0 WHERE NOT - 73 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9926
SELECT DISTINCT - CAST ( - + ( + col1 ) AS INTEGER ) + + - 50 - + + 96 AS col2 FROM tab1 AS cor0 WHERE NOT - 73 IS NOT NULL
----

query I rowsort
SELECT - + 77 * - col0 + - col2 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT - + COUNT( * ) - - ( - MAX( ALL - 82 ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
79

skipif mysql # not compatible
query I rowsort label-9928
SELECT - + COUNT ( * ) - - ( - MAX ( ALL - 82 ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9929
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-9929
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

query II rowsort
SELECT ALL col2 + - 97, col0 FROM tab0
----
-50
15
-87
87
2
97

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + col2 * + + col2 AS col1 FROM tab1 cor0
----
-3481
-4624
-9216

query II rowsort
SELECT - col0 AS col2, col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query I rowsort
SELECT + 75 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * ( + - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT ALL + COUNT( * ) * + 12 * + 72 col0 FROM tab2
----
2592

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9936
SELECT ALL + COUNT ( * ) * + 12 * + 72 col0 FROM tab2
----
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT DISTINCT - MAX( + + 24 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-24

skipif mysql # not compatible
query I rowsort label-9937
SELECT DISTINCT - MAX ( + + 24 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-24

query I rowsort
SELECT DISTINCT col0 * - - 98 AS col1 FROM tab0
----
1470
8526
9506

query I rowsort
SELECT ( + col0 ) + 79 AS col0 FROM tab1
----
130
164
170

onlyif mysql # DIV for integer division: 
query I rowsort label-9940
SELECT - 95 DIV col2 + + + col2 * + col0 AS col2 FROM tab2 AS cor0
----
1054
2558
4349

skipif mysql # not compatible
query I rowsort label-9940
SELECT - 95 / col2 + + + col2 * + col0 AS col2 FROM tab2 AS cor0
----
1054
2558
4349

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT ALL - - COUNT( * ) - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL - - COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT ALL 47 * - COUNT( * ) FROM tab0
----
-141

skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL 47 * - COUNT ( * ) FROM tab0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT DISTINCT SUM( 2 ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9943
SELECT DISTINCT SUM ( 2 ) AS col1 FROM tab2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9944
SELECT ALL + col1 DIV - + col2 + - - 64 FROM tab1 AS cor0 WHERE NULL IS NULL
----
64
64
64

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL + col1 / - + col2 + - - 64 FROM tab1 AS cor0 WHERE NULL IS NULL
----
64
64
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9945
SELECT ALL col0 * - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + col1 - col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL col0 * - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + col1 - col1 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9946
SELECT ALL - 23 AS col1, ( - - CAST( NULL AS SIGNED ) ) * - + col0 + ( - - 62 ) + - CAST( NULL AS SIGNED ) - + + 64 * 10 AS col1 FROM tab1 AS cor0
----
-23
NULL
-23
NULL
-23
NULL

skipif mysql # not compatible
query II rowsort label-9946
SELECT ALL - 23 AS col1, ( - - CAST ( NULL AS INTEGER ) ) * - + col0 + ( - - 62 ) + - CAST ( NULL AS INTEGER ) - + + 64 * 10 AS col1 FROM tab1 AS cor0
----
-23
NULL
-23
NULL
-23
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE - 48 NOT BETWEEN - col1 + - - 84 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE - 48 NOT BETWEEN - col1 + - - 84 AND NULL
----
3

query I rowsort
SELECT + ( + ( + - col0 ) ) AS col1 FROM tab2
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-9949
SELECT - col2 DIV + 78 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9949
SELECT - col2 / + 78 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + 21 col0, col0 FROM tab1
----
1239
85
1428
91
2016
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 * + + col1 col1 FROM tab1
----
1022
3431
365

query I rowsort
SELECT DISTINCT col1 * - + 28 FROM tab1
----
-1316
-140
-392

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab1 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT + ( + - ( - col1 ) ) FROM tab1
----
14
47
5

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT + + col0 + - col0 - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 57 col0 FROM tab2 AS cor0
----
1311
2280
3306

query II rowsort
SELECT - col0, col1 AS col1 FROM tab0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT + 94 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9960
SELECT - COUNT( CAST( NULL AS SIGNED ) ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-9960
SELECT - COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT DISTINCT + 38 AS col0 FROM tab2 WHERE NOT + 42 NOT BETWEEN NULL AND - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9962
SELECT DISTINCT - + CAST( + col2 AS SIGNED ) + - + col1 * - col0 FROM tab2 cor0
----
2323
4888
4967

skipif mysql # not compatible
query I rowsort label-9962
SELECT DISTINCT - + CAST ( + col2 AS INTEGER ) + - + col1 * - col0 FROM tab2 cor0
----
2323
4888
4967

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > - col2 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT DISTINCT + SUM( DISTINCT + col2 ) + - 85 AS col2 FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-9964
SELECT DISTINCT + SUM ( DISTINCT + col2 ) + - 85 AS col2 FROM tab1 AS cor0
----
138

query I rowsort
SELECT DISTINCT + + 28 AS col0 FROM tab0 AS cor0
----
28

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= + 53
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9967
SELECT CAST( NULL AS SIGNED ) * - 36 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9967
SELECT CAST ( NULL AS INTEGER ) * - 36 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - - col0 AS col2 FROM tab2
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT - 25 * ( - + COUNT( * ) ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-9969
SELECT - 25 * ( - + COUNT ( * ) ) AS col0 FROM tab2
----
75

query I rowsort
SELECT ALL + col0 * + col0 * - col2 AS col2 FROM tab1
----
-249696
-426275
-563108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9971
SELECT ALL + 40 DIV + COUNT( * ) - - 77 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-9971
SELECT ALL + 40 / + COUNT ( * ) - - 77 FROM tab2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9972
SELECT ALL + col2 * + - CAST( + col1 AS SIGNED ) AS col2 FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL + col2 * + - CAST ( + col1 AS INTEGER ) AS col2 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT - col1 * 90 AS col1 FROM tab0
----
-1890
-7290
-90

query I rowsort
SELECT ( + col0 ) + - 21 AS col1 FROM tab2 AS cor0
----
25
43
54

query I rowsort
SELECT DISTINCT - 62 * + - ( - col1 ) + + ( - 99 ) + - col0 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-1488
-258
-5136

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT DISTINCT ( + - COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9976
SELECT DISTINCT ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + + col1 * + ( - 7 ) AS col0 FROM tab0 AS cor0
----
-147
-567
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 * 93 col2 FROM tab0 AS cor0
----
-41013
-610173
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT DISTINCT + COUNT( ALL + 15 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9979
SELECT DISTINCT + COUNT ( ALL + 15 ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9980
SELECT + col1 DIV - 77 col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9980
SELECT + col1 / - 77 col0 FROM tab0 AS cor0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL >= - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9982
SELECT ALL 17 DIV ( - MIN( DISTINCT + - col1 ) ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9982
SELECT ALL 17 / ( - MIN ( DISTINCT + - col1 ) ) col2 FROM tab0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9983
SELECT ALL + 40 / + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL + 40 / + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9984
SELECT DISTINCT * FROM tab2 WHERE + CAST( NULL AS DECIMAL ) / + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9984
SELECT DISTINCT * FROM tab2 WHERE + CAST ( NULL AS REAL ) / + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 51, ( + 62 ) col2 FROM tab2
----
51
62
51
62
51
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT DISTINCT + SUM( col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9986
SELECT DISTINCT + SUM ( col0 ) FROM tab1
----
227

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 94 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL col1 * + col1 + - 41 AS col2 FROM tab2
----
2560
4448
5888

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 51 BETWEEN NULL AND ( col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 12 ) <= ( col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 * - 71 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT ALL 79 * SUM( col0 * col2 ) col0 FROM tab1
----
1271821

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9993
SELECT ALL 79 * SUM ( col0 * col2 ) col0 FROM tab1
----
1271821

query I rowsort
SELECT ALL 90 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT col2 * 69 + col0 * col2 AS col0 FROM tab2
----
2645
5320
8352

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9997
SELECT 78 / ( - 2 * - 19 ) AS col0 FROM tab0 WHERE - col1 NOT IN ( - CAST( NULL AS SIGNED ) * + col0 )
----

skipif mysql # not compatible
query I rowsort label-9997
SELECT 78 / ( - 2 * - 19 ) AS col0 FROM tab0 WHERE - col1 NOT IN ( - CAST ( NULL AS INTEGER ) * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT SUM( DISTINCT col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9998
SELECT SUM ( DISTINCT col0 ) AS col2 FROM tab1
----
227

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----

