sqllogictest
Artifact Content
Not logged in

Artifact 1a0eefc31a6a6962898935669e3e0ad9e047ece9:


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