sqllogictest
Artifact Content
Not logged in

Artifact 4c29d8a42171f418aad150dd41966ba1de5c6160:


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 # aggregate syntax: DIV for integer division: 
query I rowsort label-0
SELECT ALL - SUM( DISTINCT - - ( + 95 ) ) * 73 DIV + - SUM( DISTINCT + 58 ) AS col0 FROM tab0
----
119

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL - SUM ( DISTINCT - - ( + 95 ) ) * 73 / + - SUM ( DISTINCT + 58 ) AS col0 FROM tab0
----
119

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2
SELECT + CAST( - 1 AS DECIMAL ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2
SELECT + CAST ( - 1 AS REAL ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT DISTINCT - 73 * col0 FROM tab1 AS cor0
----
-3723
-6205
-6643

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4
SELECT ( + COUNT( * ) ) DIV + COUNT( * ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4
SELECT ( + COUNT ( * ) ) / + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
1

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

query I rowsort
SELECT DISTINCT - - col1 * - col1 + - col2 AS col1 FROM tab0 AS cor0
----
-100
-451
-6608

query I rowsort
SELECT DISTINCT col2 * col2 * - + 53 + - col2 + 55 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( ( 75 ), 33, + col1 )
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 96 col1 FROM tab2 AS cor0
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-10
SELECT DISTINCT - - COUNT ( - col0 ) col2 FROM tab2 AS cor0
----
3

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

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

query I rowsort
SELECT - ( 67 ) AS col2 FROM tab0
----
-67
-67
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-13
SELECT ALL - 98 DIV col0 AS col1 FROM tab0
----
-1
-1
-6

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL - 98 / col0 AS col1 FROM tab0
----
-1
-1
-6

query I rowsort
SELECT DISTINCT 76 FROM tab1 WHERE + col0 * + - ( - col1 ) * - col2 * + 94 + - - 7 IN ( - col1 + - col2 / ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT + COUNT( - 12 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-15
SELECT + COUNT ( - 12 ) FROM tab1
----
3

query II rowsort
SELECT col2 + + 7, col2 FROM tab2
----
30
23
47
40
65
58

query I rowsort
SELECT 37 + - col1 FROM tab2
----
-14
-30
-40

query I rowsort
SELECT ALL - col2 + + 39 FROM tab0 AS cor0
----
-60
-8
29

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

query II rowsort
SELECT + - 96 AS col0, - col1 * + 48 FROM tab0 AS cor0
----
-96
-1008
-96
-3888
-96
-48

onlyif mysql # DIV for integer division: 
query II rowsort label-21
SELECT col0, 15 DIV + col1 FROM tab1 cor0
----
51
1
85
3
91
0

skipif mysql # not compatible
query II rowsort label-21
SELECT col0, 15 / + col1 FROM tab1 cor0
----
51
1
85
3
91
0

query I rowsort
SELECT - 59 * - col2 * - col2 FROM tab0 cor0
----
-130331
-578259
-5900

query II rowsort
SELECT DISTINCT + ( col2 ), 81 * + + col0 AS col0 FROM tab2
----
23
3726
40
5184
58
6075

query I rowsort
SELECT + - col2 * - 34 FROM tab1 AS cor0
----
2006
2312
3264

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-27
SELECT + - 91 * col1, CAST( - 95 AS SIGNED ) col2 FROM tab2 AS cor0
----
-4641
-95
-6097
-95
-7007
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-27
SELECT + - 91 * col1, CAST ( - 95 AS INTEGER ) col2 FROM tab2 AS cor0
----
-4641
-95
-6097
-95
-7007
-95

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT 6 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT ALL + 55 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-29
SELECT ALL + 55 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-165

query I rowsort
SELECT - 60 * - col0 AS col0 FROM tab0 AS cor0
----
5220
5820
900

onlyif mysql # DIV for integer division: 
query I rowsort label-31
SELECT DISTINCT col0 * col0 DIV + col1 + col2 AS col0 FROM tab2 AS cor0
----
141
64
93

skipif mysql # not compatible
query I rowsort label-31
SELECT DISTINCT col0 * col0 / + col1 + col2 AS col0 FROM tab2 AS cor0
----
141
64
93

query I rowsort
SELECT 5 * + 6 FROM tab1 AS cor0
----
30
30
30

onlyif mysql # DIV for integer division: 
query I rowsort label-33
SELECT + col0 DIV + col0 + + - 6 AS col0 FROM tab0 cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-33
SELECT + col0 / + col0 + + - 6 AS col0 FROM tab0 cor0
----
-5
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-34
SELECT CAST( NULL AS SIGNED ) / - - 48 * 9 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-34
SELECT CAST ( NULL AS INTEGER ) / - - 48 * 9 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 * - 97 AS col2 FROM tab0 AS cor0
----
-1455
-8439
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT 56 * - ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-36
SELECT 56 * - ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-168

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

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

query I rowsort
SELECT DISTINCT + 53 FROM tab2 WHERE NOT col0 IS NULL
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT SUM( 68 ) AS col0 FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-39
SELECT SUM ( 68 ) AS col0 FROM tab0
----
204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-40
SELECT - CAST( - + 49 AS SIGNED ) + + 25 + + COUNT( - col2 ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-40
SELECT - CAST ( - + 49 AS INTEGER ) + + 25 + + COUNT ( - col2 ) FROM tab1
----
77

query I rowsort
SELECT 30 + + 83 AS col0 FROM tab2
----
113
113
113

query II rowsort
SELECT - col0 + - 98, col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-113
81
-185
21
-195
1

query I rowsort
SELECT 50 - - col2 + - col1 * - 46 AS col1 FROM tab1 AS cor0
----
2280
339
790

query I rowsort
SELECT ALL + col1 * - - col1 - - 79 AS col2 FROM tab1 AS cor0
----
104
2288
275

query I rowsort
SELECT 85 - col2 FROM tab0 AS cor0
----
-14
38
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( col0 ) ) IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-47
SELECT SUM ( ALL + col0 ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

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

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

query I rowsort
SELECT DISTINCT + - 51 AS col2 FROM tab2 cor0
----
-51

query I rowsort
SELECT ALL + ( - 58 ) * + col0 - - col1 AS col1 FROM tab1 AS cor0
----
-2944
-4925
-5231

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT DISTINCT 13 - - - COUNT( * ) + - SUM( ALL - col1 ) + - COUNT( * ) FROM tab0
----
110

skipif mysql # not compatible
query I rowsort label-52
SELECT DISTINCT 13 - - - COUNT ( * ) + - SUM ( ALL - col1 ) + - COUNT ( * ) FROM tab0
----
110

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

skipif mysql # not compatible
query I rowsort label-53
SELECT - SUM ( ALL CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col2 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT col1, + 93 FROM tab2
----
51
93
67
93
77
93

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

skipif mysql # not compatible
query I rowsort label-55
SELECT COUNT ( * ) / + 40 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-56
SELECT ALL COUNT( * ) AS col0, 57 FROM tab2
----
3
57

skipif mysql # not compatible
query II rowsort label-56
SELECT ALL COUNT ( * ) AS col0, 57 FROM tab2
----
3
57

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 44 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT DISTINCT + + ( SUM( DISTINCT - + 87 ) ) col1 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-58
SELECT DISTINCT + + ( SUM ( DISTINCT - + 87 ) ) col1 FROM tab2 AS cor0
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-59
SELECT COUNT( * ) DIV - 9 FROM tab0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-59
SELECT COUNT ( * ) / - 9 FROM tab0 WHERE NOT NULL <> NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 >= col0 + + - col2 + - + col1 + - col1 * - col1 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT col2 IN ( - - ( + col0 ) )
----
-1
-21
-81

query I rowsort
SELECT ALL - ( + 97 ) + + 39 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - - 58 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 49 + - col0 + - col2 * + - col1 * + col2 AS col0, col0 col1 FROM tab1 AS cor0
----
129022
51
17369
85
217286
91

query I rowsort
SELECT + - 55 + + 69 AS col1 FROM tab0 cor0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT 50 + + COUNT( * ) FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-65
SELECT 50 + + COUNT ( * ) FROM tab0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT DISTINCT - 50 - - MIN( DISTINCT - - 84 ) + - SUM( + col0 ) * + COUNT( * ) + MAX( - + col0 ) col0 FROM tab2 WHERE + 98 * - col0 + 64 BETWEEN NULL AND col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-66
SELECT DISTINCT - 50 - - MIN ( DISTINCT - - 84 ) + - SUM ( + col0 ) * + COUNT ( * ) + MAX ( - + col0 ) col0 FROM tab2 WHERE + 98 * - col0 + 64 BETWEEN NULL AND col1
----
NULL

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

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

query I rowsort
SELECT ( 54 ) FROM tab2
----
54
54
54

query I rowsort
SELECT DISTINCT + 94 * + col2 FROM tab1
----
5546
6392
9024

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT ALL COUNT( * ) + + + 56 AS col2 FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-70
SELECT ALL COUNT ( * ) + + + 56 AS col2 FROM tab0
----
59

query I rowsort
SELECT DISTINCT col2 + - 3 FROM tab1 AS cor0 WHERE NULL IS NULL
----
56
65
93

query I rowsort
SELECT ALL 89 * 55 FROM tab0 AS cor0
----
4895
4895
4895

query I rowsort
SELECT DISTINCT + 65 + + 63 FROM tab0 AS cor0
----
128

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

skipif mysql # not compatible
query I rowsort label-74
SELECT ALL ( + COUNT ( * ) ) + 45 - + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2
----
57

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

onlyif mysql # DIV for integer division: 
query I rowsort label-76
SELECT DISTINCT 22 + col0 DIV + col0 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-76
SELECT DISTINCT 22 + col0 / + col0 FROM tab1
----
23

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

query I rowsort
SELECT DISTINCT + 95 + 78 AS col2 FROM tab0 AS cor0
----
173

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

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

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

query I rowsort
SELECT ALL + col0 - + 98 AS col0 FROM tab1 AS cor0
----
-13
-47
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT MIN( ALL - 61 ) * + 42 FROM tab1 AS cor0
----
-2562

skipif mysql # not compatible
query I rowsort label-82
SELECT MIN ( ALL - 61 ) * + 42 FROM tab1 AS cor0
----
-2562

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-83
SELECT ALL + 82 DIV + MIN( - ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-83
SELECT ALL + 82 / + MIN ( - ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-84
SELECT ALL + CAST( NULL AS DECIMAL ) col1 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT SUM( 19 ) AS col0 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-85
SELECT SUM ( 19 ) AS col0 FROM tab2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT - 41 * + - COUNT( - - col2 ) AS col1 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-86
SELECT - 41 * + - COUNT ( - - col2 ) AS col1 FROM tab2
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-87
SELECT * FROM tab1 WHERE NOT - col2 IN ( + - 58, - CAST( NULL AS SIGNED ) * col1, col1 + + - col1 )
----

skipif mysql # not compatible
query III rowsort label-87
SELECT * FROM tab1 WHERE NOT - col2 IN ( + - 58, - CAST ( NULL AS INTEGER ) * col1, col1 + + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT + MIN( - + col2 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-88
SELECT + MIN ( - + col2 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-89
SELECT ALL - COUNT( * ) * + 85 / + 99 * COUNT( * ) + + ( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-89
SELECT ALL - COUNT ( * ) * + 85 / + 99 * COUNT ( * ) + + ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT - SUM( ALL + 93 ) FROM tab1 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-91
SELECT - SUM ( ALL + 93 ) FROM tab1 AS cor0
----
-279

query I rowsort
SELECT DISTINCT + 51 + - 61 AS col0 FROM tab2 AS cor0
----
-10

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

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

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

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

query II rowsort
SELECT + - 32 * col0 + ( col0 ), + ( + col2 ) AS col2 FROM tab2 AS cor0
----
-1426
23
-1984
40
-2325
58

query I rowsort
SELECT DISTINCT + col1 + - + 2 FROM tab1 cor0
----
12
3
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-97
SELECT - CAST( NULL AS SIGNED ) * - 95 * 35 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-97
SELECT - CAST ( NULL AS INTEGER ) * - 95 * 35 FROM tab1 cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query II rowsort label-98
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, - CAST ( NULL AS REAL ) + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-100
SELECT DISTINCT CAST( + col1 AS SIGNED ) * col1 * + col1 AS col1 FROM tab0
----
1
531441
9261

skipif mysql # not compatible
query I rowsort label-100
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * col1 * + col1 AS col1 FROM tab0
----
1
531441
9261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 60 * - col1 col2, 89 AS col0 FROM tab2
----
-3060
89
-4020
89
-4620
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - + 54 col2 FROM tab1
----
-3
31
37

query I rowsort
SELECT - - 88 * + + col0 + 2 - - + col2 * - col2 AS col2 FROM tab2 cor0
----
3238
3521
4034

query I rowsort
SELECT - 84 + 26 AS col1 FROM tab0 AS cor0
----
-58
-58
-58

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

query II rowsort
SELECT DISTINCT ( - col1 ) * + 71 AS col2, - col2 FROM tab0 AS cor0
----
-1491
-10
-5751
-47
-71
-99

query I rowsort
SELECT DISTINCT + 76 * col1 AS col2 FROM tab2
----
3876
5092
5852

query I rowsort
SELECT - - ( - + 76 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT 75 - ( col0 ) FROM tab1
----
-10
-16
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-110
SELECT + col0 FROM tab2 WHERE - CAST( NULL AS SIGNED ) * col1 * + col1 IS NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-110
SELECT + col0 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) * col1 * + col1 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT - + SUM( - - 11 ) - + - 2 + 5 FROM tab0 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-111
SELECT - + SUM ( - - 11 ) - + - 2 + 5 FROM tab0 cor0
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-112
SELECT + + COUNT( * ) AS col0, 67 FROM tab1 cor0
----
3
67

skipif mysql # not compatible
query II rowsort label-112
SELECT + + COUNT ( * ) AS col0, 67 FROM tab1 cor0
----
3
67

query I rowsort
SELECT ALL col1 * - 26 AS col0 FROM tab0 AS cor0
----
-2106
-26
-546

query I rowsort
SELECT DISTINCT + - col1 + + col1 + col1 * - col2 AS col1 FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN - col1 AND - ( + + col2 )
----
-210
-3807
-99

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-117
SELECT ALL 33 DIV + 68 * col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-117
SELECT ALL 33 / + 68 * col2 FROM tab2
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-119
SELECT + 17 DIV - col1 AS col1, + ( + 50 ) FROM tab1
----
-1
50
-3
50
0
50

skipif mysql # not compatible
query II rowsort label-119
SELECT + 17 / - col1 AS col1, + ( + 50 ) FROM tab1
----
-1
50
-3
50
0
50

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 7 + + 10 - + - col1 + - 68 * - - col0 <> 18 * col0
----

query I rowsort
SELECT DISTINCT + col0 * - + col0 + + col2 FROM tab0 AS cor0
----
-178
-7559
-9310

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT MIN( + 39 ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-123
SELECT MIN ( + 39 ) FROM tab2
----
39

query I rowsort
SELECT 20 * + 83 FROM tab2
----
1660
1660
1660

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

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

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

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

query I rowsort
SELECT + 17 + - 60 FROM tab2 cor0
----
-43
-43
-43

query II rowsort
SELECT + ( + col1 ) + + + 92, - ( 40 ) AS col2 FROM tab0 AS cor0
----
113
-40
173
-40
93
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT ALL - COUNT( * ) * + MAX( ALL - - 74 ) AS col2 FROM tab0 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL - COUNT ( * ) * + MAX ( ALL - - 74 ) AS col2 FROM tab0 AS cor0
----
-222

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 50 + + + col0 NOT BETWEEN NULL AND + ( - 24 ) * - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 56 * + ( col0 ) FROM tab2
----
-2576
-3584
-4200

onlyif mysql # DIV for integer division: 
query I rowsort label-133
SELECT DISTINCT col0 * col1 DIV col1 AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-133
SELECT DISTINCT col0 * col1 / col1 AS col1 FROM tab2
----
46
64
75

query II rowsort
SELECT - 64, 49 + + col2 AS col0 FROM tab2
----
-64
107
-64
72
-64
89

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

query I rowsort
SELECT DISTINCT col1 + - + col2 + + - col1 FROM tab0
----
-10
-47
-99

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

query II rowsort
SELECT DISTINCT + 88, col2 * 21 AS col2 FROM tab0
----
88
2079
88
210
88
987

query I rowsort
SELECT col0 - + - ( - + 14 ) * 39 AS col1 FROM tab0 AS cor0
----
-449
-459
-531

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

query I rowsort
SELECT DISTINCT + 56 + col1 * col0 AS col2 FROM tab0 AS cor0
----
1271
153
1883

query I rowsort
SELECT col0 * col1 * col1 * + col1 + - col2 FROM tab1 AS cor0
----
10566
139848
9447825

query I rowsort
SELECT - + 65 * - 97 + col0 - - 46 AS col1 FROM tab0 AS cor0
----
6366
6438
6448

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

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

query II rowsort
SELECT ALL - col1 * col2 AS col0, + col2 FROM tab2 AS cor0
----
-1173
23
-3080
40
-3886
58

query I rowsort
SELECT ALL + - col1 * - - col2 * + col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

onlyif mysql # DIV for integer division: 
query I rowsort label-147
SELECT ALL + - col1 DIV + - 80 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-147
SELECT ALL + - col1 / + - 80 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-148
SELECT ALL col2 DIV col2 * col1 + - col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-148
SELECT ALL col2 / col2 * col1 + - col1 FROM tab2 cor0
----
0
0
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-150
SELECT ALL + ( - + CAST( 36 AS SIGNED ) ) * MIN( - col1 ) FROM tab1
----
1692

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> 18 * + + 22
----

query I rowsort
SELECT DISTINCT - 83 * - col0 AS col1 FROM tab1
----
4233
7055
7553

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 * 64 <> col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - + col2, 18 / 3 * 50 * - col1 + - col0 + - 9 AS col2 FROM tab2 WHERE - - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT ALL COUNT( * ) + - 98 - ( - MIN( DISTINCT + 24 ) ) AS col1 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-155
SELECT ALL COUNT ( * ) + - 98 - ( - MIN ( DISTINCT + 24 ) ) AS col1 FROM tab1
----
-71

query I rowsort
SELECT DISTINCT 35 + - col1 * - + 73 FROM tab0
----
108
1568
5948

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

query II rowsort
SELECT DISTINCT - col0 + + - 49, col0 FROM tab1 AS cor0
----
-100
51
-134
85
-140
91

query II rowsort
SELECT col0 AS col0, + 9 AS col2 FROM tab0 AS cor0 WHERE 56 NOT IN ( - col1 )
----
15
9
87
9
97
9

query II rowsort
SELECT 76, col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * + - col0 FROM tab0 AS cor0
----
225
7569
9409

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

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

query I rowsort
SELECT 11 + - col0 FROM tab2
----
-35
-53
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT ALL col1 + + + col1 + + 0 * + col1 DIV col2 * + col2 * col1 FROM tab0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-165
SELECT ALL col1 + + + col1 + + 0 * + col1 / col2 * + col2 * col1 FROM tab0
----
162
2
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT col2 + + 99 * - 99 AS col2 FROM tab0
----
-9702
-9754
-9791

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

skipif mysql # not compatible
query I rowsort label-168
SELECT CAST ( col1 AS INTEGER ) FROM tab0 WHERE CAST ( NULL AS INTEGER ) <> + + col0 * col1
----

query I rowsort
SELECT DISTINCT ( col1 ) + - - 8 FROM tab2
----
59
75
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-170
SELECT - COUNT( * ) col1 FROM tab2 WHERE - CAST( NULL AS DECIMAL ) <= 99 - + col2 / - col0 * - 65 * - - col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-170
SELECT - COUNT ( * ) col1 FROM tab2 WHERE - CAST ( NULL AS REAL ) <= 99 - + col2 / - col0 * - 65 * - - col2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT ALL MAX( ALL - col1 ) - + 63 col1 FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-172
SELECT ALL MAX ( ALL - col1 ) - + 63 col1 FROM tab0 AS cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT + COUNT( * ) * + 58 col1 FROM tab1
----
174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-173
SELECT + COUNT ( * ) * + 58 col1 FROM tab1
----
174

query II rowsort
SELECT col0, - 78 FROM tab0
----
15
-78
87
-78
97
-78

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

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

query I rowsort
SELECT ALL - col1 * + + 34 * col0 * + + col2 FROM tab0 AS cor0
----
-1941570
-326502
-621180

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT ALL + - ( COUNT( * ) ) * + - 86 + - - 63 FROM tab1 cor0
----
321

skipif mysql # not compatible
query I rowsort label-178
SELECT ALL + - ( COUNT ( * ) ) * + - 86 + - - 63 FROM tab1 cor0
----
321

query II rowsort
SELECT DISTINCT - col2, - col2 FROM tab1 AS cor0 WHERE - 96 IN ( 35 * + col2 + - + 8, + 93 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 + - - col1 * - 7 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT + - MIN( - col2 ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-181
SELECT + - MIN ( - col2 ) FROM tab0 cor0
----
99

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = + + 78 * - 22
----

query I rowsort
SELECT + + 88 - 54 AS col2 FROM tab1 AS cor0 WHERE NOT col2 * + ( col1 ) IS NOT NULL
----

query II rowsort
SELECT + - 75 * + col2 * + - col1, col0 FROM tab2 AS cor0
----
231000
64
291450
75
87975
46

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

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

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

skipif mysql # not compatible
query I rowsort label-188
SELECT 60 / - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-189
SELECT ALL + COUNT( * ), - 63 AS col1 FROM tab1
----
3
-63

skipif mysql # not compatible
query II rowsort label-189
SELECT ALL + COUNT ( * ), - 63 AS col1 FROM tab1
----
3
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT ALL COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-192
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + COUNT ( * ) FROM tab0, tab0 AS cor0
----
-81

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

query I rowsort
SELECT DISTINCT + col2 + + - ( + 68 ) AS col2 FROM tab2 AS cor0
----
-10
-28
-45

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-196
SELECT - COUNT( * ) * + CAST( 5 AS SIGNED ) + 35 col1 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-196
SELECT - COUNT ( * ) * + CAST ( 5 AS INTEGER ) + 35 col1 FROM tab2 AS cor0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-197
SELECT - + col2 - 21 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) + + 94 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-197
SELECT - + col2 - 21 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) + + 94 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT MAX( DISTINCT + 38 ) * - ( - 54 ) * + 40 * 26 AS col2 FROM tab1 AS cor0
----
2134080

skipif mysql # not compatible
query I rowsort label-198
SELECT MAX ( DISTINCT + 38 ) * - ( - 54 ) * + 40 * 26 AS col2 FROM tab1 AS cor0
----
2134080

query I rowsort
SELECT + col0 * 6 AS col0 FROM tab1
----
306
510
546

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 12 / + + col0 + - + col1 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT - + COUNT( * ) AS col2 FROM tab0 WHERE + 92 <> - col0
----
-3

skipif mysql # not compatible
query I rowsort label-202
SELECT - + COUNT ( * ) AS col2 FROM tab0 WHERE + 92 <> - col0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-203
SELECT DISTINCT 14 - + 87 DIV - col1 AS col0 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-203
SELECT DISTINCT 14 - + 87 / - col1 AS col0 FROM tab2 AS cor0
----
15

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col2, 69 )
----

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

query I rowsort
SELECT DISTINCT 64 * + + 68 AS col2 FROM tab2
----
4352

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

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

query II rowsort
SELECT DISTINCT + + 35, 35 FROM tab1 AS cor0
----
35
35

query I rowsort
SELECT col0 * col0 * + 91 + + col1 FROM tab1 AS cor0
----
236705
657480
753618

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

query I rowsort
SELECT 60 * - 79 FROM tab0 AS cor0
----
-4740
-4740
-4740

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col1 >= - - col1 * 55
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT ALL - COUNT( * ) FROM tab1 WHERE + col2 IN ( + col1, col1, + col0 * + 49 * - - col1 - 93, ( col0 ) + + col2 - - col2, 16 )
----
0

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL - COUNT ( * ) FROM tab1 WHERE + col2 IN ( + col1, col1, + col0 * + 49 * - - col1 - 93, ( col0 ) + + col2 - - col2, 16 )
----
0

query I rowsort
SELECT DISTINCT 54 + - + col2 AS col0 FROM tab2
----
-4
14
31

query I rowsort
SELECT ALL - col2 * + - 36 * + col2 FROM tab2
----
121104
19044
57600

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-217
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN CAST( - 48 AS SIGNED ) * - 95 AND + - 28 * + 23 * col1 / + col1 + - col0
----

skipif mysql # not compatible
query III rowsort label-217
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN CAST ( - 48 AS INTEGER ) * - 95 AND + - 28 * + 23 * col1 / + col1 + - col0
----

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

skipif mysql # not compatible
query I rowsort label-218
SELECT ALL COUNT ( * ) + + CAST ( + - 83 AS INTEGER ) AS col2 FROM tab1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT + COUNT( * ) * 12 AS col2 FROM tab2 WHERE NOT - 40 * - ( - 62 ) / - 22 + + col2 * - 3 + 45 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-219
SELECT + COUNT ( * ) * 12 AS col2 FROM tab2 WHERE NOT - 40 * - ( - 62 ) / - 22 + + col2 * - 3 + 45 IS NOT NULL
----
0

query I rowsort
SELECT ALL col1 + - - col0 * + ( - - 23 ) FROM tab0
----
2022
2232
426

query I rowsort
SELECT DISTINCT 9 + + 58 + - col2 * col0 FROM tab0 AS cor0
----
-638
-803
-9536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( 61 ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

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

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

query I rowsort
SELECT - - col0 FROM tab0 WHERE + col0 * - 6 IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL - 87 + - + 95 AS col2 FROM tab0 AS cor0
----
-182
-182
-182

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

query I rowsort
SELECT - col2 - - col2 + - + 35 + - - col2 * - 27 AS col2 FROM tab0 AS cor0
----
-1304
-2708
-305

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

onlyif mysql # DIV for integer division: 
query I rowsort label-229
SELECT ALL - col1 DIV 67 AS col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL - col1 / 67 AS col1 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-230
SELECT ALL - CAST( - 90 AS SIGNED ) AS col1 FROM tab1 WHERE NOT - 49 * - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL - CAST ( - 90 AS INTEGER ) AS col1 FROM tab1 WHERE NOT - 49 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-231
SELECT DISTINCT CAST( - - 51 AS SIGNED ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT CAST ( - - 51 AS INTEGER ) AS col2 FROM tab2
----
51

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

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

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

query I rowsort
SELECT col1 FROM tab2 WHERE col1 BETWEEN - - 65 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT COUNT( + ( 5 ) ) + ( - - 32 ) AS col1 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-235
SELECT COUNT ( + ( 5 ) ) + ( - - 32 ) AS col1 FROM tab0
----
35

query I rowsort
SELECT + col2 + - + col0 FROM tab1
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-237
SELECT ALL + MIN( DISTINCT + - 51 ) + + 80 col0 FROM tab2
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-237
SELECT ALL + MIN ( DISTINCT + - 51 ) + + 80 col0 FROM tab2
----
29

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

onlyif mysql # DIV for integer division: 
query I rowsort label-239
SELECT col0 DIV - 59 AS col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-239
SELECT col0 / - 59 AS col1 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT 76 * + + col1 AS col2 FROM tab2 AS cor0
----
3876
5092
5852

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

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

query I rowsort
SELECT + 93 * - - col1 * + col1 FROM tab2
----
241893
417477
551397

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-244
SELECT - 32 DIV col2 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-244
SELECT - 32 / col2 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE - ( - - col2 ) * col2 IS NOT NULL
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 + - - col0 + - col0 = + - 84
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT COUNT( * ) * - + 16 + COUNT( * ) + - 93 FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-249
SELECT COUNT ( * ) * - + 16 + COUNT ( * ) + - 93 FROM tab2 AS cor0
----
-138

query I rowsort
SELECT + col0 + col2 - - - col2 * + col0 * + + col1 FROM tab1 AS cor0
----
-24931
-290677
-68397

query I rowsort
SELECT + ( - + col1 ) + col2 * + col0 FROM tab0 AS cor0
----
624
849
9602

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT 71 + MIN( col0 ) FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-253
SELECT 71 + MIN ( col0 ) FROM tab0
----
86

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

skipif mysql # not compatible
query I rowsort label-254
SELECT ALL - col2 / col0 + col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT ALL MAX( + - col2 ) + + ( - SUM( DISTINCT - - col2 ) ) AS col2 FROM tab2 cor0
----
-144

skipif mysql # not compatible
query I rowsort label-255
SELECT ALL MAX ( + - col2 ) + + ( - SUM ( DISTINCT - - col2 ) ) AS col2 FROM tab2 cor0
----
-144

onlyif mysql # aggregate syntax: 
query II rowsort label-256
SELECT - 47 col0, - COUNT( * ) FROM tab2 AS cor0
----
-47
-3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + 74 ) - col1 * 63 + - + col1 col1 FROM tab0 AS cor0
----
-1270
-5110
10

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NULL <= col1
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-260
SELECT ALL - CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) + - col0 + - 66 * + col0 / + 13 * - col0 * - 44 * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-260
SELECT ALL - CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) + - col0 + - 66 * + col0 / + 13 * - col0 * - 44 * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-261
SELECT DISTINCT + 23 DIV 67, col1 FROM tab0
----
0
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-261
SELECT DISTINCT + 23 / 67, col1 FROM tab0
----
0
1
0
21
0
81

query I rowsort
SELECT 30 FROM tab2 WHERE NOT NULL IS NOT NULL
----
30
30
30

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

query I rowsort
SELECT + + 59 AS col2 FROM tab1 WHERE NOT - 22 * - col2 + + col2 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT - - SUM( 13 ) FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-267
SELECT - - SUM ( 13 ) FROM tab2 AS cor0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-268
SELECT * FROM tab0 WHERE NOT 76 NOT IN ( - + 22 / col1 + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-268
SELECT * FROM tab0 WHERE NOT 76 NOT IN ( - + 22 / col1 + - CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT DISTINCT - 82, ( + + col1 ) FROM tab0
----
-82
1
-82
21
-82
81

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN 55 AND NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-272
SELECT DISTINCT - - col1 DIV 8 + + 45, col0 AS col0, - col1 * - col2 AS col0 FROM tab0 AS cor0
----
9 values hashing to 5a545de72c826597b63573a54e3dd544

skipif mysql # not compatible
query III rowsort label-272
SELECT DISTINCT - - col1 / 8 + + 45, col0 AS col0, - col1 * - col2 AS col0 FROM tab0 AS cor0
----
9 values hashing to 5a545de72c826597b63573a54e3dd544

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT DISTINCT SUM( + 88 ) AS col2 FROM tab2 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-273
SELECT DISTINCT SUM ( + 88 ) AS col2 FROM tab2 AS cor0
----
264

query I rowsort
SELECT col1 * 71 AS col0 FROM tab0 AS cor0
----
1491
5751
71

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT DISTINCT - SUM( DISTINCT 19 ) AS col1 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-275
SELECT DISTINCT - SUM ( DISTINCT 19 ) AS col1 FROM tab2 AS cor0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-276
SELECT 14 AS col1, + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
14
NULL
14
NULL
14
NULL

skipif mysql # not compatible
query II rowsort label-276
SELECT 14 AS col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
14
NULL
14
NULL
14
NULL

query I rowsort
SELECT ALL ( + col2 ) + - col2 + col1 AS col2 FROM tab2
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col1, col2 FROM tab1 WHERE 94 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-279
SELECT ALL col0 DIV col0 + + col0 * 28 AS col2, col1 * + col0 + - col1 FROM tab1
----
1429
700
2381
420
2549
4230

skipif mysql # not compatible
query II rowsort label-279
SELECT ALL col0 / col0 + + col0 * 28 AS col2, col1 * + col0 + - col1 FROM tab1
----
1429
700
2381
420
2549
4230

query I rowsort
SELECT - col0 * + 50 + + col0 AS col0 FROM tab0
----
-4263
-4753
-735

query II rowsort
SELECT ALL 74 + + - ( col0 ) + + col1 * - 60 + + col1 + + - col1, 93 AS col0 FROM tab0
----
-1273
93
-4801
93
-83
93

query I rowsort
SELECT col1 + - 15 FROM tab2
----
36
52
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-283
SELECT COUNT( * ) DIV + 8 + COUNT( * ) * + ( + - 98 ) AS col0 FROM tab2
----
-294

skipif mysql # not compatible
query I rowsort label-283
SELECT COUNT ( * ) / + 8 + COUNT ( * ) * + ( + - 98 ) AS col0 FROM tab2
----
-294

onlyif mysql # DIV for integer division: 
query I rowsort label-284
SELECT ALL col1 DIV + - col0 + - 77 FROM tab0
----
-77
-77
-82

skipif mysql # not compatible
query I rowsort label-284
SELECT ALL col1 / + - col0 + - 77 FROM tab0
----
-77
-77
-82

query I rowsort
SELECT 43 + - 73 + + 93 * + col2 * - 75 AS col0 FROM tab2
----
-160455
-279030
-404580

query I rowsort
SELECT ( - 37 ) + + col1 FROM tab0
----
-16
-36
44

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

skipif mysql # not compatible
query I rowsort label-287
SELECT + + CAST ( NULL AS INTEGER ) / + - 10 / - COUNT ( * ) + + 46 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - 6 + - 98 FROM tab2 AS cor0 WHERE 67 - - - 76 NOT BETWEEN - + col0 + - + 8 - 30 + - 58 * - col2 AND - col1
----
-92
-92
-92

query I rowsort
SELECT col1 AS col1 FROM tab2 cor0 WHERE NULL <> col1
----

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE - col0 IS NOT NULL
----
10
47
99

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL = 65
----

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

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

query I rowsort
SELECT ALL 6 * + ( - - 68 ) + - 92 AS col0 FROM tab0
----
316
316
316

query I rowsort
SELECT - - col1 - + + ( - col1 ) AS col2 FROM tab2 AS cor0
----
102
134
154

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

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

query I rowsort
SELECT + + col2 + col2 + - 12 AS col2 FROM tab2 AS cor0
----
104
34
68

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT DISTINCT + + 55 - COUNT( * ) AS col2 FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-297
SELECT DISTINCT + + 55 - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT + - ( - - 89 ) + - MAX( - + 11 ) AS col0 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-298
SELECT + - ( - - 89 ) + - MAX ( - + 11 ) AS col0 FROM tab0 AS cor0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-299
SELECT - 77 AS col0, + col1 + - 73 * - col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2, + CAST( + col1 AS SIGNED ) + - col1 - col0 * - 88 * + + ( + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query II rowsort label-299
SELECT - 77 AS col0, + col1 + - 73 * - col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2, + CAST ( + col1 AS INTEGER ) + - col1 - col0 * - 88 * + + ( + CAST ( NULL AS INTEGER ) ) )
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-303
SELECT * FROM tab2 WHERE NOT col0 * - CAST( NULL AS SIGNED ) + + 79 + col0 - 86 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-303
SELECT * FROM tab2 WHERE NOT col0 * - CAST ( NULL AS INTEGER ) + + 79 + col0 - 86 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 * + 95 * col2 * - + 96 AS col0 FROM tab2
----
-10697760
-28089600
-35440320

onlyif mysql # aggregate syntax: 
query II rowsort label-305
SELECT DISTINCT 17 AS col2, ( - COUNT( * ) ) FROM tab1
----
17
-3

skipif mysql # not compatible
query II rowsort label-305
SELECT DISTINCT 17 AS col2, ( - COUNT ( * ) ) FROM tab1
----
17
-3

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-308
SELECT + 52 AS col0, MIN( + col1 ) AS col1 FROM tab2
----
52
51

skipif mysql # not compatible
query II rowsort label-308
SELECT + 52 AS col0, MIN ( + col1 ) AS col1 FROM tab2
----
52
51

query I rowsort
SELECT + 53 * - 51 * + 59 FROM tab0
----
-159477
-159477
-159477

query II rowsort
SELECT col0, col1 * 88 + - 96 FROM tab2
----
46
4392
64
6680
75
5800

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE NOT - 25 >= + + 14
----
-51
-67
-77

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

query I rowsort
SELECT ALL - 12 * + - col0 FROM tab1
----
1020
1092
612

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT - ( - col1 ) / 19 <> NULL
----

query I rowsort
SELECT DISTINCT ( - col1 ) * col0 AS col0 FROM tab0 cor0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 * col0 * - col1 > - col0 * 52 * ( + col1 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-317
SELECT 6 AS col2, + 46 - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
6
37

skipif mysql # not compatible
query II rowsort label-317
SELECT 6 AS col2, + 46 - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
6
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 + + - col0, - col2 col1 FROM tab2
----
-8
-58
13
-40
5
-23

onlyif mysql # DIV for integer division: 
query II rowsort label-319
SELECT DISTINCT col2 DIV - 5, col0 FROM tab1 AS cor0
----
-11
85
-13
91
-19
51

skipif mysql # not compatible
query II rowsort label-319
SELECT DISTINCT col2 / - 5, col0 FROM tab1 AS cor0
----
-11
85
-13
91
-19
51

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

onlyif mysql # DIV for integer division: 
query I rowsort label-321
SELECT col2 + - col2 + - 25 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
1
25

skipif mysql # not compatible
query I rowsort label-321
SELECT col2 + - col2 + - 25 / - col1 AS col0 FROM tab0 AS cor0
----
0
1
25

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

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

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

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

query I rowsort
SELECT - + col1 + - 88 FROM tab2 AS cor0
----
-139
-155
-165

query I rowsort
SELECT + col2 + + col1 * - 64 AS col2 FROM tab1 AS cor0
----
-261
-2940
-800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-326
SELECT - MAX( col0 ) * + CAST( - 65 AS SIGNED ) + - 0 col1 FROM tab1 AS cor0
----
5915

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-326
SELECT - MAX ( col0 ) * + CAST ( - 65 AS INTEGER ) + - 0 col1 FROM tab1 AS cor0
----
5915

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

query I rowsort
SELECT DISTINCT + col0 + + 56 FROM tab0
----
143
153
71

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col0 ) col0 FROM tab0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 98 col0, col1 + col2 AS col2 FROM tab2
----
-98
117
-98
125
-98
74

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + + col1 * - 27 col2 FROM tab2 AS cor0
----
-1326
-1742
-2002

query I rowsort
SELECT ALL - col0 + + - col2 * - + col0 AS col1 FROM tab2 cor0
----
1012
2496
4275

query I rowsort
SELECT 75 - + + col1 FROM tab1 AS cor0
----
28
61
70

query I rowsort
SELECT - - col1 + + 75 * - col2 AS col2 FROM tab1 AS cor0
----
-4420
-5053
-7186

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

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

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

query I rowsort
SELECT - 37 * 26 AS col2 FROM tab0
----
-962
-962
-962

query I rowsort
SELECT DISTINCT - 17 + 79 FROM tab1 WHERE NOT NULL IS NOT NULL
----
62

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 <= + col0
----

query I rowsort
SELECT DISTINCT - ( + col2 ) FROM tab0 WHERE NOT ( col2 + - col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL AVG ( DISTINCT - 98 ) * - 38 FROM tab2 WHERE NOT - col1 BETWEEN NULL AND ( col2 * col2 )
----
NULL

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE ( + col1 ) BETWEEN col1 - - 12 AND col2
----

query I rowsort
SELECT DISTINCT 50 * col0 FROM tab1
----
2550
4250
4550

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - 69 )
----

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

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

query I rowsort
SELECT + ( - 79 ) + - 98 FROM tab1
----
-177
-177
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT MAX( DISTINCT col1 ) + - COUNT( * ) * + 70 AS col1 FROM tab0
----
-129

skipif mysql # not compatible
query I rowsort label-351
SELECT MAX ( DISTINCT col1 ) + - COUNT ( * ) * + 70 AS col1 FROM tab0
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-352
SELECT ALL - col0 - CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE 38 BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-352
SELECT ALL - col0 - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE 38 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + col2 + col2 * - col1 AS col0 FROM tab1
----
-1248
-236
-3128

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 ) NOT BETWEEN + col1 AND ( + 10 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - 58 col1 FROM tab1
----
109
143
149

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-357
SELECT 77 col1 FROM tab1 WHERE NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND 30
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-357
SELECT 77 col1 FROM tab1 WHERE NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND 30
----

query I rowsort
SELECT + col1 + 19 FROM tab2
----
70
86
96

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE NULL <= - col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col0 ) > - col2 / 93
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 * + col2 + 38 ) <> 39
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-364
SELECT + col2 DIV + 9 AS col0 FROM tab2 AS cor0
----
2
4
6

skipif mysql # not compatible
query I rowsort label-364
SELECT + col2 / + 9 AS col0 FROM tab2 AS cor0
----
2
4
6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT + COUNT( 55 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-366
SELECT + COUNT ( 55 ) FROM tab0 cor0
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT DISTINCT 35 * - COUNT( * ) FROM tab1
----
-105

skipif mysql # not compatible
query I rowsort label-368
SELECT DISTINCT 35 * - COUNT ( * ) FROM tab1
----
-105

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-370
SELECT MIN( ALL + col1 ) * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0 WHERE + 79 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-370
SELECT MIN ( ALL + col1 ) * + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 WHERE + 79 IS NULL
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 93 col0 FROM tab2 AS cor0
----
2139
3720
5394

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN ( col1 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-374
SELECT ALL col2 * - 78 + col2 DIV - col1 FROM tab2 AS cor0
----
-1794
-3120
-4524

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL col2 * - 78 + col2 / - col1 FROM tab2 AS cor0
----
-1794
-3120
-4524

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT ALL MAX( DISTINCT + col1 ) * - COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT NULL >= 14
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-375
SELECT ALL MAX ( DISTINCT + col1 ) * - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT NULL >= 14
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 82 + - col0 ) <> ( + col0 * + 9 + 80 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT DISTINCT + 45 + - COUNT( * ) AS col2 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-377
SELECT DISTINCT + 45 + - COUNT ( * ) AS col2 FROM tab1
----
42

query I rowsort
SELECT col1 + + col1 + 59 AS col0 FROM tab0
----
101
221
61

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE + ( 42 ) BETWEEN col1 AND 89 * col0 + 5
----

query I rowsort
SELECT DISTINCT + ( col2 ) + + 23 AS col2 FROM tab2
----
46
63
81

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

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

query I rowsort
SELECT ALL ( col0 ) + + col0 AS col1 FROM tab2 WHERE NOT NULL BETWEEN col1 AND NULL
----

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

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

query I rowsort
SELECT DISTINCT + 41 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 * 90 + + col2 AND ( - col2 )
----

query I rowsort
SELECT ALL + 81 - col1 * + 81 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-1053
-324
-3726

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-388
SELECT ALL + col0 DIV 13 - - 59 * + col2 col0 FROM tab1 AS cor0
----
3487
4019
5667

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-388
SELECT ALL + col0 / 13 - - 59 * + col2 col0 FROM tab1 AS cor0
----
3487
4019
5667

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col0 + + col2 * + col1 ) = NULL
----

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

query I rowsort
SELECT - col0 - + - col2 - + + 50 FROM tab1
----
-5
-73
-76

query I rowsort
SELECT - 77 * 78 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 2023770a958a3b3e5d19b7189a7cfc87

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-395
SELECT ALL - COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) * + MAX( col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-395
SELECT ALL - COUNT ( DISTINCT CAST ( NULL AS REAL ) ) * + MAX ( col1 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-397
SELECT ALL - 37, ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-37
-3

skipif mysql # not compatible
query II rowsort label-397
SELECT ALL - 37, ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-37
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 * + col1 ) IS NULL
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < 51
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 col0 FROM tab2 WHERE NOT - col2 * col0 = + ( - 96 )
----
68
68
68

query I rowsort
SELECT 75 * col2 * - 91 FROM tab0
----
-320775
-675675
-68250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 3 * - 61 col1 FROM tab2
----
-12261
-14091
-9333

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-406
SELECT ALL 26 * - - col0, CAST( + - col2 AS SIGNED ) AS col2 FROM tab0
----
2262
-10
2522
-99
390
-47

skipif mysql # not compatible
query II rowsort label-406
SELECT ALL 26 * - - col0, CAST ( + - col2 AS INTEGER ) AS col2 FROM tab0
----
2262
-10
2522
-99
390
-47

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * 80 * + 79 BETWEEN + 89 + col1 AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT + 95 FROM tab0 WHERE NOT - col1 IS NULL
----
95
95
95

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-411
SELECT DISTINCT - + MIN( ALL - col2 ) AS col0, - 14 FROM tab0 AS cor0
----
99
-14

skipif mysql # not compatible
query II rowsort label-411
SELECT DISTINCT - + MIN ( ALL - col2 ) AS col0, - 14 FROM tab0 AS cor0
----
99
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT 62 * + - COUNT( * ) AS col2 FROM tab0
----
-186

skipif mysql # not compatible
query I rowsort label-412
SELECT 62 * + - COUNT ( * ) AS col2 FROM tab0
----
-186

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

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

query I rowsort
SELECT ALL col1 + - 76 FROM tab2
----
-25
-9
1

query I rowsort
SELECT col0 + - - 75 - + col1 * - col1 FROM tab1
----
185
2375
322

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 * - col1 + + col2 + + col1 / 41 ) IN ( col1 )
----

query II rowsort
SELECT ALL - 16 AS col2, + 74 FROM tab1 AS cor0
----
-16
74
-16
74
-16
74

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

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

query II rowsort
SELECT ALL 70 * + col2 AS col2, col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
4130
5
4760
47
6720
14

query I rowsort
SELECT DISTINCT + 75 * + 87 FROM tab0 AS cor0 WHERE ( col0 ) BETWEEN NULL AND ( col1 )
----

query I rowsort
SELECT ALL - - 85 * - col2 + 15 FROM tab0 cor0
----
-3980
-835
-8400

query I rowsort
SELECT ALL + + 21 * - + col0 + - - col2 FROM tab2 AS cor0
----
-1304
-1517
-943

query I rowsort
SELECT DISTINCT col0 * - - col1 + ( - 50 ) AS col1 FROM tab2 AS cor0
----
2296
4878
4975

query II rowsort
SELECT ALL col2, + col1 + + + col0 AS col1 FROM tab1 AS cor0
----
59
90
68
138
96
65

query I rowsort
SELECT ALL col1 * 25 AS col1 FROM tab0 AS cor0
----
2025
25
525

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT + + 38 * COUNT( * ) AS col0 FROM tab2 cor0
----
114

skipif mysql # not compatible
query I rowsort label-426
SELECT + + 38 * COUNT ( * ) AS col0 FROM tab2 cor0
----
114

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

skipif mysql # not compatible
query I rowsort label-427
SELECT DISTINCT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - AVG ( - - col0 ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT SUM( ALL + 83 ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
747

skipif mysql # not compatible
query I rowsort label-428
SELECT SUM ( ALL + 83 ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
747

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-429
SELECT - CAST( - + 91 AS SIGNED ) * + col2 FROM tab2
----
2093
3640
5278

skipif mysql # not compatible
query I rowsort label-429
SELECT - CAST ( - + 91 AS INTEGER ) * + col2 FROM tab2
----
2093
3640
5278

query I rowsort
SELECT DISTINCT - col0 * - + col1 + + col0 AS col2 FROM tab1
----
4368
510
765

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

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

query I rowsort
SELECT DISTINCT + 42 * - ( - col1 * - 97 ) FROM tab1 WHERE NOT col2 + + 93 + col1 * - col0 IN ( + col0 )
----
-191478
-20370
-57036

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-434
SELECT ALL * FROM tab2 WHERE ( - 7 * + + 97 + - - CAST( NULL AS SIGNED ) ) BETWEEN + 92 * col0 AND + col0 / col0
----

skipif mysql # not compatible
query III rowsort label-434
SELECT ALL * FROM tab2 WHERE ( - 7 * + + 97 + - - CAST ( NULL AS INTEGER ) ) BETWEEN + 92 * col0 AND + col0 / col0
----

query I rowsort
SELECT ALL - col0 + - + 99 FROM tab2 AS cor0
----
-145
-163
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT DISTINCT COUNT( * ) - - + 67 + - - COUNT( - col0 ) FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-436
SELECT DISTINCT COUNT ( * ) - - + 67 + - - COUNT ( - col0 ) FROM tab1 AS cor0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-437
SELECT + + 8 + - CAST( + + col0 AS SIGNED ) FROM tab1 AS cor0
----
-43
-77
-83

skipif mysql # not compatible
query I rowsort label-437
SELECT + + 8 + - CAST ( + + col0 AS INTEGER ) FROM tab1 AS cor0
----
-43
-77
-83

query I rowsort
SELECT + - col1 + - - 73 AS col0 FROM tab0 AS cor0
----
-8
52
72

onlyif mysql # DIV for integer division: 
query I rowsort label-439
SELECT + + col0 + - col1 DIV + + col0 AS col0 FROM tab2 AS cor0
----
45
63
75

skipif mysql # not compatible
query I rowsort label-439
SELECT + + col0 + - col1 / + + col0 AS col0 FROM tab2 AS cor0
----
45
63
75

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-443
SELECT ( 60 ) DIV + COUNT( + - col1 ) FROM tab1 cor0
----
20

skipif mysql # not compatible
query I rowsort label-443
SELECT ( 60 ) / + COUNT ( + - col1 ) FROM tab1 cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT ALL - + COUNT( * ) * + 22 FROM tab2 AS cor0 WHERE NOT + 92 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-444
SELECT ALL - + COUNT ( * ) * + 22 FROM tab2 AS cor0 WHERE NOT + 92 IS NOT NULL
----
0

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-451
SELECT col1 FROM tab0 WHERE NOT - col2 * - CAST( - col2 AS SIGNED ) IN ( - 81, 7 )
----
1
21
81

skipif mysql # not compatible
query I rowsort label-451
SELECT col1 FROM tab0 WHERE NOT - col2 * - CAST ( - col2 AS INTEGER ) IN ( - 81, 7 )
----
1
21
81

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-452
SELECT + CAST( NULL AS DECIMAL ) AS col2, + col2 AS col0 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-452
SELECT + CAST ( NULL AS REAL ) AS col2, + col2 AS col0 FROM tab0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # DIV for integer division: 
query II rowsort label-453
SELECT DISTINCT + col1 AS col1, ( col1 ) * 40 DIV + col2 FROM tab0
----
1
0
21
84
81
68

skipif mysql # not compatible
query II rowsort label-453
SELECT DISTINCT + col1 AS col1, ( col1 ) * 40 / + col2 FROM tab0
----
1
0
21
84
81
68

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT - MAX( - 90 ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-454
SELECT - MAX ( - 90 ) FROM tab0
----
90

query I rowsort
SELECT + col0 * 23 AS col1 FROM tab2 cor0
----
1058
1472
1725

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT - 55 + + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-456
SELECT - 55 + + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-58

query III rowsort
SELECT * FROM tab2 WHERE ( - 97 - 4 * col0 * + col2 ) IS NULL
----

query I rowsort
SELECT ALL - 79 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query I rowsort
SELECT ALL + + 31 + col2 FROM tab2 AS cor0
----
54
71
89

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE col1 <> ( - - ( - - 79 ) )
----
-10
-47
-99

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-462
SELECT * FROM tab1 AS cor0 WHERE - CAST( - - 82 AS DECIMAL ) NOT BETWEEN ( - col0 ) AND CAST( NULL AS SIGNED ) + + 73 + + col1 * + - col1
----
51
14
96

skipif mysql # not compatible
query III rowsort label-462
SELECT * FROM tab1 AS cor0 WHERE - CAST ( - - 82 AS REAL ) NOT BETWEEN ( - col0 ) AND CAST ( NULL AS INTEGER ) + + 73 + + col1 * + - col1
----
51
14
96

query I rowsort
SELECT 61 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-464
SELECT ALL + CAST( + 29 AS SIGNED ) * - - 12 AS col2 FROM tab1
----
348
348
348

skipif mysql # not compatible
query I rowsort label-464
SELECT ALL + CAST ( + 29 AS INTEGER ) * - - 12 AS col2 FROM tab1
----
348
348
348

query I rowsort
SELECT 69 + + + 53 * col0 + - + 53 * col2 AS col1 FROM tab1
----
-2316
1288
1447

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

query III rowsort
SELECT + col0 AS col2, + 51 + col1 AS col2, + col1 + + + col1 AS col0 FROM tab0
----
9 values hashing to 9306f096c8aa13d08835eb99f63600ad

onlyif mysql # aggregate syntax: 
query II rowsort label-468
SELECT DISTINCT + MAX( ALL col0 ) + COUNT( * ) AS col0, + 81 FROM tab1 AS cor0
----
94
81

skipif mysql # not compatible
query II rowsort label-468
SELECT DISTINCT + MAX ( ALL col0 ) + COUNT ( * ) AS col0, + 81 FROM tab1 AS cor0
----
94
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - 93 col2 FROM tab2 AS cor0
----
-16
-26
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT DISTINCT - + COUNT( * ) FROM tab2 AS cor0 WHERE - col0 > col0
----
0

skipif mysql # not compatible
query I rowsort label-470
SELECT DISTINCT - + COUNT ( * ) FROM tab2 AS cor0 WHERE - col0 > col0
----
0

query I rowsort
SELECT ALL - - 28 AS col2 FROM tab2 cor0
----
28
28
28

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

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

query I rowsort
SELECT DISTINCT + ( - ( + + 94 ) ) FROM tab0
----
-94

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-475
SELECT - 92 DIV - col1 + - CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
102
69
77

skipif mysql # not compatible
query I rowsort label-475
SELECT - 92 / - col1 + - CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
102
69
77

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

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

query I rowsort
SELECT - - 35 * col0 FROM tab1 cor0
----
1785
2975
3185

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 NOT BETWEEN - col2 AND + col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query II rowsort label-479
SELECT DISTINCT + - ( COUNT( * ) ) * MIN( + ( + 19 ) ) + 17 AS col2, COUNT( * ) FROM tab0 AS cor0
----
-40
3

skipif mysql # not compatible
query II rowsort label-479
SELECT DISTINCT + - ( COUNT ( * ) ) * MIN ( + ( + 19 ) ) + 17 AS col2, COUNT ( * ) FROM tab0 AS cor0
----
-40
3

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT - ( + col0 ) - + + 72 * ( + + 0 ) + col2 - + col1 + - - col2 * - 17 * + + 41 * col2 IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-481
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 - + + 65 ) BETWEEN ( NULL ) AND + col2 * - - col0 + - 50 - CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-481
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 - + + 65 ) BETWEEN ( NULL ) AND + col2 * - - col0 + - 50 - CAST ( col0 AS INTEGER )
----

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

query I rowsort
SELECT ALL - - 85 FROM tab2 WHERE 94 BETWEEN ( NULL ) AND 30
----

query I rowsort
SELECT - ( - col0 ) * - - 36 AS col2 FROM tab0
----
3132
3492
540

query I rowsort
SELECT DISTINCT - 40 + + 99 + col0 * col0 + 12 AS col1 FROM tab1
----
2672
7296
8352

query I rowsort
SELECT ALL - col1 + - 89 * - 95 FROM tab1
----
8408
8441
8450

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT + MAX( ALL - + ( + - col0 ) ) * - 35 AS col1 FROM tab2 AS cor0 WHERE col0 / - col1 > - col2 - col1
----
-2625

skipif mysql # not compatible
query I rowsort label-488
SELECT + MAX ( ALL - + ( + - col0 ) ) * - 35 AS col1 FROM tab2 AS cor0 WHERE col0 / - col1 > - col2 - col1
----
-2625

query I rowsort
SELECT ALL 97 + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
120
137
155

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-493
SELECT ALL - 17 * - 67 + - CAST( 18 AS SIGNED ) FROM tab0
----
1121
1121
1121

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL - 17 * - 67 + - CAST ( 18 AS INTEGER ) FROM tab0
----
1121
1121
1121

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

query I rowsort
SELECT ALL - - 60 + - 42 * - + ( + ( + col1 ) ) AS col2 FROM tab0 AS cor0
----
102
3462
942

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-499
SELECT - - col0 * + col1 FROM tab2 AS cor0 WHERE col1 / + + 73 < 18 * - - CAST( NULL AS SIGNED ) - - col0
----

skipif mysql # not compatible
query I rowsort label-499
SELECT - - col0 * + col1 FROM tab2 AS cor0 WHERE col1 / + + 73 < 18 * - - CAST ( NULL AS INTEGER ) - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT - + 13 * + ( + + 11 ) * 85 * + COUNT( * ) col2 FROM tab1 AS cor0
----
-36465

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-500
SELECT - + 13 * + ( + + 11 ) * 85 * + COUNT ( * ) col2 FROM tab1 AS cor0
----
-36465

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 75 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - ( 86 ) AS col0 FROM tab2 AS cor0
----
-86

query I rowsort
SELECT ALL + 56 * - - col2 * - ( + 65 ) - + col2 AS col0 FROM tab0
----
-171127
-360459
-36410

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-506
SELECT * FROM tab2 WHERE ( + CAST( - 17 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-506
SELECT * FROM tab2 WHERE ( + CAST ( - 17 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = - 14
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-508
SELECT CAST( - 42 AS SIGNED ) * - 63 - - - col1 AS col0 FROM tab2
----
2569
2579
2595

skipif mysql # not compatible
query I rowsort label-508
SELECT CAST ( - 42 AS INTEGER ) * - 63 - - - col1 AS col0 FROM tab2
----
2569
2579
2595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 col2 FROM tab1
----
43
43
43

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

query I rowsort
SELECT + 20 AS col0 FROM tab0 WHERE NULL <= - 68
----

query I rowsort
SELECT ALL ( + col0 ) * - + 19 AS col2 FROM tab2
----
-1216
-1425
-874

onlyif mysql # aggregate syntax: 
query II rowsort label-513
SELECT DISTINCT - + COUNT( - + col0 ) col2, 19 FROM tab1 AS cor0
----
-3
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-513
SELECT DISTINCT - + COUNT ( - + col0 ) col2, 19 FROM tab1 AS cor0
----
-3
19

query I rowsort
SELECT ALL + - 91 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

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

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

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

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

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

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

query I rowsort
SELECT ALL - + 20 * - 63 FROM tab2 AS cor0
----
1260
1260
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT 15 * + + COUNT( * ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-520
SELECT 15 * + + COUNT ( * ) FROM tab0 AS cor0
----
45

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

skipif mysql # not compatible
query I rowsort label-521
SELECT DISTINCT COUNT ( * ) / - + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-522
SELECT ALL - + 25 DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL - + 25 / - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-523
SELECT + - 8 DIV + col2 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-523
SELECT + - 8 / + col2 AS col2 FROM tab1 cor0
----
0
0
0

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

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

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

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

query I rowsort
SELECT 70 + - + col0 * + col1 FROM tab1
----
-355
-4207
-644

onlyif mysql # DIV for integer division: 
query I rowsort label-527
SELECT DISTINCT - 3 DIV + col1 FROM tab0 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-527
SELECT DISTINCT - 3 / + col1 FROM tab0 AS cor0
----
-3
0

query I rowsort
SELECT 71 + - col0 * - - 13 - col0 FROM tab0 AS cor0
----
-1147
-1287
-139

query I rowsort
SELECT - - col0 * + 44 + - 2 FROM tab1 AS cor0
----
2242
3738
4002

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-530
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - 93 - + CAST( + + col2 AS SIGNED ) <> ( ( + + col1 ) ) )
----

skipif mysql # not compatible
query III rowsort label-530
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - 93 - + CAST ( + + col2 AS INTEGER ) <> ( ( + + col1 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT DISTINCT - + MAX( DISTINCT - col2 ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-531
SELECT DISTINCT - + MAX ( DISTINCT - col2 ) FROM tab1 cor0
----
59

query I rowsort
SELECT ALL + - 52 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

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

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

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

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

skipif mysql # not compatible
query I rowsort label-535
SELECT 4 * + - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) - - 69 AS col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 - - - col1 * + + 56 + col0 col2 FROM tab2 AS cor0
----
-2871
-3738
-4309

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT - 33 - - SUM( + col1 ) FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-537
SELECT - 33 - - SUM ( + col1 ) FROM tab2 AS cor0
----
162

query I rowsort
SELECT DISTINCT + + 86 + + 5 FROM tab1 cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 - + + col2 col1, - ( + col0 ) * + - col1 AS col2 FROM tab2 AS cor0
----
-116
5025
-46
2346
-80
4928

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-540
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ), - col0 )
----

skipif mysql # not compatible
query III rowsort label-540
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ), - col0 )
----

query I rowsort
SELECT ALL - - 55 - + 57 * + + col0 FROM tab2 AS cor0
----
-2567
-3593
-4220

query I rowsort
SELECT DISTINCT col2 * + col2 FROM tab0 WHERE NOT + + 72 - + - 74 - + - col0 + col1 IS NULL
----
100
2209
9801

query I rowsort
SELECT col0 * + 86 FROM tab0
----
1290
7482
8342

query II rowsort
SELECT ALL 90 AS col2, + col0 AS col0 FROM tab2
----
90
46
90
64
90
75

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col2 FROM tab1 WHERE NOT - + 39 IS NOT NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-549
SELECT col1 * col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ), + col2 )
----

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 33 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-552
SELECT COUNT ( * ) col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

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

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

query I rowsort
SELECT - 43 + col0 AS col0 FROM tab1 AS cor0
----
42
48
8

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT COUNT( + col1 ) + + 87 FROM tab1 cor0
----
90

skipif mysql # not compatible
query I rowsort label-556
SELECT COUNT ( + col1 ) + + 87 FROM tab1 cor0
----
90

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL IS NULL ) OR - 25 IN ( + col1, col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 + - col1 * 76 col2 FROM tab1
----
-1023
-339
-3531

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT ALL + COUNT( * ) + + 15 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-561
SELECT ALL + COUNT ( * ) + + 15 FROM tab0
----
18

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

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

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND + 79
----

query I rowsort
SELECT + col2 + col1 + - 82 + col1 FROM tab0 AS cor0
----
-30
127
19

query I rowsort
SELECT - - 13 * - col1 * - 51 + + col2 + + col0 * + + 36 AS col2 FROM tab0 AS cor0
----
17065
4254
54290

query I rowsort
SELECT - 79 + + - col2 AS col2 FROM tab2 AS cor0
----
-102
-119
-137

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 <= NULL )
----

query II rowsort
SELECT DISTINCT + col2 AS col2, ( + col1 ) * - + col2 * + col1 FROM tab1
----
59
-1475
68
-150212
96
-18816

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT ALL + 23 * 13 * + + SUM( + col1 ) * - COUNT( * ) FROM tab0
----
-92391

skipif mysql # not compatible
query I rowsort label-569
SELECT ALL + 23 * 13 * + + SUM ( + col1 ) * - COUNT ( * ) FROM tab0
----
-92391

query I rowsort
SELECT - col2 + - + col0 - - - col1 * + col0 AS col0 FROM tab2
----
-2415
-5032
-5158

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

query I rowsort
SELECT DISTINCT - col0 - + 49 FROM tab2 AS cor0
----
-113
-124
-95

query I rowsort
SELECT 60 * - col0 * - 63 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 >= + col0
----
46
51
23
64
77
40

query I rowsort
SELECT - 50 + + col0 FROM tab1 WHERE NOT - col2 * 90 NOT BETWEEN col2 - + + 85 AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 63 col2, 87 * col0 FROM tab0 WHERE NOT - col2 NOT IN ( + - col0 / col1, 33 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 * - col1 * + + col0 col2 FROM tab2
----
152768
155775
72726

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 76 / col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * + + 26 + + 9 AS col0 FROM tab0 AS cor0
----
2115
35
555

query I rowsort
SELECT ALL + 4 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query II rowsort
SELECT 96, col2 * - col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT MAX( + 63 ) FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-587
SELECT MAX ( + 63 ) FROM tab2
----
63

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

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

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

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

query I rowsort
SELECT - 15 * - + 21 * - col2 FROM tab0 AS cor0
----
-14805
-31185
-3150

query I rowsort
SELECT - col1 * + 68 AS col0 FROM tab0 AS cor0
----
-1428
-5508
-68

query I rowsort
SELECT ALL col2 * + col2 + - - 10 AS col0 FROM tab1
----
3491
4634
9226

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT MAX( ALL + col0 ) FROM tab1 WHERE NULL IS NULL
----
91

skipif mysql # not compatible
query I rowsort label-594
SELECT MAX ( ALL + col0 ) FROM tab1 WHERE NULL IS NULL
----
91

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

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

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

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

query I rowsort
SELECT - col1 + - - col1 AS col2 FROM tab2
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-600
SELECT ALL col0 DIV - - col0 - - + col1 FROM tab2 AS cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL col0 / - - col0 - - + col1 FROM tab2 AS cor0
----
52
68
78

onlyif mysql # DIV for integer division: 
query I rowsort label-601
SELECT + col0 DIV + col0 + - 55 * + ( + 63 ) AS col2 FROM tab2 AS cor0
----
-3464
-3464
-3464

skipif mysql # not compatible
query I rowsort label-601
SELECT + col0 / + col0 + - 55 * + ( + 63 ) AS col2 FROM tab2 AS cor0
----
-3464
-3464
-3464

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL BETWEEN 77 AND - col0
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-604
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

skipif mysql # not compatible
query IIIIII rowsort label-604
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT + col1 * - 55 - ( - col0 ) AS col1 FROM tab2
----
-2759
-3610
-4171

query I rowsort
SELECT col2 - + 99 FROM tab1
----
-3
-31
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-607
SELECT DISTINCT - CAST( + - col0 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-607
SELECT DISTINCT - CAST ( + - col0 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
225
7569
9409

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

query I rowsort
SELECT DISTINCT - 96 * + 52 AS col0 FROM tab0 AS cor0
----
-4992

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

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

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 AS cor0 WHERE - ( - col0 ) BETWEEN + + col1 AND - - col1 + 40
----

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

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

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

query I rowsort
SELECT ALL - col2 * - + col1 * - col1 AS col0 FROM tab0
----
-308367
-4410
-99

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

skipif mysql # not compatible
query I rowsort label-615
SELECT ALL MAX ( DISTINCT + + 68 ) AS col1 FROM tab2
----
68

query I rowsort
SELECT + 22 * - + col0 * + col2 FROM tab1
----
-107712
-110330
-136136

query I rowsort
SELECT + 89 * - 77 FROM tab1
----
-6853
-6853
-6853

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) BETWEEN 8 AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 45 FROM tab0 cor0
----
-45
-45
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-620
SELECT DISTINCT 70 DIV + CAST( + MAX( + 96 ) AS SIGNED ) FROM tab1, tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-620
SELECT DISTINCT 70 / + CAST ( + MAX ( + 96 ) AS INTEGER ) FROM tab1, tab0 cor0
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col0 * + col2 col2 FROM tab2 cor0
----
1012
2496
4275

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-625
SELECT - 84 + CAST( - + 7 AS SIGNED ) FROM tab1 AS cor0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-625
SELECT - 84 + CAST ( - + 7 AS INTEGER ) FROM tab1 AS cor0
----
-91
-91
-91

query I rowsort
SELECT DISTINCT + 69 * + + 53 AS col1 FROM tab0 AS cor0 WHERE ( + col2 IS NULL ) OR NOT - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT - 14 * COUNT( * ) AS col2 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-627
SELECT - 14 * COUNT ( * ) AS col2 FROM tab1
----
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, col2 AS col0 FROM tab1
----
51
96
85
59
91
68

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

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

query I rowsort
SELECT ALL 60 + - col1 FROM tab0
----
-21
39
59

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

query II rowsort
SELECT ALL + 72, col1 FROM tab0
----
72
1
72
21
72
81

query I rowsort
SELECT DISTINCT - 8 - - 31 FROM tab2 cor0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-634
SELECT ALL + ( - CAST( + - SUM( ALL + + 69 ) AS SIGNED ) ) * + 83 AS col1 FROM tab1 AS cor0
----
17181

skipif mysql # not compatible
query I rowsort label-634
SELECT ALL + ( - CAST ( + - SUM ( ALL + + 69 ) AS INTEGER ) ) * + 83 AS col1 FROM tab1 AS cor0
----
17181

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

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

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

query I rowsort
SELECT + + col1 + - + 33 FROM tab2 AS cor0
----
18
34
44

query I rowsort
SELECT - - 79 + - + 88 FROM tab1 AS cor0
----
-9
-9
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 + - col0 col0 FROM tab1 AS cor0
----
-46
-80
-86

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 3 - 27 * - col0 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-641
SELECT ALL + col1 DIV col0 AS col0, + 42 AS col1 FROM tab0
----
0
42
0
42
5
42

skipif mysql # not compatible
query II rowsort label-641
SELECT ALL + col1 / col0 AS col0, + 42 AS col1 FROM tab0
----
0
42
0
42
5
42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-642
SELECT 28 + + CAST( ( + ( + + col1 ) ) AS SIGNED ) * col2 DIV - - 48 FROM tab0
----
107
30
32

skipif mysql # not compatible
query I rowsort label-642
SELECT 28 + + CAST ( ( + ( + + col1 ) ) AS INTEGER ) * col2 / - - 48 FROM tab0
----
107
30
32

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-644
SELECT COUNT( * ) DIV SUM( ALL - 52 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-644
SELECT COUNT ( * ) / SUM ( ALL - 52 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

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

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

query I rowsort
SELECT DISTINCT - col1 * 41 FROM tab1 AS cor0
----
-1927
-205
-574

query I rowsort
SELECT ALL + col1 * 92 FROM tab1 AS cor0
----
1288
4324
460

query I rowsort
SELECT - 76 * + - ( + col2 ) + + col0 AS col0 FROM tab0 cor0
----
3587
7621
847

onlyif mysql # DIV for integer division: 
query I rowsort label-649
SELECT ALL + col0 DIV 19 FROM tab0 AS cor0
----
0
4
5

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL + col0 / 19 FROM tab0 AS cor0
----
0
4
5

onlyif mysql # DIV for integer division: 
query I rowsort label-650
SELECT - 79 DIV col1 FROM tab1 cor0
----
-1
-15
-5

skipif mysql # not compatible
query I rowsort label-650
SELECT - 79 / col1 FROM tab1 cor0
----
-1
-15
-5

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) < col2 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-652
SELECT DISTINCT CAST( + col0 AS SIGNED ) FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-652
SELECT DISTINCT CAST ( + col0 AS INTEGER ) FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT ALL + - col2 * - - col1 + col0 + - col0 * - 37 AS col2 FROM tab2 AS cor0
----
-1036
-648
575

query II rowsort
SELECT + 25 AS col0, col2 FROM tab2
----
25
23
25
40
25
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT ALL COUNT( * ) - + 61 AS col1 FROM tab1, tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-656
SELECT ALL COUNT ( * ) - + 61 AS col1 FROM tab1, tab2 AS cor0
----
-52

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT - + col0 - - col1 + - col0 IN ( col0 )
----
14
47
5

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT - MAX( ALL 56 ) AS col2 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-660
SELECT - MAX ( ALL 56 ) AS col2 FROM tab1 AS cor0
----
-56

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

query II rowsort
SELECT 4 AS col0, col2 - - col0 FROM tab1 AS cor0
----
4
144
4
147
4
159

query I rowsort
SELECT ALL - ( 11 ) * + ( 24 ) AS col2 FROM tab2 AS cor0
----
-264
-264
-264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-664
SELECT - CAST( NULL AS SIGNED ) + - ( - + 29 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-664
SELECT - CAST ( NULL AS INTEGER ) + - ( - + 29 ) AS col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT col1 + ( - col2 ), + 61 AS col1 FROM tab2
----
28
61
37
61
9
61

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT - 44 * - + COUNT( * ) + - 55 AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-666
SELECT - 44 * - + COUNT ( * ) + - 55 AS col1 FROM tab2
----
77

query I rowsort
SELECT + 63 * + 85 AS col1 FROM tab0
----
5355
5355
5355

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

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

query I rowsort
SELECT 14 AS col2 FROM tab0 cor0
----
14
14
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-670
SELECT ALL + CAST( NULL AS SIGNED ) + - + 69 AS col1, - 50 AS col0 FROM tab1 cor0
----
NULL
-50
NULL
-50
NULL
-50

skipif mysql # not compatible
query II rowsort label-670
SELECT ALL + CAST ( NULL AS INTEGER ) + - + 69 AS col1, - 50 AS col0 FROM tab1 cor0
----
NULL
-50
NULL
-50
NULL
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-671
SELECT DISTINCT MIN( - CAST( 44 AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-44

skipif mysql # not compatible
query I rowsort label-671
SELECT DISTINCT MIN ( - CAST ( 44 AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-44

query I rowsort
SELECT col1 * - 64 FROM tab0
----
-1344
-5184
-64

query I rowsort
SELECT 12 * 32 FROM tab0
----
384
384
384

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

query I rowsort
SELECT DISTINCT - - 31 * + col2 AS col2 FROM tab2 AS cor0
----
1240
1798
713

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT DISTINCT COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0 WHERE NULL <= + col2
----
0

skipif mysql # not compatible
query I rowsort label-676
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <= + col2
----
0

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

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

query I rowsort
SELECT ALL - 78 * col1 AS col0 FROM tab0 AS cor0
----
-1638
-6318
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-679
SELECT - ( + + 57 ), + MIN( + col0 ) AS col2 FROM tab0
----
-57
15

skipif mysql # not compatible
query II rowsort label-679
SELECT - ( + + 57 ), + MIN ( + col0 ) AS col2 FROM tab0
----
-57
15

query I rowsort
SELECT 67 FROM tab0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT DISTINCT - MIN( DISTINCT + 88 ) FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-681
SELECT DISTINCT - MIN ( DISTINCT + 88 ) FROM tab2
----
-88

query I rowsort
SELECT DISTINCT - ( - 34 ) * + ( + 82 ) * + col2 FROM tab0
----
131036
276012
27880

query I rowsort
SELECT - ( - 1 ) FROM tab0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-684
SELECT DISTINCT col1 + + - col2 DIV + col0 FROM tab1 AS cor0
----
13
47
5

skipif mysql # not compatible
query I rowsort label-684
SELECT DISTINCT col1 + + - col2 / + col0 FROM tab1 AS cor0
----
13
47
5

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-686
SELECT + COUNT( * ) DIV + 8 + + - 45 AS col2 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-686
SELECT + COUNT ( * ) / + 8 + + - 45 AS col2 FROM tab1
----
-45

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT - ( - col0 ) NOT IN ( - 30 )
----

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

query I rowsort
SELECT ALL + 73 + - + 98 AS col1 FROM tab1 AS cor0
----
-25
-25
-25

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

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

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

query I rowsort
SELECT - 29 * - col2 FROM tab1 cor0
----
1711
1972
2784

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT 72 - + COUNT( * ) + - 96 AS col2 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-695
SELECT 72 - + COUNT ( * ) + - 96 AS col2 FROM tab0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - 47 col1 FROM tab2
----
-105
-70
-87

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

query I rowsort
SELECT + col0 * - + ( + col1 ) FROM tab1 AS cor0
----
-425
-4277
-714

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab1 cor0 WHERE NOT - col1 + col2 IS NULL
----
-51
-85
-91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT + + SUM( - col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-702
SELECT + + SUM ( - col1 ) FROM tab0 AS cor0
----
-103

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

skipif mysql # not compatible
query I rowsort label-703
SELECT + COUNT ( ALL col0 ) / - - COUNT ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
1

query II rowsort
SELECT - + col0 * - 66 AS col1, - col0 FROM tab0 AS cor0
----
5742
-87
6402
-97
990
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-705
SELECT ALL MIN( + 54 ) * - 66 DIV COUNT( * ) FROM tab0 AS cor0
----
-1188

skipif mysql # not compatible
query I rowsort label-705
SELECT ALL MIN ( + 54 ) * - 66 / COUNT ( * ) FROM tab0 AS cor0
----
-1188

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

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

query I rowsort
SELECT ALL + ( - col1 ) * + col2 AS col1 FROM tab0
----
-210
-3807
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 IN ( + 63 - - col1 * - 84, - 91 / col0 )
----

query I rowsort
SELECT DISTINCT 13 * - col1 AS col0 FROM tab2
----
-1001
-663
-871

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-710
SELECT DISTINCT CAST( NULL AS DECIMAL ) col1, + 3 * + 12 FROM tab1
----
NULL
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-710
SELECT DISTINCT CAST ( NULL AS REAL ) col1, + 3 * + 12 FROM tab1
----
NULL
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-711
SELECT DISTINCT SUM( ALL - - col1 ) + - SUM( DISTINCT + + col2 ) DIV CAST( - 61 AS SIGNED ) AS col1 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-711
SELECT DISTINCT SUM ( ALL - - col1 ) + - SUM ( DISTINCT + + col2 ) / CAST ( - 61 AS INTEGER ) AS col1 FROM tab0
----
105

query I rowsort
SELECT ALL - col1 + + 20 FROM tab1
----
-27
15
6

onlyif mysql # aggregate syntax: 
query II rowsort label-713
SELECT ALL 17 AS col1, + COUNT( * ) AS col2 FROM tab0
----
17
3

skipif mysql # not compatible
query II rowsort label-713
SELECT ALL 17 AS col1, + COUNT ( * ) AS col2 FROM tab0
----
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT DISTINCT ( - ( - 60 ) ) + - MIN( ALL col2 ) FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-714
SELECT DISTINCT ( - ( - 60 ) ) + - MIN ( ALL col2 ) FROM tab0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT COUNT( * ) + - 29 AS col2 FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-715
SELECT COUNT ( * ) + - 29 AS col2 FROM tab2
----
-26

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 IS NULL OR + 26 + col1 <> NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT ALL + 40 * - col2 AS col0 FROM tab0 AS cor0
----
-1880
-3960
-400

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

query I rowsort
SELECT + + col1 + + + col2 + + + col1 * ( + col1 ) AS col0 FROM tab0 AS cor0
----
101
472
6689

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 76, col2 + + col1 col0 FROM tab2 cor0
----
76
117
76
125
76
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col0, col1 AS col2 FROM tab2 AS cor0
----
51
51
67
67
77
77

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

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

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

query I rowsort
SELECT + 18 * 41 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6aaf44fe5b0c21b6b0d452b6e04011d3

query I rowsort
SELECT ALL col0 + + - 82 + - ( - 42 ) AS col2 FROM tab1
----
11
45
51

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 * col1 * + col2 * - 99 - col1 - + - col0 * + 16 * + col2 col0 FROM tab2 AS cor0
----
16877
40883
69533

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * + col0 - 33 col2 FROM tab2 AS cor0
----
-1091
-2593
-4383

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-731
SELECT ALL col2 DIV - ( + col1 ) + + - col0 - col1 FROM tab1 AS cor0
----
-101
-139
-71

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL col2 / - ( + col1 ) + + - col0 - col1 FROM tab1 AS cor0
----
-101
-139
-71

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 94 <> 94
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT DISTINCT - 87 - + 87 AS col1 FROM tab1 AS cor0
----
-174

query I rowsort
SELECT 93 + 23 FROM tab2
----
116
116
116

query I rowsort
SELECT col1 + + 93 AS col2 FROM tab1
----
107
140
98

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + + col0 col1 FROM tab1
----
425
4277
714

onlyif mysql # DIV for integer division: 
query II rowsort label-740
SELECT DISTINCT - ( 45 ) DIV col1 AS col2, - col1 AS col2 FROM tab0
----
-2
-21
-45
-1
0
-81

skipif mysql # not compatible
query II rowsort label-740
SELECT DISTINCT - ( 45 ) / col1 AS col2, - col1 AS col2 FROM tab0
----
-2
-21
-45
-1
0
-81

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-741
SELECT - CAST ( NULL AS INTEGER ) / col0 * + - col1, + CAST ( - col0 AS INTEGER ) col2 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-742
SELECT ALL - col0 DIV - - 93 col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-742
SELECT ALL - col0 / - - 93 col0 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-743
SELECT ALL - 10 AS col0, + SUM( - - 17 ) + + COUNT( * ) FROM tab0
----
-10
54

skipif mysql # not compatible
query II rowsort label-743
SELECT ALL - 10 AS col0, + SUM ( - - 17 ) + + COUNT ( * ) FROM tab0
----
-10
54

query I rowsort
SELECT DISTINCT - + col1 FROM tab0 AS cor0 WHERE NOT col2 * + 77 + - - col2 IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-746
SELECT + 33 DIV 64 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-746
SELECT + 33 / 64 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-752
SELECT ALL 70 AS col1, col1 DIV - 13 FROM tab2 AS cor0
----
70
-3
70
-5
70
-5

skipif mysql # not compatible
query II rowsort label-752
SELECT ALL 70 AS col1, col1 / - 13 FROM tab2 AS cor0
----
70
-3
70
-5
70
-5

query I rowsort
SELECT ALL - col0 * - - 39 FROM tab2 AS cor0
----
-1794
-2496
-2925

query I rowsort
SELECT ALL col0 + 44 + - col2 + col1 + + 95 * - col2 - + col1 * + - 18 AS col0 FROM tab0
----
-2914
-430
-9344

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

query I rowsort
SELECT ALL col0 * col0 + 31 AS col0 FROM tab1
----
2632
7256
8312

onlyif mysql # DIV for integer division: 
query I rowsort label-757
SELECT DISTINCT col2 DIV col1 + - 55 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-757
SELECT DISTINCT col2 / col1 + - 55 FROM tab2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT + ( - + MAX( + 47 ) ) FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-758
SELECT + ( - + MAX ( + 47 ) ) FROM tab0
----
-47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT - - COUNT( * ) + - 9 AS col2 FROM tab1 AS cor0
----
-6

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-763
SELECT ALL col0 DIV + 49 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL col0 / + 49 AS col0 FROM tab1
----
1
1
1

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

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

query I rowsort
SELECT DISTINCT - - 2 + - col2 FROM tab0 AS cor0
----
-45
-8
-97

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

query I rowsort
SELECT - ( + + 22 ) * - col1 AS col0 FROM tab0 AS cor0
----
1782
22
462

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

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

query II rowsort
SELECT - - col1 - 35 + - col1, col1 * + 96 AS col2 FROM tab2 cor0
----
-35
4896
-35
6432
-35
7392

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 ) * + - 78 > ( + 34 * - 40 * - ( + 41 ) * + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 31 * + col1 AS col2 FROM tab1
----
1457
155
434

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-774
SELECT DISTINCT 48 DIV + col0, col1 FROM tab2
----
0
67
0
77
1
51

skipif mysql # not compatible
query II rowsort label-774
SELECT DISTINCT 48 / + col0, col1 FROM tab2
----
0
67
0
77
1
51

query I rowsort
SELECT col0 * ( 10 ) AS col0 FROM tab2
----
460
640
750

query I rowsort
SELECT DISTINCT + ( - - 20 ) FROM tab1 WHERE NOT + + col2 + col0 <> col0 * - + ( - col2 ) + - + ( col0 )
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE NOT + col2 / + 66 - + 55 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + 13 AND - + 16 / + 10
----

query I rowsort
SELECT ALL col2 * - + 70 AS col2 FROM tab0 WHERE NOT + - col0 IS NULL
----
-3290
-6930
-700

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

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT - + 41 NOT BETWEEN - col0 AND col2
----
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT ALL MAX( 60 ) + + ( 7 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-782
SELECT ALL MAX ( 60 ) + + ( 7 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-783
SELECT ALL * FROM tab1 cor0 WHERE NOT + CAST( NULL AS SIGNED ) + - col0 <= NULL
----

skipif mysql # not compatible
query III rowsort label-783
SELECT ALL * FROM tab1 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + - col0 <= NULL
----

query I rowsort
SELECT + 21 * - col1 AS col1 FROM tab2 AS cor0
----
-1071
-1407
-1617

onlyif mysql # DIV for integer division: 
query II rowsort label-785
SELECT + - 5 DIV + col1 AS col0, + col2 * 43 AS col0 FROM tab1 cor0
----
-1
2537
0
2924
0
4128

skipif mysql # not compatible
query II rowsort label-785
SELECT + - 5 / + col1 AS col0, + col2 * 43 AS col0 FROM tab1 cor0
----
-1
2537
0
2924
0
4128

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

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

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

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

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

query I rowsort
SELECT DISTINCT 76 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
76

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 84 * 62 + - col1, 63 * + col0 - - col0 + - + col2 * - col2 * col0 col0 FROM tab2
----
-5259
27278
-5275
257100
-5285
106496

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

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

query I rowsort
SELECT ALL col0 + + 50 AS col1 FROM tab1 AS cor0
----
101
135
141

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-800
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, + col0 * - col0 + col2 AS col2, col1 * - col0 FROM tab0
----
9 values hashing to a51174c6922a9600aae47a0b5eb50f26

skipif mysql # not compatible
query III rowsort label-800
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, + col0 * - col0 + col2 AS col2, col1 * - col0 FROM tab0
----
9 values hashing to a51174c6922a9600aae47a0b5eb50f26

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

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

query I rowsort
SELECT - col0 + ( + 44 ) + - col2 FROM tab1
----
-100
-103
-115

query I rowsort
SELECT DISTINCT 66 + + 62 FROM tab0
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-804
SELECT - col1 DIV - col2 + - - col2 FROM tab0
----
12
48
99

skipif mysql # not compatible
query I rowsort label-804
SELECT - col1 / - col2 + - - col2 FROM tab0
----
12
48
99

query II rowsort
SELECT + - 70 + - - 0 - col1 * + - 51, col1 FROM tab1 AS cor0
----
185
5
2327
47
644
14

query I rowsort
SELECT 51 + - + 23 + - ( - + 9 ) FROM tab2 AS cor0
----
37
37
37

query I rowsort
SELECT ALL + col2 + 26 - - 21 FROM tab0 AS cor0
----
146
57
94

query I rowsort
SELECT - - 1 + - col0 AS col1 FROM tab1 AS cor0
----
-50
-84
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT DISTINCT 31 * COUNT( * ) FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-809
SELECT DISTINCT 31 * COUNT ( * ) FROM tab1 AS cor0
----
93

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

query I rowsort
SELECT 1 AS col1 FROM tab1 WHERE NULL IS NULL
----
1
1
1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 + col1 col2 FROM tab0 AS cor0
----
-41
-61
19

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 21 BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-818
SELECT DISTINCT - COUNT( * ) AS col1, - 27 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0
-27

skipif mysql # not compatible
query II rowsort label-818
SELECT DISTINCT - COUNT ( * ) AS col1, - 27 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0
-27

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

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

query I rowsort
SELECT ALL - col1 * - + col1 * - col2 FROM tab2
----
-237160
-260362
-59823

query I rowsort
SELECT - col0 * + - ( + 42 ) FROM tab2
----
1932
2688
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT ALL + 71 + 81 * - + 46 - - COUNT( ALL col2 ) AS col1 FROM tab0 WHERE - + col0 IS NULL
----
-3655

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL + 71 + 81 * - + 46 - - COUNT ( ALL col2 ) AS col1 FROM tab0 WHERE - + col0 IS NULL
----
-3655

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

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

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT ( NOT - col0 IS NOT NULL )
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-825
SELECT 33 DIV + col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-825
SELECT 33 / + col0 AS col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + - col1 col0 FROM tab1
----
-196
-2209
-25

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( + 62, - col1, + col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT DISTINCT - ( SUM( ALL 21 ) ) FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-830
SELECT DISTINCT - ( SUM ( ALL 21 ) ) FROM tab0 AS cor0
----
-63

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT DISTINCT + MIN( 23 ) col1 FROM tab0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-834
SELECT DISTINCT + MIN ( 23 ) col1 FROM tab0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-835
SELECT - col0 + 72 DIV col2 AS col1 FROM tab2
----
-43
-63
-74

skipif mysql # not compatible
query I rowsort label-835
SELECT - col0 + 72 / col2 AS col1 FROM tab2
----
-43
-63
-74

query I rowsort
SELECT 22 * - col1 FROM tab1
----
-1034
-110
-308

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

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE 67 <= 38 * col2
----
-51
-67
-77

query I rowsort
SELECT + col2 + col0 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
196
62
97

query I rowsort
SELECT ALL 27 + ( col2 ) FROM tab0
----
126
37
74

onlyif mysql # DIV for integer division: 
query I rowsort label-841
SELECT ALL 49 DIV ( + ( col1 ) ) + col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-841
SELECT ALL 49 / ( + ( col1 ) ) + col0 FROM tab2
----
46
64
75

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

skipif mysql # not compatible
query I rowsort label-842
SELECT + COUNT ( * ) * + COUNT ( * ) FROM tab2 WHERE NOT + col2 - col0 IS NOT NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT MIN( - 62 ) * + MIN( ALL - col1 + col0 ) AS col2 FROM tab2
----
806

skipif mysql # not compatible
query I rowsort label-844
SELECT MIN ( - 62 ) * + MIN ( ALL - col1 + col0 ) AS col2 FROM tab2
----
806

query I rowsort
SELECT DISTINCT - 56 FROM tab1 WHERE NOT - col1 * + col1 IS NULL
----
-56

query I rowsort
SELECT ALL 49 AS col2 FROM tab1 WHERE NOT - ( col0 ) >= ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 75 * + 50 + - col0 * - col2 > col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-848
SELECT + 71 DIV - col1 + - col0 FROM tab2
----
-47
-64
-76

skipif mysql # not compatible
query I rowsort label-848
SELECT + 71 / - col1 + - col0 FROM tab2
----
-47
-64
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT + 70 + - COUNT( DISTINCT + ( col2 ) ) AS col2 FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-849
SELECT + 70 + - COUNT ( DISTINCT + ( col2 ) ) AS col2 FROM tab0
----
67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT DISTINCT 13 - COUNT( * ) FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----
13

skipif mysql # not compatible
query I rowsort label-851
SELECT DISTINCT 13 - COUNT ( * ) FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----
13

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

skipif mysql # not compatible
query III rowsort label-852
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( col1 AS INTEGER ) * CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + 82 col2 FROM tab2 cor0 WHERE ( - col2 + 77 ) IS NOT NULL
----
-133
-149
-159

query I rowsort
SELECT - 3 + + 44 FROM tab2 AS cor0
----
41
41
41

query I rowsort
SELECT ALL + col0 + 17 * + col1 AS col1 FROM tab1 AS cor0
----
170
289
890

query I rowsort
SELECT col2 * - col2 + col0 * - col1 FROM tab2
----
-2875
-6528
-8389

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

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

query I rowsort
SELECT ALL 59 * col0 FROM tab1 cor0
----
3009
5015
5369

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

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

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

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

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

query I rowsort
SELECT ALL - col1 FROM tab1 cor0 WHERE ( NULL ) IN ( 8 * col2 )
----

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

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

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

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

query I rowsort
SELECT - col0 * - 49 FROM tab2 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT DISTINCT 54 * - COUNT( * ) * + 64 AS col0 FROM tab1
----
-10368

skipif mysql # not compatible
query I rowsort label-867
SELECT DISTINCT 54 * - COUNT ( * ) * + 64 AS col0 FROM tab1
----
-10368

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND - col0 / col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 BETWEEN NULL AND ( + 18 + - col0 )
----
87
21
10
97
1
99

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT col2 + + 10 >= ( NULL )
----

query I rowsort
SELECT + 79 - - col1 AS col2 FROM tab2 WHERE NOT + 95 <= + col0
----
130
146
156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-872
SELECT ALL * FROM tab2 WHERE NOT - col1 / + 18 + col0 IN ( - CAST( ( col2 ) AS SIGNED ) * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-872
SELECT ALL * FROM tab2 WHERE NOT - col1 / + 18 + col0 IN ( - CAST ( ( col2 ) AS INTEGER ) * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 WHERE NOT 88 IS NOT NULL
----

query I rowsort
SELECT + ( + 63 ) FROM tab1 WHERE NOT col2 < - col1
----
63
63
63

query I rowsort
SELECT DISTINCT col2 * + col2 * ( + 25 ) FROM tab2
----
13225
40000
84100

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN 22 * col1 AND ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - 57 + ( + ( col2 ) - - 91 * col1 ) ) IN ( + 43 + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-878
SELECT DISTINCT + col0 * 80 DIV 12 AS col2 FROM tab1 AS cor0
----
340
566
606

skipif mysql # not compatible
query I rowsort label-878
SELECT DISTINCT + col0 * 80 / 12 AS col2 FROM tab1 AS cor0
----
340
566
606

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT ALL + COUNT( * ) * - 84 * 7 col0 FROM tab0 AS cor0
----
-1764

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-879
SELECT ALL + COUNT ( * ) * - 84 * 7 col0 FROM tab0 AS cor0
----
-1764

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

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

query I rowsort
SELECT col0 * col2 + col0 + ( 35 ) FROM tab0 AS cor0
----
755
9735
992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-882
SELECT DISTINCT - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT ( - col0 ) <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-882
SELECT DISTINCT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT ( - col0 ) <= ( NULL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-883
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) + - 85 * - 44 AS col2 FROM tab0
----
3737

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) + - 85 * - 44 AS col2 FROM tab0
----
3737

query I rowsort
SELECT ALL + ( - 15 ) AS col0 FROM tab2 AS cor0 WHERE NULL <> col1 * col2 OR 77 * 23 IS NOT NULL
----
-15
-15
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-885
SELECT - col1 * - 95 + - - 46 + + col1 DIV 1 AS col1 FROM tab1 AS cor0
----
1390
4558
526

skipif mysql # not compatible
query I rowsort label-885
SELECT - col1 * - 95 + - - 46 + + col1 / 1 AS col1 FROM tab1 AS cor0
----
1390
4558
526

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 24 IN ( 68 * col0 - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - ( + col1 ) + + col0 AS col2 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query II rowsort label-889
SELECT - COUNT( * ) AS col1, - 81 col2 FROM tab0 AS cor0
----
-3
-81

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT ALL COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 >= ( + col1 )
----
9

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 >= ( + col1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT - + MIN( ALL - 98 ) col2 FROM tab1 cor0
----
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-892
SELECT - + MIN ( ALL - 98 ) col2 FROM tab1 cor0
----
98

query I rowsort
SELECT + - 52 + + col1 FROM tab0 AS cor0
----
-31
-51
29

query I rowsort
SELECT DISTINCT 85 FROM tab2 AS cor0 WHERE NOT ( - ( 78 ) ) = 77
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-895
SELECT DISTINCT - - CAST( - 48 AS SIGNED ) + col0 col0 FROM tab1 AS cor0
----
3
37
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-895
SELECT DISTINCT - - CAST ( - 48 AS INTEGER ) + col0 col0 FROM tab1 AS cor0
----
3
37
43

query III rowsort
SELECT * FROM tab2 WHERE - 24 = - - col1
----

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

skipif mysql # not compatible
query I rowsort label-897
SELECT COUNT ( * ) + + + ( + 14 ) * + 42 FROM tab1
----
591

query I rowsort
SELECT ALL 45 + + 52 + + + col0 FROM tab0
----
112
184
194

query I rowsort
SELECT 86 + col1 FROM tab2
----
137
153
163

query I rowsort
SELECT ALL - ( col1 ) + + col2 * - col0 FROM tab1
----
-4910
-5020
-6235

query I rowsort
SELECT - 13 + + + col1 AS col1 FROM tab1
----
-8
1
34

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT + COUNT( * ) - ( + MAX( ALL col0 ) + - 90 ) FROM tab2 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-902
SELECT + COUNT ( * ) - ( + MAX ( ALL col0 ) + - 90 ) FROM tab2 WHERE - col1 IS NULL
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-904
SELECT DISTINCT - 70 DIV + 83 - - col0 - - + 29 + 43 FROM tab1 AS cor0
----
123
157
163

skipif mysql # not compatible
query I rowsort label-904
SELECT DISTINCT - 70 / + 83 - - col0 - - + 29 + 43 FROM tab1 AS cor0
----
123
157
163

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

query I rowsort
SELECT - col1 * + col2 + - 2 - - - 46 AS col0 FROM tab0 AS cor0
----
-147
-258
-3855

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

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

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

query I rowsort
SELECT + + col2 * + 20 FROM tab1 AS cor0
----
1180
1360
1920

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 40 ) BETWEEN + 84 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT SUM( ALL 30 ) FROM tab1 WHERE NOT - col1 * + col2 + + 21 <> - + col2 / col1
----
NULL

skipif mysql # not compatible
query I rowsort label-911
SELECT SUM ( ALL 30 ) FROM tab1 WHERE NOT - col1 * + col2 + + 21 <> - + col2 / col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-913
SELECT DISTINCT 52 AS col2, COUNT( * ) col1 FROM tab1
----
52
3

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

query II rowsort
SELECT 50 AS col1, col2 * + col1 FROM tab1
----
50
1344
50
295
50
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT DISTINCT SUM( ALL + - col0 ) FROM tab2 WHERE NOT ( + - col1 ) IS NULL
----
-185

skipif mysql # not compatible
query I rowsort label-915
SELECT DISTINCT SUM ( ALL + - col0 ) FROM tab2 WHERE NOT ( + - col1 ) IS NULL
----
-185

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-916
SELECT + + CAST ( + - ( + COUNT ( * ) ) AS INTEGER ) col0 FROM tab0 cor0 WHERE NOT col0 * + - 40 * col0 IS NULL
----
-3

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

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 83 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT COUNT( * ) + - + AVG ( DISTINCT col0 ) AS col0 FROM tab0 WHERE - 63 + - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-919
SELECT COUNT ( * ) + - + AVG ( DISTINCT col0 ) AS col0 FROM tab0 WHERE - 63 + - col2 IS NULL
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-921
SELECT DISTINCT - 39 + - + col2 DIV + col0 FROM tab0 AS cor0
----
-39
-40
-42

skipif mysql # not compatible
query I rowsort label-921
SELECT DISTINCT - 39 + - + col2 / + col0 FROM tab0 AS cor0
----
-39
-40
-42

query I rowsort
SELECT + 1 * - col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-23
-40
-58

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-923
SELECT ALL - + MIN ( + + col1 ) * - MIN ( + col0 ) col0 FROM tab0 AS cor0
----
15

query II rowsort
SELECT DISTINCT 95 - + + col2 AS col1, col1 FROM tab1 AS cor0
----
-1
14
27
47
36
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT + MAX( + - col2 ) * + 93 + + - 86 FROM tab0
----
-1016

skipif mysql # not compatible
query I rowsort label-927
SELECT + MAX ( + - col2 ) * + 93 + + - 86 FROM tab0
----
-1016

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT + 97 IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - 74 * + col1 AS col0 FROM tab2
----
-3774
-4958
-5698

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-932
SELECT DISTINCT col2 + - - col2 AS col0, 13 + - CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab0 WHERE ( + col2 ) < 27
----
20
NULL

skipif mysql # not compatible
query II rowsort label-932
SELECT DISTINCT col2 + - - col2 AS col0, 13 + - CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab0 WHERE ( + col2 ) < 27
----
20
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-933
SELECT 24 - 91 + col2 - 68 + col0 DIV - col1 AS col1, 24 AS col0 FROM tab1
----
-42
24
-68
24
-93
24

skipif mysql # not compatible
query II rowsort label-933
SELECT 24 - 91 + col2 - 68 + col0 / - col1 AS col1, 24 AS col0 FROM tab1
----
-42
24
-68
24
-93
24

query I rowsort
SELECT ALL 56 * + 14 * 55 AS col0 FROM tab1
----
43120
43120
43120

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

skipif mysql # not compatible
query I rowsort label-935
SELECT DISTINCT - 47 / + COUNT ( * ) FROM tab0
----
-15

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 + - ( + + col0 ) ) BETWEEN 52 AND ( - + col0 )
----

query II rowsort
SELECT 20 * - 3 + col1 * + col2, col0 FROM tab2 AS cor0
----
1113
46
3020
64
3826
75

query I rowsort
SELECT + col1 + - - col2 + - col0 * + 52 * - + col1 * - - col0 AS col0 FROM tab0 AS cor0
----
489368
8265379
947828

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT MIN( 89 ) FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-939
SELECT MIN ( 89 ) FROM tab0
----
89

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 23 + - 58 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 * 77 + - + col0 * + + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-941
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 * 77 + - + col0 * + + col1 IS NULL
----
3

query I rowsort
SELECT - ( - 54 ) * + 73 AS col2 FROM tab1 AS cor0
----
3942
3942
3942

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-945
SELECT - + col2 DIV - ( col0 ) FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-945
SELECT - + col2 / - ( col0 ) FROM tab1 cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-946
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT col0 + + CAST( + 75 AS SIGNED ) BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-946
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT col0 + + CAST ( + 75 AS INTEGER ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT COUNT( * ) * MIN( 39 ) FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-947
SELECT COUNT ( * ) * MIN ( 39 ) FROM tab2
----
117

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

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

skipif mysql # not compatible
query I rowsort label-949
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( + CAST ( NULL AS INTEGER ) - col0 + - 50 ) IS NULL
----
0

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE + ( + + 0 ) * 77 IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT - COUNT( * ) + 87 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-953
SELECT - COUNT ( * ) + 87 FROM tab0 AS cor0
----
84

onlyif mysql # DIV for integer division: 
query II rowsort label-954
SELECT DISTINCT + + 33 AS col0, - 42 DIV + 38 + col0 DIV + 89 FROM tab2 AS cor0
----
33
-1

skipif mysql # not compatible
query II rowsort label-954
SELECT DISTINCT + + 33 AS col0, - 42 / + 38 + col0 / + 89 FROM tab2 AS cor0
----
33
-1

query I rowsort
SELECT DISTINCT 20 + + col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 > + col2 * - + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-956
SELECT - col2 DIV col0 * - col0 AS col1 FROM tab1 AS cor0
----
0
0
51

skipif mysql # not compatible
query I rowsort label-956
SELECT - col2 / col0 * - col0 AS col1 FROM tab1 AS cor0
----
0
0
51

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT ALL COUNT( * ) * + 64 AS col2 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-957
SELECT ALL COUNT ( * ) * + 64 AS col2 FROM tab2
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT - MAX( DISTINCT + 84 ) AS col1 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-958
SELECT - MAX ( DISTINCT + 84 ) AS col1 FROM tab2
----
-84

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < col1 * + 55 * 33 * + + col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-960
SELECT + - 45 AS col0, - col1 DIV 50 col2 FROM tab0 AS cor0
----
-45
-1
-45
0
-45
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-960
SELECT + - 45 AS col0, - col1 / 50 col2 FROM tab0 AS cor0
----
-45
-1
-45
0
-45
0

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

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

query I rowsort
SELECT DISTINCT + col0 - - 51 + - col2 FROM tab1 AS cor0
----
6
74
77

query I rowsort
SELECT + 9 * + col0 + 84 - - - col2 * + col0 AS col2 FROM tab2 AS cor0
----
-1900
-3591
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 23 + - 79 col2 FROM tab1 AS cor0
----
1094
1876
2014

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL AND NOT ( NULL ) < + col0
----
0

skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL AND NOT ( NULL ) < + col0
----
0

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

skipif mysql # not compatible
query I rowsort label-966
SELECT 95 + - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
98

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-967
SELECT CAST ( col2 AS INTEGER ) + 97 col2 FROM tab0 WHERE + 48 NOT BETWEEN + col0 AND NULL
----
107
196

query I rowsort
SELECT DISTINCT - col0 - - 5 AS col0 FROM tab1
----
-46
-80
-86

query II rowsort
SELECT + col2 + + col1 AS col1, 51 FROM tab1
----
110
51
115
51
64
51

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-970
SELECT * FROM tab1, tab2 AS cor0 WHERE NOT + - 60 <= CAST( + + 24 AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-970
SELECT * FROM tab1, tab2 AS cor0 WHERE NOT + - 60 <= CAST ( + + 24 AS INTEGER )
----

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

skipif mysql # not compatible
query I rowsort label-971
SELECT ALL SUM ( - ( - col1 ) ) FROM tab1
----
66

query II rowsort
SELECT - ( col1 ) AS col0, + col2 AS col2 FROM tab1
----
-14
96
-47
68
-5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-973
SELECT col2 DIV col0 * + 39 * - col0 * + col1 * + 19 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-973
SELECT col2 / col0 * + 39 * - col0 * + col1 * + 19 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT ALL SUM( DISTINCT col1 ) * - + 52 col0 FROM tab0 AS cor0
----
-5356

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-974
SELECT ALL SUM ( DISTINCT col1 ) * - + 52 col0 FROM tab0 AS cor0
----
-5356

onlyif mysql # DIV for integer division: 
query I rowsort label-975
SELECT DISTINCT + col2 DIV - + 88 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-975
SELECT DISTINCT + col2 / - + 88 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT - col1 AS col1, + col1 * + - col0 FROM tab1
----
-14
-714
-47
-4277
-5
-425

query II rowsort
SELECT + col2, col2 * + col1 AS col0 FROM tab2 AS cor0
----
23
1173
40
3080
58
3886

query I rowsort
SELECT - + 39 AS col2 FROM tab2 cor0
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT DISTINCT - SUM( + + 72 ) AS col1 FROM tab0 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-980
SELECT DISTINCT - SUM ( + + 72 ) AS col1 FROM tab0 AS cor0
----
-216

query I rowsort
SELECT col2 * - 98 FROM tab0 AS cor0
----
-4606
-9702
-980

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-983
SELECT COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-984
SELECT col0 * - CAST( NULL AS SIGNED ) AS col0, 35 AS col1 FROM tab1
----
NULL
35
NULL
35
NULL
35

skipif mysql # not compatible
query II rowsort label-984
SELECT col0 * - CAST ( NULL AS INTEGER ) AS col0, 35 AS col1 FROM tab1
----
NULL
35
NULL
35
NULL
35

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

query II rowsort
SELECT ALL + ( col0 ) AS col0, - 81 FROM tab1
----
51
-81
85
-81
91
-81

query I rowsort
SELECT ALL ( - 93 ) + - + col2 FROM tab2
----
-116
-133
-151

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

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

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

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

query II rowsort
SELECT ALL - - 35 + col2 AS col2, col0 FROM tab0 AS cor0
----
134
97
45
87
82
15

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT DISTINCT ( + MIN( ALL 6 ) ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-991
SELECT DISTINCT ( + MIN ( ALL 6 ) ) FROM tab2
----
6

query I rowsort
SELECT DISTINCT 56 + 0 AS col1 FROM tab0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-993
SELECT DISTINCT - - col0 * + + ( + + CAST( + col2 AS SIGNED ) ) AS col2 FROM tab0 AS cor0 WHERE col0 BETWEEN - + col2 * + col2 AND + ( - - col1 )
----
705

skipif mysql # not compatible
query I rowsort label-993
SELECT DISTINCT - - col0 * + + ( + + CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab0 AS cor0 WHERE col0 BETWEEN - + col2 * + col2 AND + ( - - col1 )
----
705

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

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

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL + - 86 - + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) + + 99 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-997
SELECT ALL + CAST( - + 96 AS SIGNED ) - + ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL + CAST ( - + 96 AS INTEGER ) - + ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-93

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND col1 + - 33
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1000
SELECT DISTINCT col2 - + - col2 DIV col1 DIV + 16 FROM tab0 AS cor0
----
10
105
47

skipif mysql # not compatible
query I rowsort label-1000
SELECT DISTINCT col2 - + - col2 / col1 / + 16 FROM tab0 AS cor0
----
10
105
47

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1002
SELECT ALL + COUNT( * ) DIV - + 58 - + 93 AS col1 FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL + COUNT ( * ) / - + 58 - + 93 AS col1 FROM tab0 AS cor0
----
-93

query I rowsort
SELECT - col0 - - + col2 FROM tab2
----
-17
-23
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-1004
SELECT ALL 82 * - - 24 - + 85 DIV + - 90 AS col0 FROM tab2
----
1968
1968
1968

skipif mysql # not compatible
query I rowsort label-1004
SELECT ALL 82 * - - 24 - + 85 / + - 90 AS col0 FROM tab2
----
1968
1968
1968

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1007
SELECT * FROM tab0 WHERE NOT - - col1 * col2 * - - 88 <> CAST( + col1 AS SIGNED ) * + col0 * + col1 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1007
SELECT * FROM tab0 WHERE NOT - - col1 * col2 * - - 88 <> CAST ( + col1 AS INTEGER ) * + col0 * + col1 + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col0 * + - 88 FROM tab1
----
4488
7480
8008

query I rowsort
SELECT DISTINCT + 91 * - + col1 + + col2 FROM tab2 AS cor0 WHERE + 86 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT ALL - ( - - 95 ) AS col2 FROM tab0 AS cor0
----
-95
-95
-95

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

skipif mysql # not compatible
query II rowsort label-1011
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) FROM tab0 AS cor0
----
NULL
3

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1015
SELECT DISTINCT - 60 DIV + 82 AS col1, - COUNT( * ) FROM tab2 cor0
----
0
-3

skipif mysql # not compatible
query II rowsort label-1015
SELECT DISTINCT - 60 / + 82 AS col1, - COUNT ( * ) FROM tab2 cor0
----
0
-3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1016
SELECT ALL - MIN ( + col2 ) * COUNT ( + 16 ) col0 FROM tab1 AS cor0
----
-177

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1019
SELECT - 21 + - + COUNT( * ) * 94 * + 17 + + COUNT( * ) * + COUNT( - col0 ) + - 80 AS col2, - SUM( DISTINCT - 73 ) * - COUNT( * ) FROM tab0
----
-4886
-219

skipif mysql # not compatible
query II rowsort label-1019
SELECT - 21 + - + COUNT ( * ) * 94 * + 17 + + COUNT ( * ) * + COUNT ( - col0 ) + - 80 AS col2, - SUM ( DISTINCT - 73 ) * - COUNT ( * ) FROM tab0
----
-4886
-219

query III rowsort
SELECT * FROM tab0 WHERE + - col2 - + 93 >= - 49 / + + 28 * + + col0 - col0 + + 42 * col0 * + - 4 * 70
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 + + - ( - ( col0 ) ) + + col0 * col2 AS col1 FROM tab1
----
5043
5159
6347

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= + col1 OR - + col0 NOT BETWEEN ( NULL ) AND + 84 + + col0
----

query I rowsort
SELECT ALL + col2 + + - 38 FROM tab1 AS cor0
----
21
30
58

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

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

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

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

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

query I rowsort
SELECT ALL col2 + + - col0 AS col2 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT + + ( - + 82 ) + + col2 FROM tab2 AS cor0
----
-24
-42
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1031
SELECT DISTINCT + col0 - - col2 AS col0, 70 * col0 * + + 34 - CAST( NULL AS SIGNED ) * - - 93 AS col1 FROM tab1 AS cor0
----
144
NULL
147
NULL
159
NULL

skipif mysql # not compatible
query II rowsort label-1031
SELECT DISTINCT + col0 - - col2 AS col0, 70 * col0 * + + 34 - CAST ( NULL AS INTEGER ) * - - 93 AS col1 FROM tab1 AS cor0
----
144
NULL
147
NULL
159
NULL

query II rowsort
SELECT - 61 AS col2, - 49 FROM tab1
----
-61
-49
-61
-49
-61
-49

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1034
SELECT MAX( DISTINCT - CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1034
SELECT MAX ( DISTINCT - CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1035
SELECT + CAST( col2 AS SIGNED ) * - col2 * - - ( - + col0 ) FROM tab2
----
102400
24334
252300

skipif mysql # not compatible
query I rowsort label-1035
SELECT + CAST ( col2 AS INTEGER ) * - col2 * - - ( - + col0 ) FROM tab2
----
102400
24334
252300

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT 16 * + COUNT( * ) AS col2 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-1036
SELECT 16 * + COUNT ( * ) AS col2 FROM tab0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1037
SELECT + 92 DIV COUNT( * ) * - 4 AS col1 FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-1037
SELECT + 92 / COUNT ( * ) * - 4 AS col1 FROM tab1
----
-120

query II rowsort
SELECT - col1 * - + 9 * + col0 AS col1, - ( - + col1 ) FROM tab2
----
21114
51
44352
77
45225
67

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

skipif mysql # not compatible
query I rowsort label-1039
SELECT - col0 / - CAST ( NULL AS REAL ) * + CAST ( + 59 AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 59 * - col2 > - + col1 + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 59 * + - 39 FROM tab2
----
2301
2301
2301

query II rowsort
SELECT DISTINCT - 46 AS col2, - col1 * - 41 FROM tab0 AS cor0
----
-46
3321
-46
41
-46
861

onlyif mysql # DIV for integer division: 
query I rowsort label-1043
SELECT DISTINCT + col0 DIV + 79 col0 FROM tab0 AS cor0
----
0
1

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT + SUM( ALL + - col1 ) col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1048
SELECT + SUM ( ALL + - col1 ) col1 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT DISTINCT - 41 * - col1 + - - col0 - col2 AS col0 FROM tab2 AS cor0
----
2114
2764
3181

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

skipif mysql # not compatible
query I rowsort label-1050
SELECT + 96 / + 94 AS col1 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= col1 * + 17
----

query II rowsort
SELECT ALL 32 * 22 AS col2, - ( + col0 ) FROM tab2
----
704
-46
704
-64
704
-75

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

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

skipif mysql # not compatible
query I rowsort label-1054
SELECT COUNT ( * ) / MAX ( + 86 ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT + col0 + + 16 FROM tab1
----
101
107
67

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1057
SELECT - CAST( + 71 AS SIGNED ) AS col2, + 90 AS col0 FROM tab2
----
-71
90
-71
90
-71
90

skipif mysql # not compatible
query II rowsort label-1057
SELECT - CAST ( + 71 AS INTEGER ) AS col2, + 90 AS col0 FROM tab2
----
-71
90
-71
90
-71
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1058
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NULL >= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 70 + + + col0 * col1 col1 FROM tab1
----
4347
495
784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + + + 60 col1, 68 * + col2 FROM tab2
----
111
1564
127
3944
137
2720

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT ALL - SUM( ALL col2 ) + + 86 * 18 * + - COUNT( * ) FROM tab1 cor0
----
-4867

skipif mysql # not compatible
query I rowsort label-1061
SELECT ALL - SUM ( ALL col2 ) + + 86 * 18 * + - COUNT ( * ) FROM tab1 cor0
----
-4867

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1062
SELECT DISTINCT + + COUNT( * ) DIV - + 81 - - 10 * + + COUNT( * ) FROM tab0 cor0
----
30

skipif mysql # not compatible
query I rowsort label-1062
SELECT DISTINCT + + COUNT ( * ) / - + 81 - - 10 * + + COUNT ( * ) FROM tab0 cor0
----
30

onlyif mysql # DIV for integer division: 
query II rowsort label-1063
SELECT ALL - ( + - 75 ) + + 55 AS col1, 22 DIV - - col2 AS col2 FROM tab1 AS cor0
----
130
0
130
0
130
0

skipif mysql # not compatible
query II rowsort label-1063
SELECT ALL - ( + - 75 ) + + 55 AS col1, 22 / - - col2 AS col2 FROM tab1 AS cor0
----
130
0
130
0
130
0

query I rowsort
SELECT ALL + + 60 FROM tab2 cor0
----
60
60
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 96 + - col0 col1 FROM tab0 AS cor0
----
-111
-183
-193

query I rowsort
SELECT + col2 * - ( + - 90 ) + - + col1 AS col1 FROM tab0 cor0
----
4149
879
8909

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

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

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NULL OR NOT + ( - 51 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 + 98 FROM tab2 AS cor0
----
144
162
173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 75, col2 col2 FROM tab2 AS cor0
----
75
23
75
40
75
58

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

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

query I rowsort
SELECT ALL - ( + col2 ) + - col1 AS col1 FROM tab2 AS cor0
----
-117
-125
-74

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= ( + col1 ) * + + 85
----

query I rowsort
SELECT DISTINCT - 76 + - col2 FROM tab1 AS cor0
----
-135
-144
-172

query I rowsort
SELECT DISTINCT - col0 - - col1 + - col1 + + 19 FROM tab0 AS cor0
----
-68
-78
4

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

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

query I rowsort
SELECT - + ( + ( + col0 ) ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT DISTINCT - 3 * COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-1080
SELECT DISTINCT - 3 * COUNT ( * ) FROM tab1
----
-9

query II rowsort
SELECT ( - 44 ), + col0 FROM tab2
----
-44
46
-44
64
-44
75

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1083
SELECT col2 * + 40 * - + col1 DIV + col1 AS col1 FROM tab2
----
-1600
-2320
-920

skipif mysql # not compatible
query I rowsort label-1083
SELECT col2 * + 40 * - + col1 / + col1 AS col1 FROM tab2
----
-1600
-2320
-920

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1085
SELECT - + CAST( - + col2 AS SIGNED ), 75 AS col1 FROM tab2 AS cor0
----
23
75
40
75
58
75

skipif mysql # not compatible
query II rowsort label-1085
SELECT - + CAST ( - + col2 AS INTEGER ), 75 AS col1 FROM tab2 AS cor0
----
23
75
40
75
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT DISTINCT COUNT( DISTINCT - 38 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1086
SELECT DISTINCT COUNT ( DISTINCT - 38 ) FROM tab0 AS cor0
----
1

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1089
SELECT ALL 89 DIV - + col2 + col2 FROM tab1 AS cor0
----
58
67
96

skipif mysql # not compatible
query I rowsort label-1089
SELECT ALL 89 / - + col2 + col2 FROM tab1 AS cor0
----
58
67
96

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT DISTINCT - COUNT( * ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1093
SELECT DISTINCT - COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1094
SELECT - - col0 * + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-1094
SELECT - - col0 * + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-1058
-2560
-4350

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1097
SELECT - col1 * col1 FROM tab2 WHERE - col1 NOT IN ( - col2 * col1 + - 14, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1097
SELECT - col1 * col1 FROM tab2 WHERE - col1 NOT IN ( - col2 * col1 + - 14, - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col0 ) NOT BETWEEN ( NULL ) AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + - ( + + col1 ) * + - col1 * - col0 + + + col2 FROM tab0
----
-38347
-98321
101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 + col0 col1 FROM tab2
----
1219
3144
3961

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT DISTINCT + ( + - SUM( ALL + - col0 ) ) + + 3 FROM tab0
----
202

skipif mysql # not compatible
query I rowsort label-1101
SELECT DISTINCT + ( + - SUM ( ALL + - col0 ) ) + + 3 FROM tab0
----
202

query I rowsort
SELECT col2 * col1 + col0 * - - 79 * - col0 AS col0 FROM tab0
----
-13968
-597741
-743212

query I rowsort
SELECT col0 * - col2 + - 92 + - col0 * + col2 + col2 * + 75 FROM tab0
----
-1082
-11873
2023

query I rowsort
SELECT - 68 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT - - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-1105
SELECT - - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
9

query I rowsort
SELECT + 72 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

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

query I rowsort
SELECT + - col0 * - 36 FROM tab0 AS cor0
----
3132
3492
540

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

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

query I rowsort
SELECT + col1 * - col1 + + col2 FROM tab1 WHERE NOT NULL BETWEEN + + 80 AND + + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1111
SELECT DISTINCT ( CAST( COUNT( * ) AS SIGNED ) ) * + 74 AS col1 FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-1111
SELECT DISTINCT ( CAST ( COUNT ( * ) AS INTEGER ) ) * + 74 AS col1 FROM tab2
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT DISTINCT MAX( ALL - 13 ) FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-1112
SELECT DISTINCT MAX ( ALL - 13 ) FROM tab1
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-1113
SELECT ALL 34 DIV - col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1113
SELECT ALL 34 / - col1 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT COUNT( * ) FROM tab0 WHERE NOT ( - col1 / - 84 * - col1 ) BETWEEN 31 AND - col1
----
3

skipif mysql # not compatible
query I rowsort label-1114
SELECT COUNT ( * ) FROM tab0 WHERE NOT ( - col1 / - 84 * - col1 ) BETWEEN 31 AND - col1
----
3

query I rowsort
SELECT ( + 37 ) AS col0 FROM tab2
----
37
37
37

query II rowsort
SELECT ALL col0, - 28 AS col2 FROM tab2
----
46
-28
64
-28
75
-28

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 15 + + + 18 * - 9 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 19 AS col0 FROM tab2 WHERE NOT NULL <= col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1119
SELECT 24 * col0 DIV + - col1 FROM tab0
----
-2328
-4
-99

skipif mysql # not compatible
query I rowsort label-1119
SELECT 24 * col0 / + - col1 FROM tab0
----
-2328
-4
-99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1121
SELECT - col1 DIV 65 FROM tab1 cor0 WHERE NOT ( NULL IS NOT NULL )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1121
SELECT - col1 / 65 FROM tab1 cor0 WHERE NOT ( NULL IS NOT NULL )
----
0
0
0

query I rowsort
SELECT + col1 * + - 54 AS col0 FROM tab0 cor0
----
-1134
-4374
-54

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 20 BETWEEN 17 AND - + col2 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT - MIN( ALL + - col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1126
SELECT - MIN ( ALL + - col2 ) AS col0 FROM tab0
----
99

query III rowsort
SELECT * FROM tab1 WHERE 66 IN ( + - col1, - col0 * - col2 )
----

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

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

query I rowsort
SELECT DISTINCT + 94 + col2 AS col2 FROM tab2 AS cor0
----
117
134
152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 * col1 col1 FROM tab2 AS cor0
----
-2397
-3149
-3619

onlyif mysql # DIV for integer division: 
query I rowsort label-1131
SELECT ALL 50 + - ( - - 10 ) DIV + ( col0 ) + col2 FROM tab1 AS cor0
----
109
118
146

skipif mysql # not compatible
query I rowsort label-1131
SELECT ALL 50 + - ( - - 10 ) / + ( col0 ) + col2 FROM tab1 AS cor0
----
109
118
146

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

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

query I rowsort
SELECT ALL 25 * 4 * + col2 FROM tab1
----
5900
6800
9600

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

query I rowsort
SELECT DISTINCT 37 + - col0 AS col2 FROM tab2
----
-27
-38
-9

query I rowsort
SELECT + col0 * + - ( + 20 ) - col0 AS col2 FROM tab2
----
-1344
-1575
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT DISTINCT 69 * - SUM( ALL + 83 ) AS col0 FROM tab1, tab2 cor0
----
-51543

skipif mysql # not compatible
query I rowsort label-1137
SELECT DISTINCT 69 * - SUM ( ALL + 83 ) AS col0 FROM tab1, tab2 cor0
----
-51543

query I rowsort
SELECT + 21 + - - col2 AS col2 FROM tab2 AS cor0
----
44
61
79

query I rowsort
SELECT - - col2 + - ( 74 ) FROM tab1 AS cor0
----
-15
-6
22

query I rowsort
SELECT + col1 + + + 86 + + col1 * + col2 AS col0 FROM tab0 AS cor0
----
186
317
3974

query I rowsort
SELECT DISTINCT 1 * + col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT ALL + COUNT( * ) * - 95 AS col1 FROM tab2
----
-285

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL + COUNT ( * ) * - 95 AS col1 FROM tab2
----
-285

query I rowsort
SELECT - col2 AS col0 FROM tab2 cor0 WHERE NOT 75 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT ALL + 51 * - COUNT( + 26 ) * - SUM( + 6 ) - + - MAX( col0 ) FROM tab1 AS cor0
----
2845

skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL + 51 * - COUNT ( + 26 ) * - SUM ( + 6 ) - + - MAX ( col0 ) FROM tab1 AS cor0
----
2845

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT - MAX( - 85 ) FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-1145
SELECT - MAX ( - 85 ) FROM tab0 AS cor0
----
85

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND - col0
----

query II rowsort
SELECT DISTINCT col1, - col0 AS col0 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1150
SELECT col1 AS col2, - CAST( + 99 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
-99
21
-99
81
-99

skipif mysql # not compatible
query II rowsort label-1150
SELECT col1 AS col2, - CAST ( + 99 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
-99
21
-99
81
-99

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 81 <> NULL
----

query I rowsort
SELECT DISTINCT - col0 + - - col0 * 27 * + col1 AS col1 FROM tab0
----
2522
32790
49242

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

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

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

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

query I rowsort
SELECT - - ( col0 ) + - + col2 * - - col1 AS col1 FROM tab1 cor0
----
-1293
-210
-3105

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 80 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + + 56 AS col1 FROM tab0 AS cor0
----
-43
46
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1159
SELECT + - CAST( + col1 AS SIGNED ) * + - col1 + col0 * + col1 AS col1 FROM tab0 AS cor0
----
2268
7776
98

skipif mysql # not compatible
query I rowsort label-1159
SELECT + - CAST ( + col1 AS INTEGER ) * + - col1 + col0 * + col1 AS col1 FROM tab0 AS cor0
----
2268
7776
98

query I rowsort
SELECT DISTINCT + col0 * + + ( + - col2 ) - col1 FROM tab2 AS cor0
----
-1109
-2637
-4417

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1161
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) < - col2 * + CAST( NULL AS DECIMAL ) - + col1
----

skipif mysql # not compatible
query III rowsort label-1161
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) < - col2 * + CAST ( NULL AS REAL ) - + col1
----

query I rowsort
SELECT col2 AS col1 FROM tab2 cor0 WHERE - col2 - - - 19 IS NOT NULL
----
23
40
58

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

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

query I rowsort
SELECT ALL - col1 * - col1 - - + col1 FROM tab1 AS cor0
----
210
2256
30

query I rowsort
SELECT ALL - 53 FROM tab0 AS cor0 WHERE NOT - col0 * 33 IS NULL
----
-53
-53
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1166
SELECT SUM( DISTINCT col0 ) + + 88 DIV - + 66 + + 74 AS col1 FROM tab1 AS cor0
----
300

skipif mysql # not compatible
query I rowsort label-1166
SELECT SUM ( DISTINCT col0 ) + + 88 / - + 66 + + 74 AS col1 FROM tab1 AS cor0
----
300

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1168
SELECT ALL col0 * + CAST( + 61 AS SIGNED ) + - - col1 AS col2 FROM tab2
----
2857
3981
4642

skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL col0 * + CAST ( + 61 AS INTEGER ) + - - col1 AS col2 FROM tab2
----
2857
3981
4642

onlyif mysql # DIV for integer division: 
query I rowsort label-1169
SELECT col0 DIV + - 82 + + col2 FROM tab1
----
58
67
96

skipif mysql # not compatible
query I rowsort label-1169
SELECT col0 / + - 82 + + col2 FROM tab1
----
58
67
96

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + ( - - 33 ) + col0 ) NOT BETWEEN NULL AND + ( - col2 ) * - 10 * + ( col1 ) AND NOT NULL IS NULL
----

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

query I rowsort
SELECT + 4 - - 21 FROM tab2 AS cor0 WHERE + col0 < 6
----

query I rowsort
SELECT ALL - col2 - - 81 FROM tab0 AS cor0
----
-18
34
71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT COUNT( ALL - 11 ) * + SUM( col0 ) AS col2 FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-1175
SELECT COUNT ( ALL - 11 ) * + SUM ( col0 ) AS col2 FROM tab2
----
555

query I rowsort
SELECT DISTINCT + 62 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
62

query I rowsort
SELECT ALL - col1 * - 55 AS col1 FROM tab0
----
1155
4455
55

onlyif mysql # DIV for integer division: 
query I rowsort label-1178
SELECT DISTINCT - 53 DIV + col0 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1178
SELECT DISTINCT - 53 / + col0 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT DISTINCT - 38 * - 61 FROM tab2 AS cor0
----
2318

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

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

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

query I rowsort
SELECT ALL + 49 * + 75 FROM tab1 AS cor0
----
3675
3675
3675

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

skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT + + CAST ( - COUNT ( * ) AS INTEGER ) * + - 69 AS col2 FROM tab1 AS cor0
----
207

query II rowsort
SELECT ALL 28 AS col2, + ( - col1 ) AS col1 FROM tab2 cor0
----
28
-51
28
-67
28
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-1185
SELECT + ( - - col0 ) DIV + col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-1185
SELECT + ( - - col0 ) / + col2 FROM tab2 AS cor0
----
1
1
2

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1187
SELECT + 85 AS col0, + 22 + COUNT( * ) AS col1 FROM tab1
----
85
25

skipif mysql # not compatible
query II rowsort label-1187
SELECT + 85 AS col0, + 22 + COUNT ( * ) AS col1 FROM tab1
----
85
25

onlyif mysql # DIV for integer division: 
query I rowsort label-1188
SELECT ALL 26 DIV + - col1 AS col1 FROM tab0
----
-1
-26
0

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL 26 / + - col1 AS col1 FROM tab0
----
-1
-26
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - + ( - - col1 ) col0 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT ALL + 0 + + col1 * + col1 * 8 AS col1 FROM tab0 AS cor0
----
3528
52488
8

query I rowsort
SELECT + 79 * + col1 + + - 87 FROM tab1 AS cor0
----
1019
308
3626

onlyif mysql # DIV for integer division: 
query I rowsort label-1192
SELECT - col2 DIV col1 + - col2 - 43 FROM tab2 AS cor0
----
-101
-66
-83

skipif mysql # not compatible
query I rowsort label-1192
SELECT - col2 / col1 + - col2 - 43 FROM tab2 AS cor0
----
-101
-66
-83

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

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

query I rowsort
SELECT ALL col2 + - 4 AS col1 FROM tab0
----
43
6
95

query II rowsort
SELECT ALL col1 + col0, - 30 * col1 AS col1 FROM tab0
----
108
-630
96
-2430
98
-30

query I rowsort
SELECT ALL - 55 + + 3 + - col0 FROM tab1 cor0
----
-103
-137
-143

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( - 77 ) AND - col2 + + col1
----

query II rowsort
SELECT - - col2 * - col1, + col2 AS col2 FROM tab2 AS cor0
----
-1173
23
-3080
40
-3886
58

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1200
SELECT ALL + 72 * - CAST( NULL AS DECIMAL ) - - 71 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL + 72 * - CAST ( NULL AS REAL ) - - 71 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1201
SELECT DISTINCT + COUNT ( - col2 ) col1 FROM tab1
----
3

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

query I rowsort
SELECT - 44 - col0 AS col1 FROM tab1
----
-129
-135
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-1204
SELECT col1 DIV col1 - ( col0 ) FROM tab1
----
-50
-84
-90

skipif mysql # not compatible
query I rowsort label-1204
SELECT col1 / col1 - ( col0 ) FROM tab1
----
-50
-84
-90

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

skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT MAX ( 83 ) AS col1 FROM tab2
----
83

query I rowsort
SELECT - col1 - + col0 - - 1 - + 51 - col2 FROM tab2
----
-170
-231
-250

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

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

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

query II rowsort
SELECT - 16 AS col0, - col1 AS col2 FROM tab2 AS cor0
----
-16
-51
-16
-67
-16
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT + MIN( - 97 ) AS col1 FROM tab2 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1210
SELECT + MIN ( - 97 ) AS col1 FROM tab2 AS cor0
----
-97

query II rowsort
SELECT ALL 36 AS col2, col2 AS col1 FROM tab2 AS cor0
----
36
23
36
40
36
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT DISTINCT COUNT( * ) * - 19 + + MIN( - + col1 ) AS col0 FROM tab2 cor0 WHERE NULL >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT COUNT ( * ) * - 19 + + MIN ( - + col1 ) AS col0 FROM tab2 cor0 WHERE NULL >= ( NULL )
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1213
SELECT - COUNT ( * ) * - COUNT ( * ) col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
81

query II rowsort
SELECT col0 * col1, 18 AS col2 FROM tab0
----
1215
18
1827
18
97
18

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

query I rowsort
SELECT DISTINCT - col0 * + + ( + - 10 ) AS col0 FROM tab0 AS cor0
----
150
870
970

query II rowsort
SELECT - col1 * + col1 * - ( + col1 ) AS col2, + col2 AS col2 FROM tab0 AS cor0
----
1
99
531441
47
9261
10

query I rowsort
SELECT col2 FROM tab0 WHERE NOT + ( col1 ) <> - + col2
----

query I rowsort
SELECT DISTINCT + 24 AS col0 FROM tab2 WHERE - - 77 BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT + col0 * - + col1 * + + col0 AS col0, col1 FROM tab1
----
-36125
5
-36414
14
-389207
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT ALL + ( + COUNT( * ) ) + COUNT( + + col0 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL + ( + COUNT ( * ) ) + COUNT ( + + col0 ) FROM tab0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1223
SELECT ALL - - col1 DIV col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1
1
2

skipif mysql # not compatible
query I rowsort label-1223
SELECT ALL - - col1 / col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1
1
2

query I rowsort
SELECT col2 + - ( - + 55 ) AS col2 FROM tab1
----
114
123
151

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

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

query I rowsort
SELECT DISTINCT - col2 * col0 - - col1 + - - col1 AS col0 FROM tab0 AS cor0
----
-543
-828
-9601

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1227
SELECT DISTINCT - 77 + - col0, 51 / - col0 FROM tab0 AS cor0 WHERE 72 <> + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query II rowsort label-1227
SELECT DISTINCT - 77 + - col0, 51 / - col0 FROM tab0 AS cor0 WHERE 72 <> + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1228
SELECT ALL - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT DISTINCT - col1 * col2 FROM tab2 WHERE NULL < NULL
----

query II rowsort
SELECT col0, + 29 FROM tab2
----
46
29
64
29
75
29

query I rowsort
SELECT - col0 - - 69 AS col0 FROM tab1 AS cor0
----
-16
-22
18

query II rowsort
SELECT + 2 + - - col1 AS col2, col2 * - 70 FROM tab0 AS cor0
----
23
-700
3
-6930
83
-3290

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT ALL 70 - COUNT( * ) AS col0 FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL 70 - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT ALL - + COUNT( * ) - - 83 AS col0 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-1235
SELECT ALL - + COUNT ( * ) - - 83 AS col0 FROM tab1 AS cor0
----
80

query I rowsort
SELECT ALL col0 + col2 * + col2 * + 74 FROM tab1 AS cor0
----
257679
342267
682035

query I rowsort
SELECT - + 49 + - col0 FROM tab0 AS cor0
----
-136
-146
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - col2 * ( + col2 ) col2 FROM tab1 AS cor0
----
-3540
-4692
-9312

query III rowsort
SELECT * FROM tab0 cor0 WHERE 8 * + - col1 * + 9 * - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + + col1 - - col0 AS col0 FROM tab0 AS cor0
----
108
96
98

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1242
SELECT ALL COUNT( * ) DIV 10 * + SUM( + 35 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1242
SELECT ALL COUNT ( * ) / 10 * + SUM ( + 35 ) AS col1 FROM tab0
----
0

query I rowsort
SELECT - col1 * - ( + ( 43 ) ) AS col2 FROM tab0
----
3483
43
903

query I rowsort
SELECT + col2 * - - ( + 76 ) AS col1 FROM tab2
----
1748
3040
4408

query II rowsort
SELECT + col2 * + + 13 AS col2, - col0 + + 23 * + 19 FROM tab1
----
1248
386
767
352
884
346

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT DISTINCT + SUM( DISTINCT + 25 ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-1246
SELECT DISTINCT + SUM ( DISTINCT + 25 ) FROM tab2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT ( + COUNT( * ) ) * - 9 AS col0 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-1247
SELECT ( + COUNT ( * ) ) * - 9 AS col0 FROM tab2
----
-27

query I rowsort
SELECT ALL + ( col2 ) AS col0 FROM tab1 AS cor0 WHERE col2 <= - 48
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1249
SELECT * FROM tab1 WHERE NOT + col1 NOT IN ( - - 47, CAST( NULL AS SIGNED ), - col1 )
----
91
47
68

skipif mysql # not compatible
query III rowsort label-1249
SELECT * FROM tab1 WHERE NOT + col1 NOT IN ( - - 47, CAST ( NULL AS INTEGER ), - col1 )
----
91
47
68

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

skipif mysql # not compatible
query I rowsort label-1250
SELECT DISTINCT + CAST ( + COUNT ( * ) AS REAL ) * + 59 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT ALL MIN( DISTINCT + - 91 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL MIN ( DISTINCT + - 91 ) FROM tab1
----
-91

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

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

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

skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1256
SELECT col2 DIV col1 * + 68 * - col0 * + - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1256
SELECT col2 / col1 * + 68 * - col0 * + - col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT MAX( + - 80 ) AS col1 FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-1257
SELECT MAX ( + - 80 ) AS col1 FROM tab1
----
-80

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

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

query III rowsort
SELECT * FROM tab2 WHERE 91 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 * - col2 col2 FROM tab2
----
-1771
-3080
-4466

query I rowsort
SELECT ALL - 98 * col1 + - col2 FROM tab0
----
-197
-2068
-7985

query I rowsort
SELECT col0 + + - col2 AS col1 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT DISTINCT + ( + 11 ) FROM tab0, tab0 AS cor0
----
11

query I rowsort
SELECT DISTINCT - ( col0 ) * col1 * - col0 FROM tab0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT ALL - + 50 + - - ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN - 35 AND NULL
----
-50

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL - + 50 + - - ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN - 35 AND NULL
----
-50

query I rowsort
SELECT DISTINCT - + 61 + + col1 FROM tab1 cor0
----
-14
-47
-56

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 19 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 - + + 34 AS col1 FROM tab2 AS cor0
----
12
30
41

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 26 > - 68 + + - col0 + - col2 * + col0 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col0 FROM tab2 AS cor0 WHERE - 48 = col2 * + - 23
----

query I rowsort
SELECT 63 - + col1 FROM tab0 AS cor0
----
-18
42
62

query I rowsort
SELECT ALL + col2 * ( + col0 ) - - - 6 AS col2 FROM tab1 AS cor0
----
4890
5009
6182

query I rowsort
SELECT 98 * col0 AS col1 FROM tab2 cor0
----
4508
6272
7350

query I rowsort
SELECT + 32 * - 4 FROM tab2 AS cor0
----
-128
-128
-128

query I rowsort
SELECT ALL 40 * - col1 AS col1 FROM tab0
----
-3240
-40
-840

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT - COUNT( * ) * - 35 AS col0 FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-1277
SELECT - COUNT ( * ) * - 35 AS col0 FROM tab2
----
105

query I rowsort
SELECT ALL 6 * - ( col0 ) AS col1 FROM tab0
----
-522
-582
-90

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

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

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

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

query II rowsort
SELECT DISTINCT - ( col1 ), - ( - col0 ) - - 68 * - ( col2 ) AS col1 FROM tab2
----
-51
-1518
-67
-3869
-77
-2656

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

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

query I rowsort
SELECT + 77 * + col0 AS col2 FROM tab2
----
3542
4928
5775

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

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

query I rowsort
SELECT DISTINCT + ( - 62 ) AS col0 FROM tab2 cor0
----
-62

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1290
SELECT col2 * + - col0 + - - 72 AS col2, - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
-4824
NULL
-4943
NULL
-6116
NULL

skipif mysql # not compatible
query II rowsort label-1290
SELECT col2 * + - col0 + - - 72 AS col2, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
-4824
NULL
-4943
NULL
-6116
NULL

query I rowsort
SELECT DISTINCT + 67 * + - col1 FROM tab0
----
-1407
-5427
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-1292
SELECT - 48 DIV + + 44 + - col2 col0 FROM tab0
----
-100
-11
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1292
SELECT - 48 / + + 44 + - col2 col0 FROM tab0
----
-100
-11
-48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT 81 * - - 0 + 52 + - + COUNT( * ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-1294
SELECT 81 * - - 0 + 52 + - + COUNT ( * ) FROM tab2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT + 10 + + COUNT( * ) AS col2 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-1295
SELECT + 10 + + COUNT ( * ) AS col2 FROM tab0
----
13

query I rowsort
SELECT + col2 * col2 + - ( col0 ) AS col0 FROM tab2 AS cor0
----
1536
3289
483

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT DISTINCT + COUNT( - 44 ) - + - 94 col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1297
SELECT DISTINCT + COUNT ( - 44 ) - + - 94 col1 FROM tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT + col1 + col0 * + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
2615
7230
8328

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1301
SELECT + 4 DIV - col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1301
SELECT + 4 / - col1 AS col1 FROM tab2
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1303
SELECT - 94 DIV col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1303
SELECT - 94 / col2 FROM tab1
----
-1
-1
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT 15 * SUM( - col1 ) FROM tab0
----
-1545

skipif mysql # not compatible
query I rowsort label-1308
SELECT 15 * SUM ( - col1 ) FROM tab0
----
-1545

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT col1 + 72 IS NULL
----
-23
-40
-58

query I rowsort
SELECT 31 FROM tab1 WHERE - col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 4 <> col0 + 4
----

query I rowsort
SELECT DISTINCT + 46 * 90 FROM tab1 WHERE NOT NULL IS NOT NULL
----
4140

query I rowsort
SELECT - 5 - col1 AS col1 FROM tab2 WHERE ( + 78 * - col1 - + 63 ) IS NOT NULL
----
-56
-72
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT + MIN( - ( col2 ) ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-1317
SELECT + MIN ( - ( col2 ) ) AS col2 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT ALL 56 - - MIN( + 84 ) FROM tab2
----
140

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL 56 - - MIN ( + 84 ) FROM tab2
----
140

query I rowsort
SELECT - 67 + - col1 AS col0 FROM tab2
----
-118
-134
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT - COUNT( * ) + MIN( DISTINCT + col1 ) AS col0 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-1320
SELECT - COUNT ( * ) + MIN ( DISTINCT + col1 ) AS col0 FROM tab0
----
-2

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 <= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT MIN( ( + col0 ) ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-1322
SELECT MIN ( ( + col0 ) ) AS col2 FROM tab1
----
51

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

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 AS cor0 WHERE col0 <= ( + col0 )
----
46
64
75

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

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

skipif mysql # not compatible
query I rowsort label-1326
SELECT SUM ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
223

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

query I rowsort
SELECT ALL ( + col0 ) + ( 72 ) FROM tab0 WHERE NULL IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT DISTINCT + ( + MIN( 92 ) ) * 25 AS col0 FROM tab0 cor0
----
2300

skipif mysql # not compatible
query I rowsort label-1331
SELECT DISTINCT + ( + MIN ( 92 ) ) * 25 AS col0 FROM tab0 cor0
----
2300

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 2 ) >= col0 / 51
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 51 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) < ( col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 BETWEEN + col0 AND 96
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT + + MIN( ALL col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-1338
SELECT + + MIN ( ALL col2 ) AS col0 FROM tab0 AS cor0
----
10

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1341
SELECT DISTINCT + COUNT( * ) col0 FROM tab0 WHERE NOT ( NULL ) >= - ( ( 82 ) ) * + col0 OR NOT CAST( - col0 AS SIGNED ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1341
SELECT DISTINCT + COUNT ( * ) col0 FROM tab0 WHERE NOT ( NULL ) >= - ( ( 82 ) ) * + col0 OR NOT CAST ( - col0 AS INTEGER ) BETWEEN NULL AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 * - + col2 col2 FROM tab2
----
-1560
-2262
-897

query I rowsort
SELECT - ( + col2 ) * - col2 FROM tab0
----
100
2209
9801

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1346
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE col0 NOT IN ( - col0 * + CAST( + ( col2 ) AS SIGNED ) )
----
3

skipif mysql # not compatible
query I rowsort label-1346
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE col0 NOT IN ( - col0 * + CAST ( + ( col2 ) AS INTEGER ) )
----
3

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1348
SELECT DISTINCT + 61 DIV - - 11 - - 23 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-1348
SELECT DISTINCT + 61 / - - 11 - - 23 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
74

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 54 <> - 74
----

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

query I rowsort
SELECT DISTINCT ( + - 88 ) AS col0 FROM tab2, tab2 AS cor0
----
-88

query I rowsort
SELECT 86 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 90 / - 3 ) IS NOT NULL
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query II rowsort
SELECT ALL + col1 AS col1, col1 * - col1 - + col0 * ( - col1 * + 50 ) FROM tab0 AS cor0
----
1
4849
21
90909
81
54189

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT ALL + COUNT( * ) * + + ( + 20 ) FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-1355
SELECT ALL + COUNT ( * ) * + + ( + 20 ) FROM tab2 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT 41 * - SUM( ALL - + col1 ) AS col1 FROM tab1 AS cor0
----
2706

skipif mysql # not compatible
query I rowsort label-1356
SELECT 41 * - SUM ( ALL - + col1 ) AS col1 FROM tab1 AS cor0
----
2706

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1357
SELECT - CAST( + col0 AS SIGNED ) + + 45 FROM tab2 AS cor0 WHERE NOT CAST( - + 98 AS SIGNED ) + col0 NOT IN ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-1357
SELECT - CAST ( + col0 AS INTEGER ) + + 45 FROM tab2 AS cor0 WHERE NOT CAST ( - + 98 AS INTEGER ) + col0 NOT IN ( + col2 )
----

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * - - ( ( col1 ) ) - 69 = - 35
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1361
SELECT * FROM tab1 WHERE NOT ( 85 + + + col1 + CAST( NULL AS SIGNED ) * 56 ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-1361
SELECT * FROM tab1 WHERE NOT ( 85 + + + col1 + CAST ( NULL AS INTEGER ) * 56 ) <> NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1363
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NOT + col2 * CAST( 65 AS SIGNED ) - - col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1363
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NOT + col2 * CAST ( 65 AS INTEGER ) - - col2 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT COUNT( * ) FROM tab1 WHERE NOT col1 * col1 + 76 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1364
SELECT COUNT ( * ) FROM tab1 WHERE NOT col1 * col1 + 76 >= NULL
----
0

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 16 NOT IN ( + col1 * + 40 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1367
SELECT ALL - - MAX( - col0 ) DIV + + COUNT( * ) FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL - - MAX ( - col0 ) / + + COUNT ( * ) FROM tab0 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * + 58, 4 * - col1 col0 FROM tab2 AS cor0
----
2668
-204
3712
-308
4350
-268

query I rowsort
SELECT DISTINCT - 66 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-66

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col2 <= - ( + 75 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + 23 ) * + 36 FROM tab0 AS cor0
----
828
828
828

query I rowsort
SELECT DISTINCT + 7 * - 36 + + - col0 + col1 + col1 * - 72 AS col0 FROM tab2 AS cor0
----
-3919
-5084
-5783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * 0 * + 97 col2, col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1374
SELECT + CAST( NULL AS SIGNED ) AS col2, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-1374
SELECT + CAST ( NULL AS INTEGER ) AS col2, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT - + 99 FROM tab2 cor0 WHERE 4 / - + col2 IS NOT NULL
----
-99
-99
-99

query III rowsort
SELECT * FROM tab2 cor0 WHERE 97 < - - col2 * + - col0 - - + col2 / - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 col2 FROM tab1 WHERE NOT ( + col2 ) + - - col2 <= NULL
----

query I rowsort
SELECT ALL + 60 + - - col0 AS col1 FROM tab2
----
106
124
135

query I rowsort
SELECT col2 + ( - + col2 ) FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE - 35 * col2 >= ( - + col1 )
----

query I rowsort
SELECT 49 + 18 AS col0 FROM tab2
----
67
67
67

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

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( - col1 * - + 57 ) < col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, col2 AS col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / - col0 - 35 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT - - 97 - - ( - 10 ) AS col2 FROM tab0 AS cor0
----
87

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

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

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL ( - MAX ( ALL col2 ) ) AS col0 FROM tab2
----
-58

query I rowsort
SELECT col0 * + + 92 * - col1 AS col2 FROM tab2 AS cor0
----
-215832
-453376
-462300

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

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

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

query I rowsort
SELECT ALL + 94 FROM tab0 WHERE + 33 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT - ( + 16 ) * + 53, col2 FROM tab0
----
-848
10
-848
47
-848
99

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

query II rowsort
SELECT + 62, + col2 FROM tab2
----
62
23
62
40
62
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1398
SELECT DISTINCT + - col1 FROM tab1 WHERE NOT + + 4 + - + col2 >= + - CAST( + col1 AS SIGNED )
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1398
SELECT DISTINCT + - col1 FROM tab1 WHERE NOT + + 4 + - + col2 >= + - CAST ( + col1 AS INTEGER )
----
-14
-47
-5

query I rowsort
SELECT DISTINCT col1 * 0 AS col0 FROM tab0
----
0

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

skipif mysql # not compatible
query I rowsort label-1400
SELECT MAX ( ALL + + col0 ) AS col1 FROM tab2
----
75

query I rowsort
SELECT ALL col0 + + + col1 * - 57 FROM tab0
----
-1110
-4602
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT - COUNT( * ) * 14 AS col1 FROM tab0 WHERE NOT 21 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1402
SELECT - COUNT ( * ) * 14 AS col1 FROM tab0 WHERE NOT 21 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1403
SELECT ALL - 23 DIV + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1403
SELECT ALL - 23 / + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + + col2 + + col1 + - + col0 FROM tab2 AS cor0
----
28
50
53

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

query II rowsort
SELECT ALL + col2, 87 * - - col0 FROM tab2 cor0
----
23
4002
40
5568
58
6525

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1407
SELECT ALL col2 AS col1, - 40 * - CAST( NULL AS DECIMAL ) + col1 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-1407
SELECT ALL col2 AS col1, - 40 * - CAST ( NULL AS REAL ) + col1 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT DISTINCT - - 62 * col2 FROM tab1 AS cor0
----
3658
4216
5952

query I rowsort
SELECT 55 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT DISTINCT COUNT( * ) + 20 AS col0 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-1410
SELECT DISTINCT COUNT ( * ) + 20 AS col0 FROM tab1
----
23

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL + col0 + - - 36 AS col1 FROM tab0 AS cor0
----
123
133
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT ALL + COUNT( * ) - - + 41 + 11 FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL + COUNT ( * ) - - + 41 + 11 FROM tab1 AS cor0
----
55

query I rowsort
SELECT ALL + + col0 * - col0 + - ( - col2 ) AS col1 FROM tab0 AS cor0
----
-178
-7559
-9310

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

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

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

query I rowsort
SELECT - 60 * + 51 FROM tab2
----
-3060
-3060
-3060

query I rowsort
SELECT ALL col0 * + 69 FROM tab2
----
3174
4416
5175

query I rowsort
SELECT ALL - 17 + col2 FROM tab0
----
-7
30
82

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1423
SELECT DISTINCT - col2 DIV 99 AS col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1423
SELECT DISTINCT - col2 / 99 AS col0 FROM tab0
----
-1
0

query I rowsort
SELECT DISTINCT - + col0 + - col0 - + col2 AS col1 FROM tab1 cor0
----
-198
-229
-250

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT DISTINCT + ( COUNT( ALL + 88 ) ) * + COUNT( * ) * - 83 AS col1 FROM tab2 cor0
----
-747

skipif mysql # not compatible
query I rowsort label-1425
SELECT DISTINCT + ( COUNT ( ALL + 88 ) ) * + COUNT ( * ) * - 83 AS col1 FROM tab2 cor0
----
-747

query I rowsort
SELECT ALL + 84 + - 69 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1427
SELECT + + CAST( 70 AS SIGNED ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

skipif mysql # not compatible
query I rowsort label-1427
SELECT + + CAST ( 70 AS INTEGER ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

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

skipif mysql # not compatible
query I rowsort label-1428
SELECT DISTINCT - 27 / + col0 AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT - - ( + COUNT( * ) ) * 66 AS col0 FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-1429
SELECT - - ( + COUNT ( * ) ) * 66 AS col0 FROM tab2 AS cor0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT DISTINCT MIN( DISTINCT - ( + col1 ) ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-1430
SELECT DISTINCT MIN ( DISTINCT - ( + col1 ) ) AS col0 FROM tab2 AS cor0
----
-77

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

query I rowsort
SELECT - - 99 FROM tab0 cor0
----
99
99
99

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT + ( - - col0 ) * col2 * - 69 * - 44 / - col0 + col1 / col1 * - + col2 BETWEEN NULL AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1434
SELECT col0 DIV col1 + col0 AS col2 FROM tab1 cor0
----
102
54
92

skipif mysql # not compatible
query I rowsort label-1434
SELECT col0 / col1 + col0 AS col2 FROM tab1 cor0
----
102
54
92

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

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

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

query I rowsort
SELECT DISTINCT 65 * - + col1 * - - col2 + + ( + - col0 ) FROM tab0
----
-13737
-247470
-6532

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 7 ) col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT + col2 + + - col2 + - + col2 AS col1 FROM tab2
----
-23
-40
-58

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

query I rowsort
SELECT DISTINCT + col2 + - + col1 + col0 AS col1 FROM tab1
----
112
133
139

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

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

query I rowsort
SELECT DISTINCT + 73 AS col1 FROM tab1 cor0 WHERE NOT - ( 86 ) IS NULL
----
73

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

query II rowsort
SELECT ALL - + 41, + 3 + + 58 AS col2 FROM tab0 WHERE NOT - + col2 < ( - col0 )
----
-41
61

query I rowsort
SELECT - 55 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1448
SELECT + + col1, col0 * + - col1 + col2 + CAST( - - col2 AS SIGNED ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-1448
SELECT + + col1, col0 * + - col1 + col2 + CAST ( - - col2 AS INTEGER ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1449
SELECT ALL + 83 - + CAST( col1 AS SIGNED ), col1 AS col0 FROM tab1 AS cor0 WHERE NULL = - CAST( - + col2 AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-1449
SELECT ALL + 83 - + CAST ( col1 AS INTEGER ), col1 AS col0 FROM tab1 AS cor0 WHERE NULL = - CAST ( - + col2 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + + col2 * + 29 AS col1 FROM tab0 AS cor0
----
1363
2871
290

query I rowsort
SELECT ALL + col2 + 91 FROM tab2 AS cor0
----
114
131
149

query I rowsort
SELECT ALL col2 * ( col1 ) FROM tab1 cor0
----
1344
295
3196

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT DISTINCT 11 * SUM( - col0 ) FROM tab0
----
-2189

skipif mysql # not compatible
query I rowsort label-1456
SELECT DISTINCT 11 * SUM ( - col0 ) FROM tab0
----
-2189

query I rowsort
SELECT ALL + 89 * + - col2 FROM tab0
----
-4183
-8811
-890

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

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

skipif mysql # not compatible
query I rowsort label-1459
SELECT - col1 / - - ( - col2 ) FROM tab2
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1460
SELECT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) NOT IN ( + 98, + 27 + - 50 + + col2 * - 46 )
----

skipif mysql # not compatible
query III rowsort label-1460
SELECT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) NOT IN ( + 98, + 27 + - 50 + + col2 * - 46 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > + 83
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1462
SELECT 41 * + 21 AS col0, CAST( - + col2 AS SIGNED ) AS col2 FROM tab2
----
861
-23
861
-40
861
-58

skipif mysql # not compatible
query II rowsort label-1462
SELECT 41 * + 21 AS col0, CAST ( - + col2 AS INTEGER ) AS col2 FROM tab2
----
861
-23
861
-40
861
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT DISTINCT - MIN( ALL - - 69 ) FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-1464
SELECT DISTINCT - MIN ( ALL - - 69 ) FROM tab2 AS cor0
----
-69

query I rowsort
SELECT DISTINCT 70 AS col1 FROM tab1 cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1466
SELECT ALL - - 73 col1, + COUNT( * ) FROM tab0 WHERE + - col2 > col2
----
73
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1466
SELECT ALL - - 73 col1, + COUNT ( * ) FROM tab0 WHERE + - col2 > col2
----
73
0

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

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE 67 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 AS col2, + col2 * + col0 col1 FROM tab0 AS cor0
----
1
9603
21
870
81
705

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1472
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * col0 - - 59 >= col0 / + - CAST( - col2 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1472
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * col0 - - 59 >= col0 / + - CAST ( - col2 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - 16 * - - 70 * col1 AS col1, + 53 AS col2 FROM tab2 AS cor0
----
-57120
53
-75040
53
-86240
53

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) * + col2 col0 FROM tab2 cor0
----
-1173
-3080
-3886

query II rowsort
SELECT 14 + - col0 * 93, - col1 AS col0 FROM tab0 AS cor0 WHERE NOT 53 = + 1
----
-1381
-81
-8077
-21
-9007
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 3 * + col2 col1 FROM tab1 cor0
----
-177
-204
-288

query II rowsort
SELECT - col1 AS col1, 18 + - + col0 FROM tab1
----
-14
-33
-47
-73
-5
-67

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

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

query II rowsort
SELECT DISTINCT + col0 AS col2, 71 - 31 + col1 FROM tab0
----
15
121
87
61
97
41

query I rowsort
SELECT DISTINCT 30 + col1 FROM tab2
----
107
81
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1482
SELECT CAST( + MIN( col1 ) AS SIGNED ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1482
SELECT CAST ( + MIN ( col1 ) AS INTEGER ) AS col2 FROM tab2
----
51

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

query II rowsort
SELECT col0, - 69 FROM tab2
----
46
-69
64
-69
75
-69

query I rowsort
SELECT - col1 * - + col2 AS col2 FROM tab0
----
210
3807
99

query I rowsort
SELECT DISTINCT col1 + 88 FROM tab2
----
139
155
165

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT ALL COUNT( ALL - 58 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL COUNT ( ALL - 58 ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 73 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( col0 ) AND ( - 18 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1490
SELECT CAST( NULL AS DECIMAL ) * - col2 + - col0, + col2 FROM tab2 AS cor0 WHERE - col0 BETWEEN NULL AND - - 82
----

skipif mysql # not compatible
query II rowsort label-1490
SELECT CAST ( NULL AS REAL ) * - col2 + - col0, + col2 FROM tab2 AS cor0 WHERE - col0 BETWEEN NULL AND - - 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT - COUNT( * ) + + 25 + + 1 AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1491
SELECT - COUNT ( * ) + + 25 + + 1 AS col1 FROM tab2 AS cor0
----
23

query I rowsort
SELECT 95 + col0 - + + 81 * - - 73 + col2 + - col0 * 38 * - + ( - + col1 ) FROM tab0 cor0
----
-51926
-75147
-9308

query I rowsort
SELECT DISTINCT 21 + 71 + + + col0 + - + col0 FROM tab1
----
92

onlyif mysql # DIV for integer division: 
query II rowsort label-1494
SELECT ALL - col1 DIV 72 + 93 AS col1, col0 FROM tab0
----
92
15
93
87
93
97

skipif mysql # not compatible
query II rowsort label-1494
SELECT ALL - col1 / 72 + 93 AS col1, col0 FROM tab0
----
92
15
93
87
93
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 <= col2 + + ( - - col0 ) + - - 27 / + 16
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1497
SELECT * FROM tab0 AS cor0 WHERE ( col0 ) < - + CAST( 31 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1497
SELECT * FROM tab0 AS cor0 WHERE ( col0 ) < - + CAST ( 31 AS INTEGER )
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + + col1 ) NOT BETWEEN NULL AND - col1 / + col1 * - - 26
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1500
SELECT ALL - col0 DIV - - col0 + - col1 * - - col2 FROM tab1 AS cor0
----
-1345
-296
-3197

skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL - col0 / - - col0 + - col1 * - - col2 FROM tab1 AS cor0
----
-1345
-296
-3197

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT DISTINCT + MIN( ALL - + col2 ) - + MIN( 62 ) AS col2 FROM tab1 AS cor0
----
-158

skipif mysql # not compatible
query I rowsort label-1501
SELECT DISTINCT + MIN ( ALL - + col2 ) - + MIN ( 62 ) AS col2 FROM tab1 AS cor0
----
-158

query I rowsort
SELECT DISTINCT col1 - + + col1 + + 17 * - ( + - col0 ) AS col2 FROM tab0 AS cor0
----
1479
1649
255

query I rowsort
SELECT - col0 - col2 + col1 * + col0 * col0 AS col0 FROM tab2 AS cor0
----
107847
315288
376742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1504
SELECT DISTINCT - CAST( + 57 AS SIGNED ) - + col0 AS col2 FROM tab2 AS cor0
----
-103
-121
-132

skipif mysql # not compatible
query I rowsort label-1504
SELECT DISTINCT - CAST ( + 57 AS INTEGER ) - + col0 AS col2 FROM tab2 AS cor0
----
-103
-121
-132

query I rowsort
SELECT + - 44 - - col1 + - col1 FROM tab2 AS cor0
----
-44
-44
-44

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

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

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

query I rowsort
SELECT DISTINCT + 88 AS col0 FROM tab2, tab0 AS cor0 WHERE NULL IS NULL
----
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1510
SELECT + col1 * CAST( NULL AS DECIMAL ) - col2 AS col1 FROM tab1 WHERE NOT - col1 <> + - col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1510
SELECT + col1 * CAST ( NULL AS REAL ) - col2 AS col1 FROM tab1 WHERE NOT - col1 <> + - col1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1511
SELECT 79, - MAX( - + col2 ) AS col0 FROM tab0 AS cor0
----
79
10

skipif mysql # not compatible
query II rowsort label-1511
SELECT 79, - MAX ( - + col2 ) AS col0 FROM tab0 AS cor0
----
79
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1512
SELECT ALL - + 58 * - CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col1, + MIN( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
NULL
15

skipif mysql # not compatible
query II rowsort label-1512
SELECT ALL - + 58 * - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col1, + MIN ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
NULL
15

query I rowsort
SELECT + 33 * 17 * + col0 FROM tab2 cor0
----
25806
35904
42075

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

query II rowsort
SELECT 27 * + + col2 AS col1, col0 + 27 AS col2 FROM tab0 AS cor0
----
1269
42
2673
124
270
114

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT + MIN( + - col2 ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-1516
SELECT + MIN ( + - col2 ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-174

query I rowsort
SELECT ALL + 89 * - 33 + 66 FROM tab0 cor0
----
-2871
-2871
-2871

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

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

query II rowsort
SELECT 78 * - col0 + - 56 + 66 AS col1, col1 FROM tab1 AS cor0
----
-3968
14
-6620
5
-7088
47

query I rowsort
SELECT ALL ( - - 53 ) FROM tab1
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT - SUM( DISTINCT + 63 ) AS col2 FROM tab2 WHERE NULL = + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1521
SELECT - SUM ( DISTINCT + 63 ) AS col2 FROM tab2 WHERE NULL = + col0
----
NULL

query I rowsort
SELECT ALL - 94 + col2 FROM tab0
----
-47
-84
5

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1524
SELECT + + col2 * 2 * - col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NULL NOT IN ( - col1 * - col0, - col1 ) OR 3 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1524
SELECT + + col2 * 2 * - col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NULL NOT IN ( - col1 * - col0, - col1 ) OR 3 IS NULL
----

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

query I rowsort
SELECT ALL ( + 20 ) + + col0 AS col1 FROM tab0
----
107
117
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT - COUNT( * ) * + 89 + - 80 FROM tab1 cor0
----
-347

skipif mysql # not compatible
query I rowsort label-1527
SELECT - COUNT ( * ) * + 89 + - 80 FROM tab1 cor0
----
-347

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1530
SELECT DISTINCT + col0 col1, col1 + + CAST( - 16 AS SIGNED ) FROM tab2 AS cor0
----
46
35
64
61
75
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1530
SELECT DISTINCT + col0 col1, col1 + + CAST ( - 16 AS INTEGER ) FROM tab2 AS cor0
----
46
35
64
61
75
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 2 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT - + ( - 25 ) + ( - 43 ) * + - col0 AS col0 FROM tab1 AS cor0
----
2218
3680
3938

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 - - col0 col1 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT ALL + COUNT( * ) - + 31 AS col0 FROM tab2 cor0 WHERE col1 / - + col2 + col1 > - - col1
----
-31

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL + COUNT ( * ) - + 31 AS col0 FROM tab2 cor0 WHERE col1 / - + col2 + col1 > - - col1
----
-31

query I rowsort
SELECT DISTINCT 13 + col1 AS col0 FROM tab2 AS cor0
----
64
80
90

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

query I rowsort
SELECT 23 + + + 2 + + - col1 - + + ( - col0 ) * + col2 * col1 AS col0 FROM tab1 AS cor0
----
25095
290814
68555

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT ( 49 ) IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1540
SELECT DISTINCT MAX ( DISTINCT - - 74 ) AS col2 FROM tab1
----
74

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * - 65 + + col1 BETWEEN + col2 AND col0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1542
SELECT * FROM tab1 WHERE NOT col0 * - col1 * - CAST( NULL AS SIGNED ) * - 42 + - CAST( NULL AS DECIMAL ) + + - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1542
SELECT * FROM tab1 WHERE NOT col0 * - col1 * - CAST ( NULL AS INTEGER ) * - 42 + - CAST ( NULL AS REAL ) + + - col2 IS NULL
----

query I rowsort
SELECT + 98 * col2 FROM tab1
----
5782
6664
9408

query II rowsort
SELECT col1 * - col2, - 32 AS col1 FROM tab0
----
-210
-32
-3807
-32
-99
-32

query II rowsort
SELECT DISTINCT col1 * col0, col2 FROM tab2
----
2346
23
4928
40
5025
58

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 * - col1 * 40 AS col2 FROM tab2
----
-123200
-155440
-46920

query I rowsort
SELECT DISTINCT 83 * + 23 * - col1 AS col2 FROM tab1
----
-26726
-89723
-9545

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1551
SELECT CAST( + col1 AS SIGNED ) + + - col0 + + 2 + 77 FROM tab0
----
-17
13
145

skipif mysql # not compatible
query I rowsort label-1551
SELECT CAST ( + col1 AS INTEGER ) + + - col0 + + 2 + 77 FROM tab0
----
-17
13
145

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT MAX( + col2 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1552
SELECT MAX ( + col2 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2 )
----
NULL

query II rowsort
SELECT ALL - col1, col1 FROM tab2 AS cor0 WHERE ( - col2 ) <= NULL
----

query II rowsort
SELECT DISTINCT 34 AS col0, + 10 AS col0 FROM tab2 AS cor0
----
34
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - col1 ) * col1 col2, col2 * col2 FROM tab1 AS cor0
----
-196
9216
-2209
4624
-25
3481

onlyif mysql # aggregate syntax: 
query II rowsort label-1556
SELECT - 1 * + 88 AS col1, MAX( DISTINCT 21 ) col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-88
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1556
SELECT - 1 * + 88 AS col1, MAX ( DISTINCT 21 ) col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-88
NULL

query I rowsort
SELECT ( col1 ) * col1 * + col0 * + col1 FROM tab1
----
10625
139944
9447893

query II rowsort
SELECT ALL 22 * col2, col1 FROM tab1
----
1298
5
1496
47
2112
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1559
SELECT 7 / - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1559
SELECT 7 / - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT NULL BETWEEN - 70 / - - 82 AND + - 14 )
----

query II rowsort
SELECT DISTINCT - col1 + + 62 AS col0, col0 FROM tab0
----
-19
15
41
87
61
97

query I rowsort
SELECT DISTINCT 43 + + col1 FROM tab2
----
110
120
94

query I rowsort
SELECT + 36 + + col1 FROM tab1 AS cor0
----
41
50
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1564
SELECT ALL - CAST( col2 AS SIGNED ) * - - 19 + col2 + - - 91 * - col2 FROM tab2 AS cor0
----
-2507
-4360
-6322

skipif mysql # not compatible
query I rowsort label-1564
SELECT ALL - CAST ( col2 AS INTEGER ) * - - 19 + col2 + - - 91 * - col2 FROM tab2 AS cor0
----
-2507
-4360
-6322

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN 97 AND + col2 + - - col2 + + 92 - + + col2
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT DISTINCT - MIN( col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-1569
SELECT DISTINCT - MIN ( col2 ) AS col0 FROM tab0 AS cor0
----
-10

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 26 - - col2 > + col1 * - 30 + - 59 * - - 12
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 20 NOT BETWEEN col0 * + - 9 + col1 AND - 19 + - col2 + col2
----

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE NOT NULL <= + 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT ALL - COUNT( * ) * COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1574
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT ( + 64 ) * col0 FROM tab1
----
3264
5440
5824

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 * - - 62 col1 FROM tab1
----
-26350
-265174
-44268

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 29 BETWEEN NULL AND - 61 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

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

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

query I rowsort
SELECT + + col1 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN - - 38 * - + col0 AND + + col0 + + + col1
----
51
67
77

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

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

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

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

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

query I rowsort
SELECT ALL ( 67 ) FROM tab0 AS cor0
----
67
67
67

query I rowsort
SELECT DISTINCT + + 62 + + 51 FROM tab0 AS cor0
----
113

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1589
SELECT - + COUNT ( * ) col1 FROM tab0 WHERE NULL NOT BETWEEN + + col0 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT DISTINCT COUNT( * ) * 3 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-1590
SELECT DISTINCT COUNT ( * ) * 3 FROM tab2
----
9

query I rowsort
SELECT + 86 + 69 AS col0 FROM tab2
----
155
155
155

onlyif mysql # DIV for integer division: 
query I rowsort label-1592
SELECT ALL - col0 DIV 80 * + col2 * - - col1 * + 74 FROM tab1
----
-21830
-236504
0

skipif mysql # not compatible
query I rowsort label-1592
SELECT ALL - col0 / 80 * + col2 * - - col1 * + 74 FROM tab1
----
-21830
-236504
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1594
SELECT + 4 + - col0 DIV + - ( 44 ) AS col1 FROM tab1
----
5
5
6

skipif mysql # not compatible
query I rowsort label-1594
SELECT + 4 + - col0 / + - ( 44 ) AS col1 FROM tab1
----
5
5
6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT ALL + MIN( - col1 ) FROM tab0 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL + MIN ( - col1 ) FROM tab0 WHERE - col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * - 57 AS col0 FROM tab2 AS cor0
----
-2907
-3819
-4389

query III rowsort
SELECT * FROM tab0 WHERE + col2 >= - + 15 + + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1599
SELECT ALL col0 DIV 37 DIV + - 99 - - col1 + 79 FROM tab0
----
100
160
80

skipif mysql # not compatible
query I rowsort label-1599
SELECT ALL col0 / 37 / + - 99 - - col1 + 79 FROM tab0
----
100
160
80

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1603
SELECT SUM ( DISTINCT - 3 ) col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT DISTINCT SUM( + 90 ) FROM tab0 WHERE NOT - col1 >= + 74
----
270

skipif mysql # not compatible
query I rowsort label-1604
SELECT DISTINCT SUM ( + 90 ) FROM tab0 WHERE NOT - col1 >= + 74
----
270

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

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

query II rowsort
SELECT ALL 7 AS col1, col0 AS col2 FROM tab2
----
7
46
7
64
7
75

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

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

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

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

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

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

query I rowsort
SELECT + 96 + ( - col1 ) + - + 86 * col1 AS col0 FROM tab2
----
-4341
-5733
-6603

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

query II rowsort
SELECT ALL + ( + 1 ), 14 AS col2 FROM tab0 AS cor0
----
1
14
1
14
1
14

query I rowsort
SELECT - - 94 * - + 66 FROM tab1 AS cor0
----
-6204
-6204
-6204

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col1 * - 2 / + + ( - 65 ) + - col2 <= 66 - + 85
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT DISTINCT + SUM( DISTINCT + 95 ) FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-1616
SELECT DISTINCT + SUM ( DISTINCT + 95 ) FROM tab2 AS cor0
----
95

query I rowsort
SELECT DISTINCT col1 * - - 33 * - ( - - col1 ) AS col0 FROM tab0
----
-14553
-216513
-33

query II rowsort
SELECT - col0 * col2 AS col2, - col0 FROM tab1
----
-4896
-51
-5015
-85
-6188
-91

query I rowsort
SELECT 73 * + 21 * - - col2 * 31 FROM tab1
----
2803857
3231564
4562208

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 * - 29 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT + - MAX( - col0 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
15

skipif mysql # not compatible
query I rowsort label-1621
SELECT + - MAX ( - col0 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
15

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

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

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

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

query I rowsort
SELECT 77 + + ( + col2 ) * + + 69 AS col2 FROM tab0 AS cor0
----
3320
6908
767

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= + col2 + col1
----

query I rowsort
SELECT + col0 * col0 * - + 63 FROM tab0
----
-14175
-476847
-592767

query I rowsort
SELECT 49 * + 93 AS col0 FROM tab1
----
4557
4557
4557

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT COUNT( * ) * 51 AS col1 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-1630
SELECT COUNT ( * ) * 51 AS col1 FROM tab2
----
153

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT ( NOT NULL > - col0 * 20 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1632
SELECT ALL + MIN( DISTINCT 38 ) AS col2, 60 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
38
60

skipif mysql # not compatible
query II rowsort label-1632
SELECT ALL + MIN ( DISTINCT 38 ) AS col2, 60 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
38
60

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1635
SELECT + CAST( NULL AS SIGNED ), COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1635
SELECT + CAST ( NULL AS INTEGER ), COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 > + col1
----
46
51
23
64
77
40

query I rowsort
SELECT ALL + + 7 * + + col0 + + ( col0 ) FROM tab2 AS cor0
----
368
512
600

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

skipif mysql # not compatible
query I rowsort label-1638
SELECT DISTINCT + COUNT ( * ) / + 9 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1639
SELECT ALL + + CAST( NULL AS SIGNED ) / 71 / + COUNT( col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1639
SELECT ALL + + CAST ( NULL AS INTEGER ) / 71 / + COUNT ( col2 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT DISTINCT COUNT( ALL + 36 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1640
SELECT DISTINCT COUNT ( ALL + 36 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT - ( - SUM( ALL - col0 ) ) + - 58 + - 1 FROM tab1
----
-286

skipif mysql # not compatible
query I rowsort label-1641
SELECT - ( - SUM ( ALL - col0 ) ) + - 58 + - 1 FROM tab1
----
-286

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT - + COUNT( * ) * + COUNT( * ) * + COUNT( * ) + + - 56 col0 FROM tab2 cor0
----
-83

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1644
SELECT DISTINCT col0 DIV CAST( - 94 AS SIGNED ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1644
SELECT DISTINCT col0 / CAST ( - 94 AS INTEGER ) FROM tab2 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT SUM( - + 10 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-90

skipif mysql # not compatible
query I rowsort label-1646
SELECT SUM ( - + 10 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT ALL SUM( 18 ) AS col0 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-1647
SELECT ALL SUM ( 18 ) AS col0 FROM tab1
----
54

query I rowsort
SELECT - + ( - + col1 ) - + 30 * col1 FROM tab1 AS cor0
----
-1363
-145
-406

query I rowsort
SELECT DISTINCT - 35 + col1 AS col2 FROM tab0 AS cor0
----
-14
-34
46

query I rowsort
SELECT - col1 * - + ( + col2 ) + + col2 * + - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1651
SELECT - col2 + + 56 * + CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3363
-3876
-5472

skipif mysql # not compatible
query I rowsort label-1651
SELECT - col2 + + 56 * + CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3363
-3876
-5472

query I rowsort
SELECT DISTINCT 35 + ( + - 3 ) FROM tab2 AS cor0
----
32

query I rowsort
SELECT + - col1 + 97 AS col0 FROM tab2 AS cor0
----
20
30
46

query I rowsort
SELECT - ( - ( col0 ) ) + - 26 FROM tab0 AS cor0
----
-11
61
71

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 64 > NULL
----

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

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

query I rowsort
SELECT ALL - col0 + + + ( - - col2 ) AS col0 FROM tab2
----
-17
-23
-24

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1659
SELECT - CAST( NULL AS DECIMAL ), - 37 AS col2 FROM tab1
----
NULL
-37
NULL
-37
NULL
-37

skipif mysql # not compatible
query II rowsort label-1659
SELECT - CAST ( NULL AS REAL ), - 37 AS col2 FROM tab1
----
NULL
-37
NULL
-37
NULL
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1660
SELECT ALL CAST( NULL AS SIGNED ) + + + col1 AS col2, - 79 FROM tab2
----
NULL
-79
NULL
-79
NULL
-79

skipif mysql # not compatible
query II rowsort label-1660
SELECT ALL CAST ( NULL AS INTEGER ) + + + col1 AS col2, - 79 FROM tab2
----
NULL
-79
NULL
-79
NULL
-79

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

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

query I rowsort
SELECT ALL + col1 + - - 19 FROM tab2
----
70
86
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 57 ) + col2 * - col0 col0 FROM tab1
----
-4839
-4958
-6131

query I rowsort
SELECT + col2 * + - col1 + + 72 - col1 AS col0 FROM tab0 AS cor0
----
-159
-28
-3816

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1666
SELECT - - 1 AS col1, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
1
NULL
1
NULL
1
NULL

skipif mysql # not compatible
query II rowsort label-1666
SELECT - - 1 AS col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
1
NULL
1
NULL
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1667
SELECT ALL col1 AS col0, - CAST( 26 AS SIGNED ) + - - col1 AS col2 FROM tab2 AS cor0
----
51
25
67
41
77
51

skipif mysql # not compatible
query II rowsort label-1667
SELECT ALL col1 AS col0, - CAST ( 26 AS INTEGER ) + - - col1 AS col2 FROM tab2 AS cor0
----
51
25
67
41
77
51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 95 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * 70 + + col2 AS col1 FROM tab1 AS cor0
----
4189
4828
6816

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT + MIN( ALL + - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-1670
SELECT + MIN ( ALL + - col0 ) FROM tab1
----
-91

query I rowsort
SELECT ALL - + col1 + - 44 AS col1 FROM tab0 WHERE NULL IS NULL
----
-125
-45
-65

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1673
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT - col2 * col1 + - CAST( NULL AS SIGNED ) + - + col0 * - col2 NOT BETWEEN - - col0 AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT - col2 * col1 + - CAST ( NULL AS INTEGER ) + - + col0 * - col2 NOT BETWEEN - - col0 AND - col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1674
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - col2, - col1 AS col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-1674
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - col2, - col1 AS col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1677
SELECT DISTINCT 6 DIV + col0 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1677
SELECT DISTINCT 6 / + col0 AS col1 FROM tab0 AS cor0
----
0

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1681
SELECT + CAST ( + + 52 AS INTEGER ) FROM tab0
----
52
52
52

query I rowsort
SELECT DISTINCT - col2 * - + 93 FROM tab1
----
5487
6324
8928

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

query II rowsort
SELECT - col1 * col0 + - - col2, - col2 * + col0 * - col1 * + col1 AS col2 FROM tab1 AS cor0
----
-366
125375
-4209
13669292
-618
959616

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT + SUM( ALL + 16 ) FROM tab0, tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-1685
SELECT + SUM ( ALL + 16 ) FROM tab0, tab1 AS cor0
----
144

query I rowsort
SELECT + 15 + + ( col2 ) FROM tab2
----
38
55
73

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 - + ( 90 ) + col1 + + - ( col0 ) * 67 col2 FROM tab2 cor0
----
-3098
-4261
-4990

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

query I rowsort
SELECT DISTINCT - col1 - + - 8 * - col1 AS col0 FROM tab2 AS cor0
----
-459
-603
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT ALL - - 1 - + COUNT( * ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1691
SELECT ALL - - 1 - + COUNT ( * ) FROM tab1 AS cor0
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1692
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - 51 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT + CAST ( NULL AS REAL ) - 51 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT ALL MIN( + ( - col0 ) ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-1693
SELECT ALL MIN ( + ( - col0 ) ) AS col2 FROM tab1
----
-91

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

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

query I rowsort
SELECT DISTINCT - - col2 FROM tab2 WHERE NULL >= - 53
----

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

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

query I rowsort
SELECT ALL col1 * 54 AS col1 FROM tab0
----
1134
4374
54

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 <= col1 + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 82 col1, col1 FROM tab0
----
82
1
82
21
82
81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 15 * - col1 NOT BETWEEN + col0 AND + 13 * - col1 - + col1 / - + col2
----

query I rowsort
SELECT + + 4 * - col1 FROM tab1 AS cor0
----
-188
-20
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT ALL + COUNT( * ) * - MAX( ALL - ( - + 78 ) ) + + SUM( DISTINCT + col2 ) FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL + COUNT ( * ) * - MAX ( ALL - ( - + 78 ) ) + + SUM ( DISTINCT + col2 ) FROM tab0 AS cor0
----
-78

query II rowsort
SELECT DISTINCT + col0 AS col0, - col1 * col0 * + 58 FROM tab2 AS cor0
----
46
-136068
64
-285824
75
-291450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1704
SELECT DISTINCT CAST( NULL AS SIGNED ) / - + 72 + + + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1704
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - + 72 + + + col0 FROM tab2 AS cor0
----
NULL

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 15 = + - col2 * - 83 + 93
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT DISTINCT - + COUNT( * ) col2 FROM tab1, tab0 AS cor0 WHERE NOT + 72 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1708
SELECT DISTINCT - + COUNT ( * ) col2 FROM tab1, tab0 AS cor0 WHERE NOT + 72 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1709
SELECT - COUNT( * ) DIV 49 + + + 81 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-1709
SELECT - COUNT ( * ) / 49 + + + 81 FROM tab0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1710
SELECT ALL col2 * + col0 + - col1 + + col0 DIV 18 DIV - col1 AS col0 FROM tab1
----
4882
5010
6141

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL col2 * + col0 + - col1 + + col0 / 18 / - col1 AS col0 FROM tab1
----
4882
5010
6141

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 0 / + ( + 24 ) * + + col0 + + 82 + - - col0 * ( + 22 ) - + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT ( - - ( 44 ) ) + - + col1 * - col2 AS col1 FROM tab0
----
143
254
3851

onlyif mysql # aggregate syntax: 
query II rowsort label-1713
SELECT - COUNT( * ) + - 95, - COUNT( * ) col1 FROM tab1
----
-98
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT ALL 15 + + COUNT( * ) + - + COUNT( * ) AS col2 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-1714
SELECT ALL 15 + + COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab2
----
15

query I rowsort
SELECT 43 + col1 - + 46 * - + 93 FROM tab1
----
4326
4335
4368

query I rowsort
SELECT DISTINCT + 10 + ( col2 ) AS col0 FROM tab1 AS cor0
----
106
69
78

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

query I rowsort
SELECT - 98 + - 99 AS col1 FROM tab2 AS cor0
----
-197
-197
-197

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

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

query I rowsort
SELECT DISTINCT + col1 - + 15 AS col0 FROM tab1 AS cor0
----
-1
-10
32

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

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

query I rowsort
SELECT + - col1 + + - col2 AS col2 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT 12 FROM tab0 AS cor0 WHERE 26 * + col2 IS NULL
----

query I rowsort
SELECT col2 + + 2 * 98 FROM tab2 cor0
----
219
236
254

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 40 IN ( 84, - col2 * - 63 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-1727
SELECT - 32 / + ( + 70 ) FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1728
SELECT - CAST( col1 AS SIGNED ) * - 15 AS col0 FROM tab0
----
1215
15
315

skipif mysql # not compatible
query I rowsort label-1728
SELECT - CAST ( col1 AS INTEGER ) * - 15 AS col0 FROM tab0
----
1215
15
315

onlyif mysql # DIV for integer division: 
query II rowsort label-1729
SELECT ALL col0 DIV - - col0 AS col0, - col1 FROM tab1
----
1
-14
1
-47
1
-5

skipif mysql # not compatible
query II rowsort label-1729
SELECT ALL col0 / - - col0 AS col0, - col1 FROM tab1
----
1
-14
1
-47
1
-5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1730
SELECT DISTINCT + col2 DIV - 50 col2, CAST( 52 AS SIGNED ) + col1 - - - 81 FROM tab1
----
-1
-15
-1
-24
-1
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1730
SELECT DISTINCT + col2 / - 50 col2, CAST ( 52 AS INTEGER ) + col1 - - - 81 FROM tab1
----
-1
-15
-1
-24
-1
18

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + - 67 * - + col2 + + col1 IS NOT NULL
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1735
SELECT ALL CAST( NULL AS SIGNED ) col1, CAST( NULL AS SIGNED ) * + COUNT( * ) + + - 63 AS col1 FROM tab1 cor0
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1735
SELECT ALL CAST ( NULL AS INTEGER ) col1, CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + - 63 AS col1 FROM tab1 cor0
----
NULL
NULL

query I rowsort
SELECT col2 + - 97 AS col2 FROM tab2 cor0
----
-39
-57
-74

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

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

query II rowsort
SELECT DISTINCT 67, 47 * - 92 AS col0 FROM tab2 AS cor0
----
67
-4324

query II rowsort
SELECT ALL - col2 AS col1, 56 * + - col0 FROM tab1 AS cor0
----
-59
-4760
-68
-5096
-96
-2856

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT ALL COUNT( * ) * 87 FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-1741
SELECT ALL COUNT ( * ) * 87 FROM tab2
----
261

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT DISTINCT COUNT( * ) + - - 1 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-1743
SELECT DISTINCT COUNT ( * ) + - - 1 FROM tab1
----
4

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + + 66
----

query I rowsort
SELECT DISTINCT + col0 * - col2 + - col2 AS col2 FROM tab0
----
-752
-880
-9702

query I rowsort
SELECT DISTINCT - 63 * 14 + - col0 - - col0 * - col0 + + col2 AS col1 FROM tab2 AS cor0
----
-3021
-5002
-6524

query I rowsort
SELECT DISTINCT - 54 + - col2 AS col0 FROM tab1 cor0
----
-113
-122
-150

query I rowsort
SELECT - 10 + + 5 + - + col2 FROM tab1
----
-101
-64
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1749
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE - 32 <> + - 7 + 33
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1749
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE - 32 <> + - 7 + 33
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col0 - - col1 + 40 * + + 50 AS col1 FROM tab0 cor0
----
1904
1934
2066

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 39 + - col0 - + + 89 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT COUNT( DISTINCT col1 ) * + - 23 AS col0 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-1752
SELECT COUNT ( DISTINCT col1 ) * + - 23 AS col0 FROM tab0 AS cor0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-1753
SELECT ALL + ( + 3 ) DIV + - col2 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1753
SELECT ALL + ( + 3 ) / + - col2 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 33 * - - 64 FROM tab0 AS cor0
----
2112
2112
2112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - + 80 col1 FROM tab2
----
4080
5360
6160

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

query II rowsort
SELECT ALL col0 * + - col0 * + col2 AS col2, col1 FROM tab1
----
-249696
14
-426275
5
-563108
47

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1760
SELECT CAST( NULL AS DECIMAL ), - SUM( + + col2 ) AS col1 FROM tab1 AS cor0
----
NULL
-223

skipif mysql # not compatible
query II rowsort label-1760
SELECT CAST ( NULL AS REAL ), - SUM ( + + col2 ) AS col1 FROM tab1 AS cor0
----
NULL
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT DISTINCT - COUNT( * ) * + - COUNT( ALL + 45 ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1761
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( ALL + 45 ) AS col1 FROM tab2 AS cor0
----
9

query I rowsort
SELECT - col2 FROM tab2 WHERE ( 49 ) NOT IN ( 47 * col2 )
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1763
SELECT DISTINCT * FROM tab1 WHERE + col0 * + col1 + col2 NOT BETWEEN CAST( col1 AS SIGNED ) AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1763
SELECT DISTINCT * FROM tab1 WHERE + col0 * + col1 + col2 NOT BETWEEN CAST ( col1 AS INTEGER ) AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT ALL + 16 * ( - MIN( col2 ) ) AS col1 FROM tab1
----
-944

skipif mysql # not compatible
query I rowsort label-1766
SELECT ALL + 16 * ( - MIN ( col2 ) ) AS col1 FROM tab1
----
-944

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

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT + col2 * col0 = col1 - col2 * 61
----
-14
-47
-5

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

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

query I rowsort
SELECT ALL ( + 11 ) AS col0 FROM tab1
----
11
11
11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT ALL SUM( DISTINCT 21 ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL SUM ( DISTINCT 21 ) FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT COUNT( * ) col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1773
SELECT COUNT ( * ) col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT COUNT( - col2 ) * + 43 AS col0 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-1774
SELECT COUNT ( - col2 ) * + 43 AS col0 FROM tab2
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-1775
SELECT ALL 93 DIV - col1 - + 89 AS col1 FROM tab2
----
-90
-90
-90

skipif mysql # not compatible
query I rowsort label-1775
SELECT ALL 93 / - col1 - + 89 AS col1 FROM tab2
----
-90
-90
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-1776
SELECT - col1 DIV - col0 + col0 AS col0 FROM tab0
----
20
87
97

skipif mysql # not compatible
query I rowsort label-1776
SELECT - col1 / - col0 + col0 AS col0 FROM tab0
----
20
87
97

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE - 44 / 24 >= col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 17 + 82 >= 48
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1779
SELECT CAST( - col2 AS SIGNED ) AS col2 FROM tab1 WHERE + col1 <> NULL
----

skipif mysql # not compatible
query I rowsort label-1779
SELECT CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 WHERE + col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 + - col1 col1 FROM tab2
----
-105
-121
-131

query I rowsort
SELECT + 44 + 56 AS col1 FROM tab1
----
100
100
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT - MAX( col0 ) * - COUNT( * ) col2 FROM tab0
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1782
SELECT - MAX ( col0 ) * - COUNT ( * ) col2 FROM tab0
----
291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 / col1 col1 FROM tab2 WHERE 13 * col0 + col2 IN ( + 38 * 63 )
----

query I rowsort
SELECT ALL col2 * + col0 FROM tab0 AS cor0 WHERE + col2 / col2 + - 70 >= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT ALL MIN( ALL 59 ) - COUNT( * ) col1 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1786
SELECT ALL MIN ( ALL 59 ) - COUNT ( * ) col1 FROM tab1 AS cor0
----
56

query I rowsort
SELECT ALL - ( + 21 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT 12 + col2 AS col1 FROM tab1
----
108
71
80

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col0 = + col1
----

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

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT CAST ( + COUNT ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT + 34 * - ( col2 ) FROM tab1 AS cor0
----
-2006
-2312
-3264

query I rowsort
SELECT ALL 69 AS col1 FROM tab0 AS cor0 WHERE - col2 * col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * 31 AS col0 FROM tab2 AS cor0
----
1426
1984
2325

query I rowsort
SELECT ALL 12 * - col2 FROM tab0 AS cor0
----
-1188
-120
-564

query I rowsort
SELECT DISTINCT - 53 * col0 AS col0 FROM tab2 AS cor0
----
-2438
-3392
-3975

query I rowsort
SELECT 75 * col1 AS col0 FROM tab0 AS cor0 WHERE NOT + 71 < - ( - col0 )
----
6075

query I rowsort
SELECT ( + 54 ) - col2 * + 82 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= 0 + col1 * - 69
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 97 / + ( col1 ) BETWEEN NULL AND col1
----

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

query I rowsort
SELECT ALL 22 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1802
SELECT ALL col2 DIV - 44 AS col1 FROM tab1 cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-1802
SELECT ALL col2 / - 44 AS col1 FROM tab1 cor0
----
-1
-1
-2

query I rowsort
SELECT + col2 * 84 AS col1 FROM tab1
----
4956
5712
8064

query I rowsort
SELECT col0 FROM tab0 WHERE NOT 57 * 21 IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1805
SELECT ALL MIN ( - col0 ) col1 FROM tab2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1806
SELECT CAST( 77 AS SIGNED ) AS col0 FROM tab0 WHERE NOT ( NULL ) IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-1806
SELECT CAST ( 77 AS INTEGER ) AS col0 FROM tab0 WHERE NOT ( NULL ) IN ( col0 )
----

query I rowsort
SELECT - col0 * + 82 AS col1 FROM tab2
----
-3772
-5248
-6150

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT + 93 * COUNT( * ) col2 FROM tab0
----
279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1809
SELECT + 93 * COUNT ( * ) col2 FROM tab0
----
279

query I rowsort
SELECT - ( col2 ) + col1 FROM tab1 WHERE NOT ( col1 + - 5 * - col1 ) IS NULL
----
-21
-54
-82

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT col1 * col2 >= - ( + col1 ) * + ( - col2 )
----

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

skipif mysql # not compatible
query I rowsort label-1812
SELECT 88 / - col0 AS col1 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1813
SELECT DISTINCT COUNT( * ) * - COUNT( * ) + MIN( - col1 + + 50 DIV - 27 ) AS col2 FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-1813
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) + MIN ( - col1 + + 50 / - 27 ) AS col2 FROM tab0 AS cor0
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-1814
SELECT DISTINCT - col1 DIV col1 FROM tab2 cor0 WHERE NOT - 98 * + col1 BETWEEN 42 AND - col1
----
-1

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT - col1 / col1 FROM tab2 cor0 WHERE NOT - 98 * + col1 BETWEEN 42 AND - col1
----
-1

query I rowsort
SELECT DISTINCT 61 * + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( 49 ) IS NULL
----
5307
5917
915

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1816
SELECT + 71 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( + 92 * col1 - - 37 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1816
SELECT + 71 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( + 92 * col1 - - 37 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT + COUNT( * ) + + - COUNT( * ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1817
SELECT + COUNT ( * ) + + - COUNT ( * ) col0 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 89 + - - 85 BETWEEN NULL AND - 95 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT - MIN( + col2 ) FROM tab1 AS cor0 WHERE - col2 BETWEEN - col2 AND ( 14 )
----
-59

skipif mysql # not compatible
query I rowsort label-1820
SELECT - MIN ( + col2 ) FROM tab1 AS cor0 WHERE - col2 BETWEEN - col2 AND ( 14 )
----
-59

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1822
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * COUNT( * ) / - 75 + + 21 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1822
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * COUNT ( * ) / - 75 + + 21 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col0 * - - 46 AS col2 FROM tab1
----
2346
3910
4186

onlyif mysql # aggregate syntax: 
query II rowsort label-1824
SELECT + MAX( ALL + + col2 ), SUM( col2 ) * 4 col1 FROM tab2
----
58
484

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1824
SELECT + MAX ( ALL + + col2 ), SUM ( col2 ) * 4 col1 FROM tab2
----
58
484

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + - col2 col2 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT DISTINCT COUNT( * ) + + 82 * - + COUNT( * ) AS col2 FROM tab2
----
-243

skipif mysql # not compatible
query I rowsort label-1827
SELECT DISTINCT COUNT ( * ) + + 82 * - + COUNT ( * ) AS col2 FROM tab2
----
-243

query I rowsort
SELECT DISTINCT - col2 - - 72 FROM tab1 AS cor0
----
-24
13
4

query I rowsort
SELECT DISTINCT + col0 * + - 47 - - col2 FROM tab2 AS cor0
----
-2139
-2968
-3467

query I rowsort
SELECT - col1 + + 42 FROM tab2 AS cor0
----
-25
-35
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT SUM( ALL 79 ) FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-1831
SELECT SUM ( ALL 79 ) FROM tab2
----
237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, col1 * - - col0 AS col2 FROM tab1
----
59
425
68
4277
96
714

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 * 44 col0 FROM tab2 AS cor0
----
220
220
220

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - 88 col0 FROM tab2 AS cor0
----
-4488
-5896
-6776

query I rowsort
SELECT + - col1 FROM tab1 AS cor0 WHERE NOT + 53 IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL + 35 * col1 FROM tab1 cor0
----
1645
175
490

query I rowsort
SELECT - ( 38 ) AS col1 FROM tab1 AS cor0
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT ALL + - MIN( - col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL + - MIN ( - col0 ) AS col1 FROM tab0 AS cor0
----
97

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

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

skipif mysql # not compatible
query II rowsort label-1841
SELECT + COUNT ( * ) AS col0, SUM ( - col2 ) FROM tab0 cor0
----
3
-156

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

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

query I rowsort
SELECT - + 27 * - col0 FROM tab0 AS cor0
----
2349
2619
405

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, 41 AS col0 FROM tab2
----
23
41
40
41
58
41

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - 91 * - - col0 * + 53 FROM tab2 AS cor0
----
221858
308672
361725

query II rowsort
SELECT - + col0 * + 18 AS col2, col2 FROM tab2 AS cor0
----
-1152
40
-1350
58
-828
23

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

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

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

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

query I rowsort
SELECT 64 + - 10 FROM tab1 WHERE + + col2 <= NULL
----

query I rowsort
SELECT DISTINCT + + col0 FROM tab1 WHERE NULL BETWEEN + 33 AND NULL
----

query I rowsort
SELECT col1 - col1 AS col2 FROM tab0 WHERE 8 * col0 + + 57 * - 1 + + - col0 BETWEEN NULL AND col0 * 74
----

query I rowsort
SELECT DISTINCT + col1 + + - col1 * - 16 * + + 59 FROM tab2
----
48195
63315
72765

onlyif mysql # DIV for integer division: 
query I rowsort label-1860
SELECT ALL 94 + col2 DIV 19 * 31 * - col1 FROM tab2 AS cor0
----
-1487
-4680
-6137

skipif mysql # not compatible
query I rowsort label-1860
SELECT ALL 94 + col2 / 19 * 31 * - col1 FROM tab2 AS cor0
----
-1487
-4680
-6137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1861
SELECT - 81 * - 73 FROM tab2 AS cor0 WHERE 44 * - col2 / - CAST( NULL AS SIGNED ) * - 27 + - - col2 + - 23 NOT BETWEEN - col1 + - 0 AND col1 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1861
SELECT - 81 * - 73 FROM tab2 AS cor0 WHERE 44 * - col2 / - CAST ( NULL AS INTEGER ) * - 27 + - - col2 + - 23 NOT BETWEEN - col1 + - 0 AND col1 * CAST ( NULL AS INTEGER )
----

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

query I rowsort
SELECT DISTINCT + col0 * + 61 + + + col2 * col1 FROM tab1 AS cor0
----
4455
5480
8747

query I rowsort
SELECT + 84 + - + col2 AS col2 FROM tab0 AS cor0
----
-15
37
74

query I rowsort
SELECT ALL - ( + 62 ) - col2 AS col2 FROM tab2 AS cor0
----
-102
-120
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-1866
SELECT ALL MIN( ALL + + 15 ) AS col1, 25 AS col2 FROM tab1 AS cor0
----
15
25

skipif mysql # not compatible
query II rowsort label-1866
SELECT ALL MIN ( ALL + + 15 ) AS col1, 25 AS col2 FROM tab1 AS cor0
----
15
25

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

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

query I rowsort
SELECT DISTINCT 65 * + - col1 + - col0 FROM tab0 AS cor0
----
-1452
-162
-5280

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

skipif mysql # not compatible
query I rowsort label-1869
SELECT col0 / + + col0 + col1 FROM tab2
----
52
68
78

query II rowsort
SELECT col0 AS col0, col1 * + + col2 FROM tab1
----
51
1344
85
295
91
3196

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND ( ( + - 75 ) * col2 + - + 43 )
----

query I rowsort
SELECT ALL - col2 + + + 39 AS col1 FROM tab2 AS cor0
----
-1
-19
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1873
SELECT - - CAST( NULL AS SIGNED ) / - col2 FROM tab2 cor0 WHERE NOT col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1873
SELECT - - CAST ( NULL AS INTEGER ) / - col2 FROM tab2 cor0 WHERE NOT col1 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ( + ( 56 ) ) * col0 AS col2 FROM tab1 cor0
----
2856
4760
5096

query I rowsort
SELECT - 80 * - ( + - ( + 21 ) ) + + col0 + - col1 FROM tab1 AS cor0
----
-1600
-1636
-1643

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + + + 82 = NULL
----

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

query I rowsort
SELECT + + 17 + - + col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( + 72 ) > - col1
----

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

query I rowsort
SELECT - col1 * + 43 FROM tab1
----
-2021
-215
-602

onlyif mysql # DIV for integer division: 
query II rowsort label-1881
SELECT col1 AS col2, - 41 DIV - col1 FROM tab0
----
1
41
21
1
81
0

skipif mysql # not compatible
query II rowsort label-1881
SELECT col1 AS col2, - 41 / - col1 FROM tab0
----
1
41
21
1
81
0

query I rowsort
SELECT 39 * - 42 FROM tab2
----
-1638
-1638
-1638

query I rowsort
SELECT ALL ( - col0 ) * - + 45 AS col1 FROM tab1
----
2295
3825
4095

query I rowsort
SELECT DISTINCT + 81 * + + 31 FROM tab0
----
2511

onlyif mysql # aggregate syntax: 
query II rowsort label-1885
SELECT DISTINCT 46, COUNT( * ) AS col1 FROM tab0
----
46
3

skipif mysql # not compatible
query II rowsort label-1885
SELECT DISTINCT 46, COUNT ( * ) AS col1 FROM tab0
----
46
3

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 / - col0 IS NULL OR ( NULL ) < col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col1 * - - col0 AS col0, + col1 * + col0 AS col1 FROM tab1 WHERE col1 + - - col1 IS NOT NULL
----
425
425
4277
4277
714
714

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

skipif mysql # not compatible
query III rowsort label-1889
SELECT DISTINCT * FROM tab1 WHERE + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + 24 + - col2 AS col0, + 98 FROM tab0 AS cor0
----
-23
98
-75
98
14
98

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1891
SELECT 4, + col2 FROM tab0 AS cor0 WHERE NULL IN ( col2, + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query II rowsort label-1891
SELECT 4, + col2 FROM tab0 AS cor0 WHERE NULL IN ( col2, + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT ALL 68 - - col1 FROM tab2 AS cor0
----
119
135
145

query I rowsort
SELECT - col0 * + col1 AS col0 FROM tab0 AS cor0 WHERE ( col1 / - + col1 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1894
SELECT ALL - 20 * + COUNT( * ) / + 66 - + CAST( NULL AS SIGNED ) col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1894
SELECT ALL - 20 * + COUNT ( * ) / + 66 - + CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 89 * - col1 AS col2 FROM tab2 AS cor0
----
4539
5963
6853

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1896
SELECT ALL col2 AS col2, ( - - 77 ) - + col2, - col1 * - col1 + 36 / col2 AS col2 FROM tab2 AS cor0 WHERE NOT 9 NOT IN ( CAST( - col0 AS SIGNED ), col0 )
----

skipif mysql # not compatible
query III rowsort label-1896
SELECT ALL col2 AS col2, ( - - 77 ) - + col2, - col1 * - col1 + 36 / col2 AS col2 FROM tab2 AS cor0 WHERE NOT 9 NOT IN ( CAST ( - col0 AS INTEGER ), col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1897
SELECT ALL col2 - + CAST( + ( - + col1 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-1897
SELECT ALL col2 - + CAST ( + ( - + col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
100
128
31

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

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

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

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

query I rowsort
SELECT DISTINCT col1 * + - 26 * col2 * col2 AS col1 FROM tab2
----
-3203200
-5860088
-701454

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1902
SELECT ( - CAST( col1 AS SIGNED ) ) + + col1 - + - col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1902
SELECT ( - CAST ( col1 AS INTEGER ) ) + + col1 - + - col1 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1903
SELECT DISTINCT - 97, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-1903
SELECT DISTINCT - 97, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT ALL + + MIN( ALL 25 ) AS col1 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL + + MIN ( ALL 25 ) AS col1 FROM tab1 AS cor0
----
25

query I rowsort
SELECT ( - col0 ) FROM tab2 AS cor0 WHERE NOT col0 / + ( col2 ) IS NULL
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1907
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= CAST( - 79 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1907
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= CAST ( - 79 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 26 * + - col1 IS NOT NULL
----

query II rowsort
SELECT + col1 AS col1, col0 * 47 FROM tab0 AS cor0
----
1
4559
21
4089
81
705

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT - ( - COUNT( + col0 ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1910
SELECT - ( - COUNT ( + col0 ) ) FROM tab1 cor0
----
3

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE NOT ( NOT + + col2 * + col1 BETWEEN col0 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT DISTINCT - MAX( ALL - 57 ) FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT - MAX ( ALL - 57 ) FROM tab2 AS cor0
----
57

query I rowsort
SELECT DISTINCT ( - - 80 ) AS col2 FROM tab1 cor0
----
80

query II rowsort
SELECT DISTINCT col1 * col1 AS col2, - col1 AS col0 FROM tab0
----
1
-1
441
-21
6561
-81

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 <= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 / + - col1 <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1917
SELECT DISTINCT - col0 * 90 + - 78 * 64 - + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT - col0 * 90 + - 78 * 64 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT col0 + - + 67 AS col0 FROM tab1
----
-16
18
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1919
SELECT ALL col0 + 57 * col0 - + col0 DIV - 7 AS col1 FROM tab1
----
2965
4942
5291

skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL col0 + 57 * col0 - + col0 / - 7 AS col1 FROM tab1
----
2965
4942
5291

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 - - 98 IS NOT NULL
----

query I rowsort
SELECT - 55 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT - COUNT( * ) * + 77 AS col0 FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-1922
SELECT - COUNT ( * ) * + 77 AS col0 FROM tab2
----
-231

query I rowsort
SELECT + 98 + - AVG ( - + 17 ) FROM tab1 WHERE + ( - + col2 ) IS NULL
----
NULL

query I rowsort
SELECT col2 * + - col2 + col2 AS col2 FROM tab0 AS cor0
----
-2162
-90
-9702

query I rowsort
SELECT + ( + 55 ) + - col0 AS col1 FROM tab2 AS cor0
----
-20
-9
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - - 47 - + - col1 col0 FROM tab1 cor0
----
2411
4000
4324

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT ALL + MAX( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 * - + col1 * - 77 IS NULL
----
-59

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL + MAX ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 * - + col1 * - 77 IS NULL
----
-59

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 ) NOT BETWEEN 63 AND + 28
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 66 + + 86 * + col0 AS col2 FROM tab1
----
4452
7376
7892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 * + + col0 col2 FROM tab2
----
1216
1425
874

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT + 68 * + COUNT( * ) AS col0 FROM tab2
----
204

skipif mysql # not compatible
query I rowsort label-1931
SELECT + 68 * + COUNT ( * ) AS col0 FROM tab2
----
204

query I rowsort
SELECT - 34 * - - col2 FROM tab2
----
-1360
-1972
-782

query I rowsort
SELECT - + 73 AS col1 FROM tab0 WHERE NOT - + col1 IS NULL
----
-73
-73
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-1934
SELECT col2 DIV - + col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1934
SELECT col2 / - + col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT ALL + + SUM( + - col0 ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-1935
SELECT ALL + + SUM ( + - col0 ) AS col0 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT DISTINCT COUNT( * ) * - MAX( DISTINCT 89 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-267

skipif mysql # not compatible
query I rowsort label-1936
SELECT DISTINCT COUNT ( * ) * - MAX ( DISTINCT 89 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-267

query I rowsort
SELECT ALL col0 * col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT - 31 + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 + + col2 > - 6 * - col2
----
-34

skipif mysql # not compatible
query I rowsort label-1938
SELECT - 31 + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 + + col2 > - 6 * - col2
----
-34

query I rowsort
SELECT 83 * - - col2 + - - col1 AS col0 FROM tab0 AS cor0
----
3982
8218
851

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 78, - col1 )
----

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT col0 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN ( ( col0 ) * - + col1 ) AND 5
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 * + - 84 * ( - 95 ) NOT BETWEEN - 50 AND col1 * col2 + 81
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT DISTINCT + COUNT( col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT + COUNT ( col1 ) AS col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ( + + col0 ) AS col1, - 50 + + 10 FROM tab0 AS cor0
----
15
-40
87
-40
97
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT 8 * - COUNT( col1 ) col0 FROM tab1
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1946
SELECT 8 * - COUNT ( col1 ) col0 FROM tab1
----
-24

query I rowsort
SELECT ALL - 12 + - + col2 AS col1 FROM tab1
----
-108
-71
-80

query I rowsort
SELECT ALL + 34 * + col2 + - + col0 * - - 26 FROM tab2
----
-304
-414
22

query I rowsort
SELECT ALL + - col2 AS col2 FROM tab2 WHERE NOT col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1950
SELECT DISTINCT - col0 + + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1950
SELECT DISTINCT - col0 + + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query II rowsort
SELECT 92, col2 + - col2 AS col1 FROM tab2
----
92
0
92
0
92
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, - col0 col1 FROM tab2
----
23
-46
40
-64
58
-75

query I rowsort
SELECT DISTINCT 16 * - - col1 + - 21 AS col0 FROM tab1
----
203
59
731

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 81 - - 40 IN ( - 92 )
----

query I rowsort
SELECT ALL col1 * - 39 FROM tab0
----
-3159
-39
-819

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1956
SELECT * FROM tab2 WHERE col2 * + 20 + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1956
SELECT * FROM tab2 WHERE col2 * + 20 + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 54 - - col1 AS col0 FROM tab1 AS cor0
----
-40
-49
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT ALL 12 - + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1958
SELECT ALL 12 - + COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT - + col0 * + col1 + - + col0 AS col0 FROM tab2 cor0
----
-2392
-4992
-5100

query II rowsort
SELECT col1 - col1 AS col0, - col2 AS col1 FROM tab1 AS cor0
----
0
-59
0
-68
0
-96

query I rowsort
SELECT - 99 - col1 AS col1 FROM tab1 AS cor0
----
-104
-113
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT + COUNT( * ) - COUNT( * ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1962
SELECT + COUNT ( * ) - COUNT ( * ) col2 FROM tab0
----
0

query I rowsort
SELECT ALL col0 * + 97 FROM tab1
----
4947
8245
8827

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1964
SELECT * FROM tab0 WHERE NOT - col0 * - col0 + + + 59 <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1964
SELECT * FROM tab0 WHERE NOT - col0 * - col0 + + + 59 <> + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 92 * col2 AS col2 FROM tab1
----
-5428
-6256
-8832

query I rowsort
SELECT DISTINCT 31 * - 1 AS col2 FROM tab0
----
-31

query I rowsort
SELECT ALL 72 * + 58 FROM tab0 cor0 WHERE NULL IS NULL
----
4176
4176
4176

query I rowsort
SELECT - ( - col2 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT + col0 * + col0 + col1 FROM tab1 WHERE NOT - col0 * + - col2 * - col0 + - col0 - col1 + + 49 IS NULL
----
2615
7230
8328

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1970
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( ( + 51 * CAST( NULL AS SIGNED ) IS NULL ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-1970
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( ( + 51 * CAST ( NULL AS INTEGER ) IS NULL ) )
----

query I rowsort
SELECT DISTINCT + 74 * - col1 * - col0 FROM tab1
----
31450
316498
52836

onlyif mysql # DIV for integer division: 
query I rowsort label-1972
SELECT - 1 DIV + col0 * + 31 - + 54 AS col1 FROM tab2 AS cor0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-1972
SELECT - 1 / + col0 * + 31 - + 54 AS col1 FROM tab2 AS cor0
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1973
SELECT + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
0

query II rowsort
SELECT DISTINCT col1 AS col2, col1 AS col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, - col2 + - + 23 * + col1 col1 FROM tab0 AS cor0
----
-10
-493
-47
-1910
-99
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT - + COUNT( * ) * COUNT( * ) * + + SUM( DISTINCT + col0 ) FROM tab2 AS cor0
----
-1665

skipif mysql # not compatible
query I rowsort label-1976
SELECT - + COUNT ( * ) * COUNT ( * ) * + + SUM ( DISTINCT + col0 ) FROM tab2 AS cor0
----
-1665

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT - SUM( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-1977
SELECT - SUM ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0 col0, col1 AS col0 FROM tab2 AS cor0
----
46
51
64
77
75
67

query II rowsort
SELECT + 68, - col1 AS col1 FROM tab0 AS cor0
----
68
-1
68
-21
68
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT + + ( - ( + COUNT( * ) ) ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1980
SELECT + + ( - ( + COUNT ( * ) ) ) AS col1 FROM tab2 cor0
----
-3

query I rowsort
SELECT - + col1 * + col2 + col0 + - - col0 FROM tab0 AS cor0
----
-36
-3777
95

query I rowsort
SELECT ( + col0 ) + + col1 FROM tab1 AS cor0 WHERE 98 * - - col0 IS NOT NULL
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab0 cor0 WHERE + col0 + - 26 + + 85 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 73 IS NULL
----

query I rowsort
SELECT ALL - 87 * + 56 * + - col2 + - col2 AS col0 FROM tab0
----
228937
482229
48710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1986
SELECT - col1 * + CAST( NULL AS SIGNED ) + + col0 + + col2 + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1986
SELECT - col1 * + CAST ( NULL AS INTEGER ) + + col0 + + col2 + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + col0 + + 99 AS col0 FROM tab0
----
99
99
99

query I rowsort
SELECT 0 + + 99 AS col2 FROM tab2
----
99
99
99

query I rowsort
SELECT DISTINCT col2 + + col0 + - - 62 * col1 * col0 FROM tab2 AS cor0
----
145521
305640
311683

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT ALL - MAX( DISTINCT - 87 ) + - 58 * - + 42 FROM tab2 AS cor0
----
2523

skipif mysql # not compatible
query I rowsort label-1990
SELECT ALL - MAX ( DISTINCT - 87 ) + - 58 * - + 42 FROM tab2 AS cor0
----
2523

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1991
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT + col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL CAST ( NULL AS REAL ) FROM tab0 WHERE NOT + col2 IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + + 32 col0 FROM tab2
----
19
35
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT 36 - 51 + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-6

skipif mysql # not compatible
query I rowsort label-1993
SELECT 36 - 51 + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-6

query I rowsort
SELECT + + col0 + col0 + + 56 - + 87 FROM tab2 WHERE ( - col2 ) + + col2 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 50 IS NOT NULL
----

query I rowsort
SELECT + col0 + + - 58 AS col2 FROM tab2
----
-12
17
6

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 - + col0 = col1
----

query I rowsort
SELECT ( + - col2 ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT ALL + col2 * + col0 AS col1 FROM tab1 cor0 WHERE - col1 IS NOT NULL
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT + MIN( ALL col1 ) AS col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2000
SELECT + MIN ( ALL col1 ) AS col2 FROM tab0 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT - COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2001
SELECT - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-3

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT - col1 * + + 31 * + 59 * - 40 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT COUNT( * ) * + 97 AS col2 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-2003
SELECT COUNT ( * ) * + 97 AS col2 FROM tab0
----
291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2004
SELECT DISTINCT + CAST( 54 AS SIGNED ) * COUNT( + + 40 ), - MIN( DISTINCT - + 62 ) AS col0 FROM tab1
----
162
62

skipif mysql # not compatible
query II rowsort label-2004
SELECT DISTINCT + CAST ( 54 AS INTEGER ) * COUNT ( + + 40 ), - MIN ( DISTINCT - + 62 ) AS col0 FROM tab1
----
162
62

query I rowsort
SELECT DISTINCT + + ( - 36 ) FROM tab0 WHERE NOT + + 90 IS NOT NULL
----

query I rowsort
SELECT ALL 35 FROM tab0 WHERE ( + 79 ) IS NULL
----

query II rowsort
SELECT ALL ( + col0 ) * + col2 AS col0, 97 AS col2 FROM tab2 AS cor0
----
1058
97
2560
97
4350
97

query I rowsort
SELECT + + 74 + col2 AS col0 FROM tab2 AS cor0
----
114
132
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + - col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT DISTINCT - COUNT( DISTINCT + col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2010
SELECT DISTINCT - COUNT ( DISTINCT + col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2011
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE col2 * col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2011
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE col2 * col0 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2012
SELECT ALL col1, 21 DIV + col2 col2 FROM tab2
----
51
0
67
0
77
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2012
SELECT ALL col1, 21 / + col2 col2 FROM tab2
----
51
0
67
0
77
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2013
SELECT col0 DIV - 84 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2013
SELECT col0 / - 84 FROM tab0
----
-1
-1
0

query I rowsort
SELECT ALL col2 * + 73 + col0 * + col0 AS col0 FROM tab2
----
3795
7016
9859

query II rowsort
SELECT + col0 AS col2, + col0 + + ( 34 ) + 75 AS col0 FROM tab2
----
46
155
64
173
75
184

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + ( col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT DISTINCT COUNT( * ) + + 19 col0 FROM tab2
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2017
SELECT DISTINCT COUNT ( * ) + + 19 col0 FROM tab2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2018
SELECT CAST( 96 AS SIGNED ) AS col0 FROM tab2
----
96
96
96

skipif mysql # not compatible
query I rowsort label-2018
SELECT CAST ( 96 AS INTEGER ) AS col0 FROM tab2
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT ALL + COUNT( ALL + 16 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL + COUNT ( ALL + 16 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col1 > NULL
----

query I rowsort
SELECT DISTINCT col0 + + 56 * - 91 AS col2 FROM tab2
----
-5021
-5032
-5050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - + 43 col0 FROM tab1
----
16
25
53

query I rowsort
SELECT DISTINCT - 85 - + + 93 * + col0 FROM tab0
----
-1480
-8176
-9106

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT ALL 32 + - SUM( ALL + col1 ) FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL 32 + - SUM ( ALL + col1 ) FROM tab1
----
-34

query I rowsort
SELECT ( col0 ) + - - 99 AS col2 FROM tab1 AS cor0
----
150
184
190

query I rowsort
SELECT DISTINCT - col2 + ( + col0 ) * col2 AS col1 FROM tab0 AS cor0
----
658
860
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT - - 1 + - COUNT( * ) FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2027
SELECT - - 1 + - COUNT ( * ) FROM tab2 AS cor0
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 55 col1 FROM tab1 cor0 WHERE NULL IS NULL
----
-4
30
36

query II rowsort
SELECT DISTINCT + col0 AS col0, + col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2030
SELECT 67 DIV - 75 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2030
SELECT 67 / - 75 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 + - col1 > NULL )
----

query I rowsort
SELECT ALL ( 35 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - - 87 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT DISTINCT - + col2 * + - col1 * + ( + 31 ) AS col0 FROM tab1 cor0
----
41664
9145
99076

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2035
SELECT - CAST( 65 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-2035
SELECT - CAST ( 65 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-65
-65
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2036
SELECT 13 FROM tab2 WHERE NOT - + CAST( NULL AS SIGNED ) < - col1
----

skipif mysql # not compatible
query I rowsort label-2036
SELECT 13 FROM tab2 WHERE NOT - + CAST ( NULL AS INTEGER ) < - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2037
SELECT col1 DIV ( + 41 ) AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2037
SELECT col1 / ( + 41 ) AS col2 FROM tab0
----
0
0
1

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT 76 IN ( + 36 / - col1 )
----
15
87
97

query I rowsort
SELECT DISTINCT + col0 * + col1 * - col2 AS col0 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT ALL COUNT( * ) * - + 17 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL COUNT ( * ) * - + 17 FROM tab1
----
-51

query I rowsort
SELECT col1 * - ( - 95 ) * - col2 FROM tab0
----
-19950
-361665
-9405

query II rowsort
SELECT - - 8 AS col2, col2 AS col1 FROM tab0 AS cor0
----
8
10
8
47
8
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT ALL + + MIN( - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2043
SELECT ALL + + MIN ( - col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2044
SELECT DISTINCT - CAST( + + MIN( ALL col1 ) AS SIGNED ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT - CAST ( + + MIN ( ALL col1 ) AS INTEGER ) FROM tab0
----
-1

query I rowsort
SELECT DISTINCT 56 + - + 29 FROM tab2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2046
SELECT ALL CAST( + AVG ( ALL - col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL CAST ( + AVG ( ALL - col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-2047
SELECT ALL - COUNT( * ) AS col0, 63 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0
63

skipif mysql # not compatible
query II rowsort label-2047
SELECT ALL - COUNT ( * ) AS col0, 63 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2048
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT - 36 * col1 AS col1 FROM tab0 AS cor0
----
-2916
-36
-756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2050
SELECT + - CAST( NULL AS SIGNED ) / + 81 + AVG ( + col2 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2050
SELECT + - CAST ( NULL AS INTEGER ) / + 81 + AVG ( + col2 ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2051
SELECT DISTINCT MAX( ALL col0 ) AS col2, COUNT( * ) FROM tab1 AS cor0
----
91
3

skipif mysql # not compatible
query II rowsort label-2051
SELECT DISTINCT MAX ( ALL col0 ) AS col2, COUNT ( * ) FROM tab1 AS cor0
----
91
3

query I rowsort
SELECT ALL - - 94 * + col1 + + + 30 FROM tab0 AS cor0
----
124
2004
7644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2053
SELECT CAST( NULL AS SIGNED ) + + 28 - + col0 / - col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2053
SELECT CAST ( NULL AS INTEGER ) + + 28 - + col0 / - col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 * - 51 col1 FROM tab2
----
-1479

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2055
SELECT ALL col2 + - + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL col2 + - + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 89 <= NULL
----

query II rowsort
SELECT col2, - 96 FROM tab2
----
23
-96
40
-96
58
-96

query I rowsort
SELECT - ( - - 90 ) FROM tab0
----
-90
-90
-90

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 cor0 WHERE - ( col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 34 - 0 FROM tab0 AS cor0
----
34

query I rowsort
SELECT - col1 - + + 95 FROM tab1
----
-100
-109
-142

query I rowsort
SELECT - 14 + + 8 + - - col2 AS col2 FROM tab1
----
53
62
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2063
SELECT + col1 * + CAST( NULL AS SIGNED ) * + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2063
SELECT + col1 * + CAST ( NULL AS INTEGER ) * + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + - 62 ) FROM tab2 AS cor0
----
-62
-62
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-2065
SELECT 55 DIV col2 * - - col1 FROM tab2 AS cor0
----
0
102
77

skipif mysql # not compatible
query I rowsort label-2065
SELECT 55 / col2 * - - col1 FROM tab2 AS cor0
----
0
102
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2066
SELECT + 68, - 43 + - - CAST( - col0 AS SIGNED ) * col0 AS col1 FROM tab1 cor0
----
68
-2644
68
-7268
68
-8324

skipif mysql # not compatible
query II rowsort label-2066
SELECT + 68, - 43 + - - CAST ( - col0 AS INTEGER ) * col0 AS col1 FROM tab1 cor0
----
68
-2644
68
-7268
68
-8324

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2067
SELECT - - CAST( - col0 AS SIGNED ), col0 AS col2 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

skipif mysql # not compatible
query II rowsort label-2067
SELECT - - CAST ( - col0 AS INTEGER ), col0 AS col2 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query II rowsort
SELECT 1, col2 AS col0 FROM tab0 AS cor0
----
1
10
1
47
1
99

query I rowsort
SELECT DISTINCT - - 23 AS col1 FROM tab0 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 25 col1, 37 FROM tab2 AS cor0
----
25
37

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = + 95 - - + 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT DISTINCT - SUM( - 64 ) AS col0 FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT - SUM ( - 64 ) AS col0 FROM tab2 AS cor0
----
192

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 2 <= ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 59 <> - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2075
SELECT COUNT( ALL - col0 ) * 10 DIV + + 38 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2075
SELECT COUNT ( ALL - col0 ) * 10 / + + 38 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE NOT ( - + 45 ) IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT ALL - MIN( - ( - 18 ) ) AS col2 FROM tab1 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2077
SELECT ALL - MIN ( - ( - 18 ) ) AS col2 FROM tab1 cor0
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-2078
SELECT DISTINCT 48, - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
48
-9

skipif mysql # not compatible
query II rowsort label-2078
SELECT DISTINCT 48, - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
48
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2079
SELECT ALL - - col2 DIV - - 20 + + - CAST( + + ( - + col0 ) AS SIGNED ) + - + col2 AS col1 FROM tab2 cor0
----
19
24
26

skipif mysql # not compatible
query I rowsort label-2079
SELECT ALL - - col2 / - - 20 + + - CAST ( + + ( - + col0 ) AS INTEGER ) + - + col2 AS col1 FROM tab2 cor0
----
19
24
26

query I rowsort
SELECT DISTINCT - 75 - + col2 FROM tab0 AS cor0
----
-122
-174
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT SUM( - 69 ) * + + COUNT( col0 ) AS col1 FROM tab2 AS cor0
----
-621

skipif mysql # not compatible
query I rowsort label-2081
SELECT SUM ( - 69 ) * + + COUNT ( col0 ) AS col1 FROM tab2 AS cor0
----
-621

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT ALL 31 * - MIN( ALL - col1 ) FROM tab1 AS cor0
----
1457

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL 31 * - MIN ( ALL - col1 ) FROM tab1 AS cor0
----
1457

query I rowsort
SELECT col0 * - - 12 FROM tab0
----
1044
1164
180

query I rowsort
SELECT 21 - - col2 FROM tab1
----
117
80
89

query I rowsort
SELECT DISTINCT - 97 * + 7 * col0 AS col0 FROM tab2
----
-31234
-43456
-50925

query I rowsort
SELECT col1 FROM tab2 WHERE 60 * - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2087
SELECT DISTINCT + col0 DIV - col1 + - - col0 + - 31 FROM tab2 cor0
----
15
33
43

skipif mysql # not compatible
query I rowsort label-2087
SELECT DISTINCT + col0 / - col1 + - - col0 + - 31 FROM tab2 cor0
----
15
33
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT ALL + COUNT( * ) - + 1 AS col1 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2088
SELECT ALL + COUNT ( * ) - + 1 AS col1 FROM tab1 AS cor0
----
2

query I rowsort
SELECT ALL + col1 - 12 FROM tab0 AS cor0
----
-11
69
9

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - ( + col0 ) * + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2091
SELECT CAST( NULL AS SIGNED ) * + col0 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2091
SELECT CAST ( NULL AS INTEGER ) * + col0 col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2092
SELECT ALL COUNT( * ) + + 60 AS col1 FROM tab1 AS cor0 WHERE CAST( col0 AS SIGNED ) IS NOT NULL
----
63

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL COUNT ( * ) + + 60 AS col1 FROM tab1 AS cor0 WHERE CAST ( col0 AS INTEGER ) IS NOT NULL
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2093
SELECT - CAST( + - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2093
SELECT - CAST ( + - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT + SUM( + - 59 ) AS col1 FROM tab0, tab1 AS cor0
----
-531

skipif mysql # not compatible
query I rowsort label-2094
SELECT + SUM ( + - 59 ) AS col1 FROM tab0, tab1 AS cor0
----
-531

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 93 col1, + col0 AS col0 FROM tab0
----
93
15
93
87
93
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT + COUNT( + 96 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2096
SELECT + COUNT ( + 96 ) AS col2 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2097
SELECT - 53 DIV - - 55 + - 91 FROM tab0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-2097
SELECT - 53 / - - 55 + - 91 FROM tab0
----
-91
-91
-91

query II rowsort
SELECT DISTINCT + col1 AS col1, col0 * - ( - - ( - col1 ) ) FROM tab1 AS cor0
----
14
714
47
4277
5
425

onlyif mysql # aggregate syntax: 
query II rowsort label-2099
SELECT COUNT( * ) AS col2, 73 FROM tab0 cor0
----
3
73

skipif mysql # not compatible
query II rowsort label-2099
SELECT COUNT ( * ) AS col2, 73 FROM tab0 cor0
----
3
73

query I rowsort
SELECT ALL - - ( - - col2 ) AS col0 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT * FROM tab0 WHERE + - 29 NOT IN ( 22 + col2 / + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 + + - col0 + col0 * - col2 * + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 + - 75 FROM tab1
----
-28
-61
-70

query I rowsort
SELECT col1 + + ( + + col0 ) FROM tab2
----
141
142
97

query I rowsort
SELECT DISTINCT col0 FROM tab2 cor0 WHERE - 67 IS NOT NULL
----
46
64
75

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 2 col1 FROM tab2 AS cor0
----
44
62
73

query I rowsort
SELECT DISTINCT + - col1 FROM tab2 AS cor0 WHERE col1 < NULL
----

query I rowsort
SELECT ALL - col1 * ( + 15 ) FROM tab0 AS cor0
----
-1215
-15
-315

query I rowsort
SELECT ALL + - 47 - + col2 FROM tab0 AS cor0
----
-146
-57
-94

query I rowsort
SELECT DISTINCT 96 - - 56 AS col2 FROM tab0 AS cor0
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT DISTINCT - MIN( DISTINCT + + col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2112
SELECT DISTINCT - MIN ( DISTINCT + + col1 ) AS col2 FROM tab2
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-2113
SELECT DISTINCT + ( - + col0 ) * + - col1 DIV + col1 + + 83 * col1 + + col2 AS col0 FROM tab2
----
4302
5694
6495

skipif mysql # not compatible
query I rowsort label-2113
SELECT DISTINCT + ( - + col0 ) * + - col1 / + col1 + + 83 * col1 + + col2 AS col0 FROM tab2
----
4302
5694
6495

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2114
SELECT CAST( NULL AS SIGNED ) * + + 30 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2114
SELECT CAST ( NULL AS INTEGER ) * + + 30 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col1 col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query II rowsort
SELECT - 16 AS col2, col2 FROM tab2 AS cor0
----
-16
23
-16
40
-16
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2117
SELECT 51 AS col2, COUNT( * ) AS col2 FROM tab0 AS cor0
----
51
3

skipif mysql # not compatible
query II rowsort label-2117
SELECT 51 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
51
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 98 * + col0 col0 FROM tab1 cor0
----
-4998
-8330
-8918

query II rowsort
SELECT DISTINCT - + col2 AS col0, + col2 + col1 FROM tab0 AS cor0
----
-10
31
-47
128
-99
100

query I rowsort
SELECT DISTINCT - col2 * 84 * col2 FROM tab1
----
-292404
-388416
-774144

query I rowsort
SELECT DISTINCT - 58 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2122
SELECT DISTINCT - col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2122
SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2123
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( - 28 AS SIGNED ) * col2 IN ( + - col2, + col2 / + 82, col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2123
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( - 28 AS INTEGER ) * col2 IN ( + - col2, + col2 / + 82, col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2124
SELECT DISTINCT - MAX( - 72 ) AS col0, + 65 * - 56 FROM tab1 cor0
----
72
-3640

skipif mysql # not compatible
query II rowsort label-2124
SELECT DISTINCT - MAX ( - 72 ) AS col0, + 65 * - 56 FROM tab1 cor0
----
72
-3640

query I rowsort
SELECT + col2 * + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
100
2209
9801

query II rowsort
SELECT - + ( col2 ), - col1 AS col1 FROM tab1 AS cor0
----
-59
-5
-68
-47
-96
-14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2127
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 61 * CAST( NULL AS SIGNED ) + + 96 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2127
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 61 * CAST ( NULL AS INTEGER ) + + 96 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 > + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * + + col0 + col2 FROM tab2
----
2139
4136
5683

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT + MIN( DISTINCT - col1 ) col1 FROM tab2
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2130
SELECT + MIN ( DISTINCT - col1 ) col1 FROM tab2
----
-77

query I rowsort
SELECT + col2 * - ( - + 88 ) * col0 AS col0 FROM tab1
----
430848
441320
544544

query I rowsort
SELECT + - col1 * - 35 AS col2 FROM tab2 AS cor0
----
1785
2345
2695

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2133
SELECT ALL - - CAST( NULL AS DECIMAL ) + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2133
SELECT ALL - - CAST ( NULL AS REAL ) + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT ALL + + MAX( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL + + MAX ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 33 col0 FROM tab1 AS cor0
----
-33

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2137
SELECT - + ( - ( + CAST( NULL AS DECIMAL ) ) ) / + col1 + - - col1 AS col1, + col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-2137
SELECT - + ( - ( + CAST ( NULL AS REAL ) ) ) / + col1 + - - col1 AS col1, + col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query II rowsort
SELECT ALL + 86, + col2 + col2 AS col2 FROM tab1
----
86
118
86
136
86
192

query I rowsort
SELECT 57 + 73 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ec85eb0bc5c919183cbcd7ee94cb222b

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT - COUNT( DISTINCT + + col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2140
SELECT - COUNT ( DISTINCT + + col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

query II rowsort
SELECT 95 AS col2, col0 FROM tab0 cor0
----
95
15
95
87
95
97

query II rowsort
SELECT + col2 AS col0, ( 11 ) AS col1 FROM tab1 AS cor0
----
59
11
68
11
96
11

query I rowsort
SELECT - + col2 - - col0 + col0 FROM tab2 AS cor0
----
69
88
92

onlyif mysql # DIV for integer division: 
query II rowsort label-2144
SELECT DISTINCT 9, 87 DIV + col2 AS col1 FROM tab2 AS cor0
----
9
1
9
2
9
3

skipif mysql # not compatible
query II rowsort label-2144
SELECT DISTINCT 9, 87 / + col2 AS col1 FROM tab2 AS cor0
----
9
1
9
2
9
3

query I rowsort
SELECT + ( - col1 ) + + 88 AS col0 FROM tab1
----
41
74
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT ALL - COUNT( - col0 ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2146
SELECT ALL - COUNT ( - col0 ) col0 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 col0 FROM tab0 cor0
----
13
13
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2148
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT 60 + col1 * + + CAST( NULL AS SIGNED ) * - 31 NOT BETWEEN + col1 * + 62 * ( col2 ) AND + col1
----

skipif mysql # not compatible
query I rowsort label-2148
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT 60 + col1 * + + CAST ( NULL AS INTEGER ) * - 31 NOT BETWEEN + col1 * + 62 * ( col2 ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT DISTINCT ( + COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT DISTINCT + - COUNT( * ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2150
SELECT DISTINCT + - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2151
SELECT - 50 DIV - 96 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2151
SELECT - 50 / - 96 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col1 ) * col0 col2 FROM tab1 AS cor0
----
-425
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, col0 - - col0 AS col0 FROM tab0 AS cor0
----
15
30
87
174
97
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 53 col1 FROM tab1 AS cor0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT MIN( - + 70 ) * + 66 + COUNT( * ) AS col2 FROM tab1
----
-4617

skipif mysql # not compatible
query I rowsort label-2155
SELECT MIN ( - + 70 ) * + 66 + COUNT ( * ) AS col2 FROM tab1
----
-4617

query III rowsort
SELECT * FROM tab0 WHERE NOT 54 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT DISTINCT COUNT( * ) * - + MAX( ALL + 41 ) FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-2157
SELECT DISTINCT COUNT ( * ) * - + MAX ( ALL + 41 ) FROM tab1
----
-123

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2158
SELECT ALL + CAST( + 96 AS SIGNED ) * col2 DIV - col0 col2 FROM tab0
----
-11
-300
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2158
SELECT ALL + CAST ( + 96 AS INTEGER ) * col2 / - col0 col2 FROM tab0
----
-11
-300
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2159
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - col1 + + col2 * col1 * - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2159
SELECT DISTINCT CAST ( NULL AS REAL ) + - col1 + + col2 * col1 * - col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL 38 + col2 AS col2 FROM tab1
----
106
134
97

query I rowsort
SELECT 91 + + + col1 * + col1 AS col1 FROM tab1
----
116
2300
287

query I rowsort
SELECT 58 * + col2 * - col0 FROM tab0 AS cor0
----
-40890
-50460
-556974

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2163
SELECT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2164
SELECT col0 - - col2 - - - col0, CAST( NULL AS SIGNED ) - - col0 AS col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-2164
SELECT col0 - - col2 - - - col0, CAST ( NULL AS INTEGER ) - - col0 AS col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT - 23 + - - col2 FROM tab1
----
36
45
73

query I rowsort
SELECT + col2 + + - col0 AS col2 FROM tab1 cor0
----
-23
-26
45

query I rowsort
SELECT ALL + 89 - - col0 FROM tab1 AS cor0
----
140
174
180

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT DISTINCT - - 36 - + - COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2168
SELECT DISTINCT - - 36 - + - COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
27

query I rowsort
SELECT - - 70 + - - ( - + ( - 12 ) ) FROM tab1 AS cor0
----
82
82
82

query I rowsort
SELECT ALL - + ( - 49 ) - + col2 AS col1 FROM tab2 cor0
----
-9
26
9

query I rowsort
SELECT + 62 FROM tab2 AS cor0 WHERE NULL > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT DISTINCT + COUNT( - 70 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2172
SELECT DISTINCT + COUNT ( - 70 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col1 * - 76 FROM tab1
----
1064
3572
380

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 = + - col1 AND NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2175
SELECT 64 DIV MAX( 10 ) * + 0 col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2175
SELECT 64 / MAX ( 10 ) * + 0 col1 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2176
SELECT 98 * + col1 + - - col0 * - col0 FROM tab0 WHERE NOT + 27 - CAST( 39 AS SIGNED ) BETWEEN - - ( + 68 ) AND ( + col0 )
----
-5511
-9311
7713

skipif mysql # not compatible
query I rowsort label-2176
SELECT 98 * + col1 + - - col0 * - col0 FROM tab0 WHERE NOT + 27 - CAST ( 39 AS INTEGER ) BETWEEN - - ( + 68 ) AND ( + col0 )
----
-5511
-9311
7713

query I rowsort
SELECT ALL ( + + 82 ) AS col2 FROM tab1
----
82
82
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2178
SELECT DISTINCT + CAST( MAX( ALL - col2 ) AS SIGNED ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT + CAST ( MAX ( ALL - col2 ) AS INTEGER ) AS col2 FROM tab0
----
-10

query II rowsort
SELECT + 25, + ( 67 ) + + 41 AS col0 FROM tab2 AS cor0
----
25
108
25
108
25
108

query II rowsort
SELECT + + 39, ( col0 ) + + - 85 AS col0 FROM tab1 AS cor0
----
39
-34
39
0
39
6

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT col0 + - + col0 <> + + 76
----

query I rowsort
SELECT DISTINCT + 34 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2183
SELECT DISTINCT - 88 + - + 92 * + - col1 + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2183
SELECT DISTINCT - 88 + - + 92 * + - col1 + CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT - col1 + - col0 * - col2 - + col2 AS col1 FROM tab0 AS cor0
----
577
839
9503

onlyif mysql # aggregate syntax: 
query II rowsort label-2185
SELECT DISTINCT 33 + - 62 AS col1, COUNT( DISTINCT col1 ) - + - 0 FROM tab1 AS cor0
----
-29
3

skipif mysql # not compatible
query II rowsort label-2185
SELECT DISTINCT 33 + - 62 AS col1, COUNT ( DISTINCT col1 ) - + - 0 FROM tab1 AS cor0
----
-29
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT DISTINCT COUNT( + 11 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT COUNT ( + 11 ) AS col0 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 43 col0 FROM tab0 cor0
----
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 46 col2 FROM tab2
----
113
123
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col1 * + 68 * - - col0 NOT BETWEEN NULL AND + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > + + 63 - + + ( + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2191
SELECT DISTINCT col2 + - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) + - + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT col2 + - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) + - + col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT 22 + COUNT( * ) + + 90 * + COUNT( * ) col2 FROM tab2
----
295

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2192
SELECT 22 + COUNT ( * ) + + 90 * + COUNT ( * ) col2 FROM tab2
----
295

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 + col0 + - - col1 / col2 <= col2
----
97
1
99

query I rowsort
SELECT 21 - col2 FROM tab0
----
-26
-78
11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2195
SELECT * FROM tab1 WHERE + col0 - - CAST( NULL AS SIGNED ) * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2195
SELECT * FROM tab1 WHERE + col0 - - CAST ( NULL AS INTEGER ) * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT DISTINCT COUNT( ALL + 16 ) + 39 FROM tab2 WHERE NOT NULL IN ( 80 * col0 )
----
39

skipif mysql # not compatible
query I rowsort label-2196
SELECT DISTINCT COUNT ( ALL + 16 ) + 39 FROM tab2 WHERE NOT NULL IN ( 80 * col0 )
----
39

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT ( - col1 * col0 ) IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2198
SELECT ALL - 8 * + CAST( col2 * - col1 AS SIGNED ) col2 FROM tab0
----
1680
30456
792

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2198
SELECT ALL - 8 * + CAST ( col2 * - col1 AS INTEGER ) col2 FROM tab0
----
1680
30456
792

onlyif mysql # DIV for integer division: 
query I rowsort label-2199
SELECT - 9 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2199
SELECT - 9 / col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2200
SELECT - COUNT( * ) DIV + ( + COUNT( * ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2200
SELECT - COUNT ( * ) / + ( + COUNT ( * ) ) FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2201
SELECT - CAST( - col0 AS SIGNED ) DIV col0 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2201
SELECT - CAST ( - col0 AS INTEGER ) / col0 AS col1 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2202
SELECT + COUNT( * ) DIV 5 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2202
SELECT + COUNT ( * ) / 5 col1 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2203
SELECT 93 DIV 42 AS col1 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-2203
SELECT 93 / 42 AS col1 FROM tab0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT ALL SUM( - col2 ) FROM tab1 WHERE - col0 IN ( - col2 / + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2204
SELECT ALL SUM ( - col2 ) FROM tab1 WHERE - col0 IN ( - col2 / + col1 )
----
NULL

query I rowsort
SELECT ALL - 88 + + col2 FROM tab1
----
-20
-29
8

query I rowsort
SELECT col1 + col1 FROM tab1 WHERE NOT ( + col1 + - 83 * col0 ) BETWEEN + col2 AND ( NULL )
----
10
28
94

query I rowsort
SELECT 48 + 81 FROM tab0
----
129
129
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2208
SELECT DISTINCT + CAST( 8 AS SIGNED ) AS col1 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT + CAST ( 8 AS INTEGER ) AS col1 FROM tab0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2209
SELECT col1 * + ( 23 ) + col2 FROM tab1 WHERE ( CAST( NULL AS SIGNED ) ) BETWEEN 98 - - 60 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2209
SELECT col1 * + ( 23 ) + col2 FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) ) BETWEEN 98 - - 60 AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * + 18 BETWEEN ( 17 ) AND - 50
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE - 19 BETWEEN ( NULL ) AND - col2 / - col2 + + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2212
SELECT CAST( 4 AS SIGNED ) + - COUNT( * ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2212
SELECT CAST ( 4 AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab1
----
1

query I rowsort
SELECT DISTINCT col0 + col1 * + col0 AS col2 FROM tab1
----
4368
510
765

query I rowsort
SELECT DISTINCT - 77 + - 85 AS col0 FROM tab1
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT SUM( + 36 ) FROM tab2 WHERE NOT - ( col0 ) IS NULL
----
108

skipif mysql # not compatible
query I rowsort label-2215
SELECT SUM ( + 36 ) FROM tab2 WHERE NOT - ( col0 ) IS NULL
----
108

query I rowsort
SELECT + 0 + - col2 AS col2 FROM tab2 WHERE ( col2 ) IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT ALL - 23 * 23 AS col1 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * col0 AS col2 FROM tab2 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT DISTINCT MAX( - col2 ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-2219
SELECT DISTINCT MAX ( - col2 ) AS col1 FROM tab1
----
-59

query I rowsort
SELECT - ( + 7 ) FROM tab0
----
-7
-7
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2221
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT + col0 * 72 = - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT + col0 * 72 = - col1
----
NULL

query I rowsort
SELECT - 54 * 93 AS col2 FROM tab0 cor0
----
-5022
-5022
-5022

onlyif mysql # DIV for integer division: 
query I rowsort label-2223
SELECT DISTINCT 39 DIV 8 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-2223
SELECT DISTINCT 39 / 8 FROM tab1 AS cor0
----
4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 12 * + col2 = NULL
----

query I rowsort
SELECT - 52 * 9 FROM tab2 AS cor0
----
-468
-468
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT DISTINCT MIN( - ( col0 ) ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2226
SELECT DISTINCT MIN ( - ( col0 ) ) AS col1 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT 27 + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
36

skipif mysql # not compatible
query I rowsort label-2227
SELECT 27 + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab2 WHERE NOT ( + ( col1 ) ) IN ( - col1 )
----
46
64
75

query I rowsort
SELECT ALL + col0 * 45 AS col1 FROM tab1
----
2295
3825
4095

query I rowsort
SELECT DISTINCT + 76 FROM tab1 AS cor0 CROSS JOIN tab1
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2231
SELECT ALL CAST( 3 AS SIGNED ) FROM tab0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-2231
SELECT ALL CAST ( 3 AS INTEGER ) FROM tab0
----
3
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2232
SELECT ALL - 46 DIV 9 + col2 FROM tab2
----
18
35
53

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL - 46 / 9 + col2 FROM tab2
----
18
35
53

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 60 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT - + COUNT( ALL + col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2234
SELECT - + COUNT ( ALL + col2 ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 23 * - col0 col1 FROM tab0 AS cor0
----
-2001
-2231
-345

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT - + MIN( ALL 94 ) FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2236
SELECT - + MIN ( ALL 94 ) FROM tab1 AS cor0
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2237
SELECT + ( + 11 ) DIV COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2237
SELECT + ( + 11 ) / COUNT ( * ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( 3 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT MIN( - col0 ) + + 63 * ( + 41 ) FROM tab2 AS cor0
----
2508

skipif mysql # not compatible
query I rowsort label-2239
SELECT MIN ( - col0 ) + + 63 * ( + 41 ) FROM tab2 AS cor0
----
2508

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 + col0 BETWEEN col2 AND 65
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2241
SELECT - col2 + + col1 DIV + col2 FROM tab0 AS cor0
----
-46
-8
-99

skipif mysql # not compatible
query I rowsort label-2241
SELECT - col2 + + col1 / + col2 FROM tab0 AS cor0
----
-46
-8
-99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT DISTINCT ( COUNT( * ) ) * - 77 FROM tab1 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-2243
SELECT DISTINCT ( COUNT ( * ) ) * - 77 FROM tab1 AS cor0
----
-231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2244
SELECT CAST( NULL AS SIGNED ) + - + col2 * + 54 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT CAST ( NULL AS INTEGER ) + - + col2 * + 54 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= ( col1 + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE 19 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT COUNT( * ) AS col1 FROM tab1 WHERE - 3 - 9 IN ( - 92 )
----
0

skipif mysql # not compatible
query I rowsort label-2247
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE - 3 - 9 IN ( - 92 )
----
0

query I rowsort
SELECT 31 * + 25 + - col1 FROM tab0
----
694
754
774

query III rowsort
SELECT * FROM tab1 WHERE ( 3 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= + col0 / col0
----

query I rowsort
SELECT ALL - 82 * + + col0 FROM tab2
----
-3772
-5248
-6150

query I rowsort
SELECT ALL col1 + + col2 * + col2 FROM tab1
----
3486
4671
9230

query III rowsort
SELECT ALL * FROM tab2 WHERE 68 + + col2 * - col1 NOT IN ( 60 * - 78 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + col1 / col0 )
----

query I rowsort
SELECT DISTINCT - 35 * 25 + 53 FROM tab1
----
-822

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT DISTINCT + 43 + COUNT( * ) FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-2256
SELECT DISTINCT + 43 + COUNT ( * ) FROM tab0
----
46

query III rowsort
SELECT * FROM tab0 WHERE - col2 IN ( + 82 * col2 )
----

query I rowsort
SELECT DISTINCT col1 + col1 + + col0 AS col1 FROM tab0
----
129
177
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT + + 48 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-2259
SELECT + + 48 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-144

query I rowsort
SELECT DISTINCT - - col2 * 95 + - 69 FROM tab0 AS cor0
----
4396
881
9336

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE ( - col1 ) = - ( + ( 97 ) ) * - col0
----

query I rowsort
SELECT ALL ( - ( col1 ) ) + col2 AS col0 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT ALL + + col2 * + 55 + - col0 FROM tab0 AS cor0
----
2570
463
5348

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + 23 + + col0 col0 FROM tab1 AS cor0
----
147
159
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2265
SELECT DISTINCT + COUNT( - + CAST( col2 AS SIGNED ) ) * COUNT( * ) col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2265
SELECT DISTINCT + COUNT ( - + CAST ( col2 AS INTEGER ) ) * COUNT ( * ) col1 FROM tab2 AS cor0
----
9

query I rowsort
SELECT + ( + 95 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT col2 FROM tab1 WHERE ( NOT - col0 * ( col1 ) IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 ) NOT BETWEEN 85 * col1 + + 49 AND col1 / - 26
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 89 * - col2 NOT IN ( + 8 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT + ( + ( - + 16 ) ) * COUNT( * ) + - 42 * COUNT( 34 ) AS col2 FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-2270
SELECT + ( + ( - + 16 ) ) * COUNT ( * ) + - 42 * COUNT ( 34 ) AS col2 FROM tab2
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT - 63 + - COUNT( * ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2271
SELECT - 63 + - COUNT ( * ) AS col2 FROM tab1
----
-66

query I rowsort
SELECT ALL - col1 * + 86 * col1 + - col0 * + col0 FROM tab0 AS cor0
----
-45495
-564471
-9495

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT - MAX( DISTINCT + + col1 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2273
SELECT - MAX ( DISTINCT + + col1 ) FROM tab1 cor0
----
-47

query II rowsort
SELECT ALL + - col1, col2 * col0 AS col0 FROM tab1 AS cor0
----
-14
4896
-47
6188
-5
5015

query I rowsort
SELECT - ( - 23 ) FROM tab1 cor0
----
23
23
23

query I rowsort
SELECT + col1 * + 49 FROM tab1 AS cor0
----
2303
245
686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2277
SELECT ALL + MAX( ALL + 77 ) - - 25 FROM tab2 AS cor0 WHERE - 82 * + CAST( + ( col1 ) AS SIGNED ) - - ( col1 ) IS NOT NULL
----
102

skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL + MAX ( ALL + 77 ) - - 25 FROM tab2 AS cor0 WHERE - 82 * + CAST ( + ( col1 ) AS INTEGER ) - - ( col1 ) IS NOT NULL
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2278
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( col0 AS SIGNED ) BETWEEN ( col2 ) AND ( 75 * + col1 + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2278
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( col0 AS INTEGER ) BETWEEN ( col2 ) AND ( 75 * + col1 + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 - col2 AS col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT - COUNT( * ) FROM tab1 cor0 WHERE NOT 15 * - col0 NOT IN ( 96 )
----
0

skipif mysql # not compatible
query I rowsort label-2280
SELECT - COUNT ( * ) FROM tab1 cor0 WHERE NOT 15 * - col0 NOT IN ( 96 )
----
0

query I rowsort
SELECT col2 * col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN col1 AND col1 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT COUNT( * ) FROM tab2 WHERE NOT 78 - + + ( - col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2282
SELECT COUNT ( * ) FROM tab2 WHERE NOT 78 - + + ( - col1 ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2283
SELECT DISTINCT 63 DIV - + col1, + col2 FROM tab2
----
-1
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-2283
SELECT DISTINCT 63 / - + col1, + col2 FROM tab2
----
-1
23
0
40
0
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT 57 * ( - COUNT( * ) ) FROM tab0
----
-171

skipif mysql # not compatible
query I rowsort label-2284
SELECT 57 * ( - COUNT ( * ) ) FROM tab0
----
-171

query II rowsort
SELECT ALL ( + col0 ) AS col0, - col2 FROM tab1
----
51
-96
85
-59
91
-68

onlyif mysql # DIV for integer division: 
query II rowsort label-2286
SELECT + 29 DIV + 4 AS col2, + col0 AS col1 FROM tab1
----
7
51
7
85
7
91

skipif mysql # not compatible
query II rowsort label-2286
SELECT + 29 / + 4 AS col2, + col0 AS col1 FROM tab1
----
7
51
7
85
7
91

query I rowsort
SELECT ( - col2 ) * - - 99 FROM tab1
----
-5841
-6732
-9504

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) >= + col2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 90 >= 19
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( NOT 42 > ( NULL ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 * + - 29 * + - col0 + - - col1 col1 FROM tab2
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2292
SELECT DISTINCT + col0 * - col2 * - col0 + - col1 + col1 + col1 DIV col0 AS col1 FROM tab2
----
163841
326250
48669

skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT + col0 * - col2 * - col0 + - col1 + col1 + col1 / col0 AS col1 FROM tab2
----
163841
326250
48669

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT DISTINCT - - 37 + - SUM( + col2 ) AS col1 FROM tab0 AS cor0
----
-119

skipif mysql # not compatible
query I rowsort label-2293
SELECT DISTINCT - - 37 + - SUM ( + col2 ) AS col1 FROM tab0 AS cor0
----
-119

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2294
SELECT DISTINCT + ( + col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - + 41, CAST( - - 46 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-2294
SELECT DISTINCT + ( + col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - + 41, CAST ( - - 46 AS REAL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + + - col0 > ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT ALL - - COUNT( * ) + - 93 * - 51 AS col0 FROM tab2 AS cor0
----
4746

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL - - COUNT ( * ) + - 93 * - 51 AS col0 FROM tab2 AS cor0
----
4746

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 80 + + + col1 * - col0 * - 99 - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + ( - + col1 ) AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE - col1 - col0 IS NOT NULL
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 36 / - 51 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT - MIN( ALL + + col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2302
SELECT - MIN ( ALL + + col0 ) AS col1 FROM tab1 AS cor0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-2303
SELECT - col1 * + + col2 DIV col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2303
SELECT - col1 * + + col2 / col2 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT 63 - - 11 + col2 FROM tab0
----
121
173
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT ( - COUNT( * ) ) + - 45 FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-2305
SELECT ( - COUNT ( * ) ) + - 45 FROM tab0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2306
SELECT ALL CAST( - + 97 AS SIGNED ) + + ( col0 ) AS col2 FROM tab2
----
-22
-33
-51

skipif mysql # not compatible
query I rowsort label-2306
SELECT ALL CAST ( - + 97 AS INTEGER ) + + ( col0 ) AS col2 FROM tab2
----
-22
-33
-51

query I rowsort
SELECT ALL - 0 - + + col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT ( - col2 ) * + 39 + + 87 FROM tab2
----
-1473
-2175
-810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2309
SELECT DISTINCT 53 + + col2 / + col2 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT 53 + + col2 / + col2 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL + 87 - 84, + col0 FROM tab2 AS cor0
----
3
46
3
64
3
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT COUNT( * ) + + 33 + - 54 FROM tab0 AS cor0 WHERE - 28 / - col1 NOT IN ( col1 )
----
-18

skipif mysql # not compatible
query I rowsort label-2311
SELECT COUNT ( * ) + + 33 + - 54 FROM tab0 AS cor0 WHERE - 28 / - col1 NOT IN ( col1 )
----
-18

query I rowsort
SELECT DISTINCT ( - - col0 ) - + col1 AS col2 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2313
SELECT ALL + + col2 FROM tab2 AS cor0 WHERE NULL BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL + + col2 FROM tab2 AS cor0 WHERE NULL BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT + MAX( col2 ) * - - SUM( ALL + + col2 ) FROM tab2 AS cor0
----
7018

skipif mysql # not compatible
query I rowsort label-2314
SELECT + MAX ( col2 ) * - - SUM ( ALL + + col2 ) FROM tab2 AS cor0
----
7018

query I rowsort
SELECT 44 * - - 90 FROM tab1 AS cor0
----
3960
3960
3960

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * 37 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN + ( col1 ) AND - + 64 + col1
----

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT col0 + + - 21 NOT IN ( col1 )
----

query II rowsort
SELECT - 46 AS col0, - 17 AS col2 FROM tab0
----
-46
-17
-46
-17
-46
-17

query II rowsort
SELECT col1 * - - 44 * - col0, + col0 FROM tab2
----
-103224
46
-216832
64
-221100
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT + SUM( + + col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2321
SELECT + SUM ( + + col0 ) FROM tab0
----
199

query I rowsort
SELECT ALL col1 * + + col0 AS col2 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 NOT BETWEEN 6 / col2 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2324
SELECT * FROM tab1 WHERE NOT + col1 + - 51 BETWEEN + 19 * CAST( NULL AS DECIMAL ) AND - + col1 - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2324
SELECT * FROM tab1 WHERE NOT + col1 + - 51 BETWEEN + 19 * CAST ( NULL AS REAL ) AND - + col1 - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + col2 * - - 22 * - col1 col1, + 65 col0 FROM tab1
----
-29517
65
-6405
65
-70221
65

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT 25 * col1 + + col0 NOT IN ( - + col1 - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2327
SELECT DISTINCT + - 63 DIV - col0 col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2327
SELECT DISTINCT + - 63 / - col0 col1 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT col2 * - + 71 FROM tab0 AS cor0
----
-3337
-7029
-710

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - - 90 IS NULL AND NOT ( NULL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-2330
SELECT ALL - 4 DIV - + 16 * - 3 AS col0, - col2 AS col0 FROM tab1 AS cor0
----
0
-59
0
-68
0
-96

skipif mysql # not compatible
query II rowsort label-2330
SELECT ALL - 4 / - + 16 * - 3 AS col0, - col2 AS col0 FROM tab1 AS cor0
----
0
-59
0
-68
0
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT DISTINCT + MIN( + 13 ) AS col1 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-2331
SELECT DISTINCT + MIN ( + 13 ) AS col1 FROM tab0 AS cor0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2332
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * 33 - col0 AS col2 FROM tab2 WHERE ( NOT 30 / + - ( - 76 ) > + col1 )
----
1637
2136
2477

onlyif mysql # DIV for integer division: 
query II rowsort label-2335
SELECT col2 + + col0 AS col0, - 92 DIV - - col0 FROM tab2 AS cor0
----
104
-1
133
-1
69
-2

skipif mysql # not compatible
query II rowsort label-2335
SELECT col2 + + col0 AS col0, - 92 / - - col0 FROM tab2 AS cor0
----
104
-1
133
-1
69
-2

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 4 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 61 ) < col0
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2338
SELECT ALL - MAX( ALL - 45 ) DIV + 43 AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL - MAX ( ALL - 45 ) / + 43 AS col2 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
3

query I rowsort
SELECT - 36 + - 52 + - col1 + 81 FROM tab0 cor0
----
-28
-8
-88

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 * + col0 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-2342
SELECT COUNT( * ) AS col0, COUNT( * ) + - MAX( ALL col1 ) AS col1 FROM tab1
----
3
-44

skipif mysql # not compatible
query II rowsort label-2342
SELECT COUNT ( * ) AS col0, COUNT ( * ) + - MAX ( ALL col1 ) AS col1 FROM tab1
----
3
-44

query I rowsort
SELECT DISTINCT 19 + - col0 FROM tab0
----
-68
-78
4

query I rowsort
SELECT col2 - - col0 - + col0 * 67 + + ( + col1 ) FROM tab1 AS cor0
----
-3256
-5546
-5891

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 57 <> NULL
----

query I rowsort
SELECT DISTINCT + 6 * 8 * - col2 - 96 + - ( col1 ) AS col1 FROM tab0 AS cor0
----
-2433
-4849
-597

query II rowsort
SELECT ALL + 88 AS col2, + 29 * - - col0 + 71 FROM tab0
----
88
2594
88
2884
88
506

query I rowsort
SELECT - 7 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query II rowsort
SELECT - 27, + col2 FROM tab2
----
-27
23
-27
40
-27
58

query I rowsort
SELECT - 8 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query II rowsort
SELECT - col1 AS col2, + col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 88 AS col2, - col2 col2 FROM tab0 AS cor0
----
88
-10
88
-47
88
-99

query I rowsort
SELECT ALL col0 * + - col1 + col2 FROM tab2 AS cor0
----
-2323
-4888
-4967

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, + col0 FROM tab1 cor0
----
51
51
85
85
91
91

query II rowsort
SELECT ALL 86 AS col2, - col1 * + col0 AS col2 FROM tab0 AS cor0
----
86
-1215
86
-1827
86
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2356
SELECT CAST( + + ( - - 69 ) AS SIGNED ) AS col2 FROM tab1
----
69
69
69

skipif mysql # not compatible
query I rowsort label-2356
SELECT CAST ( + + ( - - 69 ) AS INTEGER ) AS col2 FROM tab1
----
69
69
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 * + col2 col0 FROM tab1
----
-1416
-1632
-2304

query I rowsort
SELECT - 42 * - col2 FROM tab0
----
1974
4158
420

query II rowsort
SELECT - col0 * - 94, col0 FROM tab0
----
1410
15
8178
87
9118
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT ALL + COUNT( * ) + + - COUNT( * ) AS col0 FROM tab0 WHERE ( NOT ( - + 74 IS NOT NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL + COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab0 WHERE ( NOT ( - + 74 IS NOT NULL ) )
----
0

query I rowsort
SELECT + - 24 FROM tab2 WHERE NOT NULL BETWEEN - col0 + + col2 - - - col0 AND - col1 * + col2
----

query II rowsort
SELECT DISTINCT + - ( + col0 ) AS col1, col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT COUNT( + col0 ) + + + COUNT( * ) * + + 12 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-2363
SELECT COUNT ( + col0 ) + + + COUNT ( * ) * + + 12 FROM tab0
----
39

query I rowsort
SELECT DISTINCT col1 + + 27 * col0 AS col1 FROM tab0
----
2370
2620
486

query I rowsort
SELECT ALL 28 FROM tab1 AS cor0 WHERE - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT DISTINCT COUNT( DISTINCT 93 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT COUNT ( DISTINCT 93 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT + col2 AS col2 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * col0 - 78 + ( - col1 ) FROM tab0 AS cor0
----
-384
-7668
-9488

query II rowsort
SELECT ALL + col0 AS col1, - 18 * + col0 FROM tab2 cor0
----
46
-828
64
-1152
75
-1350

query I rowsort
SELECT DISTINCT - col0 - - col0 * - + col2 * col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col0 + 84
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - + col2 col0 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT + col0 - + + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 26 AS col2 FROM tab2 WHERE - + 21 BETWEEN + + 35 AND - - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2374
SELECT DISTINCT + 31 + - 14 col1, SUM( DISTINCT + - col0 ) FROM tab2
----
17
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2374
SELECT DISTINCT + 31 + - 14 col1, SUM ( DISTINCT + - col0 ) FROM tab2
----
17
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + + + col2 col1, col2 AS col1 FROM tab2
----
116
58
46
23
80
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2376
SELECT - col1 + + 9 DIV - col0 + - - col2 col2 FROM tab0
----
-11
-34
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2376
SELECT - col1 + + 9 / - col0 + - - col2 col2 FROM tab0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2377
SELECT - ( + CAST( NULL AS SIGNED ) ) FROM tab1 WHERE - + 67 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2377
SELECT - ( + CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE - + 67 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT DISTINCT SUM( + col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2379
SELECT DISTINCT SUM ( + col2 ) AS col2 FROM tab0 AS cor0
----
156

query I rowsort
SELECT - - 73 * col1 FROM tab2 AS cor0
----
3723
4891
5621

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2381
SELECT ALL CAST( - + col2 AS SIGNED ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2381
SELECT ALL CAST ( - + col2 AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT + ( - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT + + SUM( ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2383
SELECT + + SUM ( ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT - 30 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2385
SELECT + - 0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2385
SELECT + - 0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2386
SELECT - ( + col1 ) DIV - 89 + + - col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2386
SELECT - ( + col1 ) / - 89 + + - col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL + col0 * 90 AS col2 FROM tab0 AS cor0
----
1350
7830
8730

query I rowsort
SELECT DISTINCT 80 + - 24 AS col2 FROM tab2
----
56

query I rowsort
SELECT ( - 4 ) FROM tab2
----
-4
-4
-4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col2 >= + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT ALL COUNT( * ) * 62 + 84 col0 FROM tab0
----
270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2391
SELECT ALL COUNT ( * ) * 62 + 84 col0 FROM tab0
----
270

query I rowsort
SELECT 66 * + col0 + 21 FROM tab0
----
1011
5763
6423

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2393
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 BETWEEN - col0 + + ( - ( col2 ) ) + + 88 * + CAST( col1 AS SIGNED ) * + col1 AND col0
----

skipif mysql # not compatible
query III rowsort label-2393
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 BETWEEN - col0 + + ( - ( col2 ) ) + + 88 * + CAST ( col1 AS INTEGER ) * + col1 AND col0
----

query I rowsort
SELECT + col2 * + 48 * ( col2 ) FROM tab0 AS cor0
----
106032
470448
4800

query I rowsort
SELECT 95 * ( col0 ) * + + col0 AS col1 FROM tab0 cor0
----
21375
719055
893855

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2396
SELECT DISTINCT - + 25 FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2396
SELECT DISTINCT - + 25 FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT - ( 90 ) + MAX( + col1 ) FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-2397
SELECT - ( 90 ) + MAX ( + col1 ) FROM tab1 AS cor0
----
-43

query III rowsort
SELECT ALL 31 + - col1, 33 AS col0, + col2 FROM tab1 AS cor0
----
9 values hashing to 9da03fffe04af8ae785e4175b90afd34

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT - MAX( - col0 ) * - 82 + 73 AS col1 FROM tab1 AS cor0
----
-4109

skipif mysql # not compatible
query I rowsort label-2399
SELECT - MAX ( - col0 ) * - 82 + 73 AS col1 FROM tab1 AS cor0
----
-4109

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2400
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( - + col2 AS DECIMAL ) + + + col0 <> NULL
----

skipif mysql # not compatible
query III rowsort label-2400
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( - + col2 AS REAL ) + + + col0 <> NULL
----

query I rowsort
SELECT DISTINCT + 55 - - col2 + + col1 * col1 FROM tab2 AS cor0
----
2679
4602
6024

query I rowsort
SELECT + + col0 FROM tab2 cor0 WHERE col2 <> - + col2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2403
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2403
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT BETWEEN 67 * + - col2 + col0 AND + + 64 + + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 col2 FROM tab2 AS cor0
----
-67
-67
-67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2406
SELECT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) NOT BETWEEN + col0 * + + col1 AND + col0
----

skipif mysql # not compatible
query III rowsort label-2406
SELECT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN + col0 * + + col1 AND + col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT ALL COUNT( * ) * 19 AS col1 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL COUNT ( * ) * 19 AS col1 FROM tab2
----
57

query I rowsort
SELECT DISTINCT + 3 * + 71 AS col2 FROM tab2
----
213

query III rowsort
SELECT * FROM tab1 WHERE ( ( NOT - - col2 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 59 - + col1 AS col1 FROM tab2
----
-18
-8
8

query I rowsort
SELECT 47 * + 10 AS col1 FROM tab0
----
470
470
470

onlyif mysql # DIV for integer division: 
query I rowsort label-2413
SELECT ALL + col0 DIV - - 3 AS col1 FROM tab1
----
17
28
30

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL + col0 / - - 3 AS col1 FROM tab1
----
17
28
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, + ( - 25 ) AS col2 FROM tab0
----
10
-25
47
-25
99
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT + - MIN( - + col0 ) col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2415
SELECT + - MIN ( - + col0 ) col0 FROM tab0 AS cor0
----
97

query II rowsort
SELECT ALL col1, 22 - + 90 FROM tab0 AS cor0
----
1
-68
21
-68
81
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-2417
SELECT + COUNT( * ), COUNT( * ) col2 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2417
SELECT + COUNT ( * ), COUNT ( * ) col2 FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT + SUM( ALL - 70 ) + - 22 + - 96 AS col2 FROM tab2 AS cor0 WHERE NOT + 71 * - - 64 < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2418
SELECT + SUM ( ALL - 70 ) + - 22 + - 96 AS col2 FROM tab2 AS cor0 WHERE NOT + 71 * - - 64 < ( NULL )
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + 73 > - 76
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2420
SELECT - - CAST( NULL AS SIGNED ) * COUNT( + col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2420
SELECT - - CAST ( NULL AS INTEGER ) * COUNT ( + col1 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + 61 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2422
SELECT ALL - 14 DIV COUNT( * ) + + MIN( DISTINCT + col0 ) AS col1 FROM tab1 WHERE 55 * 34 + - 17 + - 44 >= - + col1
----
47

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL - 14 / COUNT ( * ) + + MIN ( DISTINCT + col0 ) AS col1 FROM tab1 WHERE 55 * 34 + - 17 + - 44 >= - + col1
----
47

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE - ( + + col1 ) <= 88
----
10
47
99

query I rowsort
SELECT DISTINCT + col1 + - 64 AS col0 FROM tab2
----
-13
13
3

query I rowsort
SELECT DISTINCT col0 + 62 FROM tab2
----
108
126
137

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT + MAX( - - 1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2426
SELECT + MAX ( - - 1 ) AS col0 FROM tab0
----
1

query I rowsort
SELECT DISTINCT + ( - + col0 ) + - - 82 + col0 * - ( + + col0 ) AS col2 FROM tab2
----
-2080
-4078
-5618

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2428
SELECT ALL COUNT( * ) DIV - + 47 + - COUNT( * ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL COUNT ( * ) / - + 47 + - COUNT ( * ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT + - 82 * - - 44 + ( 15 ) FROM tab0 AS cor0
----
-3593
-3593
-3593

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 col0 FROM tab1 cor0
----
-33

query I rowsort
SELECT ALL - 9 * col1 * col1 AS col1 FROM tab0 AS cor0
----
-3969
-59049
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT ALL - MIN( - 47 ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
47

skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL - MIN ( - 47 ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
47

query I rowsort
SELECT ALL - 46 * + col2 + + col2 FROM tab1
----
-2655
-3060
-4320

query I rowsort
SELECT + - 41 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT - ( - + ( + col2 ) ) AS col2 FROM tab0
----
10
47
99

query I rowsort
SELECT 10 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT + col2 * + + col1 * col1 * 11 FROM tab2
----
2608760
2863982
658053

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2438
SELECT DISTINCT + col0 + + CAST( NULL AS SIGNED ) FROM tab2 WHERE ( col0 * + 11 * + - col2 + 99 + 32 >= NULL )
----

skipif mysql # not compatible
query I rowsort label-2438
SELECT DISTINCT + col0 + + CAST ( NULL AS INTEGER ) FROM tab2 WHERE ( col0 * + 11 * + - col2 + 99 + 32 >= NULL )
----

query I rowsort
SELECT DISTINCT ( - 62 ) + - 67 AS col0 FROM tab2
----
-129

query I rowsort
SELECT ALL + + 94 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col1 FROM tab0 WHERE ( NOT + ( + col0 ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2442
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2443
SELECT ALL + CAST( NULL AS SIGNED ) / - col1 / - ( - - col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL + CAST ( NULL AS INTEGER ) / - col1 / - ( - - col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2444
SELECT DISTINCT - col2 - + CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT - col2 - + CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT COUNT( * ) - - 83 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-2445
SELECT COUNT ( * ) - - 83 FROM tab2 AS cor0
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - 77 - - + 24 col1 FROM tab2 AS cor0
----
3951
5183
5953

query I rowsort
SELECT DISTINCT - col1 * + col1 * - 94 FROM tab1 AS cor0
----
18424
207646
2350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2448
SELECT + CAST( + COUNT( * ) AS SIGNED ) - 89 AS col2 FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-2448
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) - 89 AS col2 FROM tab0 AS cor0
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2449
SELECT CAST( - col1 AS SIGNED ) col1, + col2 FROM tab2
----
-51
23
-67
58
-77
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2449
SELECT CAST ( - col1 AS INTEGER ) col1, + col2 FROM tab2
----
-51
23
-67
58
-77
40

query I rowsort
SELECT DISTINCT col1 * col0 * + + ( + + col1 ) AS col2 FROM tab0
----
38367
97
98415

query I rowsort
SELECT ALL 77 FROM tab2 WHERE NOT + + 82 + + 2 IS NULL
----
77
77
77

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col2 BETWEEN col0 AND - - 50
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - ( + col2 ), ( - col0 ) AS col0 FROM tab2
----
-23
-46
-40
-64
-58
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2454
SELECT ALL 35 DIV + 19 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2454
SELECT ALL 35 / + 19 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2455
SELECT COUNT( * ) DIV - 95 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2455
SELECT COUNT ( * ) / - 95 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2456
SELECT + col0 * - CAST( NULL AS SIGNED ) * 49 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2456
SELECT + col0 * - CAST ( NULL AS INTEGER ) * 49 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 46 * - 60 + + col0 AS col1 FROM tab1 AS cor0
----
2811
2845
2851

onlyif mysql # DIV for integer division: 
query I rowsort label-2458
SELECT DISTINCT col0 DIV + + 46 + + 74 + + col1 FROM tab0 AS cor0
----
155
77
96

skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT col0 / + + 46 + + 74 + + col1 FROM tab0 AS cor0
----
155
77
96

query I rowsort
SELECT DISTINCT col1 * + + ( - col1 ) * 74 AS col2 FROM tab0 AS cor0
----
-32634
-485514
-74

query III rowsort
SELECT * FROM tab1 WHERE NULL IS NULL OR 50 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-2461
SELECT + col0, - col1 DIV + col2 FROM tab1
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-2461
SELECT + col0, - col1 / + col2 FROM tab1
----
51
0
85
0
91
0

query I rowsort
SELECT ALL - col1 * 72 AS col1 FROM tab1
----
-1008
-3384
-360

query II rowsort
SELECT col1, + col1 FROM tab1 cor0
----
14
14
47
47
5
5

query II rowsort
SELECT ALL - - col1, col0 AS col1 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2465
SELECT - - MAX( CAST( - - col1 AS SIGNED ) ) col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2465
SELECT - - MAX ( CAST ( - - col1 AS INTEGER ) ) col2 FROM tab2 AS cor0
----
77

query II rowsort
SELECT ALL - col0 AS col1, 54 FROM tab2 AS cor0
----
-46
54
-64
54
-75
54

query II rowsort
SELECT + col1, 73 FROM tab1 AS cor0
----
14
73
47
73
5
73

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 6 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT COUNT( * ) * - 17 + + SUM( - + col0 ) AS col1 FROM tab2
----
-236

skipif mysql # not compatible
query I rowsort label-2469
SELECT COUNT ( * ) * - 17 + + SUM ( - + col0 ) AS col1 FROM tab2
----
-236

query I rowsort
SELECT ALL col1 + col0 * - + col0 FROM tab0
----
-144
-7548
-9408

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT DISTINCT - SUM( + + 53 ) AS col0 FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-2471
SELECT DISTINCT - SUM ( + + 53 ) AS col0 FROM tab0 AS cor0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT + + COUNT( * ) * + 76 * + - COUNT( + 13 ) FROM tab0 AS cor0
----
-684

skipif mysql # not compatible
query I rowsort label-2472
SELECT + + COUNT ( * ) * + 76 * + - COUNT ( + 13 ) FROM tab0 AS cor0
----
-684

query I rowsort
SELECT - col0 + + col1 * + 43 * - 49 AS col0 FROM tab0 AS cor0
----
-170682
-2204
-44334

onlyif mysql # aggregate syntax: 
query II rowsort label-2474
SELECT ALL - 11 AS col2, + COUNT( * ) + 40 FROM tab1 AS cor0
----
-11
43

skipif mysql # not compatible
query II rowsort label-2474
SELECT ALL - 11 AS col2, + COUNT ( * ) + 40 FROM tab1 AS cor0
----
-11
43

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( + - 10 )
----

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT 40 * - col1 BETWEEN col2 / - + col1 AND - col1
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) = - - col0
----
0

skipif mysql # not compatible
query I rowsort label-2477
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) = - - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT DISTINCT + ( - COUNT( * ) ) * + COUNT( * ) + + MIN( ( - 48 ) ) AS col0 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-2478
SELECT DISTINCT + ( - COUNT ( * ) ) * + COUNT ( * ) + + MIN ( ( - 48 ) ) AS col0 FROM tab2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2479
SELECT DISTINCT - col2 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2479
SELECT DISTINCT - col2 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT ALL col2 * + - ( - col0 ) FROM tab0
----
705
870
9603

query I rowsort
SELECT - col1 * col1 * - + ( 4 ) AS col2 FROM tab0
----
1764
26244
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT ALL SUM( + col0 ) * COUNT( * ) AS col0 FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-2482
SELECT ALL SUM ( + col0 ) * COUNT ( * ) AS col0 FROM tab2
----
555

query I rowsort
SELECT - col2 * + col2 + + col1 + + 46 FROM tab2 AS cor0
----
-1477
-3251
-432

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2484
SELECT * FROM tab0 AS cor0 WHERE NOT + 65 BETWEEN CAST( + 61 AS SIGNED ) AND - 87
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2484
SELECT * FROM tab0 AS cor0 WHERE NOT + 65 BETWEEN CAST ( + 61 AS INTEGER ) AND - 87
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * + + col1 * + col0 AS col1 FROM tab2 AS cor0
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT DISTINCT - 56 * - - MAX( ALL - + 84 ) AS col0 FROM tab0 AS cor0
----
4704

skipif mysql # not compatible
query I rowsort label-2486
SELECT DISTINCT - 56 * - - MAX ( ALL - + 84 ) AS col0 FROM tab0 AS cor0
----
4704

query I rowsort
SELECT - + 42 - - col1 AS col0 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-21
-41
39

query I rowsort
SELECT - 66 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT col1 + + - 11 FROM tab2
----
40
56
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 29 NOT BETWEEN NULL AND - col2 * + - 68 + - 69
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2492
SELECT + COUNT( * ) * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2492
SELECT + COUNT ( * ) * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT DISTINCT + MIN( ALL - 22 ) AS col1 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-2493
SELECT DISTINCT + MIN ( ALL - 22 ) AS col1 FROM tab2 AS cor0
----
-22

query I rowsort
SELECT - ( - + col0 ) AS col0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE NULL BETWEEN col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE NULL BETWEEN col2 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2496
SELECT DISTINCT 80 * - col0 * - - CAST( NULL AS SIGNED ) + + col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2496
SELECT DISTINCT 80 * - col0 * - - CAST ( NULL AS INTEGER ) + + col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT DISTINCT MAX( DISTINCT - col0 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2497
SELECT DISTINCT MAX ( DISTINCT - col0 ) AS col0 FROM tab2
----
-46

query I rowsort
SELECT - 36 - + col0 FROM tab1
----
-121
-127
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT + 3 + - 43 * + COUNT( * ) * + + 12 * - 2 * + + 8 col2 FROM tab2
----
24771

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2499
SELECT + 3 + - 43 * + COUNT ( * ) * + + 12 * - 2 * + + 8 col2 FROM tab2
----
24771

query I rowsort
SELECT DISTINCT + col1 * + + 84 + + col0 * ( - - col0 ) AS col0 FROM tab0
----
7029
9333
9493

query I rowsort
SELECT col1 + 35 + col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 39 + - 21 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT ALL - MIN( + + col0 ) col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2503
SELECT ALL - MIN ( + + col0 ) col1 FROM tab2 AS cor0
----
-46

query II rowsort
SELECT col1 * - + col0 AS col2, + 94 FROM tab0
----
-1215
94
-1827
94
-97
94

query I rowsort
SELECT - - 98 AS col0 FROM tab1 cor0
----
98
98
98

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > - 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2507
SELECT DISTINCT + CAST( - 74 AS SIGNED ) FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-2507
SELECT DISTINCT + CAST ( - 74 AS INTEGER ) FROM tab2
----
-74

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 <= + + col0 * + col1 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 62 - 27 + - col2 ) < - ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT ALL ( + - COUNT( * ) ) * + 88 FROM tab2
----
-264

skipif mysql # not compatible
query I rowsort label-2510
SELECT ALL ( + - COUNT ( * ) ) * + 88 FROM tab2
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT - SUM( DISTINCT - col0 ) * COUNT( * ) FROM tab2 cor0
----
555

skipif mysql # not compatible
query I rowsort label-2511
SELECT - SUM ( DISTINCT - col0 ) * COUNT ( * ) FROM tab2 cor0
----
555

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - 26 * - - col1 AND + + col2
----

query I rowsort
SELECT ( - - 30 ) FROM tab2 AS cor0
----
30
30
30

onlyif mysql # DIV for integer division: 
query II rowsort label-2514
SELECT + ( + col0 ) DIV - col2, - col2 * + + 50 AS col1 FROM tab0 AS cor0
----
-8
-500
0
-2350
0
-4950

skipif mysql # not compatible
query II rowsort label-2514
SELECT + ( + col0 ) / - col2, - col2 * + + 50 AS col1 FROM tab0 AS cor0
----
-8
-500
0
-2350
0
-4950

query I rowsort
SELECT - col0 * + + 87 FROM tab1
----
-4437
-7395
-7917

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 24 * - col1 * col1 col0 FROM tab0 AS cor0
----
-10497
-157449
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col2 + - col0 col2 FROM tab2 AS cor0
----
28
50
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT - - 91 + MAX( - col0 ) col0 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2518
SELECT - - 91 + MAX ( - col0 ) col0 FROM tab1 AS cor0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2519
SELECT + MAX( col0 ) DIV + - ( - COUNT( * ) ) + - ( - 91 ) AS col2 FROM tab2 AS cor0
----
116

skipif mysql # not compatible
query I rowsort label-2519
SELECT + MAX ( col0 ) / + - ( - COUNT ( * ) ) + - ( - 91 ) AS col2 FROM tab2 AS cor0
----
116

query I rowsort
SELECT DISTINCT 30 * + + 47 * + col2 FROM tab2 AS cor0
----
32430
56400
81780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab2 AS cor0 WHERE NOT NULL <= col2
----

query II rowsort
SELECT - + col0 + - col0 AS col0, 48 AS col1 FROM tab1 AS cor0
----
-102
48
-170
48
-182
48

query I rowsort
SELECT - col1 * col0 + - + col0 AS col1 FROM tab2
----
-2392
-4992
-5100

query III rowsort
SELECT * FROM tab1 WHERE NULL <= 19
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col0 col2 FROM tab2 WHERE - 39 - - + 53 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2526
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) + 69 + + 58 AS col0 FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) + 69 + + 58 AS col0 FROM tab2
----
124

query II rowsort
SELECT ALL - col1 + + 39, 99 + + - 26 - - + 74 + - 73 AS col2 FROM tab1
----
-8
74
25
74
34
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT - + COUNT( 42 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2528
SELECT - + COUNT ( 42 ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - col1 AS col0, - 50 FROM tab2 AS cor0
----
-51
-50
-67
-50
-77
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-2530
SELECT ALL - ( ( SUM( - col1 ) ) ) AS col1, COUNT( * ) col1 FROM tab1 AS cor0
----
66
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2530
SELECT ALL - ( ( SUM ( - col1 ) ) ) AS col1, COUNT ( * ) col1 FROM tab1 AS cor0
----
66
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT + MAX( col2 ) AS col0 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-2531
SELECT + MAX ( col2 ) AS col0 FROM tab2 cor0
----
58

query II rowsort
SELECT DISTINCT + col0 AS col1, + 90 FROM tab1 AS cor0
----
51
90
85
90
91
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT ( + - COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2533
SELECT ( + - COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT - + col2 * col2 + - col1 FROM tab1 AS cor0 WHERE NOT - col1 * + col1 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2535
SELECT ALL MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2535
SELECT ALL MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 / + 61 = - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * - + ( col0 ) AS col0 FROM tab0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query II rowsort label-2538
SELECT COUNT( * ) * - COUNT( * ) col1, + COUNT( * ) FROM tab1
----
-9
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2538
SELECT COUNT ( * ) * - COUNT ( * ) col1, + COUNT ( * ) FROM tab1
----
-9
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2539
SELECT + ( - col2 ) DIV - col2 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2539
SELECT + ( - col2 ) / - col2 AS col0 FROM tab2
----
1
1
1

query I rowsort
SELECT - - 59 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + - 52 FROM tab1 WHERE NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 * + col2 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( + - ( + col1 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * col2 >= NULL
----

query I rowsort
SELECT - + col0 + + col1 FROM tab2 AS cor0 WHERE NOT ( NOT ( 47 IS NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 12 * + - 23 * - col2 col2, col2 AS col1 FROM tab1
----
16284
59
18768
68
26496
96

query III rowsort
SELECT * FROM tab0 WHERE - - 79 NOT BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2548
SELECT DISTINCT - ( + - col1 ) + - + 61 AS col1, - CAST( NULL AS SIGNED ) col1 FROM tab2
----
-10
NULL
16
NULL
6
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2548
SELECT DISTINCT - ( + - col1 ) + - + 61 AS col1, - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
-10
NULL
16
NULL
6
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2549
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2549
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 * + 55 + 64 col0 FROM tab1
----
3474
3474
3474

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2551
SELECT ALL - COUNT( DISTINCT + + col1 ) + - CAST( NULL AS SIGNED ) col0 FROM tab1 WHERE NOT 71 * + 61 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2551
SELECT ALL - COUNT ( DISTINCT + + col1 ) + - CAST ( NULL AS INTEGER ) col0 FROM tab1 WHERE NOT 71 * + 61 IS NULL
----
NULL

query I rowsort
SELECT ALL 29 + - 2 FROM tab1 AS cor0
----
27
27
27

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + + 52, + col2 + - + col2, ( + 44 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2554
SELECT DISTINCT - ( - + col0 ) * - col0 + 80 DIV 59 FROM tab0 AS cor0
----
-224
-7568
-9408

skipif mysql # not compatible
query I rowsort label-2554
SELECT DISTINCT - ( - + col0 ) * - col0 + 80 / 59 FROM tab0 AS cor0
----
-224
-7568
-9408

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT DISTINCT + COUNT( * ) + + 83 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT + COUNT ( * ) + + 83 FROM tab0 AS cor0
----
86

query II rowsort
SELECT + 19 * - ( col0 ) AS col0, + col1 FROM tab0 AS cor0
----
-1653
21
-1843
1
-285
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT - + 29 * + + 73 + - COUNT( * ) * - 50 FROM tab0 cor0
----
-1967

skipif mysql # not compatible
query I rowsort label-2557
SELECT - + 29 * + + 73 + - COUNT ( * ) * - 50 FROM tab0 cor0
----
-1967

query I rowsort
SELECT - col0 * - + col1 * - + col0 AS col2 FROM tab1 AS cor0
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT + + COUNT( * ) - COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2559
SELECT + + COUNT ( * ) - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - col1 col1 FROM tab2
----
-8
13
5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2561
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - 21 AS col2, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-2561
SELECT DISTINCT - CAST ( NULL AS REAL ) * - 21 AS col2, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT - 31 - - + COUNT( * ) FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-2562
SELECT - 31 - - + COUNT ( * ) FROM tab1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT + ( - 43 ) - + + COUNT( * ) col0 FROM tab2
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2563
SELECT + ( - 43 ) - + + COUNT ( * ) col0 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT ( SUM( ALL - col1 ) ) + + MIN( col2 ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-2564
SELECT ( SUM ( ALL - col1 ) ) + + MIN ( col2 ) FROM tab0
----
-93

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL NOT BETWEEN 40 AND NULL )
----

query I rowsort
SELECT ALL 64 + 91 AS col0 FROM tab1 cor0
----
155
155
155

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 45 * - 91 col0 FROM tab2 AS cor0
----
-4095
-4095
-4095

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT ALL COUNT( * ) * + COUNT( * ) * + 93 col2 FROM tab2 AS cor0
----
837

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2569
SELECT ALL COUNT ( * ) * + COUNT ( * ) * + 93 col2 FROM tab2 AS cor0
----
837

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2570
SELECT DISTINCT - MIN( DISTINCT + 66 ) DIV 58 AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2570
SELECT DISTINCT - MIN ( DISTINCT + 66 ) / 58 AS col0 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL ( - + 27 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT ALL ( + + ( - col1 ) ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + ( - col1 ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col2, - 82 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT 96 * - col2 AS col2 FROM tab0 AS cor0
----
-4512
-9504
-960

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL = NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2577
SELECT DISTINCT 4 DIV + col0 col2, - col2 * + 71 FROM tab2 AS cor0
----
0
-1633
0
-2840
0
-4118

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2577
SELECT DISTINCT 4 / + col0 col2, - col2 * + 71 FROM tab2 AS cor0
----
0
-1633
0
-2840
0
-4118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, col2 col1 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2579
SELECT CAST( + MIN( ALL - + col0 ) AS SIGNED ) + - 73 AS col1 FROM tab2
----
-148

skipif mysql # not compatible
query I rowsort label-2579
SELECT CAST ( + MIN ( ALL - + col0 ) AS INTEGER ) + - 73 AS col1 FROM tab2
----
-148

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - 79, - col0, - + 50 * + col0 * + col0, + col1, 13 + - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 35 * + - col2 + col0 col1, + 65 AS col0 FROM tab2
----
1464
65
2105
65
851
65

query I rowsort
SELECT - 9 AS col0 FROM tab1 WHERE NOT - col1 IS NULL
----
-9
-9
-9

query I rowsort
SELECT DISTINCT - 85 + + 47 AS col0 FROM tab2
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2584
SELECT DISTINCT CAST( + + col0 AS SIGNED ) + + 81 FROM tab2
----
127
145
156

skipif mysql # not compatible
query I rowsort label-2584
SELECT DISTINCT CAST ( + + col0 AS INTEGER ) + + 81 FROM tab2
----
127
145
156

onlyif mysql # aggregate syntax: 
query II rowsort label-2585
SELECT DISTINCT - 19 * + COUNT( * ) + - 91 AS col0, + MAX( 82 ) AS col0 FROM tab1 AS cor0
----
-148
82

skipif mysql # not compatible
query II rowsort label-2585
SELECT DISTINCT - 19 * + COUNT ( * ) + - 91 AS col0, + MAX ( 82 ) AS col0 FROM tab1 AS cor0
----
-148
82

query II rowsort
SELECT - + 65 AS col0, - ( - col0 ) FROM tab1 AS cor0
----
-65
51
-65
85
-65
91

query I rowsort
SELECT - 56 * col2 + col2 AS col1 FROM tab2 AS cor0
----
-1265
-2200
-3190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2588
SELECT ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2588
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + 69 ) AS col1 FROM tab0
----
69
69
69

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT DISTINCT ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT ALL + SUM( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2592
SELECT ALL + SUM ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT DISTINCT + - col2 + - + 83 FROM tab2 AS cor0
----
-106
-123
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-2594
SELECT + col2 + ( - 80 ) DIV + + col1 AS col2 FROM tab1 AS cor0
----
43
67
91

skipif mysql # not compatible
query I rowsort label-2594
SELECT + col2 + ( - 80 ) / + + col1 AS col2 FROM tab1 AS cor0
----
43
67
91

query II rowsort
SELECT ALL + col0 - col2 AS col1, + col2 AS col2 FROM tab1 AS cor0
----
-45
96
23
68
26
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2596
SELECT DISTINCT - col1 * - - 61 + col1 - + col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2596
SELECT DISTINCT - col1 * - - 61 + col1 - + col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - col2 * + col2 AS col2, ( col0 ) FROM tab0 AS cor0
----
-100
87
-2209
15
-9801
97

query II rowsort
SELECT + col2 + - + col2, col0 AS col2 FROM tab0 AS cor0
----
0
15
0
87
0
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT DISTINCT + MAX( - + 73 ) FROM tab2 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-2599
SELECT DISTINCT + MAX ( - + 73 ) FROM tab2 AS cor0
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 44 col1 FROM tab0 AS cor0
----
-125
-45
-65

query I rowsort
SELECT DISTINCT - col1 * - + 30 AS col0 FROM tab1
----
1410
150
420

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 / + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2603
SELECT + 47 DIV - + 66 AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2603
SELECT + 47 / - + 66 AS col2 FROM tab0 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2604
SELECT 30 + - 73 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST( - 10 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2604
SELECT 30 + - 73 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST ( - 10 AS INTEGER ) AND NULL
----

query I rowsort
SELECT - - col0 FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2606
SELECT 57 DIV + + 72 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2606
SELECT 57 / + + 72 FROM tab0 cor0
----
0
0
0

query II rowsort
SELECT ALL + + col0, + col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2608
SELECT ALL - col0 * col2 DIV 47 AS col0 FROM tab0 AS cor0
----
-15
-18
-204

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL - col0 * col2 / 47 AS col0 FROM tab0 AS cor0
----
-15
-18
-204

onlyif mysql # DIV for integer division: 
query I rowsort label-2609
SELECT ALL + ( - col1 ) + + 33 DIV + - col0 AS col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL + ( - col1 ) + + 33 / + - col0 AS col1 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT ALL MIN( ALL col0 ) + + + 54 AS col1 FROM tab2
----
100

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL MIN ( ALL col0 ) + + + 54 AS col1 FROM tab2
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2611
SELECT - 88 * 53 + + 76 - - ( - + 36 ) + - col2 FROM tab0 WHERE NOT CAST( - 25 AS SIGNED ) IS NULL
----
-4634
-4671
-4723

skipif mysql # not compatible
query I rowsort label-2611
SELECT - 88 * 53 + + 76 - - ( - + 36 ) + - col2 FROM tab0 WHERE NOT CAST ( - 25 AS INTEGER ) IS NULL
----
-4634
-4671
-4723

onlyif mysql # DIV for integer division: 
query I rowsort label-2612
SELECT DISTINCT col0 * + 68 + 23 * - + col0 - col0 DIV + col0 AS col2 FROM tab1
----
2294
3824
4094

skipif mysql # not compatible
query I rowsort label-2612
SELECT DISTINCT col0 * + 68 + 23 * - + col0 - col0 / + col0 AS col2 FROM tab1
----
2294
3824
4094

query I rowsort
SELECT ( + col2 ) * - 31 * + 35 * + + 37 AS col2 FROM tab0
----
-1886815
-3974355
-401450

query I rowsort
SELECT 29 * + col1 FROM tab0
----
2349
29
609

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + - col2 + + + 54 + + + 9 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT + + 35 * + 48 + - COUNT( ALL - + 76 ) FROM tab2 AS cor0
----
1677

skipif mysql # not compatible
query I rowsort label-2616
SELECT + + 35 * + 48 + - COUNT ( ALL - + 76 ) FROM tab2 AS cor0
----
1677

query I rowsort
SELECT DISTINCT + - 78 FROM tab0 WHERE NOT NULL >= 28
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col1 FROM tab1
----
6
6
6

query I rowsort
SELECT ALL - 60 - - + col2 AS col0 FROM tab1 AS cor0
----
-1
36
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT ALL - COUNT( DISTINCT + + col2 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2620
SELECT ALL - COUNT ( DISTINCT + + col2 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + - col2 - col0 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2622
SELECT + col2 - - 4 DIV + ( + - col2 ) AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2622
SELECT + col2 - - 4 / + ( + - col2 ) AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL ( + + col2 ) AS col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT - 83 - COUNT( - + col0 ) AS col1 FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-2624
SELECT - 83 - COUNT ( - + col0 ) AS col1 FROM tab0
----
-86

query I rowsort
SELECT col1 + 15 FROM tab2
----
66
82
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2626
SELECT + col1 / - col0 * col2 * - 30 * col0 + - + CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2626
SELECT + col1 / - col0 * col2 * - 30 * col0 + - + CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2627
SELECT - 96 * - - col1 + + - CAST( + - 0 AS SIGNED ) * + 33 * col2 AS col2 FROM tab1
----
-1344
-4512
-480

skipif mysql # not compatible
query I rowsort label-2627
SELECT - 96 * - - col1 + + - CAST ( + - 0 AS INTEGER ) * + 33 * col2 AS col2 FROM tab1
----
-1344
-4512
-480

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - - 80 AND - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT - MAX( + 50 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2629
SELECT - MAX ( + 50 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 * col0 col1 FROM tab1
----
2856
4760
5096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2631
SELECT ALL + col1 * + 95 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL + col1 * + 95 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 / 41 * - 78 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 AND - col1 * col2
----

query I rowsort
SELECT ALL ( + - ( + 8 ) ) * 42 AS col2 FROM tab1 AS cor0
----
-336
-336
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT + - COUNT( * ) * + ( - MAX( - col2 ) ) * ( - ( + 81 ) ) FROM tab0 AS cor0
----
2430

skipif mysql # not compatible
query I rowsort label-2635
SELECT + - COUNT ( * ) * + ( - MAX ( - col2 ) ) * ( - ( + 81 ) ) FROM tab0 AS cor0
----
2430

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT - COUNT( ALL + 93 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2636
SELECT - COUNT ( ALL + 93 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2637
SELECT + 4 * + 6 / + + col2 - + col2 + - - 81 + + CAST( NULL AS SIGNED ) * - col0 / col2 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2637
SELECT + 4 * + 6 / + + col2 - + col2 + - - 81 + + CAST ( NULL AS INTEGER ) * - col0 / col2 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2638
SELECT + 32 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2638
SELECT + 32 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT DISTINCT - COUNT( DISTINCT + 43 ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2639
SELECT DISTINCT - COUNT ( DISTINCT + 43 ) AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
14
47
5

query I rowsort
SELECT col0 + + col1 * 84 * col2 AS col2 FROM tab1
----
112947
24865
268555

query II rowsort
SELECT ALL + col1 AS col1, 16 FROM tab0
----
1
16
21
16
81
16

onlyif mysql # DIV for integer division: 
query I rowsort label-2643
SELECT DISTINCT + col0 DIV 27 + + ( col2 ) FROM tab2
----
24
42
60

skipif mysql # not compatible
query I rowsort label-2643
SELECT DISTINCT + col0 / 27 + + ( col2 ) FROM tab2
----
24
42
60

query III rowsort
SELECT * FROM tab2 WHERE - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT ALL - SUM( ALL 13 ) + + 88 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL - SUM ( ALL 13 ) + + 88 FROM tab2
----
49

query I rowsort
SELECT - 66 + + 43 FROM tab1 WHERE NULL NOT BETWEEN col0 * col2 AND + + ( - 17 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( col0 ) * + col2 * + col0 col2, col0 - + col0 col0 FROM tab1
----
-249696
0
-426275
0
-563108
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2648
SELECT + 63 * + 73 * - CAST( NULL AS DECIMAL ) * + 15 / ( 69 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT + 63 * + 73 * - CAST ( NULL AS REAL ) * + 15 / ( 69 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - 0 ) AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT ALL - MAX( col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL - MAX ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= - col0 / + col0 * + - 78
----

query I rowsort
SELECT ALL + ( + col1 ) + + + ( - ( - col2 ) ) * + col1 FROM tab2 AS cor0
----
1224
3157
3953

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT ALL ( - + COUNT( * ) ) + - ( COUNT( + col2 ) ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL ( - + COUNT ( * ) ) + - ( COUNT ( + col2 ) ) FROM tab1
----
-6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 - - 82 NOT BETWEEN + - col0 AND - 84
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 1 + - + col2 * - - col2 FROM tab0 cor0
----
-101
-2210
-9802

query I rowsort
SELECT ALL + - col2 + + - col0 AS col0 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT - col0 + + - col0 / 51 FROM tab1 AS cor0 WHERE ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT DISTINCT + 12 + + + SUM( ALL + col2 ) FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-2659
SELECT DISTINCT + 12 + + + SUM ( ALL + col2 ) FROM tab0 AS cor0
----
168

query I rowsort
SELECT ALL 24 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT SUM( - 1 ) + + COUNT( * ) FROM tab2, tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2661
SELECT SUM ( - 1 ) + + COUNT ( * ) FROM tab2, tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT ALL + COUNT( - - col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL + COUNT ( - - col1 ) AS col2 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, 28 AS col0 FROM tab2
----
51
28
67
28
77
28

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 + col0 * - + 0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col1 * + col1 BETWEEN NULL AND - col2 + col1
----
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT + - COUNT( * ) + - SUM( - col0 ) AS col2 FROM tab1 WHERE NOT - + 3 * + - col0 IS NULL
----
224

skipif mysql # not compatible
query I rowsort label-2666
SELECT + - COUNT ( * ) + - SUM ( - col0 ) AS col2 FROM tab1 WHERE NOT - + 3 * + - col0 IS NULL
----
224

query I rowsort
SELECT col2 * 28 * - + 25 FROM tab1
----
-41300
-47600
-67200

query I rowsort
SELECT DISTINCT - + col0 * col0 * + 5 FROM tab2 AS cor0
----
-10580
-20480
-28125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2669
SELECT + CAST( NULL AS SIGNED ) * + SUM( ALL - - col0 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2669
SELECT + CAST ( NULL AS INTEGER ) * + SUM ( ALL - - col0 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2670
SELECT * FROM tab0 WHERE NOT NULL IN ( + ( + CAST( col1 AS SIGNED ) ) - col0 * - col0 )
----

skipif mysql # not compatible
query III rowsort label-2670
SELECT * FROM tab0 WHERE NOT NULL IN ( + ( + CAST ( col1 AS INTEGER ) ) - col0 * - col0 )
----

query I rowsort
SELECT - 20 - 84 AS col2 FROM tab0
----
-104
-104
-104

query I rowsort
SELECT - col2 + + 85 AS col1 FROM tab0 WHERE NULL NOT IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2673
SELECT DISTINCT - 86 AS col0 FROM tab1 WHERE 86 BETWEEN ( col0 * - CAST( - 83 AS SIGNED ) + 10 ) AND col2 * 19 + - 60
----

skipif mysql # not compatible
query I rowsort label-2673
SELECT DISTINCT - 86 AS col0 FROM tab1 WHERE 86 BETWEEN ( col0 * - CAST ( - 83 AS INTEGER ) + 10 ) AND col2 * 19 + - 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT 5 * + ( - MAX( ALL + col2 ) ) FROM tab1
----
-480

skipif mysql # not compatible
query I rowsort label-2674
SELECT 5 * + ( - MAX ( ALL + col2 ) ) FROM tab1
----
-480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2675
SELECT SUM( ALL + col0 ) FROM tab1 WHERE NOT ( - col2 + CAST( NULL AS SIGNED ) ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2675
SELECT SUM ( ALL + col0 ) FROM tab1 WHERE NOT ( - col2 + CAST ( NULL AS INTEGER ) ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT MAX( DISTINCT - col0 ) AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2676
SELECT MAX ( DISTINCT - col0 ) AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2677
SELECT + 31 DIV + 37 + col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2677
SELECT + 31 / + 37 + col2 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2678
SELECT * FROM tab1 WHERE NOT + ( CAST( NULL AS SIGNED ) ) + - col0 * col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2678
SELECT * FROM tab1 WHERE NOT + ( CAST ( NULL AS INTEGER ) ) + - col0 * col0 IS NULL
----

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 WHERE - col0 = NULL
----

query I rowsort
SELECT DISTINCT col2 + + col0 AS col2 FROM tab1 WHERE col1 IS NOT NULL
----
144
147
159

query I rowsort
SELECT ALL - ( 14 ) FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT DISTINCT + SUM( DISTINCT 80 ) FROM tab1 WHERE NULL = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2682
SELECT DISTINCT + SUM ( DISTINCT 80 ) FROM tab1 WHERE NULL = ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT DISTINCT + 12 * - 9 + COUNT( * ) * + COUNT( * ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-2683
SELECT DISTINCT + 12 * - 9 + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT DISTINCT SUM( - 30 ) FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-2684
SELECT DISTINCT SUM ( - 30 ) FROM tab0
----
-90

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE 98 = ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2686
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( ALL - col1 * 53 ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2686
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( ALL - col1 * 53 ) col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2687
SELECT 46 + col1 * CAST( - 61 / col1 AS SIGNED ) FROM tab1
----
-1
-10
-14

skipif mysql # not compatible
query I rowsort label-2687
SELECT 46 + col1 * CAST ( - 61 / col1 AS INTEGER ) FROM tab1
----
-1
-10
-14

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) = + col2 * + 71
----

query I rowsort
SELECT + 83 + 55 AS col2 FROM tab0
----
138
138
138

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT ALL + MIN( + col0 ) / + AVG ( - 71 ) col2 FROM tab1 WHERE NOT NULL = ( - col1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2690
SELECT ALL + MIN ( + col0 ) / + AVG ( - 71 ) col2 FROM tab1 WHERE NOT NULL = ( - col1 )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + 88 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2692
SELECT ALL + 32 / col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN ( col1 ) AND CAST( 6 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2692
SELECT ALL + 32 / col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN ( col1 ) AND CAST ( 6 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT 7 + + COUNT( * ) FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-2693
SELECT 7 + + COUNT ( * ) FROM tab2
----
10

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * - col1 BETWEEN NULL AND ( col0 + col1 )
----

query I rowsort
SELECT DISTINCT + col0 + - 37 AS col1 FROM tab1
----
14
48
54

query I rowsort
SELECT ALL ( + col0 ) - + col1 FROM tab1
----
37
44
80

query I rowsort
SELECT col2 * 84 FROM tab2
----
1932
3360
4872

query I rowsort
SELECT DISTINCT + col2 - 27 FROM tab0 AS cor0
----
-17
20
72

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 WHERE NOT col1 IN ( + 12 )
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2700
SELECT 26 DIV col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2700
SELECT 26 / col0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-2701
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2
----
9

query III rowsort
SELECT * FROM tab1 WHERE ( col0 ) NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 2 * col0 <> ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 74 * - col1 AS col0 FROM tab2
----
-3774
-4958
-5698

query I rowsort
SELECT ALL 24 * col1 FROM tab1
----
1128
120
336

query I rowsort
SELECT DISTINCT - ( - 88 ) AS col0 FROM tab1 cor0 CROSS JOIN tab2
----
88

query I rowsort
SELECT DISTINCT + 44 + ( col0 + col0 ) FROM tab2 AS cor0
----
136
172
194

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 ) + - 29 / - 58 NOT IN ( + 51 - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 88 * - col1 FROM tab1 AS cor0 WHERE - col1 + - 84 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * ( + 84 ) + - col2 FROM tab0 AS cor0 WHERE NOT ( + col2 ) NOT BETWEEN ( col2 + 22 ) AND NULL
----

query I rowsort
SELECT DISTINCT + + 6 AS col2 FROM tab2 AS cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 >= NULL
----

query I rowsort
SELECT DISTINCT - ( 28 ) FROM tab1 AS cor0
----
-28

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 53 + + ( ( + col2 ) + - 10 * + col2 ) ) IS NOT NULL
----

query I rowsort
SELECT + + 50 AS col0 FROM tab1 cor0
----
50
50
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2716
SELECT - col0 * + + ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2716
SELECT - col0 * + + ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2717
SELECT col2 * 85 DIV - col0 FROM tab0
----
-266
-86
-9

skipif mysql # not compatible
query I rowsort label-2717
SELECT col2 * 85 / - col0 FROM tab0
----
-266
-86
-9

query I rowsort
SELECT ALL 14 * - col0 - + 40 * + 98 AS col2 FROM tab1 WHERE + col1 = 58
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2719
SELECT 32 * - col0 FROM tab0 WHERE NOT NULL IN ( CAST( NULL AS SIGNED ) + + col0 )
----

skipif mysql # not compatible
query I rowsort label-2719
SELECT 32 * - col0 FROM tab0 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ) + + col0 )
----

query I rowsort
SELECT + 77 * col1 AS col0 FROM tab1
----
1078
3619
385

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 - + col1 IS NOT NULL
----

query I rowsort
SELECT ( 42 ) * - col2 AS col2 FROM tab2 WHERE NOT ( col2 * col2 + + 27 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT COUNT( * ) FROM tab0 WHERE NOT col0 IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2723
SELECT COUNT ( * ) FROM tab0 WHERE NOT col0 IN ( col0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2724
SELECT DISTINCT - col2 DIV col1 AS col2 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN col1 * 86 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT - col2 / col1 AS col2 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN col1 * 86 AND ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2725
SELECT ALL + CAST( + - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2725
SELECT ALL + CAST ( + - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2726
SELECT COUNT( * ) DIV - 42 col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2726
SELECT COUNT ( * ) / - 42 col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT DISTINCT 18 * - COUNT( * ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-2727
SELECT DISTINCT 18 * - COUNT ( * ) FROM tab2
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2728
SELECT ALL + 71 DIV - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-7

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL + 71 / - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2729
SELECT DISTINCT + col2 / - col0 FROM tab0 WHERE ( - - CAST( NULL AS SIGNED ) + + 18 * col1 ) IN ( 70 + col1 * - col0 )
----

skipif mysql # not compatible
query I rowsort label-2729
SELECT DISTINCT + col2 / - col0 FROM tab0 WHERE ( - - CAST ( NULL AS INTEGER ) + + 18 * col1 ) IN ( 70 + col1 * - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT ALL col1 + + col0 + - col2 * col0 FROM tab2 AS cor0
----
-2419
-4208
-961

onlyif mysql # DIV for integer division: 
query I rowsort label-2732
SELECT - col0 + - + col1 DIV - 51 AS col0 FROM tab2 AS cor0
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-2732
SELECT - col0 + - + col1 / - 51 AS col0 FROM tab2 AS cor0
----
-45
-63
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + + col0 * + + col0 col2 FROM tab1 AS cor0
----
2652
7310
8372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 74 col1 FROM tab2 AS cor0
----
74
74
74

onlyif mysql # DIV for integer division: 
query I rowsort label-2735
SELECT + + col0 DIV - col1 + + 54 col1 FROM tab2 cor0
----
53
54
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2735
SELECT + + col0 / - col1 + + 54 col1 FROM tab2 cor0
----
53
54
54

query I rowsort
SELECT + + 43 + + ( + 3 ) FROM tab2 AS cor0
----
46
46
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2737
SELECT - 62 + + - COUNT( * ) AS col2, - CAST( + MAX( + col1 ) AS SIGNED ) col2 FROM tab0
----
-65
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2737
SELECT - 62 + + - COUNT ( * ) AS col2, - CAST ( + MAX ( + col1 ) AS INTEGER ) col2 FROM tab0
----
-65
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2738
SELECT - MIN( DISTINCT 85 ) + + - SUM( - - 64 ) - + CAST( NULL AS SIGNED ) * 71 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2738
SELECT - MIN ( DISTINCT 85 ) + + - SUM ( - - 64 ) - + CAST ( NULL AS INTEGER ) * 71 AS col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL IS NULL AND - col0 * col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT DISTINCT + COUNT( * ) * 30 * + MIN( + 29 ) FROM tab0
----
2610

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT + COUNT ( * ) * 30 * + MIN ( + 29 ) FROM tab0
----
2610

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT DISTINCT ( + - COUNT( col2 ) ) + + + ( COUNT( * ) ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2741
SELECT DISTINCT ( + - COUNT ( col2 ) ) + + + ( COUNT ( * ) ) AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL - col0 + + col1 + col2 AS col2 FROM tab2
----
28
50
53

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - col0 + - + 13 AND + col2
----

query I rowsort
SELECT DISTINCT col0 + - ( ( col1 ) ) AS col2 FROM tab1
----
37
44
80

query I rowsort
SELECT + col2 * - + col0 * + - col0 FROM tab2
----
163840
326250
48668

query I rowsort
SELECT - AVG ( DISTINCT 30 ) AS col2 FROM tab2 WHERE + ( ( + col0 ) ) IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2747
SELECT ALL 34 * 68 + + col0 FROM tab1 WHERE NOT + col1 * + CAST( - col2 AS DECIMAL ) IS NULL
----
2363
2397
2403

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL 34 * 68 + + col0 FROM tab1 WHERE NOT + col1 * + CAST ( - col2 AS REAL ) IS NULL
----
2363
2397
2403

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + - 50 + 92 + ( + ( - col0 ) ) ) IS NULL
----

query I rowsort
SELECT ALL - - col1 + + - col2 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2750
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2750
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - col1 * - + col2 AS col2 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query II rowsort label-2752
SELECT - 21 DIV + - 43 * - 70 AS col0, - col1 * + 33 AS col0 FROM tab2
----
0
-1683
0
-2211
0
-2541

skipif mysql # not compatible
query II rowsort label-2752
SELECT - 21 / + - 43 * - 70 AS col0, - col1 * + 33 AS col0 FROM tab2
----
0
-1683
0
-2211
0
-2541

query I rowsort
SELECT DISTINCT col2 * 81 * - - col0 AS col2 FROM tab0
----
57105
70470
777843

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2754
SELECT DISTINCT 95 / + col2 + - col2 AS col2 FROM tab0 cor0 WHERE - CAST( NULL AS SIGNED ) * + + col1 IN ( 23 + - 47 )
----

skipif mysql # not compatible
query I rowsort label-2754
SELECT DISTINCT 95 / + col2 + - col2 AS col2 FROM tab0 cor0 WHERE - CAST ( NULL AS INTEGER ) * + + col1 IN ( 23 + - 47 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2755
SELECT + col0 DIV 37 * 74 col0 FROM tab2 AS cor0
----
148
74
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2755
SELECT + col0 / 37 * 74 col0 FROM tab2 AS cor0
----
148
74
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2756
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( - + col0 AS SIGNED ) + - 74 > - col1 * 35
----

skipif mysql # not compatible
query III rowsort label-2756
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( - + col0 AS INTEGER ) + - 74 > - col1 * 35
----

query I rowsort
SELECT ALL col0 + + 63 AS col2 FROM tab2 AS cor0 WHERE ( + 94 / col0 + col2 ) NOT BETWEEN ( NULL ) AND + 97 / - col0
----
109
127
138

query I rowsort
SELECT ALL 23 / - 53 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT - ( - 11 ) * - - col2 + + - 65 AS col1 FROM tab1 AS cor0
----
584
683
991

query I rowsort
SELECT 8 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT + COUNT( * ) FROM tab1 WHERE NOT ( - - col0 * - + 83 * - + col2 ) BETWEEN + 79 AND ( col0 / + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-2761
SELECT + COUNT ( * ) FROM tab1 WHERE NOT ( - - col0 * - + 83 * - + col2 ) BETWEEN + 79 AND ( col0 / + col2 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2762
SELECT ALL + COUNT( * ) DIV COUNT( + CAST( + + col1 AS SIGNED ) ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL + COUNT ( * ) / COUNT ( + CAST ( + + col1 AS INTEGER ) ) AS col0 FROM tab2
----
1

query II rowsort
SELECT + col2, 73 FROM tab0
----
10
73
47
73
99
73

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * + col2 + - ( + 38 ) + + col2 <= 23
----

query I rowsort
SELECT ALL - ( 76 ) FROM tab0
----
-76
-76
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-2766
SELECT ALL col1 DIV 59 FROM tab2 WHERE NOT ( col1 ) IS NULL
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL col1 / 59 FROM tab2 WHERE NOT ( col1 ) IS NULL
----
0
1
1

query II rowsort
SELECT + col1 AS col1, col1 * col2 AS col0 FROM tab2
----
51
1173
67
3886
77
3080

query I rowsort
SELECT ( - 76 ) FROM tab1
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT ALL COUNT( * ) + - 62 FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL COUNT ( * ) + - 62 FROM tab2 AS cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col1 FROM tab1 cor0 WHERE NOT ( NOT + + col2 IS NOT NULL )
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + col1 + - + col2 + - col0 - 59 AS col0 FROM tab2 AS cor0
----
-125
-77
-86

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 >= + col2
----
51
14
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 46 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - - col0 * ( 99 ) + - col1 + col1 = ( NULL ) )
----

query III rowsort
SELECT * FROM tab2 WHERE - 71 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2776
SELECT col2 AS col2 FROM tab2 WHERE col2 * + CAST( NULL AS SIGNED ) = NULL OR col2 / + col1 >= - - col1
----

skipif mysql # not compatible
query I rowsort label-2776
SELECT col2 AS col2 FROM tab2 WHERE col2 * + CAST ( NULL AS INTEGER ) = NULL OR col2 / + col1 >= - - col1
----

query I rowsort
SELECT + 99 - - col2 FROM tab2
----
122
139
157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 40 + + col0 col1 FROM tab0
----
-25
47
57

query I rowsort
SELECT DISTINCT - col2 + 21 FROM tab2
----
-19
-2
-37

query I rowsort
SELECT + 71 * - - 66 + 80 * - col1 FROM tab2
----
-1474
-674
606

query I rowsort
SELECT ALL col0 - + + col2 AS col1 FROM tab0
----
-2
-32
77

query I rowsort
SELECT DISTINCT + - col2 - + 85 FROM tab1 AS cor0
----
-144
-153
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT DISTINCT - + MIN( - + 29 ) + 39 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-2783
SELECT DISTINCT - + MIN ( - + 29 ) + 39 FROM tab2 AS cor0
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 95 ) col1 FROM tab0 AS cor0 WHERE - 70 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT ALL - 80 * + + COUNT( * ) AS col2 FROM tab1 cor0
----
-240

skipif mysql # not compatible
query I rowsort label-2785
SELECT ALL - 80 * + + COUNT ( * ) AS col2 FROM tab1 cor0
----
-240

query I rowsort
SELECT ALL + 11 - + + col0 * + col2 AS col1 FROM tab1 AS cor0
----
-4885
-5004
-6177

query I rowsort
SELECT + ( + 35 ) AS col0 FROM tab1 cor0
----
35
35
35

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2788
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT + ( - CAST( + 82 AS SIGNED ) ) IS NOT NULL OR NOT NULL IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-2788
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT + ( - CAST ( + 82 AS INTEGER ) ) IS NOT NULL OR NOT NULL IS NULL
----

query II rowsort
SELECT - 67 * + + col0 AS col0, col1 FROM tab1 AS cor0
----
-3417
14
-5695
5
-6097
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2790
SELECT col2 DIV - col1 + + - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-16
-20
-48

skipif mysql # not compatible
query I rowsort label-2790
SELECT col2 / - col1 + + - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-16
-20
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2791
SELECT DISTINCT - COUNT( * ) DIV - + 69 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2791
SELECT DISTINCT - COUNT ( * ) / - + 69 AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT DISTINCT + MIN( - 65 ) AS col2 FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-2792
SELECT DISTINCT + MIN ( - 65 ) AS col2 FROM tab0
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-2793
SELECT ALL COUNT( DISTINCT + 96 ) * - COUNT( * ), 72 * + 59 + COUNT( * ) AS col1 FROM tab2
----
-3
4251

skipif mysql # not compatible
query II rowsort label-2793
SELECT ALL COUNT ( DISTINCT + 96 ) * - COUNT ( * ), 72 * + 59 + COUNT ( * ) AS col1 FROM tab2
----
-3
4251

query I rowsort
SELECT DISTINCT + 39 * + - 92 FROM tab1
----
-3588

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( col0, - ( + col2 ) + + - col2, - col0 / + col0 )
----

query I rowsort
SELECT ALL - 73 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT + - col0 < ( + 7 ) )
----
-73
-73
-73

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2797
SELECT DISTINCT - CAST( col2 AS SIGNED ) DIV + + 50, - col2 AS col0 FROM tab1 cor0
----
-1
-59
-1
-68
-1
-96

skipif mysql # not compatible
query II rowsort label-2797
SELECT DISTINCT - CAST ( col2 AS INTEGER ) / + + 50, - col2 AS col0 FROM tab1 cor0
----
-1
-59
-1
-68
-1
-96

query I rowsort
SELECT 11 + + col2 + - - col0 * - col2 AS col2 FROM tab2 AS cor0 WHERE NOT + 4 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 83 * - col0 + col0 AS col0 FROM tab0 AS cor0
----
-1230
-7134
-7954

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2800
SELECT DISTINCT + 34 + - CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2800
SELECT DISTINCT + 34 + - CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT ALL 37 + - COUNT( * ) FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL 37 + - COUNT ( * ) FROM tab0
----
34

onlyif mysql # DIV for integer division: 
query II rowsort label-2802
SELECT col2 DIV + - col1 + + ( + col2 ), 19 DIV - col0 AS col1 FROM tab0
----
0
0
10
0
47
-1

skipif mysql # not compatible
query II rowsort label-2802
SELECT col2 / + - col1 + + ( + col2 ), 19 / - col0 AS col1 FROM tab0
----
0
0
10
0
47
-1

query I rowsort
SELECT - 34 + - - 50 AS col2 FROM tab2 cor0
----
16
16
16

query I rowsort
SELECT + 37 + + col1 * - + 33 FROM tab0 cor0
----
-2636
-656
4

query I rowsort
SELECT DISTINCT + col0 + + ( col1 ) FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT 68 + + 16 AS col0 FROM tab1 AS cor0
----
84
84
84

query III rowsort
SELECT * FROM tab1 WHERE ( NOT + col1 + + col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2808
SELECT ( col2 ) DIV - + CAST( 77 AS SIGNED ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2808
SELECT ( col2 ) / - + CAST ( 77 AS INTEGER ) AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE NOT + + col0 * col2 * + col0 + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2810
SELECT ALL CAST( NULL AS SIGNED ) + + SUM( + col0 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL CAST ( NULL AS INTEGER ) + + SUM ( + col0 ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL + col1 * + col2 FROM tab0 WHERE NULL NOT BETWEEN + - col1 AND NULL
----

query I rowsort
SELECT ALL col0 + + + col1 AS col2 FROM tab0
----
108
96
98

query I rowsort
SELECT + + ( + col1 ) AS col0 FROM tab1 WHERE col0 NOT IN ( + 72, - col0 * + 13 / - 2 )
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2814
SELECT - COUNT( * ) - - - CAST( + COUNT( * ) AS SIGNED ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-2814
SELECT - COUNT ( * ) - - - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-2815
SELECT + 17 - + 32 DIV + 74 + + - 54 + + - col0 * + col2 * - col1 * + col2 - - + col0 + - col2 AS col0 FROM tab0 AS cor0
----
182740
2683866
950658

skipif mysql # not compatible
query I rowsort label-2815
SELECT + 17 - + 32 / + 74 + + - 54 + + - col0 * + col2 * - col1 * + col2 - - + col0 + - col2 AS col0 FROM tab0 AS cor0
----
182740
2683866
950658

onlyif mysql # DIV for integer division: 
query I rowsort label-2816
SELECT + col1 - + - 49 + 44 DIV - - col1 AS col2 FROM tab1 AS cor0
----
62
66
96

skipif mysql # not compatible
query I rowsort label-2816
SELECT + col1 - + - 49 + 44 / - - col1 AS col2 FROM tab1 AS cor0
----
62
66
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col0, - col1, + - ( col1 ) + + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT ALL COUNT( - col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2818
SELECT ALL COUNT ( - col1 ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col1 ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2 + - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT ALL + MIN( DISTINCT 23 ) col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2821
SELECT ALL + MIN ( DISTINCT 23 ) col1 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT ALL - COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2822
SELECT ALL - COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL <= col0
----
0

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL <= col0
----
0

query I rowsort
SELECT + col0 * - 98 * - + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-24470208
-41774950
-55184584

query I rowsort
SELECT DISTINCT + col2 * 81 * + col1 FROM tab2 AS cor0
----
249480
314766
95013

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * - col2 * 24 - col0 BETWEEN NULL AND 57
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT col2 AS col1, + col1 * + col0 - + 8 AS col2, + - col0 FROM tab1 AS cor0 WHERE - 27 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT DISTINCT - ( MIN( col0 ) ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2829
SELECT DISTINCT - ( MIN ( col0 ) ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL - - 57 * col1 FROM tab1 AS cor0
----
2679
285
798

query I rowsort
SELECT DISTINCT + col1 * + - 2 AS col2 FROM tab1 cor0
----
-10
-28
-94

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 42 NOT IN ( + ( + col0 ) / - 60 + col0 * + - 51 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 * - - col1 + 93 - - col2 AS col0 FROM tab2 AS cor0 WHERE NULL <= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2834
SELECT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2834
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT ALL - COUNT( ALL + col2 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL - COUNT ( ALL + col2 ) AS col0 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2836
SELECT ALL col0 + CAST( NULL AS SIGNED ) * + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL col0 + CAST ( NULL AS INTEGER ) * + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 - - + col0 FROM tab0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2838
SELECT DISTINCT - 1 DIV COUNT( * ) + - + COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2838
SELECT DISTINCT - 1 / COUNT ( * ) + - + COUNT ( * ) FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2839
SELECT ALL + MAX( col0 ) FROM tab2 WHERE NOT + 77 BETWEEN - 67 AND CAST( - col2 AS DECIMAL )
----
75

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL + MAX ( col0 ) FROM tab2 WHERE NOT + 77 BETWEEN - 67 AND CAST ( - col2 AS REAL )
----
75

query I rowsort
SELECT ALL - 95 * + col1 AS col0 FROM tab1
----
-1330
-4465
-475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2841
SELECT DISTINCT 47 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2841
SELECT DISTINCT 47 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 <> + + col0
----

query I rowsort
SELECT - 84 + col1 AS col2 FROM tab0 cor0
----
-3
-63
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT DISTINCT - 23 + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - col0 + - col1 / + + 60 * - col1 >= NULL
----
-23

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT - 23 + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - col0 + - col1 / + + 60 * - col1 >= NULL
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT + COUNT( DISTINCT + 56 ) + + 93 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-2845
SELECT + COUNT ( DISTINCT + 56 ) + + 93 FROM tab1
----
94

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 16 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT + ( - - COUNT( ALL - 82 ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2848
SELECT + ( - - COUNT ( ALL - 82 ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL col0 + - ( - - col1 ) + + 91 + - - ( - + col1 ) FROM tab0
----
-56
136
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2850
SELECT CAST( ( - + col0 ) AS SIGNED ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2850
SELECT CAST ( ( - + col0 ) AS INTEGER ) FROM tab2
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 72 * + 96 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * - col2 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 + + - col2 AS col2 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT 40 - col2 AS col1 FROM tab1 cor0
----
-19
-28
-56

query I rowsort
SELECT - col0 - - 28 AS col0 FROM tab2 AS cor0
----
-18
-36
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT + 30 - COUNT( * ) FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2857
SELECT + 30 - COUNT ( * ) FROM tab1 AS cor0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 - + - col2 col0 FROM tab1
----
116
79
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2859
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - ( - 80 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2859
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - ( - 80 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL 24 * - + 16 + 55 AS col1 FROM tab0
----
-329
-329
-329

query I rowsort
SELECT - ( + - 58 ) + - - col2 AS col1 FROM tab0
----
105
157
68

query I rowsort
SELECT ALL col1 * + 20 FROM tab1
----
100
280
940

query I rowsort
SELECT 85 + - col0 FROM tab2
----
10
21
39

query I rowsort
SELECT 3 + - col2 AS col0 FROM tab0
----
-44
-7
-96

query I rowsort
SELECT ALL - col2 + + 26 FROM tab1
----
-33
-42
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT - MIN( ALL + col2 ) FROM tab0 WHERE NOT 85 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2866
SELECT - MIN ( ALL + col2 ) FROM tab0 WHERE NOT 85 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2867
SELECT DISTINCT - CAST( ( col1 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2867
SELECT DISTINCT - CAST ( ( col1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND col2
----

query I rowsort
SELECT ( ( col1 ) ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query II rowsort label-2870
SELECT - col1, 12 DIV + - 62 AS col2 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

skipif mysql # not compatible
query II rowsort label-2870
SELECT - col1, 12 / + - 62 AS col2 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT - COUNT( * ) * + + COUNT( DISTINCT + - 41 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2871
SELECT - COUNT ( * ) * + + COUNT ( DISTINCT + - 41 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT DISTINCT + 31 * + col1 * - 64 FROM tab1 AS cor0
----
-27776
-93248
-9920

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 75 NOT IN ( + col1, + col2 + + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2874
SELECT + col0 DIV col2 * + + col1 FROM tab1 AS cor0
----
0
47
5

skipif mysql # not compatible
query I rowsort label-2874
SELECT + col0 / col2 * + + col1 FROM tab1 AS cor0
----
0
47
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 31 + - + 92 IS NOT NULL
----

query I rowsort
SELECT + 21 * + ( - 34 ) AS col1 FROM tab2 AS cor0
----
-714
-714
-714

query I rowsort
SELECT + ( - - 86 ) AS col0 FROM tab1 AS cor0
----
86
86
86

query II rowsort
SELECT DISTINCT + ( 88 ), col1 FROM tab1 AS cor0
----
88
14
88
47
88
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = 98 + + - 36 + + col0 - - + 62
----

query I rowsort
SELECT - col1 + - + 52 AS col0 FROM tab1
----
-57
-66
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT ALL MAX( ALL - + col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL MAX ( ALL - + col2 ) FROM tab2
----
-23

query II rowsort
SELECT DISTINCT col2 AS col0, + col1 AS col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 54 * - 37 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2884
SELECT - + col0 DIV + 37 FROM tab0 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-2884
SELECT - + col0 / + 37 FROM tab0 AS cor0
----
-2
-2
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2885
SELECT DISTINCT - + MIN( + - 51 ) * + CAST( AVG ( ALL + + 88 ) AS SIGNED ) col0 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
4488

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2885
SELECT DISTINCT - + MIN ( + - 51 ) * + CAST ( AVG ( ALL + + 88 ) AS INTEGER ) col0 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
4488

onlyif mysql # DIV for integer division: 
query I rowsort label-2886
SELECT - + col0 DIV + col2 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2886
SELECT - + col0 / + col2 FROM tab1 cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT ALL + COUNT( * ) * + + COUNT( * ) * - COUNT( * ) AS col0 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-2887
SELECT ALL + COUNT ( * ) * + + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1
----
-27

query I rowsort
SELECT DISTINCT col1 + 65 - - + col0 + col0 * col0 * - 48 FROM tab0
----
-10639
-363139
-451469

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT 88 + + ( + COUNT( * ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2889
SELECT 88 + + ( + COUNT ( * ) ) FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT + 30 * + COUNT( * ) + - 35 FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-2890
SELECT + 30 * + COUNT ( * ) + - 35 FROM tab1 AS cor0
----
55

query I rowsort
SELECT ALL + 50 * + col1 * 72 + + col0 + 29 - + - 50 * - col0 FROM tab0 AS cor0
----
-1124
290894
71366

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT 95 - + SUM( ALL - 74 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
317

skipif mysql # not compatible
query I rowsort label-2892
SELECT 95 - + SUM ( ALL - 74 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
317

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT - + COUNT( * ) + 33 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2893
SELECT - + COUNT ( * ) + 33 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 83 + + - col1 * - + 70 * col1 * col2 col1, + 29 - + col1 * - col0 AS col0 FROM tab0 AS cor0
----
21585607
1244
308617
1856
6847
126

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 > ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
9

query II rowsort
SELECT - 57 - col1, + col0 FROM tab2 AS cor0 WHERE NULL < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2898
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + 46 AND col2 + + CAST( - + 68 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2898
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + 46 AND col2 + + CAST ( - + 68 AS INTEGER )
----

query II rowsort
SELECT - col1 AS col2, col0 * + col2 FROM tab1
----
-14
4896
-47
6188
-5
5015

query I rowsort
SELECT - ( col1 ) * - col2 AS col0 FROM tab2
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, - col0 col2 FROM tab1
----
51
-51
85
-85
91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT - MIN( ALL - - ( - 29 ) ) FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-2902
SELECT - MIN ( ALL - - ( - 29 ) ) FROM tab1
----
29

query I rowsort
SELECT - col1 * + + 58 AS col1 FROM tab2 AS cor0
----
-2958
-3886
-4466

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2904
SELECT ALL * FROM tab0 WHERE + 36 + - CAST( + col0 AS SIGNED ) * + col2 * + - 41 / - 14 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2904
SELECT ALL * FROM tab0 WHERE + 36 + - CAST ( + col0 AS INTEGER ) * + col2 * + - 41 / - 14 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + - col2 * - 0, - ( - col2 ) AS col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT + ( + 22 ) * COUNT( * ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2906
SELECT + ( + 22 ) * COUNT ( * ) FROM tab0 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2907
SELECT DISTINCT - 40 col1, - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-40
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2907
SELECT DISTINCT - 40 col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-40
NULL

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 / 51 BETWEEN NULL AND col0 * + col2 * + 13 + + + col0 * - 76 * 64
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT DISTINCT + SUM( DISTINCT + - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2909
SELECT DISTINCT + SUM ( DISTINCT + - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2910
SELECT - ( ( + AVG ( - + 61 ) ) ) AS col0, - SUM( col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2910
SELECT - ( ( + AVG ( - + 61 ) ) ) AS col0, - SUM ( col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2911
SELECT CAST( + + ( 7 ) AS SIGNED ) FROM tab1 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-2911
SELECT CAST ( + + ( 7 ) AS INTEGER ) FROM tab1 AS cor0
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2912
SELECT ALL 54 * - - CAST( - ( - 92 ) AS SIGNED ) FROM tab0
----
4968
4968
4968

skipif mysql # not compatible
query I rowsort label-2912
SELECT ALL 54 * - - CAST ( - ( - 92 ) AS INTEGER ) FROM tab0
----
4968
4968
4968

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT ALL ( - 51 ) + - - MIN( DISTINCT col0 ) * - COUNT( - col0 ) col2 FROM tab2
----
-189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2913
SELECT ALL ( - 51 ) + - - MIN ( DISTINCT col0 ) * - COUNT ( - col0 ) col2 FROM tab2
----
-189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2914
SELECT DISTINCT - CAST( NULL AS SIGNED ) * MAX( ALL - col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * MAX ( ALL - col2 ) FROM tab0
----
NULL

query I rowsort
SELECT + col2 * + - ( - col0 ) * ( + col1 ) + - col0 AS col1 FROM tab1
----
24990
290745
68493

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT DISTINCT + ( + ( + MIN( ALL - col0 ) ) ) FROM tab2 AS cor0 WHERE NOT 40 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT + ( + ( + MIN ( ALL - col0 ) ) ) FROM tab2 AS cor0 WHERE NOT 40 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2917
SELECT 32 AS col2, SUM( DISTINCT 8 ) * - + ( + MAX( 74 ) ) AS col0 FROM tab2
----
32
-592

skipif mysql # not compatible
query II rowsort label-2917
SELECT 32 AS col2, SUM ( DISTINCT 8 ) * - + ( + MAX ( 74 ) ) AS col0 FROM tab2
----
32
-592

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 < - col1 + + 56 / 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT ALL - COUNT( * ) * - + 34 FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL - COUNT ( * ) * - + 34 FROM tab1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT DISTINCT - COUNT( * ) + COUNT( * ) + + + COUNT( * ) * 50 AS col0 FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-2920
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) + + + COUNT ( * ) * 50 AS col0 FROM tab1 AS cor0
----
150

query I rowsort
SELECT - + col2 - + 1 FROM tab1 AS cor0
----
-60
-69
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2922
SELECT ALL + ( + - CAST( NULL AS SIGNED ) ) * - 29 AS col2, col0 AS col2 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-2922
SELECT ALL + ( + - CAST ( NULL AS INTEGER ) ) * - 29 AS col2, col0 AS col2 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT - SUM( - 80 ) - 46 FROM tab1 AS cor0
----
194

skipif mysql # not compatible
query I rowsort label-2923
SELECT - SUM ( - 80 ) - 46 FROM tab1 AS cor0
----
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * - col2 * + col2, 66 col2 FROM tab2 cor0
----
12167
66
195112
66
64000
66

onlyif mysql # aggregate syntax: 
query II rowsort label-2925
SELECT + COUNT( * ) AS col0, + 50 col1 FROM tab0 AS cor0
----
3
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2925
SELECT + COUNT ( * ) AS col0, + 50 col1 FROM tab0 AS cor0
----
3
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2926
SELECT CAST( 88 AS SIGNED ) * + COUNT( * ) + 24 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-2926
SELECT CAST ( 88 AS INTEGER ) * + COUNT ( * ) + 24 FROM tab1 AS cor0
----
288

query II rowsort
SELECT ALL - 3, - col2 FROM tab0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT col0 * - 20 AS col2 FROM tab1
----
-1020
-1700
-1820

onlyif mysql # DIV for integer division: 
query I rowsort label-2929
SELECT + 93 DIV col2 col0 FROM tab0
----
0
1
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2929
SELECT + 93 / col2 col0 FROM tab0
----
0
1
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2930
SELECT ALL - + col0 AS col1 FROM tab2 WHERE NOT ( 88 + CAST( - 20 AS DECIMAL ) + - 14 * col1 ) <> 7 + CAST( + ( - col0 ) AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL - + col0 AS col1 FROM tab2 WHERE NOT ( 88 + CAST ( - 20 AS REAL ) + - 14 * col1 ) <> 7 + CAST ( + ( - col0 ) AS REAL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT - COUNT( ALL - - col0 ) * 74 * 44 FROM tab0 cor0
----
-9768

skipif mysql # not compatible
query I rowsort label-2932
SELECT - COUNT ( ALL - - col0 ) * 74 * 44 FROM tab0 cor0
----
-9768

query I rowsort
SELECT ALL 45 + + col1 AS col1 FROM tab2
----
112
122
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2934
SELECT + 73 DIV col1 + + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-207
-26
-3807

skipif mysql # not compatible
query I rowsort label-2934
SELECT + 73 / col1 + + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-207
-26
-3807

onlyif mysql # DIV for integer division: 
query II rowsort label-2935
SELECT DISTINCT col1 DIV + ( + 55 ) AS col0, ( + + ( + col2 ) ) col0 FROM tab2 AS cor0
----
0
23
1
40
1
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2935
SELECT DISTINCT col1 / + ( + 55 ) AS col0, ( + + ( + col2 ) ) col0 FROM tab2 AS cor0
----
0
23
1
40
1
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2936
SELECT ALL + 22 DIV + col2 col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2936
SELECT ALL + 22 / + col2 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + - + 80 AS col0 FROM tab0 AS cor0
----
-59
-79
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 7 = - 48 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 95 col2 FROM tab1 AS cor0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT - COUNT( * ) + + SUM( DISTINCT col0 ) col0 FROM tab2 AS cor0
----
182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2940
SELECT - COUNT ( * ) + + SUM ( DISTINCT col0 ) col0 FROM tab2 AS cor0
----
182

query I rowsort
SELECT + col1 * - - 86 + col2 - + ( + col1 ) * + + 82 FROM tab1 AS cor0
----
152
256
79

query II rowsort
SELECT - - col1 * - 12 + + col2, col2 FROM tab0 AS cor0
----
-242
10
-925
47
87
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT DISTINCT MIN( 30 ) AS col1 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2943
SELECT DISTINCT MIN ( 30 ) AS col1 FROM tab0 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT DISTINCT - ( + MIN( + 60 ) ) + COUNT( * ) FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT - ( + MIN ( + 60 ) ) + COUNT ( * ) FROM tab2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT ALL - 75 + MAX( + col0 ) col0 FROM tab1
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2945
SELECT ALL - 75 + MAX ( + col0 ) col0 FROM tab1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT DISTINCT - MIN( DISTINCT - - col1 ) + 83 AS col0 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-2946
SELECT DISTINCT - MIN ( DISTINCT - - col1 ) + 83 AS col0 FROM tab0
----
82

query I rowsort
SELECT DISTINCT - col2 + + - col0 * 57 - col1 * col1 * + col0 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL - col2 * + col1 + - col0 + - - col0, + 34 AS col1 FROM tab0
----
-210
34
-3807
34
-99
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col0 + + col1 col0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT DISTINCT COUNT( * ) - + ( - 42 ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT COUNT ( * ) - + ( - 42 ) FROM tab1
----
45

query II rowsort
SELECT col1 - 32 AS col0, ( - col1 ) AS col0 FROM tab2 AS cor0
----
19
-51
35
-67
45
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-2952
SELECT col0 * - + col0 + 15 DIV - - ( - + col2 ) * - + 45 - + col0 FROM tab2 cor0
----
-2162
-4160
-5700

skipif mysql # not compatible
query I rowsort label-2952
SELECT col0 * - + col0 + 15 / - - ( - + col2 ) * - + 45 - + col0 FROM tab2 cor0
----
-2162
-4160
-5700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2953
SELECT CAST( + ( + + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2953
SELECT CAST ( + ( + + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 + - col0 col1 FROM tab2 AS cor0 WHERE NOT 35 BETWEEN - 62 + - + col2 AND - col1 + + + col2
----
-1104
-2624
-4425

onlyif mysql # DIV for integer division: 
query I rowsort label-2955
SELECT + col0 DIV + 79 + col2 + 85 col2 FROM tab0 AS cor0
----
132
185
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2955
SELECT + col0 / + 79 + col2 + 85 col2 FROM tab0 AS cor0
----
132
185
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT ALL + 40 * + COUNT( * ) FROM tab0 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL + 40 * + COUNT ( * ) FROM tab0 AS cor0
----
120

query I rowsort
SELECT ALL - + 2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT DISTINCT - + col1 * - - 84 + + col2 AS col2, ( - 1 ) * col1 + + 86 * 99 * + + col2 FROM tab2 AS cor0
----
-4261
195771
-5570
493745
-6428
340483

query II rowsort
SELECT DISTINCT + col2, 36 * 87 AS col0 FROM tab1
----
59
3132
68
3132
96
3132

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT ALL MIN( DISTINCT - 69 ) FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL MIN ( DISTINCT - 69 ) FROM tab1
----
-69

query I rowsort
SELECT 46 * - 85 AS col0 FROM tab2
----
-3910
-3910
-3910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2962
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / + + 78 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2962
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / + + 78 AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 17 col2, + 25 AS col1 FROM tab2 AS cor0
----
-17
25
-17
25
-17
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT - SUM( DISTINCT + + 60 ) AS col2 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-2964
SELECT - SUM ( DISTINCT + + 60 ) AS col2 FROM tab2 AS cor0
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-2965
SELECT - col0 DIV - - col1 col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2965
SELECT - col0 / - - col1 col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT ALL - MAX( DISTINCT - 85 ) AS col2 FROM tab0 AS cor0 WHERE col0 + col2 - - col1 IS NOT NULL
----
85

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL - MAX ( DISTINCT - 85 ) AS col2 FROM tab0 AS cor0 WHERE col0 + col2 - - col1 IS NOT NULL
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT - 10 * - - COUNT( * ) + + COUNT( * ) - - COUNT( * ) AS col0 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-2967
SELECT - 10 * - - COUNT ( * ) + + COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab2
----
-24

query I rowsort
SELECT ALL 43 + - - col2 * - 10 FROM tab1
----
-547
-637
-917

query I rowsort
SELECT DISTINCT 61 + + col0 AS col1 FROM tab0
----
148
158
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT 90 = - - 40 + + 9
----
3

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT 90 = - - 40 + + 9
----
3

query I rowsort
SELECT DISTINCT 27 + col2 AS col0 FROM tab0
----
126
37
74

query I rowsort
SELECT - - 94 * - col0 FROM tab0 cor0
----
-1410
-8178
-9118

query I rowsort
SELECT 66 AS col1 FROM tab1 AS cor0 WHERE + 47 - + col2 * + ( 16 ) + - - col0 * + col0 IN ( + ( col1 ) + col0 )
----

query I rowsort
SELECT DISTINCT - ( - + 46 ) AS col0 FROM tab2 AS cor0
----
46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + - 70 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2976
SELECT - + CAST( + 61 AS SIGNED ) * - - 58 col1 FROM tab2 AS cor0
----
-3538
-3538
-3538

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2976
SELECT - + CAST ( + 61 AS INTEGER ) * - - 58 col1 FROM tab2 AS cor0
----
-3538
-3538
-3538

query II rowsort
SELECT - 30 * - col0 AS col1, - 67 FROM tab0 AS cor0
----
2610
-67
2910
-67
450
-67

query I rowsort
SELECT DISTINCT + 41 / - col0 FROM tab1 WHERE NOT NULL NOT IN ( - + col2, + ( - - ( 54 ) ), - col1 * 6 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT DISTINCT - COUNT( + - 47 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2979
SELECT DISTINCT - COUNT ( + - 47 ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + col1 + + - 37 FROM tab2
----
14
30
40

query I rowsort
SELECT col2 - - + 26 AS col2 FROM tab2
----
49
66
84

query I rowsort
SELECT + ( + col1 ) * - - col1 + + 43 FROM tab0
----
44
484
6604

query I rowsort
SELECT col2 + col0 + 15 FROM tab1
----
159
162
174

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col1 / col0 + + 38 >= 10 / - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2985
SELECT ALL 61 + - 74 - - - col1 DIV - - col1 + 89 FROM tab0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL 61 + - 74 - - - col1 / - - col1 + 89 FROM tab0
----
75
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 46 col0 FROM tab2 cor0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT - ( + + col2 ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-2988
SELECT 74 AS col1, - MIN( DISTINCT - 82 ) AS col2 FROM tab2
----
74
82

skipif mysql # not compatible
query II rowsort label-2988
SELECT 74 AS col1, - MIN ( DISTINCT - 82 ) AS col2 FROM tab2
----
74
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT - MIN( col1 ) * + + 47 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-2989
SELECT - MIN ( col1 ) * + + 47 FROM tab0
----
-47

query II rowsort
SELECT + col2, + col2 * - - 59 FROM tab2
----
23
1357
40
2360
58
3422

onlyif mysql # aggregate syntax: 
query II rowsort label-2991
SELECT DISTINCT MAX( ALL - col0 ) AS col2, ( 16 ) AS col2 FROM tab0
----
-15
16

skipif mysql # not compatible
query II rowsort label-2991
SELECT DISTINCT MAX ( ALL - col0 ) AS col2, ( 16 ) AS col2 FROM tab0
----
-15
16

query I rowsort
SELECT ALL col1 * + ( + 34 ) AS col1 FROM tab1
----
1598
170
476

onlyif mysql # aggregate syntax: 
query II rowsort label-2993
SELECT ALL COUNT( * ) col1, - MAX( DISTINCT col2 ) FROM tab0 cor0
----
3
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2993
SELECT ALL COUNT ( * ) col1, - MAX ( DISTINCT col2 ) FROM tab0 cor0
----
3
-99

query I rowsort
SELECT DISTINCT 12 * + - 5 AS col2 FROM tab2 AS cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2995
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2995
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT ALL + + 25, + col1 FROM tab0 cor0
----
25
1
25
21
25
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 5 ) col0 FROM tab2 cor0
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT - COUNT( ALL + + col0 ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2998
SELECT - COUNT ( ALL + + col0 ) col1 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, col2 col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col1 * + - 35 + - col1 - col0 * + + 81 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT COUNT( * ) * ( - 35 ) AS col0 FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-3001
SELECT COUNT ( * ) * ( - 35 ) AS col0 FROM tab0
----
-105

query I rowsort
SELECT col1 * + col1 * - 67 * col1 FROM tab1
----
-183848
-6956141
-8375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3003
SELECT CAST( NULL AS SIGNED ) * - col0 * - col0 * col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3003
SELECT CAST ( NULL AS INTEGER ) * - col0 * - col0 * col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 WHERE NOT - - 77 + + ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 + - col2 AND - - col1
----

query II rowsort
SELECT col2 AS col0, + 61 AS col0 FROM tab1
----
59
61
68
61
96
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT DISTINCT + 87 + - - MIN( - col2 ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3007
SELECT DISTINCT + 87 + - - MIN ( - col2 ) FROM tab0 AS cor0
----
-12

query I rowsort
SELECT ALL + + col0 * ( - col1 ) + ( - 60 ) FROM tab2 AS cor0
----
-2406
-4988
-5085

query I rowsort
SELECT 53 + + col0 AS col2 FROM tab2 AS cor0
----
117
128
99

query I rowsort
SELECT - + col2 + - + col0 + + col0 + 59 AS col1 FROM tab0 AS cor0
----
-40
12
49

query II rowsort
SELECT 75 AS col2, + col1 AS col0 FROM tab0 cor0 WHERE 27 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3012
SELECT DISTINCT - ( - + CAST( + + col0 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3012
SELECT DISTINCT - ( - + CAST ( + + col0 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT 14 * + - col2 + - col1 + + 91 * - col1 FROM tab2 AS cor0
----
-5014
-6976
-7644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3014
SELECT SUM( DISTINCT - col0 ) + - + MAX( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3014
SELECT SUM ( DISTINCT - col0 ) + - + MAX ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3015
SELECT DISTINCT + CAST( ( + COUNT( ALL - + ( + - col2 ) ) ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT + CAST ( ( + COUNT ( ALL - + ( + - col2 ) ) ) AS INTEGER ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 + + 82 + col0 - + - col0 col1 FROM tab1
----
255
323
335

query I rowsort
SELECT - col2 * - + 97 AS col1 FROM tab2 WHERE 53 + - ( + col2 ) = col1
----

query III rowsort
SELECT * FROM tab0 WHERE + - 48 * - - col2 NOT BETWEEN + - col2 AND + + col2 * + col2 + - - 69 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT MAX( + - col0 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3019
SELECT MAX ( + - col0 ) AS col1 FROM tab0
----
-15

query I rowsort
SELECT ALL - + 92 AS col0 FROM tab0 WHERE NULL IS NULL
----
-92
-92
-92

query I rowsort
SELECT ALL col0 - 89 AS col0 FROM tab0
----
-2
-74
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3022
SELECT * FROM tab0 AS cor0 WHERE CAST( + col1 AS SIGNED ) + 47 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3022
SELECT * FROM tab0 AS cor0 WHERE CAST ( + col1 AS INTEGER ) + 47 IS NULL
----

query I rowsort
SELECT ALL 63 - 88 FROM tab2 AS cor0
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT ALL - COUNT( * ) + - - ( + 42 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
42

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL - COUNT ( * ) + - - ( + 42 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
42

query I rowsort
SELECT DISTINCT - - 38 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT + COUNT( DISTINCT - 70 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3026
SELECT + COUNT ( DISTINCT - 70 ) FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3027
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3027
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3028
SELECT COUNT( * ) / + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3028
SELECT COUNT ( * ) / + CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT ( + ( ( + col0 ) ) ) AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL + ( col2 ) AS col1 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3031
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) < + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3031
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) < + + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT 78, + col0 AS col1 FROM tab2
----
78
46
78
64
78
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3033
SELECT ALL - ( - MAX( ALL + + 13 ) ) AS col1, - COUNT( * ) * - COUNT( * ) AS col0 FROM tab1 WHERE NOT ( - col0 ) >= NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3033
SELECT ALL - ( - MAX ( ALL + + 13 ) ) AS col1, - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( - col0 ) >= NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT - 30 * + ( + MAX( ( col2 ) ) ) FROM tab2
----
-1740

skipif mysql # not compatible
query I rowsort label-3034
SELECT - 30 * + ( + MAX ( ( col2 ) ) ) FROM tab2
----
-1740

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, 28 FROM tab0
----
-10
28
-47
28
-99
28

query I rowsort
SELECT DISTINCT col1 * 13 * - col0 + col0 FROM tab1
----
-5440
-55510
-9231

query I rowsort
SELECT ALL 49 * 68 FROM tab0
----
3332
3332
3332

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 80 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT DISTINCT - 51 * - - COUNT( * ) * 87 FROM tab2 AS cor0
----
-13311

skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT - 51 * - - COUNT ( * ) * 87 FROM tab2 AS cor0
----
-13311

query I rowsort
SELECT DISTINCT 74 FROM tab0 cor0 WHERE + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + - 98 AS col2, - col1 col1 FROM tab1 AS cor0
----
-51
-47
-84
-14
-93
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3042
SELECT ALL - 0 + + - 28 * MAX( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL - 0 + + - 28 * MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3043
SELECT CAST( NULL AS SIGNED ) + + + COUNT( * ) FROM tab0 AS cor0 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3043
SELECT CAST ( NULL AS INTEGER ) + + + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <> NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * - 47 * + - col2 AS col1 FROM tab0 AS cor0
----
33135
40890
451341

query I rowsort
SELECT - col1 - 10 AS col0 FROM tab1
----
-15
-24
-57

query I rowsort
SELECT ALL 68 * - 90 AS col1 FROM tab2
----
-6120
-6120
-6120

onlyif mysql # DIV for integer division: 
query I rowsort label-3048
SELECT ALL + col1 DIV + - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL + col1 / + - col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 + + 79 col1 FROM tab0
----
101

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> + - col0
----

query I rowsort
SELECT ALL 54 + + col0 + 6 FROM tab2
----
106
124
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3052
SELECT DISTINCT - col2 + - CAST( - col1 AS SIGNED ) FROM tab2
----
28
37
9

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT - col2 + - CAST ( - col1 AS INTEGER ) FROM tab2
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3053
SELECT + - CAST( NULL AS SIGNED ) * col1 + - - ( col2 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3053
SELECT + - CAST ( NULL AS INTEGER ) * col1 + - - ( col2 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - 95 + - col0 FROM tab0 AS cor0 WHERE col0 * - 82 IS NOT NULL
----
-192
-2082
-7710

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - col2 <> 98 - + + col0 + - + ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT + SUM( DISTINCT ( - + col1 ) ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3056
SELECT + SUM ( DISTINCT ( - + col1 ) ) FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT - SUM( - 10 ) FROM tab0, tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-3057
SELECT - SUM ( - 10 ) FROM tab0, tab1 AS cor0
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 col1 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT DISTINCT + 87 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT ALL + COUNT( * ) - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL + COUNT ( * ) - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 / + ( col2 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3062
SELECT CAST( + col0 AS SIGNED ), col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

skipif mysql # not compatible
query II rowsort label-3062
SELECT CAST ( + col0 AS INTEGER ), col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 34 + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT COUNT( - - col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3064
SELECT COUNT ( - - col2 ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT COUNT( DISTINCT 12 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3066
SELECT COUNT ( DISTINCT 12 ) FROM tab1
----
1

query I rowsort
SELECT ALL - ( + col2 ) + + col1 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT - - col0 * col1 * + 12 + + col0 + - - 57 FROM tab0 AS cor0
----
1318
14652
22068

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT DISTINCT - - COUNT( ALL + col0 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT - - COUNT ( ALL + col0 ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3070
SELECT + + COUNT( * ) DIV 47 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3070
SELECT + + COUNT ( * ) / 47 AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND - 81
----

query I rowsort
SELECT ALL + 13 * + ( - 19 ) AS col2 FROM tab1
----
-247
-247
-247

query I rowsort
SELECT ALL + 74 FROM tab2 AS cor0 WHERE NOT + 25 IS NULL
----
74
74
74

query I rowsort
SELECT 55 * - + 0 AS col2 FROM tab0 cor0 WHERE - 27 BETWEEN + - 12 AND - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT + + ( - COUNT( * ) ) + - 23 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-3075
SELECT + + ( - COUNT ( * ) ) + - 23 FROM tab1 AS cor0
----
-26

query I rowsort
SELECT ALL + + 36 * - + 3 + + col0 AS col2 FROM tab1 AS cor0
----
-17
-23
-57

query I rowsort
SELECT ALL + col0 * - 52 + + + col0 FROM tab0 AS cor0 WHERE NOT col1 + - 52 BETWEEN + - 78 + + - col2 AND NULL
----

query I rowsort
SELECT - - col2 * 99 + - 7 AS col1 FROM tab2 cor0
----
2270
3953
5735

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 59 * + col2 >= col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3080
SELECT DISTINCT - COUNT( * ) * SUM( DISTINCT 71 ) AS col0, MIN( ALL + 19 ) FROM tab0
----
-213
19

skipif mysql # not compatible
query II rowsort label-3080
SELECT DISTINCT - COUNT ( * ) * SUM ( DISTINCT 71 ) AS col0, MIN ( ALL + 19 ) FROM tab0
----
-213
19

query I rowsort
SELECT ALL col2 * + col2 + - - 2 AS col2 FROM tab1
----
3483
4626
9218

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3082
SELECT ALL + col0 * - CAST( NULL AS SIGNED ) * 61 + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL + col0 * - CAST ( NULL AS INTEGER ) * 61 + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3083
SELECT DISTINCT - - col1 DIV - + col1 - + col1 AS col1 FROM tab0 AS cor0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT - - col1 / - + col1 - + col1 AS col1 FROM tab0 AS cor0
----
-2
-22
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT ALL ( - MAX( DISTINCT - + 12 ) ) * + 72 + + 2 AS col0 FROM tab1 AS cor0
----
866

skipif mysql # not compatible
query I rowsort label-3084
SELECT ALL ( - MAX ( DISTINCT - + 12 ) ) * + 72 + + 2 AS col0 FROM tab1 AS cor0
----
866

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 3 ) col1 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = - col0 + + + col0 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col0 = + - 77
----
3

skipif mysql # not compatible
query I rowsort label-3087
SELECT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col0 = + - 77
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT DISTINCT + + MAX( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT + + MAX ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-3089
SELECT DISTINCT - - col0 col2, - ( - + col2 ) DIV + col2 AS col2 FROM tab1 cor0
----
51
1
85
1
91
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3089
SELECT DISTINCT - - col0 col2, - ( - + col2 ) / + col2 AS col2 FROM tab1 cor0
----
51
1
85
1
91
1

query I rowsort
SELECT DISTINCT + ( + ( - col0 ) ) FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT ALL SUM( - 91 ) AS col0 FROM tab2
----
-273

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL SUM ( - 91 ) AS col0 FROM tab2
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT ALL - MAX( 70 ) + + COUNT( * ) AS col0 FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL - MAX ( 70 ) + + COUNT ( * ) AS col0 FROM tab1
----
-67

query I rowsort
SELECT ALL col1 * - - col1 * + col0 + + + 68 * - - ( - ( + + col0 ) ) FROM tab0
----
-6499
32451
97395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3094
SELECT DISTINCT - CAST( + col1 AS SIGNED ) + - 14 AS col0 FROM tab0
----
-15
-35
-95

skipif mysql # not compatible
query I rowsort label-3094
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) + - 14 AS col0 FROM tab0
----
-15
-35
-95

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3096
SELECT ALL - - col1 DIV + - col2 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL - - col1 / + - col2 AS col2 FROM tab0 AS cor0
----
-1
-2
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 BETWEEN - + 44 AND + col2 / - col2 * - + col1
----

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE NULL <= + col1
----

query I rowsort
SELECT ALL - + col1 + + col1 * + + col1 FROM tab2 AS cor0
----
2550
4422
5852

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT ALL - COUNT( * ) - - + 98 FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-3100
SELECT ALL - COUNT ( * ) - - + 98 FROM tab1 AS cor0
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 92 + - 59 col2 FROM tab2 AS cor0
----
-151

query I rowsort
SELECT DISTINCT + ( - 87 ) FROM tab1 cor0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + - 98 AS col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL - - 40 AS col1 FROM tab0 AS cor0 WHERE - col2 >= col0
----

query I rowsort
SELECT 48 FROM tab0 AS cor0 WHERE NULL IS NULL
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT SUM( DISTINCT col0 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
199

skipif mysql # not compatible
query I rowsort label-3107
SELECT SUM ( DISTINCT col0 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
199

query I rowsort
SELECT - - 83 + + col1 * - 69 + - - 67 FROM tab0 AS cor0
----
-1299
-5439
81

query I rowsort
SELECT - col2 + + - 41 FROM tab1 AS cor0
----
-100
-109
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT DISTINCT + COUNT( DISTINCT - col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3110
SELECT DISTINCT + COUNT ( DISTINCT - col2 ) AS col1 FROM tab1
----
3

query II rowsort
SELECT + col0 AS col1, col2 AS col0 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT + col2 * + + 74 AS col0 FROM tab0
----
3478
7326
740

query I rowsort
SELECT ALL - col2 * 72 FROM tab2 AS cor0
----
-1656
-2880
-4176

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( - col2 ) + - col2 * + col0 IS NOT NULL
----

query I rowsort
SELECT + 27 * - + col0 * - - col2 FROM tab1
----
-132192
-135405
-167076

query I rowsort
SELECT ALL - - 25 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 >= + 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3118
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-3118
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT + 87 + 2 FROM tab2 cor0
----
89

query I rowsort
SELECT ALL - - 5 * + + col2 AS col2 FROM tab2 AS cor0
----
115
200
290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3121
SELECT + 9 * - SUM( DISTINCT - - 86 ) * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3121
SELECT + 9 * - SUM ( DISTINCT - - 86 ) * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( 6 ) AS col0 FROM tab0 AS cor0
----
-6

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 74 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 36 + + col2 * - col0 FROM tab1 AS cor0
----
-4860
-4979
-6152

query I rowsort
SELECT col2 + 27 + + col0 AS col1 FROM tab2
----
131
160
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT - COUNT( * ) FROM tab1, tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3126
SELECT - COUNT ( * ) FROM tab1, tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + col2 + - col2 - col0 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3128
SELECT ALL - 18 AS col2, CAST( NULL AS SIGNED ) - - col1 AS col2 FROM tab0
----
-18
NULL
-18
NULL
-18
NULL

skipif mysql # not compatible
query II rowsort label-3128
SELECT ALL - 18 AS col2, CAST ( NULL AS INTEGER ) - - col1 AS col2 FROM tab0
----
-18
NULL
-18
NULL
-18
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - + col2 AS col2, - col2 AS col1 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

query I rowsort
SELECT DISTINCT col2 * + col1 * col0 * - + 68 AS col0 FROM tab0 AS cor0 WHERE col0 + col1 IS NULL
----

query I rowsort
SELECT + col1 * + ( + - 73 ) * - - ( - col2 ) AS col1 FROM tab1 AS cor0
----
21535
233308
98112

query II rowsort
SELECT - col2 AS col0, 7 * - 71 FROM tab0 AS cor0
----
-10
-497
-47
-497
-99
-497

query I rowsort
SELECT - col0 * + 48 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-2208
-3072
-3600

query I rowsort
SELECT 26 + 12 * + col0 FROM tab0 WHERE NULL <> ( col2 + 77 )
----

query I rowsort
SELECT 97 * + 3 - col0 * + col1 FROM tab1
----
-134
-3986
-423

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + 32 col1 FROM tab1
----
-18
-27
15

query I rowsort
SELECT ALL ( 26 ) + - 41 * - col0 AS col1 FROM tab0
----
3593
4003
641

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3139
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) BETWEEN NULL AND ( CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3139
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) BETWEEN NULL AND ( CAST ( col0 AS INTEGER ) )
----

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT NULL <= ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT ALL COUNT( * ) * 87 col0 FROM tab2
----
261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3141
SELECT ALL COUNT ( * ) * 87 col0 FROM tab2
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT 54 * SUM( + col1 * + col0 ) FROM tab0
----
169506

skipif mysql # not compatible
query I rowsort label-3142
SELECT 54 * SUM ( + col1 * + col0 ) FROM tab0
----
169506

query I rowsort
SELECT 92 * + col1 AS col1 FROM tab1
----
1288
4324
460

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( 25 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3145
SELECT DISTINCT col1 FROM tab1 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3145
SELECT DISTINCT col1 FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL ( 20 ) * 20 AS col1 FROM tab2
----
400
400
400

onlyif mysql # DIV for integer division: 
query I rowsort label-3147
SELECT DISTINCT - col2 DIV 25 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3147
SELECT DISTINCT - col2 / 25 FROM tab2
----
-1
-2
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 61 < ( - 27 * + 29 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 28 AS col1 FROM tab1 WHERE NOT col0 < ( col2 )
----
-28
-28

query I rowsort
SELECT ALL + 95 - - col0 FROM tab2 WHERE - col1 - + 56 * 96 IS NOT NULL
----
141
159
170

query I rowsort
SELECT col0 * - 26 + + col2 FROM tab2
----
-1173
-1624
-1892

query I rowsort
SELECT ALL 69 + col1 AS col2 FROM tab1
----
116
74
83

query I rowsort
SELECT DISTINCT + col2 * - ( col0 ) - col0 AS col2 FROM tab1
----
-4947
-5100
-6279

query I rowsort
SELECT - col0 + - 85 AS col1 FROM tab2
----
-131
-149
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT ALL COUNT( * ) * MAX( DISTINCT col0 ) AS col1 FROM tab0 WHERE ( NULL ) NOT IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL COUNT ( * ) * MAX ( DISTINCT col0 ) AS col1 FROM tab0 WHERE ( NULL ) NOT IN ( col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT DISTINCT COUNT( * ) * + COUNT( * ) + + 69 * 8 AS col2 FROM tab2
----
561

skipif mysql # not compatible
query I rowsort label-3156
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) + + 69 * 8 AS col2 FROM tab2
----
561

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3157
SELECT 0 + + col2 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3157
SELECT 0 + + col2 * CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col0 * col1 ) >= NULL
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE ( - col2 ) IS NULL
----

query I rowsort
SELECT 72 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
72
72
72

query I rowsort
SELECT ( - col2 ) + 77 FROM tab2
----
19
37
54

query I rowsort
SELECT - 69 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT col1 + - 38 FROM tab0
----
-17
-37
43

query I rowsort
SELECT + 90 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT - ( - col2 ) + - 10 * 66 AS col1 FROM tab2
----
-602
-620
-637

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 80 * + 93 IS NOT NULL
----

query I rowsort
SELECT 77 * 70 AS col0 FROM tab2 AS cor0 WHERE NOT ( - 8 * + ( col1 * + col2 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3168
SELECT DISTINCT - - col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3168
SELECT DISTINCT - - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 93 col1 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT col1 + - 71 * - col2 AS col1 FROM tab2 AS cor0 WHERE NOT - 28 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 32 ) NOT IN ( 52 * ( col0 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( 92 )
----

query I rowsort
SELECT ALL 76 AS col0 FROM tab1 AS cor0 WHERE NOT 21 = ( + 90 )
----
76
76
76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 ) < - 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT DISTINCT + ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3175
SELECT DISTINCT + ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col0 FROM tab1 WHERE col0 * - col2 >= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3177
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3177
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - 49 + - col1 + + col2 AS col2 FROM tab2
----
-58
-77
-86

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT col2 * + 23 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN + col2 * col1 AND col1
----

query I rowsort
SELECT ALL + 98 * - col1 FROM tab0
----
-2058
-7938
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3182
SELECT ALL + col2 + - ( CAST( NULL AS SIGNED ) ) + 69 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL + col2 + - ( CAST ( NULL AS INTEGER ) ) + 69 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 76 + ( col0 ) + + 24 AS col1 FROM tab2
----
-6
12
23

query I rowsort
SELECT DISTINCT col1 + + - col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT - COUNT( * ) + + + 12 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3185
SELECT - COUNT ( * ) + + + 12 FROM tab2
----
9

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( col2 + col2 )
----

query I rowsort
SELECT col0 - - col1 FROM tab0 WHERE NULL IN ( + 57 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( 66 + + 3 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT + - 36 + - COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-3189
SELECT + - 36 + - COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
-45

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 3 * + col2 + col0 - - col2 FROM tab1 AS cor0
----
321
363
435

query I rowsort
SELECT - - 5 * - 79 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to f6c79ba85a95e81cc358b5b723c95bc3

query I rowsort
SELECT DISTINCT + 69 + - 8 FROM tab0
----
61

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 56 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 89 NOT BETWEEN - col0 * + col0 AND 2 * 66
----

query II rowsort
SELECT DISTINCT - col1, + col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3197
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3198
SELECT ALL + MIN( + 11 ) DIV 44 + 63 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL + MIN ( + 11 ) / 44 + 63 FROM tab1 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT - MAX( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3199
SELECT - MAX ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT col1 * + - col2 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL - 82 / 6 + + 47 * 97 AS col1 FROM tab0 WHERE + 12 / + col0 * 21 - 9 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 86 IN ( + 38 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT COUNT( + - col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3203
SELECT COUNT ( + - col0 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 64 ) IN ( + 50 - col1 * - 94 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col2 + 26 + - 31 * + col0 NOT IN ( 3 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN + + col0 AND 68
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 63 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 * + col1 + col1 col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
2430
30
630

query I rowsort
SELECT DISTINCT + 55 FROM tab2 AS cor0 WHERE NOT - col1 * + col0 + 40 >= - col1
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-3210
SELECT - + ( - - 5 ) DIV col2 * + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3210
SELECT - + ( - - 5 ) / col2 * + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT DISTINCT - 65 * - - COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-3211
SELECT DISTINCT - 65 * - - COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
585

query I rowsort
SELECT ALL 41 + + col1 * + 75 * - + col2 AS col1 FROM tab1
----
-100759
-22084
-239659

query I rowsort
SELECT ALL + ( + 16 ) + + 87 * - ( 75 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6569f386b3881e2692e5c1811e3a04fc

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT + + col2 + + col1 AS col0 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT + COUNT( * ) + + 68 AS col2 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-3216
SELECT + COUNT ( * ) + + 68 AS col2 FROM tab1 AS cor0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3217
SELECT + + col2 * - CAST( NULL AS SIGNED ) + + + 68 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3217
SELECT + + col2 * - CAST ( NULL AS INTEGER ) + + + 68 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + 31 * + + col2 * + 6 + + 53 AS col1 FROM tab0 AS cor0
----
18566
1923
8842

query I rowsort
SELECT + col2 + + col2 + - col1 * + col2 * - col0 * - ( + col1 ) AS col0 FROM tab0 AS cor0
----
-383650
-4625411
-9405

onlyif mysql # DIV for integer division: 
query I rowsort label-3220
SELECT + col0 + - + ( - col1 ) + + + col0 DIV + + col0 + - ( col0 ) FROM tab2
----
52
68
78

skipif mysql # not compatible
query I rowsort label-3220
SELECT + col0 + - + ( - col1 ) + + + col0 / + + col0 + - ( col0 ) FROM tab2
----
52
68
78

query I rowsort
SELECT DISTINCT 73 * + col1 * - col2 FROM tab0
----
-15330
-277911
-7227

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE ( NULL ) IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3223
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2 WHERE NOT ( - CAST( NULL AS SIGNED ) * - - 90 < + 80 + - 61 )
----
0

skipif mysql # not compatible
query I rowsort label-3223
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 WHERE NOT ( - CAST ( NULL AS INTEGER ) * - - 90 < + 80 + - 61 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3224
SELECT * FROM tab0 WHERE - - CAST( - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3224
SELECT * FROM tab0 WHERE - - CAST ( - col0 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3225
SELECT DISTINCT - col2 + - - CAST( NULL AS SIGNED ) + col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3225
SELECT DISTINCT - col2 + - - CAST ( NULL AS INTEGER ) + col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 col1 FROM tab0, tab0 AS cor0
----
67

query II rowsort
SELECT - col2 AS col1, ( - - 88 ) AS col0 FROM tab0 AS cor0
----
-10
88
-47
88
-99
88

query I rowsort
SELECT + - col1 - 59 FROM tab0 AS cor0
----
-140
-60
-80

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( - ( 62 ) + + - col0 / col1 + 64 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( + 66 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * + - 67 FROM tab1
----
-3953
-4556
-6432

query I rowsort
SELECT ALL + + col1 + + 79 - 64 * + ( col2 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3233
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + + - CAST( col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3233
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + + - CAST ( col2 AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( 71 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT DISTINCT + COUNT( - - 54 ) * - 65 * + 71 AS col1 FROM tab0 AS cor0
----
-13845

skipif mysql # not compatible
query I rowsort label-3235
SELECT DISTINCT + COUNT ( - - 54 ) * - 65 * + 71 AS col1 FROM tab0 AS cor0
----
-13845

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3236
SELECT * FROM tab1 cor0 WHERE NOT + CAST( NULL AS SIGNED ) >= + 51
----

skipif mysql # not compatible
query III rowsort label-3236
SELECT * FROM tab1 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) >= + 51
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col2, + col1 col1 FROM tab2 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3238
SELECT ALL + CAST( NULL AS SIGNED ), col0 AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-3238
SELECT ALL + CAST ( NULL AS INTEGER ), col0 AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT DISTINCT MIN( + + 86 ) AS col1 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT MIN ( + + 86 ) AS col1 FROM tab2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3240
SELECT col1 + - + col0 FROM tab2 WHERE NOT ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-3240
SELECT col1 + - + col0 FROM tab2 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
-8
13
5

query II rowsort
SELECT 5, + col0 AS col0 FROM tab1
----
5
51
5
85
5
91

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col0, + col1 * + - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col0, col1 col2 FROM tab2
----
-46
51
-64
77
-75
67

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 + - + col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, + ( + ( + col1 ) ) col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT + - ( + ( + COUNT( * ) ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3246
SELECT + - ( + ( + COUNT ( * ) ) ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN - 91 * - - 58 AND ( + col2 - - 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT - SUM( - + 96 ) + - 72 AS col0 FROM tab2, tab0 AS cor0
----
792

skipif mysql # not compatible
query I rowsort label-3248
SELECT - SUM ( - + 96 ) + - 72 AS col0 FROM tab2, tab0 AS cor0
----
792

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3249
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE 40 NOT BETWEEN 64 - - CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3249
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE 40 NOT BETWEEN 64 - - CAST ( NULL AS REAL ) AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 NOT IN ( + 89 + - col1 - - + col1, ( col1 ) )
----

query I rowsort
SELECT ALL - 93 * - col1 * - + 20 AS col0 FROM tab1 AS cor0
----
-26040
-87420
-9300

query I rowsort
SELECT col2 * + col2 * col2 - + col1 AS col1 FROM tab0
----
103742
970298
979

query I rowsort
SELECT col1 + 5 FROM tab1
----
10
19
52

query I rowsort
SELECT + col0 + 2 FROM tab0
----
17
89
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3255
SELECT - col0 * + 16 * + - 38 + - - col2 DIV + - col1 * - + col1 AS col2 FROM tab2
----
27968
38912
45600

skipif mysql # not compatible
query I rowsort label-3255
SELECT - col0 * + 16 * + - 38 + - - col2 / + - col1 * - + col1 AS col2 FROM tab2
----
27968
38912
45600

query I rowsort
SELECT col1 * col2 + - 4 AS col1 FROM tab0
----
206
3803
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT ALL - 30 + - COUNT( * ) FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL - 30 + - COUNT ( * ) FROM tab2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3258
SELECT * FROM tab0 WHERE ( NULL ) = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3258
SELECT * FROM tab0 WHERE ( NULL ) = + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col2 - - col0 * + + col0 + 55 FROM tab1 AS cor0
----
2752
7339
8404

onlyif mysql # DIV for integer division: 
query I rowsort label-3260
SELECT DISTINCT + col2 DIV + col2 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3260
SELECT DISTINCT + col2 / + col2 FROM tab1 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT - SUM( ALL - - col1 ) * - 65 - + + 79 AS col0 FROM tab0
----
6616

skipif mysql # not compatible
query I rowsort label-3261
SELECT - SUM ( ALL - - col1 ) * - 65 - + + 79 AS col0 FROM tab0
----
6616

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT ALL - 93 * + + MIN( + ( col1 ) ) FROM tab2
----
-4743

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL - 93 * + + MIN ( + ( col1 ) ) FROM tab2
----
-4743

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + 49 * + 41 col2 FROM tab1 AS cor0
----
118531
136612
192864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3264
SELECT + 38 * col2 * CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3264
SELECT + 38 * col2 * CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 / - + ( - 45 ) NOT BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3266
SELECT ALL - COUNT( * ) DIV - SUM( + 98 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL - COUNT ( * ) / - SUM ( + 98 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + - 69 * col1 * - 9 + col2 AS col2 FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - ( col1 ) FROM tab1 cor0 WHERE NULL NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT + COUNT( * ) + - 50 + + 24 col0 FROM tab0, tab0 AS cor0
----
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3269
SELECT + COUNT ( * ) + - 50 + + 24 col0 FROM tab0, tab0 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT - 75 * COUNT( * ) AS col2 FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-3270
SELECT - 75 * COUNT ( * ) AS col2 FROM tab0
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT - 41 * + - ( + COUNT( * ) ) AS col0 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-3271
SELECT - 41 * + - ( + COUNT ( * ) ) AS col0 FROM tab0
----
123

query I rowsort
SELECT ALL 29 + + - col0 AS col1 FROM tab1
----
-22
-56
-62

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 74 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT ALL 47 + - COUNT( * ) FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL 47 + - COUNT ( * ) FROM tab0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 20 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-3275
SELECT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 20 IS NULL
----
-9

query I rowsort
SELECT ( + - 35 ) + ( col2 ) * - col0 FROM tab2
----
-1093
-2595
-4385

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= 72 * + 81
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3278
SELECT - 4 DIV col2 * + + col1 + + col0, 49 DIV col2 AS col2 FROM tab2 AS cor0
----
46
2
64
1
75
0

skipif mysql # not compatible
query II rowsort label-3278
SELECT - 4 / col2 * + + col1 + + col0, 49 / col2 AS col2 FROM tab2 AS cor0
----
46
2
64
1
75
0

query I rowsort
SELECT ALL + + 23 * + col0 * + 1 - 55 AS col1 FROM tab2 AS cor0
----
1003
1417
1670

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NULL BETWEEN col1 AND - 75
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 BETWEEN col0 AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3282
SELECT ALL col1 + + col2 DIV - 9 AS col1 FROM tab1
----
-1
4
40

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL col1 + + col2 / - 9 AS col1 FROM tab1
----
-1
4
40

query I rowsort
SELECT DISTINCT + 87 + + - col1 FROM tab0
----
6
66
86

query I rowsort
SELECT - col1 - - col1 - + col2 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col2 / - 34 <= - col0
----

query I rowsort
SELECT DISTINCT + 24 * - - col1 + col1 FROM tab2 WHERE NOT + + col2 + - 45 IS NULL
----
1275
1675
1925

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT ALL COUNT( * ) FROM tab2, tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL COUNT ( * ) FROM tab2, tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT + - col0 * - 9 AS col2 FROM tab0 AS cor0
----
135
783
873

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 4 * + col0 - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3290
SELECT * FROM tab1 AS cor0 WHERE NOT 62 + ( - + CAST( NULL AS SIGNED ) ) + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3290
SELECT * FROM tab1 AS cor0 WHERE NOT 62 + ( - + CAST ( NULL AS INTEGER ) ) + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col1 * + + 90 AS col1 FROM tab1 cor0
----
-1260
-4230
-450

query I rowsort
SELECT DISTINCT col1 * 99 - + + col2 + - col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1194
377
4517

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT ALL + MIN( DISTINCT - col2 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL + MIN ( DISTINCT - col2 ) AS col0 FROM tab1
----
-96

query II rowsort
SELECT col1 AS col1, + ( + 47 ) - + col1 FROM tab1
----
14
33
47
0
5
42

query I rowsort
SELECT ALL + 53 + + + col0 FROM tab2
----
117
128
99

query I rowsort
SELECT DISTINCT col2 + - 38 AS col2 FROM tab2
----
-15
2
20

query II rowsort
SELECT DISTINCT 38 * col2 AS col0, + col2 AS col1 FROM tab1
----
2242
59
2584
68
3648
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3298
SELECT - COUNT( * ) * - AVG ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3298
SELECT - COUNT ( * ) * - AVG ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( ( ( col2 ) ) ) / 66 IS NULL
----

query I rowsort
SELECT DISTINCT - 43 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 73 FROM tab1 WHERE NOT col0 NOT BETWEEN ( + col0 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3302
SELECT ALL + - COUNT( * ) AS col1, - 88 FROM tab1 AS cor0
----
-3
-88

skipif mysql # not compatible
query II rowsort label-3302
SELECT ALL + - COUNT ( * ) AS col1, - 88 FROM tab1 AS cor0
----
-3
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-3303
SELECT ALL + + col2 DIV + - col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL + + col2 / + - col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - 47 + - - col1 FROM tab1 AS cor0
----
-33
-42
0

query II rowsort
SELECT + col0 + - col2, col1 AS col2 FROM tab0
----
-2
1
-32
81
77
21

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND + 47 - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 + - ( - - col2 ) col1, col1 AS col2 FROM tab0
----
-196
1
-62
81
-97
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 + - - col0 + - - 31 + + + col0 col2 FROM tab1 AS cor0
----
134
146
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT - SUM( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3309
SELECT - SUM ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
156

query I rowsort
SELECT ALL + + 80 + - ( - - 37 ) AS col2 FROM tab1 AS cor0
----
43
43
43

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT DISTINCT - - COUNT( * ) - - ( 8 ) AS col0 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-3312
SELECT DISTINCT - - COUNT ( * ) - - ( 8 ) AS col0 FROM tab2 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT ALL 97 - + + 99 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL 97 - + + 99 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT + - COUNT( col2 ) * + + COUNT( * ) + - COUNT( * ) FROM tab1 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3314
SELECT + - COUNT ( col2 ) * + + COUNT ( * ) + - COUNT ( * ) FROM tab1 cor0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-3315
SELECT col1 + + col1 + col0 DIV col1 * - col0 FROM tab0
----
-306
-9407
162

skipif mysql # not compatible
query I rowsort label-3315
SELECT col1 + + col1 + col0 / col1 * - col0 FROM tab0
----
-306
-9407
162

onlyif mysql # DIV for integer division: 
query I rowsort label-3316
SELECT col1 DIV 42 + - col1 AS col1 FROM tab1
----
-14
-46
-5

skipif mysql # not compatible
query I rowsort label-3316
SELECT col1 / 42 + - col1 AS col1 FROM tab1
----
-14
-46
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT DISTINCT MIN( ALL - - col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3317
SELECT DISTINCT MIN ( ALL - - col1 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT ALL 49 * - SUM( col2 ) AS col1 FROM tab0
----
-7644

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL 49 * - SUM ( col2 ) AS col1 FROM tab0
----
-7644

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + col0 + - - col0 - + ( + + 32 ), col1 + - 93 * col0 + - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 97 BETWEEN + col0 AND col2
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 * col0 + - 93 * + col1 * - col1 ) IS NOT NULL
----

query I rowsort
SELECT + col2 * - 73 FROM tab0 AS cor0
----
-3431
-7227
-730

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - col2 * 11 IS NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3324
SELECT col2 + - CAST( NULL AS DECIMAL ) * - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3324
SELECT col2 + - CAST ( NULL AS REAL ) * - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 + col1 + - col2 FROM tab0 cor0
----
-195
-76
19

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 62 + - col1 <= + col2 + 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT 24 + - ( ( COUNT( * ) ) ) + - + 13 * 84 AS col0 FROM tab2
----
-1071

skipif mysql # not compatible
query I rowsort label-3327
SELECT 24 + - ( ( COUNT ( * ) ) ) + - + 13 * 84 AS col0 FROM tab2
----
-1071

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT ALL - ( - COUNT( - + col1 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL - ( - COUNT ( - + col1 ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT ALL - COUNT( DISTINCT 76 ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL - COUNT ( DISTINCT 76 ) AS col1 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT - COUNT( * ) FROM tab0 WHERE col0 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3330
SELECT - COUNT ( * ) FROM tab0 WHERE col0 BETWEEN NULL AND NULL
----
0

query II rowsort
SELECT - + col1 AS col1, col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT + col1 * - - col1 AS col1 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT ALL col1 * - + col0 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT + + col1 - - - col2 * - col2 + col1 AS col2 FROM tab2 AS cor0
----
1754
3498
631

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3335
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT - 45 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT ALL - ( 59 ) - col2 AS col0 FROM tab2 AS cor0
----
-117
-82
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0, 14 col1 FROM tab1 cor0
----
51
14
85
14
91
14

query I rowsort
SELECT DISTINCT + - col1 - ( - - 50 ) AS col0 FROM tab1 AS cor0
----
-55
-64
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3340
SELECT + + 26 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT + + 26 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3341
SELECT + + COUNT( ALL - ( - - CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3341
SELECT + + COUNT ( ALL - ( - - CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT ALL - COUNT( + - col2 ) FROM tab2 AS cor0 WHERE - 63 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL - COUNT ( + - col2 ) FROM tab2 AS cor0 WHERE - 63 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT - ( - col2 ) - - 95 + + col2 * 95 AS col2 FROM tab2
----
2303
3935
5663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 88 ) col1 FROM tab0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3345
SELECT col0 * 60 DIV - col1 FROM tab0
----
-11
-248
-5820

skipif mysql # not compatible
query I rowsort label-3345
SELECT col0 * 60 / - col1 FROM tab0
----
-11
-248
-5820

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * col2 BETWEEN 97 + + + col1 AND - col2 + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3347
SELECT ALL + 91 DIV col1 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3347
SELECT ALL + 91 / col1 AS col0 FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3348
SELECT col1 DIV + - 70 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3348
SELECT col1 / + - 70 AS col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT + AVG ( ALL + ( 92 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3350
SELECT ALL COUNT( + - CAST( NULL AS DECIMAL ) ) + - + 9 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3350
SELECT ALL COUNT ( + - CAST ( NULL AS REAL ) ) + - + 9 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT - - SUM( 11 ) AS col1 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-3351
SELECT - - SUM ( 11 ) AS col1 FROM tab0 AS cor0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col1 col1, col2 * + 30 * + col0 AS col2 FROM tab2 AS cor0
----
-51
31740
-67
130500
-77
76800

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT - MAX( col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3353
SELECT - MAX ( col1 ) AS col1 FROM tab1 AS cor0
----
-47

query II rowsort
SELECT ALL + col2 AS col2, + 86 FROM tab0 AS cor0
----
10
86
47
86
99
86

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT - 63 IS NULL
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 col1 FROM tab2 AS cor0 WHERE + 97 IS NOT NULL
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT DISTINCT + MAX( ALL - col1 ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3357
SELECT DISTINCT + MAX ( ALL - col1 ) FROM tab1 cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT + COUNT( * ) * - MIN( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-3358
SELECT + COUNT ( * ) * - MIN ( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
225

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + + col1 AND col2
----

query I rowsort
SELECT + col0 + col1 + - - col1 AS col2 FROM tab1
----
185
79
95

query I rowsort
SELECT DISTINCT col1 + - + col1 AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT col1 + + 96 AS col0 FROM tab0 AS cor0
----
117
177
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3363
SELECT ALL - 22 + + - CAST( NULL AS SIGNED ) + 60 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL - 22 + + - CAST ( NULL AS INTEGER ) + 60 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - col0, ( 8 ) col0 FROM tab1 AS cor0
----
-425
8
-4277
8
-714
8

query I rowsort
SELECT col0 + - + col2 AS col1 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( + 90 ) > + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT DISTINCT + MAX( ALL - + 38 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-38

skipif mysql # not compatible
query I rowsort label-3367
SELECT DISTINCT + MAX ( ALL - + 38 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-38

query I rowsort
SELECT col0 * + col2 * col0 - - col1 AS col2 FROM tab2 AS cor0
----
163917
326317
48719

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3369
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3369
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( - col0 AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= 79 / + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 IN ( + 0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3372
SELECT ALL - + col2 DIV CAST( - 88 AS SIGNED ) * + + 27 + + 12 + - 50 FROM tab0 AS cor0
----
-11
-38
-38

skipif mysql # not compatible
query I rowsort label-3372
SELECT ALL - + col2 / CAST ( - 88 AS INTEGER ) * + + 27 + + 12 + - 50 FROM tab0 AS cor0
----
-11
-38
-38

query I rowsort
SELECT - col2 * + col2 * col0 AS col2 FROM tab2
----
-102400
-24334
-252300

onlyif mysql # DIV for integer division: 
query I rowsort label-3374
SELECT ALL 36 DIV + 84 * - + 92 col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3374
SELECT ALL 36 / + 84 * - + 92 col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3375
SELECT * FROM tab1 WHERE NOT - CAST( - 94 AS DECIMAL ) NOT BETWEEN + 16 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3375
SELECT * FROM tab1 WHERE NOT - CAST ( - 94 AS REAL ) NOT BETWEEN + 16 AND NULL
----

query II rowsort
SELECT ALL 17, 19 AS col2 FROM tab1
----
17
19
17
19
17
19

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE NOT - col1 * + 2 * - col1 * - ( - + 95 ) IS NULL
----
51
85
91

query I rowsort
SELECT - 83 * 13 FROM tab0
----
-1079
-1079
-1079

onlyif mysql # aggregate syntax: 
query II rowsort label-3379
SELECT DISTINCT + COUNT( * ) AS col1, SUM( DISTINCT - 48 ) FROM tab1 AS cor0
----
3
-48

skipif mysql # not compatible
query II rowsort label-3379
SELECT DISTINCT + COUNT ( * ) AS col1, SUM ( DISTINCT - 48 ) FROM tab1 AS cor0
----
3
-48

query II rowsort
SELECT ALL 93, 31 AS col0 FROM tab0 AS cor0
----
93
31
93
31
93
31

query II rowsort
SELECT 14 AS col1, 29 FROM tab0 AS cor0
----
14
29
14
29
14
29

onlyif mysql # DIV for integer division: 
query I rowsort label-3382
SELECT ALL col2 DIV - col1 + col0 FROM tab1 AS cor0
----
45
74
90

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL col2 / - col1 + col0 FROM tab1 AS cor0
----
45
74
90

query II rowsort
SELECT - col1 AS col1, + col2 * - + ( col1 ) AS col2 FROM tab2 AS cor0
----
-51
-1173
-67
-3886
-77
-3080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3384
SELECT ALL CAST( NULL AS SIGNED ) * ( col0 ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3384
SELECT ALL CAST ( NULL AS INTEGER ) * ( col0 ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * - 47 + + col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT + 3 + + - COUNT( 75 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-6

skipif mysql # not compatible
query I rowsort label-3386
SELECT + 3 + + - COUNT ( 75 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-6

query I rowsort
SELECT + col2 + - 26 + + col1 AS col1 FROM tab2 cor0
----
48
91
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3388
SELECT ALL CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL - col1 * - col2 * + - col2 FROM tab2 AS cor0
----
-123200
-225388
-26979

query I rowsort
SELECT + + col2 AS col2 FROM tab0 WHERE 21 + - 25 - + col2 * - col1 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT DISTINCT COUNT( * ) + - 86 AS col1 FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT COUNT ( * ) + - 86 AS col1 FROM tab1
----
-83

query I rowsort
SELECT DISTINCT + 52 FROM tab0 WHERE NOT - col1 * - col0 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3393
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3393
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) col1 FROM tab0 cor0
----
NULL

query II rowsort
SELECT + 35 AS col1, + 63 AS col1 FROM tab2 AS cor0
----
35
63
35
63
35
63

query I rowsort
SELECT DISTINCT + col1 - + + col0 * + col1 AS col1 FROM tab0 AS cor0
----
-1134
-1806
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT COUNT( - 60 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3396
SELECT COUNT ( - 60 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3397
SELECT 94 * - CAST( NULL AS SIGNED ) * 82 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3397
SELECT 94 * - CAST ( NULL AS INTEGER ) * 82 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 3 - - col1 FROM tab2 AS cor0
----
54
70
80

query I rowsort
SELECT + 6 - - 19 FROM tab1 AS cor0
----
25
25
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3400
SELECT 10 + ( + col0 ) + + 42 DIV + ( + - 58 ) AS col2 FROM tab0
----
107
25
97

skipif mysql # not compatible
query I rowsort label-3400
SELECT 10 + ( + col0 ) + + 42 / + ( + - 58 ) AS col2 FROM tab0
----
107
25
97

query I rowsort
SELECT - col2 * - + 63 AS col2 FROM tab1 AS cor0
----
3717
4284
6048

query I rowsort
SELECT DISTINCT - + col0 * + col2 + + - col1 FROM tab1 AS cor0
----
-4910
-5020
-6235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3403
SELECT DISTINCT + col0 * - col0 + CAST( ( + - col1 ) AS SIGNED ) * + col2 AS col1 FROM tab0 AS cor0
----
-4032
-7779
-9508

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT + col0 * - col0 + CAST ( ( + - col1 ) AS INTEGER ) * + col2 AS col1 FROM tab0 AS cor0
----
-4032
-7779
-9508

query II rowsort
SELECT ALL - + 13 * + col0 + - col1 * + + col0 AS col0, ( - 80 ) AS col0 FROM tab0 AS cor0
----
-1358
-80
-1410
-80
-2958
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-3405
SELECT + ( + 13 ) col2, MIN( ALL - 18 ) FROM tab2 AS cor0
----
13
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3405
SELECT + ( + 13 ) col2, MIN ( ALL - 18 ) FROM tab2 AS cor0
----
13
-18

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 * - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3407
SELECT 84 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3407
SELECT 84 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT + SUM( ALL - 41 ) AS col1 FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-3408
SELECT + SUM ( ALL - 41 ) AS col1 FROM tab2
----
-123

query I rowsort
SELECT DISTINCT - 84 FROM tab1 WHERE NOT NULL NOT IN ( + - col0, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT + COUNT( - col2 ) FROM tab2 WHERE NOT ( col2 + + - col0 IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-3410
SELECT + COUNT ( - col2 ) FROM tab2 WHERE NOT ( col2 + + - col0 IS NULL )
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3411
SELECT ALL col2 * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL col2 * CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( 2 ) * 88 + + col1 AS col2 FROM tab0
----
177
197
257

query I rowsort
SELECT - 61 * - col1 AS col1 FROM tab2 AS cor0
----
3111
4087
4697

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3414
SELECT ALL col1 * CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3414
SELECT ALL col1 * CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3415
SELECT DISTINCT + 8 DIV + 57 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT + 8 / + 57 AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + 42 * 61, + col2 * col0, + 69, - - col1 * + 3, - - col2 )
----

query I rowsort
SELECT - 76 - 93 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL 80 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col0 col0 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT - COUNT( - + 34 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3420
SELECT - COUNT ( - + 34 ) AS col0 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-3421
SELECT DISTINCT - + ( 57 ) DIV ( + 12 ), col2 FROM tab0 AS cor0
----
-4
10
-4
47
-4
99

skipif mysql # not compatible
query II rowsort label-3421
SELECT DISTINCT - + ( 57 ) / ( + 12 ), col2 FROM tab0 AS cor0
----
-4
10
-4
47
-4
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT + MAX( - col2 ) FROM tab0 AS cor0 WHERE + col2 * + col2 IS NOT NULL
----
-10

skipif mysql # not compatible
query I rowsort label-3422
SELECT + MAX ( - col2 ) FROM tab0 AS cor0 WHERE + col2 * + col2 IS NOT NULL
----
-10

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE + col2 NOT IN ( ( + col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + col2, 42 col2 FROM tab0 AS cor0
----
100
42
128
42
31
42

query I rowsort
SELECT - + 61 AS col1 FROM tab1 AS cor0 WHERE ( NOT - col0 + + col1 + col1 + col1 <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3426
SELECT col2 + col1 + - CAST( NULL AS SIGNED ) * 89 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3426
SELECT col2 + col1 + - CAST ( NULL AS INTEGER ) * 89 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT COUNT( * ) + + - 65 + 92 col1 FROM tab0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3427
SELECT COUNT ( * ) + + - 65 + 92 col1 FROM tab0
----
30

query I rowsort
SELECT DISTINCT 53 + - col2 + + + col1 * - col2 AS col1 FROM tab0
----
-145
-167
-3801

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT - col2 * + 17 * col2 * - col1 + - 4 AS col0 FROM tab1
----
2193404
295881
3694572

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 13 IS NULL
----

query I rowsort
SELECT 66 + - col0 + - col1 FROM tab0 AS cor0
----
-30
-32
-42

query I rowsort
SELECT - + 84 AS col0 FROM tab0 AS cor0
----
-84
-84
-84

query I rowsort
SELECT 85 * + + col2 * - - 71 - + - col1 * + col2 AS col2 FROM tab2 AS cor0
----
139978
244480
353916

query II rowsort
SELECT - col1, col2 AS col0 FROM tab2 cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT DISTINCT + ( + + 38 ) AS col0 FROM tab0 AS cor0
----
38

query I rowsort
SELECT 81 * - 68 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-5508
-5508
-5508

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT - COUNT( ALL + col2 ) * + ( + 31 ) + + + COUNT( * ) col0 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3438
SELECT - COUNT ( ALL + col2 ) * + ( + 31 ) + + + COUNT ( * ) col0 FROM tab2 AS cor0
----
-90

query I rowsort
SELECT col1 * col0 * + col0 + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
36184
36510
389275

query I rowsort
SELECT ALL col2 FROM tab1 cor0 WHERE NOT 39 * - col2 + col2 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + + 96 * - + col0 <= - 7
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3442
SELECT ALL CAST( NULL AS SIGNED ) + + MAX( + col0 ) * - - 40 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL CAST ( NULL AS INTEGER ) + + MAX ( + col0 ) * - - 40 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL >= ( - - col0 )
----

query I rowsort
SELECT - col1 * + col1 + - 78 AS col0 FROM tab0 AS cor0
----
-519
-6639
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3445
SELECT + col0 + + + col2 * col2 * - CAST( - col0 AS SIGNED ) AS col2, col2 * - col1 AS col1 FROM tab2 AS cor0
----
102464
-3080
24380
-1173
252375
-3886

skipif mysql # not compatible
query II rowsort label-3445
SELECT + col0 + + + col2 * col2 * - CAST ( - col0 AS INTEGER ) AS col2, col2 * - col1 AS col1 FROM tab2 AS cor0
----
102464
-3080
24380
-1173
252375
-3886

query I rowsort
SELECT - + 72 + col0 FROM tab1 AS cor0
----
-21
13
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT DISTINCT - + 57 - - + COUNT( * ) FROM tab2 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT - + 57 - - + COUNT ( * ) FROM tab2 cor0
----
-54

query I rowsort
SELECT DISTINCT - col2 + - - col2 + - col0 * - col1 AS col2 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT DISTINCT MIN( + 46 ) AS col1 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-3449
SELECT DISTINCT MIN ( + 46 ) AS col1 FROM tab0
----
46

query I rowsort
SELECT ALL - col0 - + - col1 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3451
SELECT + - 76 - - + col2 AS col1, CAST( - col2 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
-18
-3886
-36
-3080
-53
-1173

skipif mysql # not compatible
query II rowsort label-3451
SELECT + - 76 - - + col2 AS col1, CAST ( - col2 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
-18
-3886
-36
-3080
-53
-1173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3452
SELECT - col1 + - ( - ( - CAST( - col0 AS SIGNED ) ) ) FROM tab0 AS cor0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-3452
SELECT - col1 + - ( - ( - CAST ( - col0 AS INTEGER ) ) ) FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT DISTINCT + col1 - - 12 AS col0 FROM tab1 AS cor0
----
17
26
59

query II rowsort
SELECT DISTINCT col0 AS col2, col1 * + col1 FROM tab0 AS cor0
----
15
6561
87
441
97
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3455
SELECT col2 DIV 67 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3455
SELECT col2 / 67 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT + col0 * + - col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col1 FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 14 * + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3459
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( + + col0 AS DECIMAL ) * - + 19 / + col2 + - - 35 BETWEEN - - col1 AND - ( + - 79 ) * col0
----

skipif mysql # not compatible
query III rowsort label-3459
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( + + col0 AS REAL ) * - + 19 / + col2 + - - 35 BETWEEN - - col1 AND - ( + - 79 ) * col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * + col0 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 + - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3462
SELECT ALL col0 * + + CAST( + col1 AS SIGNED ) * + col2 + - - col2 + - + col2 AS col1 FROM tab1
----
25075
290836
68544

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL col0 * + + CAST ( + col1 AS INTEGER ) * + col2 + - - col2 + - + col2 AS col1 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT ALL ( + + 72 ) + - + col0 AS col0 FROM tab1
----
-13
-19
21

query I rowsort
SELECT - ( + 38 ) AS col2 FROM tab1
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT COUNT( * ) * - - 68 FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-3465
SELECT COUNT ( * ) * - - 68 FROM tab0
----
204

query I rowsort
SELECT ALL - col2 * - 76 + + col1 AS col1 FROM tab0 AS cor0 WHERE NOT - 63 IS NULL
----
3653
7525
781

query I rowsort
SELECT ALL + + 88 AS col2 FROM tab1 cor0
----
88
88
88

query I rowsort
SELECT DISTINCT + col0 + - - col0 AS col1 FROM tab2
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT ALL COUNT( DISTINCT - col0 ) + + + 98 AS col2 FROM tab1
----
101

skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL COUNT ( DISTINCT - col0 ) + + + 98 AS col2 FROM tab1
----
101

query I rowsort
SELECT DISTINCT + ( - + ( - col0 ) ) + + col2 + 45 + - col1 AS col2 FROM tab2
----
111
63
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT ALL - 23 * + 8 + + COUNT( + 55 ) AS col1 FROM tab1
----
-181

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL - 23 * + 8 + + COUNT ( + 55 ) AS col1 FROM tab1
----
-181

query I rowsort
SELECT ALL col0 + - + col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + 63 * - col2 FROM tab1 AS cor0
----
3717
4284
6048

query I rowsort
SELECT DISTINCT + col1 * col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL - col2 * 62 + col2 + + 47 FROM tab2 AS cor0
----
-1356
-2393
-3491

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + col2 AND - - 57 * + + 61
----

query I rowsort
SELECT + + 60 + col0 FROM tab1 AS cor0
----
111
145
151

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT 36 + + + COUNT( * ) AS col1 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-3479
SELECT 36 + + + COUNT ( * ) AS col1 FROM tab0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 27 * + ( + + col1 ) * - col2 * - + col0 col2 FROM tab2
----
1456866
5322240
7869150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3481
SELECT DISTINCT - 42 DIV COUNT( * ) DIV SUM( ALL col0 ) + - - MIN( DISTINCT - - col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT - 42 / COUNT ( * ) / SUM ( ALL col0 ) + - - MIN ( DISTINCT - - col1 ) AS col2 FROM tab1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3482
SELECT DISTINCT ( 9 ) + + col1 DIV - col2 FROM tab0
----
7
8
9

skipif mysql # not compatible
query I rowsort label-3482
SELECT DISTINCT ( 9 ) + + col1 / - col2 FROM tab0
----
7
8
9

query I rowsort
SELECT DISTINCT + ( col2 ) * + - col2 * - col1 FROM tab0
----
178929
2100
9801

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT 93 + - COUNT( * ) * ( COUNT( * ) ) * MAX( DISTINCT - col2 ) FROM tab2
----
300

skipif mysql # not compatible
query I rowsort label-3485
SELECT 93 + - COUNT ( * ) * ( COUNT ( * ) ) * MAX ( DISTINCT - col2 ) FROM tab2
----
300

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 96 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = + col0 * - col1
----

query I rowsort
SELECT ALL col1 + - 42 FROM tab2 AS cor0 WHERE ( ( - + 47 ) ) < + col2 * + 49 * - + 27 * - - 99 + + col2 + + 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT DISTINCT + + 36 * - COUNT( * ) - - 60 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3489
SELECT DISTINCT + + 36 * - COUNT ( * ) - - 60 FROM tab1 AS cor0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3490
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT - ( col0 ) + - col0 > - col1 * col2
----

skipif mysql # not compatible
query I rowsort label-3490
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT - ( col0 ) + - col0 > - col1 * col2
----

query I rowsort
SELECT ALL + + 83 AS col0 FROM tab1 AS cor0
----
83
83
83

query I rowsort
SELECT ALL + col2 * - + col1 AS col0 FROM tab0
----
-210
-3807
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col0, + col1 col1 FROM tab0
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT ALL - SUM( DISTINCT - 5 ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
5

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL - SUM ( DISTINCT - 5 ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT ALL + - ( MAX( DISTINCT - + ( + col2 ) ) ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL + - ( MAX ( DISTINCT - + ( + col2 ) ) ) AS col1 FROM tab2 AS cor0
----
23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 95 = - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 70 AS col1, 85 AS col1 FROM tab0 AS cor0
----
70
85
70
85
70
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT ALL - + 62 AS col1 FROM tab0 AS cor0
----
-62
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 3 col2 FROM tab1 AS cor0
----
54
88
94

query I rowsort
SELECT + + col0 + 80 * + col1 FROM tab1 AS cor0
----
1171
3851
485

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - col0 ) / 32 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 + - 58 * 12 FROM tab1
----
-649
-682
-691

query II rowsort
SELECT - + ( - 6 ) AS col1, col0 + - col2 * col1 AS col0 FROM tab2 AS cor0
----
6
-1127
6
-3016
6
-3811

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE - col1 <> + 12
----
3

skipif mysql # not compatible
query I rowsort label-3505
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE - col1 <> + 12
----
3

query II rowsort
SELECT DISTINCT + 55 AS col1, - 33 FROM tab2
----
55
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT DISTINCT - MAX( DISTINCT + + col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3507
SELECT DISTINCT - MAX ( DISTINCT + + col2 ) AS col1 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT + col1 + + col0 * - ( - - 38 ) FROM tab1 cor0
----
-1924
-3225
-3411

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT - COUNT( * ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3509
SELECT - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT col0 + - 11 AS col0 FROM tab0 AS cor0
----
4
76
86

query I rowsort
SELECT - - col2 + col0 + - col2 * + 77 + + 23 AS col2 FROM tab1 AS cor0
----
-4376
-5054
-7222

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3512
SELECT 91 + + CAST( - 10 AS SIGNED ) FROM tab0 AS cor0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-3512
SELECT 91 + + CAST ( - 10 AS INTEGER ) FROM tab0 AS cor0
----
81
81
81

query I rowsort
SELECT DISTINCT + ( - col2 ) * + ( 18 ) FROM tab2 AS cor0
----
-1044
-414
-720

query I rowsort
SELECT ALL col2 * + 41 - + col0 AS col1 FROM tab2 AS cor0
----
1576
2303
897

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3515
SELECT + col1 * CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) AS col1, - 16 col0 FROM tab1 AS cor0
----
NULL
-16
NULL
-16
NULL
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3515
SELECT + col1 * CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) AS col1, - 16 col0 FROM tab1 AS cor0
----
NULL
-16
NULL
-16
NULL
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3516
SELECT DISTINCT + - ( ( + COUNT( + 31 ) ) ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3516
SELECT DISTINCT + - ( ( + COUNT ( + 31 ) ) ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col0 * + ( - - 99 ) AS col0 FROM tab0 AS cor0
----
1485
8613
9603

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE + col0 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3519
SELECT ALL + 73 DIV 62 + - 90 FROM tab0 AS cor0
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL + 73 / 62 + - 90 FROM tab0 AS cor0
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT ALL COUNT( * ) * - COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL COUNT ( * ) * - COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
-9

query I rowsort
SELECT ALL 10 + + col2 FROM tab1
----
106
69
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3522
SELECT col1 DIV 47 - - col0 FROM tab1
----
51
85
92

skipif mysql # not compatible
query I rowsort label-3522
SELECT col1 / 47 - - col0 FROM tab1
----
51
85
92

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT + - col1 < 18
----

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE - - col2 / col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3525
SELECT + col2 DIV + - 4 AS col2 FROM tab0
----
-11
-2
-24

skipif mysql # not compatible
query I rowsort label-3525
SELECT + col2 / + - 4 AS col2 FROM tab0
----
-11
-2
-24

query I rowsort
SELECT DISTINCT - ( + 96 ) AS col2 FROM tab0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT ALL - MIN( - + ( + + 60 ) ) FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-3527
SELECT ALL - MIN ( - + ( + + 60 ) ) FROM tab2 AS cor0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-3528
SELECT col0 * 64 DIV + 60 AS col0 FROM tab2 AS cor0
----
49
68
80

skipif mysql # not compatible
query I rowsort label-3528
SELECT col0 * 64 / + 60 AS col0 FROM tab2 AS cor0
----
49
68
80

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL > + 92
----

query I rowsort
SELECT DISTINCT + - col1 * + 2 * + - col0 AS col0 FROM tab2 AS cor0
----
10050
4692
9856

query I rowsort
SELECT DISTINCT + 98 + 64 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT ALL + 77 * - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL + 77 * - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
231

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - col0 * - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT + COUNT( ALL - - col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3534
SELECT + COUNT ( ALL - - col1 ) AS col2 FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL - 89, + col0 AS col0 FROM tab0 AS cor0
----
-89
15
-89
87
-89
97

query II rowsort
SELECT ALL - col1 + - 63 AS col1, + 15 * + + col1 FROM tab2
----
-114
765
-130
1005
-140
1155

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, 27 + 82 - 36 * + col0 * - - 0 - + + col1 * - ( col2 ) col1 FROM tab1
----
-59
404
-68
3305
-96
1453

query I rowsort
SELECT DISTINCT col1 + - col0 * + col0 + col2 AS col1 FROM tab1
----
-2491
-7161
-8166

query I rowsort
SELECT + - 58 FROM tab0 WHERE NULL IS NULL
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT ALL - COUNT( - 55 ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3540
SELECT ALL - COUNT ( - 55 ) col0 FROM tab1
----
-3

query II rowsort
SELECT + 27 AS col0, col0 + + col2 AS col2 FROM tab0
----
27
196
27
62
27
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3542
SELECT ALL + col2 DIV col1 + - - col2 AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL + col2 / col1 + - - col2 AS col0 FROM tab2
----
23
40
58

query I rowsort
SELECT + 76 * col2 + + col0 AS col0 FROM tab2
----
1794
3104
4483

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3544
SELECT + - col2 * - 99, - col2 * col1 AS col1 FROM tab2 AS cor0 WHERE NULL > 50 - - 55 * - CAST( + 88 AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-3544
SELECT + - col2 * - 99, - col2 * col1 AS col1 FROM tab2 AS cor0 WHERE NULL > 50 - - 55 * - CAST ( + 88 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3545
SELECT + COUNT( * ) AS col2, COUNT( * ) + - MAX( ALL - col0 ) AS col0 FROM tab1 cor0 WHERE col1 / col2 <> NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3545
SELECT + COUNT ( * ) AS col2, COUNT ( * ) + - MAX ( ALL - col0 ) AS col0 FROM tab1 cor0 WHERE col1 / col2 <> NULL
----
0
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - - col2 NOT BETWEEN - col2 AND NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col1 + 40 col1 FROM tab2 AS cor0 WHERE NOT + 46 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3548
SELECT COUNT( * ) DIV - SUM( DISTINCT - col2 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3548
SELECT COUNT ( * ) / - SUM ( DISTINCT - col2 ) AS col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) - 46 col2 FROM tab0 AS cor0
----
-31
41
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3550
SELECT ALL COUNT( * ) - COUNT( * ) AS col0, 47 FROM tab1 AS cor0
----
0
47

skipif mysql # not compatible
query II rowsort label-3550
SELECT ALL COUNT ( * ) - COUNT ( * ) AS col0, 47 FROM tab1 AS cor0
----
0
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 71 BETWEEN col0 AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 + 58 + - - col1 * col2 ) BETWEEN - ( + - 79 ) * col1 AND - col1 * + - col2 * 14
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3553
SELECT DISTINCT + + CAST( NULL AS SIGNED ) - + ( SUM( - col2 ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - + ( SUM ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + col0, - col0 - - col0 FROM tab0
----
15
0
87
0
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT DISTINCT - COUNT( DISTINCT - col2 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT - COUNT ( DISTINCT - col2 ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT ALL ( + + 76 ) FROM tab2
----
76
76
76

query I rowsort
SELECT ( - col0 ) * + 94 AS col0 FROM tab0
----
-1410
-8178
-9118

query I rowsort
SELECT ALL + 11 FROM tab0 WHERE - 94 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 * + col1 col2 FROM tab1
----
-1081
-115
-322

query I rowsort
SELECT 64 * - ( - 13 ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + col1 AS col2, + 31 FROM tab0 AS cor0
----
1
31
21
31
81
31

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN 48 AND + col1
----

query I rowsort
SELECT ( + 53 ) AS col0 FROM tab2
----
53
53
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 17 col1 FROM tab2
----
-17
-17
-17

query I rowsort
SELECT DISTINCT + 87 + + 13 FROM tab1
----
100

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3566
SELECT * FROM tab1 WHERE NOT + CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3566
SELECT * FROM tab1 WHERE NOT + CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col0 - col1 * - ( 34 ) ) BETWEEN col1 * + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT SUM( DISTINCT + 13 ) AS col0 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-3568
SELECT SUM ( DISTINCT + 13 ) AS col0 FROM tab1
----
13

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 IN ( ( + ( - 9 ) ) - + ( col1 ) * 22 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 27 AS col1 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 WHERE - 33 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE - 33 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 51 ) >= ( - col1 / + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 43 + 26 AS col2 FROM tab2
----
69
69
69

query III rowsort
SELECT * FROM tab0 WHERE NOT 24 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT 45 + COUNT( * ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-3575
SELECT 45 + COUNT ( * ) FROM tab2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3576
SELECT - col1 * ( col1 DIV col0 ) FROM tab0
----
-405
0
0

skipif mysql # not compatible
query I rowsort label-3576
SELECT - col1 * ( col1 / col0 ) FROM tab0
----
-405
0
0

query I rowsort
SELECT ALL + col2 - + col1 * col2 AS col2 FROM tab1
----
-1248
-236
-3128

query I rowsort
SELECT ALL 22 * col0 AS col1 FROM tab0
----
1914
2134
330

query I rowsort
SELECT + col1 FROM tab0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE + col0 * - col2 IN ( - col2 )
----

query I rowsort
SELECT - ( + 33 ) AS col2 FROM tab1 WHERE NULL = ( NULL )
----

query I rowsort
SELECT DISTINCT - 99 + 82 FROM tab2
----
-17

query I rowsort
SELECT + ( 25 ) AS col2 FROM tab2
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT - ( COUNT( * ) ) + - 72 AS col1 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-3584
SELECT - ( COUNT ( * ) ) + - 72 AS col1 FROM tab0
----
-75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * 5 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + - 92 AS col1 FROM tab1
----
-45
-78
-87

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 * + col0 < ( + 77 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 91 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - ( 75 ) ) NOT BETWEEN - col2 AND col2 + col1
----
51
14
96

query III rowsort
SELECT * FROM tab2 WHERE - col1 IN ( - col0 )
----

query I rowsort
SELECT 86 + + col0 * - col1 AS col2 FROM tab2
----
-2260
-4842
-4939

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3592
SELECT + CAST( NULL AS SIGNED ) / 44 + + SUM( ALL - col0 ) col1 FROM tab1 AS cor0 WHERE col2 + col1 NOT IN ( + col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3592
SELECT + CAST ( NULL AS INTEGER ) / 44 + + SUM ( ALL - col0 ) col1 FROM tab1 AS cor0 WHERE col2 + col1 NOT IN ( + col0 )
----
NULL

query I rowsort
SELECT ( + 46 ) FROM tab2 AS cor0
----
46
46
46

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 52 + - 31 * - 19 <> ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( - 94 ) * 21 FROM tab1 AS cor0
----
1974
1974
1974

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE + 81 * - 52 IS NOT NULL
----
59
68
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 + + 98 = ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 + 68 col0 FROM tab1
----
-8
-8
-8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3599
SELECT ALL + CAST( + col2 AS SIGNED ) * col1 + - 5 DIV 8 AS col2 FROM tab0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL + CAST ( + col2 AS INTEGER ) * col1 + - 5 / 8 AS col2 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT DISTINCT 46 + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
55

skipif mysql # not compatible
query I rowsort label-3600
SELECT DISTINCT 46 + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
55

query III rowsort
SELECT * FROM tab2 WHERE NULL = - 32 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT DISTINCT - 93 + COUNT( * ) AS col0 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-3602
SELECT DISTINCT - 93 + COUNT ( * ) AS col0 FROM tab2
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3603
SELECT ALL + CAST( col2 AS SIGNED ) + CAST( col2 + - col2 / col2 AS SIGNED ) AS col2 FROM tab1
----
117
135
191

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL + CAST ( col2 AS INTEGER ) + CAST ( col2 + - col2 / col2 AS INTEGER ) AS col2 FROM tab1
----
117
135
191

query I rowsort
SELECT 16 - 32 * + 62 FROM tab2 WHERE NULL IS NULL
----
-1968
-1968
-1968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 col2 FROM tab0 cor0 WHERE 82 BETWEEN 59 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 IN ( 34 + + 87 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT MAX( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3607
SELECT MAX ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3608
SELECT ALL * FROM tab1 AS cor0 WHERE ( CAST( 37 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3608
SELECT ALL * FROM tab1 AS cor0 WHERE ( CAST ( 37 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( 86 ) FROM tab2 AS cor0
----
-86
-86
-86

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> ( + col1 + - 37 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3611
SELECT - CAST( NULL AS SIGNED ) * - 42 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-3611
SELECT - CAST ( NULL AS INTEGER ) * - 42 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3612
SELECT DISTINCT col0 * + col1 - col1 FROM tab0 AS cor0 WHERE + col0 IN ( CAST( - 22 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-3612
SELECT DISTINCT col0 * + col1 - col1 FROM tab0 AS cor0 WHERE + col0 IN ( CAST ( - 22 AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3613
SELECT * FROM tab0 WHERE NOT ( col0 * CAST( col1 AS SIGNED ) ) < + col1 + 42
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3613
SELECT * FROM tab0 WHERE NOT ( col0 * CAST ( col1 AS INTEGER ) ) < + col1 + 42
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND col2 - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT DISTINCT - MAX( ALL col1 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-3615
SELECT DISTINCT - MAX ( ALL col1 ) AS col2 FROM tab2
----
-77

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + col1 NOT BETWEEN - ( 40 ) AND col0 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3617
SELECT ALL col0 * - 44 FROM tab1 AS cor0 WHERE NOT 69 - 58 * CAST( NULL AS SIGNED ) NOT BETWEEN ( - col0 ) AND + 30 / - col2 + - col0
----

skipif mysql # not compatible
query I rowsort label-3617
SELECT ALL col0 * - 44 FROM tab1 AS cor0 WHERE NOT 69 - 58 * CAST ( NULL AS INTEGER ) NOT BETWEEN ( - col0 ) AND + 30 / - col2 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3618
SELECT - CAST( + col1 AS SIGNED ) col1 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3618
SELECT - CAST ( + col1 AS INTEGER ) col1 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3619
SELECT + - ( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3619
SELECT + - ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * col2 <> NULL
----

query I rowsort
SELECT DISTINCT - 14 * - col1 AS col2 FROM tab0 AS cor0
----
1134
14
294

query I rowsort
SELECT ( + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT - 16 IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT + 77 AS col0 FROM tab0 WHERE NULL IN ( - 99 )
----

query II rowsort
SELECT DISTINCT - 28, col1 AS col0 FROM tab2 AS cor0
----
-28
51
-28
67
-28
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3625
SELECT ALL COUNT( DISTINCT + - 33 ) DIV - - 8 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL COUNT ( DISTINCT + - 33 ) / - - 8 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 63 * - 88 AS col1 FROM tab1 AS cor0
----
-5544
-5544
-5544

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT + COUNT( ALL ( col0 ) ) FROM tab2 AS cor0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3627
SELECT + COUNT ( ALL ( col0 ) ) FROM tab2 AS cor0 WHERE - col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT - - MIN( DISTINCT - - 8 ) AS col1 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-3628
SELECT - - MIN ( DISTINCT - - 8 ) AS col1 FROM tab2 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT ALL ( - COUNT( ALL + + col0 ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL ( - COUNT ( ALL + + col0 ) ) FROM tab1 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 = + - 97
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 85, 92 * col2 col1 FROM tab0 AS cor0
----
-85
4324
-85
9108
-85
920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3632
SELECT ALL - CAST( + col2 AS SIGNED ) FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-3632
SELECT ALL - CAST ( + col2 AS INTEGER ) FROM tab0 cor0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 25 = NULL
----

query I rowsort
SELECT ALL - ( + - col1 ) AS col0 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL - 56 * + ( - col0 ) * + 95 AS col0 FROM tab1
----
271320
452200
484120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3636
SELECT + col2 + CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3636
SELECT + col2 + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3637
SELECT ( - - CAST( col1 AS SIGNED ) ) + + ( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3637
SELECT ( - - CAST ( col1 AS INTEGER ) ) + + ( CAST ( NULL AS REAL ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT 45 + - col2 AS col0, col1 AS col0 FROM tab0
----
-2
81
-54
1
35
21

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN ( col0 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3640
SELECT DISTINCT CAST( + col1 AS SIGNED ) DIV + col2 + 6 AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3640
SELECT DISTINCT CAST ( + col1 AS INTEGER ) / + col2 + 6 AS col2 FROM tab1
----
6

query I rowsort
SELECT - col1 + + 37 * - col1 AS col0 FROM tab1
----
-1786
-190
-532

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NULL IN ( - + ( col1 ) )
----

query I rowsort
SELECT DISTINCT + 1 * - - col0 + - + col0 AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 WHERE NOT - 63 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 19 * - - 87 AS col0 FROM tab1 AS cor0
----
-1653

query I rowsort
SELECT + 13 * col2 AS col2 FROM tab1 AS cor0 WHERE ( + col0 * col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col2 <> - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3648
SELECT DISTINCT + 36 * - CAST( NULL AS SIGNED ) - + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3648
SELECT DISTINCT + 36 * - CAST ( NULL AS INTEGER ) - + col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 87 * col0 FROM tab2
----
-4002
-5568
-6525

query I rowsort
SELECT col0 - - 72 AS col0 FROM tab2
----
118
136
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3651
SELECT - MAX( + 68 ) AS col0 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * - + col2 IS NOT NULL
----
-68

skipif mysql # not compatible
query I rowsort label-3651
SELECT - MAX ( + 68 ) AS col0 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - + col2 IS NOT NULL
----
-68

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 * 35 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( + 19 ) AS col1 FROM tab1 cor0
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT DISTINCT + + COUNT( * ) * + SUM( DISTINCT - 81 ) FROM tab2 cor0
----
-243

skipif mysql # not compatible
query I rowsort label-3655
SELECT DISTINCT + + COUNT ( * ) * + SUM ( DISTINCT - 81 ) FROM tab2 cor0
----
-243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab2 AS cor0 WHERE - 35 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + col0 ) >= + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 AS cor0 WHERE - col2 NOT IN ( + col2, + col2 )
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col2, col0 col0 FROM tab0 AS cor0 WHERE NOT NULL < 31
----

query I rowsort
SELECT - - col2 * - - col0 AS col1 FROM tab1 cor0
----
4896
5015
6188

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 83 > NULL
----

query II rowsort
SELECT col2 AS col1, - col2 * col1 FROM tab0
----
10
-210
47
-3807
99
-99

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 25 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3664
SELECT ALL * FROM tab2 WHERE NOT ( NULL >= ( + col0 + + + col1 + - 70 + - 28 * - 65 / CAST( NULL AS SIGNED ) * + 1 ) )
----

skipif mysql # not compatible
query III rowsort label-3664
SELECT ALL * FROM tab2 WHERE NOT ( NULL >= ( + col0 + + + col1 + - 70 + - 28 * - 65 / CAST ( NULL AS INTEGER ) * + 1 ) )
----

query I rowsort
SELECT ALL - col2 + col0 FROM tab2 WHERE NULL = - ( + + 97 ) + - col1 * - - 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT MIN( DISTINCT 80 ) FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-3666
SELECT MIN ( DISTINCT 80 ) FROM tab0
----
80

query II rowsort
SELECT + - col0 AS col1, ( + 70 ) FROM tab2 AS cor0
----
-46
70
-64
70
-75
70

query II rowsort
SELECT + 91 AS col2, - col1 + - col2 AS col1 FROM tab1 cor0
----
91
-110
91
-115
91
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3669
SELECT + CAST( NULL AS SIGNED ) * COUNT( * ) + - MIN( ALL + - col1 ) + - - SUM( + col2 ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3669
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) + - MIN ( ALL + - col1 ) + - - SUM ( + col2 ) AS col1 FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 21 > NULL
----

query I rowsort
SELECT + 16 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT DISTINCT 67 FROM tab0 AS cor0 WHERE NOT - 99 - + - col0 IS NULL
----
67

query I rowsort
SELECT - + col1 FROM tab0 AS cor0 WHERE + 82 * - col2 * col0 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3674
SELECT + - MAX( DISTINCT - 65 ) + COUNT( * ) - - 95 + COUNT( * ) + 71 DIV 55 AS col2 FROM tab1 AS cor0
----
167

skipif mysql # not compatible
query I rowsort label-3674
SELECT + - MAX ( DISTINCT - 65 ) + COUNT ( * ) - - 95 + COUNT ( * ) + 71 / 55 AS col2 FROM tab1 AS cor0
----
167

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3675
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) NOT BETWEEN - - 91 AND ( + + col0 )
----

skipif mysql # not compatible
query III rowsort label-3675
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) NOT BETWEEN - - 91 AND ( + + col0 )
----

query I rowsort
SELECT - 34 + 8 * + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-5674
-6994
-76858

query I rowsort
SELECT DISTINCT + col2 * - ( + col1 ) FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT col0 * - - col0 * col2 FROM tab0
----
10575
75690
931491

query I rowsort
SELECT DISTINCT 50 * + col1 FROM tab2
----
2550
3350
3850

query I rowsort
SELECT DISTINCT 51 + - 82 FROM tab0
----
-31

query I rowsort
SELECT ALL col1 + - col1 * + - 30 FROM tab2
----
1581
2077
2387

query I rowsort
SELECT + + col0 AS col1 FROM tab0 WHERE - 0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT ALL + COUNT( * ) + - + COUNT( * ) + - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3683
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) + - COUNT ( * ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT ALL + SUM( + - ( + col1 ) ) - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL + SUM ( + - ( + col1 ) ) - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-3685
SELECT + col1 - + - col1 DIV 46 FROM tab2 AS cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-3685
SELECT + col1 - + - col1 / 46 FROM tab2 AS cor0
----
52
68
78

query I rowsort
SELECT - col1 * 88 + + col0 * + + 8 - + 24 AS col1 FROM tab1 AS cor0
----
-3432
-848
216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3687
SELECT - 0 - COUNT( * ) + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3687
SELECT - 0 - COUNT ( * ) + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NOT ( NOT - col2 IN ( ( + col1 ) / + 31 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT ALL + COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3689
SELECT ALL + COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT - MAX( DISTINCT + + col2 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3690
SELECT - MAX ( DISTINCT + + col2 ) AS col0 FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT + 70 * COUNT( * ) FROM tab0 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-3691
SELECT + 70 * COUNT ( * ) FROM tab0 AS cor0
----
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3692
SELECT DISTINCT col1 * col0 col1 FROM tab1 AS cor0 WHERE - col1 * + - col1 * col0 < 43 + - CAST( - - ( - col0 ) AS SIGNED ) / 42
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3692
SELECT DISTINCT col1 * col0 col1 FROM tab1 AS cor0 WHERE - col1 * + - col1 * col0 < 43 + - CAST ( - - ( - col0 ) AS INTEGER ) / 42
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - col1 col2, ( + col0 ) AS col1 FROM tab1 AS cor0
----
-425
85
-4277
91
-714
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT DISTINCT 36 * + COUNT( * ) AS col1 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-3694
SELECT DISTINCT 36 * + COUNT ( * ) AS col1 FROM tab2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT ( MIN( ALL - 7 ) ) * + ( - 79 ) FROM tab2
----
553

skipif mysql # not compatible
query I rowsort label-3695
SELECT ( MIN ( ALL - 7 ) ) * + ( - 79 ) FROM tab2
----
553

query I rowsort
SELECT 80 * + col1 AS col1 FROM tab0
----
1680
6480
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT ( - - ( COUNT( * ) ) ) * 1 * - 89 AS col0 FROM tab0
----
-267

skipif mysql # not compatible
query I rowsort label-3697
SELECT ( - - ( COUNT ( * ) ) ) * 1 * - 89 AS col0 FROM tab0
----
-267

onlyif mysql # aggregate syntax: 
query II rowsort label-3698
SELECT DISTINCT - COUNT( * ) col1, - 97 FROM tab2
----
-3
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3698
SELECT DISTINCT - COUNT ( * ) col1, - 97 FROM tab2
----
-3
-97

query I rowsort
SELECT + col1 * - + col1 AS col2 FROM tab0
----
-1
-441
-6561

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 <= + 28 / col1 * col2 / col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 45 <> + - 19 * - + col2
----

query I rowsort
SELECT - col0 + 37 AS col1 FROM tab0 AS cor0
----
-50
-60
22

query I rowsort
SELECT ALL 41 + - 30 * - col1 AS col2 FROM tab1
----
1451
191
461

query I rowsort
SELECT - 8 FROM tab1 WHERE - + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + - col1 / 11 + + + col0 col1 FROM tab0 AS cor0 WHERE 45 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3706
SELECT ALL - col0 + - 23 DIV - - col2 AS col0 FROM tab2 AS cor0
----
-47
-64
-75

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL - col0 + - 23 / - - col2 AS col0 FROM tab2 AS cor0
----
-47
-64
-75

query I rowsort
SELECT ALL - col0 * col0 + - 32 FROM tab1 AS cor0
----
-2633
-7257
-8313

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 25 * - col1 FROM tab2 AS cor0
----
1275
1675
1925

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <> - + ( + col0 ) + - + col0 * - col0 * col0 * 99
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * + 17 * + 12 * - col2 col1, - 20 FROM tab2 AS cor0
----
-215832
-20
-522240
-20
-887400
-20

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN 98 AND - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3713
SELECT MIN( CAST( - col0 AS SIGNED ) ) FROM tab2 AS cor0 WHERE ( NULL ) > - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3713
SELECT MIN ( CAST ( - col0 AS INTEGER ) ) FROM tab2 AS cor0 WHERE ( NULL ) > - col1
----
NULL

query I rowsort
SELECT 71 + - + col1 * - + col0 * + col1 AS col2 FROM tab0
----
168
38438
98486

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT DISTINCT + SUM( ALL + - col0 ) + - COUNT( * ) FROM tab2
----
-188

skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT + SUM ( ALL + - col0 ) + - COUNT ( * ) FROM tab2
----
-188

query II rowsort
SELECT ALL + col1 * - col1, col2 FROM tab0
----
-1
99
-441
10
-6561
47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3717
SELECT ( + - col2 ) * col2 DIV - col1 + col0 + + CAST( + + ( + col2 ) AS SIGNED ) FROM tab2
----
124
183
79

skipif mysql # not compatible
query I rowsort label-3717
SELECT ( + - col2 ) * col2 / - col1 + col0 + + CAST ( + + ( + col2 ) AS INTEGER ) FROM tab2
----
124
183
79

query II rowsort
SELECT ALL col1 + col2 AS col0, - col1 FROM tab2
----
117
-77
125
-67
74
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-3719
SELECT col0 DIV 28 + - col2 col0 FROM tab0
----
-47
-7
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3719
SELECT col0 / 28 + - col2 col0 FROM tab0
----
-47
-7
-96

query I rowsort
SELECT ALL + 95 * - 30 * - col1 + + 53 FROM tab1
----
134003
14303
39953

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3721
SELECT DISTINCT 87 + CAST( NULL AS SIGNED ) AS col0, + ( col0 ) AS col2 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-3721
SELECT DISTINCT 87 + CAST ( NULL AS INTEGER ) AS col0, + ( col0 ) AS col2 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 col0 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT ALL + + 72 * - col0 + - 32 AS col0 FROM tab0 cor0
----
-1112
-6296
-7016

query I rowsort
SELECT DISTINCT - col0 * - - col1 + + col2 FROM tab2 AS cor0
----
-2323
-4888
-4967

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IS NOT NULL AND NOT + col2 BETWEEN NULL AND - col1 - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3726
SELECT DISTINCT + col1 DIV - 5 AS col2 FROM tab1
----
-1
-2
-9

skipif mysql # not compatible
query I rowsort label-3726
SELECT DISTINCT + col1 / - 5 AS col2 FROM tab1
----
-1
-2
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3727
SELECT ALL + + CAST( - 17 AS SIGNED ) AS col0, + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-17
9

skipif mysql # not compatible
query II rowsort label-3727
SELECT ALL + + CAST ( - 17 AS INTEGER ) AS col0, + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-17
9

query I rowsort
SELECT DISTINCT + col2 * - + col0 FROM tab0 cor0
----
-705
-870
-9603

query I rowsort
SELECT col2 + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 81 AND ( 23 )
----

query I rowsort
SELECT DISTINCT + col0 * - 9 * + col0 * col1 AS col1 FROM tab0 cor0
----
-1430541
-164025
-84681

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 18 BETWEEN col2 + - - col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 19 * + - col0 + col0 FROM tab2 AS cor0
----
-1152
-1350
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT ( + - ( - - COUNT( * ) ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3733
SELECT ( + - ( - - COUNT ( * ) ) ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT col0 AS col2, 24 FROM tab0 cor0
----
15
24
87
24
97
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT DISTINCT + 97 * + COUNT( * ) FROM tab1 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT + 97 * + COUNT ( * ) FROM tab1 AS cor0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT + COUNT( * ) * + 90 FROM tab2 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-3736
SELECT + COUNT ( * ) * + 90 FROM tab2 AS cor0
----
270

onlyif mysql # DIV for integer division: 
query II rowsort label-3737
SELECT ALL + 60 DIV + col0, col0 AS col1 FROM tab0
----
0
87
0
97
4
15

skipif mysql # not compatible
query II rowsort label-3737
SELECT ALL + 60 / + col0, col0 AS col1 FROM tab0
----
0
87
0
97
4
15

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( - col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3739
SELECT DISTINCT col1 + - col1 + col0 DIV + 36, 46 AS col0 FROM tab0
----
0
46
2
46

skipif mysql # not compatible
query II rowsort label-3739
SELECT DISTINCT col1 + - col1 + col0 / + 36, 46 AS col0 FROM tab0
----
0
46
2
46

query I rowsort
SELECT + col2 * + 70 * 37 FROM tab2 AS cor0
----
103600
150220
59570

query I rowsort
SELECT + + 5 AS col0 FROM tab1 cor0
----
5
5
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3742
SELECT DISTINCT + 47 + SUM( - col2 ) - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT + 47 + SUM ( - col2 ) - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT 76 + COUNT( ALL 78 ) FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-3743
SELECT 76 + COUNT ( ALL 78 ) FROM tab1 AS cor0
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-3744
SELECT DISTINCT + col1 * 82 DIV - col0 AS col0 FROM tab1 AS cor0
----
-22
-4
-42

skipif mysql # not compatible
query I rowsort label-3744
SELECT DISTINCT + col1 * 82 / - col0 AS col0 FROM tab1 AS cor0
----
-22
-4
-42

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - + ( + + 6 ) col1 FROM tab1 AS cor0
----
-354
-408
-576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 col2 FROM tab2 cor0
----
48
48
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3748
SELECT ALL CAST( + 37 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-3748
SELECT ALL CAST ( + 37 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT + + SUM( DISTINCT col2 ) col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3749
SELECT + + SUM ( DISTINCT col2 ) col2 FROM tab1 AS cor0
----
223

query I rowsort
SELECT DISTINCT ( + 90 ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE ( + col2 ) + + col0 * col0 IS NULL
----

query III rowsort
SELECT DISTINCT + 41, 53, + - ( + + col1 ) + + col2 + + - col2 + - col1 + + col2 + - + col2 + + col0 + + col1 * - ( + col0 * 50 + 47 ) FROM tab2 WHERE NOT ( col1 ) * 31 <= NULL
----

query II rowsort
SELECT DISTINCT 46, - 55 AS col2 FROM tab1
----
46
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT DISTINCT - ( - COUNT( - col0 ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3754
SELECT DISTINCT - ( - COUNT ( - col0 ) ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT + 55 * + - 4 - 60 * + + COUNT( * ) FROM tab2
----
-400

skipif mysql # not compatible
query I rowsort label-3755
SELECT + 55 * + - 4 - 60 * + + COUNT ( * ) FROM tab2
----
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT ALL - COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NULL AND NULL IN ( + 21 + + 65, 53 * - - 54 )
----
0

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NULL AND NULL IN ( + 21 + + 65, 53 * - - 54 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3757
SELECT ALL - col1 + - ( CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL - col1 + - ( CAST ( NULL AS REAL ) ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col0 + + col0 NOT BETWEEN NULL AND - col1 * - 65 * col1
----

query II rowsort
SELECT + 76 - + col0 AS col1, + col0 FROM tab0
----
-11
87
-21
97
61
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3760
SELECT - CAST( + - 35 AS SIGNED ) - - col1 DIV - col0 FROM tab1 AS cor0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-3760
SELECT - CAST ( + - 35 AS INTEGER ) - - col1 / - col0 FROM tab1 AS cor0
----
35
35
35

query II rowsort
SELECT ALL - - col2 * + col1 AS col1, + 82 * - - 88 * + + ( + col0 ) AS col1 FROM tab2 AS cor0
----
1173
331936
3080
461824
3886
541200

query I rowsort
SELECT DISTINCT - + ( - col0 ) AS col2 FROM tab0 cor0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 = + 25 * - col1
----

query I rowsort
SELECT ALL + 18 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3765
SELECT DISTINCT + - CAST( + 5 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 16 * + 46 <> NULL
----

skipif mysql # not compatible
query I rowsort label-3765
SELECT DISTINCT + - CAST ( + 5 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 16 * + 46 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 42 = 58
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 * - col0 * col2 AS col2 FROM tab2
----
163840
326250
48668

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT DISTINCT + COUNT( ALL - 62 ) * 23 AS col1 FROM tab1 cor0
----
69

skipif mysql # not compatible
query I rowsort label-3768
SELECT DISTINCT + COUNT ( ALL - 62 ) * 23 AS col1 FROM tab1 cor0
----
69

query I rowsort
SELECT 35 * - 72 AS col1 FROM tab1 AS cor0
----
-2520
-2520
-2520

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT ( + - col2 ) NOT IN ( + col1 * - 11, + ( col1 ) * - 54, col0 + - 1 - + + 94 )
----

query II rowsort
SELECT col2 * + col0 AS col1, - col0 AS col0 FROM tab2 AS cor0
----
1058
-46
2560
-64
4350
-75

query I rowsort
SELECT + col0 * + col2 * - col1 * - + col1 FROM tab1 AS cor0
----
125375
13669292
959616

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 * + ( + col0 ) - - + col0 / - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * + 63 FROM tab2
----
2898
4032
4725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3775
SELECT ALL - col0 * - - col0 + col0 + CAST( NULL AS SIGNED ) * + - 6 col0 FROM tab2 WHERE + - col1 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3775
SELECT ALL - col0 * - - col0 + col0 + CAST ( NULL AS INTEGER ) * + - 6 col0 FROM tab2 WHERE + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3776
SELECT + 43 AS col0, + COUNT( * ) AS col1 FROM tab2
----
43
3

skipif mysql # not compatible
query II rowsort label-3776
SELECT + 43 AS col0, + COUNT ( * ) AS col1 FROM tab2
----
43
3

query II rowsort
SELECT col2, - col1 * - 15 FROM tab0
----
10
315
47
1215
99
15

query I rowsort
SELECT - - 24 + + - 28 * + col2 FROM tab1 AS cor0
----
-1628
-1880
-2664

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3780
SELECT DISTINCT + 42, 27 + + ( + ( - - COUNT( * ) ) ) AS col0 FROM tab0 AS cor0
----
42
30

skipif mysql # not compatible
query II rowsort label-3780
SELECT DISTINCT + 42, 27 + + ( + ( - - COUNT ( * ) ) ) AS col0 FROM tab0 AS cor0
----
42
30

query I rowsort
SELECT ALL - - ( - - col0 ) AS col2 FROM tab0 cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3782
SELECT DISTINCT + col0 AS col1, - col0 * + ( - - CAST( + - 91 AS SIGNED ) ) + col1 AS col0 FROM tab2 AS cor0
----
46
4237
64
5901
75
6892

skipif mysql # not compatible
query II rowsort label-3782
SELECT DISTINCT + col0 AS col1, - col0 * + ( - - CAST ( + - 91 AS INTEGER ) ) + col1 AS col0 FROM tab2 AS cor0
----
46
4237
64
5901
75
6892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query III rowsort
SELECT * FROM tab1 WHERE - col2 NOT BETWEEN + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 50 FROM tab2 WHERE NULL >= - col2 + + + 14 + col2
----

query I rowsort
SELECT - col2 - + + col1 * col1 AS col0 FROM tab2 cor0
----
-2624
-4547
-5969

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT ALL - 75 + COUNT( * ) - + - 77 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL - 75 + COUNT ( * ) - + - 77 FROM tab0 AS cor0
----
5

query I rowsort
SELECT + 76 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT DISTINCT - + 5 + + COUNT( * ) AS col0 FROM tab0 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT - + 5 + + COUNT ( * ) AS col0 FROM tab0 cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT COUNT( * ) + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3790
SELECT COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( col0 * - + col1 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 + - 65 * - col0 col2 FROM tab2
----
10500
5106
8256

query II rowsort
SELECT ALL + col2, ( col1 ) FROM tab0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT SUM( DISTINCT + 99 ) + + - COUNT( * ) + + 52 FROM tab1
----
148

skipif mysql # not compatible
query I rowsort label-3794
SELECT SUM ( DISTINCT + 99 ) + + - COUNT ( * ) + + 52 FROM tab1
----
148

query II rowsort
SELECT col0 + col2 * - ( + ( + col0 ) ) AS col2, - col2 FROM tab2
----
-1012
-23
-2496
-40
-4275
-58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3796
SELECT + COUNT( * ) + - + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3796
SELECT + COUNT ( * ) + - + CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - col0 * - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3798
SELECT DISTINCT + CAST( - col1 AS SIGNED ) col0, col0 * col1 FROM tab1 WHERE NOT + 44 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3798
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) col0, col0 * col1 FROM tab1 WHERE NOT + 44 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab0 WHERE + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab0 WHERE + col1 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT DISTINCT + SUM( + - 43 ) col2 FROM tab0 WHERE + 15 NOT BETWEEN ( col2 ) AND ( NULL )
----
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3800
SELECT DISTINCT + SUM ( + - 43 ) col2 FROM tab0 WHERE + 15 NOT BETWEEN ( col2 ) AND ( NULL )
----
-86

query I rowsort
SELECT + col2 * 1 FROM tab2
----
23
40
58

query I rowsort
SELECT + 33 * - col2 FROM tab0
----
-1551
-3267
-330

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 76 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + - ( - 38 ) FROM tab0 AS cor0
----
38
38
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT + COUNT( * ) * + 51 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
459

skipif mysql # not compatible
query I rowsort label-3806
SELECT + COUNT ( * ) * + 51 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
459

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - 21 ) - - col0 IN ( + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 58 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + - 85 IS NOT NULL
----

query I rowsort
SELECT col2 * - 19 * col2 AS col1 FROM tab1 AS cor0
----
-175104
-66139
-87856

query II rowsort
SELECT + 90, + 80 * + col0 * + - col2 * - col2 + col0 AS col2 FROM tab2 AS cor0
----
90
1946766
90
20184075
90
8192064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3812
SELECT + CAST( NULL AS SIGNED ) * + 36 + + - COUNT( ALL col1 ) AS col0 FROM tab1 cor0 WHERE NOT + 33 * 7 - - 50 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT + CAST ( NULL AS INTEGER ) * + 36 + + - COUNT ( ALL col1 ) AS col0 FROM tab1 cor0 WHERE NOT + 33 * 7 - - 50 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - 45 * + - col1 + col1 AS col2 FROM tab2 AS cor0
----
2346
3082
3542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3814
SELECT - + col1 + + CAST( + - col1 AS SIGNED ) FROM tab0 AS cor0
----
-162
-2
-42

skipif mysql # not compatible
query I rowsort label-3814
SELECT - + col1 + + CAST ( + - col1 AS INTEGER ) FROM tab0 AS cor0
----
-162
-2
-42

query I rowsort
SELECT + col2 + - - col2 + - 68 * - 24 FROM tab1
----
1750
1768
1824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3816
SELECT col2 + CAST( NULL AS SIGNED ) * + + col2 / - - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3816
SELECT col2 + CAST ( NULL AS INTEGER ) * + + col2 / - - col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + ( col2 ) AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 92 / - + col1 <= - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 + + 43 + - col2 + col2 + col2 * + - col0 * + - col0 AS col1 FROM tab0
----
10665
75743
931633

query I rowsort
SELECT DISTINCT + 82 + - + 84 FROM tab0
----
-2

query I rowsort
SELECT DISTINCT col1 * + col2 FROM tab0 WHERE + 71 >= 43
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT - COUNT( * ) FROM tab2 WHERE - + ( + col0 ) * + 70 * + + 88 + - col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3822
SELECT - COUNT ( * ) FROM tab2 WHERE - + ( + col0 ) * + 70 * + + 88 + - col0 >= NULL
----
0

query I rowsort
SELECT - 29 * + + col1 AS col2 FROM tab1 AS cor0
----
-1363
-145
-406

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 39 * col0 col1 FROM tab0 cor0
----
-3393
-3783
-585

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3825
SELECT ALL COUNT( * ) + + + ( - CAST( - ( + 68 ) AS SIGNED ) ) FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL COUNT ( * ) + + + ( - CAST ( - ( + 68 ) AS INTEGER ) ) FROM tab1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT DISTINCT COUNT( * ) + + - 37 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-3826
SELECT DISTINCT COUNT ( * ) + + - 37 FROM tab0
----
-34

query I rowsort
SELECT ALL 66 + + col2 FROM tab2 AS cor0
----
106
124
89

query I rowsort
SELECT + + ( + ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT 74 + + col0 AS col1 FROM tab1 AS cor0
----
125
159
165

query I rowsort
SELECT + ( - - 27 ) AS col1 FROM tab0 AS cor0
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT ALL COUNT( * ) - 29 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-3831
SELECT ALL COUNT ( * ) - 29 FROM tab0 AS cor0
----
-26

query I rowsort
SELECT DISTINCT - 69 - + - col2 AS col0 FROM tab0 AS cor0
----
-22
-59
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT SUM( DISTINCT - col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-3833
SELECT SUM ( DISTINCT - col2 ) AS col2 FROM tab2
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( + col0 ) col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT - col1 * + col2 * - col0 FROM tab0
----
18270
57105
9603

query I rowsort
SELECT DISTINCT col2 * 11 + + col1 AS col2 FROM tab0
----
1090
131
598

query I rowsort
SELECT + col0 * col2 * - col2 AS col2 FROM tab2
----
-102400
-24334
-252300

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 * - col1 * + col1 ) IS NOT NULL
----

query I rowsort
SELECT + col0 * - + ( + col0 ) + 45 * + - ( - col1 ) + 37 AS col1 FROM tab1 AS cor0
----
-1934
-6129
-6963

query I rowsort
SELECT + 6 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN 88 / + ( + col2 ) AND + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3841
SELECT ALL 29 AS col0, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
29
NULL
29
NULL
29
NULL

skipif mysql # not compatible
query II rowsort label-3841
SELECT ALL 29 AS col0, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
29
NULL
29
NULL
29
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3842
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 * - CAST( - col1 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-3842
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 * - CAST ( - col1 AS INTEGER ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3843
SELECT 20 * + CAST( + 31 AS SIGNED ) + - - col1 * - + 53 FROM tab0 cor0 WHERE ( - - ( - + col0 ) ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-3843
SELECT 20 * + CAST ( + 31 AS INTEGER ) + - - col1 * - + 53 FROM tab0 cor0 WHERE ( - - ( - + col0 ) ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT + 27 * + COUNT( * ) + - - 91 * - + MIN( ALL + + col1 ) AS col1 FROM tab2
----
-4560

skipif mysql # not compatible
query I rowsort label-3844
SELECT + 27 * + COUNT ( * ) + - - 91 * - + MIN ( ALL + + col1 ) AS col1 FROM tab2
----
-4560

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT DISTINCT - 6 * + MIN( DISTINCT - - col0 ) * MIN( ALL - col1 ) + + + COUNT( * ) FROM tab1
----
14385

skipif mysql # not compatible
query I rowsort label-3845
SELECT DISTINCT - 6 * + MIN ( DISTINCT - - col0 ) * MIN ( ALL - col1 ) + + + COUNT ( * ) FROM tab1
----
14385

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT - COUNT( * ) FROM tab0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3846
SELECT - COUNT ( * ) FROM tab0 WHERE - col1 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 <> - col1 * - 44
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 + + - col2 * ( + col2 ) - - col1 + - - 44 + - - col2 * + - 91 * col2 / - - 4 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 - col2 AS col0 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT + 36 AS col0 FROM tab2 WHERE ( NULL IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 - col2 col1 FROM tab0
----
-1262
-1837
-196

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 92 > NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 + + - 85 BETWEEN + col0 AND - - col0 * + 37 + - col2 / + 39 + - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3854
SELECT ALL + 62 DIV - + col1 AS col2 FROM tab0 AS cor0
----
-2
-62
0

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL + 62 / - + col1 AS col2 FROM tab0 AS cor0
----
-2
-62
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3855
SELECT DISTINCT + ( + + col0 ), + col0 + - col2 * + - CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-3855
SELECT DISTINCT + ( + + col0 ), + col0 + - col2 * + - CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query II rowsort
SELECT 28 AS col2, - col1 + - col2 + 1 FROM tab0
----
28
-127
28
-30
28
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * + + 2 - col1 <> NULL
----

query I rowsort
SELECT col2 * 97 AS col2 FROM tab1
----
5723
6596
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT - SUM( + + 74 ) * + COUNT( DISTINCT col0 ) AS col1 FROM tab1
----
-666

skipif mysql # not compatible
query I rowsort label-3859
SELECT - SUM ( + + 74 ) * + COUNT ( DISTINCT col0 ) AS col1 FROM tab1
----
-666

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT ALL ( MAX( ALL - 15 ) ) col1 FROM tab1
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3860
SELECT ALL ( MAX ( ALL - 15 ) ) col1 FROM tab1
----
-15

query II rowsort
SELECT DISTINCT 29, - col0 AS col1 FROM tab2
----
29
-46
29
-64
29
-75

query I rowsort
SELECT - + col2 - 42 + - + 88 * - - 2 / - - 51 AS col0 FROM tab0 AS cor0 WHERE NOT NULL > + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT ALL - COUNT( ALL 92 ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3863
SELECT ALL - COUNT ( ALL 92 ) col2 FROM tab1
----
-3

query I rowsort
SELECT - - 66 AS col2 FROM tab1 WHERE NOT - 23 IS NULL
----
66
66
66

query I rowsort
SELECT ALL + - ( ( - col2 ) ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT col1 + + 94 + - col2 FROM tab0 AS cor0
----
-4
105
128

query I rowsort
SELECT + col2 * 58 + + col2 * + - col1 FROM tab0 AS cor0
----
-1081
370
5643

query II rowsort
SELECT + - col2 + + col2 AS col2, col1 * - 29 AS col2 FROM tab1 AS cor0
----
0
-1363
0
-145
0
-406

query II rowsort
SELECT col2 + - 21, 37 * + col2 AS col2 FROM tab1 AS cor0
----
38
2183
47
2516
75
3552

query II rowsort
SELECT + - col1 + - 69 + col0 * + 43, col1 AS col0 FROM tab2 AS cor0
----
1858
51
2606
77
3089
67

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 * + 15 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 + 6 FROM tab0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL - col1 * + + col2 * 5 FROM tab0
----
-1050
-19035
-495

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 14 col0, - col0 * + ( - - col2 ) FROM tab2
----
-14
-1058
-14
-2560
-14
-4350

query II rowsort
SELECT ( + - col0 ), 10 FROM tab0 WHERE ( NULL ) >= col0
----

query I rowsort
SELECT 74 - - col0 FROM tab2 AS cor0
----
120
138
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3878
SELECT DISTINCT - - COUNT( * ) DIV COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT - - COUNT ( * ) / COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1

query II rowsort
SELECT col2 AS col2, col1 AS col2 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT DISTINCT + + 70 * - 78 FROM tab1 AS cor0
----
-5460

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3881
SELECT ALL * FROM tab0 cor0 WHERE ( + - col0 + + + CAST( + col1 AS SIGNED ) + 47 IS NULL )
----

skipif mysql # not compatible
query III rowsort label-3881
SELECT ALL * FROM tab0 cor0 WHERE ( + - col0 + + + CAST ( + col1 AS INTEGER ) + 47 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 52 AS col1, 51 * + col2 col2 FROM tab0 AS cor0
----
52
2397
52
5049
52
510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3883
SELECT ALL col2 * CAST( - + col1 AS SIGNED ) * + col2 + 93 FROM tab0 AS cor0
----
-178836
-2007
-9708

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL col2 * CAST ( - + col1 AS INTEGER ) * + col2 + 93 FROM tab0 AS cor0
----
-178836
-2007
-9708

query II rowsort
SELECT + col2, - 31 FROM tab0 AS cor0
----
10
-31
47
-31
99
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, col1 col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT ALL + SUM( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL + SUM ( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
121

query II rowsort
SELECT ALL - col1, - 68 AS col2 FROM tab1 AS cor0
----
-14
-68
-47
-68
-5
-68

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3888
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > - CAST( + + CAST( NULL AS DECIMAL ) AS SIGNED ) / 12
----

skipif mysql # not compatible
query III rowsort label-3888
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > - CAST ( + + CAST ( NULL AS REAL ) AS INTEGER ) / 12
----

query I rowsort
SELECT ALL + - 44 * - 94 AS col0 FROM tab1 cor0
----
4136
4136
4136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3890
SELECT DISTINCT + ( 88 ) DIV + - COUNT( * ) AS col0 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-3890
SELECT DISTINCT + ( 88 ) / + - COUNT ( * ) AS col0 FROM tab0
----
-29

query I rowsort
SELECT col2 * + 96 AS col1 FROM tab1
----
5664
6528
9216

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3892
SELECT COUNT( * ) DIV + - 23 * - + 69, 97 * + 54 AS col1 FROM tab1
----
0
5238

skipif mysql # not compatible
query II rowsort label-3892
SELECT COUNT ( * ) / + - 23 * - + 69, 97 * + 54 AS col1 FROM tab1
----
0
5238

query I rowsort
SELECT DISTINCT col1 * + 43 FROM tab0
----
3483
43
903

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3894
SELECT AVG ( - + col1 ) * - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3894
SELECT AVG ( - + col1 ) * - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query II rowsort
SELECT - col0 * col1 * + col2 AS col0, 95 FROM tab2 AS cor0
----
-197120
95
-291450
95
-53958
95

onlyif mysql # DIV for integer division: 
query II rowsort label-3896
SELECT DISTINCT - col0 DIV col0, + col1 AS col1 FROM tab0 AS cor0
----
-1
1
-1
21
-1
81

skipif mysql # not compatible
query II rowsort label-3896
SELECT DISTINCT - col0 / col0, + col1 AS col1 FROM tab0 AS cor0
----
-1
1
-1
21
-1
81

query I rowsort
SELECT DISTINCT - ( 38 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3898
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3898
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 79 col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3900
SELECT ALL - CAST( - 88 AS SIGNED ) * + - 88 * + col2 + col1 AS col1 FROM tab1
----
-456891
-526545
-743410

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL - CAST ( - 88 AS INTEGER ) * + - 88 * + col2 + col1 AS col1 FROM tab1
----
-456891
-526545
-743410

query I rowsort
SELECT ALL + ( + 6 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3902
SELECT ALL - CAST( NULL AS SIGNED ), + col0 AS col2 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-3902
SELECT ALL - CAST ( NULL AS INTEGER ), + col0 AS col2 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT ALL 17 + + 23 FROM tab2 cor0
----
40
40
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3904
SELECT DISTINCT + 16 DIV + col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT + 16 / + col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > ( - ( + 81 ) )
----

query I rowsort
SELECT ( - col0 ) * col2 * - 3 + - 59 * + ( ( - + col1 ) ) - ( - - col2 ) AS col2 FROM tab1
----
15281
15418
21269

query I rowsort
SELECT col1 + + 34 * - col1 AS col1 FROM tab2
----
-1683
-2211
-2541

query I rowsort
SELECT - ( - 43 ) + - col2 FROM tab0
----
-4
-56
33

onlyif mysql # DIV for integer division: 
query I rowsort label-3909
SELECT ( + col2 ) DIV col1 * 44 + + col1 FROM tab1
----
278
489
91

skipif mysql # not compatible
query I rowsort label-3909
SELECT ( + col2 ) / col1 * 44 + + col1 FROM tab1
----
278
489
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT ALL 29 + SUM( ALL + + col1 ) FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL 29 + SUM ( ALL + + col1 ) FROM tab0
----
132

query I rowsort
SELECT 10 + + + col1 FROM tab0
----
11
31
91

query I rowsort
SELECT ALL + col0 * + col2 + - + col2 FROM tab0
----
658
860
9504

query II rowsort
SELECT - - col1 + + 16 AS col1, - 49 + + 96 AS col2 FROM tab2 AS cor0
----
67
47
83
47
93
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3914
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 WHERE ( NOT NULL IS NULL )
----

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT DISTINCT 36 AS col1 FROM tab2 AS cor0 WHERE NULL IN ( + 24, - 87, - 70 + - col0 / 74 * - col0 * + col2 + col2 + - col1 / - 57 * + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3916
SELECT DISTINCT + 19 + + 31 DIV COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT col0 < - col2
----
29

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT + 19 + + 31 / COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT col0 < - col2
----
29

query I rowsort
SELECT DISTINCT col1 - + col0 - 28 FROM tab1 AS cor0
----
-108
-65
-72

query I rowsort
SELECT - col1 * - 72 AS col1 FROM tab1
----
1008
3384
360

query I rowsort
SELECT - 16 * + col2 AS col2 FROM tab0
----
-1584
-160
-752

query I rowsort
SELECT + 83 * 71 AS col1 FROM tab0
----
5893
5893
5893

query I rowsort
SELECT + col2 * - - 97 AS col0 FROM tab2
----
2231
3880
5626

query I rowsort
SELECT - col1 / - - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - - 98 * + + 62 AS col0 FROM tab2 AS cor0
----
6076

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 43 col1, - 48 AS col0 FROM tab1 AS cor0
----
43
-48
43
-48
43
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT + + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 * + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3925
SELECT + + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 * + col1 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 84, - col0 col2 FROM tab0 AS cor0
----
84
-15
84
-87
84
-97

query I rowsort
SELECT DISTINCT - + col1 * + ( + ( + 71 ) ) FROM tab0 AS cor0
----
-1491
-5751
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT + 37 + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
37

skipif mysql # not compatible
query I rowsort label-3928
SELECT + 37 + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
37

query II rowsort
SELECT DISTINCT + col2, + col2 * - 22 - + ( + 87 ) * - - col2 * - - col1 * + col0 FROM tab2 AS cor0
----
23
-4694852
40
-17150320
58
-25357426

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3930
SELECT col2 AS col0, CAST( + col0 AS SIGNED ) FROM tab2
----
23
46
40
64
58
75

skipif mysql # not compatible
query II rowsort label-3930
SELECT col2 AS col0, CAST ( + col0 AS INTEGER ) FROM tab2
----
23
46
40
64
58
75

query II rowsort
SELECT + 39, + col0 FROM tab0
----
39
15
39
87
39
97

onlyif mysql # DIV for integer division: 
query III rowsort label-3932
SELECT + col0, col0, + 46 DIV + 70 * - + col0 + - col1 DIV - col1 AS col2 FROM tab0
----
9 values hashing to 8a9281cdbd78572b5c756af273af921f

skipif mysql # not compatible
query III rowsort label-3932
SELECT + col0, col0, + 46 / + 70 * - + col0 + - col1 / - col1 AS col2 FROM tab0
----
9 values hashing to 8a9281cdbd78572b5c756af273af921f

query I rowsort
SELECT 9 * + + 15 AS col0 FROM tab1
----
135
135
135

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col1 ) BETWEEN NULL AND 97
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3935
SELECT DISTINCT + col2 DIV + col2, + col0 FROM tab1 AS cor0
----
1
51
1
85
1
91

skipif mysql # not compatible
query II rowsort label-3935
SELECT DISTINCT + col2 / + col2, + col0 FROM tab1 AS cor0
----
1
51
1
85
1
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - + col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 57 * - + col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 46 + + col2 IN ( col1, + col0, + + 60 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3939
SELECT * FROM tab0 cor0 WHERE col0 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3939
SELECT * FROM tab0 cor0 WHERE col0 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT MAX( - col0 ) + + - MIN( DISTINCT + - col0 ) col2 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3940
SELECT MAX ( - col0 ) + + - MIN ( DISTINCT + - col0 ) col2 FROM tab1 AS cor0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3941
SELECT + ( + 5 ), + CAST( NULL AS SIGNED ) + - 23 AS col1 FROM tab1 AS cor0
----
5
NULL
5
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-3941
SELECT + ( + 5 ), + CAST ( NULL AS INTEGER ) + - 23 AS col1 FROM tab1 AS cor0
----
5
NULL
5
NULL
5
NULL

query I rowsort
SELECT DISTINCT col1 - - 10 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * + + col0 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT ALL - col2 - + col0 AS col2 FROM tab2
----
-104
-133
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-3945
SELECT 4 DIV + + 49 - - + 91 AS col0 FROM tab1 cor0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-3945
SELECT 4 / + + 49 - - + 91 AS col0 FROM tab1 cor0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT COUNT( ALL - ( - col2 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3946
SELECT COUNT ( ALL - ( - col2 ) ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN 80 AND + col2
----
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 * + - col2 ) NOT BETWEEN col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 col0 FROM tab2
----
96

query I rowsort
SELECT DISTINCT - 80 * + - 75 FROM tab1
----
6000

query I rowsort
SELECT ALL + 37 FROM tab1 WHERE col2 <= + col0
----
37
37

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT 16 + - 40 IS NOT NULL
----

query I rowsort
SELECT + - 84 * - col0 FROM tab0 cor0
----
1260
7308
8148

query I rowsort
SELECT - - 79 * - col2 - 13 + - col1 FROM tab1 AS cor0
----
-4679
-5432
-7611

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 40 NOT BETWEEN - 62 / - - col2 AND - 30
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - - 3 * + col1 AS col2 FROM tab1
----
1275
12831
2142

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 / - + col2 IS NULL
----

query I rowsort
SELECT ALL 62 - - - col1 - + - col0 FROM tab0 AS cor0
----
-4
128
158

query I rowsort
SELECT ALL - - col1 * col1 + - col0 FROM tab2 AS cor0
----
2555
4414
5865

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3960
SELECT DISTINCT + 22 DIV - + ( + + COUNT( * ) ) FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-3960
SELECT DISTINCT + 22 / - + ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
-7

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NULL = + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3962
SELECT + col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3962
SELECT + col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT - 36 + + ( - SUM( DISTINCT - 61 ) ) col2 FROM tab1
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3963
SELECT - 36 + + ( - SUM ( DISTINCT - 61 ) ) col2 FROM tab1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT ALL SUM( DISTINCT - col1 ) + + + SUM( DISTINCT - 55 ) col0 FROM tab2
----
-250

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3964
SELECT ALL SUM ( DISTINCT - col1 ) + + + SUM ( DISTINCT - 55 ) col0 FROM tab2
----
-250

query I rowsort
SELECT DISTINCT - col0 * - col2 * - - col2 + + col1 AS col1 FROM tab2
----
102477
24385
252367

query II rowsort
SELECT col1 + + + ( - 55 ) AS col0, col0 FROM tab1
----
-41
51
-50
85
-8
91

query I rowsort
SELECT ALL 22 + - col1 AS col1 FROM tab2
----
-29
-45
-55

query II rowsort
SELECT DISTINCT - col1 * - + col0 AS col2, + col0 + - - 0 AS col1 FROM tab1 AS cor0
----
425
85
4277
91
714
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3969
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN + CAST( - col0 AS SIGNED ) * + - col1 + - - 64 + - col1 AND col0 * + col0 * + col2 + col1
----

skipif mysql # not compatible
query III rowsort label-3969
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN + CAST ( - col0 AS INTEGER ) * + - col1 + - - 64 + - col1 AND col0 * + col0 * + col2 + col1
----

query I rowsort
SELECT ALL - col0 * col0 - col0 AS col0 FROM tab1 AS cor0
----
-2652
-7310
-8372

query I rowsort
SELECT ( - 49 ) AS col2 FROM tab1
----
-49
-49
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3972
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + 87 NOT BETWEEN + 0 + + - col2 * - + col1 + - col0 AND 45 )
----

skipif mysql # not compatible
query I rowsort label-3972
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + 87 NOT BETWEEN + 0 + + - col2 * - + col1 + - col0 AND 45 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3973
SELECT - 54 DIV + ( - + col0 ) AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3973
SELECT - 54 / + ( - + col0 ) AS col2 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT COUNT( DISTINCT + 41 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3974
SELECT COUNT ( DISTINCT + 41 ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT 24 + + - col2 - + + col2 AS col1 FROM tab2 AS cor0
----
-22
-56
-92

query I rowsort
SELECT DISTINCT + 26 + - 59 FROM tab2 cor0 WHERE 20 IS NULL
----

query I rowsort
SELECT + col2 + - + col1 + - col1 * + - 74 * + 90 AS col1 FROM tab0 cor0
----
139849
539426
6758

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT + 75 + - + COUNT( * ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-3978
SELECT + 75 + - + COUNT ( * ) FROM tab1
----
72

query I rowsort
SELECT + + col2 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + - col1
----

query I rowsort
SELECT ( - ( + col0 ) ) AS col1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL - ( + col2 ) + - 82 FROM tab2
----
-105
-122
-140

query I rowsort
SELECT ALL + - col1 + - - col1 AS col1 FROM tab1 WHERE NOT ( + col2 ) >= NULL OR NOT + col2 IS NULL
----
0
0
0

query II rowsort
SELECT + 91 * col2, col0 FROM tab0 AS cor0
----
4277
15
9009
97
910
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT MAX( DISTINCT - 79 ) FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-3985
SELECT MAX ( DISTINCT - 79 ) FROM tab0 AS cor0
----
-79

query II rowsort
SELECT ALL + 85 * + + col2 AS col2, col2 + + - 3 FROM tab2 AS cor0
----
1955
20
3400
37
4930
55

query I rowsort
SELECT 32 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT DISTINCT + 83 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
83

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col1 IN ( + col0, + col1 * + + col1 * + col0, - col1, + col0, + + 91 + 29, - col1, - 14 - col1 + + ( + - 64 ) * + - col1 )
----

query I rowsort
SELECT ALL ( 97 ) AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT ALL + + COUNT( - 47 ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3991
SELECT ALL + + COUNT ( - 47 ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3992
SELECT DISTINCT + COUNT( * ) / - CAST( NULL AS SIGNED ) * + 38 + - 80 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3992
SELECT DISTINCT + COUNT ( * ) / - CAST ( NULL AS INTEGER ) * + 38 + - 80 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 16 * + col0 FROM tab2 AS cor0
----
1024
1200
736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 44 - 23 * + + col1 col2 FROM tab2 AS cor0
----
-1217
-1585
-1815

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE ( NULL ) <= ( - + 33 )
----

query I rowsort
SELECT + 2 FROM tab0 AS cor0 WHERE + 74 >= NULL
----

query I rowsort
SELECT DISTINCT - col1 - + + col1 AS col1 FROM tab1 AS cor0
----
-10
-28
-94

query I rowsort
SELECT + + col0 AS col0 FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND - - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4000
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4000
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + + col2 col2 FROM tab2 WHERE NOT + col1 - - + ( col1 ) IS NULL
----
104
133
69

query I rowsort
SELECT - col1 * + col1 * - col1 FROM tab2
----
132651
300763
456533

query I rowsort
SELECT - + ( - col2 ) AS col1 FROM tab2 WHERE NOT - - col1 + - col0 / + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4004
SELECT ALL CAST( NULL AS SIGNED ), - col0 + col0 * + ( + 23 ) AS col2 FROM tab0
----
NULL
1914
NULL
2134
NULL
330

skipif mysql # not compatible
query II rowsort label-4004
SELECT ALL CAST ( NULL AS INTEGER ), - col0 + col0 * + ( + 23 ) AS col2 FROM tab0
----
NULL
1914
NULL
2134
NULL
330

query II rowsort
SELECT - col0 AS col1, + col1 AS col2 FROM tab0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT 51 * - MIN( + + 55 ) * - + 49 AS col0 FROM tab1 WHERE NOT + + col2 IS NULL
----
137445

skipif mysql # not compatible
query I rowsort label-4006
SELECT 51 * - MIN ( + + 55 ) * - + 49 AS col0 FROM tab1 WHERE NOT + + col2 IS NULL
----
137445

onlyif mysql # aggregate syntax: 
query II rowsort label-4007
SELECT DISTINCT COUNT( * ), 22 col2 FROM tab2
----
3
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4007
SELECT DISTINCT COUNT ( * ), 22 col2 FROM tab2
----
3
22

query I rowsort
SELECT + - 55 AS col1 FROM tab0 AS cor0
----
-55
-55
-55

query II rowsort
SELECT - - 56 AS col0, 34 * - 5 * - ( + 36 ) FROM tab2 AS cor0
----
56
6120
56
6120
56
6120

query II rowsort
SELECT DISTINCT col0 * - - 73 * ( - col2 ), - col2 AS col2 FROM tab0 AS cor0
----
-51465
-47
-63510
-10
-701019
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4011
SELECT DISTINCT 80 DIV - ( + + 35 ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT 80 / - ( + + 35 ) FROM tab1 AS cor0
----
-2

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - ( - col0 ) <> - - 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT ALL + + COUNT( * ) + + COUNT( * ) FROM tab2 WHERE NOT + 83 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL + + COUNT ( * ) + + COUNT ( * ) FROM tab2 WHERE NOT + 83 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT DISTINCT MIN( - + col1 ) AS col2 FROM tab2 WHERE NOT - col1 * - col1 IS NULL
----
-77

skipif mysql # not compatible
query I rowsort label-4014
SELECT DISTINCT MIN ( - + col1 ) AS col2 FROM tab2 WHERE NOT - col1 * - col1 IS NULL
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT - COUNT( * ) * + MAX( + - col0 ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4015
SELECT - COUNT ( * ) * + MAX ( + - col0 ) FROM tab0 AS cor0
----
45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4016
SELECT ALL - + ( - - col1 ), + 33 DIV - + CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-14
-2
-47
0
-5
-6

skipif mysql # not compatible
query II rowsort label-4016
SELECT ALL - + ( - - col1 ), + 33 / - + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-14
-2
-47
0
-5
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-4017
SELECT DISTINCT col1 DIV + 23 + - - 84 * 7 FROM tab0 cor0
----
588
591

skipif mysql # not compatible
query I rowsort label-4017
SELECT DISTINCT col1 / + 23 + - - 84 * 7 FROM tab0 cor0
----
588
591

query I rowsort
SELECT ALL + - 87 + + - ( - col1 ) FROM tab2 AS cor0
----
-10
-20
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT - + MIN( - - col0 ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4019
SELECT - + MIN ( - - col0 ) AS col0 FROM tab2 AS cor0
----
-46

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT + 50 NOT BETWEEN + col2 AND - 72 )
----

query I rowsort
SELECT DISTINCT col1 + - 96 FROM tab1
----
-49
-82
-91

query II rowsort
SELECT ALL col0 AS col2, col1 AS col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4023
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) < + col0 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-4023
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) < + col0 * - col0
----
0

query I rowsort
SELECT 55 + + - ( - col2 ) FROM tab0 AS cor0
----
102
154
65

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT + COUNT( ALL - col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4026
SELECT + COUNT ( ALL - col0 ) AS col1 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - ( - col2 ) * col0 + col1 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ALL + COUNT( * ) * COUNT( col0 ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL + COUNT ( * ) * COUNT ( col0 ) AS col2 FROM tab1
----
9

query I rowsort
SELECT DISTINCT - 80 * col2 AS col0 FROM tab1
----
-4720
-5440
-7680

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT DISTINCT 71 * + MIN( + 38 ) FROM tab0 WHERE NOT col0 + col1 BETWEEN 92 * col1 AND ( - col1 )
----
2698

skipif mysql # not compatible
query I rowsort label-4030
SELECT DISTINCT 71 * + MIN ( + 38 ) FROM tab0 WHERE NOT col0 + col1 BETWEEN 92 * col1 AND ( - col1 )
----
2698

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NOT ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4031
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( NULL ) > NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4032
SELECT - 5 DIV + col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4032
SELECT - 5 / + col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4033
SELECT - 22 DIV + COUNT( * ) AS col2 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-4033
SELECT - 22 / + COUNT ( * ) AS col2 FROM tab1
----
-7

query I rowsort
SELECT ALL 56 + + ( - 93 + + 88 * col1 ) AS col0 FROM tab1 WHERE NULL IN ( - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4035
SELECT 64 DIV - 60 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4035
SELECT 64 / - 60 AS col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL 67 * - 4 FROM tab2
----
-268
-268
-268

query I rowsort
SELECT + 95 + + col1 FROM tab0
----
116
176
96

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE 77 + col1 <= - col2 / 96
----

query I rowsort
SELECT DISTINCT col2 * + 7 - col1 * 3 FROM tab1
----
335
398
630

onlyif mysql # DIV for integer division: 
query I rowsort label-4040
SELECT ALL 74 DIV 72 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL 74 / 72 AS col2 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT COUNT( - 79 ) * 97 FROM tab2
----
291

skipif mysql # not compatible
query I rowsort label-4041
SELECT COUNT ( - 79 ) * 97 FROM tab2
----
291

query I rowsort
SELECT + col0 / + col1 FROM tab1 WHERE NULL <> 60
----

query I rowsort
SELECT - col0 * 55 AS col0 FROM tab1
----
-2805
-4675
-5005

query I rowsort
SELECT DISTINCT col2 * - col0 FROM tab2 WHERE NULL IN ( - 96 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4045
SELECT DISTINCT - col1 DIV col0 + col0 AS col1 FROM tab2
----
45
63
75

skipif mysql # not compatible
query I rowsort label-4045
SELECT DISTINCT - col1 / col0 + col0 AS col1 FROM tab2
----
45
63
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4046
SELECT + COUNT( * ) DIV 64 FROM tab1 WHERE - 38 DIV 78 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4046
SELECT + COUNT ( * ) / 64 FROM tab1 WHERE - 38 / 78 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 + col2 * - ( 51 ) ) >= NULL
----

query I rowsort
SELECT col1 + - col2 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT DISTINCT ( ( COUNT( * ) ) ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4049
SELECT DISTINCT ( ( COUNT ( * ) ) ) col0 FROM tab1
----
3

query I rowsort
SELECT + col2 + col1 AS col1 FROM tab1 WHERE NULL IS NULL
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT - COUNT( * ) + - COUNT( col0 ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-4051
SELECT - COUNT ( * ) + - COUNT ( col0 ) FROM tab0
----
-6

query III rowsort
SELECT * FROM tab0 WHERE 18 - col2 IS NULL
----

query I rowsort
SELECT - 4 * - col2 + 16 AS col0 FROM tab2
----
108
176
248

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 AS cor0 WHERE col1 * + 57 IN ( 48 )
----

query I rowsort
SELECT - 42 + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( col1 ) = col2
----
25
35
9

query I rowsort
SELECT 79 / col1 FROM tab2 WHERE NOT ( + 52 ) BETWEEN NULL AND 71
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 * 85 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL ( col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 * + col1 < col0
----
15
87

query I rowsort
SELECT - col1 + - 38 AS col2 FROM tab2 AS cor0
----
-105
-115
-89

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( 49 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT + + 13 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4061
SELECT + + 13 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 41 + col1 * - 49 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - ( - col0 ) AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT + 59 * col1 AS col2 FROM tab2 AS cor0
----
3009
3953
4543

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4065
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( + 25 AS SIGNED ) * + 95 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4065
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( + 25 AS INTEGER ) * + 95 IS NULL
----

query I rowsort
SELECT col1 * - - col0 * - col2 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT DISTINCT col0 + 91 FROM tab1 WHERE ( col2 * - col2 ) IS NOT NULL
----
142
176
182

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4068
SELECT ALL * FROM tab1 WHERE CAST( NULL AS SIGNED ) <= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4068
SELECT ALL * FROM tab1 WHERE CAST ( NULL AS INTEGER ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 + - - col2 + col0 FROM tab0
----
184
293
77

query III rowsort
SELECT * FROM tab0 WHERE col2 = ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE NULL = NULL
----

query I rowsort
SELECT col1 - - - col2 AS col1 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4073
SELECT - + CAST( NULL AS SIGNED ) - COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4073
SELECT - + CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - 31 + + col1 AS col2 FROM tab0 AS cor0
----
-10
-30
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT DISTINCT MIN( 71 ) FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT MIN ( 71 ) FROM tab1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4076
SELECT - col2 * - col1 FROM tab2 WHERE ( ( + CAST( col1 AS SIGNED ) ) IS NULL )
----

skipif mysql # not compatible
query I rowsort label-4076
SELECT - col2 * - col1 FROM tab2 WHERE ( ( + CAST ( col1 AS INTEGER ) ) IS NULL )
----

query I rowsort
SELECT - col0 + 82 * + + 20 FROM tab0
----
1543
1553
1625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4078
SELECT DISTINCT - 35 AS col2 FROM tab1 WHERE - - CAST( col0 AS SIGNED ) - col2 >= col2
----

skipif mysql # not compatible
query I rowsort label-4078
SELECT DISTINCT - 35 AS col2 FROM tab1 WHERE - - CAST ( col0 AS INTEGER ) - col2 >= col2
----

query I rowsort
SELECT + + 31 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT ALL 53 - col1 AS col2 FROM tab2
----
-14
-24
2

query I rowsort
SELECT - ( - ( - col1 ) ) FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE - 56 + col2 + col2 = NULL
----

query I rowsort
SELECT 22 FROM tab0 AS cor0 WHERE - col2 NOT IN ( 61 + col2 )
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT ALL - - 8 * COUNT( * ) + + 83 AS col0 FROM tab2 AS cor0
----
107

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL - - 8 * COUNT ( * ) + + 83 AS col0 FROM tab2 AS cor0
----
107

query I rowsort
SELECT 9 AS col0 FROM tab2 AS cor0 WHERE - 85 * + col1 IS NULL
----

query II rowsort
SELECT - + col1, + col1 AS col2 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT - COUNT( + + 17 ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4087
SELECT - COUNT ( + + 17 ) col1 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT ALL - 28 AS col1, 7 FROM tab1 AS cor0
----
-28
7
-28
7
-28
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4089
SELECT - 0, + COUNT( * ) * + MIN( - 68 ) * + ( + 20 ) + + COUNT( * ) AS col0 FROM tab2 cor0
----
0
-4077

skipif mysql # not compatible
query II rowsort label-4089
SELECT - 0, + COUNT ( * ) * + MIN ( - 68 ) * + ( + 20 ) + + COUNT ( * ) AS col0 FROM tab2 cor0
----
0
-4077

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 83 ) col1 FROM tab1 AS cor0
----
-83
-83
-83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4091
SELECT SUM( ALL + col2 ) * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4091
SELECT SUM ( ALL + col2 ) * + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 + 2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4094
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 + - 98 + + col0 * - col1 ) BETWEEN + 68 / + col0 AND col1 * CAST( NULL AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4094
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 + - 98 + + col0 * - col1 ) BETWEEN + 68 / + col0 AND col1 * CAST ( NULL AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN - 43 AND ( - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4096
SELECT + 7 DIV - MIN( ALL + col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4096
SELECT + 7 / - MIN ( ALL + col2 ) FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col2 BETWEEN - + 69 AND NULL
----

query II rowsort
SELECT DISTINCT + 95 * + col0 AS col2, col0 AS col0 FROM tab0 AS cor0
----
1425
15
8265
87
9215
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 73 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + - col1 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4102
SELECT DISTINCT 9 * - - 76 + - col1 - CAST( - + col2 AS SIGNED ) AS col2 FROM tab1
----
705
738
766

skipif mysql # not compatible
query I rowsort label-4102
SELECT DISTINCT 9 * - - 76 + - col1 - CAST ( - + col2 AS INTEGER ) AS col2 FROM tab1
----
705
738
766

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4103
SELECT + CAST( + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4103
SELECT + CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4104
SELECT DISTINCT 73 + + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
15
33
50

skipif mysql # not compatible
query I rowsort label-4104
SELECT DISTINCT 73 + + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
15
33
50

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IN ( col0 + 67 * + + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 / + + 69 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + 37 ) FROM tab2 AS cor0
----
37
37
37

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 52 * - col2 ) = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4110
SELECT CAST( NULL AS SIGNED ) + + col2 - - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4110
SELECT CAST ( NULL AS INTEGER ) + + col2 - - col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4111
SELECT * FROM tab0 WHERE ( - 66 ) NOT BETWEEN - + 93 AND col2 + CAST( NULL AS SIGNED ) * - col2
----

skipif mysql # not compatible
query III rowsort label-4111
SELECT * FROM tab0 WHERE ( - 66 ) NOT BETWEEN - + 93 AND col2 + CAST ( NULL AS INTEGER ) * - col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT NULL IN ( + col1 + + + 85 ) )
----

query I rowsort
SELECT ALL col1 + + 26 AS col1 FROM tab1
----
31
40
73

query I rowsort
SELECT ALL - 13 + col1 FROM tab0
----
-12
68
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT DISTINCT + COUNT( * ) + - MAX( DISTINCT col1 ) FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT + COUNT ( * ) + - MAX ( DISTINCT col1 ) FROM tab0 AS cor0
----
-78

query I rowsort
SELECT - col2 + + 97 FROM tab2 AS cor0
----
39
57
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4117
SELECT DISTINCT + + col0 DIV - 91 + col2 AS col0 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4117
SELECT DISTINCT + + col0 / - 91 + col2 AS col0 FROM tab2 cor0
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 - + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT ALL + COUNT( + + col1 ) + MIN( ALL - + 86 ) FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-4119
SELECT ALL + COUNT ( + + col1 ) + MIN ( ALL - + 86 ) FROM tab2 AS cor0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT DISTINCT MAX( DISTINCT - col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT MAX ( DISTINCT - col1 ) AS col2 FROM tab2
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 col2 FROM tab2 cor0
----
75
75
75

query I rowsort
SELECT + col1 * + ( + 92 ) FROM tab2 cor0
----
4692
6164
7084

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT SUM( 66 ) AS col0 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-4123
SELECT SUM ( 66 ) AS col0 FROM tab1
----
198

query II rowsort
SELECT col2, col1 + - - col2 AS col0 FROM tab1
----
59
64
68
115
96
110

query I rowsort
SELECT 74 * col0 * + col1 * + 80 * - col1 FROM tab0
----
-227132640
-574240
-582616800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, 11 col2 FROM tab1
----
59
11
68
11
96
11

query III rowsort
SELECT * FROM tab2 WHERE col1 NOT IN ( - - 3 ) OR NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT + MAX( + 28 ) * 68 + 3 / 28 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - + col1 * + + col1 - - - 47 / col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4128
SELECT + MAX ( + 28 ) * 68 + 3 / 28 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - + col1 * + + col1 - - - 47 / col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT ALL AVG ( 16 ) * + + COUNT( * ) + COUNT( * ) * 77 FROM tab0 WHERE NOT ( + col0 + 17 ) NOT IN ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL AVG ( 16 ) * + + COUNT ( * ) + COUNT ( * ) * 77 FROM tab0 WHERE NOT ( + col0 + 17 ) NOT IN ( - col0 )
----
NULL

query II rowsort
SELECT DISTINCT - col0, col2 FROM tab0
----
-15
47
-87
10
-97
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4131
SELECT + col1 + + CAST( - 76 AS SIGNED ) AS col0, col1 * col2 + - col1 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-4131
SELECT + col1 + + CAST ( - 76 AS INTEGER ) AS col0, col1 * col2 + - col1 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT ALL COUNT( * ) * + + COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab0
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT - 0 * + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * + 41 AS col0 FROM tab0
----
1927
4059
410

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4136
SELECT * FROM tab0 WHERE - col1 + col0 NOT IN ( - + ( - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-4136
SELECT * FROM tab0 WHERE - col1 + col0 NOT IN ( - + ( - CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT + 17 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4138
SELECT - 37 + + 52 * + 44 * + - col2, CAST( + 12 AS DECIMAL ) + + CAST( NULL AS SIGNED ) / - + col2 + - ( col1 ) AS col0 FROM tab0 AS cor0
----
-107573
NULL
-226549
NULL
-22917
NULL

skipif mysql # not compatible
query II rowsort label-4138
SELECT - 37 + + 52 * + 44 * + - col2, CAST ( + 12 AS REAL ) + + CAST ( NULL AS INTEGER ) / - + col2 + - ( col1 ) AS col0 FROM tab0 AS cor0
----
-107573
NULL
-226549
NULL
-22917
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4139
SELECT - MIN( DISTINCT - - col1 ) DIV + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4139
SELECT - MIN ( DISTINCT - - col1 ) / + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4140
SELECT - 39 DIV + - col2 * CAST( ( + 34 ) AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4140
SELECT - 39 / + - col2 * CAST ( ( + 34 ) AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT - + COUNT( * ) col2 FROM tab1 WHERE ( - 33 / col0 ) NOT BETWEEN 12 AND NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4141
SELECT - + COUNT ( * ) col2 FROM tab1 WHERE ( - 33 / col0 ) NOT BETWEEN 12 AND NULL
----
-3

query I rowsort
SELECT ( - - col0 ) * - + col0 + 47 AS col2 FROM tab2 WHERE ( + col1 ) NOT BETWEEN NULL AND + col2 * - + col2
----
-2069
-4049
-5578

onlyif mysql # DIV for integer division: 
query I rowsort label-4143
SELECT DISTINCT col1 DIV + 43 + + col1 + - - col0 * - col1 AS col0 FROM tab0
----
-1133
-1806
-96

skipif mysql # not compatible
query I rowsort label-4143
SELECT DISTINCT col1 / + 43 + + col1 + - - col0 * - col1 AS col0 FROM tab0
----
-1133
-1806
-96

query III rowsort
SELECT * FROM tab2 WHERE - col0 NOT IN ( + - col0, - ( - 45 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4145
SELECT + + col2 DIV - col0 + col0 FROM tab1 AS cor0
----
50
85
91

skipif mysql # not compatible
query I rowsort label-4145
SELECT + + col2 / - col0 + col0 FROM tab1 AS cor0
----
50
85
91

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4147
SELECT ALL * FROM tab2 AS cor0 WHERE - ( + - CAST( col1 AS SIGNED ) ) * - 50 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4147
SELECT ALL * FROM tab2 AS cor0 WHERE - ( + - CAST ( col1 AS INTEGER ) ) * - 50 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT + 77 + + COUNT( * ) FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-4148
SELECT + 77 + + COUNT ( * ) FROM tab0 AS cor0
----
80

query I rowsort
SELECT DISTINCT - - col2 * - - col2 - col1 * col0 + + col0 FROM tab2 cor0
----
-1586
-1771
-3264

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > ( + col1 )
----

query I rowsort
SELECT 15 + + - 5 AS col2 FROM tab0 AS cor0
----
10
10
10

query I rowsort
SELECT + 77 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4153
SELECT ALL * FROM tab2 WHERE NOT col0 - + - col0 + + col0 NOT IN ( CAST( + 82 AS SIGNED ) + 2 )
----

skipif mysql # not compatible
query III rowsort label-4153
SELECT ALL * FROM tab2 WHERE NOT col0 - + - col0 + + col0 NOT IN ( CAST ( + 82 AS INTEGER ) + 2 )
----

query I rowsort
SELECT DISTINCT - 56 * + ( - 4 ) FROM tab1
----
224

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col1 - - + col2 + ( + 6 ), - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4156
SELECT MIN( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4156
SELECT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 81 * + col2 + + - col2 IS NULL
----

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE ( ( + col1 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4159
SELECT DISTINCT + COUNT( * ) AS col0, + 40 AS col0 FROM tab0 cor0 WHERE NOT - col2 - col2 IS NOT NULL
----
0
40

skipif mysql # not compatible
query II rowsort label-4159
SELECT DISTINCT + COUNT ( * ) AS col0, + 40 AS col0 FROM tab0 cor0 WHERE NOT - col2 - col2 IS NOT NULL
----
0
40

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 66 ) <= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT ALL - 77 * + + MIN( + 34 ) col1 FROM tab2 AS cor0
----
-2618

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4161
SELECT ALL - 77 * + + MIN ( + 34 ) col1 FROM tab2 AS cor0
----
-2618

query I rowsort
SELECT DISTINCT - 30 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT - col0 * - col0, col1 AS col0 FROM tab1
----
2601
14
7225
5
8281
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4164
SELECT - COUNT( + col0 ) AS col0, + COUNT( * ) AS col2 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4164
SELECT - COUNT ( + col0 ) AS col0, + COUNT ( * ) AS col2 FROM tab0
----
-3
3

query II rowsort
SELECT - ( + col1 ) AS col0, - ( - col1 ) AS col1 FROM tab0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT ALL - col1 + - col0 * - 31 * + col0 FROM tab1
----
223970
256664
80617

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT COUNT( * ) * + + 95 FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-4167
SELECT COUNT ( * ) * + + 95 FROM tab2
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT - MAX( ALL 86 ) AS col1 FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-4168
SELECT - MAX ( ALL 86 ) AS col1 FROM tab2
----
-86

query I rowsort
SELECT - + 21 + col2 FROM tab2 cor0
----
19
2
37

query I rowsort
SELECT + 76 + - 12 FROM tab2 AS cor0
----
64
64
64

query I rowsort
SELECT DISTINCT ( + - 10 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 10 + 90 col0 FROM tab2 AS cor0
----
131
147
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4173
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE + col0 IN ( 99 + - + col2 / + 29 * + 64, + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4174
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE + col0 IN ( 99 + - + col2 / + 29 * + 64, + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT SUM( ALL - - col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-4175
SELECT SUM ( ALL - - col2 ) AS col2 FROM tab2
----
121

query II rowsort
SELECT + 57 AS col2, col1 FROM tab0 cor0
----
57
1
57
21
57
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT DISTINCT + SUM( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4177
SELECT DISTINCT + SUM ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-103

query II rowsort
SELECT - + 46, 26 AS col0 FROM tab1 AS cor0
----
-46
26
-46
26
-46
26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4179
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( - col2 AS SIGNED ) NOT IN ( + col1 * + ( - 20 ) * 56 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4179
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( - col2 AS INTEGER ) NOT IN ( + col1 * + ( - 20 ) * 56 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 36 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT ALL SUM( - - col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL SUM ( - - col2 ) AS col1 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT ALL - COUNT( * ) + 95 + - 34 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL - COUNT ( * ) + 95 + - 34 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT - 52 + - COUNT( col0 ) AS col0 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-4183
SELECT - 52 + - COUNT ( col0 ) AS col0 FROM tab0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT DISTINCT COUNT( * ) * - SUM( ALL col0 ) FROM tab0
----
-597

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT COUNT ( * ) * - SUM ( ALL col0 ) FROM tab0
----
-597

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + - col1 col0 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4186
SELECT + CAST( + + col1 AS SIGNED ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4186
SELECT + CAST ( + + col1 AS INTEGER ) FROM tab1
----
14
47
5

query II rowsort
SELECT + col1 * col0 AS col0, col2 AS col2 FROM tab2
----
2346
23
4928
40
5025
58

query I rowsort
SELECT DISTINCT - 18 + - col1 FROM tab2
----
-69
-85
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4189
SELECT + col1 * col0 AS col1, 42 + - CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) BETWEEN NULL AND col2 / - col1 * + + 86 + 92
----

skipif mysql # not compatible
query II rowsort label-4189
SELECT + col1 * col0 AS col1, 42 + - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) BETWEEN NULL AND col2 / - col1 * + + 86 + 92
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 < 16
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4191
SELECT ALL * FROM tab0 AS cor0 WHERE 34 NOT IN ( - 9, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4191
SELECT ALL * FROM tab0 AS cor0 WHERE 34 NOT IN ( - 9, - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( + - col0 ) NOT IN ( + + 23 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 47 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT ( NULL IS NULL ) )
----

query I rowsort
SELECT DISTINCT ( 29 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT ALL SUM( - - 25 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL SUM ( - - 25 ) FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT ALL MIN( DISTINCT col1 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL MIN ( DISTINCT col1 ) FROM tab0 cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * + 27 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4198
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col0 / col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col0 / col1 AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 91 > - 71
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= - 30
----

query I rowsort
SELECT ALL col1 + + col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4202
SELECT ALL - + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4202
SELECT ALL - + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4203
SELECT ALL - 85 DIV + - MIN( ALL col1 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL - 85 / + - MIN ( ALL col1 ) FROM tab2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4204
SELECT - 43 * - + CAST( NULL AS DECIMAL ) * - ( - ( - 53 ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4204
SELECT - 43 * - + CAST ( NULL AS REAL ) * - ( - ( - 53 ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT MAX( DISTINCT col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4205
SELECT MAX ( DISTINCT col1 ) AS col2 FROM tab0
----
81

query II rowsort
SELECT - col2 AS col0, col2 + + 15 FROM tab2
----
-23
38
-40
55
-58
73

query II rowsort
SELECT DISTINCT - col1 AS col0, 95 FROM tab2
----
-51
95
-67
95
-77
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT ALL - SUM( DISTINCT 34 ) FROM tab1 WHERE col1 / - 19 + + col2 + - + col2 * col0 BETWEEN 28 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL - SUM ( DISTINCT 34 ) FROM tab1 WHERE col1 / - 19 + + col2 + - + col2 * col0 BETWEEN 28 AND NULL
----
NULL

query I rowsort
SELECT DISTINCT 56 * ( + col0 ) FROM tab2
----
2576
3584
4200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, col1 + - col1 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4211
SELECT DISTINCT - CAST( CAST( col2 AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4211
SELECT DISTINCT - CAST ( CAST ( col2 AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 * col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4213
SELECT - col1 DIV + 13 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-4213
SELECT - col1 / + 13 FROM tab0 AS cor0
----
-1
-6
0

query I rowsort
SELECT DISTINCT col2 - + - 37 AS col1 FROM tab2
----
60
77
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT ALL + MIN( DISTINCT - col2 ) - - 56 FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL + MIN ( DISTINCT - col2 ) - - 56 FROM tab1 AS cor0
----
-40

query I rowsort
SELECT DISTINCT + 45 FROM tab2 cor0 WHERE NOT 4 + + col0 * - col1 + - 88 - 20 - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT + + MAX( + col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4217
SELECT + + MAX ( + col2 ) AS col2 FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL - - 1 AS col1 FROM tab2 cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4219
SELECT - col2 * + - CAST( NULL AS SIGNED ) * - + CAST( 73 AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4219
SELECT - col2 * + - CAST ( NULL AS INTEGER ) * - + CAST ( 73 AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 + + col1 col1 FROM tab2
----
100
116
126

query III rowsort
SELECT * FROM tab1 WHERE ( NULL BETWEEN 96 * + col0 AND NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + 74 - - 5 / + col0 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 71 * + col2 <= 28 + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( 32 ) FROM tab1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4225
SELECT - ( col1 ) DIV col2 * 63 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4225
SELECT - ( col1 ) / col2 * 63 FROM tab1
----
0
0
0

query I rowsort
SELECT - col1 * - 95 FROM tab2 AS cor0
----
4845
6365
7315

query I rowsort
SELECT + + 81 * col1 + col1 FROM tab0 AS cor0
----
1722
6642
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT MIN( ALL + ( + + col1 ) ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4228
SELECT MIN ( ALL + ( + + col1 ) ) AS col1 FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4229
SELECT - CAST( NULL AS SIGNED ) + + col2 * - 35 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4229
SELECT - CAST ( NULL AS INTEGER ) + + col2 * - 35 col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4230
SELECT ALL - col2 + - 23 DIV + col0 FROM tab0
----
-10
-48
-99

skipif mysql # not compatible
query I rowsort label-4230
SELECT ALL - col2 + - 23 / + col0 FROM tab0
----
-10
-48
-99

query I rowsort
SELECT + col2 + + col2 * + ( + + col0 ) AS col2 FROM tab2
----
1081
2600
4408

query I rowsort
SELECT - 52 + + + col2 * col0 AS col1 FROM tab0 AS cor0
----
653
818
9551

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4233
SELECT * FROM tab2 AS cor0 WHERE col0 + + - CAST( NULL AS SIGNED ) / + col2 IN ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-4233
SELECT * FROM tab2 AS cor0 WHERE col0 + + - CAST ( NULL AS INTEGER ) / + col2 IN ( - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * 6 > + 88 + + + 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT DISTINCT + 82 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-4235
SELECT DISTINCT + 82 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
85

query II rowsort
SELECT ALL + col2 AS col2, 18 FROM tab1
----
59
18
68
18
96
18

query I rowsort
SELECT - ( - 13 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT DISTINCT col0 + + 6 * - 99 AS col2 FROM tab1 cor0
----
-503
-509
-543

query I rowsort
SELECT DISTINCT - ( - col1 ) - - col0 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4240
SELECT ALL - - ( - 38 ) DIV + CAST( + 29 AS SIGNED ) - col2 FROM tab2 AS cor0
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL - - ( - 38 ) / + CAST ( + 29 AS INTEGER ) - col2 FROM tab2 AS cor0
----
-24
-41
-59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 37 + col0 + col1 NOT BETWEEN NULL AND - - col0 + - 6
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4242
SELECT DISTINCT - 23 DIV 89 - - - col2 - 81 + + col2 + - ( - CAST( - col0 AS SIGNED ) ) * + - ( 15 ) + col1 * + col1 * 86 FROM tab1 cor0
----
17540
191258
3344

skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT - 23 / 89 - - - col2 - 81 + + col2 + - ( - CAST ( - col0 AS INTEGER ) ) * + - ( 15 ) + col1 * + col1 * 86 FROM tab1 cor0
----
17540
191258
3344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4243
SELECT + col2 * - CAST( ( col1 ) AS SIGNED ) + col2 FROM tab0 AS cor0
----
-200
-3760
0

skipif mysql # not compatible
query I rowsort label-4243
SELECT + col2 * - CAST ( ( col1 ) AS INTEGER ) + col2 FROM tab0 AS cor0
----
-200
-3760
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4244
SELECT col2 + - col2 DIV col0 FROM tab0
----
10
44
98

skipif mysql # not compatible
query I rowsort label-4244
SELECT col2 + - col2 / col0 FROM tab0
----
10
44
98

query I rowsort
SELECT + col2 + - 29 FROM tab1
----
30
39
67

query I rowsort
SELECT col1 * - - 36 * + col0 FROM tab0
----
3492
43740
65772

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4247
SELECT DISTINCT * FROM tab2 WHERE CAST( 38 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4247
SELECT DISTINCT * FROM tab2 WHERE CAST ( 38 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4248
SELECT + CAST( NULL AS DECIMAL ), 18 * + col2 col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4248
SELECT + CAST ( NULL AS REAL ), 18 * + col2 col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - ( + col1 ) - - col2 FROM tab2 AS cor0 WHERE - col0 * + col0 * + + col1 <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4250
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab0 WHERE NOT + 34 <> NULL
----

skipif mysql # not compatible
query I rowsort label-4250
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab0 WHERE NOT + 34 <> NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NOT - ( 42 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT + MAX( - col2 ) - - 25 AS col1 FROM tab1 AS cor0 WHERE NOT col1 + + col2 IN ( - col0 * + 94 / ( + col0 ), 22, + col0 + - col0 * - 23, - col2 )
----
-34

skipif mysql # not compatible
query I rowsort label-4252
SELECT + MAX ( - col2 ) - - 25 AS col1 FROM tab1 AS cor0 WHERE NOT col1 + + col2 IN ( - col0 * + 94 / ( + col0 ), 22, + col0 + - col0 * - 23, - col2 )
----
-34

query II rowsort
SELECT DISTINCT col1, 66 AS col0 FROM tab0 AS cor0
----
1
66
21
66
81
66

query I rowsort
SELECT ALL - - ( col2 ) AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT 49 + - 67 FROM tab0 AS cor0
----
-18
-18
-18

query I rowsort
SELECT - ( - col0 ) + - col2 FROM tab2 cor0
----
17
23
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) + 72 + - + col0 col0 FROM tab0
----
-24
-26
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT ALL - COUNT( * ) + - 31 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL - COUNT ( * ) + - 31 FROM tab0
----
-34

query I rowsort
SELECT + + ( + ( 65 ) ) FROM tab0 AS cor0
----
65
65
65

query II rowsort
SELECT col0, - col0 * - ( + col0 ) AS col0 FROM tab1 AS cor0 WHERE - col0 + col2 IS NOT NULL
----
51
2601
85
7225
91
8281

query I rowsort
SELECT - col2 * - 80 + - 0 - 68 AS col2 FROM tab0 AS cor0 WHERE col1 * - col2 IS NOT NULL
----
3692
732
7852

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 56 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT ALL col2 + + + 64 AS col0 FROM tab2 AS cor0
----
104
122
87

query I rowsort
SELECT DISTINCT - + 93 + 1 * + + 9 + + col1 FROM tab1 AS cor0
----
-37
-70
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT ALL COUNT( + col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL COUNT ( + col0 ) AS col2 FROM tab2
----
3

query II rowsort
SELECT DISTINCT + col0 AS col2, 63 AS col2 FROM tab0
----
15
63
87
63
97
63

query II rowsort
SELECT ALL + col1 AS col0, 4 * + col0 + col2 FROM tab2
----
51
207
67
358
77
296

query II rowsort
SELECT ALL - 5 AS col2, col0 FROM tab1
----
-5
51
-5
85
-5
91

query I rowsort
SELECT col2 * col1 * - + col2 * - - col1 FROM tab1
----
-10214416
-1806336
-87025

query II rowsort
SELECT col1 AS col2, 37 - - + 7 FROM tab0
----
1
44
21
44
81
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT DISTINCT + MAX( - 51 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4271
SELECT DISTINCT + MAX ( - 51 ) AS col2 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT + col2 + + col2 * 58 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 16 * - col2 * col1 + + col2 col2 FROM tab1 AS cor0
----
-21408
-4661
-51068

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4274
SELECT + + 88 FROM tab1 AS cor0 WHERE NOT col1 < - CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4274
SELECT + + 88 FROM tab1 AS cor0 WHERE NOT col1 < - CAST ( - col2 AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL = + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 * 36 + + col2 col0 FROM tab2 AS cor0 WHERE + col2 >= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4277
SELECT DISTINCT CAST( MAX( ALL 54 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4277
SELECT DISTINCT CAST ( MAX ( ALL 54 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4278
SELECT DISTINCT * FROM tab1 WHERE ( - 58 ) NOT IN ( - 11 * col1, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4278
SELECT DISTINCT * FROM tab1 WHERE ( - 58 ) NOT IN ( - 11 * col1, CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + + 81 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT ( - - ( + 47 ) ) FROM tab1
----
47
47
47

query I rowsort
SELECT ALL + ( ( + + 82 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT + col2 * col1 * + col0 AS col0 FROM tab1 AS cor0
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT ALL + - SUM( DISTINCT ( + col2 ) ) col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4283
SELECT ALL + - SUM ( DISTINCT ( + col2 ) ) col1 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT ALL - 98 * - COUNT( * ) FROM tab1 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL - 98 * - COUNT ( * ) FROM tab1 AS cor0
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT ALL - + MAX( - 33 ) FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL - + MAX ( - 33 ) FROM tab1 AS cor0
----
33

query I rowsort
SELECT ALL col1 * + 53 * - 77 * + 61 AS col1 FROM tab2
----
-12695991
-16679047
-19168457

query I rowsort
SELECT DISTINCT - ( - - 94 ) + 71 + - - col2 FROM tab1
----
36
45
73

query I rowsort
SELECT - col2 + + - col2 AS col2 FROM tab0
----
-198
-20
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT DISTINCT 63 * - - COUNT( col1 ) + SUM( ALL - col1 ) * + ( + COUNT( + + 78 ) ) AS col1 FROM tab2
----
-396

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT 63 * - - COUNT ( col1 ) + SUM ( ALL - col1 ) * + ( + COUNT ( + + 78 ) ) AS col1 FROM tab2
----
-396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4290
SELECT DISTINCT + ( + 40 ) + + 40 * + 57 DIV + COUNT( * ) AS col1 FROM tab2
----
800

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT + ( + 40 ) + + 40 * + 57 / + COUNT ( * ) AS col1 FROM tab2
----
800

query I rowsort
SELECT 84 * col0 + - - col2 FROM tab0
----
1307
7318
8247

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT - - COUNT( * ) + - - COUNT( * ) AS col1 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-4292
SELECT - - COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab0 cor0
----
6

query I rowsort
SELECT - + ( col2 ) / 61 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT - 69 FROM tab2 AS cor0 WHERE col0 = - col0 + - 55
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4295
SELECT ALL CAST( NULL AS SIGNED ) / + 47 * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4295
SELECT ALL CAST ( NULL AS INTEGER ) / + 47 * col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4296
SELECT MAX( col2 ) AS col1, - COUNT( * ) FROM tab2 AS cor0
----
58
-3

skipif mysql # not compatible
query II rowsort label-4296
SELECT MAX ( col2 ) AS col1, - COUNT ( * ) FROM tab2 AS cor0
----
58
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4297
SELECT ALL - - col2 + + + 99 DIV - 75 - + col1 AS col2 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
-12
-35
97

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL - - col2 + + + 99 / - 75 - + col1 AS col2 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
-12
-35
97

query I rowsort
SELECT DISTINCT + ( + 42 ) * + col0 AS col0 FROM tab0 cor0
----
3654
4074
630

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < ( + - col1 )
----

query I rowsort
SELECT ALL col2 * + 72 AS col1 FROM tab2 AS cor0
----
1656
2880
4176

query I rowsort
SELECT - 66 * + col2 FROM tab2
----
-1518
-2640
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT DISTINCT COUNT( * ) * + ( COUNT( * ) ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT COUNT ( * ) * + ( COUNT ( * ) ) AS col0 FROM tab1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 * + + col2 col2 FROM tab1
----
4956
5712
8064

onlyif mysql # DIV for integer division: 
query I rowsort label-4304
SELECT ALL - 81 DIV - col0 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL - 81 / - col0 AS col2 FROM tab1
----
0
0
1

query II rowsort
SELECT col1, + col0 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( + col2, col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4306
SELECT - col1 * + CAST( - col2 AS SIGNED ) * - - col2 FROM tab1
----
129024
17405
217328

skipif mysql # not compatible
query I rowsort label-4306
SELECT - col1 * + CAST ( - col2 AS INTEGER ) * - - col2 FROM tab1
----
129024
17405
217328

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT ALL - COUNT( col0 ) FROM tab0 WHERE NOT ( NULL NOT IN ( - col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL - COUNT ( col0 ) FROM tab0 WHERE NOT ( NULL NOT IN ( - col2 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT DISTINCT - COUNT( - col1 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4308
SELECT DISTINCT - COUNT ( - col1 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT + 45 AS col0 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
45

query I rowsort
SELECT ALL + 15 + col0 * - col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-690
-855
-9588

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT - ( - COUNT( * ) ) + - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4311
SELECT - ( - COUNT ( * ) ) + - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT DISTINCT - ( + MIN( - col2 ) ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4312
SELECT DISTINCT - ( + MIN ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT ALL + + COUNT( - 63 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL + + COUNT ( - 63 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - ( + - col1 ) * + + col2 AS col2 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT DISTINCT + col1 * + + col2 + 96 + 14 * - + col0 + - col0 AS col1 FROM tab0
----
-1260
-999
3678

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT ALL + ( + + COUNT( * ) ) * - + 85 AS col2 FROM tab0
----
-255

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL + ( + + COUNT ( * ) ) * - + 85 AS col2 FROM tab0
----
-255

query I rowsort
SELECT DISTINCT col0 * + - col2 FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 NOT IN ( - 57 + - col2, + 73, - - col2 / - col1 * + col0 + + + col0, col0 + + - col0 - - - 52 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT - COUNT( * ) - + 0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4319
SELECT - COUNT ( * ) - + 0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - 26 + + + col1 FROM tab1 AS cor0
----
-12
-21
21

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE col0 * - col2 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 96 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL + col2 + 92 FROM tab1 WHERE NULL <= col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4324
SELECT ALL + COUNT( * ) col2, - 1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4324
SELECT ALL + COUNT ( * ) col2, - 1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4325
SELECT SUM( - + CAST( 0 AS SIGNED ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4325
SELECT SUM ( - + CAST ( 0 AS INTEGER ) ) FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 17 + col2 col0 FROM tab2 cor0 WHERE - col2 <> - + col0
----
23
41
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4327
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + + COUNT( DISTINCT - col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4327
SELECT DISTINCT - CAST ( NULL AS REAL ) * + + COUNT ( DISTINCT - col2 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT ( MAX( DISTINCT + 67 ) ) FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-4328
SELECT ( MAX ( DISTINCT + 67 ) ) FROM tab2 AS cor0
----
67

query II rowsort
SELECT ALL - - col0 AS col2, + 29 + + col2 AS col1 FROM tab2 AS cor0
----
46
52
64
69
75
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT ALL 88 * - COUNT( * ) AS col2 FROM tab1 cor0
----
-264

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL 88 * - COUNT ( * ) AS col2 FROM tab1 cor0
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT MAX( ALL col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4331
SELECT MAX ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4332
SELECT DISTINCT - col0 DIV - col1 AS col2 FROM tab0 cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-4332
SELECT DISTINCT - col0 / - col1 AS col2 FROM tab0 cor0
----
0
4
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT + COUNT( + + 11 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4333
SELECT + COUNT ( + + 11 ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4334
SELECT DISTINCT - col0 DIV + + col2 AS col0 FROM tab0
----
-8
0

skipif mysql # not compatible
query I rowsort label-4334
SELECT DISTINCT - col0 / + + col2 AS col0 FROM tab0
----
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT DISTINCT 63 * + COUNT( - 50 ) AS col1 FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT 63 * + COUNT ( - 50 ) AS col1 FROM tab1
----
189

query II rowsort
SELECT - ( - col1 ), col2 AS col1 FROM tab2
----
51
23
67
58
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) col1 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT - 49 * + - COUNT( * ) * - 63 AS col2 FROM tab1
----
-9261

skipif mysql # not compatible
query I rowsort label-4338
SELECT - 49 * + - COUNT ( * ) * - 63 AS col2 FROM tab1
----
-9261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4339
SELECT DISTINCT 60 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT 60 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT SUM( col1 ) AS col1 FROM tab1 WHERE NOT col0 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4340
SELECT SUM ( col1 ) AS col1 FROM tab1 WHERE NOT col0 BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT DISTINCT 52 * + - col2 * + col1 AS col2 FROM tab2 AS cor0
----
-160160
-202072
-60996

query I rowsort
SELECT - + 62 * - - ( + 56 ) AS col1 FROM tab1 AS cor0
----
-3472
-3472
-3472

query I rowsort
SELECT DISTINCT + 82 * 59 * - col2 FROM tab2 AS cor0
----
-111274
-193520
-280604

query I rowsort
SELECT ALL + - ( 98 ) FROM tab0 AS cor0
----
-98
-98
-98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 < - + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 55 * - col1 - - col2 = - - 53 * + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col0 * - 20 * + 83 FROM tab1 AS cor0
----
141100
151060
84660

query I rowsort
SELECT DISTINCT + col1 + + 48 FROM tab2 AS cor0
----
115
125
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4349
SELECT ALL + + MIN( ALL - col1 ) DIV + 53 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL + + MIN ( ALL - col1 ) / + 53 FROM tab1 AS cor0
----
0

query II rowsort
SELECT DISTINCT + col2 AS col1, 20 * + - 12 - - + col0 AS col1 FROM tab1 AS cor0
----
59
-155
68
-149
96
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT + + SUM( ALL col2 ) + + + COUNT( + 88 ) FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-4351
SELECT + + SUM ( ALL col2 ) + + + COUNT ( + 88 ) FROM tab0 AS cor0
----
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + + col1 + - - col1 col1 FROM tab1
----
185
79
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4353
SELECT ( - 64 ) DIV - col1 + + 28 FROM tab1
----
29
32
40

skipif mysql # not compatible
query I rowsort label-4353
SELECT ( - 64 ) / - col1 + + 28 FROM tab1
----
29
32
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4354
SELECT ALL + COUNT( * ) AS col0, CAST( - 96 AS SIGNED ) FROM tab1
----
3
-96

skipif mysql # not compatible
query II rowsort label-4354
SELECT ALL + COUNT ( * ) AS col0, CAST ( - 96 AS INTEGER ) FROM tab1
----
3
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4355
SELECT - CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4355
SELECT - CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + - - col0 FROM tab2
----
-13
-5
8

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT + COUNT( * ) * + + COUNT( * ) + - COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4358
SELECT + COUNT ( * ) * + + COUNT ( * ) + - COUNT ( * ) FROM tab0
----
6

query I rowsort
SELECT DISTINCT + - 61 - 17 AS col2 FROM tab0 AS cor0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4360
SELECT + CAST( + ( + + 60 ) AS SIGNED ) FROM tab0 AS cor0
----
60
60
60

skipif mysql # not compatible
query I rowsort label-4360
SELECT + CAST ( + ( + + 60 ) AS INTEGER ) FROM tab0 AS cor0
----
60
60
60

query II rowsort
SELECT - - 80, col1 FROM tab0 AS cor0 WHERE - col0 - col0 IS NOT NULL
----
80
1
80
21
80
81

query I rowsort
SELECT + 27 + - 45 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * - col0 NOT IN ( - 30 * + + col1, - col2 )
----

query I rowsort
SELECT - col2 / + col2 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT - - COUNT( * ) + + 93 FROM tab1 WHERE NOT NULL IS NULL
----
93

skipif mysql # not compatible
query I rowsort label-4365
SELECT - - COUNT ( * ) + + 93 FROM tab1 WHERE NOT NULL IS NULL
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4366
SELECT CAST( 10 AS SIGNED ) * col2 AS col0 FROM tab2
----
230
400
580

skipif mysql # not compatible
query I rowsort label-4366
SELECT CAST ( 10 AS INTEGER ) * col2 AS col0 FROM tab2
----
230
400
580

query II rowsort
SELECT DISTINCT - 41, col2 FROM tab2
----
-41
23
-41
40
-41
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4368
SELECT CAST( NULL AS SIGNED ) * + - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4368
SELECT CAST ( NULL AS INTEGER ) * + - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT col0 + - col1 > 64 / - ( - col1 ) - - 16
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4370
SELECT CAST( MIN( + col1 ) AS SIGNED ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4370
SELECT CAST ( MIN ( + col1 ) AS INTEGER ) AS col2 FROM tab1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4371
SELECT ALL - CAST( NULL AS SIGNED ) * + + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL - CAST ( NULL AS INTEGER ) * + + col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col0 * - - 95 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 42 * - - col2 + - 15 - col0 + + col2 AS col1 FROM tab1
----
2437
2818
4062

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + - col0 * - - col2 NOT BETWEEN NULL AND 50
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4375
SELECT DISTINCT - 9 * + + CAST( - col0 AS SIGNED ) AS col1 FROM tab0
----
135
783
873

skipif mysql # not compatible
query I rowsort label-4375
SELECT DISTINCT - 9 * + + CAST ( - col0 AS INTEGER ) AS col1 FROM tab0
----
135
783
873

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4376
SELECT ALL + - 20 * + + col2 * 91 + + CAST( - 42 AS SIGNED ) * + col0 + + 70 FROM tab0 AS cor0
----
-184184
-21784
-86100

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL + - 20 * + + col2 * 91 + + CAST ( - 42 AS INTEGER ) * + col0 + + 70 FROM tab0 AS cor0
----
-184184
-21784
-86100

onlyif mysql # DIV for integer division: 
query I rowsort label-4377
SELECT DISTINCT - 75 DIV - col1 AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4377
SELECT DISTINCT - 75 / - col1 AS col2 FROM tab2 AS cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4378
SELECT DISTINCT + + col0 DIV - 96 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4378
SELECT DISTINCT + + col0 / - 96 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + col1 FROM tab0 WHERE NULL BETWEEN col0 AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL BETWEEN NULL AND - 28
----

query I rowsort
SELECT ALL - col1 + + 2 FROM tab1
----
-12
-3
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT + - COUNT( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4382
SELECT + - COUNT ( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0 WHERE - col2 IS NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 88 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT + COUNT( * ) * - COUNT( * ) * + 84 AS col1 FROM tab1 AS cor0
----
-756

skipif mysql # not compatible
query I rowsort label-4384
SELECT + COUNT ( * ) * - COUNT ( * ) * + 84 AS col1 FROM tab1 AS cor0
----
-756

query I rowsort
SELECT ALL + col0 FROM tab0 cor0 WHERE NOT ( - col1 ) <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + + 55 >= - + 59 * + - col0 * + 56
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4387
SELECT ALL 49 + + + 68 - - col1 DIV col1 FROM tab0
----
118
118
118

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL 49 + + + 68 - - col1 / col1 FROM tab0
----
118
118
118

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( 45 IS NULL ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - col1 ) + - col2 * + - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * - col1 > + col1 + - 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT ALL + + COUNT( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4391
SELECT ALL + + COUNT ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 27 AS col1 FROM tab2 cor0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + col1 / col2 col2 FROM tab2 WHERE NOT col2 - - - 60 NOT BETWEEN + col1 AND - + col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - - col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 NOT BETWEEN NULL AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4396
SELECT + col1 DIV - col2 * + col1 - - - ( col2 ) 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-4396
SELECT + col1 / - col2 * + col1 - - - ( col2 ) col1 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 42 * + 50 * col2 + - col2 + - 59 <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4398
SELECT - col2 DIV + + col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4398
SELECT - col2 / + + col2 FROM tab2 AS cor0
----
-1
-1
-1

query II rowsort
SELECT ALL + 15 AS col1, + col2 FROM tab1 AS cor0
----
15
59
15
68
15
96

query II rowsort
SELECT ALL - col0, col1 * 34 AS col2 FROM tab0 AS cor0
----
-15
2754
-87
714
-97
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4401
SELECT ( + + CAST( NULL AS SIGNED ) ) * - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4401
SELECT ( + + CAST ( NULL AS INTEGER ) ) * - col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 14 * col2 col1 FROM tab1
----
1020
1440
885

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4403
SELECT + - col2 * + col0 AS col1, col2 AS col1 FROM tab2 cor0 WHERE NOT 68 + + + CAST( NULL AS SIGNED ) IS NOT NULL
----
-1058
23
-2560
40
-4350
58

skipif mysql # not compatible
query II rowsort label-4403
SELECT + - col2 * + col0 AS col1, col2 AS col1 FROM tab2 cor0 WHERE NOT 68 + + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-1058
23
-2560
40
-4350
58

query I rowsort
SELECT ALL - col0 + + - col1 FROM tab2
----
-141
-142
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4405
SELECT + 38 - + 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-4405
SELECT + 38 - + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT + 43 - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-4406
SELECT + 43 - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + - 56 + + col1 col1 FROM tab2 AS cor0
----
-43
-51
-64

query I rowsort
SELECT 42 AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 - + + col1 * + col0 + + col0 FROM tab2 AS cor0
----
-2254
-4800
-4875

query I rowsort
SELECT ALL - 24 + - - col2 + - col1 FROM tab1 AS cor0
----
-3
30
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT ALL + + COUNT( * ) * 42 * + 73 FROM tab0 cor0
----
9198

skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL + + COUNT ( * ) * 42 * + 73 FROM tab0 cor0
----
9198

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 50 * - + 79 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT ALL - MAX( ALL 16 ) FROM tab0 cor0
----
-16

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL - MAX ( ALL 16 ) FROM tab0 cor0
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 33 col1 FROM tab2 AS cor0
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT DISTINCT - - 74 * + COUNT( * ) * - ( 71 ) FROM tab1 AS cor0
----
-15762

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT - - 74 * + COUNT ( * ) * - ( 71 ) FROM tab1 AS cor0
----
-15762

query II rowsort
SELECT col2 + - ( - col2 ) AS col2, col0 FROM tab2 AS cor0
----
116
75
46
46
80
64

query I rowsort
SELECT ALL - 31 * - - 78 FROM tab1 AS cor0
----
-2418
-2418
-2418

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4418
SELECT ALL - 42 * 41 * CAST( - col2 AS SIGNED ), col0 AS col1 FROM tab0
----
170478
97
17220
87
80934
15

skipif mysql # not compatible
query II rowsort label-4418
SELECT ALL - 42 * 41 * CAST ( - col2 AS INTEGER ), col0 AS col1 FROM tab0
----
170478
97
17220
87
80934
15

query I rowsort
SELECT - 47 + - - 29 + + ( - - col1 ) FROM tab2
----
33
49
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4420
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - COUNT( DISTINCT + + col0 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - COUNT ( DISTINCT + + col0 ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 <= + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4422
SELECT ALL col0 DIV col2 + 89 FROM tab2
----
90
90
91

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL col0 / col2 + 89 FROM tab2
----
90
90
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT ALL + 26 + - 67 - COUNT( * ) FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL + 26 + - 67 - COUNT ( * ) FROM tab1
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-4424
SELECT ALL + ( - - COUNT( * ) ) AS col1, - COUNT( * ) FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-4424
SELECT ALL + ( - - COUNT ( * ) ) AS col1, - COUNT ( * ) FROM tab2
----
3
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4425
SELECT DISTINCT + CAST( - 72 AS SIGNED ) * MAX( ALL - col0 ) + + 47 + + COUNT( * ) FROM tab0
----
1130

skipif mysql # not compatible
query I rowsort label-4425
SELECT DISTINCT + CAST ( - 72 AS INTEGER ) * MAX ( ALL - col0 ) + + 47 + + COUNT ( * ) FROM tab0
----
1130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 WHERE NOT 32 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT DISTINCT SUM( ( + - col1 ) ) col2 FROM tab0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4427
SELECT DISTINCT SUM ( ( + - col1 ) ) col2 FROM tab0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4428
SELECT DISTINCT - - 0 FROM tab2 AS cor0 WHERE + col0 + + col1 * - + 16 IN ( CAST( NULL AS SIGNED ) * + - ( col1 ) + ( + 17 ) + + col0 - - - 46 * - 21 + - + col2 * + CAST( NULL AS SIGNED ) / - 26, 24 )
----

skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT - - 0 FROM tab2 AS cor0 WHERE + col0 + + col1 * - + 16 IN ( CAST ( NULL AS INTEGER ) * + - ( col1 ) + ( + 17 ) + + col0 - - - 46 * - 21 + - + col2 * + CAST ( NULL AS INTEGER ) / - 26, 24 )
----

query I rowsort
SELECT ALL + 19 * - + col1 AS col0 FROM tab1
----
-266
-893
-95

query II rowsort
SELECT col0 AS col2, - col0 * - 33 FROM tab1
----
51
1683
85
2805
91
3003

query I rowsort
SELECT DISTINCT 92 FROM tab1 AS cor0 WHERE NOT - col2 <= + 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT - + ( - + COUNT( DISTINCT + + col0 ) ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4432
SELECT - + ( - + COUNT ( DISTINCT + + col0 ) ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4433
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + + col2 ) * + col2 * + CAST( NULL AS SIGNED ) + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4433
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + + col2 ) * + col2 * + CAST ( NULL AS INTEGER ) + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 AS cor0 WHERE NOT - 62 <= - col2
----
97

query I rowsort
SELECT + - 26 + - 87 AS col1 FROM tab1 AS cor0
----
-113
-113
-113

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 26 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4437
SELECT + + 24 DIV 68 + + + col2 DIV 54 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4437
SELECT + + 24 / 68 + + + col2 / 54 FROM tab1 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 17 + + 33 NOT BETWEEN NULL AND + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT MAX( 14 ) FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-4439
SELECT MAX ( 14 ) FROM tab1 AS cor0
----
14

query II rowsort
SELECT 39 AS col2, col2 FROM tab2
----
39
23
39
40
39
58

query II rowsort
SELECT - col2 AS col2, - col0 + - + col1 * - col1 + + col0 FROM tab0
----
-10
441
-47
6561
-99
1

query II rowsort
SELECT 14, col0 AS col2 FROM tab1
----
14
51
14
85
14
91

query II rowsort
SELECT ALL + 82 + - + col2 AS col1, - 96 * - col2 FROM tab1
----
-14
9216
14
6528
23
5664

onlyif mysql # DIV for integer division: 
query I rowsort label-4444
SELECT ALL - col1 + 89 + + col2 DIV + col0 * + + col1 FROM tab2 WHERE NOT + col2 + + col0 IS NULL
----
12
22
38

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL - col1 + 89 + + col2 / + col0 * + + col1 FROM tab2 WHERE NOT + col2 + + col0 IS NULL
----
12
22
38

query I rowsort
SELECT DISTINCT + 25 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT - + col0 * - 38 FROM tab0 cor0
----
3306
3686
570

query I rowsort
SELECT DISTINCT 27 AS col0 FROM tab0 cor0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - col2 ) + + 62 + + col1 * col1 col2 FROM tab1 AS cor0
----
162
2203
28

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4449
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT CAST( NULL AS SIGNED ) + - CAST( - - col0 AS DECIMAL ) * + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4449
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - CAST ( - - col0 AS REAL ) * + col0 IS NULL
----

query I rowsort
SELECT + + ( - + 61 ) + - 34 FROM tab0 AS cor0
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT DISTINCT MIN( ALL + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4451
SELECT DISTINCT MIN ( ALL + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT DISTINCT - 76 + + col1 AS col0, 73 * col2 FROM tab0 AS cor0
----
-55
730
-75
7227
5
3431

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN col0 AND NULL
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4454
SELECT ALL - + 28 + + col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL - + 28 + + col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 - ( + - 84 ) FROM tab2 AS cor0
----
135
151
161

query I rowsort
SELECT ALL + col0 * col0 - - - col2 * + 83 FROM tab1 AS cor0
----
-5367
2328
2637

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT MAX( + - ( ( + col2 ) ) ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4457
SELECT MAX ( + - ( ( + col2 ) ) ) FROM tab1 cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT ALL - - MIN( ALL col2 ) - + - COUNT( * ) + COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-4458
SELECT ALL - - MIN ( ALL col2 ) - + - COUNT ( * ) + COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
68

query I rowsort
SELECT ALL - 63 * - col0 AS col2 FROM tab0 AS cor0
----
5481
6111
945

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT MAX( DISTINCT - 52 ) * + - COUNT( * ) * 87 AS col1 FROM tab0 AS cor0
----
13572

skipif mysql # not compatible
query I rowsort label-4460
SELECT MAX ( DISTINCT - 52 ) * + - COUNT ( * ) * 87 AS col1 FROM tab0 AS cor0
----
13572

query I rowsort
SELECT DISTINCT 2 * - 57 AS col2 FROM tab0 AS cor0
----
-114

query I rowsort
SELECT + + 33 - + 46 + - 33 * + 35 AS col1 FROM tab1 AS cor0
----
-1168
-1168
-1168

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT COUNT( * ) - - 44 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4463
SELECT COUNT ( * ) - - 44 FROM tab0 AS cor0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4464
SELECT ( + CAST( NULL AS SIGNED ) ) - COUNT( * ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4464
SELECT ( + CAST ( NULL AS INTEGER ) ) - COUNT ( * ) col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4465
SELECT CAST( + + 87 AS SIGNED ) AS col2, - col2 FROM tab2 WHERE NOT - col0 IN ( 75 )
----
87
-23
87
-40
87
-58

skipif mysql # not compatible
query II rowsort label-4465
SELECT CAST ( + + 87 AS INTEGER ) AS col2, - col2 FROM tab2 WHERE NOT - col0 IN ( 75 )
----
87
-23
87
-40
87
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT - 3 * - COUNT( * ) AS col1 FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN 1 AND col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4466
SELECT - 3 * - COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN 1 AND col0 )
----
0

query II rowsort
SELECT col0, - col0 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

query I rowsort
SELECT ALL - + col1 FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN NULL AND col0 - col0 / + ( col1 ) - - + col0
----

query I rowsort
SELECT ( col1 ) FROM tab2 WHERE NULL IN ( + col0 )
----

query I rowsort
SELECT DISTINCT + col2 + + col0 * + 50 AS col0 FROM tab0
----
4360
4949
797

query I rowsort
SELECT ALL col0 * col0 FROM tab0 WHERE + col2 * 85 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT COUNT( * ) * COUNT( * ) AS col1 FROM tab0 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-4472
SELECT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 WHERE NULL IS NULL
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) BETWEEN + col2 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT + MIN( 39 ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-4474
SELECT + MIN ( 39 ) FROM tab2
----
39

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 <= ( ( col2 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 + 93 / col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4477
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4477
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT DISTINCT MAX( DISTINCT col2 ) col0 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4478
SELECT DISTINCT MAX ( DISTINCT col2 ) col0 FROM tab2
----
58

query I rowsort
SELECT DISTINCT 12 * + 48 AS col1 FROM tab1
----
576

query I rowsort
SELECT DISTINCT 86 * - col0 FROM tab0
----
-1290
-7482
-8342

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4481
SELECT * FROM tab1 WHERE ( CAST( col0 AS SIGNED ) ) > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4481
SELECT * FROM tab1 WHERE ( CAST ( col0 AS INTEGER ) ) > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4482
SELECT + CAST( NULL AS SIGNED ) * - 59 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4482
SELECT + CAST ( NULL AS INTEGER ) * - 59 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4483
SELECT - COUNT( * ) FROM tab0 WHERE ( + 8 + CAST( NULL AS DECIMAL ) ) = 62
----
0

skipif mysql # not compatible
query I rowsort label-4483
SELECT - COUNT ( * ) FROM tab0 WHERE ( + 8 + CAST ( NULL AS REAL ) ) = 62
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 * - 23 + + col2 NOT IN ( col1 + + ( 10 - 50 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 20 + 8 FROM tab2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4486
SELECT - CAST( NULL AS SIGNED ) * COUNT( - col2 * 55 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4486
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( - col2 * 55 ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT + 81 + + ( COUNT( * ) ) AS col2 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-4487
SELECT + 81 + + ( COUNT ( * ) ) AS col2 FROM tab1
----
84

query I rowsort
SELECT ALL 53 * - col0 FROM tab1 WHERE + col0 * col2 - + col2 IS NOT NULL
----
-2703
-4505
-4823

query I rowsort
SELECT - col0 * 36 AS col0 FROM tab2
----
-1656
-2304
-2700

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT ALL - COUNT( * ) + 77 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL - COUNT ( * ) + 77 FROM tab1
----
74

query I rowsort
SELECT DISTINCT - 29 AS col1 FROM tab1 WHERE + 87 IS NOT NULL
----
-29

query I rowsort
SELECT DISTINCT 48 + + col0 AS col2 FROM tab2 AS cor0
----
112
123
94

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT - 72 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT DISTINCT ( MAX( ALL col2 ) ) + + COUNT( * ) FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT ( MAX ( ALL col2 ) ) + + COUNT ( * ) FROM tab0
----
102

query I rowsort
SELECT col1 - - ( + 53 ) AS col0 FROM tab0
----
134
54
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4496
SELECT COUNT( * ) - - 92 DIV COUNT( * ) AS col0 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-4496
SELECT COUNT ( * ) - - 92 / COUNT ( * ) AS col0 FROM tab0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 * - ( col1 ) col2 FROM tab2
----
2652
4556
6006

query I rowsort
SELECT ALL - col2 * col1 + - col1 AS col2 FROM tab2
----
-1224
-3157
-3953

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 * col1 IN ( - 67 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4500
SELECT DISTINCT - col0 DIV col0 + col2 * + 7 AS col1 FROM tab1 cor0
----
412
475
671

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT - col0 / col0 + col2 * + 7 AS col1 FROM tab1 cor0
----
412
475
671

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * - col2 - col2 col1 FROM tab0 AS cor0
----
-198
-220
-3854

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 + + col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( + 41 ) AND col0 / + col2 + col0
----

query I rowsort
SELECT ALL + col2 - + 97 FROM tab0 AS cor0
----
-50
-87
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 <= ( 74 + - col0 )
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE + col0 <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4506
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE + col0 <> ( NULL )
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 15 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col0 * ( - 84 * + col2 ) AS col2 FROM tab2 AS cor0
----
-215040
-365400
-88872

query I rowsort
SELECT - col0 * 5 FROM tab1 AS cor0
----
-255
-425
-455

query I rowsort
SELECT col0 * 20 * 60 FROM tab0
----
104400
116400
18000

onlyif mysql # DIV for integer division: 
query I rowsort label-4511
SELECT ALL 40 DIV col0 AS col1 FROM tab0 WHERE NOT - 76 IS NULL
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL 40 / col0 AS col1 FROM tab0 WHERE NOT - 76 IS NULL
----
0
0
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4512
SELECT DISTINCT col1 DIV - ( col0 ) FROM tab0
----
-5
0

skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT col1 / - ( col0 ) FROM tab0
----
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT DISTINCT + MIN( - - ( + 45 ) ) AS col2 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-4513
SELECT DISTINCT + MIN ( - - ( + 45 ) ) AS col2 FROM tab1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT 99 * + COUNT( * ) FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-4514
SELECT 99 * + COUNT ( * ) FROM tab2
----
297

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT IN ( - 77 - + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 97 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 col0 FROM tab0 cor0
----
35
35
35

query I rowsort
SELECT DISTINCT - 51 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-4519
SELECT ALL COUNT( * ) AS col0, + COUNT( * ) * - 72 AS col1 FROM tab1
----
3
-216

skipif mysql # not compatible
query II rowsort label-4519
SELECT ALL COUNT ( * ) AS col0, + COUNT ( * ) * - 72 AS col1 FROM tab1
----
3
-216

query I rowsort
SELECT - ( + 94 ) FROM tab0
----
-94
-94
-94

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT + COUNT( * ) AS col1 FROM tab1, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4522
SELECT + COUNT ( * ) AS col1 FROM tab1, tab0 cor0
----
9

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4524
SELECT ALL + 48 col2, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
48
NULL
48
NULL
48
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4524
SELECT ALL + 48 col2, + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
48
NULL
48
NULL
48
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IN ( 87 )
----

query I rowsort
SELECT - col0 * - col2 + - 29 + ( ( - 54 ) ) FROM tab0 AS cor0
----
622
787
9520

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * + 41 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + + col0, ( col2 ) + - 54 AS col1 FROM tab0 AS cor0
----
15
-7
87
-44
97
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4529
SELECT - - 52 + + CAST( + 98 AS SIGNED ) FROM tab2 cor0
----
150
150
150

skipif mysql # not compatible
query I rowsort label-4529
SELECT - - 52 + + CAST ( + 98 AS INTEGER ) FROM tab2 cor0
----
150
150
150

onlyif mysql # DIV for integer division: 
query II rowsort label-4530
SELECT - col1 DIV + col2 col2, col0 + - col1 FROM tab0
----
-1
-66
-2
66
0
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4530
SELECT - col1 / + col2 col2, col0 + - col1 FROM tab0
----
-1
-66
-2
66
0
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4531
SELECT DISTINCT - 64 + CAST( NULL AS DECIMAL ) - - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT - 64 + CAST ( NULL AS REAL ) - - col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 37 + - 71 + col1 FROM tab2
----
17
33
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4533
SELECT + ( 74 ), ( + MIN( DISTINCT + CAST( col1 AS SIGNED ) ) ) col0 FROM tab1
----
74
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4533
SELECT + ( 74 ), ( + MIN ( DISTINCT + CAST ( col1 AS INTEGER ) ) ) col0 FROM tab1
----
74
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT + COUNT( + + col2 ) - - + 37 AS col0 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-4534
SELECT + COUNT ( + + col2 ) - - + 37 AS col0 FROM tab2 AS cor0
----
40

query I rowsort
SELECT - col1 - + 60 FROM tab1 AS cor0
----
-107
-65
-74

query I rowsort
SELECT - col2 + 27 AS col2 FROM tab0 AS cor0
----
-20
-72
17

query I rowsort
SELECT 21 * + + col0 + col0 AS col0 FROM tab2
----
1012
1408
1650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4538
SELECT DISTINCT + ( 13 ) DIV + + 95 + COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT + ( 13 ) / + + 95 + COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT - + 53 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT ALL - 7 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT ALL + 57 * ( + - 18 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 54f6f372ea07fcb7eaf7ee09a8c1d14b

query I rowsort
SELECT + col1 + 64 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN - col2 AND + + col2 / + + col2 / col2 + + col0 * + col1
----

query I rowsort
SELECT - ( 67 ) AS col1 FROM tab1 AS cor0
----
-67
-67
-67

query I rowsort
SELECT DISTINCT - 9 AS col1 FROM tab2 AS cor0 WHERE - 67 IS NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - + col1 * - ( - col1 ) FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT ALL - - COUNT( * ) FROM tab0 cor0 WHERE NULL = 27
----
0

skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL - - COUNT ( * ) FROM tab0 cor0 WHERE NULL = 27
----
0

query I rowsort
SELECT col1 * col2 FROM tab0 WHERE NOT ( - col1 / 63 <> NULL )
----

query I rowsort
SELECT ( col0 ) AS col2 FROM tab0 WHERE NOT ( ( + col2 * 60 ) IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4550
SELECT DISTINCT CAST( NULL AS SIGNED ) * - ( 91 ) AS col2 FROM tab1 WHERE NOT ( NULL <= col0 )
----

skipif mysql # not compatible
query I rowsort label-4550
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - ( 91 ) AS col2 FROM tab1 WHERE NOT ( NULL <= col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 30 + col0 BETWEEN 68 AND + - col0 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( + col0 ) * col2 ) BETWEEN col2 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * col1 IS NOT NULL
----

query I rowsort
SELECT 13 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4555
SELECT - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) - - COUNT( DISTINCT - ( + ( col0 ) ) ) + + 12 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4555
SELECT - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) - - COUNT ( DISTINCT - ( + ( col0 ) ) ) + + 12 AS col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 col1 FROM tab0 AS cor0
----
-34
-34
-34

query I rowsort
SELECT col0 * + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 + + - 17 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4558
SELECT ( - ( - + CAST( NULL AS SIGNED ) ) ) + + - ( - - COUNT( * ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT ( - ( - + CAST ( NULL AS INTEGER ) ) ) + + - ( - - COUNT ( * ) ) FROM tab2 cor0
----
NULL

query II rowsort
SELECT ALL + col0 * - col0, - col2 AS col2 FROM tab1 cor0
----
-2601
-96
-7225
-59
-8281
-68

query I rowsort
SELECT DISTINCT - 99 * col2 * - - col1 AS col2 FROM tab1
----
-133056
-29205
-316404

query I rowsort
SELECT DISTINCT col0 - col2 + - col1 FROM tab2 WHERE NOT NULL NOT BETWEEN + col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4562
SELECT ALL + 25 * - COUNT( * ) DIV - COUNT( - 43 ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-4562
SELECT ALL + 25 * - COUNT ( * ) / - COUNT ( - 43 ) FROM tab2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT ALL - COUNT( 34 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL NOT BETWEEN NULL AND ( - col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL - COUNT ( 34 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL NOT BETWEEN NULL AND ( - col2 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT ALL MAX( DISTINCT col2 ) col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4564
SELECT ALL MAX ( DISTINCT col2 ) col0 FROM tab2 AS cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4565
SELECT ALL ( + col2 ) DIV + - col2 + col2 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-4565
SELECT ALL ( + col2 ) / + - col2 + col2 FROM tab0 AS cor0
----
46
9
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4566
SELECT ALL - + CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL - + CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL 37 + ( - + 72 ) FROM tab2
----
-35
-35
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4568
SELECT DISTINCT 55 + + CAST( - col1 AS SIGNED ) FROM tab1
----
41
50
8

skipif mysql # not compatible
query I rowsort label-4568
SELECT DISTINCT 55 + + CAST ( - col1 AS INTEGER ) FROM tab1
----
41
50
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT ALL + COUNT( * ) FROM tab1 WHERE + 61 * - - 21 / - col0 * 79 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL + COUNT ( * ) FROM tab1 WHERE + 61 * - - 21 / - col0 * 79 IS NOT NULL
----
3

query I rowsort
SELECT - ( - col2 ) + - - ( - + col2 ) FROM tab2
----
0
0
0

query II rowsort
SELECT col0 + - ( + - 58 ), - 31 AS col0 FROM tab1
----
109
-31
143
-31
149
-31

query I rowsort
SELECT 72 * - + col2 AS col0 FROM tab2 WHERE NULL NOT BETWEEN + col0 + col2 AND col2
----

query I rowsort
SELECT DISTINCT + - 92 + - col2 AS col2 FROM tab0 AS cor0
----
-102
-139
-191

onlyif mysql # DIV for integer division: 
query I rowsort label-4574
SELECT DISTINCT + col1 DIV 51 + + col2 + + col2 AS col1 FROM tab2 AS cor0
----
117
47
81

skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT + col1 / 51 + + col2 + + col2 AS col1 FROM tab2 AS cor0
----
117
47
81

query I rowsort
SELECT + ( col0 ) * + 90 FROM tab2
----
4140
5760
6750

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4576
SELECT - CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT ( - CAST( + - 29 AS SIGNED ) ) + + col0 + + - col0 + + col0 - col1 * - col2 * col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4576
SELECT - CAST ( NULL AS REAL ) FROM tab0 WHERE NOT ( - CAST ( + - 29 AS INTEGER ) ) + + col0 + + - col0 + + col0 - col1 * - col2 * col1 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 20 * + 7 + + col2 NOT IN ( 67, col0 + - col0 + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 / + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 81 AS col1 FROM tab2 cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 col0 FROM tab2 AS cor0
----
62
62
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4581
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2 WHERE NOT + col1 * + col0 NOT BETWEEN + 56 * - - 50 AND - + col2
----
0

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 WHERE NOT + col1 * + col0 NOT BETWEEN + 56 * - - 50 AND - + col2
----
0

query I rowsort
SELECT - ( - col1 ) AS col1 FROM tab0 WHERE NOT col0 <= + 74
----
1
21

query I rowsort
SELECT - 26 * + col1 AS col2 FROM tab1
----
-1222
-130
-364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, - 15 + 31 col1 FROM tab2
----
23
16
40
16
58
16

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * col0 * - - 81 * + 74 <> ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4586
SELECT ALL CAST( NULL AS DECIMAL ) AS col2 FROM tab0 WHERE NOT col1 >= NULL
----

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL CAST ( NULL AS REAL ) AS col2 FROM tab0 WHERE NOT col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT ALL MAX( ALL + col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL MAX ( ALL + col2 ) AS col2 FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4588
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4588
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( + col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT DISTINCT - COUNT( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4589
SELECT DISTINCT - COUNT ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT DISTINCT - MAX( - - 39 ) FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT - MAX ( - - 39 ) FROM tab0 AS cor0
----
-39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 60 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 36 + col1 + - col1 + - ( - 71 ) AS col2 FROM tab2 AS cor0
----
107
107
107

query II rowsort
SELECT ALL col1 AS col0, + col2 AS col0 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4594
SELECT 82 DIV + - 73 + + - 12 * + COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 cor0
----
-34

skipif mysql # not compatible
query I rowsort label-4594
SELECT 82 / + - 73 + + - 12 * + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 cor0
----
-34

query I rowsort
SELECT ALL - - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + - 24 * col2 + - 52 AS col2 FROM tab0 AS cor0
----
-1180
-2428
-292

query I rowsort
SELECT ALL - 52 + - 69 AS col0 FROM tab1 AS cor0
----
-121
-121
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 26 col1 FROM tab0 AS cor0
----
-26
-26
-26

query II rowsort
SELECT + + col0 AS col1, - col1 * col2 AS col0 FROM tab0 AS cor0
----
15
-3807
87
-210
97
-99

query II rowsort
SELECT DISTINCT + col1, 54 + col0 + + col1 * - col1 FROM tab2 AS cor0
----
51
-2501
67
-4360
77
-5811

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT + COUNT( ALL - - col0 ) * COUNT( ALL - col1 ) - 9 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4601
SELECT + COUNT ( ALL - - col0 ) * COUNT ( ALL - col1 ) - 9 FROM tab2 cor0
----
0

query II rowsort
SELECT + 54 AS col0, 57 AS col1 FROM tab1 AS cor0
----
54
57
54
57
54
57

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----

query II rowsort
SELECT 13 * - + 28 AS col0, + 24 * - + 62 FROM tab1
----
-364
-1488
-364
-1488
-364
-1488

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4605
SELECT ALL * FROM tab0 WHERE ( NOT NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL )
----

skipif mysql # not compatible
query III rowsort label-4605
SELECT ALL * FROM tab0 WHERE ( NOT NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4606
SELECT col2 DIV + - 87 * + col1 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4606
SELECT col2 / + - 87 * + col1 AS col1 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4607
SELECT ALL 46 + 7 + 62, - COUNT( * ) AS col0 FROM tab2
----
115
-3

skipif mysql # not compatible
query II rowsort label-4607
SELECT ALL 46 + 7 + 62, - COUNT ( * ) AS col0 FROM tab2
----
115
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4608
SELECT * FROM tab2 WHERE col0 NOT IN ( + - col1, - col1 * col1, col2 * + - CAST( NULL AS SIGNED ) * + - 4, - col2 - + + 97 + CAST( + col2 AS SIGNED ) + col1 )
----

skipif mysql # not compatible
query III rowsort label-4608
SELECT * FROM tab2 WHERE col0 NOT IN ( + - col1, - col1 * col1, col2 * + - CAST ( NULL AS INTEGER ) * + - 4, - col2 - + + 97 + CAST ( + col2 AS INTEGER ) + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4609
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) AS col2, - 93 - COUNT( * ) FROM tab0
----
6
-96

skipif mysql # not compatible
query II rowsort label-4609
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) AS col2, - 93 - COUNT ( * ) FROM tab0
----
6
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4610
SELECT * FROM tab1 WHERE - CAST( + + col0 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4610
SELECT * FROM tab1 WHERE - CAST ( + + col0 AS REAL ) IS NULL
----

query I rowsort
SELECT 74 AS col0 FROM tab0 WHERE + + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 32 <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4613
SELECT DISTINCT col2 - + col2 AS col1, CAST( NULL AS DECIMAL ) * - + col1 AS col2 FROM tab2 AS cor0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4613
SELECT DISTINCT col2 - + col2 AS col1, CAST ( NULL AS REAL ) * - + col1 AS col2 FROM tab2 AS cor0
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT MAX( DISTINCT col1 ) + - 87 FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-4614
SELECT MAX ( DISTINCT col1 ) + - 87 FROM tab1 AS cor0
----
-40

query I rowsort
SELECT - col2 + 89 AS col2 FROM tab1 cor0
----
-7
21
30

onlyif mysql # DIV for integer division: 
query II rowsort label-4616
SELECT + col1 DIV - col0 + col2 AS col2, + col1 FROM tab2 AS cor0
----
22
51
39
77
58
67

skipif mysql # not compatible
query II rowsort label-4616
SELECT + col1 / - col0 + col2 AS col2, + col1 FROM tab2 AS cor0
----
22
51
39
77
58
67

query I rowsort
SELECT DISTINCT - ( - 82 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4618
SELECT + CAST( NULL AS SIGNED ) * - + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4618
SELECT + CAST ( NULL AS INTEGER ) * - + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col2 ) + ( + col0 ) BETWEEN NULL AND - col1 * + col1 * - 81
----

query II rowsort
SELECT + + 85, + col0 AS col0 FROM tab1 AS cor0
----
85
51
85
85
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT DISTINCT + + COUNT( DISTINCT - - 5 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4621
SELECT DISTINCT + + COUNT ( DISTINCT - - 5 ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL <> + col1 * col1 + col0 + + 3 + - + col1 + - col2 * + 37 )
----

query II rowsort
SELECT + col0 AS col0, + col2 AS col0 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4624
SELECT + - COUNT( * ) DIV - ( - + 33 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4624
SELECT + - COUNT ( * ) / - ( - + 33 ) FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4625
SELECT ALL - CAST( - 88 AS SIGNED ) AS col0 FROM tab0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-4625
SELECT ALL - CAST ( - 88 AS INTEGER ) AS col0 FROM tab0
----
88
88
88

query I rowsort
SELECT DISTINCT 56 + 92 FROM tab1
----
148

query I rowsort
SELECT DISTINCT + + 33 + + + col2 FROM tab0 AS cor0
----
132
43
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4628
SELECT - 89 / col0 + + col0 + - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4628
SELECT - 89 / col0 + + col0 + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT ALL + 25 + - + COUNT( * ) AS col2 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL + 25 + - + COUNT ( * ) AS col2 FROM tab1
----
22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4630
SELECT + COUNT( * ) * - - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4630
SELECT + COUNT ( * ) * - - CAST ( NULL AS REAL ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4631
SELECT - CAST( + - col2 AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4631
SELECT - CAST ( + - col2 AS INTEGER ) FROM tab0
----
10
47
99

query I rowsort
SELECT ALL 5 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query II rowsort
SELECT + 43 AS col1, 82 FROM tab2
----
43
82
43
82
43
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4634
SELECT DISTINCT - COUNT( * ) + - - 33 * + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT DISTINCT - COUNT ( * ) + - - 33 * + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4635
SELECT DISTINCT - CAST( + 68 AS SIGNED ) FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT - CAST ( + 68 AS INTEGER ) FROM tab0 AS cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT ALL - - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL - - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4637
SELECT ALL - - CAST( NULL AS SIGNED ) + 44 - - 15 + - 19 * - + 89 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4637
SELECT ALL - - CAST ( NULL AS INTEGER ) + 44 - - 15 + - 19 * - + 89 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - + col0 ) - - col0 - - ( - - 58 ) FROM tab2 AS cor0
----
150
186
208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + col0 col2 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT ALL - col0 * + col1 + + 83 FROM tab0 AS cor0
----
-1132
-14
-1744

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col1 AND 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT SUM( col0 ) + + COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 cor0
----
176

skipif mysql # not compatible
query I rowsort label-4642
SELECT SUM ( col0 ) + + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 cor0
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT ALL + 37 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL + 37 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
111

query I rowsort
SELECT 55 * col1 + + ( - 34 ) FROM tab1
----
241
2551
736

query I rowsort
SELECT col1 + - 58 FROM tab0
----
-37
-57
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4646
SELECT DISTINCT - col0 DIV + col2 AS col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT - col0 / + col2 AS col2 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT DISTINCT 47 + COUNT( * ) FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-4647
SELECT DISTINCT 47 + COUNT ( * ) FROM tab0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT + COUNT( * ) * - - 58 AS col2 FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-4648
SELECT + COUNT ( * ) * - - 58 AS col2 FROM tab0
----
174

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - ( + 50 ) * + col1 - - - 42 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4650
SELECT DISTINCT + col0 - - 2 DIV + col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT + col0 - - 2 / + col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT + ( - + col2 ) * + col2 AS col2 FROM tab1 cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query II rowsort label-4652
SELECT + COUNT( * ) AS col0, 44 AS col1 FROM tab0 AS cor0
----
3
44

skipif mysql # not compatible
query II rowsort label-4652
SELECT + COUNT ( * ) AS col0, 44 AS col1 FROM tab0 AS cor0
----
3
44

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE 14 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT ALL - COUNT( * ) col1 FROM tab0 WHERE NOT col2 + - col2 * + + 49 * col0 / - + 12 = col1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4654
SELECT ALL - COUNT ( * ) col1 FROM tab0 WHERE NOT col2 + - col2 * + + 49 * col0 / - + 12 = col1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 33 col1 FROM tab0 WHERE NOT - col0 IS NULL
----
33
33
33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4656
SELECT ALL - col2 DIV - CAST( + 82 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL - col2 / - CAST ( + 82 AS INTEGER ) FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - 41 * - 68 AS col1 FROM tab2 cor0
----
2788

query II rowsort
SELECT DISTINCT - col0 * - 19 AS col0, 32 FROM tab1 AS cor0
----
1615
32
1729
32
969
32

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT col0 + + 99 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT ALL 91 * + - COUNT( DISTINCT + + 34 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL 91 * + - COUNT ( DISTINCT + + 34 ) AS col0 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT + 67 * col0 AS col2 FROM tab0 cor0
----
1005
5829
6499

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4662
SELECT DISTINCT 48 AS col0, COUNT( * ) - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
48
NULL

skipif mysql # not compatible
query II rowsort label-4662
SELECT DISTINCT 48 AS col0, COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
48
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 76 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT DISTINCT SUM( ALL + + 65 ) FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-4664
SELECT DISTINCT SUM ( ALL + + 65 ) FROM tab1
----
195

query II rowsort
SELECT DISTINCT 82, 80 AS col1 FROM tab0
----
82
80

query I rowsort
SELECT DISTINCT col1 * + - 55 AS col1 FROM tab1 AS cor0
----
-2585
-275
-770

query I rowsort
SELECT + col0 * - ( ( - col1 ) ) * 50 + + 11 FROM tab2
----
117311
246411
251261

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT ALL 39 + - COUNT( * ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL 39 + - COUNT ( * ) FROM tab2
----
36

query I rowsort
SELECT DISTINCT + col2 - - 69 FROM tab1 AS cor0
----
128
137
165

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4671
SELECT DISTINCT + 28 + - CAST( - 80 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-4671
SELECT DISTINCT + 28 + - CAST ( - 80 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
108

query I rowsort
SELECT - col1 + - 3 FROM tab0 AS cor0 WHERE + ( + col1 ) NOT BETWEEN + col0 AND ( col1 )
----
-24
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT + COUNT( DISTINCT + 62 ) AS col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4673
SELECT + COUNT ( DISTINCT + 62 ) AS col1 FROM tab0 cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) > + + col1
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 > + 88
----
97
1
99

query I rowsort
SELECT ALL ( 13 ) AS col1 FROM tab0
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT DISTINCT 39 + - - COUNT( * ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-4677
SELECT DISTINCT 39 + - - COUNT ( * ) FROM tab1
----
42

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 NOT BETWEEN - col1 AND + col1 * - col0 + col2 * - 2 + + + 50
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 26 * + 40 FROM tab0
----
-1040
-1040
-1040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 * + ( + + 78 ) col0 FROM tab2 AS cor0
----
-5304
-5304
-5304

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT DISTINCT - + COUNT( * ) * - 74 FROM tab1 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT - + COUNT ( * ) * - 74 FROM tab1 AS cor0
----
222

query I rowsort
SELECT DISTINCT 38 * - col2 + + col2 - 52 AS col2 FROM tab1 AS cor0
----
-2235
-2568
-3604

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 * - + col2 col1 FROM tab0 AS cor0
----
4465
9405
950

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN 98 AND NULL
----

query I rowsort
SELECT ALL + col2 * + col2 * - col2 FROM tab0 AS cor0
----
-1000
-103823
-970299

query I rowsort
SELECT - col0 FROM tab0 cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4687
SELECT ALL - col2 * - CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL - col2 * - CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # DIV for integer division: 
query I rowsort label-4688
SELECT col1 DIV + col1 + + 25 + + col2 + col1 AS col0 FROM tab0 AS cor0
----
126
154
57

skipif mysql # not compatible
query I rowsort label-4688
SELECT col1 / + col1 + + 25 + + col2 + col1 AS col0 FROM tab0 AS cor0
----
126
154
57

query I rowsort
SELECT + 37 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 3 OR NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4690
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + CAST( col2 AS SIGNED ) * col0 + - - 15 + - col1 )
----

skipif mysql # not compatible
query III rowsort label-4690
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + CAST ( col2 AS INTEGER ) * col0 + - - 15 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT ALL - MAX( DISTINCT + + col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL - MAX ( DISTINCT + + col2 ) AS col0 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 / col1 NOT IN ( + + col2 + 49, ( - - 79 ), - + col2 + + 86 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT - MIN( ALL - + 42 ) FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-4693
SELECT - MIN ( ALL - + 42 ) FROM tab0
----
42

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) IS NULL AND NOT 13 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) + + + col0 * - col1 col1 FROM tab1
----
-430
-4324
-728

query I rowsort
SELECT DISTINCT col0 * + + col2 AS col2 FROM tab2
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query II rowsort label-4697
SELECT - - 44 + col0 * + 82 AS col1, + ( - 62 ) DIV + col1 AS col1 FROM tab2 AS cor0
----
3816
-1
5292
0
6194
0

skipif mysql # not compatible
query II rowsort label-4697
SELECT - - 44 + col0 * + 82 AS col1, + ( - 62 ) / + col1 AS col1 FROM tab2 AS cor0
----
3816
-1
5292
0
6194
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4698
SELECT - col1 + 21 DIV + col2 AS col1 FROM tab0 AS cor0
----
-1
-19
-81

skipif mysql # not compatible
query I rowsort label-4698
SELECT - col1 + 21 / + col2 AS col1 FROM tab0 AS cor0
----
-1
-19
-81

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IN ( + + 97, + 98 ) )
----

query I rowsort
SELECT ALL - 0 AS col0 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT ALL - col0 + - 70 * + col2 AS col1, + col2 AS col0 FROM tab2
----
-1656
23
-2864
40
-4135
58

query II rowsort
SELECT + col0 AS col2, 95 + - - col2 AS col2 FROM tab2
----
46
118
64
135
75
153

query I rowsort
SELECT 28 - col1 FROM tab0
----
-53
27
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT ALL - - COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL - - COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 * + col2 IS NULL
----

query I rowsort
SELECT + ( col1 ) * - - col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
441
6561

query I rowsort
SELECT ALL + + col1 - - + col0 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT - 36 + - 22 * - + col0 + + col1 + + 13 * + col2 AS col2 FROM tab0
----
2029
3386
986

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + ( - col2 ) col0 FROM tab2
----
-1600
-3364
-529

query II rowsort
SELECT 66 * - 65 AS col1, 23 AS col2 FROM tab2
----
-4290
23
-4290
23
-4290
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4711
SELECT - 34 * + col2 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4711
SELECT - 34 * + col2 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - 3 ) AS col2 FROM tab2 AS cor0
----
-3
-3
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + 76 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT DISTINCT + MAX( ALL + col0 ) AS col2 FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-4714
SELECT DISTINCT + MAX ( ALL + col0 ) AS col2 FROM tab0 cor0
----
97

query I rowsort
SELECT - 68 * - 26 FROM tab1
----
1768
1768
1768

query I rowsort
SELECT ALL - - col2 * + 74 AS col1 FROM tab2 AS cor0
----
1702
2960
4292

query I rowsort
SELECT - - col1 + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-2550
-4422
-5852

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4718
SELECT ALL + 28 DIV COUNT( * ) * 93 FROM tab0 AS cor0
----
837

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL + 28 / COUNT ( * ) * 93 FROM tab0 AS cor0
----
837

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4719
SELECT DISTINCT - 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-4719
SELECT DISTINCT - col2, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

query II rowsort
SELECT - col2 AS col0, 65 AS col1 FROM tab2
----
-23
65
-40
65
-58
65

query I rowsort
SELECT col2 * + ( ( col1 ) ) FROM tab0
----
210
3807
99

query I rowsort
SELECT ALL 42 + + + 90 FROM tab0
----
132
132
132

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT DISTINCT + ( + ( + + MAX( ALL - col2 ) ) ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4723
SELECT DISTINCT + ( + ( + + MAX ( ALL - col2 ) ) ) AS col2 FROM tab0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4724
SELECT DISTINCT + ( + + col1 ) + + CAST( NULL AS SIGNED ) * - ( + col1 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4724
SELECT DISTINCT + ( + + col1 ) + + CAST ( NULL AS INTEGER ) * - ( + col1 ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT DISTINCT + MAX( DISTINCT - 96 ) + - 19 AS col2 FROM tab1 WHERE NOT + - 43 BETWEEN - - 55 AND ( col2 )
----
-115

skipif mysql # not compatible
query I rowsort label-4725
SELECT DISTINCT + MAX ( DISTINCT - 96 ) + - 19 AS col2 FROM tab1 WHERE NOT + - 43 BETWEEN - - 55 AND ( col2 )
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT DISTINCT 27 + - - MIN( + col2 ) AS col2 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT 27 + - - MIN ( + col2 ) AS col2 FROM tab2
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-4727
SELECT DISTINCT 22 + - + 33 + - + COUNT( * ) AS col2, COUNT( * ) col0 FROM tab0 WHERE 78 IS NULL
----
-11
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4727
SELECT DISTINCT 22 + - + 33 + - + COUNT ( * ) AS col2, COUNT ( * ) col0 FROM tab0 WHERE 78 IS NULL
----
-11
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT ALL - ( - 69 ) - COUNT( * ) col0 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4728
SELECT ALL - ( - 69 ) - COUNT ( * ) col0 FROM tab2 AS cor0
----
66

query II rowsort
SELECT DISTINCT + 39, + col2 AS col1 FROM tab1 AS cor0
----
39
59
39
68
39
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4730
SELECT COUNT( * ) AS col1, COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4730
SELECT COUNT ( * ) AS col1, COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 BETWEEN 99 - 1 AND ( NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 69 - - - col0 FROM tab2 AS cor0
----
-6
23
5

query I rowsort
SELECT DISTINCT col0 * - col2 AS col0 FROM tab0 AS cor0 WHERE - col1 * - + col1 IS NOT NULL
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT - 71 * - 37 - + col1 + - + col2 AS col2 FROM tab1 AS cor0
----
2512
2517
2563

query I rowsort
SELECT ALL col2 * 48 + col0 FROM tab0 AS cor0
----
2271
4849
567

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN col1 * + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT ALL - ( MAX( col2 ) ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL - ( MAX ( col2 ) ) AS col1 FROM tab2
----
-58

query II rowsort
SELECT DISTINCT + + col0, + col0 * - col0 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT col2 + col2 NOT BETWEEN NULL AND - - 77
----

query I rowsort
SELECT ( - - 63 ) * + col1 FROM tab0
----
1323
5103
63

query II rowsort
SELECT DISTINCT - 94, ( + 5 ) AS col0 FROM tab0
----
-94
5

query I rowsort
SELECT col1 * + col0 + ( + col1 ) * col1 * col0 * col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
125800
13673569
960330

query II rowsort
SELECT DISTINCT + - col2 AS col2, - col0 * col0 FROM tab0 AS cor0
----
-10
-7569
-47
-225
-99
-9409

onlyif mysql # aggregate syntax: 
query II rowsort label-4745
SELECT ALL - COUNT( * ) AS col0, - 33 FROM tab2 AS cor0
----
-3
-33

skipif mysql # not compatible
query II rowsort label-4745
SELECT ALL - COUNT ( * ) AS col0, - 33 FROM tab2 AS cor0
----
-3
-33

query I rowsort
SELECT 81 * col1 AS col2 FROM tab1
----
1134
3807
405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 * 97 col2 FROM tab1 AS cor0
----
1746
1746
1746

onlyif mysql # DIV for integer division: 
query I rowsort label-4748
SELECT ALL + ( 15 ) DIV - 11 + + + col0 + col0 FROM tab2 AS cor0
----
127
149
91

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL + ( 15 ) / - 11 + + + col0 + col0 FROM tab2 AS cor0
----
127
149
91

query I rowsort
SELECT + col2 + + - col2 + - - 96 FROM tab1
----
96
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4750
SELECT ALL CAST( NULL AS SIGNED ) * - + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL CAST ( NULL AS INTEGER ) * - + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4751
SELECT DISTINCT 95 * - CAST( NULL AS SIGNED ) + 56 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4751
SELECT DISTINCT 95 * - CAST ( NULL AS INTEGER ) + 56 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > + + col0 * - ( ( 0 ) )
----

query I rowsort
SELECT + col0 + + 21 AS col1 FROM tab2
----
67
85
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT COUNT( * ) + - ( + 32 ) AS col0 FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-4754
SELECT COUNT ( * ) + - ( + 32 ) AS col0 FROM tab1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT ALL COUNT( - - col2 ) * - + 97 + + 32 AS col0 FROM tab2
----
-259

skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL COUNT ( - - col2 ) * - + 97 + + 32 AS col0 FROM tab2
----
-259

query I rowsort
SELECT - col2 + + + col2 + col1 + - col0 AS col2 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT 9 * - MIN( ALL col2 ) + 23 AS col1 FROM tab1
----
-508

skipif mysql # not compatible
query I rowsort label-4757
SELECT 9 * - MIN ( ALL col2 ) + 23 AS col1 FROM tab1
----
-508

query I rowsort
SELECT DISTINCT + ( - + col0 ) * - col1 + + col1 FROM tab1 AS cor0
----
430
4324
728

query III rowsort
SELECT * FROM tab2 WHERE - + col2 NOT BETWEEN NULL AND + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4760
SELECT ALL - col0, + 16 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-4760
SELECT ALL - col0, + 16 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

query I rowsort
SELECT ALL - ( - col1 ) AS col1 FROM tab2 cor0
----
51
67
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 58 * + - col1 * + - col0 + - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 91, - col2 col1 FROM tab2 AS cor0
----
91
-23
91
-40
91
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4764
SELECT ALL + + 54 DIV - - 2 + - + 96 col1 FROM tab1 AS cor0
----
-69
-69
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4764
SELECT ALL + + 54 / - - 2 + - + 96 col1 FROM tab1 AS cor0
----
-69
-69
-69

query I rowsort
SELECT ( - + ( - 24 ) ) FROM tab1
----
24
24
24

query I rowsort
SELECT 33 * - - col1 FROM tab2
----
1683
2211
2541

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4767
SELECT CAST( - - 93 AS SIGNED ) * 73 DIV + + col0 FROM tab1
----
133
74
79

skipif mysql # not compatible
query I rowsort label-4767
SELECT CAST ( - - 93 AS INTEGER ) * 73 / + + col0 FROM tab1
----
133
74
79

query I rowsort
SELECT 74 * 64 FROM tab2
----
4736
4736
4736

onlyif mysql # DIV for integer division: 
query II rowsort label-4769
SELECT DISTINCT col1 DIV - 85, col2 FROM tab1
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-4769
SELECT DISTINCT col1 / - 85, col2 FROM tab1
----
0
59
0
68
0
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * + 92 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4771
SELECT DISTINCT - 68 * + col1 * + col1 DIV + col1 AS col0 FROM tab0 cor0
----
-1428
-5508
-68

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT - 68 * + col1 * + col1 / + col1 AS col0 FROM tab0 cor0
----
-1428
-5508
-68

query I rowsort
SELECT ALL ( - + 38 ) FROM tab2
----
-38
-38
-38

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE + 12 + + + 93 IS NULL
----

query I rowsort
SELECT col1 FROM tab1 WHERE - ( - col0 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL OR - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 / - 18 FROM tab0 AS cor0 WHERE ( NULL ) >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT ALL - + SUM( - col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL - + SUM ( - col1 ) AS col0 FROM tab0 AS cor0
----
103

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + + 24 * col1 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4779
SELECT - - SUM( DISTINCT - col2 ) DIV - 50 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4779
SELECT - - SUM ( DISTINCT - col2 ) / - 50 FROM tab1 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT MAX( + 18 ) AS col1 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4780
SELECT MAX ( + 18 ) AS col1 FROM tab1 AS cor0
----
18

query I rowsort
SELECT 76 * col0 AS col2 FROM tab0 AS cor0
----
1140
6612
7372

query I rowsort
SELECT ALL - col0 + + 34 FROM tab1
----
-17
-51
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT DISTINCT MAX( + 56 ) AS col1 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT MAX ( + 56 ) AS col1 FROM tab2
----
56

query I rowsort
SELECT + + col0 + + + 49 FROM tab2 AS cor0
----
113
124
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4785
SELECT ALL - 5 * + col1 * + - col2 + + CAST( NULL AS SIGNED ), 55 * 91 AS col1 FROM tab1 AS cor0
----
NULL
5005
NULL
5005
NULL
5005

skipif mysql # not compatible
query II rowsort label-4785
SELECT ALL - 5 * + col1 * + - col2 + + CAST ( NULL AS INTEGER ), 55 * 91 AS col1 FROM tab1 AS cor0
----
NULL
5005
NULL
5005
NULL
5005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 63 - - col2 col2 FROM tab0
----
125
160
259

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 49 FROM tab0 WHERE NOT + + col1 <> + col1
----
-49
-49
-49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 55 * - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 7 col1, col1 * + col1 AS col1 FROM tab0 AS cor0
----
7
1
7
441
7
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT DISTINCT + COUNT( * ) * - ( + MAX( DISTINCT - 99 ) ) AS col0 FROM tab2 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT + COUNT ( * ) * - ( + MAX ( DISTINCT - 99 ) ) AS col0 FROM tab2 AS cor0
----
297

query I rowsort
SELECT ALL - + col1 * col0 + - - col0 * + - col2 FROM tab1 AS cor0
----
-10465
-5440
-5610

query I rowsort
SELECT ALL 84 * + + col0 FROM tab2 AS cor0
----
3864
5376
6300

query I rowsort
SELECT ALL 91 * col1 - - + col2 FROM tab1 AS cor0
----
1370
4345
514

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 22 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4796
SELECT - - col1 / + + CAST( NULL AS SIGNED ) + col1 + - col0 * + 74 col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4796
SELECT - - col1 / + + CAST ( NULL AS INTEGER ) + col1 + - col0 * + 74 col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + ( - 16 ) * + col2 + - col1 + col2 * + ( + col0 ) FROM tab1
----
3346
4066
5053

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4798
SELECT CAST( NULL AS SIGNED ) * + - COUNT( - col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4798
SELECT CAST ( NULL AS INTEGER ) * + - COUNT ( - col1 ) FROM tab1
----
NULL

query I rowsort
SELECT ALL 37 * + - col0 FROM tab2
----
-1702
-2368
-2775

query I rowsort
SELECT 43 * + 30 * col0 AS col2 FROM tab2
----
59340
82560
96750

query I rowsort
SELECT col0 * + 76 AS col0 FROM tab2
----
3496
4864
5700

onlyif mysql # DIV for integer division: 
query II rowsort label-4802
SELECT DISTINCT 53, 48 DIV col1 AS col0 FROM tab1 AS cor0
----
53
1
53
3
53
9

skipif mysql # not compatible
query II rowsort label-4802
SELECT DISTINCT 53, 48 / col1 AS col0 FROM tab1 AS cor0
----
53
1
53
3
53
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT - + ( COUNT( * ) ) + MAX( + col0 ) + + - COUNT( * ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4803
SELECT - + ( COUNT ( * ) ) + MAX ( + col0 ) + + - COUNT ( * ) FROM tab2 AS cor0
----
69

query I rowsort
SELECT DISTINCT + col2 * col0 + + + 77 + 57 + + col2 + + col2 AS col0 FROM tab2
----
1238
2774
4600

query III rowsort
SELECT * FROM tab1 WHERE - 3 <= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT + COUNT( * ) * - COUNT( * ) FROM tab1 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4806
SELECT + COUNT ( * ) * - COUNT ( * ) FROM tab1 WHERE NULL > NULL
----
0

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE NULL IS NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - col0 * - 31 + + col2 + + + col0 - + col1 + col0 AS col0 FROM tab0 AS cor0
----
2860
3299
461

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4809
SELECT - SUM( + - CAST( col1 AS SIGNED ) ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4809
SELECT - SUM ( + - CAST ( col1 AS INTEGER ) ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT col1 * + 65 * + col0 + col2 AS col1 FROM tab0 AS cor0
----
118765
6404
79022

query I rowsort
SELECT DISTINCT col2 + + 74 AS col0 FROM tab1 AS cor0
----
133
142
170

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( - - 58 / + col1 IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( - - 58 / + col1 IS NULL )
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * col0 * col1 IS NOT NULL
----

query I rowsort
SELECT ALL ( - col2 ) * col1 + - + col0 + - + col0 FROM tab1
----
-1446
-3378
-465

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT - MIN( col1 ) * 65 + + 88 AS col2 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-4815
SELECT - MIN ( col1 ) * 65 + + 88 AS col2 FROM tab0
----
23

query I rowsort
SELECT ALL 46 AS col2 FROM tab0 WHERE 68 + + - 2 * - + col0 + + col0 IS NULL
----

query I rowsort
SELECT col2 * + col2 + - col2 AS col0 FROM tab1
----
3422
4556
9120

query I rowsort
SELECT 16 + - ( - 9 ) + + - 86 * + col0 FROM tab1
----
-4361
-7285
-7801

onlyif mysql # DIV for integer division: 
query I rowsort label-4819
SELECT + col0 DIV - 61 + - col1 - + col1 * + + col2 * - col0 + + col1 AS col1 FROM tab0
----
18269
57105
9602

skipif mysql # not compatible
query I rowsort label-4819
SELECT + col0 / - 61 + - col1 - + col1 * + + col2 * - col0 + + col1 AS col1 FROM tab0
----
18269
57105
9602

query I rowsort
SELECT col0 + - + 71 FROM tab2
----
-25
-7
4

query II rowsort
SELECT ALL 77 + + - ( - col0 ), + col0 AS col1 FROM tab2
----
123
46
141
64
152
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) - + col0 col0 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT DISTINCT + 61 - - - 42 * - 30 FROM tab0
----
1321

query I rowsort
SELECT ALL - ( - col2 ) - - ( + 82 ) * + + ( - 69 ) FROM tab1 AS cor0
----
-5562
-5590
-5599

query I rowsort
SELECT + col0 - 90 - 83 FROM tab2 AS cor0
----
-109
-127
-98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 70 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 61 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT - + 39 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT ALL - - col2 + + 2 FROM tab1 WHERE NOT ( - col0 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4830
SELECT DISTINCT - 78 DIV - - col0 - col2 * - - col2 col1, 46 FROM tab2 cor0
----
-1601
46
-3365
46
-530
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4830
SELECT DISTINCT - 78 / - - col0 - col2 * - - col2 col1, 46 FROM tab2 cor0
----
-1601
46
-3365
46
-530
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4831
SELECT COUNT( * ) DIV MAX( ALL - col1 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4831
SELECT COUNT ( * ) / MAX ( ALL - col1 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT - + ( - COUNT( * ) ) col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4832
SELECT - + ( - COUNT ( * ) ) col0 FROM tab2 cor0
----
3

query II rowsort
SELECT ALL col0, + col0 AS col0 FROM tab2
----
46
46
64
64
75
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN + + col0 AND + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - + 6 ) * - col2 * + 17 * 83 >= + 13 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 * - 27 FROM tab1
----
1377
2295
2457

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 72 col2 FROM tab1
----
119
77
86

query I rowsort
SELECT + col2 * - - col0 AS col1 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT DISTINCT ( + + 0 ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4840
SELECT ALL + ( col2 ) AS col0 FROM tab0 AS cor0 WHERE - 57 <= - - 40 * - - CAST( NULL AS SIGNED ) + - - col2
----

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL + ( col2 ) AS col0 FROM tab0 AS cor0 WHERE - 57 <= - - 40 * - - CAST ( NULL AS INTEGER ) + - - col2
----

query I rowsort
SELECT DISTINCT - col0 + + + 22 FROM tab1 cor0
----
-29
-63
-69

query I rowsort
SELECT + col2 * - col0 - - col0 FROM tab2 AS cor0
----
-1012
-2496
-4275

query I rowsort
SELECT DISTINCT col0 / - 41 - + 55 * + col1 FROM tab1 AS cor0 WHERE + col1 < + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 * - + 71 * - 84 col2 FROM tab2 cor0
----
220668
220668
220668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4845
SELECT + 94 - - - col1 / - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4845
SELECT + 94 - - - col1 / - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4846
SELECT DISTINCT 54 DIV col0 + + - ( + 33 ) AS col2 FROM tab0
----
-30
-33

skipif mysql # not compatible
query I rowsort label-4846
SELECT DISTINCT 54 / col0 + + - ( + 33 ) AS col2 FROM tab0
----
-30
-33

query I rowsort
SELECT DISTINCT + - ( + 4 ) FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
-4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 16 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT DISTINCT SUM( DISTINCT - - col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT SUM ( DISTINCT - - col0 ) AS col1 FROM tab1
----
227

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT ( + col1 ) * + col1 * + ( + - col2 ) FROM tab2
----
-237160
-260362
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT ALL - SUM( - - 90 ) col0 FROM tab2 AS cor0
----
-270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4852
SELECT ALL - SUM ( - - 90 ) col0 FROM tab2 AS cor0
----
-270

query II rowsort
SELECT DISTINCT + col1 AS col1, 3 * col2 FROM tab1 AS cor0
----
14
288
47
204
5
177

query I rowsort
SELECT ALL - 60 * + col0 AS col0 FROM tab1 AS cor0
----
-3060
-5100
-5460

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4855
SELECT + - 24 AS col1, + CAST( + ( - col2 ) AS SIGNED ) + + col2 AS col0 FROM tab0 cor0
----
-24
0
-24
0
-24
0

skipif mysql # not compatible
query II rowsort label-4855
SELECT + - 24 AS col1, + CAST ( + ( - col2 ) AS INTEGER ) + + col2 AS col0 FROM tab0 cor0
----
-24
0
-24
0
-24
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT MIN( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4856
SELECT MIN ( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT DISTINCT COUNT( col1 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4857
SELECT DISTINCT COUNT ( col1 ) AS col0 FROM tab2 cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 + + - col1 * - col0 + - col2 * col2 + col2 + + - col0 - - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 30 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + 58 - - + 89 * col0 * + + col2 FROM tab2
----
227821
387141
94169

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT DISTINCT - 62 * - 15 + + 45 * + COUNT( * ) + + COUNT( * ) FROM tab2
----
1068

skipif mysql # not compatible
query I rowsort label-4861
SELECT DISTINCT - 62 * - 15 + + 45 * + COUNT ( * ) + + COUNT ( * ) FROM tab2
----
1068

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT 27 + ( COUNT( * ) ) AS col2 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-4862
SELECT 27 + ( COUNT ( * ) ) AS col2 FROM tab0
----
30

query II rowsort
SELECT ALL 80 / - col0 / - 80 - col0 AS col0, - col2 FROM tab1 WHERE col1 BETWEEN NULL AND + col0 / + col2 - - col0
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 BETWEEN NULL AND - col2
----

query I rowsort
SELECT + - 47 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT + 56 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT - 54 - 2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 51 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 56 + col2 FROM tab2 AS cor0
----
114
79
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT ALL + - SUM( - col1 ) - + 48 * + COUNT( * ) col0 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4870
SELECT ALL + - SUM ( - col1 ) - + 48 * + COUNT ( * ) col0 FROM tab1 AS cor0
----
-78

query I rowsort
SELECT DISTINCT - + 74 + + col2 + + col1 * 16 FROM tab1 AS cor0
----
246
65
746

query II rowsort
SELECT DISTINCT + col1, + 25 AS col0 FROM tab0 AS cor0
----
1
25
21
25
81
25

query I rowsort
SELECT + ( 62 ) / - + col0 AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4874
SELECT col0 + + CAST( NULL AS SIGNED ) + - col1 / + + col0 + + 9 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT col0 + + CAST ( NULL AS INTEGER ) + - col1 / + + col0 + + 9 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4875
SELECT ALL - CAST( NULL AS SIGNED ) - - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4875
SELECT ALL - CAST ( NULL AS INTEGER ) - - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4876
SELECT + - 37 + - COUNT( ALL - 55 ) * - ( - + CAST( NULL AS SIGNED ) ) / COUNT( * ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4876
SELECT + - 37 + - COUNT ( ALL - 55 ) * - ( - + CAST ( NULL AS INTEGER ) ) / COUNT ( * ) AS col0 FROM tab0 cor0
----
NULL

query II rowsort
SELECT ALL - 64 * + col2, + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1472
51
-2560
77
-3712
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT ALL - - SUM( + - 89 ) FROM tab2 cor0
----
-267

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL - - SUM ( + - 89 ) FROM tab2 cor0
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT + - ( + SUM( col1 ) ) + - 89 col2 FROM tab1 AS cor0
----
-155

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4879
SELECT + - ( + SUM ( col1 ) ) + - 89 col2 FROM tab1 AS cor0
----
-155

query I rowsort
SELECT ALL + 77 - col2 AS col0 FROM tab0 AS cor0 WHERE NOT 63 < - col1 * - + col2 + 19
----

query III rowsort
SELECT * FROM tab1 WHERE 61 = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4882
SELECT ALL + col2 AS col0, - 76 DIV 58 * + 18 * + + col0 FROM tab0
----
10
-1566
47
-270
99
-1746

skipif mysql # not compatible
query II rowsort label-4882
SELECT ALL + col2 AS col0, - 76 / 58 * + 18 * + + col0 FROM tab0
----
10
-1566
47
-270
99
-1746

query I rowsort
SELECT DISTINCT - 84 + - ( - col1 ) + - - col0 * + col2 AS col1 FROM tab2
----
1025
2553
4333

query I rowsort
SELECT ALL 50 + + col1 + - col0 + - 31 FROM tab1
----
-18
-25
-61

query II rowsort
SELECT col1 AS col2, + col1 AS col0 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4886
SELECT ( + - COUNT( * ) ) DIV 85 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4886
SELECT ( + - COUNT ( * ) ) / 85 AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4887
SELECT + CAST( col1 AS SIGNED ) col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4887
SELECT + CAST ( col1 AS INTEGER ) col1 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4888
SELECT + 18 DIV + COUNT( ALL + col1 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4888
SELECT + 18 / + COUNT ( ALL + col1 ) FROM tab0
----
6

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN NULL AND - col0 + col2 * 38
----

query I rowsort
SELECT + - 24 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= - + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4892
SELECT col2 * ( + 80 ), col0 DIV + 95 AS col1 FROM tab0
----
3760
0
7920
1
800
0

skipif mysql # not compatible
query II rowsort label-4892
SELECT col2 * ( + 80 ), col0 / + 95 AS col1 FROM tab0
----
3760
0
7920
1
800
0

query IIIIII rowsort
SELECT ALL * FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 95 AS col2 FROM tab0 WHERE NOT + - 32 IS NULL
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT ALL + COUNT( - ( col1 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL + COUNT ( - ( col1 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - - col1 + + col1 * + col1 * + - 15 FROM tab1 AS cor0
----
-2926
-33088
-370

onlyif mysql # DIV for integer division: 
query III rowsort label-4898
SELECT + - col2 DIV + + 39, ( + - ( - - col2 ) ) AS col0, + col0 col2 FROM tab1 AS cor0
----
9 values hashing to 8d57b3c4448c00e2718e1c1d4372ddc0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-4898
SELECT + - col2 / + + 39, ( + - ( - - col2 ) ) AS col0, + col0 col2 FROM tab1 AS cor0
----
9 values hashing to 8d57b3c4448c00e2718e1c1d4372ddc0

query I rowsort
SELECT DISTINCT + col1 + + 54 AS col2 FROM tab2
----
105
121
131

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT - COUNT( * ) - - - 8 * + 13 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
-104

skipif mysql # not compatible
query I rowsort label-4900
SELECT - COUNT ( * ) - - - 8 * + 13 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
-104

query I rowsort
SELECT ALL 43 + 17 FROM tab1
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT DISTINCT - MAX( DISTINCT - col0 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT - MAX ( DISTINCT - col0 ) AS col1 FROM tab2
----
46

query I rowsort
SELECT - 43 + - 54 FROM tab2 cor0
----
-97
-97
-97

query I rowsort
SELECT - 18 + + col2 FROM tab1 AS cor0
----
41
50
78

query I rowsort
SELECT 5 + + 36 FROM tab0 AS cor0
----
41
41
41

query III rowsort
SELECT ALL * FROM tab0 WHERE 26 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE ( - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 WHERE NULL < 96
----
0

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 WHERE NULL < 96
----
0

query I rowsort
SELECT 31 * 14 AS col0 FROM tab1
----
434
434
434

query I rowsort
SELECT 37 * - 67 FROM tab0
----
-2479
-2479
-2479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4911
SELECT COUNT( CAST( ( col1 ) AS SIGNED ) ) * ( ( ( COUNT( * ) ) ) ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4911
SELECT COUNT ( CAST ( ( col1 ) AS INTEGER ) ) * ( ( ( COUNT ( * ) ) ) ) FROM tab1
----
9

query I rowsort
SELECT ALL col2 * - 98 FROM tab0 WHERE NOT col0 BETWEEN ( - col2 ) AND - col2 / - 68
----
-4606
-9702
-980

query I rowsort
SELECT 14 FROM tab2 WHERE NULL NOT BETWEEN col1 AND 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT + 20 * COUNT( * ) + + ( COUNT( * ) ) AS col0 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-4914
SELECT + 20 * COUNT ( * ) + + ( COUNT ( * ) ) AS col0 FROM tab2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4915
SELECT CAST( MAX( col0 ) AS SIGNED ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4915
SELECT CAST ( MAX ( col0 ) AS INTEGER ) AS col2 FROM tab0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4916
SELECT ALL + 98 DIV - col2 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL + 98 / - col2 FROM tab2
----
-1
-2
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT COUNT( * ) col2 FROM tab1 WHERE NOT NULL <> ( - col1 * + col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4917
SELECT COUNT ( * ) col2 FROM tab1 WHERE NOT NULL <> ( - col1 * + col1 )
----
0

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT - col2 = 95
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4919
SELECT ALL - CAST( NULL AS SIGNED ) / - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL - CAST ( NULL AS INTEGER ) / - col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4920
SELECT * FROM tab1 WHERE NOT - ( - 47 ) NOT IN ( + CAST( NULL AS SIGNED ) * col0 )
----

skipif mysql # not compatible
query III rowsort label-4920
SELECT * FROM tab1 WHERE NOT - ( - 47 ) NOT IN ( + CAST ( NULL AS INTEGER ) * col0 )
----

query I rowsort
SELECT col1 * - col1 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4922
SELECT * FROM tab0 WHERE NOT CAST( + col1 AS SIGNED ) * 76 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4922
SELECT * FROM tab0 WHERE NOT CAST ( + col1 AS INTEGER ) * 76 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4924
SELECT col0 DIV 53 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4924
SELECT col0 / 53 AS col1 FROM tab2
----
0
1
1

query I rowsort
SELECT DISTINCT ( + 79 ) + 69 AS col0 FROM tab1
----
148

query I rowsort
SELECT DISTINCT + col1 + + 8 AS col0 FROM tab0
----
29
89
9

query I rowsort
SELECT ALL col1 * - 69 + + col0 * - col1 AS col1 FROM tab0
----
-166
-3276
-6804

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 19 col2 FROM tab1
----
19
19
19

query I rowsort
SELECT - 46 * 80 FROM tab1 AS cor0
----
-3680
-3680
-3680

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT COUNT( ALL + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4930
SELECT COUNT ( ALL + col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4931
SELECT ALL CAST( NULL AS SIGNED ) / 61 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL CAST ( NULL AS INTEGER ) / 61 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4932
SELECT DISTINCT 33 DIV - COUNT( * ) AS col0 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT 33 / - COUNT ( * ) AS col0 FROM tab2
----
-11

query I rowsort
SELECT - 71 * - 18 AS col0 FROM tab1 WHERE NOT ( - ( 97 ) ) IS NULL
----
1278
1278
1278

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4935
SELECT - - MAX( - CAST( col1 AS SIGNED ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4935
SELECT - - MAX ( - CAST ( col1 AS INTEGER ) ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT + + COUNT( * ) * - 45 AS col0 FROM tab0 cor0
----
-135

skipif mysql # not compatible
query I rowsort label-4936
SELECT + + COUNT ( * ) * - 45 AS col0 FROM tab0 cor0
----
-135

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4938
SELECT DISTINCT - CAST( 37 AS SIGNED ) FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT - CAST ( 37 AS INTEGER ) FROM tab1 AS cor0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-4939
SELECT + col2 DIV + 19 AS col1 FROM tab0 AS cor0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-4939
SELECT + col2 / + 19 AS col1 FROM tab0 AS cor0
----
0
2
5

query I rowsort
SELECT DISTINCT - ( 95 ) FROM tab2 cor0
----
-95

query I rowsort
SELECT DISTINCT 59 + 93 * + col1 FROM tab1 AS cor0 WHERE NOT + 39 IS NULL
----
1361
4430
524

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 IN ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 * col0 + col0 * - 1 BETWEEN NULL AND col1 + col2
----

query I rowsort
SELECT + col1 * 15 + + col0 FROM tab2
----
1080
1219
811

query I rowsort
SELECT + 76 + + col1 AS col0 FROM tab1 WHERE ( + 61 ) IS NOT NULL
----
123
81
90

query I rowsort
SELECT ALL 7 + col0 + + 17 * col1 FROM tab0
----
121
1399
451

query I rowsort
SELECT col2 + - ( - col1 ) FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT + SUM( + + col1 ) + - 81 AS col1 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-4948
SELECT + SUM ( + + col1 ) + - 81 AS col1 FROM tab0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT 9 + - - ( - MAX( 2 ) ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-4949
SELECT 9 + - - ( - MAX ( 2 ) ) FROM tab1
----
7

query I rowsort
SELECT ALL + col1 * + + col0 + col2 + - col1 AS col2 FROM tab0 AS cor0
----
1181
1816
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4951
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) > - col2
----
0

skipif mysql # not compatible
query I rowsort label-4952
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) > - col2
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4954
SELECT + col0 DIV - 9 FROM tab2
----
-5
-7
-8

skipif mysql # not compatible
query I rowsort label-4954
SELECT + col0 / - 9 FROM tab2
----
-5
-7
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) * + col0 col0 FROM tab1 WHERE NOT - col2 BETWEEN + 32 AND - col1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT COUNT( * ) - + - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4956
SELECT COUNT ( * ) - + - COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT ALL - col2 + + 57 AS col0 FROM tab2
----
-1
17
34

onlyif mysql # DIV for integer division: 
query I rowsort label-4958
SELECT ALL 72 + col0 DIV col0 AS col1 FROM tab1 cor0
----
73
73
73

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL 72 + col0 / col0 AS col1 FROM tab1 cor0
----
73
73
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4959
SELECT DISTINCT - CAST( ( + CAST( - col0 AS SIGNED ) ) AS SIGNED ) - CAST( 25 AS SIGNED ) FROM tab0 AS cor0
----
-10
62
72

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT - CAST ( ( + CAST ( - col0 AS INTEGER ) ) AS INTEGER ) - CAST ( 25 AS INTEGER ) FROM tab0 AS cor0
----
-10
62
72

query I rowsort
SELECT ALL + col0 + + 57 * 76 FROM tab0 AS cor0
----
4347
4419
4429

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( + 39 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE + col0 <= ( ( + col1 ) )
----
-23
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) - COUNT( * ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) - COUNT ( * ) FROM tab2 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT - ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT ( col2 * + col2 + - col2 ) NOT BETWEEN + col0 + 43 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4964
SELECT - ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT ( col2 * + col2 + - col2 ) NOT BETWEEN + col0 + 43 AND NULL
----
0

query I rowsort
SELECT ( col2 ) + 73 AS col2 FROM tab2 AS cor0 WHERE NOT ( col1 + - - col1 ) IN ( 7 )
----
113
131
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4966
SELECT DISTINCT + - 91 DIV 78 AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4966
SELECT DISTINCT + - 91 / 78 AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL + ( + - col0 ) * + col2 AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT + + col1 * - 66 AS col2 FROM tab2 cor0
----
-3366
-4422
-5082

query I rowsort
SELECT ALL - 5 * - - 31 AS col1 FROM tab0
----
-155
-155
-155

query I rowsort
SELECT DISTINCT + col2 * + col0 * + col0 FROM tab2
----
163840
326250
48668

query I rowsort
SELECT ( col2 ) AS col2 FROM tab1 WHERE NOT NULL BETWEEN col0 + + 49 + col2 AND ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN + - col2 AND - col1 - 85
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4973
SELECT + col1 DIV col0 * + + col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4973
SELECT + col1 / col0 * + + col0 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - 72 / col1 = - 50 / - 37 + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 74 * - col0 * - 31 FROM tab2 AS cor0
----
105524
146816
172050

query I rowsort
SELECT - col0 * 78 - + col1 FROM tab0 AS cor0 WHERE NOT ( col2 / + - col1 + - col2 ) IS NULL
----
-1251
-6807
-7567

query I rowsort
SELECT - + col2 + - 76 AS col2 FROM tab1 AS cor0
----
-135
-144
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT ALL - MAX( + 77 ) * COUNT( * ) * - + 0 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL - MAX ( + 77 ) * COUNT ( * ) * - + 0 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 74 FROM tab0 AS cor0 WHERE ( + col2 + - 39 ) <> col2
----
74
74
74

query I rowsort
SELECT + + col0 + + 37 AS col2 FROM tab2 AS cor0
----
101
112
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4981
SELECT - 94 * + - 84 * CAST( NULL AS DECIMAL ) * COUNT( * ) + - 54 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4981
SELECT - 94 * + - 84 * CAST ( NULL AS REAL ) * COUNT ( * ) + - 54 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4982
SELECT - + 71, CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-71
NULL
-71
NULL
-71
NULL

skipif mysql # not compatible
query II rowsort label-4982
SELECT - + 71, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-71
NULL
-71
NULL
-71
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT COUNT( * ) * - 71 AS col2 FROM tab1 cor0
----
-213

skipif mysql # not compatible
query I rowsort label-4983
SELECT COUNT ( * ) * - 71 AS col2 FROM tab1 cor0
----
-213

onlyif mysql # DIV for integer division: 
query I rowsort label-4984
SELECT col1 DIV - - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4984
SELECT col1 / - - col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 77 IN ( col2 / + - 29 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT + COUNT( * ) * - - SUM( ALL col2 ) FROM tab2 AS cor0
----
363

skipif mysql # not compatible
query I rowsort label-4986
SELECT + COUNT ( * ) * - - SUM ( ALL col2 ) FROM tab2 AS cor0
----
363

query I rowsort
SELECT - + ( - + col2 ) AS col0 FROM tab0 AS cor0
----
10
47
99

query II rowsort
SELECT ALL - col0, col0 * - 39 AS col2 FROM tab1 WHERE + 27 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + - col0 * + + 52 + 17 AS col0 FROM tab0
----
-4497
-4928
-716

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col0 col2 FROM tab0
----
-108
-96
-98

query III rowsort
SELECT * FROM tab1 WHERE ( - + col2 ) < NULL
----

query I rowsort
SELECT 96 FROM tab0 WHERE - ( + - col0 ) >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 50 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT ALL 36 - - ( + SUM( DISTINCT - + col2 ) ) * - 57 * + + 17 AS col2 FROM tab1
----
216123

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL 36 - - ( + SUM ( DISTINCT - + col2 ) ) * - 57 * + + 17 AS col2 FROM tab1
----
216123

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT DISTINCT - + COUNT( * ) + + - COUNT( DISTINCT - + col0 ) AS col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT - + COUNT ( * ) + + - COUNT ( DISTINCT - + col0 ) AS col2 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT - - SUM( DISTINCT + - 77 ) col2 FROM tab2 AS cor0 WHERE + col0 + + + 75 IS NOT NULL
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4996
SELECT - - SUM ( DISTINCT + - 77 ) col2 FROM tab2 AS cor0 WHERE + col0 + + + 75 IS NOT NULL
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT ALL + SUM( + col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL + SUM ( + col0 ) AS col2 FROM tab2 AS cor0
----
185

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 > + - 8 * + col1 + col2
----

query III rowsort
SELECT * FROM tab1 WHERE + 94 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE NOT + 5 IS NULL
----
14
47
5

query II rowsort
SELECT - col2, - 92 AS col2 FROM tab0 cor0 WHERE NOT ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 60 * col2 * + col1 + - col0 AS col2 FROM tab1 AS cor0
----
-17785
-191851
-80691

query I rowsort
SELECT DISTINCT + + 58 AS col0 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT ALL - + 10 * ( MAX( + - ( + col1 ) ) ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5004
SELECT ALL - + 10 * ( MAX ( + - ( + col1 ) ) ) AS col0 FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5005
SELECT ALL + - CAST( ( col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL + - CAST ( ( col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT - COUNT( ALL col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5006
SELECT - COUNT ( ALL col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5007
SELECT CAST( 65 AS SIGNED ) FROM tab1 AS cor0
----
65
65
65

skipif mysql # not compatible
query I rowsort label-5007
SELECT CAST ( 65 AS INTEGER ) FROM tab1 AS cor0
----
65
65
65

query I rowsort
SELECT 66 * col2 AS col0 FROM tab1 AS cor0
----
3894
4488
6336

query I rowsort
SELECT ALL ( - - 15 ) AS col2 FROM tab0
----
15
15
15

query I rowsort
SELECT ALL - 29 * + + 78 FROM tab1
----
-2262
-2262
-2262

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT + 88 * + + COUNT( * ) FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-5011
SELECT + 88 * + + COUNT ( * ) FROM tab2
----
264

query II rowsort
SELECT ALL - col2 * - + col1 * + + 57 AS col0, + 67 + + col1 FROM tab1
----
16815
72
182172
114
76608
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5013
SELECT + 6 DIV COUNT( * ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-5013
SELECT + 6 / COUNT ( * ) FROM tab1
----
2

query I rowsort
SELECT ALL 65 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
65
65
65

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND - - col1
----

query I rowsort
SELECT + col0 * + col1 * 27 AS col2 FROM tab0 AS cor0
----
2619
32805
49329

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT ALL COUNT( col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL COUNT ( col1 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5018
SELECT DISTINCT - - col1 * + col1 / + col2 + + 33 + - + col1 * - 4 - - + CAST( NULL AS SIGNED ) / + - col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5018
SELECT DISTINCT - - col1 * + col1 / + col2 + + 33 + - + col1 * - 4 - - + CAST ( NULL AS INTEGER ) / + - col1 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 col1 FROM tab0 AS cor0
----
-77
-77
-77

query I rowsort
SELECT DISTINCT + 79 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5021
SELECT ALL - 18 / - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE - 9 NOT BETWEEN - col2 * col0 AND 40 + + col0 + 60
----

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL - 18 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE - 9 NOT BETWEEN - col2 * col0 AND 40 + + col0 + 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT ALL COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5022
SELECT ALL COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT col1 + 85 AS col1 FROM tab1 cor0 WHERE NOT - 0 + col0 + + col0 + 97 + 33 * + - 31 + + - col1 BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL - ( col1 ) + + 25 FROM tab1 AS cor0 WHERE 17 IS NOT NULL
----
-22
11
20

query I rowsort
SELECT DISTINCT col0 + 76 AS col0 FROM tab2
----
122
140
151

query I rowsort
SELECT ALL col0 + + 1 FROM tab1
----
52
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT DISTINCT COUNT( * ) + - 12 AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT COUNT ( * ) + - 12 AS col2 FROM tab1
----
-9

query I rowsort
SELECT 76 + - 88 FROM tab1
----
-12
-12
-12

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 39 + + ( col1 ) + + col2 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5030
SELECT ALL - col2 - + col2 + - ( - 71 ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL - col2 - + col2 + - ( - 71 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - - col2, - col1 AS col0 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
10
-21
47
-81
99
-1

query I rowsort
SELECT DISTINCT col0 * - - col0 * - - 54 FROM tab0 AS cor0
----
12150
408726
508086

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT ALL + - MAX( + 2 ) FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL + - MAX ( + 2 ) FROM tab2 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT DISTINCT - - SUM( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-5034
SELECT DISTINCT - - SUM ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT ALL + SUM( 68 ) FROM tab0 cor0
----
204

skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL + SUM ( 68 ) FROM tab0 cor0
----
204

query I rowsort
SELECT + 7 * - + 4 AS col1 FROM tab2 AS cor0
----
-28
-28
-28

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----

query II rowsort
SELECT - col0 AS col2, - col0 + - col0 - col2 AS col1 FROM tab1 AS cor0
----
-51
-198
-85
-229
-91
-250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) col0 FROM tab2
----
-23
-40
-58

query II rowsort
SELECT DISTINCT col1 * - 86 AS col0, + col2 FROM tab0
----
-1806
10
-6966
47
-86
99

query I rowsort
SELECT DISTINCT col0 * + 33 FROM tab0
----
2871
3201
495

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 ) >= + 52 * + col2 * - col2
----

query I rowsort
SELECT - col2 * - - col1 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-1344
-295
-3196

query I rowsort
SELECT - - ( - - 79 ) * - col1 AS col2 FROM tab0 cor0
----
-1659
-6399
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT DISTINCT + MIN( DISTINCT + 91 ) FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT + MIN ( DISTINCT + 91 ) FROM tab2 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN - - ( col1 ) AND - 16
----

query I rowsort
SELECT - 66 + - + col2 AS col0 FROM tab2 WHERE + col2 + - col1 + - - col2 BETWEEN 81 AND + - ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5048
SELECT DISTINCT - 81 * + col0 - - + CAST( + 24 AS SIGNED ) FROM tab1 AS cor0
----
-4107
-6861
-7347

skipif mysql # not compatible
query I rowsort label-5048
SELECT DISTINCT - 81 * + col0 - - + CAST ( + 24 AS INTEGER ) FROM tab1 AS cor0
----
-4107
-6861
-7347

query II rowsort
SELECT - col2, - col2 AS col2 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 19 col2, - col2 FROM tab2 AS cor0
----
19
-23
19
-40
19
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5051
SELECT + + MIN( - 22 ) DIV + 95 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5051
SELECT + + MIN ( - 22 ) / + 95 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + 86 * + - 29 FROM tab2 AS cor0
----
-2494
-2494
-2494

query I rowsort
SELECT - col0 * - col1 * 33 AS col2 FROM tab2 AS cor0
----
162624
165825
77418

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT DISTINCT - + 55 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT - + 55 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5055
SELECT DISTINCT * FROM tab0 WHERE + - CAST( NULL AS SIGNED ) - + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5055
SELECT DISTINCT * FROM tab0 WHERE + - CAST ( NULL AS INTEGER ) - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT ALL - MIN( DISTINCT 67 ) * - MAX( ALL - 96 ) FROM tab0
----
-6432

skipif mysql # not compatible
query I rowsort label-5056
SELECT ALL - MIN ( DISTINCT 67 ) * - MAX ( ALL - 96 ) FROM tab0
----
-6432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5057
SELECT DISTINCT + 26 DIV + + 15 + COUNT( * ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-5057
SELECT DISTINCT + 26 / + + 15 + COUNT ( * ) FROM tab0
----
4

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT ALL col1 * - 6 AS col2 FROM tab2
----
-306
-402
-462

query III rowsort
SELECT * FROM tab1 WHERE + ( + + col1 ) IS NULL
----

query I rowsort
SELECT ( + col0 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT + 44 + col2 AS col2 FROM tab1 cor0
----
103
112
140

query I rowsort
SELECT DISTINCT col1 * + 15 * + + 10 FROM tab2
----
10050
11550
7650

query II rowsort
SELECT + + 3 AS col1, 74 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to cb3e4e01b32f179c50537fbb7b00e6b8

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT DISTINCT - SUM( ALL - col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT - SUM ( ALL - col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT + - MAX( ALL + + 11 ) + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5066
SELECT + - MAX ( ALL + + 11 ) + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5067
SELECT 62 DIV + col1 AS col1 FROM tab0 cor0
----
0
2
62

skipif mysql # not compatible
query I rowsort label-5067
SELECT 62 / + col1 AS col1 FROM tab0 cor0
----
0
2
62

query I rowsort
SELECT + + col1 AS col1 FROM tab0 cor0 WHERE NOT col2 * + - col2 * + col0 + - 64 IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 + ( + ( - 80 ) ) + + - 85 < + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * + col1 col1 FROM tab1 AS cor0 WHERE col0 * + col2 + + col0 BETWEEN + 29 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT MAX( 80 ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-5071
SELECT MAX ( 80 ) FROM tab2
----
80

query II rowsort
SELECT - col1, 90 AS col2 FROM tab0
----
-1
90
-21
90
-81
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab1 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT DISTINCT COUNT( - col2 ) * - COUNT( * ) + - - 12 * + - COUNT( * ) FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT COUNT ( - col2 ) * - COUNT ( * ) + - - 12 * + - COUNT ( * ) FROM tab0
----
-45

query I rowsort
SELECT ALL - 69 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 43 * + 96 <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT DISTINCT ( - 29 ) * - + MAX( ALL + + col0 ) FROM tab2 AS cor0
----
2175

skipif mysql # not compatible
query I rowsort label-5077
SELECT DISTINCT ( - 29 ) * - + MAX ( ALL + + col0 ) FROM tab2 AS cor0
----
2175

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col1 > NULL
----

query I rowsort
SELECT DISTINCT + 77 - - col2 * - 11 AS col2 FROM tab0 AS cor0
----
-1012
-33
-440

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5080
SELECT - CAST( NULL AS DECIMAL ) + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5080
SELECT - CAST ( NULL AS REAL ) + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 + + + col1 AS col0 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT ALL - col2 - + + col1 FROM tab0 AS cor0 WHERE NOT col0 * - ( + col2 ) * - + col2 IS NOT NULL
----

query I rowsort
SELECT ALL col2 + - 20 - - - ( + - col0 ) + + col1 * - col0 AS col2 FROM tab1
----
-301
-4138
-587

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT ( 71 ) * + + COUNT( * ) AS col2 FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-5084
SELECT ( 71 ) * + + COUNT ( * ) AS col2 FROM tab1
----
213

onlyif mysql # aggregate syntax: 
query II rowsort label-5085
SELECT DISTINCT 39 + - + COUNT( DISTINCT + col0 ) + + MAX( + col2 ) * - 89 AS col0, + 37 AS col2 FROM tab1
----
-8508
37

skipif mysql # not compatible
query II rowsort label-5085
SELECT DISTINCT 39 + - + COUNT ( DISTINCT + col0 ) + + MAX ( + col2 ) * - 89 AS col0, + 37 AS col2 FROM tab1
----
-8508
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT 64 * - COUNT( * ) FROM tab1 WHERE col0 / - col0 + + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5086
SELECT 64 * - COUNT ( * ) FROM tab1 WHERE col0 / - col0 + + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5087
SELECT - COUNT( * ), - COUNT( * ) + - + MAX( DISTINCT + + col2 ) AS col2 FROM tab2
----
-3
-61

skipif mysql # not compatible
query II rowsort label-5087
SELECT - COUNT ( * ), - COUNT ( * ) + - + MAX ( DISTINCT + + col2 ) AS col2 FROM tab2
----
-3
-61

query I rowsort
SELECT DISTINCT col1 + - - col2 + - 13 FROM tab0
----
115
18
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT DISTINCT 5 * COUNT( * ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT 5 * COUNT ( * ) FROM tab0
----
15

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 >= NULL
----

query I rowsort
SELECT DISTINCT - col1 - + - 69 AS col2 FROM tab1
----
22
55
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 32 * col0 <= ( - 72 + 76 + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5093
SELECT DISTINCT + - col2 * - col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT + - col2 * - col2 / + col2 AS col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT + ( - + ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT - COUNT( * ) * - 7 AS col1 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-5095
SELECT - COUNT ( * ) * - 7 AS col1 FROM tab0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5096
SELECT * FROM tab2 WHERE NOT ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5096
SELECT * FROM tab2 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT - 85 * - COUNT( * ) FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-5097
SELECT - 85 * - COUNT ( * ) FROM tab0
----
255

query I rowsort
SELECT - 52 * - col0 FROM tab1
----
2652
4420
4732

query I rowsort
SELECT + AVG ( DISTINCT - - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 * 88 AS col1 FROM tab1 AS cor0
----
4488
7480
8008

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col2 * col0 - - - col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5101
SELECT + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col2 * col0 - - - col2 = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5102
SELECT DISTINCT + ( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT + ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 2 * + 78 + - - col2 FROM tab1 AS cor0
----
-60
-88
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5104
SELECT DISTINCT + col0 / + - CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5104
SELECT DISTINCT + col0 / + - CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

query I rowsort
SELECT - col1 * + + 43 AS col0 FROM tab2
----
-2193
-2881
-3311

query I rowsort
SELECT ALL col1 + + 5 FROM tab2
----
56
72
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT ALL + SUM( DISTINCT + - col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL + SUM ( DISTINCT + - col2 ) FROM tab1
----
-223

query II rowsort
SELECT + col0, + col2 * + - 49 * + col2 FROM tab2
----
46
-25921
64
-78400
75
-164836

query I rowsort
SELECT ALL ( 18 ) FROM tab0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT - 41 + col1 FROM tab2 AS cor0
----
10
26
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 71 col0 FROM tab0 AS cor0
----
-71

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE 1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT COUNT( * ) AS col0 FROM tab2 WHERE - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5113
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE - col0 IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5114
SELECT ALL + COUNT( CAST( NULL AS DECIMAL ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5114
SELECT ALL + COUNT ( CAST ( NULL AS REAL ) ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT ALL + 88 * - COUNT( * ) + - 98 FROM tab0
----
-362

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL + 88 * - COUNT ( * ) + - 98 FROM tab0
----
-362

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL <= 19 / - 15
----

query II rowsort
SELECT 94 AS col2, - col0 FROM tab2 AS cor0
----
94
-46
94
-64
94
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5118
SELECT col2 * + + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5118
SELECT col2 * + + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 71 * - + 13 * + + 34 AS col2 FROM tab2 AS cor0
----
-31382
-31382
-31382

query I rowsort
SELECT ALL - col1 * - col0 * - 43 FROM tab1 AS cor0
----
-18275
-183911
-30702

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT ALL - COUNT( * ) - - + 19 AS col2 FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL - COUNT ( * ) - - + 19 AS col2 FROM tab2 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT DISTINCT MIN( 74 ) AS col2 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-5122
SELECT DISTINCT MIN ( 74 ) AS col2 FROM tab1 AS cor0
----
74

query I rowsort
SELECT + 48 AS col0 FROM tab0 AS cor0 WHERE NULL > - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - 66 col1 FROM tab2 AS cor0
----
-9
2
20

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 74 IS NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT 82 NOT IN ( + col1 / + + col0 + col2 * + - 5 + ( - col2 ) ) AND NULL = NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( col2 ) AND NULL <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 * - 96 + - + col0 + + 23 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 10 + - 37 AS col0 FROM tab1 WHERE NOT 86 IS NULL
----
-27
-27
-27

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 * + 15 + + col2 BETWEEN ( - + 91 - - ( + ( + col0 ) ) ) AND 58
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT NULL = + col2 * - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 <= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * + + 8 * + col1 FROM tab0 AS cor0
----
-1680
-30456
-792

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5135
SELECT ALL + COUNT( * ) col0, + 77 AS col2 FROM tab1
----
3
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5135
SELECT ALL + COUNT ( * ) col0, + 77 AS col2 FROM tab1
----
3
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT DISTINCT - 66 * COUNT( * ) + + 33 FROM tab2 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-5136
SELECT DISTINCT - 66 * COUNT ( * ) + + 33 FROM tab2 AS cor0
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5137
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 > CAST( + 21 AS SIGNED )
----
87
21
10

skipif mysql # not compatible
query III rowsort label-5137
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 > CAST ( + 21 AS INTEGER )
----
87
21
10

query I rowsort
SELECT DISTINCT + col2 * + 3 AS col1 FROM tab2 AS cor0
----
120
174
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT DISTINCT - COUNT( + 6 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5139
SELECT DISTINCT - COUNT ( + 6 ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + col2 * - + col0 + + col2 AS col2 FROM tab0 AS cor0
----
-658
-860
-9504

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 / - - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + col1 + 50 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - - col1 ) + ( 70 ) AS col2 FROM tab1
----
23
56
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT DISTINCT MAX( - + ( + + 20 ) ) + - 56 AS col1 FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT MAX ( - + ( + + 20 ) ) + - 56 AS col1 FROM tab0
----
-76

query I rowsort
SELECT DISTINCT - col2 * + col1 * - + col2 FROM tab1
----
129024
17405
217328

query I rowsort
SELECT + ( + col2 ) + + - col1 FROM tab0 cor0
----
-11
-34
98

query I rowsort
SELECT - + 98 * + - 27 * - col0 FROM tab0 AS cor0
----
-230202
-256662
-39690

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT + COUNT( * ) + + 3 AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5148
SELECT + COUNT ( * ) + + 3 AS col0 FROM tab0 AS cor0
----
6

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE - 31 + col2 NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT ALL 74 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT ALL - + COUNT( * ) - MIN( - + col2 ) FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL - + COUNT ( * ) - MIN ( - + col2 ) FROM tab1 AS cor0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5152
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - - col1 <> - CAST( NULL AS SIGNED ) + - + col0 )
----

skipif mysql # not compatible
query III rowsort label-5152
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - - col1 <> - CAST ( NULL AS INTEGER ) + - + col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 21 IN ( + + 46, 79 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / + 75 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 11 + + - col0 AS col1 FROM tab1 AS cor0
----
-40
-74
-80

query I rowsort
SELECT DISTINCT + 30 - + col2 FROM tab2 cor0
----
-10
-28
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5157
SELECT - CAST( NULL AS DECIMAL ) * - - col1 FROM tab1 WHERE col0 IS NOT NULL OR ( col0 BETWEEN + - 17 * 42 * - col1 / - ( + col2 ) + - - col2 + 28 * - - 86 AND - col2 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5157
SELECT - CAST ( NULL AS REAL ) * - - col1 FROM tab1 WHERE col0 IS NOT NULL OR ( col0 BETWEEN + - 17 * 42 * - col1 / - ( + col2 ) + - - col2 + 28 * - - 86 AND - col2 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT + COUNT( * ) * + - 37 FROM tab1
----
-111

skipif mysql # not compatible
query I rowsort label-5158
SELECT + COUNT ( * ) * + - 37 FROM tab1
----
-111

query I rowsort
SELECT 99 * + col0 FROM tab1
----
5049
8415
9009

query I rowsort
SELECT col1 * - - 52 AS col2 FROM tab0
----
1092
4212
52

query II rowsort
SELECT col0 AS col1, 16 AS col2 FROM tab2
----
46
16
64
16
75
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5162
SELECT col2 AS col1 FROM tab0 WHERE NOT - col0 * + - col1 * + 8 * col1 + + + CAST( NULL AS SIGNED ) NOT BETWEEN - col1 AND + + col2
----

skipif mysql # not compatible
query I rowsort label-5162
SELECT col2 AS col1 FROM tab0 WHERE NOT - col0 * + - col1 * + 8 * col1 + + + CAST ( NULL AS INTEGER ) NOT BETWEEN - col1 AND + + col2
----

query II rowsort
SELECT ALL + 38 AS col1, - col2 * col1 FROM tab0 cor0
----
38
-210
38
-3807
38
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-5164
SELECT - 14 * - col0 * - 2 AS col0, 5 DIV - 10 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1288
0
-1792
0
-2100
0

skipif mysql # not compatible
query II rowsort label-5164
SELECT - 14 * - col0 * - 2 AS col0, 5 / - 10 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1288
0
-1792
0
-2100
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * + col2 + col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - col2 col0 FROM tab1 WHERE NOT - col1 = + + 38
----
144
147
159

query I rowsort
SELECT DISTINCT + col2 + - + ( col2 ) + col2 AS col2 FROM tab0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5168
SELECT ALL + 9 DIV - col1 AS col2 FROM tab0 AS cor0
----
-9
0
0

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL + 9 / - col1 AS col2 FROM tab0 AS cor0
----
-9
0
0

query I rowsort
SELECT + 14 + + + 23 AS col0 FROM tab2 cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT DISTINCT + + COUNT( * ) * 53 AS col0 FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT + + COUNT ( * ) * 53 AS col0 FROM tab0 AS cor0
----
159

query II rowsort
SELECT - col1 + - col1 + 37 AS col2, col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 - - + 52 * - col1 + + 48 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT ALL - - ( - ( - MAX( DISTINCT - + col2 ) ) ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL - - ( - ( - MAX ( DISTINCT - + col2 ) ) ) FROM tab1 AS cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 48 col2, 76 FROM tab1
----
48
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5174
SELECT - 79 DIV + col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5174
SELECT - 79 / + col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL + col2 - + - col0 * - col0 FROM tab2 WHERE + - col1 IS NOT NULL
----
-2093
-4056
-5567

query I rowsort
SELECT ALL col1 * - col1 AS col0 FROM tab2 WHERE ( + + 40 + + 83 ) >= col0
----
-2601
-4489
-5929

query I rowsort
SELECT DISTINCT col1 + - + col2 * - 77 * + col0 * col0 FROM tab1
----
19226606
32823180
43359363

query I rowsort
SELECT + + col1 * + col2 + + col2 AS col1 FROM tab1 AS cor0 WHERE 28 IN ( + + ( col1 ), + 74 - col0 * + - col0 / + - col2, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT + COUNT( * ) + + - 60 AS col1 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-5179
SELECT + COUNT ( * ) + + - 60 AS col1 FROM tab1 AS cor0
----
-57

query I rowsort
SELECT DISTINCT - - 14 + - 93 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-79

query I rowsort
SELECT col1 + + - col2 AS col2 FROM tab0
----
-98
11
34

query III rowsort
SELECT * FROM tab0 WHERE - - col1 + - col1 + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 - + 19 FROM tab0 AS cor0
----
-118
-29
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5184
SELECT ALL - 36 + + CAST( - + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-41
-50
-83

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL - 36 + + CAST ( - + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-41
-50
-83

query II rowsort
SELECT ALL - - col0 - col2 AS col0, col2 * + 82 AS col2 FROM tab0 AS cor0
----
-2
8118
-32
3854
77
820

query I rowsort
SELECT + + ( col2 ) * + 40 FROM tab2 AS cor0
----
1600
2320
920

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT DISTINCT + + MAX( col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5187
SELECT DISTINCT + + MAX ( col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5188
SELECT DISTINCT CAST( NULL AS SIGNED ), col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-5188
SELECT DISTINCT CAST ( NULL AS INTEGER ), col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 33 / - col2 IN ( + col0, + col1, col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col0 AS col2, 40 * + 68 AS col2 FROM tab2 WHERE NOT + col1 <= - - col0
----
-46
2720
-64
2720

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL NOT IN ( - col1, + 36 * - col1 - + col2 ) )
----

query I rowsort
SELECT DISTINCT 36 * - col0 FROM tab0
----
-3132
-3492
-540

query I rowsort
SELECT - 42 * - col1 AS col0 FROM tab1
----
1974
210
588

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + - col1 IS NOT NULL
----

query I rowsort
SELECT - ( + - 50 ) AS col0 FROM tab2
----
50
50
50

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE - col0 * - - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 * + - 68 FROM tab1
----
-3196
-340
-952

onlyif mysql # aggregate syntax: 
query II rowsort label-5198
SELECT 72, COUNT( + 88 ) AS col2 FROM tab1
----
72
3

skipif mysql # not compatible
query II rowsort label-5198
SELECT 72, COUNT ( + 88 ) AS col2 FROM tab1
----
72
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5199
SELECT + CAST( NULL AS DECIMAL ), col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-5199
SELECT + CAST ( NULL AS REAL ), col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # DIV for integer division: 
query II rowsort label-5200
SELECT + col1 AS col1, 0 DIV col1 DIV + + col0 FROM tab0 AS cor0
----
1
0
21
0
81
0

skipif mysql # not compatible
query II rowsort label-5200
SELECT + col1 AS col1, 0 / col1 / + + col0 FROM tab0 AS cor0
----
1
0
21
0
81
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5201
SELECT ALL + CAST( - ( - 59 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-5201
SELECT ALL + CAST ( - ( - 59 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
59
59
59

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * 33 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT ALL MIN( ALL - + 41 ) AS col2 FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL MIN ( ALL - + 41 ) AS col2 FROM tab0 AS cor0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5204
SELECT - 84 + + 56 + + CAST( NULL AS SIGNED ) * - 66 / - col1, - col0 AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query II rowsort label-5204
SELECT - 84 + + 56 + + CAST ( NULL AS INTEGER ) * - 66 / - col1, - col0 AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5205
SELECT * FROM tab1 WHERE + - col0 = + CAST( - + col1 AS SIGNED ) * + col2
----

skipif mysql # not compatible
query III rowsort label-5205
SELECT * FROM tab1 WHERE + - col0 = + CAST ( - + col1 AS INTEGER ) * + col2
----

query I rowsort
SELECT + col2 + + col1 + - 82 AS col2 FROM tab1
----
-18
28
33

query I rowsort
SELECT col1 + ( - + 9 ) AS col1 FROM tab0
----
-8
12
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5208
SELECT - col2 + + col2 AS col2, + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-5208
SELECT - col2 + + col2 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
0
NULL
0
NULL
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5209
SELECT DISTINCT - col0 - col0 DIV 36 AS col2 FROM tab1
----
-52
-87
-93

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT - col0 - col0 / 36 AS col2 FROM tab1
----
-52
-87
-93

query I rowsort
SELECT + 95 + + 92 FROM tab2
----
187
187
187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 62 col2 FROM tab1 WHERE - - col1 IS NOT NULL
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT - MAX( col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5212
SELECT - MAX ( col0 ) AS col0 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT ALL - 48 - - + ( - col1 ) FROM tab0 AS cor0
----
-129
-49
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab1 cor0 WHERE NULL = - 79
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5215
SELECT ALL col1 DIV - 61 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL col1 / - 61 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT - - MIN( + 39 ) FROM tab0 cor0
----
39

skipif mysql # not compatible
query I rowsort label-5216
SELECT - - MIN ( + 39 ) FROM tab0 cor0
----
39

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 32 BETWEEN col2 AND - - col2
----

query II rowsort
SELECT col2, col0 AS col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT ALL - col2 / - col1 * col2 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + 92 * + col2 - + col0 + col2 AND ( + 46 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 11 >= - + col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5221
SELECT - col2 AS col2, + CAST( + - 57 AS SIGNED ) * + col2 * + - 4 * + - col2 + - ( + col0 ) + - 62 DIV + 32 AS col0 FROM tab2 AS cor0
----
-23
-120659
-40
-364865
-58
-767068

skipif mysql # not compatible
query II rowsort label-5221
SELECT - col2 AS col2, + CAST ( + - 57 AS INTEGER ) * + col2 * + - 4 * + - col2 + - ( + col0 ) + - 62 / + 32 AS col0 FROM tab2 AS cor0
----
-23
-120659
-40
-364865
-58
-767068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5222
SELECT COUNT( * ) AS col0, + 56 + - + 10 * COUNT( * ) + + 12 AS col0 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) * - + 62 * - + col0 NOT BETWEEN + col2 AND NULL
----
0
68

skipif mysql # not compatible
query II rowsort label-5222
SELECT COUNT ( * ) AS col0, + 56 + - + 10 * COUNT ( * ) + + 12 AS col0 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) * - + 62 * - + col0 NOT BETWEEN + col2 AND NULL
----
0
68

query II rowsort
SELECT - 66 * + 91 AS col1, + col0 + + - col0 AS col2 FROM tab2
----
-6006
0
-6006
0
-6006
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT - 32 * - + ( - 40 ) * - COUNT( * ) AS col1 FROM tab0
----
3840

skipif mysql # not compatible
query I rowsort label-5224
SELECT - 32 * - + ( - 40 ) * - COUNT ( * ) AS col1 FROM tab0
----
3840

onlyif mysql # DIV for integer division: 
query I rowsort label-5225
SELECT + col0 DIV - - col0 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5225
SELECT + col0 / - - col0 AS col1 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5226
SELECT ALL - ( COUNT( * ) ) DIV - - 30 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL - ( COUNT ( * ) ) / - - 30 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5227
SELECT ALL * FROM tab2 WHERE CAST( 26 AS SIGNED ) > + + col0 * + ( - - 15 ) * + col2 + - - col2
----

skipif mysql # not compatible
query III rowsort label-5227
SELECT ALL * FROM tab2 WHERE CAST ( 26 AS INTEGER ) > + + col0 * + ( - - 15 ) * + col2 + - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 * + - col2 col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT 99 + SUM( DISTINCT - 71 ) FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5229
SELECT 99 + SUM ( DISTINCT - 71 ) FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT - + COUNT( + - col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5230
SELECT - + COUNT ( + - col1 ) FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5231
SELECT ALL col2 DIV + + col1 + - col2 AS col1 FROM tab0
----
-10
-47
0

skipif mysql # not compatible
query I rowsort label-5231
SELECT ALL col2 / + + col1 + - col2 AS col1 FROM tab0
----
-10
-47
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( ( - + 60 ), - ( + col1 ), 95, 83 )
----

query I rowsort
SELECT DISTINCT - ( + 23 ) + + - ( + + ( 26 ) ) AS col1 FROM tab0 AS cor0
----
-49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 < col1
----
15
81
47

onlyif mysql # DIV for integer division: 
query II rowsort label-5235
SELECT col1 AS col1, 87 DIV + col1 col2 FROM tab1
----
14
6
47
1
5
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5235
SELECT col1 AS col1, 87 / + col1 col2 FROM tab1
----
14
6
47
1
5
17

query III rowsort
SELECT ALL * FROM tab2 WHERE + 61 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 10 IS NULL
----

query I rowsort
SELECT DISTINCT + - 38 * - ( + - col2 ) * - - col2 FROM tab1 AS cor0
----
-132278
-175712
-350208

query I rowsort
SELECT DISTINCT col2 * - - 34 - col2 AS col0 FROM tab2 AS cor0
----
1320
1914
759

query I rowsort
SELECT DISTINCT col0 - col0 + - - col0 * - 20 AS col1 FROM tab0 AS cor0 WHERE ( NOT + + col2 <= + - col2 * - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5241
SELECT ALL - + CAST( NULL AS SIGNED ) * + 70 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5241
SELECT ALL - + CAST ( NULL AS INTEGER ) * + 70 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5242
SELECT ALL - COUNT( * ) DIV - 7 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL - COUNT ( * ) / - 7 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5243
SELECT SUM( ALL - + 32 ) col2, - 1 * - 0 AS col1 FROM tab0 AS cor0
----
-96
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5243
SELECT SUM ( ALL - + 32 ) col2, - 1 * - 0 AS col1 FROM tab0 AS cor0
----
-96
0

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT + ( + 38 ) AS col2 FROM tab2 AS cor0
----
38
38
38

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE - 19 * + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5247
SELECT DISTINCT col1, CAST( col2 AS SIGNED ) FROM tab0
----
1
99
21
10
81
47

skipif mysql # not compatible
query II rowsort label-5247
SELECT DISTINCT col1, CAST ( col2 AS INTEGER ) FROM tab0
----
1
99
21
10
81
47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col0 + - - 8 + + 68 > + + 3
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT + 63 * - col2 FROM tab0 AS cor0
----
-2961
-6237
-630

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5250
SELECT + + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 * - - CAST( NULL AS DECIMAL ) <> 40 / + 61 - - - 67 - + col2 * col1 + col1
----
0

skipif mysql # not compatible
query I rowsort label-5250
SELECT + + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 * - - CAST ( NULL AS REAL ) <> 40 / + 61 - - - 67 - + col2 * col1 + col1
----
0

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE 80 * - - col2 + + col1 + + + 64 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT DISTINCT - 59 - - ( - MIN( DISTINCT 53 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-112

skipif mysql # not compatible
query I rowsort label-5252
SELECT DISTINCT - 59 - - ( - MIN ( DISTINCT 53 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT ALL + ( SUM( 10 ) ) * - 79 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - - col1 + - col1 + ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL + ( SUM ( 10 ) ) * - 79 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - - col1 + - col1 + ( - col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT + COUNT( * ) + - + 63 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-5254
SELECT + COUNT ( * ) + - + 63 FROM tab2 AS cor0
----
-60

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * + + 4 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 67 * + 76 + + - ( - col2 ) AS col2 FROM tab1
----
5151
5160
5188

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT DISTINCT COUNT( * ) + + COUNT( * ) * COUNT( * ) AS col0 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-5257
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1
----
12

query II rowsort
SELECT col1 AS col2, + col2 AS col2 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT DISTINCT 23 + - - col0 FROM tab0
----
110
120
38

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + 48 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5261
SELECT ALL CAST( NULL AS SIGNED ) - - + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5261
SELECT ALL CAST ( NULL AS INTEGER ) - - + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 48 + 8 * - 95 FROM tab0 AS cor0
----
-808

query I rowsort
SELECT ALL - col2 * - col0 * col0 * 3 FROM tab0 AS cor0
----
227070
2794473
31725

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT DISTINCT - - SUM( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-5264
SELECT DISTINCT - - SUM ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5265
SELECT + CAST( + AVG ( - 96 ) AS SIGNED ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
-96

skipif mysql # not compatible
query I rowsort label-5265
SELECT + CAST ( + AVG ( - 96 ) AS INTEGER ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5266
SELECT - CAST( + + 29 AS SIGNED ) * - + 26 * ( COUNT( * ) ) FROM tab2
----
2262

skipif mysql # not compatible
query I rowsort label-5266
SELECT - CAST ( + + 29 AS INTEGER ) * - + 26 * ( COUNT ( * ) ) FROM tab2
----
2262

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 * - + col1 * col0 NOT BETWEEN NULL AND - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5269
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 + + CAST( NULL AS SIGNED ) - 50 * + col1 AND - 41 * - - 67
----

skipif mysql # not compatible
query III rowsort label-5269
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 + + CAST ( NULL AS INTEGER ) - 50 * + col1 AND - 41 * - - 67
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5270
SELECT ALL * FROM tab0 AS cor0 WHERE col1 >= + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5270
SELECT ALL * FROM tab0 AS cor0 WHERE col1 >= + - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5271
SELECT DISTINCT col0 DIV + + col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5271
SELECT DISTINCT col0 / + + col0 FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 col0 FROM tab0 cor0
----
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 60 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5274
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5274
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5275
SELECT ALL 60 + + CAST( - - CAST( - MAX( ALL col2 ) AS SIGNED ) AS SIGNED ) AS col2 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-5275
SELECT ALL 60 + + CAST ( - - CAST ( - MAX ( ALL col2 ) AS INTEGER ) AS INTEGER ) AS col2 FROM tab1
----
-36

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( NULL > NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 92 * 84 col0 FROM tab1
----
-7728

query I rowsort
SELECT DISTINCT 54 AS col0 FROM tab0, tab1 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5279
SELECT DISTINCT * FROM tab2 WHERE NOT col1 = CAST( NULL AS SIGNED ) * + col2 * col0
----

skipif mysql # not compatible
query III rowsort label-5279
SELECT DISTINCT * FROM tab2 WHERE NOT col1 = CAST ( NULL AS INTEGER ) * + col2 * col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 76 * col1 + + - col0 >= - col0
----

query I rowsort
SELECT + 65 AS col0 FROM tab1 AS cor0 WHERE col1 + col1 IS NULL
----

query I rowsort
SELECT - 80 * col1 + - + 99 AS col0 FROM tab0 AS cor0
----
-1779
-179
-6579

query I rowsort
SELECT - 61 + col2 AS col0 FROM tab0
----
-14
-51
38

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL <= NULL )
----

query I rowsort
SELECT DISTINCT 14 + + 37 AS col1 FROM tab0 AS cor0
----
51

query III rowsort
SELECT * FROM tab2 cor0 WHERE 27 IS NULL
----

query I rowsort
SELECT - - 42 * - col1 AS col2 FROM tab2 AS cor0
----
-2142
-2814
-3234

onlyif mysql # DIV for integer division: 
query I rowsort label-5288
SELECT DISTINCT + + 80 DIV - + col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5288
SELECT DISTINCT + + 80 / - + col0 FROM tab1 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5289
SELECT - ( - ( - col2 ) ) DIV col2 + 9 FROM tab2 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-5289
SELECT - ( - ( - col2 ) ) / col2 + 9 FROM tab2 AS cor0
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5290
SELECT + - CAST( NULL AS SIGNED ), col1 + - ( col0 ) * + 83 - - + col1 * - col1 - + col1 AS col2 FROM tab1 cor0
----
NULL
-4429
NULL
-7080
NULL
-9762

skipif mysql # not compatible
query II rowsort label-5290
SELECT + - CAST ( NULL AS INTEGER ), col1 + - ( col0 ) * + 83 - - + col1 * - col1 - + col1 AS col2 FROM tab1 cor0
----
NULL
-4429
NULL
-7080
NULL
-9762

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5291
SELECT ALL + col1 AS col0 FROM tab2 WHERE NOT - col0 >= - - CAST( - 48 AS SIGNED )
----
67
77

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL + col1 AS col0 FROM tab2 WHERE NOT - col0 >= - - CAST ( - 48 AS INTEGER )
----
67
77

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= + 42 - - col1 * ( - ( col0 ) )
----

query I rowsort
SELECT col1 - col0 * 62 FROM tab0
----
-5373
-6013
-849

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 + 11 col2 FROM tab2
----
89
89
89

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + + 47 <= - + 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT DISTINCT - 66 * - - 50 + 47 * 31 * COUNT( * ) AS col2 FROM tab2
----
1071

skipif mysql # not compatible
query I rowsort label-5296
SELECT DISTINCT - 66 * - - 50 + 47 * 31 * COUNT ( * ) AS col2 FROM tab2
----
1071

query I rowsort
SELECT ALL - 90 + - col1 + - col2 AS col0 FROM tab1
----
-154
-200
-205

query I rowsort
SELECT ALL - col2 * + - ( - + col1 ) AS col2 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5299
SELECT ALL - + col2 DIV 82 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL - + col2 / 82 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT DISTINCT - - MIN( + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5300
SELECT DISTINCT - - MIN ( + col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT + - 21 FROM tab1 cor0
----
-21
-21
-21

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT - MAX( - ( + col2 ) ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5303
SELECT - MAX ( - ( + col2 ) ) FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5304
SELECT ALL - 68 * CAST( + - 88 AS SIGNED ), + col2 * + + col2 + + - col0 * + col2 + - + 31 col1 FROM tab0 AS cor0
----
5984
-801
5984
1473
5984
167

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5304
SELECT ALL - 68 * CAST ( + - 88 AS INTEGER ), + col2 * + + col2 + + - col0 * + col2 + - + 31 col1 FROM tab0 AS cor0
----
5984
-801
5984
1473
5984
167

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT DISTINCT - MAX( - col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5305
SELECT DISTINCT - MAX ( - col2 ) FROM tab0 AS cor0
----
10

query III rowsort
SELECT * FROM tab1 WHERE NOT - 91 <= + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 * - - ( + col1 ) NOT IN ( - + col2, 18, + + 96 * - col1 * + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 24 + + - 45 + + col1 * - ( - 80 ) * - - col1 * - col1 AS col0 FROM tab0
----
-101
-42515301
-740901

query III rowsort
SELECT * FROM tab0 WHERE NOT - 66 BETWEEN col2 AND 72
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col2 + - + 19 * col2 * col1 + + - ( - + 41 ) AS col0, 34 FROM tab0
----
-1741
34
-3939
34
-72245
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5311
SELECT - 70 + 49 DIV col1 AS col2 FROM tab2
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-5311
SELECT - 70 + 49 / col1 AS col2 FROM tab2
----
-70
-70
-70

query I rowsort
SELECT ALL ( + col0 ) * + col0 * - + col1 AS col2 FROM tab1
----
-36125
-36414
-389207

query I rowsort
SELECT DISTINCT - 57 * col2 FROM tab0
----
-2679
-5643
-570

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5314
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) BETWEEN NULL AND + - 18 / + col1
----

skipif mysql # not compatible
query III rowsort label-5314
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) BETWEEN NULL AND + - 18 / + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 <= + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col0, 94 AS col2 FROM tab2 AS cor0
----
46
94
64
94
75
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5317
SELECT ALL + col0 DIV 90 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5317
SELECT ALL + col0 / 90 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5318
SELECT + col2 FROM tab0 cor0 WHERE ( NULL NOT IN ( - - col1 * - - col2 + CAST( NULL AS SIGNED ) * - + 48, - col2 ) )
----

skipif mysql # not compatible
query I rowsort label-5318
SELECT + col2 FROM tab0 cor0 WHERE ( NULL NOT IN ( - - col1 * - - col2 + CAST ( NULL AS INTEGER ) * - + 48, - col2 ) )
----

query I rowsort
SELECT DISTINCT 57 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
57

query I rowsort
SELECT ALL + col1 + - + col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + 86 + 42 + col0 AS col2 FROM tab1
----
179
213
219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5322
SELECT - + SUM( + - col2 ) * ( + ( + - CAST( NULL AS SIGNED ) ) ) + - 37 * - 90 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5322
SELECT - + SUM ( + - col2 ) * ( + ( + - CAST ( NULL AS INTEGER ) ) ) + - 37 * - 90 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - col0 + 88 FROM tab1 cor0
----
-3
3
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT DISTINCT - + COUNT( * ) * + ( + 67 ) FROM tab1 cor0
----
-201

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT - + COUNT ( * ) * + ( + 67 ) FROM tab1 cor0
----
-201

query I rowsort
SELECT ALL + col0 - 50 FROM tab2 cor0
----
-4
14
25

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col0, col2 FROM tab0
----
-10
10
-47
47
-99
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT - col1 / - + col0 > + col0 * - 79 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0 AS col2, col2 - - 18 FROM tab1
----
51
114
85
77
91
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT ALL SUM( ALL - ( - ( col2 ) ) ) * + + COUNT( + + col0 ) FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-5330
SELECT ALL SUM ( ALL - ( - ( col2 ) ) ) * + + COUNT ( + + col0 ) FROM tab1
----
669

query I rowsort
SELECT ALL 86 FROM tab0 WHERE NOT col0 < + + col1
----
86
86

query I rowsort
SELECT DISTINCT - - col2 / + + col0 / col1 FROM tab2 WHERE NOT - 19 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5333
SELECT + ( 69 ) DIV + ( + MAX( + 10 ) ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5333
SELECT + ( 69 ) / + ( + MAX ( + 10 ) ) AS col2 FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5334
SELECT DISTINCT + + CAST( + MIN( ALL - col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT + + CAST ( + MIN ( ALL - col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-47

query II rowsort
SELECT + col2 AS col0, col2 AS col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 26 col1 FROM tab2 cor0
----
26

query I rowsort
SELECT + 35 FROM tab1 WHERE - 31 * - ( 11 ) IN ( + 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT DISTINCT + COUNT( + 63 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5338
SELECT DISTINCT + COUNT ( + 63 ) col2 FROM tab0
----
3

query I rowsort
SELECT ( - 49 ) - - col0 AS col2 FROM tab1
----
2
36
42

query I rowsort
SELECT + 17 * + ( ( 67 ) ) FROM tab1
----
1139
1139
1139

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT DISTINCT + COUNT( * ) + 10 AS col2 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-5341
SELECT DISTINCT + COUNT ( * ) + 10 AS col2 FROM tab2
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - col0 * col0 col1 FROM tab2
----
-2093
-4056
-5567

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 col0 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT DISTINCT - 9 - COUNT( - 81 ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-5344
SELECT DISTINCT - 9 - COUNT ( - 81 ) FROM tab2
----
-12

query I rowsort
SELECT DISTINCT col1 + + 69 * - col2 AS col2 FROM tab0
----
-3162
-669
-6830

query I rowsort
SELECT + 55 AS col1 FROM tab1 WHERE NOT col2 + 75 * col0 NOT BETWEEN ( - col0 + col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT ALL MIN( DISTINCT col1 ) FROM tab0 WHERE NULL > col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5347
SELECT ALL MIN ( DISTINCT col1 ) FROM tab0 WHERE NULL > col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT ALL COUNT( * ) * COUNT( DISTINCT col1 ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL COUNT ( * ) * COUNT ( DISTINCT col1 ) AS col2 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT 39 - - MIN( ALL col2 ) FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-5349
SELECT 39 - - MIN ( ALL col2 ) FROM tab0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT DISTINCT COUNT( * ) * + 26 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT COUNT ( * ) * + 26 FROM tab1
----
78

query I rowsort
SELECT ALL col0 * 22 FROM tab1
----
1122
1870
2002

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 / col1 + col1 ) IN ( 89 + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT col1 < 75
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT ( - 62 ) + COUNT( - 40 ) * + COUNT( * ) col2 FROM tab0 WHERE NOT NULL >= NULL
----
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5354
SELECT ( - 62 ) + COUNT ( - 40 ) * + COUNT ( * ) col2 FROM tab0 WHERE NOT NULL >= NULL
----
-62

query I rowsort
SELECT + col2 * col0 + + ( 62 ) FROM tab0 AS cor0
----
767
932
9665

query I rowsort
SELECT col2 + 34 * - 57 FROM tab1 cor0
----
-1842
-1870
-1879

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT SUM( ALL ( + 54 ) ) + + MAX( - 71 + + 22 ) col0 FROM tab1 WHERE - col1 BETWEEN NULL AND col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5357
SELECT SUM ( ALL ( + 54 ) ) + + MAX ( - 71 + + 22 ) col0 FROM tab1 WHERE - col1 BETWEEN NULL AND col0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 32 AS col2 FROM tab0 WHERE col1 * + 10 >= NULL
----

query I rowsort
SELECT DISTINCT col1 + ( col2 ) AS col1 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT DISTINCT + COUNT( 0 ) + ( - COUNT( DISTINCT 83 ) ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT + COUNT ( 0 ) + ( - COUNT ( DISTINCT 83 ) ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 21 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + col0 - 76 FROM tab1 AS cor0
----
-127
-161
-167

query I rowsort
SELECT + col0 - - 21 * + col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 27 * 56 + 37 FROM tab1 cor0 WHERE 1 BETWEEN ( NULL ) AND ( - col1 / + col2 + - 37 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT ( - COUNT( * ) ) - + COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5366
SELECT ( - COUNT ( * ) ) - + COUNT ( * ) FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT DISTINCT + SUM( ALL col1 ) / + 93 AS col0 FROM tab1 AS cor0 WHERE + 55 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT + SUM ( ALL col1 ) / + 93 AS col0 FROM tab1 AS cor0 WHERE + 55 > NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5368
SELECT COUNT( ( col1 ) ) - + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5368
SELECT COUNT ( ( col1 ) ) - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL NOT IN ( col1 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT DISTINCT COUNT( * ) * 99 - 85 FROM tab0 AS cor0
----
212

skipif mysql # not compatible
query I rowsort label-5370
SELECT DISTINCT COUNT ( * ) * 99 - 85 FROM tab0 AS cor0
----
212

onlyif mysql # DIV for integer division: 
query I rowsort label-5371
SELECT ALL + 68 DIV ( 20 ) FROM tab1 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-5371
SELECT ALL + 68 / ( 20 ) FROM tab1 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT + COUNT( * ) * + 96 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-5372
SELECT + COUNT ( * ) * + 96 FROM tab1 AS cor0
----
288

query I rowsort
SELECT col1 * col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5374
SELECT col2 * 82 + col1 * ( - 16 * + col1 + 3 ) AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-5374
SELECT col2 * 82 + col1 * ( - 16 * + col1 + 3 ) AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( - CAST ( NULL AS REAL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 90 * - col0 * + col1 col2 FROM tab0
----
-109350
-164430
-8730

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5376
SELECT ALL ( + + CAST( - col0 AS SIGNED ) ) DIV - col2 AS col2 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL ( + + CAST ( - col0 AS INTEGER ) ) / - col2 AS col2 FROM tab0
----
0
0
8

query I rowsort
SELECT DISTINCT col0 * - - 47 AS col1 FROM tab1
----
2397
3995
4277

query I rowsort
SELECT ALL 25 * col1 FROM tab0
----
2025
25
525

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT ALL + MAX( 88 ) FROM tab2 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5379
SELECT ALL + MAX ( 88 ) FROM tab2 WHERE NOT NULL >= NULL
----
NULL

query I rowsort
SELECT col0 / - 48 + - col1 FROM tab0 WHERE NOT NULL BETWEEN 83 AND ( col2 * - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT + MAX( - - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5382
SELECT + MAX ( - - col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5383
SELECT DISTINCT - col2 DIV 7 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-13
-8
-9

skipif mysql # not compatible
query I rowsort label-5383
SELECT DISTINCT - col2 / 7 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-13
-8
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5384
SELECT + 76 FROM tab1 WHERE NOT col0 BETWEEN ( - col1 * + 39 + CAST( + col0 AS SIGNED ) ) AND ( - 90 )
----
76
76
76

skipif mysql # not compatible
query I rowsort label-5384
SELECT + 76 FROM tab1 WHERE NOT col0 BETWEEN ( - col1 * + 39 + CAST ( + col0 AS INTEGER ) ) AND ( - 90 )
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT DISTINCT COUNT( * ) * 56 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
504

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5385
SELECT DISTINCT COUNT ( * ) * 56 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
504

query I rowsort
SELECT ALL - 60 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5387
SELECT - ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5387
SELECT - ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5388
SELECT DISTINCT + col2 AS col0, + CAST( + - col1 AS SIGNED ) FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

skipif mysql # not compatible
query II rowsort label-5388
SELECT DISTINCT + col2 AS col0, + CAST ( + - col1 AS INTEGER ) FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col2, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5390
SELECT DISTINCT + + COUNT( * ), + COUNT( * ) * + + 66 AS col2 FROM tab0 cor0
----
3
198

skipif mysql # not compatible
query II rowsort label-5390
SELECT DISTINCT + + COUNT ( * ), + COUNT ( * ) * + + 66 AS col2 FROM tab0 cor0
----
3
198

query I rowsort
SELECT DISTINCT - 59 * + col0 - + col2 FROM tab2 cor0 WHERE NOT col0 IS NULL
----
-2737
-3816
-4483

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 10 IN ( 72 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5393
SELECT - CAST( NULL AS SIGNED ) * + MIN( DISTINCT 7 ) FROM tab1 AS cor0 WHERE NULL BETWEEN 53 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5393
SELECT - CAST ( NULL AS INTEGER ) * + MIN ( DISTINCT 7 ) FROM tab1 AS cor0 WHERE NULL BETWEEN 53 AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2, - col2 * + 96 col0 FROM tab1 AS cor0
----
-59
-5664
-68
-6528
-96
-9216

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 36 - - col2 * + col1 > + ( + col0 ) * col1
----
85
5
59
91
47
68

query I rowsort
SELECT ALL + col1 + + col2 FROM tab2 WHERE - col1 * - col0 + col0 <> NULL
----

query I rowsort
SELECT + 65 + - col2 AS col2 FROM tab1
----
-3
-31
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5398
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( + CAST( NULL AS SIGNED ) + - 73 )
----

skipif mysql # not compatible
query III rowsort label-5398
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( + CAST ( NULL AS INTEGER ) + - 73 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT - ( + - ( + ( 56 ) ) ) + - COUNT( * ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-5399
SELECT - ( + - ( + ( 56 ) ) ) + - COUNT ( * ) FROM tab2
----
53

query I rowsort
SELECT ALL ( - 54 ) AS col2 FROM tab0
----
-54
-54
-54

query I rowsort
SELECT 93 + + col1 * - col0 AS col2 FROM tab1
----
-332
-4184
-621

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5403
SELECT ALL col2 DIV 99 + - col2 FROM tab0
----
-10
-47
-98

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL col2 / 99 + - col2 FROM tab0
----
-10
-47
-98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) <= col0 * 19 * col2
----

query I rowsort
SELECT DISTINCT + ( + 96 ) - 98 * + col2 + col0 FROM tab2
----
-2112
-3760
-5513

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT DISTINCT + SUM( ( - col1 ) ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT + SUM ( ( - col1 ) ) FROM tab0 cor0
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5407
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5408
SELECT ALL - MIN( ALL - CAST( NULL AS SIGNED ) ) * - COUNT( DISTINCT 63 ) - + SUM( col0 ) + + 7 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5408
SELECT ALL - MIN ( ALL - CAST ( NULL AS INTEGER ) ) * - COUNT ( DISTINCT 63 ) - + SUM ( col0 ) + + 7 FROM tab0
----
NULL

query I rowsort
SELECT ALL col1 + - - col0 - - col2 FROM tab2
----
120
181
200

query I rowsort
SELECT ALL 79 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN - 86 AND - + col0
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT + col1 * - + 17 BETWEEN - col2 AND NULL
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5413
SELECT DISTINCT COUNT( * ) * + + COUNT( ALL - + col0 ) DIV + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT COUNT ( * ) * + + COUNT ( ALL - + col0 ) / + COUNT ( * ) FROM tab2
----
3

query II rowsort
SELECT DISTINCT + 58 AS col1, - col1 AS col1 FROM tab1
----
58
-14
58
-47
58
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT DISTINCT MAX( ( col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5415
SELECT DISTINCT MAX ( ( col0 ) ) FROM tab0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5416
SELECT - 49 DIV - MIN( - 89 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5416
SELECT - 49 / - MIN ( - 89 ) AS col0 FROM tab1
----
0

query II rowsort
SELECT ALL 60 AS col1, + 4 FROM tab0
----
60
4
60
4
60
4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < ( - 53 / - col0 * - + col1 * - + 26 )
----

query I rowsort
SELECT - ( - ( col1 ) ) AS col1 FROM tab2
----
51
67
77

query II rowsort
SELECT ALL 94, + col0 FROM tab1
----
94
51
94
85
94
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT COUNT( ALL - col1 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5421
SELECT COUNT ( ALL - col1 ) col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + col0 * + + 85 * col1 + - col0 FROM tab2
----
199364
418816
427050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( + ( + col1 ) ) + + ( + col0 ) * + 92 FROM tab2
----
4283
5965
6967

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT + ( + - 57 ) + + + COUNT( * ) FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-5425
SELECT + ( + - 57 ) + + + COUNT ( * ) FROM tab0 AS cor0
----
-54

query II rowsort
SELECT + + col2 + + col1 AS col2, col2 FROM tab1 AS cor0
----
110
96
115
68
64
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT ALL + MIN( + col2 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL + MIN ( + col2 ) AS col2 FROM tab1 AS cor0
----
59

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5429
SELECT - + col0 DIV - col0 + + col0 + - col0 * + 37 * - - col2 + - 26 FROM tab2 AS cor0
----
-160900
-39125
-94681

skipif mysql # not compatible
query I rowsort label-5429
SELECT - + col0 / - col0 + + col0 + - col0 * + 37 * - - col2 + - 26 FROM tab2 AS cor0
----
-160900
-39125
-94681

onlyif mysql # DIV for integer division: 
query I rowsort label-5430
SELECT - + ( + 93 ) DIV + - 32 AS col0 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-5430
SELECT - + ( + 93 ) / + - 32 AS col0 FROM tab2 AS cor0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5431
SELECT DISTINCT + col1 * ( - 78 + col0 ) + + col0 AS col2 FROM tab2 cor0 WHERE NOT 9 = - - col1 + - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) + - - 56
----

skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT + col1 * ( - 78 + col0 ) + + col0 AS col2 FROM tab2 cor0 WHERE NOT 9 = - - col1 + - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) + - - 56
----

query I rowsort
SELECT - 55 * col1 AS col1 FROM tab0
----
-1155
-4455
-55

query II rowsort
SELECT DISTINCT col1, ( - col2 ) FROM tab1
----
14
-96
47
-68
5
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5434
SELECT + CAST( NULL AS SIGNED ) AS col0, col2 * + + col1 FROM tab1
----
NULL
1344
NULL
295
NULL
3196

skipif mysql # not compatible
query II rowsort label-5434
SELECT + CAST ( NULL AS INTEGER ) AS col0, col2 * + + col1 FROM tab1
----
NULL
1344
NULL
295
NULL
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT - COUNT( col0 ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5435
SELECT - COUNT ( col0 ) col1 FROM tab1
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col0 * - - 0 * 37 NOT BETWEEN + - 9 AND - - 67
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5437
SELECT - 33, + col1 DIV 18 * + col0 col0 FROM tab2
----
-33
225
-33
256
-33
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5437
SELECT - 33, + col1 / 18 * + col0 col0 FROM tab2
----
-33
225
-33
256
-33
92

query I rowsort
SELECT DISTINCT + 96 FROM tab1 WHERE - 82 IS NOT NULL
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 16 col0 FROM tab2 AS cor0
----
67
83
93

query I rowsort
SELECT DISTINCT 75 - + 95 AS col0 FROM tab2 AS cor0
----
-20

query I rowsort
SELECT DISTINCT + ( + + col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) < col0 / + 11 + + ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5442
SELECT DISTINCT ( col1 ) * col0 + + col0 DIV CAST( + - col1 AS SIGNED ) FROM tab0
----
0
1215
1823

skipif mysql # not compatible
query I rowsort label-5442
SELECT DISTINCT ( col1 ) * col0 + + col0 / CAST ( + - col1 AS INTEGER ) FROM tab0
----
0
1215
1823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - - ( - 27 ) col2 FROM tab0 AS cor0
----
2349
2619
405

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5444
SELECT CAST( + ( + - col0 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5444
SELECT CAST ( + ( + - col0 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5445
SELECT * FROM tab1 cor0 WHERE NOT 69 NOT BETWEEN col2 AND - CAST( NULL AS DECIMAL ) * - 90 * + 66 + - col2 * - col2
----

skipif mysql # not compatible
query III rowsort label-5445
SELECT * FROM tab1 cor0 WHERE NOT 69 NOT BETWEEN col2 AND - CAST ( NULL AS REAL ) * - 90 * + 66 + - col2 * - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5446
SELECT ALL col0 DIV + - 49 col0, - 17 * 49 * + + col1 col2 FROM tab0 AS cor0
----
-1
-17493
-1
-833
0
-67473

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5446
SELECT ALL col0 / + - 49 col0, - 17 * 49 * + + col1 col2 FROM tab0 AS cor0
----
-1
-17493
-1
-833
0
-67473

onlyif mysql # DIV for integer division: 
query I rowsort label-5447
SELECT ( 69 ) DIV + col2 FROM tab0 cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-5447
SELECT ( 69 ) / + col2 FROM tab0 cor0
----
0
1
6

query I rowsort
SELECT ALL - + ( - col2 ) * - 96 AS col0 FROM tab2 AS cor0
----
-2208
-3840
-5568

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - col0 )
----

query I rowsort
SELECT ALL - col0 * 18 AS col0 FROM tab2 AS cor0
----
-1152
-1350
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT ALL - SUM( ALL + 1 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL - SUM ( ALL + 1 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL col1 * + 0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 BETWEEN 19 AND + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5454
SELECT 2 AS col1, - MIN( col0 ) / + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
2
NULL

skipif mysql # not compatible
query II rowsort label-5454
SELECT 2 AS col1, - MIN ( col0 ) / + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
2
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5455
SELECT - 66 DIV - + 3 FROM tab1 AS cor0
----
22
22
22

skipif mysql # not compatible
query I rowsort label-5455
SELECT - 66 / - + 3 FROM tab1 AS cor0
----
22
22
22

query I rowsort
SELECT + 23 FROM tab0 AS cor0 WHERE NOT ( col0 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5457
SELECT col2 DIV - col2 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5457
SELECT col2 / - col2 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + + ( col1 ) AS col0 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT DISTINCT - col0 * col1 FROM tab2 AS cor0 WHERE NULL <> + 75
----

query I rowsort
SELECT DISTINCT 45 + + + 26 AS col1 FROM tab1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT 29 * + - MIN( - col2 ) FROM tab2
----
1682

skipif mysql # not compatible
query I rowsort label-5461
SELECT 29 * + - MIN ( - col2 ) FROM tab2
----
1682

onlyif mysql # DIV for integer division: 
query I rowsort label-5462
SELECT DISTINCT ( - 36 ) * - col1 + - - 46 DIV + - 4 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
25
2905
745

skipif mysql # not compatible
query I rowsort label-5462
SELECT DISTINCT ( - 36 ) * - col1 + - - 46 / + - 4 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
25
2905
745

query I rowsort
SELECT ALL - col1 * - 88 + + + col0 FROM tab1 AS cor0
----
1283
4227
525

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - 71, col0 - - 2 * + ( - 56 ), + col0 )
----

query II rowsort
SELECT + 34, col2 FROM tab0 cor0
----
34
10
34
47
34
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - - col2 col1 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE + - col2 BETWEEN ( NULL ) AND ( NULL ) AND NULL NOT BETWEEN 82 + - 98 AND + 56 + col1
----

query I rowsort
SELECT - - 9 + - - col2 AS col2 FROM tab0 AS cor0
----
108
19
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT + COUNT( col1 ) + + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5469
SELECT + COUNT ( col1 ) + + COUNT ( * ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT - + col0 FROM tab0 cor0 WHERE ( - col0 ) IS NULL
----

query I rowsort
SELECT + - col1 + + + 26 + - col2 - col2 * col2 * - - col0 FROM tab1 AS cor0
----
-295923
-420873
-470100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 + + col2 * 56 col0 FROM tab0 AS cor0
----
2647
5559
575

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2 col2, + 13 AS col0 FROM tab0 AS cor0
----
10
13
47
13
99
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT DISTINCT - + MIN( + 26 ) FROM tab0 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-5474
SELECT DISTINCT - + MIN ( + 26 ) FROM tab0 cor0
----
-26

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 13 = NULL
----

query I rowsort
SELECT ALL 38 + - 38 - 98 - + ( + col2 ) * col1 FROM tab2
----
-1271
-3178
-3984

query II rowsort
SELECT col0 + + col2 + + 37 + + 39 * col1, 5 AS col2 FROM tab1
----
2029
5
376
5
730
5

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 41 <> - - 79 + + 6 * - 93
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5479
SELECT ALL 56 DIV - COUNT( * ) AS col1 FROM tab1 WHERE - - col0 NOT BETWEEN + 52 AND ( + + col2 * - col0 * - ( col1 ) + + - col0 - 37 )
----
-56

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL 56 / - COUNT ( * ) AS col1 FROM tab1 WHERE - - col0 NOT BETWEEN + 52 AND ( + + col2 * - col0 * - ( col1 ) + + - col0 - 37 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT DISTINCT COUNT( * ) + + + 0 AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5480
SELECT DISTINCT COUNT ( * ) + + + 0 AS col0 FROM tab1
----
3

query I rowsort
SELECT + col1 * + col2 + + 71 FROM tab0
----
170
281
3878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 22 + 14 col2 FROM tab0
----
-11
-63
26

query I rowsort
SELECT DISTINCT ( - + col2 ) * + col1 + col0 FROM tab2
----
-1127
-3016
-3811

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT DISTINCT - COUNT( * ) - + - 6 + + + COUNT( * ) + - 22 FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-5484
SELECT DISTINCT - COUNT ( * ) - + - 6 + + + COUNT ( * ) + - 22 FROM tab1
----
-16

query I rowsort
SELECT DISTINCT col1 + - col1 + + 10 + - - col2 AS col1 FROM tab2
----
33
50
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5486
SELECT CAST( CAST( - col1 AS SIGNED ) AS SIGNED ) FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5486
SELECT CAST ( CAST ( - col1 AS INTEGER ) AS INTEGER ) FROM tab0 cor0
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) <= - col0 + + 45
----

query I rowsort
SELECT ALL - 86 * + - 73 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aa1cd283b292de914956c172d1cab5d8

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT + - 5 * + COUNT( * ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5489
SELECT + - 5 * + COUNT ( * ) FROM tab0 cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT MIN( + col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10

skipif mysql # not compatible
query I rowsort label-5490
SELECT MIN ( + col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT DISTINCT MAX( - + col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5491
SELECT DISTINCT MAX ( - + col2 ) AS col0 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT DISTINCT + ( - col0 ) AS col0 FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT - ( - - 44 ) FROM tab0 AS cor0
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT DISTINCT - SUM( DISTINCT - - 66 ) AS col1 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT - SUM ( DISTINCT - - 66 ) AS col1 FROM tab0 AS cor0
----
-66

query II rowsort
SELECT DISTINCT - col0 * - ( + col1 ) * - + col0 AS col1, + 60 * + 5 + - 14 * - - col1 AS col2 FROM tab2 AS cor0 WHERE col2 * - 20 IN ( - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5496
SELECT DISTINCT + CAST( - - 56 AS SIGNED ) AS col0, - ( - SUM( - col1 ) ) AS col0 FROM tab1
----
56
-66

skipif mysql # not compatible
query II rowsort label-5496
SELECT DISTINCT + CAST ( - - 56 AS INTEGER ) AS col0, - ( - SUM ( - col1 ) ) AS col0 FROM tab1
----
56
-66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5497
SELECT * FROM tab0 WHERE NOT col2 <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5497
SELECT * FROM tab0 WHERE NOT col2 <= - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT 89 * + COUNT( * ) * 47 FROM tab2
----
12549

skipif mysql # not compatible
query I rowsort label-5498
SELECT 89 * + COUNT ( * ) * 47 FROM tab2
----
12549

query I rowsort
SELECT - col1 * - + 18 FROM tab1
----
252
846
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT ALL + COUNT( ALL 47 ) * + + ( + 32 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5500
SELECT ALL + COUNT ( ALL 47 ) * + + ( + 32 ) AS col2 FROM tab1
----
96

query I rowsort
SELECT DISTINCT + - 67 FROM tab2 cor0
----
-67

query II rowsort
SELECT ALL 73, col0 + - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT + - MIN( + 87 ) FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-5503
SELECT + - MIN ( + 87 ) FROM tab1 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT + + MIN( ALL - col0 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5504
SELECT + + MIN ( ALL - col0 ) FROM tab0 cor0
----
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( 25, col2, + ( + col2 ), + 6 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5506
SELECT ALL - col0 DIV CAST( - col2 AS SIGNED ) + - col2 - 0 DIV - + col1 FROM tab2 AS cor0
----
-21
-39
-57

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL - col0 / CAST ( - col2 AS INTEGER ) + - col2 - 0 / - + col1 FROM tab2 AS cor0
----
-21
-39
-57

query I rowsort
SELECT DISTINCT + ( 19 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
19

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 NOT IN ( 52 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL <= - 71 )
----

query I rowsort
SELECT DISTINCT col0 + + 8 AS col2 FROM tab0
----
105
23
95

query I rowsort
SELECT ALL - - 28 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - + col0 col2 FROM tab1 cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-5513
SELECT - - COUNT( * ), 99 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
96

skipif mysql # not compatible
query II rowsort label-5513
SELECT - - COUNT ( * ), 99 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5514
SELECT - col0 DIV - - col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5514
SELECT - col0 / - - col1 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + 48 - - col1 AS col0 FROM tab0 AS cor0
----
129
49
69

query I rowsort
SELECT + 71 * + + 29 + 41 FROM tab0 AS cor0
----
2100
2100
2100

onlyif mysql # DIV for integer division: 
query I rowsort label-5517
SELECT + 74 DIV - col0 AS col2 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5517
SELECT + 74 / - col0 AS col2 FROM tab2 cor0
----
-1
-1
0

query I rowsort
SELECT 6 - - + col1 FROM tab1
----
11
20
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT ALL - COUNT( * ) + ( + COUNT( * ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5519
SELECT ALL - COUNT ( * ) + ( + COUNT ( * ) ) AS col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE col0 * - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5521
SELECT 4 * ( + col0 ) + + col1 col0, col1 DIV - - col0 FROM tab2
----
235
1
333
1
367
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5521
SELECT 4 * ( + col0 ) + + col1 col0, col1 / - - col0 FROM tab2
----
235
1
333
1
367
0

query I rowsort
SELECT DISTINCT + col2 - + + col1 + col0 AS col1 FROM tab2 AS cor0
----
18
27
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT + 30 + - COUNT( * ) + - - COUNT( * ) * - ( 54 ) + + COUNT( * ) FROM tab2 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-5523
SELECT + 30 + - COUNT ( * ) + - - COUNT ( * ) * - ( 54 ) + + COUNT ( * ) FROM tab2 AS cor0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT + - 43 + + MIN( col0 ) FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5524
SELECT + - 43 + + MIN ( col0 ) FROM tab1 AS cor0
----
8

query I rowsort
SELECT + + col2 + - col1 + 90 FROM tab2 AS cor0
----
53
62
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT - - COUNT( col0 ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5526
SELECT - - COUNT ( col0 ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5527
SELECT - col2 AS col0, - 98 * 44 DIV ( + ( - col2 ) ) DIV - ( - col2 ) col1 FROM tab2 cor0
----
-23
8
-40
2
-58
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5527
SELECT - col2 AS col0, - 98 * 44 / ( + ( - col2 ) ) / - ( - col2 ) col1 FROM tab2 cor0
----
-23
8
-40
2
-58
1

query I rowsort
SELECT DISTINCT 45 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT SUM( DISTINCT 21 ) FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-5529
SELECT SUM ( DISTINCT 21 ) FROM tab0 AS cor0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-5530
SELECT - col0 DIV + - 27 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-5530
SELECT - col0 / + - 27 FROM tab2
----
1
2
2

query II rowsort
SELECT + ( - - col0 ) AS col0, col0 AS col2 FROM tab0 cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT DISTINCT + + SUM( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5532
SELECT DISTINCT + + SUM ( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT DISTINCT - - ( + col2 ) FROM tab2 AS cor0 WHERE NOT - 50 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5534
SELECT DISTINCT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0, col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-5534
SELECT DISTINCT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5535
SELECT DISTINCT - col1 * - + 61 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5535
SELECT DISTINCT - col1 * - + 61 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 - - - 80 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-33
-70
19

query I rowsort
SELECT + col2 + - 19 FROM tab1
----
40
49
77

query I rowsort
SELECT + + col1 AS col1 FROM tab0 WHERE NOT - 12 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT + 4 + - COUNT( * ) col1 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5539
SELECT + 4 + - COUNT ( * ) col1 FROM tab0
----
1

query I rowsort
SELECT + 58 * + + 31 + col1 AS col0 FROM tab2
----
1849
1865
1875

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT DISTINCT - - MIN( - col1 ) AS col0 FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5541
SELECT DISTINCT - - MIN ( - col1 ) AS col0 FROM tab1 cor0
----
-47

query I rowsort
SELECT ALL 24 * + 81 AS col2 FROM tab0
----
1944
1944
1944

query I rowsort
SELECT DISTINCT - 83 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT DISTINCT + 13 + + + COUNT( * ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-5544
SELECT DISTINCT + 13 + + + COUNT ( * ) FROM tab1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5545
SELECT ALL 20 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT - col2 * col0 / + col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL 20 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT - col2 * col0 / + col2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT 27 * + 72 + - COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
1935

skipif mysql # not compatible
query I rowsort label-5546
SELECT 27 * + 72 + - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
1935

query I rowsort
SELECT DISTINCT col1 + - 1 + col2 FROM tab1
----
109
114
63

query I rowsort
SELECT DISTINCT col0 * - 20 - col1 * - col0 AS col2 FROM tab2 AS cor0
----
1426
3525
3648

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT - col2 + + col2 - - col0 + col1 * - ( + col2 ) AS col1 FROM tab2 AS cor0
----
-1127
-3016
-3811

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col1 BETWEEN + col1 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + - + 4 + col1 * - + col2 * - col0 * col0 + - - col2 col0, - col0 * + + col0 AS col2 FROM tab0 AS cor0
----
1589506
-7569
856665
-225
931685
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT ALL - MAX( + 22 ) * - 88 FROM tab0 AS cor0
----
1936

skipif mysql # not compatible
query I rowsort label-5553
SELECT ALL - MAX ( + 22 ) * - 88 FROM tab0 AS cor0
----
1936

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5554
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col2 / - 56 * - - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col2 / - 56 * - - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 58 + col1 * + + 52 FROM tab0
----
110
1150
4270

query I rowsort
SELECT DISTINCT 97 * - ( - - ( col0 ) ) FROM tab1
----
-4947
-8245
-8827

query I rowsort
SELECT DISTINCT + col2 * - 88 + + + 22 AS col2 FROM tab2
----
-2002
-3498
-5082

onlyif mysql # DIV for integer division: 
query I rowsort label-5558
SELECT col1 DIV col1 * + col0 AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5558
SELECT col1 / col1 * + col0 AS col1 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5559
SELECT ALL + col0 DIV - col0 col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5559
SELECT ALL + col0 / - col0 col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL + col1 * 42 + + 29 + - col2 + + + 7 + + + 98 FROM tab2
----
2253
2890
3328

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE col2 * - col1 - 23 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5561
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE col2 * - col1 - 23 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT DISTINCT + - COUNT( * ) * 92 * + + COUNT( * ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-831

skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT + - COUNT ( * ) * 92 * + + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-831

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT - COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5563
SELECT - COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5564
SELECT CAST( - MAX( ALL - - 95 ) AS SIGNED ) DIV + - SUM( - + col1 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5564
SELECT CAST ( - MAX ( ALL - - 95 ) AS INTEGER ) / + - SUM ( - + col1 ) FROM tab1
----
-1

query I rowsort
SELECT ALL - + ( 82 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL <> col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT ALL ( 58 ) - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
49

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL ( 58 ) - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-5568
SELECT ALL - + COUNT( * ), 71 AS col0 FROM tab1 AS cor0
----
-3
71

skipif mysql # not compatible
query II rowsort label-5568
SELECT ALL - + COUNT ( * ), 71 AS col0 FROM tab1 AS cor0
----
-3
71

query II rowsort
SELECT col2 AS col2, - ( + + col2 ) FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

query II rowsort
SELECT col1, - col2 AS col1 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 * - col2 + + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5571
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 * - col2 + + col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5572
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * col0 AS col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT + CAST ( NULL AS REAL ) * col0 AS col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + + 56 * - col1 AS col2 FROM tab2 AS cor0
----
-2856
-3752
-4312

query I rowsort
SELECT + - col2 + col1 / + - col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT MAX( DISTINCT ( - 8 ) ) AS col1 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-5575
SELECT MAX ( DISTINCT ( - 8 ) ) AS col1 FROM tab1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT MIN( ALL - - col1 ) col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5576
SELECT MIN ( ALL - - col1 ) col2 FROM tab0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 53 NOT IN ( - col2 * - col1 + col1 )
----

query I rowsort
SELECT - col0 * - + ( col1 ) AS col0 FROM tab1 AS cor0
----
425
4277
714

query II rowsort
SELECT - - ( + ( + col2 ) ) + + ( + col0 ) AS col2, - col0 + - + col1 AS col0 FROM tab1 AS cor0
----
144
-90
147
-65
159
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT + ( - SUM( DISTINCT + - col1 ) ) + + - COUNT( * ) FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-5580
SELECT + ( - SUM ( DISTINCT + - col1 ) ) + + - COUNT ( * ) FROM tab1 AS cor0
----
63

query I rowsort
SELECT + col2 + + + col2 * + - col1 AS col1 FROM tab0 AS cor0
----
-200
-3760
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> ( + 40 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5583
SELECT ALL - COUNT( * ) - + MIN( + CAST( NULL AS SIGNED ) ) + - + ( - - MAX( DISTINCT 12 ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL - COUNT ( * ) - + MIN ( + CAST ( NULL AS INTEGER ) ) + - + ( - - MAX ( DISTINCT 12 ) ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT + col1 * + + col2 * - 96 + - + 13 FROM tab2 AS cor0
----
-112621
-295693
-373069

query I rowsort
SELECT ALL col1 * - col0 + + col1 - + 53 * + 55 AS col0 FROM tab2 AS cor0
----
-5210
-7766
-7873

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT DISTINCT + MAX( ALL - col1 ) col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5586
SELECT DISTINCT + MAX ( ALL - col1 ) col0 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT ALL ( 55 ) - - SUM( ALL - col0 ) FROM tab1 cor0
----
-172

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL ( 55 ) - - SUM ( ALL - col0 ) FROM tab1 cor0
----
-172

query II rowsort
SELECT DISTINCT - - col0 * - - col1 - + + col2 AS col2, 78 AS col0 FROM tab1 AS cor0
----
366
78
4209
78
618
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5589
SELECT ALL CAST( NULL AS SIGNED ) + col2 AS col0, 51 AS col0 FROM tab2
----
NULL
51
NULL
51
NULL
51

skipif mysql # not compatible
query II rowsort label-5589
SELECT ALL CAST ( NULL AS INTEGER ) + col2 AS col0, 51 AS col0 FROM tab2
----
NULL
51
NULL
51
NULL
51

query I rowsort
SELECT + 36 - - col1 + + col0 + col2 AS col2 FROM tab0
----
154
179
233

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT ALL - ( - COUNT( * ) ) + COUNT( * ) AS col2 FROM tab2, tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL - ( - COUNT ( * ) ) + COUNT ( * ) AS col2 FROM tab2, tab2 AS cor0
----
18

query I rowsort
SELECT DISTINCT - col0 * col2 AS col0 FROM tab1 WHERE NOT - 82 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5593
SELECT ALL 55 DIV - COUNT( * ) AS col1 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL 55 / - COUNT ( * ) AS col1 FROM tab2
----
-18

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 68 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5595
SELECT ALL col0 FROM tab2 WHERE + col1 * + CAST( NULL AS SIGNED ) * + col0 = + col2
----

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL col0 FROM tab2 WHERE + col1 * + CAST ( NULL AS INTEGER ) * + col0 = + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + col2 ) col1, ( 31 ) FROM tab0 AS cor0
----
10
31
47
31
99
31

query II rowsort
SELECT ALL + col2 * - 83, col2 AS col1 FROM tab0 AS cor0
----
-3901
47
-8217
99
-830
10

query I rowsort
SELECT ALL ( - col1 ) + 48 FROM tab1
----
1
34
43

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 99 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT + ( - SUM( + 70 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-210

skipif mysql # not compatible
query I rowsort label-5600
SELECT + ( - SUM ( + 70 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-210

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( col0 * - col2 IS NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab0 AS cor0 WHERE col0 NOT IN ( col0 * col2 * + ( + 9 ) )
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-5603
SELECT DISTINCT + 66 DIV - col0 + col1 AS col2, col0 AS col0 FROM tab0 AS cor0
----
1
97
21
87
77
15

skipif mysql # not compatible
query II rowsort label-5603
SELECT DISTINCT + 66 / - col0 + col1 AS col2, col0 AS col0 FROM tab0 AS cor0
----
1
97
21
87
77
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5604
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - CAST( NULL AS SIGNED ) + + + col0
----

skipif mysql # not compatible
query III rowsort label-5604
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER ) + + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5605
SELECT ALL col1 + - 73 DIV col1 * + 66 FROM tab2
----
-15
1
77

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL col1 + - 73 / col1 * + 66 FROM tab2
----
-15
1
77

query I rowsort
SELECT DISTINCT + 92 * + col2 + - 78 FROM tab1
----
5350
6178
8754

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 62 IS NULL
----

query I rowsort
SELECT DISTINCT 46 + - col0 * - col2 FROM tab1
----
4942
5061
6234

query I rowsort
SELECT ALL + 55 + - 37 AS col1 FROM tab0
----
18
18
18

query I rowsort
SELECT DISTINCT 57 FROM tab2 WHERE + - 79 / - col2 IS NOT NULL
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT ALL COUNT( * ) + + + MAX( - col2 ) AS col0 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL COUNT ( * ) + + + MAX ( - col2 ) AS col0 FROM tab2
----
-20

query I rowsort
SELECT DISTINCT col1 + - - col2 * - col1 FROM tab2
----
-1122
-3003
-3819

onlyif mysql # DIV for integer division: 
query II rowsort label-5613
SELECT DISTINCT 32 DIV + - col0, + ( - col1 ) col2 FROM tab1
----
0
-14
0
-47
0
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5613
SELECT DISTINCT 32 / + - col0, + ( - col1 ) col2 FROM tab1
----
0
-14
0
-47
0
-5

query I rowsort
SELECT + ( + col0 ) FROM tab2 WHERE + col0 = ( col2 * + - 95 + 99 * - - col2 + - - 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT DISTINCT + SUM( DISTINCT + 72 ) FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-5615
SELECT DISTINCT + SUM ( DISTINCT + 72 ) FROM tab0 AS cor0
----
72

query I rowsort
SELECT ALL + ( - col2 ) * col0 - - col0 FROM tab2 AS cor0
----
-1012
-2496
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5618
SELECT - col2 DIV + 2 - col2 - - col1 FROM tab2
----
-20
17
17

skipif mysql # not compatible
query I rowsort label-5618
SELECT - col2 / + 2 - col2 - - col1 FROM tab2
----
-20
17
17

onlyif mysql # DIV for integer division: 
query I rowsort label-5619
SELECT - col2 + + col1 DIV + - col1 + col2 + - col2 AS col1 FROM tab2
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-5619
SELECT - col2 + + col1 / + - col1 + col2 + - col2 AS col1 FROM tab2
----
-24
-41
-59

query II rowsort
SELECT + + 26, + 93 * + - 40 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT BETWEEN NULL AND 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT ALL - SUM( DISTINCT col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5621
SELECT ALL - SUM ( DISTINCT col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----
NULL

query I rowsort
SELECT ALL 93 - - - col0 + - 51 - - col1 FROM tab0 cor0
----
-24
-54
108

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT ALL - + COUNT( - - 12 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL - + COUNT ( - - 12 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5624
SELECT ALL - 53 * + - 68 - ( col0 ) DIV 19 - + col1 DIV - - col0 AS col1 FROM tab2 AS cor0
----
3600
3601
3601

skipif mysql # not compatible
query I rowsort label-5624
SELECT ALL - 53 * + - 68 - ( col0 ) / 19 - + col1 / - - col0 AS col1 FROM tab2 AS cor0
----
3600
3601
3601

query I rowsort
SELECT DISTINCT ( + 94 ) AS col0 FROM tab1
----
94

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col2 = - + 99 - + 21
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT ALL MIN( ALL - - 61 ) FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL MIN ( ALL - - 61 ) FROM tab2
----
61

query I rowsort
SELECT ALL - 54 * + - col1 * - +