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 * - + col2 + + col1 FROM tab2 WHERE NOT NULL BETWEEN col2 AND NULL
----

query II rowsort
SELECT - 81 AS col2, col1 AS col1 FROM tab1
----
-81
14
-81
47
-81
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 * + 29 col0 FROM tab2
----
2610
2610
2610

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 64 * - - 77 + + - col0 col2 FROM tab0 AS cor0
----
4831
4841
4913

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 * + 82 AND col0 + - - ( - 20 ) + col0 + + ( + + 31 )
----

query II rowsort
SELECT ALL 80 AS col1, + 82 * - col2 AS col2 FROM tab1 AS cor0
----
80
-4838
80
-5576
80
-7872

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

query I rowsort
SELECT - 65 AS col1 FROM tab0 cor0
----
-65
-65
-65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5638
SELECT * FROM tab2 cor0 WHERE NOT - col1 * - col2 - 0 / - CAST( NULL AS SIGNED ) + - + 69 - + 6 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5638
SELECT * FROM tab2 cor0 WHERE NOT - col1 * - col2 - 0 / - CAST ( NULL AS INTEGER ) + - + 69 - + 6 IS NULL
----

query I rowsort
SELECT DISTINCT + 43 * col1 AS col2 FROM tab2
----
2193
2881
3311

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5641
SELECT DISTINCT + col0 DIV col1 - + col1 * col0 FROM tab2 AS cor0
----
-2346
-4928
-5024

skipif mysql # not compatible
query I rowsort label-5641
SELECT DISTINCT + col0 / col1 - + col1 * col0 FROM tab2 AS cor0
----
-2346
-4928
-5024

query I rowsort
SELECT DISTINCT - + col0 * + - 25 + + col1 + - 33 AS col0 FROM tab0 AS cor0
----
2163
2393
423

query I rowsort
SELECT - 80 * 76 + + col0 AS col0 FROM tab0 cor0
----
-5983
-5993
-6065

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5644
SELECT + 75 * ( - MIN( DISTINCT 13 ) ) DIV + 66 + ( - COUNT( col1 ) ) * - 27 FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-5644
SELECT + 75 * ( - MIN ( DISTINCT 13 ) ) / + 66 + ( - COUNT ( col1 ) ) * - 27 FROM tab0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT + SUM( DISTINCT col0 ) FROM tab1 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5645
SELECT + SUM ( DISTINCT col0 ) FROM tab1 WHERE NULL = NULL
----
NULL

query I rowsort
SELECT - 10 FROM tab1 WHERE + col2 >= - col2 * ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 WHERE NULL >= + + 97 + col2 + - 89
----
0

skipif mysql # not compatible
query I rowsort label-5647
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE NULL >= + + 97 + col2 + - 89
----
0

query I rowsort
SELECT ALL + col0 * col1 * col1 - + ( - col2 ) * + + ( col2 ) FROM tab1 cor0
----
19212
205643
5606

query I rowsort
SELECT + - col0 * - col0 * - col1 + - + col2 FROM tab1 AS cor0
----
-36184
-36510
-389275

query I rowsort
SELECT 93 + + col0 AS col1 FROM tab2 AS cor0
----
139
157
168

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT DISTINCT + ( MIN( + col2 ) ) - + + 26 AS col2 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-5651
SELECT DISTINCT + ( MIN ( + col2 ) ) - + + 26 AS col2 FROM tab0 AS cor0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5652
SELECT DISTINCT + 34 * + col1 + + 43 + - - CAST( 73 AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col2, - col2 + + ( + ( + - col1 ) ) FROM tab1 AS cor0
----
NULL
-110
NULL
-115
NULL
-64

skipif mysql # not compatible
query II rowsort label-5652
SELECT DISTINCT + 34 * + col1 + + 43 + - - CAST ( 73 AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col2, - col2 + + ( + ( + - col1 ) ) FROM tab1 AS cor0
----
NULL
-110
NULL
-115
NULL
-64

query I rowsort
SELECT + - col2 * - 71 + 43 AS col1 FROM tab0 cor0
----
3380
7072
753

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 col0 FROM tab2 WHERE NOT - - 71 BETWEEN + 61 AND - - col0
----
-98
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5655
SELECT DISTINCT 60 - + CAST( col0 AS SIGNED ) + + 57 * - ( ( col0 ) ) * col1 FROM tab0
----
-104166
-5566
-69210

skipif mysql # not compatible
query I rowsort label-5655
SELECT DISTINCT 60 - + CAST ( col0 AS INTEGER ) + + 57 * - ( ( col0 ) ) * col1 FROM tab0
----
-104166
-5566
-69210

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

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

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

skipif mysql # not compatible
query I rowsort label-5657
SELECT + + MIN ( + + 12 ) FROM tab2 AS cor0
----
12

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5659
SELECT + - 49 AS col0, CAST( + + col0 AS SIGNED ) col2 FROM tab2 cor0
----
-49
46
-49
64
-49
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5659
SELECT + - 49 AS col0, CAST ( + + col0 AS INTEGER ) col2 FROM tab2 cor0
----
-49
46
-49
64
-49
75

query I rowsort
SELECT - - 51 AS col0 FROM tab1 cor0
----
51
51
51

query II rowsort
SELECT DISTINCT - - 72 AS col2, col1 + - - col1 AS col0 FROM tab0 AS cor0
----
72
162
72
2
72
42

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5663
SELECT - col0 / - - 56 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-5663
SELECT - col0 / - - 56 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT col1 IN ( - col1, col1, - + 86 )
----
0

skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT col1 IN ( - col1, col1, - + 86 )
----
0

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

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

query I rowsort
SELECT - ( 8 ) * - 27 AS col1 FROM tab0 AS cor0
----
216
216
216

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT - + SUM( + 52 ) col2 FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5668
SELECT - + SUM ( + 52 ) col2 FROM tab1 AS cor0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - 62 col1 FROM tab1 AS cor0
----
3162
5270
5642

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

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

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

query I rowsort
SELECT DISTINCT - col0 + - - 25 FROM tab2 AS cor0
----
-21
-39
-50

query II rowsort
SELECT DISTINCT + 38 AS col0, - col0 * - col0 AS col2 FROM tab1 AS cor0
----
38
2601
38
7225
38
8281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5674
SELECT + 23 DIV 75 + - COUNT( * ) * 65 FROM tab0 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5674
SELECT + 23 / 75 + - COUNT ( * ) * 65 FROM tab0 AS cor0
----
-195

query I rowsort
SELECT + col2 + + 14 AS col2 FROM tab2 cor0
----
37
54
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT 9 + + SUM( ALL 18 ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-5677
SELECT 9 + + SUM ( ALL 18 ) FROM tab0
----
63

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

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE NOT 68 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT DISTINCT 66 + 10 * - - SUM( - col2 ) FROM tab2
----
-1144

skipif mysql # not compatible
query I rowsort label-5680
SELECT DISTINCT 66 + 10 * - - SUM ( - col2 ) FROM tab2
----
-1144

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 41 + + 26 - - ( col1 ) col2 FROM tab1 AS cor0
----
-2388
-2715
-3896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5684
SELECT DISTINCT col1 - - + 16 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5684
SELECT DISTINCT col1 - - + 16 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5686
SELECT DISTINCT - CAST( ( 43 ) AS SIGNED ) FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT - CAST ( ( 43 ) AS INTEGER ) FROM tab0 AS cor0
----
-43

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 0 * + 37, col1 col1 FROM tab0
----
0
1
0
21
0
81

query III rowsort
SELECT * FROM tab0 WHERE NOT + 32 <> col2
----

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

query I rowsort
SELECT ALL 81 FROM tab1 WHERE NOT ( + col1 IS NULL )
----
81
81
81

query I rowsort
SELECT - col1 * - ( 30 ) AS col2 FROM tab2
----
1530
2010
2310

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5694
SELECT ALL CAST( NULL AS SIGNED ) AS col2, - col0 FROM tab1 cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-5694
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - col0 FROM tab1 cor0
----
NULL
-51
NULL
-85
NULL
-91

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5698
SELECT + 96 AS col0, - ( - COUNT( * ) ) FROM tab2 WHERE NULL IS NOT NULL
----
96
0

skipif mysql # not compatible
query II rowsort label-5698
SELECT + 96 AS col0, - ( - COUNT ( * ) ) FROM tab2 WHERE NULL IS NOT NULL
----
96
0

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

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

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

query I rowsort
SELECT - 33 AS col0 FROM tab0 cor0
----
-33
-33
-33

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 27 * col2 * + col2 / - 68 * col2 + col2 = col0
----

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

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

query I rowsort
SELECT 19 - + + 20 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col1 * - + 88 AS col0 FROM tab1
----
-1232
-4136
-440

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

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

query II rowsort
SELECT + col2 * + ( 85 ) AS col2, col1 FROM tab2 WHERE - - col1 IS NOT NULL
----
1955
51
3400
77
4930
67

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

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

query I rowsort
SELECT ALL + col0 + 98 FROM tab0
----
113
185
195

query I rowsort
SELECT col2 + - - col1 FROM tab0 WHERE NULL IS NULL
----
100
128
31

onlyif mysql # aggregate syntax: 
query II rowsort label-5712
SELECT ALL + 71, - COUNT( * ) AS col1 FROM tab0 AS cor0
----
71
-3

skipif mysql # not compatible
query II rowsort label-5712
SELECT ALL + 71, - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
71
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT ALL - - 18 * + COUNT( * ) AS col1 FROM tab1 cor0
----
54

skipif mysql # not compatible
query I rowsort label-5715
SELECT ALL - - 18 * + COUNT ( * ) AS col1 FROM tab1 cor0
----
54

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

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

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

skipif mysql # not compatible
query I rowsort label-5717
SELECT - ( - - SUM ( - col2 ) ) FROM tab2 AS cor0
----
121

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT + COUNT( * ) * + - 23 + - + COUNT( * ) col0 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5719
SELECT + COUNT ( * ) * + - 23 + - + COUNT ( * ) col0 FROM tab1 AS cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5720
SELECT DISTINCT - col2 * + + col0 AS col1, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-705
NULL
-870
NULL
-9603
NULL

skipif mysql # not compatible
query II rowsort label-5720
SELECT DISTINCT - col2 * + + col0 AS col1, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-705
NULL
-870
NULL
-9603
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5721
SELECT DISTINCT + + ( + 54 ) DIV + col0 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5721
SELECT DISTINCT + + ( + 54 ) / + col0 AS col1 FROM tab1 AS cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5722
SELECT DISTINCT - 43 DIV - + col1 FROM tab1
----
0
3
8

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT - 43 / - + col1 FROM tab1
----
0
3
8

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

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

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

skipif mysql # not compatible
query I rowsort label-5724
SELECT - + COUNT ( * ) FROM tab0 WHERE NOT 2 * + 36 IS NULL
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT 18 + + 95 * + + COUNT( * ) AS col0 FROM tab2
----
303

skipif mysql # not compatible
query I rowsort label-5726
SELECT 18 + + 95 * + + COUNT ( * ) AS col0 FROM tab2
----
303

onlyif mysql # DIV for integer division: 
query I rowsort label-5727
SELECT + 20 + + + ( - col0 ) DIV - + col2 * col0 DIV - col0 AS col2 FROM tab1
----
19
19
20

skipif mysql # not compatible
query I rowsort label-5727
SELECT + 20 + + + ( - col0 ) / - + col2 * col0 / - col0 AS col2 FROM tab1
----
19
19
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5728
SELECT DISTINCT + CAST( NULL AS SIGNED ) / col0 + + - 5 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5728
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / col0 + + - 5 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5729
SELECT ALL 6 AS col2, + col2 * + + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
6
-4896
6
-5015
6
-6188

skipif mysql # not compatible
query II rowsort label-5729
SELECT ALL 6 AS col2, + col2 * + + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
6
-4896
6
-5015
6
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-5730
SELECT ALL - + 90 * col0 DIV 48 + + + col1 - - 40 FROM tab2 AS cor0
----
-3
-33
5

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL - + 90 * col0 / 48 + + + col1 - - 40 FROM tab2 AS cor0
----
-3
-33
5

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

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

query I rowsort
SELECT DISTINCT col0 + + + 76 AS col2 FROM tab1
----
127
161
167

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

query I rowsort
SELECT DISTINCT - 92 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT ALL - ( - - 74 ) + ( COUNT( DISTINCT + + col0 ) ) FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL - ( - - 74 ) + ( COUNT ( DISTINCT + + col0 ) ) FROM tab0
----
-71

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col0 <= col2 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5737
SELECT ALL - + col0 * + - 81, col1 FROM tab2 WHERE 26 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-5737
SELECT ALL - + col0 * + - 81, col1 FROM tab2 WHERE 26 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT 33 + + col0 * col2 FROM tab0 AS cor0
----
738
903
9636

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5740
SELECT DISTINCT col0 + 94 - + CAST( - col0 AS SIGNED ) AS col1 FROM tab1
----
196
264
276

skipif mysql # not compatible
query I rowsort label-5740
SELECT DISTINCT col0 + 94 - + CAST ( - col0 AS INTEGER ) AS col1 FROM tab1
----
196
264
276

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

query I rowsort
SELECT ALL col0 + col2 * col1 * - + col1 + - 13 FROM tab0
----
-15
-308365
-4336

query I rowsort
SELECT DISTINCT col1 * - col0 + - col1 * - - col0 AS col0 FROM tab0
----
-194
-2430
-3654

query I rowsort
SELECT ALL - col0 + 19 AS col2 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5745
SELECT - col1 DIV + col0 AS col2, ( - 86 ) FROM tab1
----
0
-86
0
-86
0
-86

skipif mysql # not compatible
query II rowsort label-5745
SELECT - col1 / + col0 AS col2, ( - 86 ) FROM tab1
----
0
-86
0
-86
0
-86

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1, - 83, + 50 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5748
SELECT ALL SUM( CAST( - 79 AS SIGNED ) ), CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
-237
NULL

skipif mysql # not compatible
query II rowsort label-5748
SELECT ALL SUM ( CAST ( - 79 AS INTEGER ) ), CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
-237
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col0, col2 * col1 col1 FROM tab1
----
59
295
68
3196
96
1344

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 91 >= NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5753
SELECT DISTINCT + - CAST( + + 29 AS SIGNED ) DIV - - ( + col2 ) FROM tab0 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-5753
SELECT DISTINCT + - CAST ( + + 29 AS INTEGER ) / - - ( + col2 ) FROM tab0 AS cor0
----
-2
0

query II rowsort
SELECT DISTINCT col0 + + - col0 AS col0, 40 * - - 74 FROM tab1
----
0
2960

query I rowsort
SELECT - col2 * 17 AS col0 FROM tab2
----
-391
-680
-986

query I rowsort
SELECT DISTINCT - 81 * + + col1 FROM tab0
----
-1701
-6561
-81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5757
SELECT - - col1 * + - 4 + - 33 + col2 + CAST( ( + - col2 ) AS SIGNED ) DIV + col2 FROM tab0 WHERE NOT - 27 IN ( - col2, col1, - col2, + 90 * + - col0 * - - 7 + + col0 )
----
-108
-311
61

skipif mysql # not compatible
query I rowsort label-5757
SELECT - - col1 * + - 4 + - 33 + col2 + CAST ( ( + - col2 ) AS INTEGER ) / + col2 FROM tab0 WHERE NOT - 27 IN ( - col2, col1, - col2, + 90 * + - col0 * - - 7 + + col0 )
----
-108
-311
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT DISTINCT 4 * + ( - COUNT( * ) ) col1 FROM tab1
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5758
SELECT DISTINCT 4 * + ( - COUNT ( * ) ) col1 FROM tab1
----
-12

query I rowsort
SELECT ALL col2 + - - col0 AS col1 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT DISTINCT col1 + 25 FROM tab0
----
106
26
46

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5762
SELECT ALL + col0 DIV + col0 - + 83, col0 FROM tab1 AS cor0
----
-82
51
-82
85
-82
91

skipif mysql # not compatible
query II rowsort label-5762
SELECT ALL + col0 / + col0 - + 83, col0 FROM tab1 AS cor0
----
-82
51
-82
85
-82
91

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

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

query II rowsort
SELECT DISTINCT ( - col1 ) - - 54, - 48 AS col0 FROM tab0 AS cor0
----
-27
-48
33
-48
53
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT + 70 - 25 + COUNT( + col0 ) AS col1 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-5765
SELECT + 70 - 25 + COUNT ( + col0 ) AS col1 FROM tab1 AS cor0
----
48

query I rowsort
SELECT + col0 - - col0 * + - col2 AS col2 FROM tab1
----
-4845
-4930
-6097

query I rowsort
SELECT 28 * - col0 - + + col1 FROM tab0
----
-2457
-2717
-501

query I rowsort
SELECT - 23 * + + col1 - - col2 FROM tab2
----
-1150
-1483
-1731

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 48 * 97 NOT BETWEEN 8 * - - col1 * - + col2 * - + 35 AND NULL AND ( NULL ) NOT BETWEEN col2 AND + ( 87 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 25 ) col0 FROM tab1
----
25

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 86 BETWEEN - 25 AND + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 80, + 39 + + 26 - + 97 * - - 73 * + 82 AS col2 FROM tab0 AS cor0
----
80
-580577
80
-580577
80
-580577

query I rowsort
SELECT - col1 * + - 88 FROM tab1 AS cor0
----
1232
4136
440

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

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

query I rowsort
SELECT ALL col1 * + ( - col2 ) * - col0 + - - col0 AS col0 FROM tab1 AS cor0
----
25160
290927
68595

query I rowsort
SELECT ALL + + col1 * - 42 * - ( + col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT 53 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5777
SELECT - 15 DIV + 58 * - 18 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5777
SELECT - 15 / + 58 * - 18 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5778
SELECT + MAX( DISTINCT - col2 ) AS col1, + COUNT( * ) FROM tab1 cor0
----
-59
3

skipif mysql # not compatible
query II rowsort label-5778
SELECT + MAX ( DISTINCT - col2 ) AS col1, + COUNT ( * ) FROM tab1 cor0
----
-59
3

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

query I rowsort
SELECT DISTINCT 91 * - - col0 * 75 AS col0 FROM tab0 AS cor0
----
102375
593775
662025

query II rowsort
SELECT ALL + + col0 + - - 2 * - col2 AS col0, + col0 AS col1 FROM tab0 AS cor0
----
-101
97
-79
15
67
87

query II rowsort
SELECT ALL col2 AS col1, col2 * col0 AS col0 FROM tab1
----
59
5015
68
6188
96
4896

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT + COUNT( * ) col0 FROM tab1 WHERE NULL <= + col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5783
SELECT + COUNT ( * ) col0 FROM tab1 WHERE NULL <= + col1
----
0

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5785
SELECT DISTINCT + 16 DIV col2 + + col2 + - col0 AS col0, 62 FROM tab1
----
-23
62
-26
62
45
62

skipif mysql # not compatible
query II rowsort label-5785
SELECT DISTINCT + 16 / col2 + + col2 + - col0 AS col0, 62 FROM tab1
----
-23
62
-26
62
45
62

onlyif mysql # DIV for integer division: 
query I rowsort label-5786
SELECT ALL col2 DIV + + col1 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL col2 / + + col1 FROM tab0
----
0
0
99

query I rowsort
SELECT col0 + - col1 + + + 86 * col0 + - + 59 AS col0 FROM tab0
----
1165
7489
8379

query II rowsort
SELECT ALL col0 + - ( + - 72 ) - col2 + - col1 + - - 94 + col1 * col2 * - + col0 AS col1, col0 AS col1 FROM tab1
----
-24888
85
-290694
91
-68437
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 + col1 col0 FROM tab0
----
119
39
59

query I rowsort
SELECT + - col2 FROM tab2 WHERE + - 29 <> - - col0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, col1 * + 51 FROM tab2 AS cor0
----
46
2601
64
3927
75
3417

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col2 FROM tab0 WHERE NOT - col1 >= + col0 * col2
----
42
42
42

onlyif mysql # DIV for integer division: 
query I rowsort label-5795
SELECT ( col1 ) * col2 - col1 DIV + ( col2 DIV + col1 ) FROM tab1
----
1342
295
3149

skipif mysql # not compatible
query I rowsort label-5795
SELECT ( col1 ) * col2 - col1 / + ( col2 / + col1 ) FROM tab1
----
1342
295
3149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5796
SELECT DISTINCT - 28 * SUM( CAST( col2 AS SIGNED ) ) AS col2 FROM tab0
----
-4368

skipif mysql # not compatible
query I rowsort label-5796
SELECT DISTINCT - 28 * SUM ( CAST ( col2 AS INTEGER ) ) AS col2 FROM tab0
----
-4368

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT DISTINCT 90 + + ( + COUNT( * ) + - COUNT( * ) ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-5797
SELECT DISTINCT 90 + + ( + COUNT ( * ) + - COUNT ( * ) ) FROM tab0
----
90

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

skipif mysql # not compatible
query I rowsort label-5798
SELECT + COUNT ( col2 ) AS col0 FROM tab0 WHERE col2 * + col0 = NULL
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5800
SELECT 47 DIV + 48 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5800
SELECT 47 / + 48 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 80 - - 93 AS col0 FROM tab2
----
173
173
173

query I rowsort
SELECT ( - col2 ) * ( - col0 ) FROM tab1
----
4896
5015
6188

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT ALL COUNT( * ) + ( - 76 ) AS col0 FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL COUNT ( * ) + ( - 76 ) AS col0 FROM tab2
----
-73

query I rowsort
SELECT - 94 * ( 73 * - col0 ) AS col1 FROM tab1
----
349962
583270
624442

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5807
SELECT ALL - 2 / + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL - 2 / + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - 45 AS col0 FROM tab1
----
-2655
-3060
-4320

query I rowsort
SELECT DISTINCT - 46 + + col1 FROM tab1 WHERE NOT + col1 + 40 IS NULL
----
-32
-41
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col2 + col2 AND 28 + 41
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5811
SELECT DISTINCT + ( - 20 ) DIV - col1 AS col2 FROM tab1
----
0
1
4

skipif mysql # not compatible
query I rowsort label-5811
SELECT DISTINCT + ( - 20 ) / - col1 AS col2 FROM tab1
----
0
1
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5812
SELECT DISTINCT - 43 DIV COUNT( * ) AS col0 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-5812
SELECT DISTINCT - 43 / COUNT ( * ) AS col0 FROM tab1
----
-14

query I rowsort
SELECT ALL + 17 * col2 FROM tab2
----
391
680
986

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

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

query I rowsort
SELECT ALL - 92 AS col0 FROM tab0 WHERE NULL IS NULL
----
-92
-92
-92

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col1 / 58 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT ALL MAX( ALL + 83 ) - + 39 * - 66 FROM tab0
----
2657

skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL MAX ( ALL + 83 ) - + 39 * - 66 FROM tab0
----
2657

query I rowsort
SELECT ( col1 ) + - col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT + 13 * + 55 + - COUNT( * ) FROM tab0
----
712

skipif mysql # not compatible
query I rowsort label-5819
SELECT + 13 * + 55 + - COUNT ( * ) FROM tab0
----
712

query I rowsort
SELECT col0 + 13 FROM tab2 cor0 WHERE NOT 81 + - 63 <> ( ( 70 ) * - col0 + ( - col0 - col1 ) )
----

query I rowsort
SELECT + ( 38 ) * - col2 FROM tab0 AS cor0
----
-1786
-3762
-380

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 30 NOT IN ( 64 )
----

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

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

query I rowsort
SELECT + 4 * - 84 FROM tab1
----
-336
-336
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT ALL - COUNT( DISTINCT 57 ) * COUNT( * ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5825
SELECT ALL - COUNT ( DISTINCT 57 ) * COUNT ( * ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT ALL 10 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * - 63 col2 FROM tab0 cor0
----
-5481
-6111
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 + col0 >= ( ( + col1 ) - - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 + col0 >= ( ( + col1 ) - - col2 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 * - 61 col0 FROM tab2 AS cor0
----
-2440
-2440
-2440

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5830
SELECT + COUNT ( + col1 ) col1 FROM tab0 AS cor0
----
3

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

skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL SUM ( - - 19 ) AS col2 FROM tab2
----
57

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE ( - col1 ) NOT IN ( + ( + col1 ) * 32 + - 70 )
----
-59
-68
-96

query I rowsort
SELECT + col0 + - col2 AS col2 FROM tab1 WHERE + col1 <= ( + 51 )
----
-45
23
26

query I rowsort
SELECT ALL + col2 + col1 - - 8 FROM tab0
----
108
136
39

query I rowsort
SELECT ALL col1 + + ( - col0 ) * 33 FROM tab1
----
-1669
-2800
-2956

query I rowsort
SELECT DISTINCT col1 + + - 56 AS col0 FROM tab0
----
-35
-55
25

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - 83 )
----

query I rowsort
SELECT ALL col2 + 59 FROM tab0
----
106
158
69

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 36 / - 51 ) IN ( + 41 ) AND NOT NULL = NULL
----

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

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

query I rowsort
SELECT col1 * ( col0 ) + + col2 AS col2 FROM tab2 AS cor0
----
2369
4968
5083

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT ALL - ( - COUNT( DISTINCT - col2 ) ) - - 1 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL - ( - COUNT ( DISTINCT - col2 ) ) - - 1 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
1

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

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

query I rowsort
SELECT ( - col2 ) * 81 AS col1 FROM tab1 cor0
----
-4779
-5508
-7776

query I rowsort
SELECT + 62 + col1 * 31 FROM tab2 AS cor0 WHERE + col0 - - - col1 - col0 * ( col0 + 37 ) IS NOT NULL
----
1643
2139
2449

query I rowsort
SELECT - col1 - - 79 AS col1 FROM tab1 AS cor0
----
32
65
74

onlyif mysql # DIV for integer division: 
query I rowsort label-5852
SELECT - + 10 - + - col1 * col1 DIV col2 FROM tab0 AS cor0
----
-10
129
34

skipif mysql # not compatible
query I rowsort label-5852
SELECT - + 10 - + - col1 * col1 / col2 FROM tab0 AS cor0
----
-10
129
34

query I rowsort
SELECT col0 * + - 6 AS col1 FROM tab2 AS cor0
----
-276
-384
-450

onlyif mysql # DIV for integer division: 
query I rowsort label-5854
SELECT ALL 37 * col1 DIV + ( + 1 ) FROM tab1 AS cor0
----
1739
185
518

skipif mysql # not compatible
query I rowsort label-5854
SELECT ALL 37 * col1 / + ( + 1 ) FROM tab1 AS cor0
----
1739
185
518

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT DISTINCT + - MAX( ALL + col2 ) * 54 FROM tab1 AS cor0
----
-5184

skipif mysql # not compatible
query I rowsort label-5855
SELECT DISTINCT + - MAX ( ALL + col2 ) * 54 FROM tab1 AS cor0
----
-5184

query I rowsort
SELECT ALL - 76 * + + col0 * + + 35 AS col2 FROM tab0 AS cor0
----
-231420
-258020
-39900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 * - + 30 col2 FROM tab0
----
-2130
-2130
-2130

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

skipif mysql # not compatible
query I rowsort label-5858
SELECT DISTINCT 44 / 35 * COUNT ( * ) FROM tab0
----
3

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

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

query I rowsort
SELECT DISTINCT 18 AS col1 FROM tab2 WHERE NOT ( 35 ) IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT - col1 IS NULL
----
14
47
5

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

skipif mysql # not compatible
query I rowsort label-5862
SELECT - + SUM ( DISTINCT - 45 ) FROM tab2 AS cor0
----
45

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 54 > ( NULL )
----

query I rowsort
SELECT DISTINCT 16 / 87 AS col1 FROM tab2 AS cor0 WHERE NOT 4 * + + col1 * + + col1 >= ( + col2 + + col2 )
----

query I rowsort
SELECT col1 + col2 * col1 AS col1 FROM tab2 AS cor0 WHERE ( + 2 ) <= ( + 13 ) * col0
----
1224
3157
3953

query I rowsort
SELECT + ( 15 ) + - col0 FROM tab1 cor0
----
-36
-70
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5869
SELECT * FROM tab2 WHERE + ( + CAST( NULL AS DECIMAL ) ) / - col1 + 85 * 85 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5869
SELECT * FROM tab2 WHERE + ( + CAST ( NULL AS REAL ) ) / - col1 + 85 * 85 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5871
SELECT DISTINCT * FROM tab2 WHERE + - CAST( NULL AS DECIMAL ) / col1 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5871
SELECT DISTINCT * FROM tab2 WHERE + - CAST ( NULL AS REAL ) / col1 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5872
SELECT - - col1 + 0 / + ( ( 86 ) ) FROM tab1 WHERE - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5872
SELECT - - col1 + 0 / + ( ( 86 ) ) FROM tab1 WHERE - CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT ALL + 96 * MIN( + col0 * col2 ) col2 FROM tab1 WHERE ( col1 BETWEEN ( + - col2 / col0 ) AND ( NULL ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5873
SELECT ALL + 96 * MIN ( + col0 * col2 ) col2 FROM tab1 WHERE ( col1 BETWEEN ( + - col2 / col0 ) AND ( NULL ) )
----
NULL

query I rowsort
SELECT 33 + + - ( - col2 ) + - + col2 FROM tab0
----
33
33
33

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 + - ( 84 ) * - col0 ) IN ( col1 + col1 )
----

query I rowsort
SELECT DISTINCT + col1 + - - col1 FROM tab2
----
102
134
154

onlyif mysql # DIV for integer division: 
query I rowsort label-5877
SELECT ALL - 31 DIV + col2 + col0 FROM tab2
----
45
64
75

skipif mysql # not compatible
query I rowsort label-5877
SELECT ALL - 31 / + col2 + col0 FROM tab2
----
45
64
75

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5878
SELECT ALL - ( + col1 ) AS col0, - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-5878
SELECT ALL - ( + col1 ) AS col0, - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5883
SELECT - COUNT( * ) * + 26 * 2 + + MIN( DISTINCT - CAST( NULL AS DECIMAL ) ) * SUM( DISTINCT + col0 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5883
SELECT - COUNT ( * ) * + 26 * 2 + + MIN ( DISTINCT - CAST ( NULL AS REAL ) ) * SUM ( DISTINCT + col0 ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - + 67 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-67

query I rowsort
SELECT DISTINCT - 82 * + 32 FROM tab2 AS cor0
----
-2624

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 36 * col2 col2, - 91 - 15 * + col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-1440
-1051
-2088
-1216
-828
-781

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5888
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * + - col2 NOT IN ( - + ( + col1 ) * + CAST( + - 4 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5888
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * + - col2 NOT IN ( - + ( + col1 ) * + CAST ( + - 4 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5889
SELECT ALL CAST( - CAST( - - col2 AS SIGNED ) AS SIGNED ) * + - col1 * - + col2 AS col1 FROM tab1 AS cor0
----
-129024
-17405
-217328

skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL CAST ( - CAST ( - - col2 AS INTEGER ) AS INTEGER ) * + - col1 * - + col2 AS col1 FROM tab1 AS cor0
----
-129024
-17405
-217328

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT ALL SUM( ALL + 99 ) * 44 + + 27 FROM tab0 cor0
----
13095

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL SUM ( ALL + 99 ) * 44 + + 27 FROM tab0 cor0
----
13095

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5891
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( - - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5891
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( - - col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT ( col2 ) * - col0 * - + 53 AS col2 FROM tab0 AS cor0
----
37365
46110
508959

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5893
SELECT * FROM tab0 WHERE NOT 42 NOT IN ( - 13 + - 86 ) OR col0 * - + 88 + CAST( col0 + - col1 * col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5893
SELECT * FROM tab0 WHERE NOT 42 NOT IN ( - 13 + - 86 ) OR col0 * - + 88 + CAST ( col0 + - col1 * col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5894
SELECT DISTINCT + ( + + col1 ) / + CAST( NULL AS SIGNED ) * + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5894
SELECT DISTINCT + ( + + col1 ) / + CAST ( NULL AS INTEGER ) * + col1 FROM tab1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5895
SELECT + COUNT ( * ) / 26 / - COUNT ( ALL + - col1 ) FROM tab0
----
0

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

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

query I rowsort
SELECT - col2 * - - 71 FROM tab1
----
-4189
-4828
-6816

query I rowsort
SELECT - 46 * - col1 AS col1 FROM tab0
----
3726
46
966

query II rowsort
SELECT ( 69 ) * + col0, col1 FROM tab1
----
3519
14
5865
5
6279
47

query I rowsort
SELECT DISTINCT col1 * ( 42 ) * 50 FROM tab1
----
10500
29400
98700

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 24 + - 34 < NULL
----

query I rowsort
SELECT ( 13 ) AS col2 FROM tab0 AS cor0
----
13
13
13

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

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

query I rowsort
SELECT ALL - - AVG ( DISTINCT - col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT NULL > + col1 / + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 84 * col2 col2 FROM tab1 AS cor0
----
-4956
-5712
-8064

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 IN ( + col1 * + + 38 * + col1 + col2 / + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-5908
SELECT 78 DIV - col1, col1 * col0 + col1 * col0 AS col0 FROM tab0 AS cor0
----
-3
3654
-78
194
0
2430

skipif mysql # not compatible
query II rowsort label-5908
SELECT 78 / - col1, col1 * col0 + col1 * col0 AS col0 FROM tab0 AS cor0
----
-3
3654
-78
194
0
2430

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5909
SELECT * FROM tab2 AS cor0 WHERE ( + 89 ) NOT IN ( - col2 / CAST( NULL AS SIGNED ), 95 )
----

skipif mysql # not compatible
query III rowsort label-5909
SELECT * FROM tab2 AS cor0 WHERE ( + 89 ) NOT IN ( - col2 / CAST ( NULL AS INTEGER ), 95 )
----

query I rowsort
SELECT ALL - 23 FROM tab0 AS cor0 WHERE NOT NULL = - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) * + ( + col2 ) * + col1 col0 FROM tab2 AS cor0
----
237160
260362
59823

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5912
SELECT 29 DIV col0 * + CAST( - col2 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5912
SELECT 29 / col0 * + CAST ( - col2 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
0
0
0

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

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

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

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

query I rowsort
SELECT - 44 * + - col1 FROM tab0
----
3564
44
924

query I rowsort
SELECT DISTINCT col0 * - + 50 FROM tab0
----
-4350
-4850
-750

query I rowsort
SELECT ALL + col0 + + + col0 * + 58 AS col1 FROM tab2
----
2714
3776
4425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5918
SELECT ALL 64 + - col0 * - - ( - CAST( + col2 AS SIGNED ) ) + 25 * + col0 AS col0 FROM tab2
----
2272
4224
6289

skipif mysql # not compatible
query I rowsort label-5918
SELECT ALL 64 + - col0 * - - ( - CAST ( + col2 AS INTEGER ) ) + 25 * + col0 AS col0 FROM tab2
----
2272
4224
6289

query I rowsort
SELECT DISTINCT col1 + + - ( - - 82 ) AS col2 FROM tab1
----
-35
-68
-77

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

query I rowsort
SELECT ALL 38 - col1 + + - 34 * - 68 FROM tab1 AS cor0
----
2303
2336
2345

query I rowsort
SELECT - - col1 + col0 + - + 97 FROM tab2 AS cor0
----
0
44
45

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 93 NOT IN ( - - col2, + col1 + - - col0, + + 9 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 * + + 83 AS col0 FROM tab1
----
4897
5644
7968

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col2, col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5927
SELECT + col2 DIV - 5 FROM tab1 AS cor0
----
-11
-13
-19

skipif mysql # not compatible
query I rowsort label-5927
SELECT + col2 / - 5 FROM tab1 AS cor0
----
-11
-13
-19

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 60 <> + - 13
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col0, - col1 AS col2 FROM tab1 AS cor0
----
-51
-14
-85
-5
-91
-47

query I rowsort
SELECT - ( + ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT DISTINCT + + 1 * - + MIN( ALL + col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5931
SELECT DISTINCT + + 1 * - + MIN ( ALL + col1 ) FROM tab2 AS cor0
----
-51

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

query I rowsort
SELECT ALL 73 * ( + + col2 ) AS col2 FROM tab1 AS cor0
----
4307
4964
7008

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 < col2
----

query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL = NULL
----

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

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

query I rowsort
SELECT DISTINCT + 44 * + col0 FROM tab0
----
3828
4268
660

query I rowsort
SELECT DISTINCT + col2 * col0 * + ( + - col2 ) AS col0 FROM tab2
----
-102400
-24334
-252300

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT DISTINCT + ( + + SUM( + - col1 ) ) * + + 22 col2 FROM tab0
----
-2266

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5941
SELECT DISTINCT + ( + + SUM ( + - col1 ) ) * + + 22 col2 FROM tab0
----
-2266

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT ALL + 61 * - COUNT( col2 ) FROM tab2 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL + 61 * - COUNT ( col2 ) FROM tab2 AS cor0
----
-183

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 WHERE - col1 * + + 72 - col2 - + col0 IS NULL
----

query I rowsort
SELECT ALL + col1 + col1 + - + col2 * - 0 + - 7 FROM tab2
----
127
147
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5946
SELECT DISTINCT - - ( col0 ) / + - 51 + + col1 + - 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-5946
SELECT DISTINCT - - ( col0 ) / + - 51 + + col1 + - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - col0 + + 61 AS col2 FROM tab2 AS cor0
----
-14
-3
15

query I rowsort
SELECT DISTINCT - ( - 76 ) AS col0 FROM tab1 cor0
----
76

query I rowsort
SELECT DISTINCT 8 AS col0 FROM tab0 WHERE - + 71 IS NOT NULL
----
8

query I rowsort
SELECT + col2 * + 29 FROM tab1
----
1711
1972
2784

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5951
SELECT DISTINCT * FROM tab2 WHERE NULL < 2 * - 33 * + CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5951
SELECT DISTINCT * FROM tab2 WHERE NULL < 2 * - 33 * + CAST ( col2 AS INTEGER )
----

query II rowsort
SELECT DISTINCT 57 - col2 * ( col2 ) AS col1, - ( - 78 ) AS col0 FROM tab1 AS cor0
----
-3424
78
-4567
78
-9159
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + col1 col0 FROM tab2 AS cor0
----
-28
-37
-9

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5955
SELECT + CAST( - + col1 AS SIGNED ) FROM tab2 WHERE NOT + + col0 + col1 + + 43 NOT IN ( + - col1 )
----

skipif mysql # not compatible
query I rowsort label-5955
SELECT + CAST ( - + col1 AS INTEGER ) FROM tab2 WHERE NOT + + col0 + col1 + + 43 NOT IN ( + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT DISTINCT - SUM( + 57 ) AS col2 FROM tab2 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-5956
SELECT DISTINCT - SUM ( + 57 ) AS col2 FROM tab2 AS cor0
----
-171

query I rowsort
SELECT ALL + 73 * + col1 AS col2 FROM tab1 AS cor0
----
1022
3431
365

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

query II rowsort
SELECT DISTINCT + col1 AS col2, - col2 - 25 + col0 FROM tab0 AS cor0
----
1
-27
21
52
81
-57

query I rowsort
SELECT - 79 * - - 97 * col1 + col2 FROM tab0 AS cor0
----
-160913
-620656
-7564

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + 41
----

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

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

query I rowsort
SELECT ALL col0 + + - ( + col2 ) FROM tab2
----
17
23
24

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

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

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT - 76 BETWEEN - + col0 / + col0 AND ( + 79 * - ( + - 24 ) + col0 )
----
51
85
91

query I rowsort
SELECT ALL col0 * + + col2 * + col2 FROM tab2 AS cor0
----
102400
24334
252300

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5969
SELECT DISTINCT - MAX( + + CAST( - col2 AS SIGNED ) ), - COUNT( * ) AS col2 FROM tab0
----
10
-3

skipif mysql # not compatible
query II rowsort label-5969
SELECT DISTINCT - MAX ( + + CAST ( - col2 AS INTEGER ) ), - COUNT ( * ) AS col2 FROM tab0
----
10
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5970
SELECT DISTINCT CAST( - MAX( + - col0 ) AS SIGNED ) AS col1 FROM tab1 WHERE - ( 68 ) * + col0 IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5970
SELECT DISTINCT CAST ( - MAX ( + - col0 ) AS INTEGER ) AS col1 FROM tab1 WHERE - ( 68 ) * + col0 IN ( - col1 )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 42 / col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col2 * - + col0 - - col0 * + col0 + col0 + - 66 - + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-966
2524
5314

query II rowsort
SELECT + - 13, + col2 AS col2 FROM tab0 AS cor0 WHERE col0 * - ( + col0 ) IS NOT NULL
----
-13
10
-13
47
-13
99

query I rowsort
SELECT col2 * - ( - 18 ) FROM tab1 AS cor0
----
1062
1224
1728

query I rowsort
SELECT - 71 - + + 71 * - 92 AS col0 FROM tab1
----
6461
6461
6461

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5977
SELECT + MAX( - col0 ) - CAST( - 23 AS SIGNED ) AS col1 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-5977
SELECT + MAX ( - col0 ) - CAST ( - 23 AS INTEGER ) AS col1 FROM tab1
----
-28

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5980
SELECT DISTINCT - col0 + - CAST( - 89 AS SIGNED ) FROM tab2
----
14
25
43

skipif mysql # not compatible
query I rowsort label-5980
SELECT DISTINCT - col0 + - CAST ( - 89 AS INTEGER ) FROM tab2
----
14
25
43

query I rowsort
SELECT 94 + - + col2 FROM tab0
----
-5
47
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5982
SELECT ALL - 5 - + MAX( ALL 98 ) AS col1, COUNT( * ) + - 24 * COUNT( * ) - + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1 cor0
----
-103
-72

skipif mysql # not compatible
query II rowsort label-5982
SELECT ALL - 5 - + MAX ( ALL 98 ) AS col1, COUNT ( * ) + - 24 * COUNT ( * ) - + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 cor0
----
-103
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-5983
SELECT - + col2 * 48 DIV col1 + + 71 FROM tab0 AS cor0
----
-4681
44
49

skipif mysql # not compatible
query I rowsort label-5983
SELECT - + col2 * 48 / col1 + + 71 FROM tab0 AS cor0
----
-4681
44
49

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

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

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

query I rowsort
SELECT - - 37 * - col2 FROM tab1 AS cor0
----
-2183
-2516
-3552

query I rowsort
SELECT - - 38 AS col2 FROM tab2 AS cor0
----
38
38
38

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 35 + - + col2 >= NULL
----

query I rowsort
SELECT + 82 + col1 FROM tab2
----
133
149
159

query I rowsort
SELECT DISTINCT - + 5 * - col2 AS col0 FROM tab0 WHERE ( - - col1 ) <= 47 + + - col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT DISTINCT MIN( - col2 ) + - + 48 AS col0 FROM tab0
----
-147

skipif mysql # not compatible
query I rowsort label-5992
SELECT DISTINCT MIN ( - col2 ) + - + 48 AS col0 FROM tab0
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5993
SELECT DISTINCT + col0 * - CAST( - - col0 AS SIGNED ), CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
-2116
NULL
-4096
NULL
-5625
NULL

skipif mysql # not compatible
query II rowsort label-5993
SELECT DISTINCT + col0 * - CAST ( - - col0 AS INTEGER ), CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
-2116
NULL
-4096
NULL
-5625
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT DISTINCT - MIN( ALL - + col2 ) col0 FROM tab0 cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

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

query II rowsort
SELECT + col0 * - 14 * col2, col1 * + 91 AS col2 FROM tab0 AS cor0
----
-12180
1911
-134442
91
-9870
7371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5998
SELECT 26 * + + 0 AS col2 FROM tab0 AS cor0 WHERE - col0 <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5998
SELECT 26 * + + 0 AS col2 FROM tab0 AS cor0 WHERE - col0 <= - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 93 * - + col0 AS col2 FROM tab1 AS cor0
----
-4743
-7905
-8463

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT ALL - 79 + COUNT( * ) FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-6001
SELECT ALL - 79 + COUNT ( * ) FROM tab0
----
-76

query I rowsort
SELECT - 97 * col2 + + col0 FROM tab2 AS cor0
----
-2185
-3816
-5551

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

query I rowsort
SELECT - 53 + + - col0 FROM tab0 cor0
----
-140
-150
-68

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

query I rowsort
SELECT - 65 + col0 FROM tab0 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6007
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + - 47 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6007
SELECT DISTINCT + CAST ( NULL AS REAL ) * + - 47 FROM tab1 cor0
----
NULL

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

query III rowsort
SELECT * FROM tab0 WHERE + col1 * + col1 BETWEEN + - col2 AND col1 + - - col0
----
97
1
99

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

skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL - MAX ( ALL - - col2 ) AS col2 FROM tab1
----
-96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT COUNT( * ) FROM tab2 cor0 WHERE NOT + 58 < - + col0
----
3

skipif mysql # not compatible
query I rowsort label-6012
SELECT COUNT ( * ) FROM tab2 cor0 WHERE NOT + 58 < - + col0
----
3

query I rowsort
SELECT ALL - + 65 * col1 * col2 FROM tab1 cor0
----
-19175
-207740
-87360

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 64 NOT IN ( + ( - + col2 ) * 42 + col1, - col2 + - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT - 53 * - COUNT( * ) FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-6015
SELECT - 53 * - COUNT ( * ) FROM tab0
----
159

query I rowsort
SELECT + col1 * 53 AS col2 FROM tab1 AS cor0
----
2491
265
742

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT COUNT( ALL + 78 ) FROM tab1 AS cor0 WHERE NOT col2 + + + 22 BETWEEN NULL AND ( + col0 * - 62 * + - 55 )
----
0

skipif mysql # not compatible
query I rowsort label-6017
SELECT COUNT ( ALL + 78 ) FROM tab1 AS cor0 WHERE NOT col2 + + + 22 BETWEEN NULL AND ( + col0 * - 62 * + - 55 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + 16 + - col2 NOT BETWEEN ( + 96 * + - col2 * - col1 * + col2 ) AND 55 - + col2
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6020
SELECT DISTINCT col2 DIV + col2 + + 9 - - col0, + col1 AS col0 FROM tab2
----
56
51
74
77
85
67

skipif mysql # not compatible
query II rowsort label-6020
SELECT DISTINCT col2 / + col2 + + 9 - - col0, + col1 AS col0 FROM tab2
----
56
51
74
77
85
67

query I rowsort
SELECT ALL 74 * - col1 AS col1 FROM tab2
----
-3774
-4958
-5698

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT DISTINCT + SUM( + col2 ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-6022
SELECT DISTINCT + SUM ( + col2 ) FROM tab1 cor0
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + - + 73 col1, col1 FROM tab2 AS cor0
----
-27
51
-9
77
2
67

query I rowsort
SELECT + - ( 14 ) + - + col2 FROM tab2 AS cor0
----
-37
-54
-72

query I rowsort
SELECT 30 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

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

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

query I rowsort
SELECT ALL 60 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 41 >= - + 79
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6031
SELECT + - 71 - + col2 DIV + - col2 AS col1, - col0 AS col0 FROM tab1 AS cor0
----
-70
-51
-70
-85
-70
-91

skipif mysql # not compatible
query II rowsort label-6031
SELECT + - 71 - + col2 / + - col2 AS col1, - col0 AS col0 FROM tab1 AS cor0
----
-70
-51
-70
-85
-70
-91

query I rowsort
SELECT DISTINCT - 99 * - - col2 - + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-5926
-6823
-9555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6033
SELECT ALL + COUNT( + col2 ) * - COUNT( * ) - - + CAST( - 28 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL + COUNT ( + col2 ) * - COUNT ( * ) - - + CAST ( - 28 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-37

query I rowsort
SELECT ALL + - col2 - - col0 + - - 30 AS col0 FROM tab1 AS cor0
----
-15
53
56

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

query I rowsort
SELECT + + col2 AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col2, + ( + 50 ) - - + col1 + + 40, - 72 - + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL >= 73 + - col1 )
----

query I rowsort
SELECT col2 * - + 23 FROM tab2
----
-1334
-529
-920

query I rowsort
SELECT DISTINCT col0 * 54 * + col2 * ( + col2 ) FROM tab0
----
1789290
469800
51337638

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

query I rowsort
SELECT col1 * + - 33 AS col1 FROM tab2
----
-1683
-2211
-2541

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

skipif mysql # not compatible
query I rowsort label-6042
SELECT ALL CAST ( NULL AS REAL ) / - 13 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT DISTINCT ( + + COUNT( - - 45 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6043
SELECT DISTINCT ( + + COUNT ( - - 45 ) ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6044
SELECT DISTINCT 50 * + CAST( - ( col2 ) AS SIGNED ) AS col0 FROM tab1
----
-2950
-3400
-4800

skipif mysql # not compatible
query I rowsort label-6044
SELECT DISTINCT 50 * + CAST ( - ( col2 ) AS INTEGER ) AS col0 FROM tab1
----
-2950
-3400
-4800

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

query I rowsort
SELECT DISTINCT + 11 * + col0 + col1 FROM tab1 AS cor0
----
1048
575
940

onlyif mysql # aggregate syntax: 
query II rowsort label-6047
SELECT COUNT( * ) AS col1, + 94 AS col2 FROM tab1 AS cor0
----
3
94

skipif mysql # not compatible
query II rowsort label-6047
SELECT COUNT ( * ) AS col1, + 94 AS col2 FROM tab1 AS cor0
----
3
94

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

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

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

query I rowsort
SELECT - - 39 AS col1 FROM tab2 cor0
----
39
39
39

query I rowsort
SELECT ALL 24 * - 68 FROM tab1 AS cor0
----
-1632
-1632
-1632

query I rowsort
SELECT - - col2 * + col1 + col0 FROM tab1 AS cor0
----
1395
3287
380

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT + - 97 * + SUM( DISTINCT - - 4 ) AS col2 FROM tab2 AS cor0
----
-388

skipif mysql # not compatible
query I rowsort label-6053
SELECT + - 97 * + SUM ( DISTINCT - - 4 ) AS col2 FROM tab2 AS cor0
----
-388

query I rowsort
SELECT ALL + ( + col2 ) * + - 66 FROM tab2 AS cor0
----
-1518
-2640
-3828

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 + + + col2 + + col2 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6056
SELECT ALL - + 44 DIV - + CAST( - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL - + 44 / - + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-14

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <= - 44
----

query II rowsort
SELECT ALL ( + col0 ) AS col1, 66 * + col1 FROM tab0 AS cor0
----
15
5346
87
1386
97
66

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

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

query I rowsort
SELECT DISTINCT 36 + 14 * - col0 AS col1 FROM tab0
----
-1182
-1322
-174

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col0 <> - col0 * - col1 * + 22
----

query I rowsort
SELECT DISTINCT + col0 + ( + col2 ) * - + col1 * - - col1 AS col1 FROM tab1
----
-1390
-150121
-18765

query I rowsort
SELECT 8 + - ( + - ( - col1 ) ) * - - 26 * - col2 FROM tab0 AS cor0 WHERE - 18 BETWEEN NULL AND NULL
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 34 * + col0 - col0 AS col0 FROM tab2 AS cor0
----
1518
2112
2475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6070
SELECT ALL 3 + - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
102
13
50

skipif mysql # not compatible
query I rowsort label-6070
SELECT ALL 3 + - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
102
13
50

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6072
SELECT MIN( DISTINCT CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
NULL

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

query I rowsort
SELECT - col1 * - - col2 * - - 29 AS col2 FROM tab1
----
-38976
-8555
-92684

query III rowsort
SELECT * FROM tab2 WHERE NOT - 19 * + col1 - - col2 NOT BETWEEN ( 66 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 * - 11 FROM tab2
----
-506
-704
-825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 col2 FROM tab0, tab0 AS cor0 WHERE NOT - 32 + 68 IS NULL
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 - - col2 * + col1 + + + 94 * + + 76 - col1 / col2 < NULL
----

query I rowsort
SELECT 38 + + ( - ( - + 43 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
81
81
81

query I rowsort
SELECT ALL 61 * 88 AS col2 FROM tab1
----
5368
5368
5368

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

query I rowsort
SELECT ALL - col0 * - - col0 + - - col0 AS col1 FROM tab0 cor0
----
-210
-7482
-9312

onlyif mysql # DIV for integer division: 
query I rowsort label-6082
SELECT DISTINCT + - col1 DIV col0 * - - ( - 5 ) DIV col1 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6082
SELECT DISTINCT + - col1 / col0 * - - ( - 5 ) / col1 AS col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 col2 FROM tab2 AS cor0 WHERE NOT col2 >= NULL
----

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

query I rowsort
SELECT + 76 - - 32 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT DISTINCT 33 + col1 FROM tab2
----
100
110
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT + MIN( - + ( + 52 ) ) AS col2 FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-6087
SELECT + MIN ( - + ( + 52 ) ) AS col2 FROM tab1
----
-52

query I rowsort
SELECT ALL + 72 + + col2 AS col0 FROM tab1
----
131
140
168

onlyif mysql # DIV for integer division: 
query I rowsort label-6089
SELECT - 78 DIV col2 * + + col1 DIV + col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6089
SELECT - 78 / col2 * + + col1 / + col2 AS col1 FROM tab1
----
0
0
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6091
SELECT ALL - CAST( - ( 58 ) AS SIGNED ) + - MAX( + + ( + col1 ) ) FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-6091
SELECT ALL - CAST ( - ( 58 ) AS INTEGER ) + - MAX ( + + ( + col1 ) ) FROM tab1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6092
SELECT + CAST( NULL AS SIGNED ) + + 0 * - col1 * + + col1 + - CAST( NULL AS SIGNED ) * + 61 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6092
SELECT + CAST ( NULL AS INTEGER ) + + 0 * - col1 * + + col1 + - CAST ( NULL AS INTEGER ) * + 61 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT col0 + - col0 + + - 81 FROM tab0
----
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-6095
SELECT col1, col1 DIV - 95 - + - col0 + - 79 FROM tab0 cor0 WHERE NULL IS NULL
----
1
18
21
8
81
-64

skipif mysql # not compatible
query II rowsort label-6095
SELECT col1, col1 / - 95 - + - col0 + - 79 FROM tab0 cor0 WHERE NULL IS NULL
----
1
18
21
8
81
-64

query I rowsort
SELECT + col2 + + + 40 + col2 FROM tab2 AS cor0
----
120
156
86

query II rowsort
SELECT + col0 + - 95, - col1 AS col0 FROM tab0 AS cor0
----
-8
-21
-80
-81
2
-1

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + col0 * - - 6 AS col1 FROM tab2
----
276
384
450

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6105
SELECT - 24 * + - 63 / + - 29 * + ( CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6105
SELECT - 24 * + - 63 / + - 29 * + ( CAST ( NULL AS REAL ) ) FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - + 89 + + 12 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT DISTINCT ( + - 6 ) * col2 + col1 FROM tab0
----
-201
-39
-593

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6110
SELECT - CAST( NULL AS SIGNED ) / 88 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6110
SELECT - CAST ( NULL AS INTEGER ) / 88 AS col2 FROM tab2
----
NULL
NULL
NULL

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 93, + col1 col0 FROM tab1
----
93
14
93
47
93
5

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

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

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

query I rowsort
SELECT DISTINCT 30 - - 2 FROM tab0
----
32

query II rowsort
SELECT - 23, - 58 FROM tab0 WHERE NULL NOT IN ( + + 63, 27 - - col0 + + col2 * + - col2 * - 8 )
----

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

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

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

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

query I rowsort
SELECT ( 12 ) * + 88 AS col0 FROM tab0
----
1056
1056
1056

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6123
SELECT ALL - 65 * col2 + - 53 DIV + col1 FROM tab1 AS cor0
----
-3845
-4421
-6243

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL - 65 * col2 + - 53 / + col1 FROM tab1 AS cor0
----
-3845
-4421
-6243

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

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

query I rowsort
SELECT ALL - + 15 AS col1 FROM tab2 cor0
----
-15
-15
-15

query II rowsort
SELECT 80 AS col2, col2 * - + 41 FROM tab0
----
80
-1927
80
-4059
80
-410

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

skipif mysql # not compatible
query I rowsort label-6127
SELECT + 1 / - + col2 FROM tab2
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT ALL COUNT( * ) * - 98 FROM tab0
----
-294

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL COUNT ( * ) * - 98 FROM tab0
----
-294

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

skipif mysql # not compatible
query I rowsort label-6130
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + col2 FROM tab2 WHERE NOT NULL NOT IN ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 * + col2 col2 FROM tab1
----
2242
2584
3648

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( - 27 ) NOT BETWEEN col0 * - ( col0 ) AND + col2
----

query II rowsort
SELECT col0, - col2 * + - col1 FROM tab2 AS cor0
----
46
1173
64
3080
75
3886

query I rowsort
SELECT + 61 + - col2 FROM tab1 AS cor0
----
-35
-7
2

query I rowsort
SELECT ALL - + ( + - 34 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 97 / + 78 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT + col1 * - + ( - 68 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1428
5508
68

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 24 / - 22 BETWEEN 56 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT - MAX( DISTINCT col1 ) * - - MAX( + - 54 ) AS col0 FROM tab0 AS cor0
----
4374

skipif mysql # not compatible
query I rowsort label-6141
SELECT - MAX ( DISTINCT col1 ) * - - MAX ( + - 54 ) AS col0 FROM tab0 AS cor0
----
4374

query I rowsort
SELECT + 40 * + col0 * - - 90 AS col0 FROM tab1 AS cor0
----
183600
306000
327600

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

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

query I rowsort
SELECT DISTINCT ( + + col1 ) * + + col1 + col1 FROM tab2
----
2652
4556
6006

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 * 2 * col1 col2 FROM tab1
----
-196
-658
-70

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6147
SELECT ALL - col2 + + CAST( + 12 AS SIGNED ) + CAST( - col1 AS SIGNED ) AS col1, + col0 - 47 DIV - 4 FROM tab0
----
-116
26
-19
98
-88
108

skipif mysql # not compatible
query II rowsort label-6147
SELECT ALL - col2 + + CAST ( + 12 AS INTEGER ) + CAST ( - col1 AS INTEGER ) AS col1, + col0 - 47 / - 4 FROM tab0
----
-116
26
-19
98
-88
108

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

query I rowsort
SELECT - - 51 + + 99 AS col0 FROM tab0 WHERE 80 * + col0 IS NOT NULL
----
150
150
150

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + 64 AND - + 85
----

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 58 + 97 FROM tab1
----
155
155
155

onlyif mysql # DIV for integer division: 
query I rowsort label-6159
SELECT col2 DIV - 66 + - 83 FROM tab1
----
-83
-84
-84

skipif mysql # not compatible
query I rowsort label-6159
SELECT col2 / - 66 + - 83 FROM tab1
----
-83
-84
-84

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6161
SELECT - col2 DIV - 79 * + col1 AS col0, 99 * - col1 FROM tab2 cor0
----
0
-5049
0
-6633
0
-7623

skipif mysql # not compatible
query II rowsort label-6161
SELECT - col2 / - 79 * + col1 AS col0, 99 * - col1 FROM tab2 cor0
----
0
-5049
0
-6633
0
-7623

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT 62 + + COUNT( * ) + 28 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-6163
SELECT 62 + + COUNT ( * ) + 28 FROM tab2 AS cor0
----
93

query I rowsort
SELECT + col0 + + col1 + col0 + + - 62 FROM tab0 cor0
----
133
133
49

onlyif mysql # DIV for integer division: 
query I rowsort label-6165
SELECT - 84 DIV col2 + - col1 + 26 col0 FROM tab1 AS cor0
----
-22
12
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6165
SELECT - 84 / col2 + - col1 + 26 col0 FROM tab1 AS cor0
----
-22
12
20

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

query I rowsort
SELECT + 98 + + + col2 FROM tab2 AS cor0
----
121
138
156

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT DISTINCT 79 * + COUNT( * ) FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-6168
SELECT DISTINCT 79 * + COUNT ( * ) FROM tab1 AS cor0
----
237

query I rowsort
SELECT DISTINCT col1 + + - 17 FROM tab2 cor0
----
34
50
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT DISTINCT - SUM( 32 ) AS col1 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-6170
SELECT DISTINCT - SUM ( 32 ) AS col1 FROM tab2
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-6171
SELECT 57 DIV + - col2 AS col0 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6171
SELECT 57 / + - col2 AS col0 FROM tab2
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT ALL SUM( ALL 72 ) + 1 FROM tab1
----
217

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL SUM ( ALL 72 ) + 1 FROM tab1
----
217

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT - COUNT( 9 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6173
SELECT - COUNT ( 9 ) FROM tab1
----
-3

query I rowsort
SELECT - 83 - col0 + - col0 * ( + col0 ) FROM tab1
----
-2735
-7393
-8455

query II rowsort
SELECT ALL 46 * + 77 - - 49 + + + col2, + ( - col1 ) * col0 AS col2 FROM tab2
----
3614
-2346
3631
-4928
3649
-5025

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

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT SUM ( - col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-227

query I rowsort
SELECT ALL + col2 * - - col2 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT DISTINCT 22 * - + 24 AS col2 FROM tab1
----
-528

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

query I rowsort
SELECT col0 * + col2 * - - ( - - col0 ) AS col1 FROM tab2
----
163840
326250
48668

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT 10 * + COUNT( * ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-6181
SELECT 10 * + COUNT ( * ) FROM tab0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT DISTINCT + + MAX( 60 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
60

skipif mysql # not compatible
query I rowsort label-6182
SELECT DISTINCT + + MAX ( 60 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
60

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6184
SELECT DISTINCT SUM( ALL - CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0 WHERE NULL < + col0 / col1 - - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6184
SELECT DISTINCT SUM ( ALL - CAST ( NULL AS REAL ) ) FROM tab2 AS cor0 WHERE NULL < + col0 / col1 - - - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT DISTINCT + MIN( ALL + - col1 ) * + MIN( DISTINCT - 0 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6185
SELECT DISTINCT + MIN ( ALL + - col1 ) * + MIN ( DISTINCT - 0 ) FROM tab2 cor0
----
0

query I rowsort
SELECT - + 75 + - + 23 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 10 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6187
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 10 <= NULL
----
0

query I rowsort
SELECT ALL + + col1 * + 81 FROM tab1 cor0
----
1134
3807
405

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6189
SELECT DISTINCT + CAST( + 41 AS SIGNED ) FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-6189
SELECT DISTINCT + CAST ( + 41 AS INTEGER ) FROM tab2 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT DISTINCT SUM( + 54 ) FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-6190
SELECT DISTINCT SUM ( + 54 ) FROM tab2 AS cor0
----
162

query I rowsort
SELECT + 18 / - - 16 FROM tab1 WHERE NOT NULL IS NULL
----

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

query II rowsort
SELECT ( col2 ) * + - col0 - - col0, + 44 AS col1 FROM tab0
----
-690
44
-783
44
-9506
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT 79 * COUNT( ALL col0 ) * 26 col1 FROM tab2
----
6162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6194
SELECT 79 * COUNT ( ALL col0 ) * 26 col1 FROM tab2
----
6162

query I rowsort
SELECT 97 * + 4 AS col0 FROM tab0
----
388
388
388

query I rowsort
SELECT ALL - col1 * + 98 * - col0 AS col2 FROM tab1
----
41650
419146
69972

query I rowsort
SELECT ALL col1 + - + col0 FROM tab2
----
-8
13
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * + + col2 col0, col0 AS col2 FROM tab1
----
-3481
85
-4624
91
-9216
51

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6200
SELECT ALL - + 16 DIV + - 96 AS col0, + 1 * + 26 AS col1 FROM tab2 AS cor0
----
0
26
0
26
0
26

skipif mysql # not compatible
query II rowsort label-6200
SELECT ALL - + 16 / + - 96 AS col0, + 1 * + 26 AS col1 FROM tab2 AS cor0
----
0
26
0
26
0
26

query II rowsort
SELECT 32 + - col2, col2 AS col0 FROM tab2
----
-26
58
-8
40
9
23

query I rowsort
SELECT ALL 12 * + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1188
120
564

query I rowsort
SELECT DISTINCT + 18 * - - 6 + + - col2 * col1 - - col2 FROM tab2
----
-1042
-2932
-3720

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6205
SELECT ALL + col2 DIV 12 FROM tab2
----
1
3
4

skipif mysql # not compatible
query I rowsort label-6205
SELECT ALL + col2 / 12 FROM tab2
----
1
3
4

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 68 * + ( + + col2 ) > NULL
----

query I rowsort
SELECT ALL col2 + - 88 FROM tab1 cor0
----
-20
-29
8

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> + 85 * + 71
----

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

query I rowsort
SELECT DISTINCT - - col0 * - col0 * col1 + - + 52 + + 59 FROM tab2 AS cor0
----
-107909
-315385
-376868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * 8 - + + 88 - - col0 * col2 col2 FROM tab1 AS cor0
----
5216
5607
6828

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

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

query I rowsort
SELECT + 81 - + + 52 AS col0 FROM tab1 AS cor0
----
29
29
29

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

query II rowsort
SELECT + 9 * - 75 - 89 AS col1, - 27 AS col1 FROM tab1
----
-764
-27
-764
-27
-764
-27

query II rowsort
SELECT col2 * - 27 + + col0 AS col0, + col1 AS col2 FROM tab2
----
-1016
77
-1491
67
-575
51

query III rowsort
SELECT * FROM tab1 WHERE NULL <> + 25 / - col1
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6220
SELECT - 17 * - 99 - + col1 + - - 81 DIV - 14 + + - col2 FROM tab0 AS cor0
----
1550
1578
1647

skipif mysql # not compatible
query I rowsort label-6220
SELECT - 17 * - 99 - + col1 + - - 81 / - 14 + + - col2 FROM tab0 AS cor0
----
1550
1578
1647

query I rowsort
SELECT + ( + - col1 ) * col0 FROM tab1 AS cor0
----
-425
-4277
-714

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

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

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

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

query I rowsort
SELECT DISTINCT + 38 + 89 FROM tab0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE NOT ( + col2 / + col2 ) NOT IN ( - ( 1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6225
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( + col2 / + col2 ) NOT IN ( - ( 1 ) )
----
0

query I rowsort
SELECT ALL - 0 FROM tab1 WHERE NOT NULL <> ( NULL )
----

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

query I rowsort
SELECT - 51 AS col1 FROM tab1 WHERE ( + 15 + - 18 ) <= + col1 + 68
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT - SUM( ALL 94 ) FROM tab1
----
-282

skipif mysql # not compatible
query I rowsort label-6229
SELECT - SUM ( ALL 94 ) FROM tab1
----
-282

query I rowsort
SELECT - col0 - - ( - col2 ) FROM tab1
----
-144
-147
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6231
SELECT ALL - MIN( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

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

query I rowsort
SELECT - col1 * - col0 FROM tab1 WHERE NOT ( 45 ) NOT BETWEEN + col1 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT + COUNT( * ) + MIN( DISTINCT - col2 ) AS col0 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-6233
SELECT + COUNT ( * ) + MIN ( DISTINCT - col2 ) AS col0 FROM tab1
----
-93

query III rowsort
SELECT * FROM tab0 WHERE 97 * - 8 <= ( NULL )
----

query I rowsort
SELECT col0 + ( 71 ) AS col2 FROM tab2
----
117
135
146

query I rowsort
SELECT ( 55 ) * - col2 AS col0 FROM tab2
----
-1265
-2200
-3190

query I rowsort
SELECT ALL col0 * 46 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6238
SELECT - CAST( NULL AS SIGNED ) * - COUNT( DISTINCT - col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6238
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT - col1 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT DISTINCT + COUNT( * ) + - 46 FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-6239
SELECT DISTINCT + COUNT ( * ) + - 46 FROM tab1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) - ( 80 ) * 75 FROM tab0
----
-5991

skipif mysql # not compatible
query I rowsort label-6240
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) - ( 80 ) * 75 FROM tab0
----
-5991

query I rowsort
SELECT 72 AS col2 FROM tab1 WHERE NOT NULL IN ( + col1 * col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT ALL COUNT( DISTINCT 52 ) * - ( - COUNT( * ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL COUNT ( DISTINCT 52 ) * - ( - COUNT ( * ) ) AS col0 FROM tab0
----
3

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

query I rowsort
SELECT ALL 24 + 58 FROM tab2 AS cor0
----
82
82
82

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

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

query I rowsort
SELECT ALL ( 89 ) FROM tab0 AS cor0
----
89
89
89

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6252
SELECT - col1 + - 52 DIV ( - 71 ) AS col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6252
SELECT - col1 + - 52 / ( - 71 ) AS col1 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 WHERE 21 < ( - col1 )
----

query I rowsort
SELECT DISTINCT + 73 + - 63 AS col2 FROM tab1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6255
SELECT 46 * col1 + + CAST( + 64 AS SIGNED ) AS col1 FROM tab1
----
2226
294
708

skipif mysql # not compatible
query I rowsort label-6255
SELECT 46 * col1 + + CAST ( + 64 AS INTEGER ) AS col1 FROM tab1
----
2226
294
708

query I rowsort
SELECT DISTINCT 81 + - 57 FROM tab0 cor0 WHERE - 6 + - col1 IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT - + 84 + + COUNT( * ) FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6259
SELECT - + 84 + + COUNT ( * ) FROM tab2 AS cor0
----
-81

query I rowsort
SELECT 30 * col2 + 10 FROM tab1 AS cor0
----
1780
2050
2890

query I rowsort
SELECT DISTINCT + 28 AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) > 73 + 10
----

query I rowsort
SELECT ALL 60 - 80 FROM tab2 AS cor0
----
-20
-20
-20

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6264
SELECT COUNT( DISTINCT + col0 ) + CAST( - 36 AS SIGNED ) col0 FROM tab2 cor0
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6264
SELECT COUNT ( DISTINCT + col0 ) + CAST ( - 36 AS INTEGER ) col0 FROM tab2 cor0
----
-33

query I rowsort
SELECT - - ( - ( 84 ) ) FROM tab2 AS cor0
----
-84
-84
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-6266
SELECT + col0 DIV 63 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6266
SELECT + col0 / 63 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT ALL SUM( + col1 ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL SUM ( + col1 ) AS col1 FROM tab2
----
195

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT - SUM( - 14 ) AS col0 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-6269
SELECT - SUM ( - 14 ) AS col0 FROM tab0
----
42

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

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

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

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

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

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

query I rowsort
SELECT 1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6277
SELECT col1 + + + 49 DIV col2 AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6277
SELECT col1 + + + 49 / col2 AS col2 FROM tab1
----
14
47
5

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

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

query I rowsort
SELECT DISTINCT 84 FROM tab1 AS cor0 WHERE NOT - col0 / col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( 86 ) AND + ( col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > col2 + + 88 + col2
----

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

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT col0 <= ( - col1 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT ALL - MIN( ALL + col1 ) AS col1 FROM tab1 AS cor0 WHERE 89 = - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL - MIN ( ALL + col1 ) AS col1 FROM tab1 AS cor0 WHERE 89 = - + col2
----
NULL

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

query I rowsort
SELECT + 14 * + col0 AS col0 FROM tab1
----
1190
1274
714

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT COUNT( DISTINCT - 96 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6288
SELECT COUNT ( DISTINCT - 96 ) FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6289
SELECT 31 DIV col1 col1 FROM tab2 WHERE ( - - col2 ) * + 57 > + col1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6289
SELECT 31 / col1 col1 FROM tab2 WHERE ( - - col2 ) * + 57 > + col1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6290
SELECT DISTINCT - col1 / ( + - col1 ) * - - CAST( NULL AS DECIMAL ) + - col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6290
SELECT DISTINCT - col1 / ( + - col1 ) * - - CAST ( NULL AS REAL ) + - col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col1 + - - col1 FROM tab2
----
102
134
154

query I rowsort
SELECT - 62 + + col1 FROM tab0
----
-41
-61
19

query I rowsort
SELECT - col0 + col0 FROM tab2 AS cor0 WHERE 22 <= + col0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT COUNT( * ) + + COUNT( * ) FROM tab1 WHERE NULL NOT IN ( + + 8 )
----
0

skipif mysql # not compatible
query I rowsort label-6295
SELECT COUNT ( * ) + + COUNT ( * ) FROM tab1 WHERE NULL NOT IN ( + + 8 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6296
SELECT CAST( + 62 AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

skipif mysql # not compatible
query I rowsort label-6296
SELECT CAST ( + 62 AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( col0 ) + + col2 col2 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT ALL MIN( + 55 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
55

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL MIN ( + 55 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6300
SELECT ALL col0 * - CAST( col2 AS SIGNED ) - + col1 + 47 + - col2 * + col1 * - col0 FROM tab1 AS cor0
----
20102
284648
63681

skipif mysql # not compatible
query I rowsort label-6300
SELECT ALL col0 * - CAST ( col2 AS INTEGER ) - + col1 + 47 + - col2 * + col1 * - col0 FROM tab1 AS cor0
----
20102
284648
63681

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT ALL + 39 * MAX( ALL col1 ) AS col2 FROM tab1 AS cor0
----
1833

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL + 39 * MAX ( ALL col1 ) AS col2 FROM tab1 AS cor0
----
1833

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

query I rowsort
SELECT + - col2 * + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 + + 49 AND + - 51
----

query II rowsort
SELECT ALL col2, + col1 * - + 21 + + col1 AS col0 FROM tab2
----
23
-1020
40
-1540
58
-1340

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 / + col2 * + col0 - + - 34 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6309
SELECT DISTINCT - 34 DIV CAST( - + COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-6309
SELECT DISTINCT - 34 / CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
11

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

skipif mysql # not compatible
query I rowsort label-6310
SELECT + col2 / - - col1 * + col1 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + col1 * + 92 AS col0 FROM tab0 cor0
----
1932
7452
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 col0 FROM tab1 AS cor0 WHERE ( + col1 * + 47 ) IS NOT NULL
----
15

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6314
SELECT * FROM tab0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6314
SELECT * FROM tab0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6315
SELECT - 74 DIV col1 DIV 25 col1 FROM tab0
----
-2
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6315
SELECT - 74 / col1 / 25 col1 FROM tab0
----
-2
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT + ( - 4 ) * - - COUNT( * ) FROM tab0 AS cor0
----
-12

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6317
SELECT 97 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) * - 76 IS NULL
----
97
97
97

skipif mysql # not compatible
query I rowsort label-6317
SELECT 97 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * - 76 IS NULL
----
97
97
97

query I rowsort
SELECT + - 88 * col2 FROM tab2 AS cor0
----
-2024
-3520
-5104

query II rowsort
SELECT + 27 + - + 99, col0 AS col0 FROM tab2 AS cor0
----
-72
46
-72
64
-72
75

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

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

query III rowsort
SELECT * FROM tab2 WHERE + col1 IN ( + - 66 )
----

query I rowsort
SELECT + col2 + 61 AS col0 FROM tab1
----
120
129
157

query I rowsort
SELECT ALL + 53 FROM tab0 WHERE + - col1 + + col1 <> ( NULL )
----

query I rowsort
SELECT DISTINCT 46 - - col1 FROM tab1
----
51
60
93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT ALL + COUNT( - 78 ) * - - ( + MAX( DISTINCT - col1 ) ) AS col1 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL + COUNT ( - 78 ) * - - ( + MAX ( DISTINCT - col1 ) ) AS col1 FROM tab1 AS cor0
----
-15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - ( + + col2 ) + + 50, - 37 ) AND NOT 39 NOT BETWEEN ( + col0 + ( 13 ) ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 52 ) * + col0 col0 FROM tab0
----
-4524
-5044
-780

query I rowsort
SELECT DISTINCT - col2 * + col2 * 76 FROM tab1 AS cor0
----
-264556
-351424
-700416

query I rowsort
SELECT + col1 * - col2 - - + col0 FROM tab1 AS cor0
----
-1293
-210
-3105

query II rowsort
SELECT DISTINCT col2 AS col1, ( ( - 69 ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT col2 AS col2, - col1 - col0 * + 88 * - ( 81 ) AS col1 FROM tab1 WHERE col2 NOT BETWEEN NULL AND - + 62
----
59
605875
68
648601
96
363514

query I rowsort
SELECT - col1 + - - col0 * - + col2 AS col0 FROM tab1 WHERE NOT + + col2 IS NULL
----
-4910
-5020
-6235

query I rowsort
SELECT - col0 * - col1 * 56 * - 22 AS col2 FROM tab2
----
-2890272
-6071296
-6190800

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col0 / + 90 - 89 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab0 WHERE NOT - - col1 IS NULL
----
1
21
81

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6338
SELECT col2 DIV 85 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6338
SELECT col2 / 85 AS col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6339
SELECT 31 DIV 51 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6339
SELECT 31 / 51 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 37 * + col1 * + col1 FROM tab1
----
7252
81733
925

query II rowsort
SELECT DISTINCT - - col2 AS col0, + col1 * - 88 AS col2 FROM tab0 AS cor0
----
10
-1848
47
-7128
99
-88

query I rowsort
SELECT - col0 * + - 10 FROM tab2 AS cor0
----
460
640
750

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT DISTINCT - + MAX( DISTINCT - + col1 ) FROM tab0 AS cor0 WHERE + ( - col1 ) + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6343
SELECT DISTINCT - + MAX ( DISTINCT - + col1 ) FROM tab0 AS cor0 WHERE + ( - col1 ) + col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6344
SELECT DISTINCT col1 * CAST( - 94 AS SIGNED ) FROM tab1
----
-1316
-4418
-470

skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT col1 * CAST ( - 94 AS INTEGER ) FROM tab1
----
-1316
-4418
-470

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 10 col2, - col2 + - col0 FROM tab1 AS cor0
----
-10
-144
-10
-147
-10
-159

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6347
SELECT MIN ( + + col2 ) col1 FROM tab2 AS cor0
----
23

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6349
SELECT - - col1 DIV - 33 + + 9 FROM tab2 cor0
----
7
7
8

skipif mysql # not compatible
query I rowsort label-6349
SELECT - - col1 / - 33 + + 9 FROM tab2 cor0
----
7
7
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT + SUM( + + col1 ) FROM tab1 WHERE - 42 IS NOT NULL
----
66

skipif mysql # not compatible
query I rowsort label-6351
SELECT + SUM ( + + col1 ) FROM tab1 WHERE - 42 IS NOT NULL
----
66

query I rowsort
SELECT 40 * + col2 + - col0 * 54 AS col0 FROM tab1
----
-2194
-2230
1086

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6353
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 42 + 28 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6353
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 42 + 28 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL col1 + + 88 AS col0 FROM tab1
----
102
135
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 23 AS col2, + col1 * + 90 col1 FROM tab0 WHERE NULL <= + col2 * col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 65 + + 28 > - - col2 + 45 + + - 8 / 28 / + col1
----

query I rowsort
SELECT DISTINCT + 54 - col2 * + 84 AS col0 FROM tab0 AS cor0
----
-3894
-786
-8262

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

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

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

query II rowsort
SELECT - - 94, col2 + + col2 + + col0 + + col1 * + col1 FROM tab2 AS cor0 WHERE NOT - 82 > NULL
----

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

skipif mysql # not compatible
query I rowsort label-6361
SELECT + col2 / + - col2 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6362
SELECT DISTINCT + 14 * - + col2 DIV col2 AS col1 FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-6362
SELECT DISTINCT + 14 * - + col2 / col2 AS col1 FROM tab1 AS cor0
----
-14

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

query I rowsort
SELECT - ( + + ( + col2 ) ) * - col1 AS col0 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE - ( col0 ) > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6365
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE - ( col0 ) > ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT ALL COUNT( ALL - 57 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL COUNT ( ALL - 57 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6367
SELECT 0 DIV + 94 * - col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6367
SELECT 0 / + 94 * - col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6368
SELECT ALL 34 * + 6 AS col0, + CAST( NULL AS SIGNED ) FROM tab2
----
204
NULL
204
NULL
204
NULL

skipif mysql # not compatible
query II rowsort label-6368
SELECT ALL 34 * + 6 AS col0, + CAST ( NULL AS INTEGER ) FROM tab2
----
204
NULL
204
NULL
204
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6369
SELECT DISTINCT - col2 DIV + col0 + + + col1 col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6369
SELECT DISTINCT - col2 / + col0 + + + col1 col0 FROM tab2 AS cor0
----
51
67
77

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

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

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

query II rowsort
SELECT - 22 AS col1, 68 AS col0 FROM tab0
----
-22
68
-22
68
-22
68

query I rowsort
SELECT DISTINCT 79 + + col1 FROM tab2 AS cor0
----
130
146
156

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

query I rowsort
SELECT + 59 + - col2 AS col0 FROM tab1 AS cor0
----
-37
-9
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 + + - ( - col2 ) col1 FROM tab0 cor0
----
111
163
74

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6381
SELECT COUNT( * ) * + + CAST( - 86 AS SIGNED ) AS col2 FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-6381
SELECT COUNT ( * ) * + + CAST ( - 86 AS INTEGER ) AS col2 FROM tab2
----
-258

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6382
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col0 FROM tab2 WHERE NOT 29 / + + ( + + 29 ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6382
SELECT DISTINCT + CAST ( NULL AS REAL ) col0 FROM tab2 WHERE NOT 29 / + + ( + + 29 ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6383
SELECT DISTINCT col1 + - col0 DIV + 5 FROM tab1
----
-12
29
4

skipif mysql # not compatible
query I rowsort label-6383
SELECT DISTINCT col1 + - col0 / + 5 FROM tab1
----
-12
29
4

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6385
SELECT DISTINCT 13 - + col1 DIV + col2 FROM tab2 AS cor0
----
11
12

skipif mysql # not compatible
query I rowsort label-6385
SELECT DISTINCT 13 - + col1 / + col2 FROM tab2 AS cor0
----
11
12

query I rowsort
SELECT ALL - 27 FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 )
----

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

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

query II rowsort
SELECT - col0, + ( ( - + col0 ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15
-15
-87
-87
-97
-97

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6390
SELECT ALL + col2 * + + CAST( + + col2 AS SIGNED ), - col1 col2 FROM tab1 cor0
----
3481
-5
4624
-47
9216
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6390
SELECT ALL + col2 * + + CAST ( + + col2 AS INTEGER ), - col1 col2 FROM tab1 cor0
----
3481
-5
4624
-47
9216
-14

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 > + 95 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT + + SUM( 92 ) FROM tab1 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-6392
SELECT + + SUM ( 92 ) FROM tab1 AS cor0
----
276

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

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

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

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

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

query I rowsort
SELECT ALL 71 + - col2 FROM tab2
----
13
31
48

query I rowsort
SELECT 11 FROM tab0 WHERE NOT + - col0 NOT IN ( + + col1 + + col1 )
----

query I rowsort
SELECT + col0 * col1 * col1 AS col0 FROM tab2 cor0
----
119646
336675
379456

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6400
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + - col1 ) * + CAST( NULL AS DECIMAL ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-6400
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + - col1 ) * + CAST ( NULL AS REAL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6401
SELECT col1 * - 89 * - - 38 * + col1 + CAST( + + col2 AS SIGNED ) FROM tab2 AS cor0
----
-15181740
-20051838
-8796559

skipif mysql # not compatible
query I rowsort label-6401
SELECT col1 * - 89 * - - 38 * + col1 + CAST ( + + col2 AS INTEGER ) FROM tab2 AS cor0
----
-15181740
-20051838
-8796559

query I rowsort
SELECT ALL + ( col2 ) + + col2 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT + 63 + col0 AS col0 FROM tab0
----
150
160
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) - + col0 col0 FROM tab1
----
-37
-44
-80

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

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

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

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

query I rowsort
SELECT DISTINCT col1 - col1 AS col1 FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT - col0 * - - col1 - - + col2 + - + 45 + + - col0 * - + col0 * col2 AS col2 FROM tab0 cor0
----
73828
931448
9362

query I rowsort
SELECT - 38 - + col0 AS col0 FROM tab1 AS cor0
----
-123
-129
-89

query I rowsort
SELECT + - 49 - - - col1 AS col0 FROM tab0 AS cor0
----
-130
-50
-70

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 = col2
----

query I rowsort
SELECT 53 - - col1 - - 28 AS col1 FROM tab2
----
132
148
158

query II rowsort
SELECT ALL - ( - - col1 ) + + 50, + col1 AS col2 FROM tab1
----
3
47
36
14
45
5

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

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

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

skipif mysql # not compatible
query I rowsort label-6417
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) + - - 56 * + - CAST ( NULL AS REAL ) FROM tab0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6419
SELECT ALL * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) <> - 62
----

skipif mysql # not compatible
query III rowsort label-6419
SELECT ALL * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) <> - 62
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 >= + + col0 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT 47 * + - ( - MIN( DISTINCT 20 ) ) FROM tab0
----
940

skipif mysql # not compatible
query I rowsort label-6423
SELECT 47 * + - ( - MIN ( DISTINCT 20 ) ) FROM tab0
----
940

query I rowsort
SELECT ALL - ( ( - col1 ) ) FROM tab0 WHERE NOT - - ( - col1 ) NOT BETWEEN + col1 * + + ( col1 ) + + col1 + - 61 + - col2 AND NULL
----

query I rowsort
SELECT DISTINCT + ( 10 ) * col0 + + col1 AS col1 FROM tab0
----
231
891
971

query II rowsort
SELECT + col2, + 4 AS col0 FROM tab1 AS cor0
----
59
4
68
4
96
4

query I rowsort
SELECT + ( + 66 ) * + col2 AS col1 FROM tab1 AS cor0
----
3894
4488
6336

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

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

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

query II rowsort
SELECT ALL col0, + col0 - 72 AS col1 FROM tab2 AS cor0
----
46
-26
64
-8
75
3

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

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

query I rowsort
SELECT ALL 68 + 41 AS col2 FROM tab1
----
109
109
109

query III rowsort
SELECT ALL * FROM tab2 WHERE - 70 - - 3 + + - col2 <= - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 65 + - col1 AS col1 FROM tab0
----
-146
-66
-86

query I rowsort
SELECT - 40 + + 94 AS col1 FROM tab1
----
54
54
54

query I rowsort
SELECT DISTINCT 64 + - + 45 AS col1 FROM tab2 AS cor0
----
19

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6439
SELECT DISTINCT COUNT( * ) + + MAX( ALL + 86 ) AS col0, CAST( NULL AS SIGNED ) * - 73 col1 FROM tab2
----
89
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6439
SELECT DISTINCT COUNT ( * ) + + MAX ( ALL + 86 ) AS col0, CAST ( NULL AS INTEGER ) * - 73 col1 FROM tab2
----
89
NULL

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

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

query I rowsort
SELECT DISTINCT col0 + - + col1 AS col2 FROM tab1
----
37
44
80

query I rowsort
SELECT - + col0 + col2 + - - col0 FROM tab0 AS cor0
----
10
47
99

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

query I rowsort
SELECT ALL + - 26 - - 63 * col2 + - - col0 AS col0 FROM tab0 cor0
----
2950
6308
691

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

query I rowsort
SELECT col1 + + - col2 AS col0 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT DISTINCT + - 31 * + - col0 + col0 FROM tab2 AS cor0
----
1472
2048
2400

onlyif mysql # DIV for integer division: 
query I rowsort label-6448
SELECT - 15 DIV 80 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6448
SELECT - 15 / 80 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6449
SELECT + CAST( + col2 AS SIGNED ) * - - col0 * + + col1 FROM tab1
----
25075
290836
68544

skipif mysql # not compatible
query I rowsort label-6449
SELECT + CAST ( + col2 AS INTEGER ) * - - col0 * + + col1 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT - col0 * + 28 AS col0 FROM tab2
----
-1288
-1792
-2100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * + 46, col2 col0 FROM tab0
----
2162
47
4554
99
460
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT ALL + ( - MIN( DISTINCT + - 63 ) ) col0 FROM tab1
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6452
SELECT ALL + ( - MIN ( DISTINCT + - 63 ) ) col0 FROM tab1
----
63

query II rowsort
SELECT DISTINCT - col0 * - + col0 AS col0, + 27 FROM tab2
----
2116
27
4096
27
5625
27

onlyif mysql # DIV for integer division: 
query I rowsort label-6454
SELECT ALL - col1 DIV 22 AS col0 FROM tab1
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6454
SELECT ALL - col1 / 22 AS col0 FROM tab1
----
-2
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT DISTINCT + - 97 * - SUM( ALL - col2 ) FROM tab2 AS cor0
----
-11737

skipif mysql # not compatible
query I rowsort label-6456
SELECT DISTINCT + - 97 * - SUM ( ALL - col2 ) FROM tab2 AS cor0
----
-11737

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

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

query I rowsort
SELECT col0 * + + 61 FROM tab2
----
2806
3904
4575

query I rowsort
SELECT ALL + + col2 * + - col1 + ( + 87 ) FROM tab0 AS cor0
----
-12
-123
-3720

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6462
SELECT + 15 * CAST( NULL AS SIGNED ) * - + col0 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-6462
SELECT + 15 * CAST ( NULL AS INTEGER ) * - + col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT DISTINCT 86 AS col2, - col0 + - col2 * ( col2 ) AS col0 FROM tab2 AS cor0
----
86
-1664
86
-3439
86
-575

onlyif mysql # aggregate syntax: 
query II rowsort label-6465
SELECT ( + MIN( + 43 ) ), 71 + + 51 + + COUNT( * ) AS col1 FROM tab0 cor0
----
43
125

skipif mysql # not compatible
query II rowsort label-6465
SELECT ( + MIN ( + 43 ) ), 71 + + 51 + + COUNT ( * ) AS col1 FROM tab0 cor0
----
43
125

query II rowsort
SELECT DISTINCT 63 AS col1, 19 FROM tab0
----
63
19

query I rowsort
SELECT DISTINCT 17 + + col0 FROM tab2
----
63
81
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT - COUNT( ALL + 3 ) AS col2 FROM tab1 WHERE - - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6468
SELECT - COUNT ( ALL + 3 ) AS col2 FROM tab1 WHERE - - col1 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6469
SELECT DISTINCT 73 FROM tab2 WHERE - + 95 NOT BETWEEN CAST( NULL AS SIGNED ) AND + - col2
----

skipif mysql # not compatible
query I rowsort label-6469
SELECT DISTINCT 73 FROM tab2 WHERE - + 95 NOT BETWEEN CAST ( NULL AS INTEGER ) AND + - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6470
SELECT DISTINCT + + col1 + - - 82 + - - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 WHERE - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6470
SELECT DISTINCT + + col1 + - - 82 + - - CAST ( NULL AS REAL ) AS col1 FROM tab1 WHERE - col2 IS NULL
----

query II rowsort
SELECT DISTINCT col0, + 63 FROM tab2
----
46
63
64
63
75
63

query II rowsort
SELECT ALL - col1 AS col2, - ( + + col0 ) FROM tab1 AS cor0
----
-14
-51
-47
-91
-5
-85

query I rowsort
SELECT DISTINCT + + ( + + 35 ) * + + col0 FROM tab2 AS cor0
----
1610
2240
2625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6474
SELECT CAST( + + 0 AS SIGNED ) FROM tab1 AS cor0 WHERE 5 <> - ( col1 ) / + col0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6474
SELECT CAST ( + + 0 AS INTEGER ) FROM tab1 AS cor0 WHERE 5 <> - ( col1 ) / + col0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT DISTINCT COUNT( * ) * COUNT( * ) * 63 + + 92 AS col0 FROM tab0
----
659

skipif mysql # not compatible
query I rowsort label-6475
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * 63 + + 92 AS col0 FROM tab0
----
659

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

query I rowsort
SELECT - - col1 - - 92 * - + col0 * - 88 FROM tab0 AS cor0
----
121521
704373
785313

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT DISTINCT + - COUNT( * ) + + SUM( ALL + 36 ) col2 FROM tab2 AS cor0
----
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6478
SELECT DISTINCT + - COUNT ( * ) + + SUM ( ALL + 36 ) col2 FROM tab2 AS cor0
----
105

query I rowsort
SELECT DISTINCT - col2 * - 10 * + 45 * col2 FROM tab0 AS cor0
----
4410450
45000
994050

onlyif mysql # DIV for integer division: 
query III rowsort label-6480
SELECT ALL - - col1 DIV + col2 AS col2, 14 col0, - col2 AS col0 FROM tab2 AS cor0
----
9 values hashing to f00e7e39381013fd3fe7f7a18e8bbf76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-6480
SELECT ALL - - col1 / + col2 AS col2, 14 col0, - col2 AS col0 FROM tab2 AS cor0
----
9 values hashing to f00e7e39381013fd3fe7f7a18e8bbf76

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT DISTINCT COUNT( * ) * 67 + ( - - 99 ) AS col0 FROM tab2 AS cor0
----
300

skipif mysql # not compatible
query I rowsort label-6481
SELECT DISTINCT COUNT ( * ) * 67 + ( - - 99 ) AS col0 FROM tab2 AS cor0
----
300

query I rowsort
SELECT + 35 * + + 72 AS col1 FROM tab0
----
2520
2520
2520

query I rowsort
SELECT - col2 * - ( - 83 ) FROM tab1
----
-4897
-5644
-7968

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT DISTINCT MAX( DISTINCT - col2 ) * - ( - 3 ) AS col1 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-6484
SELECT DISTINCT MAX ( DISTINCT - col2 ) * - ( - 3 ) AS col1 FROM tab0
----
-30

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 43 + - - col2 <> + 13 * col0 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + col1 ) * + 52 * + 30 * - col0 FROM tab1
----
-1113840
-663000
-6672120

onlyif mysql # DIV for integer division: 
query II rowsort label-6487
SELECT DISTINCT col0 col1, ( col1 ) DIV - col1 + col2 AS col0 FROM tab2
----
46
22
64
39
75
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6487
SELECT DISTINCT col0 col1, ( col1 ) / - col1 + col2 AS col0 FROM tab2
----
46
22
64
39
75
57

query I rowsort
SELECT + col2 * - 64 * col2 FROM tab1
----
-222784
-295936
-589824

query I rowsort
SELECT - col2 * - 15 / + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL > col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT - COUNT( * ) * 73 FROM tab2 cor0
----
-219

skipif mysql # not compatible
query I rowsort label-6491
SELECT - COUNT ( * ) * 73 FROM tab2 cor0
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT DISTINCT - 60 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT - 60 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-180

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

query III rowsort
SELECT DISTINCT - 53, col0 * + col2 * - col1 AS col0, - ( col0 ) + - col1 AS col1 FROM tab2 WHERE - col2 IS NOT NULL
----
9 values hashing to 188e6f37c6d23707b892fbfe18878caa

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

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

query I rowsort
SELECT + + 5 * - - col1 AS col2 FROM tab1 AS cor0
----
235
25
70

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 - - - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6500
SELECT 47 DIV - col1 + + + col0 AS col1, 41 FROM tab0 AS cor0
----
15
41
50
41
85
41

skipif mysql # not compatible
query II rowsort label-6500
SELECT 47 / - col1 + + + col0 AS col1, 41 FROM tab0 AS cor0
----
15
41
50
41
85
41

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

skipif mysql # not compatible
query I rowsort label-6501
SELECT ALL - COUNT ( DISTINCT col0 ) FROM tab0 AS cor0
----
-3

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) + + col0 col1 FROM tab2
----
141
142
97

query I rowsort
SELECT + col2 + - - 65 + 73 AS col2 FROM tab1
----
197
206
234

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT SUM( + + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
103

skipif mysql # not compatible
query I rowsort label-6511
SELECT SUM ( + + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
103

query I rowsort
SELECT - col1 * - + col1 * - 87 AS col2 FROM tab0
----
-38367
-570807
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-6513
SELECT 73 * + COUNT( * ) AS col1, 99 AS col0 FROM tab2
----
219
99

skipif mysql # not compatible
query II rowsort label-6513
SELECT 73 * + COUNT ( * ) AS col1, 99 AS col0 FROM tab2
----
219
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6514
SELECT + CAST( + CAST( - col1 AS SIGNED ) AS SIGNED ) DIV - 65 - - - 69 FROM tab0
----
-68
-69
-69

skipif mysql # not compatible
query I rowsort label-6514
SELECT + CAST ( + CAST ( - col1 AS INTEGER ) AS INTEGER ) / - 65 - - - 69 FROM tab0
----
-68
-69
-69

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

query I rowsort
SELECT + col2 * 75 * col1 AS col2 FROM tab1
----
100800
22125
239700

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT 14 * COUNT( * ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-6517
SELECT 14 * COUNT ( * ) FROM tab2
----
42

query I rowsort
SELECT ALL - 37 FROM tab0 WHERE NOT col0 >= 36 * 17
----
-37
-37
-37

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

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

query II rowsort
SELECT DISTINCT - + ( + + col1 ), + col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query I rowsort
SELECT ALL + 2 AS col2 FROM tab2 cor0
----
2
2
2

query I rowsort
SELECT ALL + 21 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT ALL + col1 * - - 20 AS col1 FROM tab1
----
100
280
940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * - col0 * + + col2 col0, col2 FROM tab0
----
-18270
10
-57105
47
-9603
99

query I rowsort
SELECT DISTINCT col0 * - 5 AS col1 FROM tab0 cor0
----
-435
-485
-75

query I rowsort
SELECT + + 98 * + 4 + col1 FROM tab2 AS cor0
----
443
459
469

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 * - - 35 = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6528
SELECT + - col0 * - ( col0 ) DIV col0 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6528
SELECT + - col0 * - ( col0 ) / col0 FROM tab2 cor0
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6529
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) / - - 86 - + 30 + + 21 * + COUNT( * ) + - - 83 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6529
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) / - - 86 - + 30 + + 21 * + COUNT ( * ) + - - 83 FROM tab2 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT - SUM( + 9 ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-6531
SELECT - SUM ( + 9 ) FROM tab0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT + MAX( ALL 76 ) * + + 74 AS col0 FROM tab0
----
5624

skipif mysql # not compatible
query I rowsort label-6532
SELECT + MAX ( ALL 76 ) * + + 74 AS col0 FROM tab0
----
5624

query I rowsort
SELECT - 58 * col0 AS col1 FROM tab0
----
-5046
-5626
-870

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + col0, 87 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6535
SELECT ALL ( + + 87 ) DIV 68 DIV + + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6535
SELECT ALL ( + + 87 ) / 68 / + + COUNT ( * ) FROM tab1 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT COUNT( DISTINCT 42 ) + COUNT( * ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-6538
SELECT COUNT ( DISTINCT 42 ) + COUNT ( * ) FROM tab1 AS cor0
----
4

query I rowsort
SELECT 64 * 99 FROM tab2 WHERE NULL >= NULL
----

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

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

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

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

query II rowsort
SELECT ALL - col0 AS col0, 76 + col1 AS col2 FROM tab1
----
-51
90
-85
81
-91
123

query II rowsort
SELECT + col1 AS col1, + col1 * col2 AS col1 FROM tab1
----
14
1344
47
3196
5
295

query I rowsort
SELECT ALL 73 * - + col1 FROM tab1 WHERE NOT ( + col1 IS NULL )
----
-1022
-3431
-365

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

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

query I rowsort
SELECT DISTINCT - col0 * + - col1 + + + col1 AS col2 FROM tab2 AS cor0
----
2397
5005
5092

query I rowsort
SELECT ALL + - col1 * col1 * + + col0 AS col2 FROM tab2 AS cor0
----
-119646
-336675
-379456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 16 col2, - col0 * + 48 AS col1 FROM tab1 AS cor0
----
16
-2448
16
-4080
16
-4368

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT - 34 * 33 * - COUNT( * ) AS col0 FROM tab0
----
3366

skipif mysql # not compatible
query I rowsort label-6551
SELECT - 34 * 33 * - COUNT ( * ) AS col0 FROM tab0
----
3366

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6552
SELECT DISTINCT - - MIN( DISTINCT + - col1 ) DIV + COUNT( * ) FROM tab1 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT - - MIN ( DISTINCT + - col1 ) / + COUNT ( * ) FROM tab1 cor0
----
-15

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT + + COUNT( * ) FROM tab1 AS cor0 WHERE ( NOT + col1 + + col1 + + col1 * - + 71 + - 84 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6555
SELECT + + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NOT + col1 + + col1 + + col1 * - + 71 + - 84 IS NOT NULL )
----
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6558
SELECT 97 * - + 24 + + + CAST( + - col0 AS SIGNED ) FROM tab2 cor0
----
-2374
-2392
-2403

skipif mysql # not compatible
query I rowsort label-6558
SELECT 97 * - + 24 + + + CAST ( + - col0 AS INTEGER ) FROM tab2 cor0
----
-2374
-2392
-2403

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, + col0 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 WHERE + col0 - col0 = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT DISTINCT MIN( 37 ) FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-6561
SELECT DISTINCT MIN ( 37 ) FROM tab2
----
37

query I rowsort
SELECT DISTINCT + col1 + + + col1 FROM tab1
----
10
28
94

query I rowsort
SELECT DISTINCT - + 18 AS col2 FROM tab1 WHERE - - 98 + - - 76 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6564
SELECT - col1 DIV + - 15 col0 FROM tab2
----
3
4
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6564
SELECT - col1 / + - 15 col0 FROM tab2
----
3
4
5

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6566
SELECT - COUNT( * ) AS col0, MIN( ALL col0 ) + + COUNT( * ) AS col2 FROM tab2
----
-3
49

skipif mysql # not compatible
query II rowsort label-6566
SELECT - COUNT ( * ) AS col0, MIN ( ALL col0 ) + + COUNT ( * ) AS col2 FROM tab2
----
-3
49

query I rowsort
SELECT DISTINCT - col0 + col0 + - - col1 * - 95 FROM tab0 AS cor0
----
-1995
-7695
-95

query I rowsort
SELECT ALL + + col2 * + - col0 + 75 AS col2 FROM tab2 AS cor0
----
-2485
-4275
-983

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

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

query I rowsort
SELECT - 8 * 59 FROM tab1
----
-472
-472
-472

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

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

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

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

query I rowsort
SELECT DISTINCT + + 50 AS col1 FROM tab0 cor0
----
50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT ALL - - SUM( ALL col1 ) AS col0 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL - - SUM ( ALL col1 ) AS col0 FROM tab2 cor0
----
195

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

query I rowsort
SELECT ALL + - 15 AS col2 FROM tab2 cor0
----
-15
-15
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( 26 ) * 52 col0, - col2 * 57 AS col1 FROM tab0
----
1352
-2679
1352
-5643
1352
-570

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col1 FROM tab0 WHERE 51 NOT IN ( 9 * - col1, + col1 * col2 )
----
1
21
81

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

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

query I rowsort
SELECT - + col1 + + - 54 + col2 FROM tab1 AS cor0
----
-33
0
28

query II rowsort
SELECT col0 + 44 + - - col0 AS col0, + col1 FROM tab0 AS cor0
----
218
21
238
1
74
81

query I rowsort
SELECT 42 + + 63 AS col0 FROM tab0
----
105
105
105

query I rowsort
SELECT - - 24 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

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

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

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

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

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

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

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

query I rowsort
SELECT - ( col0 ) - + col2 AS col2 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6595
SELECT DISTINCT CAST( NULL AS SIGNED ) * 83 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6595
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 83 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT ALL - SUM( ALL 24 ) * ( + 90 ) FROM tab1
----
-6480

skipif mysql # not compatible
query I rowsort label-6596
SELECT ALL - SUM ( ALL 24 ) * ( + 90 ) FROM tab1
----
-6480

query I rowsort
SELECT ALL 49 + - col0 FROM tab0
----
-38
-48
34

query I rowsort
SELECT DISTINCT + 32 * - 57 FROM tab1
----
-1824

query I rowsort
SELECT - 76 + - + 49 - + col2 * col1 FROM tab0
----
-224
-335
-3932

query II rowsort
SELECT col1 + - 2 AS col1, + col1 * - col2 FROM tab1
----
12
-1344
3
-295
45
-3196

query I rowsort
SELECT - col0 - + 10 AS col1 FROM tab1 WHERE + + ( 89 ) IS NOT NULL
----
-101
-61
-95

query I rowsort
SELECT ALL - col1 + + 91 FROM tab2
----
14
24
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT ALL - SUM( DISTINCT col0 ) - + 42 - - + COUNT( * ) FROM tab1
----
-266

skipif mysql # not compatible
query I rowsort label-6603
SELECT ALL - SUM ( DISTINCT col0 ) - + 42 - - + COUNT ( * ) FROM tab1
----
-266

query I rowsort
SELECT + 85 + - col0 AS col1 FROM tab0
----
-12
-2
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT DISTINCT COUNT( * ) + ( - + 35 ) FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-6605
SELECT DISTINCT COUNT ( * ) + ( - + 35 ) FROM tab0 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT DISTINCT + MAX( ALL - col0 ) * 49 - - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-2257

skipif mysql # not compatible
query I rowsort label-6606
SELECT DISTINCT + MAX ( ALL - col0 ) * 49 - - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-2257

query I rowsort
SELECT ALL - 21 * + 0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) + 24 col1 FROM tab2 WHERE NULL IS NOT NULL
----

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

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

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

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

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

query II rowsort
SELECT DISTINCT col0 AS col2, + ( 92 ) + col2 + + col0 FROM tab1 cor0
----
51
239
85
236
91
251

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, col2 FROM tab1 cor0
----
14
96
47
68
5
59

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT - COUNT( * ) * - - 64 FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-6618
SELECT - COUNT ( * ) * - - 64 FROM tab2 AS cor0
----
-192

query I rowsort
SELECT + + 21 * ( + + col1 ) + - 76 FROM tab0 cor0
----
-55
1625
365

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

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

query I rowsort
SELECT ALL + 87 + - 75 AS col1 FROM tab2 AS cor0
----
12
12
12

onlyif mysql # aggregate syntax: 
query II rowsort label-6622
SELECT DISTINCT COUNT( * ) AS col2, - 28 AS col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9
-28

skipif mysql # not compatible
query II rowsort label-6622
SELECT DISTINCT COUNT ( * ) AS col2, - 28 AS col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9
-28

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

query II rowsort
SELECT - - 1 + ( col2 ) AS col1, + 94 * + 65 FROM tab2 cor0
----
24
6110
41
6110
59
6110

query II rowsort
SELECT + 14 + + + 74 + col1 AS col1, 61 FROM tab0 AS cor0
----
109
61
169
61
89
61

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 > 72
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 79 <> - 6
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col0 + 48 FROM tab2 AS cor0
----
112
123
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6629
SELECT col0 + CAST( NULL AS SIGNED ) + 24 + - - 91 * 19 + - - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6629
SELECT col0 + CAST ( NULL AS INTEGER ) + 24 + - - 91 * 19 + - - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - - col1 col1 FROM tab1 AS cor0
----
425
4277
714

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

query I rowsort
SELECT ALL - 57 - + + col1 AS col0 FROM tab2 AS cor0
----
-108
-124
-134

query I rowsort
SELECT + 70 + + + 44 FROM tab1 cor0
----
114
114
114

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT DISTINCT + COUNT( * ) * - + 52 AS col0 FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6634
SELECT DISTINCT + COUNT ( * ) * - + 52 AS col0 FROM tab1 AS cor0
----
-156

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6637
SELECT DISTINCT * FROM tab1 WHERE + 95 > CAST( + col2 AS SIGNED )
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-6637
SELECT DISTINCT * FROM tab1 WHERE + 95 > CAST ( + col2 AS INTEGER )
----
85
5
59
91
47
68

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6639
SELECT CAST( NULL AS SIGNED ), - col1 DIV col0 AS col1 FROM tab0
----
NULL
-5
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-6639
SELECT CAST ( NULL AS INTEGER ), - col1 / col0 AS col1 FROM tab0
----
NULL
-5
NULL
0
NULL
0

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

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

query I rowsort
SELECT 58 + - col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
-23
37
57

query I rowsort
SELECT col2 - - col1 - + col1 AS col0 FROM tab2
----
23
40
58

query I rowsort
SELECT + 93 - - 32 AS col1 FROM tab1
----
125
125
125

query I rowsort
SELECT DISTINCT 41 - + col1 AS col2 FROM tab1
----
-6
27
36

query I rowsort
SELECT + col0 * + - 53 * - col2 - + + col2 + col0 FROM tab1
----
259443
265821
327987

onlyif mysql # aggregate syntax: 
query II rowsort label-6646
SELECT DISTINCT - COUNT( * ) AS col1, - 19 * 90 FROM tab2
----
-3
-1710

skipif mysql # not compatible
query II rowsort label-6646
SELECT DISTINCT - COUNT ( * ) AS col1, - 19 * 90 FROM tab2
----
-3
-1710

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT DISTINCT + COUNT( * ) * + - 35 * + - 39 AS col1 FROM tab1 AS cor0
----
4095

skipif mysql # not compatible
query I rowsort label-6647
SELECT DISTINCT + COUNT ( * ) * + - 35 * + - 39 AS col1 FROM tab1 AS cor0
----
4095

query II rowsort
SELECT - col0 AS col0, + col1 * + ( 99 ) FROM tab2 cor0
----
-46
5049
-64
7623
-75
6633

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6652
SELECT DISTINCT - 93 DIV + + 86 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6652
SELECT DISTINCT - 93 / + + 86 FROM tab0
----
-1

query I rowsort
SELECT ALL - 58 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

query I rowsort
SELECT ALL - col0 * + 40 FROM tab2 AS cor0
----
-1840
-2560
-3000

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6656
SELECT DISTINCT - - col0 * - - col0 AS col1, 31 DIV - CAST( + + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
2116
0
4096
0
5625
0

skipif mysql # not compatible
query II rowsort label-6656
SELECT DISTINCT - - col0 * - - col0 AS col1, 31 / - CAST ( + + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
2116
0
4096
0
5625
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6658
SELECT - col0 DIV col1 * - - col1 FROM tab2 AS cor0
----
-67
0
0

skipif mysql # not compatible
query I rowsort label-6658
SELECT - col0 / col1 * - - col1 FROM tab2 AS cor0
----
-67
0
0

query I rowsort
SELECT ALL col2 * - col1 * - - 61 AS col0 FROM tab2 AS cor0
----
-187880
-237046
-71553

onlyif mysql # aggregate syntax: 
query II rowsort label-6660
SELECT DISTINCT - - COUNT( * ) * + + COUNT( * ) col1, + 20 AS col1 FROM tab1 AS cor0
----
9
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6660
SELECT DISTINCT - - COUNT ( * ) * + + COUNT ( * ) col1, + 20 AS col1 FROM tab1 AS cor0
----
9
20

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + + + 98 = col1 * + + col0 * - 5 * + col2
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6663
SELECT ALL + 29 * + - 45 + - col1 DIV + col2 col2 FROM tab0 AS cor0
----
-1305
-1306
-1307

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6663
SELECT ALL + 29 * + - 45 + - col1 / + col2 col2 FROM tab0 AS cor0
----
-1305
-1306
-1307

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 6 col0 FROM tab0
----
-282
-594
-60

query I rowsort
SELECT DISTINCT col1 + ( - 74 ) AS col1 FROM tab1
----
-27
-60
-69

query II rowsort
SELECT - col2, + 96 - + col2 AS col0 FROM tab0
----
-10
86
-47
49
-99
-3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6668
SELECT DISTINCT COUNT( * ), + COUNT( * ) FROM tab1 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6668
SELECT DISTINCT COUNT ( * ), + COUNT ( * ) FROM tab1 cor0
----
3
3

query II rowsort
SELECT - col0 + - - ( - + col0 ) AS col2, col1 AS col0 FROM tab2 AS cor0
----
-128
77
-150
67
-92
51

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6671
SELECT ALL + - col2 + 42 + + - CAST( - 35 AS SIGNED ) FROM tab2 AS cor0
----
19
37
54

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL + - col2 + 42 + + - CAST ( - 35 AS INTEGER ) FROM tab2 AS cor0
----
19
37
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT + COUNT( * ) * MIN( DISTINCT - col2 ) FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-6672
SELECT + COUNT ( * ) * MIN ( DISTINCT - col2 ) FROM tab1
----
-288

query I rowsort
SELECT - col2 - ( + col1 ) * - 99 AS col1 FROM tab2
----
5026
6575
7583

onlyif mysql # DIV for integer division: 
query I rowsort label-6674
SELECT col0 DIV 63 - + ( 11 ) FROM tab0
----
-10
-10
-11

skipif mysql # not compatible
query I rowsort label-6674
SELECT col0 / 63 - + ( 11 ) FROM tab0
----
-10
-10
-11

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

query III rowsort
SELECT * FROM tab1 WHERE ( + 12 ) BETWEEN ( NULL ) AND NULL
----

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

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

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

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

query I rowsort
SELECT - col0 + - col2 * col0 AS col0 FROM tab2 WHERE + 64 IS NULL
----

query I rowsort
SELECT 31 - col1 AS col0 FROM tab2
----
-20
-36
-46

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

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

query I rowsort
SELECT DISTINCT 68 - col1 AS col0 FROM tab0
----
-13
47
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6685
SELECT DISTINCT + 5 DIV + col1 FROM tab0
----
0
5

skipif mysql # not compatible
query I rowsort label-6685
SELECT DISTINCT + 5 / + col1 FROM tab0
----
0
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6686
SELECT 92 DIV - col2 AS col1 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-6686
SELECT 92 / - col2 AS col1 FROM tab2
----
-1
-2
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-6687
SELECT - ( 41 ) DIV + col0 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6687
SELECT - ( 41 ) / + col0 FROM tab0
----
-2
0
0

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

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

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

query I rowsort
SELECT DISTINCT 65 * - 31 + - col0 FROM tab2
----
-2061
-2079
-2090

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6691
SELECT 18 DIV 87 + 54 * COUNT( * ) AS col1 FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-6691
SELECT 18 / 87 + 54 * COUNT ( * ) AS col1 FROM tab2
----
162

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 16 <= NULL
----

query I rowsort
SELECT - col0 + 53 * col0 AS col1 FROM tab2
----
2392
3328
3900

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < + 51
----

query III rowsort
SELECT * FROM tab1 WHERE NULL = 89
----

query I rowsort
SELECT DISTINCT 73 AS col0 FROM tab0 WHERE NOT + col0 * col1 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col1 >= 95
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6699
SELECT 76 DIV MIN( 62 ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6699
SELECT 76 / MIN ( 62 ) AS col2 FROM tab2 AS cor0
----
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT DISTINCT - COUNT( * ) * 70 FROM tab1
----
-210

skipif mysql # not compatible
query I rowsort label-6702
SELECT DISTINCT - COUNT ( * ) * 70 FROM tab1
----
-210

query I rowsort
SELECT 63 FROM tab1 AS cor0 WHERE NOT col1 < + 41
----
63

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

query I rowsort
SELECT DISTINCT 76 AS col0 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query III rowsort label-6706
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 DIV col2 + col0 NOT IN ( col0 )
----
51
14
96

skipif mysql # not compatible
query III rowsort label-6706
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 / col2 + col0 NOT IN ( col0 )
----
51
14
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6707
SELECT - col2 DIV 11 AS col0 FROM tab2 AS cor0
----
-2
-3
-5

skipif mysql # not compatible
query I rowsort label-6707
SELECT - col2 / 11 AS col0 FROM tab2 AS cor0
----
-2
-3
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-6708
SELECT ALL 60 DIV - col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-6708
SELECT ALL 60 / - col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6709
SELECT ALL 63 * - CAST( 87 * - col0 AS SIGNED ) col2 FROM tab2 AS cor0
----
252126
350784
411075

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6709
SELECT ALL 63 * - CAST ( 87 * - col0 AS INTEGER ) col2 FROM tab2 AS cor0
----
252126
350784
411075

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT DISTINCT - COUNT( * ) * 73 FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-6711
SELECT DISTINCT - COUNT ( * ) * 73 FROM tab1 AS cor0
----
-219

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

query I rowsort
SELECT - - 42 + + col2 FROM tab1 cor0
----
101
110
138

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

query I rowsort
SELECT ALL + 4 + - col1 AS col2 FROM tab2
----
-47
-63
-73

query I rowsort
SELECT DISTINCT + col2 * 66 + + col1 FROM tab2
----
1569
2717
3895

query I rowsort
SELECT col0 + 6 AS col1 FROM tab1
----
57
91
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT DISTINCT 76 * - - COUNT( * ) AS col0 FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-6720
SELECT DISTINCT 76 * - - COUNT ( * ) AS col0 FROM tab1
----
228

query I rowsort
SELECT 57 * - ( col0 ) FROM tab2
----
-2622
-3648
-4275

query I rowsort
SELECT + + ( 83 ) FROM tab1 cor0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT + AVG ( DISTINCT col0 ) * ( MAX( ALL col0 ) ) col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6723
SELECT + AVG ( DISTINCT col0 ) * ( MAX ( ALL col0 ) ) col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col2 ) col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT + 91 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT DISTINCT + COUNT( * ) - + 72 AS col1 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-6727
SELECT DISTINCT + COUNT ( * ) - + 72 AS col1 FROM tab0
----
-69

query I rowsort
SELECT col2 + + - ( + 9 ) FROM tab1 AS cor0
----
50
59
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6729
SELECT + col0 * - + col0 + - - CAST( - col1 AS SIGNED ) * + 0 FROM tab2 AS cor0
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-6729
SELECT + col0 * - + col0 + - - CAST ( - col1 AS INTEGER ) * + 0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT ALL - 42 - 52 FROM tab2 AS cor0
----
-94
-94
-94

query I rowsort
SELECT - col1 * + + 32 AS col1 FROM tab0 AS cor0
----
-2592
-32
-672

query I rowsort
SELECT ALL - 98 - + 5 FROM tab0 cor0
----
-103
-103
-103

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( + col1 ) + + col0 ) <= ( - 98 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT ALL + MAX( + + 69 ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-6738
SELECT ALL + MAX ( + + 69 ) FROM tab1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT + 87 * - + COUNT( * ) * + + 2 AS col2 FROM tab1
----
-522

skipif mysql # not compatible
query I rowsort label-6739
SELECT + 87 * - + COUNT ( * ) * + + 2 AS col2 FROM tab1
----
-522

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT + 54 * + COUNT( - - col2 ) AS col0 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-6740
SELECT + 54 * + COUNT ( - - col2 ) AS col0 FROM tab1
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6741
SELECT - col2 * - CAST( 2 AS SIGNED ) FROM tab2
----
116
46
80

skipif mysql # not compatible
query I rowsort label-6741
SELECT - col2 * - CAST ( 2 AS INTEGER ) FROM tab2
----
116
46
80

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( + col0 ) <= col2
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6744
SELECT - COUNT( + + CAST( NULL AS SIGNED ) ) col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6744
SELECT - COUNT ( + + CAST ( NULL AS INTEGER ) ) col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT + COUNT( * ) * + + 39 AS col2 FROM tab0
----
117

skipif mysql # not compatible
query I rowsort label-6745
SELECT + COUNT ( * ) * + + 39 AS col2 FROM tab0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT + MAX( DISTINCT + col0 ) + + MIN( - - 58 ) * + - COUNT( * ) * COUNT( * ) FROM tab2
----
-447

skipif mysql # not compatible
query I rowsort label-6746
SELECT + MAX ( DISTINCT + col0 ) + + MIN ( - - 58 ) * + - COUNT ( * ) * COUNT ( * ) FROM tab2
----
-447

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 17 * - col2 col0 FROM tab1
----
105196
83232
85255

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

skipif mysql # not compatible
query I rowsort label-6748
SELECT DISTINCT - + ( - + CAST ( NULL AS INTEGER ) ) + + MAX ( - col2 ) FROM tab2 AS cor0 WHERE NOT - 9 * col0 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col0, col2 col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6750
SELECT DISTINCT SUM( ALL col0 ) FROM tab2 WHERE ( + col1 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6750
SELECT DISTINCT SUM ( ALL col0 ) FROM tab2 WHERE ( + col1 IS NULL )
----
NULL

query I rowsort
SELECT + col1 + - 67 FROM tab2
----
-16
0
10

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6754
SELECT DISTINCT + 87 * CAST( NULL AS SIGNED ) + + - col2 - + ( + + 31 ) - col1 / 45 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6754
SELECT DISTINCT + 87 * CAST ( NULL AS INTEGER ) + + - col2 - + ( + + 31 ) - col1 / 45 AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 14 col2, - 24 + ( + - ( + + col1 ) ) FROM tab2 AS cor0
----
14
-101
14
-75
14
-91

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

skipif mysql # not compatible
query I rowsort label-6756
SELECT - 40 / + + COUNT ( * ) AS col1 FROM tab2
----
-13

query I rowsort
SELECT ALL ( - col0 ) * + 83 AS col1 FROM tab0 WHERE NOT ( - col0 ) IN ( - col0 + ( + col2 ) )
----
-1245
-7221
-8051

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT - 92 > + col0
----
3

skipif mysql # not compatible
query I rowsort label-6758
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT - 92 > + col0
----
3

query I rowsort
SELECT - 20 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT ALL - 20 * - + col1 FROM tab2 AS cor0
----
1020
1340
1540

query I rowsort
SELECT 4 * 26 + + + col1 FROM tab2 AS cor0
----
155
171
181

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6763
SELECT CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col2, - COUNT( * ) * 4 AS col2 FROM tab2 AS cor0
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-6763
SELECT CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col2, - COUNT ( * ) * 4 AS col2 FROM tab2 AS cor0
----
NULL
-12

onlyif mysql # DIV for integer division: 
query II rowsort label-6764
SELECT 46 AS col1, col1 DIV - col1 FROM tab1
----
46
-1
46
-1
46
-1

skipif mysql # not compatible
query II rowsort label-6764
SELECT 46 AS col1, col1 / - col1 FROM tab1
----
46
-1
46
-1
46
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 70 BETWEEN 6 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6767
SELECT ALL - col2 DIV + + col1 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-6767
SELECT ALL - col2 / + + col1 FROM tab1
----
-1
-11
-6

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6770
SELECT ALL + + ( + col2 ) * - col0 AS col0 FROM tab0 WHERE NOT + col1 + CAST( NULL AS SIGNED ) + + + 57 IS NOT NULL
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL + + ( + col2 ) * - col0 AS col0 FROM tab0 WHERE NOT + col1 + CAST ( NULL AS INTEGER ) + + + 57 IS NOT NULL
----
-705
-870
-9603

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

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

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

skipif mysql # not compatible
query II rowsort label-6772
SELECT + + CAST ( NULL AS INTEGER ) AS col2, 38 FROM tab0 AS cor0
----
NULL
38
NULL
38
NULL
38

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + 97 * - + 29
----

query I rowsort
SELECT ALL - col1 + + col0 + - col0 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - 95 * - 84 * - + ( - col1 ) + 16 FROM tab0 AS cor0
----
167596
646396
7996

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - + 22 ) = ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6778
SELECT + 39 * col1 DIV + col2 + - - ( - col1 ) + 49 AS col1 FROM tab1 AS cor0
----
28
40
47

skipif mysql # not compatible
query I rowsort label-6778
SELECT + 39 * col1 / + col2 + - - ( - col1 ) + 49 AS col1 FROM tab1 AS cor0
----
28
40
47

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

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

query I rowsort
SELECT - col2 AS col1 FROM tab0 cor0 WHERE ( NULL ) >= - 98 - + col2 + - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6781
SELECT CAST( - 18 AS SIGNED ) + - SUM( - 66 ) AS col0 FROM tab0 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-6781
SELECT CAST ( - 18 AS INTEGER ) + - SUM ( - 66 ) AS col0 FROM tab0 AS cor0
----
180

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6782
SELECT 83 + - - col2 DIV - CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-6782
SELECT 83 + - - col2 / - CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
83
83
83

query I rowsort
SELECT + col0 * 86 + + col0 FROM tab0 AS cor0
----
1305
7569
8439

query I rowsort
SELECT ALL - + 9 FROM tab0 cor0
----
-9
-9
-9

query I rowsort
SELECT 40 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col1 * + - ( - - col0 ) col1 FROM tab2
----
-2300
-4864
-4950

query III rowsort
SELECT * FROM tab1 WHERE + col0 = 5
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT DISTINCT + - 49 * + COUNT( * ) AS col2 FROM tab0 WHERE + col0 NOT IN ( - col0 - - col2 + + - col2, - 91 )
----
-147

skipif mysql # not compatible
query I rowsort label-6789
SELECT DISTINCT + - 49 * + COUNT ( * ) AS col2 FROM tab0 WHERE + col0 NOT IN ( - col0 - - col2 + + - col2, - 91 )
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT COUNT( * ) col2 FROM tab1 WHERE - col1 IS NULL
----
0

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

query I rowsort
SELECT ALL - col1 - + ( col1 ) AS col1 FROM tab1
----
-10
-28
-94

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6793
SELECT + - 35 AS col1, ( - MAX( DISTINCT - col1 ) ) FROM tab0 cor0
----
-35
1

skipif mysql # not compatible
query II rowsort label-6793
SELECT + - 35 AS col1, ( - MAX ( DISTINCT - col1 ) ) FROM tab0 cor0
----
-35
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT - COUNT( * ) - - 24 AS col0 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-6794
SELECT - COUNT ( * ) - - 24 AS col0 FROM tab1 AS cor0
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 * - 62 col2 FROM tab2
----
-4154
-4154
-4154

query II rowsort
SELECT - col2 AS col2, + 24 - - ( - col1 ) FROM tab0
----
-10
3
-47
-57
-99
23

query II rowsort
SELECT - - 92, - col2 + 64 AS col2 FROM tab2 AS cor0
----
92
24
92
41
92
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT MAX( - 38 ) FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-6798
SELECT MAX ( - 38 ) FROM tab1 AS cor0
----
-38

query I rowsort
SELECT DISTINCT + 94 - col0 AS col1 FROM tab1 cor0 WHERE col0 NOT BETWEEN + col2 + + 99 AND - col0
----
3
43
9

query II rowsort
SELECT + 37 AS col1, col0 FROM tab2 AS cor0
----
37
46
37
64
37
75

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

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

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

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

query I rowsort
SELECT DISTINCT + 94 * 13 FROM tab0 AS cor0
----
1222

onlyif mysql # DIV for integer division: 
query I rowsort label-6804
SELECT ALL - col0 DIV - 16 FROM tab0
----
0
5
6

skipif mysql # not compatible
query I rowsort label-6804
SELECT ALL - col0 / - 16 FROM tab0
----
0
5
6

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT MAX ( ALL - ( + + col1 ) ) FROM tab2
----
-51

query II rowsort
SELECT col2 * - + col1, col1 AS col1 FROM tab0
----
-210
21
-3807
81
-99
1

query II rowsort
SELECT col2 * + 72 AS col1, 59 * col0 FROM tab0
----
3384
885
7128
5723
720
5133

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6810
SELECT DISTINCT - col1 AS col1, 49 AS col2 FROM tab1 WHERE NOT ( NULL ) IN ( 86 * ( col1 ) * col2 + + + col0, + 12 - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query II rowsort label-6810
SELECT DISTINCT - col1 AS col1, 49 AS col2 FROM tab1 WHERE NOT ( NULL ) IN ( 86 * ( col1 ) * col2 + + + col0, + 12 - - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6811
SELECT - 7 * - + col1 * - + 9 FROM tab0 WHERE NOT + col2 / - CAST( NULL AS SIGNED ) * + 72 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6811
SELECT - 7 * - + col1 * - + 9 FROM tab0 WHERE NOT + col2 / - CAST ( NULL AS INTEGER ) * + 72 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 * + + col2 >= - 49
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6813
SELECT + - 89 DIV + + 30 FROM tab1 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-6813
SELECT + - 89 / + + 30 FROM tab1 AS cor0
----
-2
-2
-2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 69 + - col2 * 33 * - + col2 NOT BETWEEN + 0 AND col1 * col1 * - 45
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6815
SELECT DISTINCT + col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) < + col1 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6815
SELECT DISTINCT + col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) < + col1 + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + 55 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query II rowsort
SELECT + col1 AS col0, - col1 * - col1 * - col0 * - 29 AS col0 FROM tab0
----
1
2813
21
1112643
81
2854035

query I rowsort
SELECT ALL col0 + + col0 + col2 FROM tab1 AS cor0
----
198
229
250

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT ALL MIN( - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL MIN ( - col1 ) FROM tab2 AS cor0
----
-77

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

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

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

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

query I rowsort
SELECT + col0 * - - ( - col1 ) - col2 FROM tab1
----
-4345
-484
-810

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

skipif mysql # not compatible
query I rowsort label-6824
SELECT - CAST ( + - col2 AS INTEGER ) AS col1 FROM tab2 WHERE + col2 - - - col1 / 95 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT DISTINCT - ( + 53 ) + COUNT( * ) AS col0 FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT - ( + 53 ) + COUNT ( * ) AS col0 FROM tab2
----
-50

query II rowsort
SELECT + col2 * col0 + - - 7 * col0 AS col1, 48 AS col1 FROM tab1
----
5253
48
5610
48
6825
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT ALL + SUM( DISTINCT col2 ) + 78 AS col1 FROM tab1
----
301

skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL + SUM ( DISTINCT col2 ) + 78 AS col1 FROM tab1
----
301

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col0 col0 FROM tab0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6829
SELECT DISTINCT col0 * 12 * + col1 + + col1, + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
5105
NULL
51371
NULL
8582
NULL

skipif mysql # not compatible
query II rowsort label-6829
SELECT DISTINCT col0 * 12 * + col1 + + col1, + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
5105
NULL
51371
NULL
8582
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= - + 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT DISTINCT - + COUNT( * ) - + COUNT( * ) col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6831
SELECT DISTINCT - + COUNT ( * ) - + COUNT ( * ) col0 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT ALL col1 * 17 * - - 40 AS col1 FROM tab1 AS cor0
----
31960
3400
9520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0, 62 * col0 col2 FROM tab0 WHERE NOT NULL <> - col1 * + col0
----

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

query I rowsort
SELECT col2 + 75 FROM tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6836
SELECT ALL CAST( NULL AS SIGNED ) * + AVG ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6836
SELECT ALL CAST ( NULL AS INTEGER ) * + AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + - 31 * + ( + ( col1 ) ) AS col2 FROM tab2 AS cor0
----
-1581
-2077
-2387

onlyif mysql # DIV for integer division: 
query I rowsort label-6838
SELECT ALL - ( - 39 ) DIV - col1 FROM tab1 AS cor0
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-6838
SELECT ALL - ( - 39 ) / - col1 FROM tab1 AS cor0
----
-2
-7
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6839
SELECT DISTINCT + 96 DIV + col2 col0 FROM tab1 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6839
SELECT DISTINCT + 96 / + col2 col0 FROM tab1 cor0
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6841
SELECT DISTINCT - 96, + CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-96
15
-96
87
-96
97

skipif mysql # not compatible
query II rowsort label-6841
SELECT DISTINCT - 96, + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-96
15
-96
87
-96
97

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

query I rowsort
SELECT ALL - - col2 * col0 - 10 + col0 - + col1 * - col0 AS col1 FROM tab0 AS cor0
----
1925
2774
9787

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT DISTINCT 45 * - MAX( + + col0 ) FROM tab0 AS cor0
----
-4365

skipif mysql # not compatible
query I rowsort label-6846
SELECT DISTINCT 45 * - MAX ( + + col0 ) FROM tab0 AS cor0
----
-4365

query I rowsort
SELECT - - 53 * - + 29 FROM tab2 AS cor0
----
-1537
-1537
-1537

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

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

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT ( col0 ) IS NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6850
SELECT ALL + col1 DIV + - 90 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6850
SELECT ALL + col1 / + - 90 AS col1 FROM tab2
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6852
SELECT DISTINCT col1 FROM tab0 WHERE NOT + + col1 * + 77 / + col2 - - 89 * - 4 * - + CAST( NULL AS SIGNED ) BETWEEN 86 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT col1 FROM tab0 WHERE NOT + + col1 * + 77 / + col2 - - 89 * - 4 * - + CAST ( NULL AS INTEGER ) BETWEEN 86 AND ( NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT + COUNT( DISTINCT - col2 ) AS col1 FROM tab2 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6854
SELECT + COUNT ( DISTINCT - col2 ) AS col1 FROM tab2 WHERE NOT col1 IS NOT NULL
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6856
SELECT CAST( COUNT( DISTINCT - 93 ) AS SIGNED ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6856
SELECT CAST ( COUNT ( DISTINCT - 93 ) AS INTEGER ) FROM tab1
----
1

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

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

query I rowsort
SELECT DISTINCT + + col2 * - + 86 AS col1 FROM tab0 AS cor0
----
-4042
-8514
-860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + - 65 + - + col0 col2 FROM tab0 AS cor0
----
-1452
-162
-5280

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

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

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

skipif mysql # not compatible
query II rowsort label-6861
SELECT DISTINCT COUNT ( * ), + ( - 8 ) AS col1 FROM tab1 AS cor0
----
3
-8

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6863
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) * - - 0 AS col2, 31 DIV + COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
0
3

skipif mysql # not compatible
query II rowsort label-6863
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) * - - 0 AS col2, 31 / + COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
0
3

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

query I rowsort
SELECT + col2 + + - col0 * + - col1 FROM tab1 AS cor0
----
4345
484
810

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

skipif mysql # not compatible
query I rowsort label-6866
SELECT DISTINCT MIN ( DISTINCT - - col1 ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + + col2 + + - col0 FROM tab2 cor0
----
-17
-23
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6868
SELECT DISTINCT - 98 / 18 + + + 36 * - CAST( NULL AS SIGNED ) * + 32 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6868
SELECT DISTINCT - 98 / 18 + + + 36 * - CAST ( NULL AS INTEGER ) * + 32 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + 85 * col1 AS col2 FROM tab1 AS cor0 WHERE 50 IS NOT NULL
----
-1190
-3995
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT + COUNT( * ) + + - MIN( ALL - - 52 ) AS col0 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-6870
SELECT + COUNT ( * ) + + - MIN ( ALL - - 52 ) AS col0 FROM tab2 AS cor0
----
-49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT COUNT( - - 47 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6872
SELECT COUNT ( - - 47 ) FROM tab0
----
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6874
SELECT DISTINCT + col2 + + ( - col1 ) DIV - 18 + + col2 FROM tab2
----
119
48
84

skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT + col2 + + ( - col1 ) / - 18 + + col2 FROM tab2
----
119
48
84

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

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

query I rowsort
SELECT + col2 - + 72 FROM tab1
----
-13
-4
24

query I rowsort
SELECT - 96 - - col2 FROM tab2 AS cor0
----
-38
-56
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6878
SELECT DISTINCT + 59 * - + ( col0 ) * CAST( 45 AS SIGNED ) - + 31 FROM tab2 AS cor0
----
-122161
-169951
-199156

skipif mysql # not compatible
query I rowsort label-6878
SELECT DISTINCT + 59 * - + ( col0 ) * CAST ( 45 AS INTEGER ) - + 31 FROM tab2 AS cor0
----
-122161
-169951
-199156

query I rowsort
SELECT ALL - col0 - - - col1 FROM tab2 AS cor0
----
-141
-142
-97

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = - 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 * 37 * + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6882
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 * 37 * + col1 IS NOT NULL
----
0

query I rowsort
SELECT ALL - 99 * + + 29 AS col1 FROM tab1 cor0
----
-2871
-2871
-2871

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6885
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT CAST( - - col1 AS SIGNED ) IN ( ( - col2 ) )
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6885
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT CAST ( - - col1 AS INTEGER ) IN ( ( - col2 ) )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT DISTINCT + COUNT( * ) * + - 28 AS col0 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-6886
SELECT DISTINCT + COUNT ( * ) * + - 28 AS col0 FROM tab2
----
-84

query I rowsort
SELECT DISTINCT + col1 * + 70 AS col2 FROM tab0 AS cor0
----
1470
5670
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 * 95 * - col1 col1 FROM tab1 AS cor0
----
-209855
-22325
-62510

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 43 * + 68 col1 FROM tab2 cor0
----
-116960
-169592
-67252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6890
SELECT - + COUNT( DISTINCT + + 66 ) AS col1, + COUNT( DISTINCT - + col0 ) * CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
-1
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6890
SELECT - + COUNT ( DISTINCT + + 66 ) AS col1, + COUNT ( DISTINCT - + col0 ) * CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
-1
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - 5 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6892
SELECT col2 DIV 11 col1 FROM tab0
----
0
4
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6892
SELECT col2 / 11 col1 FROM tab0
----
0
4
9

query I rowsort
SELECT ALL 48 * + col2 AS col0 FROM tab2
----
1104
1920
2784

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT DISTINCT + MAX( + col1 ) + - COUNT( * ) + + 91 AS col0 FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-6898
SELECT DISTINCT + MAX ( + col1 ) + - COUNT ( * ) + + 91 AS col0 FROM tab2 AS cor0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT MIN( DISTINCT + - col0 ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-6899
SELECT MIN ( DISTINCT + - col0 ) AS col2 FROM tab1
----
-91

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6903
SELECT DISTINCT + + MIN ( DISTINCT - col1 ) - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-80

onlyif mysql # DIV for integer division: 
query II rowsort label-6904
SELECT ALL - + 32 col2, + col1 DIV - 73 AS col0 FROM tab0 AS cor0
----
-32
-1
-32
0
-32
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6904
SELECT ALL - + 32 col2, + col1 / - 73 AS col0 FROM tab0 AS cor0
----
-32
-1
-32
0
-32
0

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

query I rowsort
SELECT + col2 * - col2 - - - 53 AS col0 FROM tab2 AS cor0
----
-1653
-3417
-582

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

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

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

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

query I rowsort
SELECT - col1 + - col2 + - 56 * - col0 * + - ( - col2 ) * + + 92 AS col2 FROM tab0
----
3632032
4482209
49474556

query II rowsort
SELECT + col2 + + col1 AS col0, col1 FROM tab1
----
110
14
115
47
64
5

query I rowsort
SELECT 70 + + col0 AS col0 FROM tab0
----
157
167
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT ALL MIN( ( + 86 ) ) AS col2 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL MIN ( ( + 86 ) ) AS col2 FROM tab1
----
86

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT ALL - COUNT( ALL 31 ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL - COUNT ( ALL 31 ) AS col1 FROM tab1 cor0
----
-3

query II rowsort
SELECT + col2 AS col0, + col2 - col0 FROM tab0 AS cor0
----
10
-77
47
32
99
2

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6919
SELECT ALL - 62, SUM( + 34 ) col2 FROM tab0 AS cor0 WHERE NOT ( + col2 ) * - + col0 * col0 + + + col2 < - 83
----
-62
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6919
SELECT ALL - 62, SUM ( + 34 ) col2 FROM tab0 AS cor0 WHERE NOT ( + col2 ) * - + col0 * col0 + + + col2 < - 83
----
-62
NULL

query I rowsort
SELECT DISTINCT 95 AS col2 FROM tab1, tab2 cor0
----
95

query I rowsort
SELECT DISTINCT - 72 + + + col2 AS col2 FROM tab0 WHERE ( ( col0 ) ) <= - 57
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6922
SELECT ALL * FROM tab1 WHERE NULL < + CAST( NULL AS DECIMAL ) + + col2
----

skipif mysql # not compatible
query III rowsort label-6922
SELECT ALL * FROM tab1 WHERE NULL < + CAST ( NULL AS REAL ) + + col2
----

query I rowsort
SELECT col0 * - + col2 * + col1 AS col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT DISTINCT COUNT( * ) + 29 * + + SUM( DISTINCT - col0 ) col1 FROM tab0 AS cor0
----
-5768

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6924
SELECT DISTINCT COUNT ( * ) + 29 * + + SUM ( DISTINCT - col0 ) col1 FROM tab0 AS cor0
----
-5768

query I rowsort
SELECT - col0 + col0 FROM tab0 AS cor0 WHERE + 64 < - 37 * + + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6926
SELECT DISTINCT + - COUNT( * ) FROM tab1 WHERE NOT - 77 BETWEEN col1 AND + + ( - - CAST( NULL AS SIGNED ) )
----
-3

skipif mysql # not compatible
query I rowsort label-6926
SELECT DISTINCT + - COUNT ( * ) FROM tab1 WHERE NOT - 77 BETWEEN col1 AND + + ( - - CAST ( NULL AS INTEGER ) )
----
-3

query I rowsort
SELECT ALL + + col2 + + col0 AS col1 FROM tab1 AS cor0
----
144
147
159

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT DISTINCT ( - 33 ) - COUNT( * ) col2 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6930
SELECT DISTINCT ( - 33 ) - COUNT ( * ) col2 FROM tab2 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT DISTINCT 1 * + MIN( - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-6931
SELECT DISTINCT 1 * + MIN ( - col0 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT ALL - 27 AS col2 FROM tab1 AS cor0 WHERE NOT col2 * + 75 IS NULL
----
-27
-27
-27

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

query I rowsort
SELECT DISTINCT ( + col0 ) - + - 21 AS col0 FROM tab1
----
106
112
72

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

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

query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab2 WHERE NOT 91 <> + - ( - col1 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6938
SELECT - 21 DIV + col1 * - 4 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6938
SELECT - 21 / + col1 * - 4 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + + 51 * 79 FROM tab0 cor0
----
4029

query I rowsort
SELECT ALL col2 * 54 + - + col1 FROM tab0 AS cor0
----
2457
519
5345

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT DISTINCT + COUNT( * ) + - 34 + + COUNT( * ) FROM tab0, tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-6942
SELECT DISTINCT + COUNT ( * ) + - 34 + + COUNT ( * ) FROM tab0, tab0 AS cor0
----
-16

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

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

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

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

query I rowsort
SELECT + col2 * + - col2 * - col1 + + + col1 FROM tab1 AS cor0
----
129038
17410
217375

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT MIN( ALL + + col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6946
SELECT MIN ( ALL + + col1 ) AS col2 FROM tab1
----
5

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

skipif mysql # not compatible
query I rowsort label-6947
SELECT CAST ( 16 AS INTEGER ) AS col0 FROM tab2
----
16
16
16

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

query I rowsort
SELECT col2 + - 26 FROM tab2
----
-3
14
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 + + + col2 col1 FROM tab0
----
108
19
56

query I rowsort
SELECT DISTINCT 3 * col0 + col0 AS col1 FROM tab2
----
184
256
300

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT - 20 + + col1 < + 40 )
----
46
51
23

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE ( + col0 * - - col2 * 3 * - col1 + - 81 IS NOT NULL )
----
14
47
5

query I rowsort
SELECT + - 77 * col2 AS col2 FROM tab1 cor0
----
-4543
-5236
-7392

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 * + ( + + col2 ) col1 FROM tab1
----
-3599
-4148
-5856

query I rowsort
SELECT DISTINCT - col2 * col1 - + col2 FROM tab2 AS cor0
----
-1196
-3120
-3944

query I rowsort
SELECT + 80 - - col0 AS col2 FROM tab1 AS cor0
----
131
165
171

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT DISTINCT - - COUNT( * ) * - 56 AS col1 FROM tab0 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-6961
SELECT DISTINCT - - COUNT ( * ) * - 56 AS col1 FROM tab0 AS cor0
----
-168

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

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

query I rowsort
SELECT ALL + + col0 - - 92 AS col0 FROM tab0 AS cor0
----
107
179
189

query II rowsort
SELECT col0 * col0 AS col2, ( col2 ) AS col2 FROM tab1 AS cor0
----
2601
96
7225
59
8281
68

query I rowsort
SELECT DISTINCT + col0 * + col1 * + - ( + col2 ) * - 74 + - - col2 + - - col0 FROM tab0 AS cor0
----
1352077
4225832
710818

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

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

query I rowsort
SELECT DISTINCT col0 * + col1 + col2 AS col1 FROM tab2 AS cor0
----
2369
4968
5083

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT - + COUNT( - col1 ) FROM tab0 AS cor0 WHERE NOT 86 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6968
SELECT - + COUNT ( - col1 ) FROM tab0 AS cor0 WHERE NOT 86 IS NULL
----
-3

query I rowsort
SELECT ALL + col0 - col2 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN - col2 / + + col0 + - 5 AND + + col0
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6971
SELECT DISTINCT - CAST( + + 52 AS SIGNED ) * + - COUNT( * ) * - COUNT( * ) * + + SUM( DISTINCT + - col1 ) FROM tab1
----
30888

skipif mysql # not compatible
query I rowsort label-6971
SELECT DISTINCT - CAST ( + + 52 AS INTEGER ) * + - COUNT ( * ) * - COUNT ( * ) * + + SUM ( DISTINCT + - col1 ) FROM tab1
----
30888

query II rowsort
SELECT ALL col1 + + 84, 36 AS col1 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT 8 * col1 FROM tab0
----
168
648
8

query II rowsort
SELECT ALL 32 AS col1, col0 AS col2 FROM tab2
----
32
46
32
64
32
75

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6976
SELECT - COUNT( * ) AS col0, + 52 AS col0 FROM tab0
----
-3
52

skipif mysql # not compatible
query II rowsort label-6976
SELECT - COUNT ( * ) AS col0, + 52 AS col0 FROM tab0
----
-3
52

onlyif mysql # DIV for integer division: 
query I rowsort label-6977
SELECT DISTINCT + col0 DIV + + col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-6977
SELECT DISTINCT + col0 / + + col1 FROM tab1
----
1
17
3

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

skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL + COUNT ( + - CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

query I rowsort
SELECT - - 40 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 7 AS col0 FROM tab1 WHERE NOT + - 23 IS NULL
----
-7
-7
-7

query I rowsort
SELECT 84 * col0 * col1 FROM tab2
----
197064
413952
422100

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT + COUNT( * ) * - COUNT( col2 ) AS col0 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6982
SELECT + COUNT ( * ) * - COUNT ( col2 ) AS col0 FROM tab2 cor0
----
-9

query I rowsort
SELECT 33 * - + col1 AS col1 FROM tab0 cor0
----
-2673
-33
-693

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 cor0 WHERE NOT - 70 NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT ALL - + 56, 90 AS col1 FROM tab1 AS cor0
----
-56
90
-56
90
-56
90

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

query I rowsort
SELECT - + col1 + + - 12 AS col0 FROM tab2 AS cor0
----
-63
-79
-89

query I rowsort
SELECT 84 + - 5 * - - col2 AS col0 FROM tab1 AS cor0
----
-211
-256
-396

query II rowsort
SELECT 20 + - 29 AS col2, col1 AS col2 FROM tab2 cor0
----
-9
51
-9
67
-9
77

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

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

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

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

query II rowsort
SELECT DISTINCT 37 + col1 AS col1, col1 AS col1 FROM tab0
----
118
81
38
1
58
21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6994
SELECT ALL + 27 + CAST( + - col2 AS SIGNED ) DIV + col2 + col0 + + col0 AS col0 FROM tab2
----
118
154
176

skipif mysql # not compatible
query I rowsort label-6994
SELECT ALL + 27 + CAST ( + - col2 AS INTEGER ) / + col2 + col0 + + col0 AS col0 FROM tab2
----
118
154
176

query II rowsort
SELECT 90 AS col1, col2 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL >= + col0 / - - col2
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT SUM( + - 53 ) FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-7000
SELECT SUM ( + - 53 ) FROM tab0 AS cor0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT MAX( - 35 ) AS col0 FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-7001
SELECT MAX ( - 35 ) AS col0 FROM tab1 AS cor0
----
-35

query I rowsort
SELECT ALL + 46 * col2 + - - 20 AS col1 FROM tab0 AS cor0
----
2182
4574
480

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

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

query I rowsort
SELECT + 77 * - 36 FROM tab2
----
-2772
-2772
-2772

query II rowsort
SELECT - col0 * - col0 AS col2, + 64 FROM tab0
----
225
64
7569
64
9409
64

onlyif mysql # aggregate syntax: 
query II rowsort label-7006
SELECT ALL MIN( col1 ) * 50 * + 20, COUNT( * ) + - 36 AS col2 FROM tab0
----
1000
-33

skipif mysql # not compatible
query II rowsort label-7006
SELECT ALL MIN ( col1 ) * 50 * + 20, COUNT ( * ) + - 36 AS col2 FROM tab0
----
1000
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 12 * + 92 col2 FROM tab0
----
1104
1104
1104

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

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

query I rowsort
SELECT + col2 * 2 * - + ( col2 ) AS col1 FROM tab1
----
-18432
-6962
-9248

query I rowsort
SELECT - ( 47 ) AS col2 FROM tab2
----
-47
-47
-47

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

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

query I rowsort
SELECT 67 FROM tab1 AS cor0 WHERE NOT ( col1 <= ( NULL ) )
----

query I rowsort
SELECT + col2 * - col0 * col0 * + col1 * + 25 + - + col2 FROM tab0
----
-21414422
-23287374
-39737260

query I rowsort
SELECT ( - - col2 ) * - - col2 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT ALL + 41 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7017
SELECT * FROM tab1 cor0 WHERE - col0 * + CAST( col2 AS SIGNED ) * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7017
SELECT * FROM tab1 cor0 WHERE - col0 * + CAST ( col2 AS INTEGER ) * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 95 AS col2 FROM tab0 AS cor0 WHERE + ( + + col1 ) * - + col0 * - col1 + + ( + + col2 ) + + col1 IS NULL
----

query I rowsort
SELECT col1 * + - ( 49 ) FROM tab1 AS cor0
----
-2303
-245
-686

onlyif mysql # DIV for integer division: 
query I rowsort label-7020
SELECT - 13 DIV 4 FROM tab1 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-7020
SELECT - 13 / 4 FROM tab1 AS cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT - COUNT( DISTINCT 58 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7021
SELECT - COUNT ( DISTINCT 58 ) FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 74, 20 + - - col2 - + col1 col2 FROM tab1
----
74
102
74
41
74
74

onlyif mysql # DIV for integer division: 
query I rowsort label-7023
SELECT col2 DIV 99 + + + col2 AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7023
SELECT col2 / 99 + + + col2 AS col0 FROM tab1
----
59
68
96

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

query I rowsort
SELECT ALL 2 + - col2 AS col0 FROM tab2
----
-21
-38
-56

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7028
SELECT MAX( 16 ) + + SUM( DISTINCT + col0 ) AS col0, COUNT( - - 56 ) AS col0 FROM tab2 AS cor0
----
201
3

skipif mysql # not compatible
query II rowsort label-7028
SELECT MAX ( 16 ) + + SUM ( DISTINCT + col0 ) AS col0, COUNT ( - - 56 ) AS col0 FROM tab2 AS cor0
----
201
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 44 col2, + 22 AS col1 FROM tab2 cor0
----
44
22

onlyif mysql # DIV for integer division: 
query I rowsort label-7030
SELECT - + 38 DIV - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7030
SELECT - + 38 / - col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7031
SELECT - 33 DIV 14 - + col1 FROM tab1
----
-16
-49
-7

skipif mysql # not compatible
query I rowsort label-7031
SELECT - 33 / 14 - + col1 FROM tab1
----
-16
-49
-7

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= + 34
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7034
SELECT DISTINCT + CAST( + + 41 AS SIGNED ) AS col1, - col1 + + + 47 AS col1 FROM tab2 AS cor0
----
41
-20
41
-30
41
-4

skipif mysql # not compatible
query II rowsort label-7034
SELECT DISTINCT + CAST ( + + 41 AS INTEGER ) AS col1, - col1 + + + 47 AS col1 FROM tab2 AS cor0
----
41
-20
41
-30
41
-4

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

query I rowsort
SELECT ALL - col1 FROM tab0 cor0 WHERE ( - col0 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + 38 * ( + col0 ) * + col1 AS col0 FROM tab1 AS cor0
----
16150
162526
27132

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7041
SELECT ALL - AVG ( DISTINCT - + col1 ) + - + ( + CAST( NULL AS SIGNED ) ) * COUNT( DISTINCT 3 ) + COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL - AVG ( DISTINCT - + col1 ) + - + ( + CAST ( NULL AS INTEGER ) ) * COUNT ( DISTINCT 3 ) + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 16 / + 55 NOT IN ( + + col0 )
----

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7048
SELECT ALL - CAST( NULL AS SIGNED ) + + 91 + CAST( - - AVG ( 48 ) AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL - CAST ( NULL AS INTEGER ) + + 91 + CAST ( - - AVG ( 48 ) AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 72 * - col0 FROM tab2
----
3312
4608
5400

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7050
SELECT DISTINCT - 28 + + - col0 AS col1, col1 / - - CAST( NULL AS SIGNED ) FROM tab2
----
-103
NULL
-74
NULL
-92
NULL

skipif mysql # not compatible
query II rowsort label-7050
SELECT DISTINCT - 28 + + - col0 AS col1, col1 / - - CAST ( NULL AS INTEGER ) FROM tab2
----
-103
NULL
-74
NULL
-92
NULL

query I rowsort
SELECT - 25 * - col2 AS col2 FROM tab1
----
1475
1700
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT ALL + COUNT( * ) + - - 66 AS col0 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL + COUNT ( * ) + - - 66 AS col0 FROM tab1
----
69

query I rowsort
SELECT 78 * col1 * + - col1 * + + col2 + + col1 - - + col2 FROM tab1 AS cor0
----
-114986
-11716421
-1467538

query I rowsort
SELECT - 20 + 53 FROM tab1 cor0
----
33
33
33

query I rowsort
SELECT ALL col1 * + - col2 + - + col1 FROM tab0 AS cor0
----
-100
-231
-3888

query I rowsort
SELECT - - col0 + + 37 - - 5 * - - 53 FROM tab0 AS cor0
----
317
389
399

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

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

query I rowsort
SELECT + 39 * - + col1 + - + 20 * 25 + - 4 FROM tab1 AS cor0
----
-1050
-2337
-699

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 22 col1, + col0 FROM tab2 WHERE + - 18 = col1
----

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

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

query I rowsort
SELECT DISTINCT col0 * + + 26 + + 7 FROM tab0
----
2269
2529
397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7064
SELECT ALL CAST( ( + col2 ) AS SIGNED ) + - 41 * + 29 FROM tab2
----
-1131
-1149
-1166

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL CAST ( ( + col2 ) AS INTEGER ) + - 41 * + 29 FROM tab2
----
-1131
-1149
-1166

query I rowsort
SELECT ALL 54 * - - 25 - + 57 * col0 + - + col0 * - - 9 AS col2 FROM tab1
----
-2016
-4260
-4656

query I rowsort
SELECT DISTINCT + - 77 + - + col2 * + - 10 FROM tab2 AS cor0
----
153
323
503

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT ALL - + 80 - + COUNT( * ) FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-7067
SELECT ALL - + 80 - + COUNT ( * ) FROM tab1 AS cor0
----
-83

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

query I rowsort
SELECT col2 + + col0 * - col2 + - 75 FROM tab1 AS cor0 WHERE NOT ( col1 IS NULL )
----
-4875
-5031
-6195

query I rowsort
SELECT ALL - col0 * - + 98 FROM tab1 AS cor0
----
4998
8330
8918

query II rowsort
SELECT DISTINCT + + col0 AS col2, 83 FROM tab0 AS cor0 WHERE NOT - col1 * col2 <> + - 35
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT DISTINCT - ( ( + MIN( ALL + + col0 ) ) ) FROM tab2 WHERE ( + 49 - + - col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7074
SELECT DISTINCT - ( ( + MIN ( ALL + + col0 ) ) ) FROM tab2 WHERE ( + 49 - + - col2 ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 65 / + ( + + 93 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT DISTINCT col1 * + 68 + ( - + 45 ) FROM tab0 AS cor0 WHERE - 90 BETWEEN + 97 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7078
SELECT ALL - - 78 AS col0, 86 + - - col0 + + CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
78
155
78
190
78
219

skipif mysql # not compatible
query II rowsort label-7078
SELECT ALL - - 78 AS col0, 86 + - - col0 + + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
78
155
78
190
78
219

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

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

query III rowsort
SELECT + ( + col2 ) AS col2, - col0 - - 57 AS col1, + + col1 * ( - 89 ) + col2 FROM tab2 WHERE NOT + - ( col2 ) + - col2 NOT BETWEEN + 88 AND NULL
----

query I rowsort
SELECT ALL + col0 + + - 46 AS col1 FROM tab0
----
-31
41
51

query I rowsort
SELECT + col2 * 9 FROM tab2
----
207
360
522

onlyif mysql # aggregate syntax: 
query II rowsort label-7083
SELECT COUNT( * ) * - 16 AS col2, - 59 FROM tab1
----
-48
-59

skipif mysql # not compatible
query II rowsort label-7083
SELECT COUNT ( * ) * - 16 AS col2, - 59 FROM tab1
----
-48
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-7084
SELECT + col1 DIV - col1 + + col2 AS col2 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-7084
SELECT + col1 / - col1 + + col2 AS col2 FROM tab0 AS cor0
----
46
9
98

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

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

query I rowsort
SELECT DISTINCT + col1 + 81 * + col2 FROM tab2 cor0
----
1914
3317
4765

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7091
SELECT + col0 - - 85 + + CAST( + + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
181
183
193

skipif mysql # not compatible
query I rowsort label-7091
SELECT + col0 - - 85 + + CAST ( + + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
181
183
193

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

query I rowsort
SELECT - + 81 FROM tab2 WHERE NULL BETWEEN - 60 * - col2 AND NULL
----

query I rowsort
SELECT + col2 + - 10 FROM tab2
----
13
30
48

query I rowsort
SELECT 2 + - - 62 * col2 FROM tab1
----
3660
4218
5954

onlyif mysql # DIV for integer division: 
query I rowsort label-7096
SELECT ALL + col2 + + col0 + + col2 DIV - col1 + - col0 col0 FROM tab0
----
0
10
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7096
SELECT ALL + col2 + + col0 + + col2 / - col1 + - col0 col0 FROM tab0
----
0
10
47

query II rowsort
SELECT 35 + col2 AS col1, 0 * + col2 FROM tab0
----
134
0
45
0
82
0

query I rowsort
SELECT ALL + 22 * - col2 AS col0 FROM tab0
----
-1034
-2178
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT 43 + + - 2 * + + COUNT( * ) AS col2 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-7099
SELECT 43 + + - 2 * + + COUNT ( * ) AS col2 FROM tab1
----
37

query I rowsort
SELECT ( - - 92 ) + + col1 AS col0 FROM tab2
----
143
159
169

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT ALL + MAX( - col1 ) - - 80 AS col2 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-7101
SELECT ALL + MAX ( - col1 ) - - 80 AS col2 FROM tab0
----
79

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

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

query I rowsort
SELECT DISTINCT - col2 - - + col0 FROM tab2 AS cor0
----
17
23
24

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

query I rowsort
SELECT + col2 * 76 FROM tab2
----
1748
3040
4408

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

skipif mysql # not compatible
query I rowsort label-7106
SELECT - - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * + - COUNT ( DISTINCT 21 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT ALL - - COUNT( * ) * ( - + 87 ) AS col2 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-261

skipif mysql # not compatible
query I rowsort label-7109
SELECT ALL - - COUNT ( * ) * ( - + 87 ) AS col2 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT DISTINCT + MAX( DISTINCT col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7110
SELECT DISTINCT + MAX ( DISTINCT col2 ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT 22 * + 14 - 90 AS col1 FROM tab1 AS cor0
----
218
218
218

onlyif mysql # DIV for integer division: 
query I rowsort label-7112
SELECT DISTINCT + - col1 DIV - + col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7112
SELECT DISTINCT + - col1 / - + col2 FROM tab0 AS cor0
----
0
1
2

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col1 > NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT ( - + ( + MAX( ALL - col2 ) ) ) + - 13 col1 FROM tab0 WHERE NOT ( - + col2 ) IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7115
SELECT ( - + ( + MAX ( ALL - col2 ) ) ) + - 13 col1 FROM tab0 WHERE NOT ( - + col2 ) IS NULL
----
-3

query I rowsort
SELECT 45 + 38 FROM tab2 WHERE NOT + 98 IS NULL
----
83
83
83

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7118
SELECT + - COUNT ( - ( + + 9 ) ) col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> col1 * col1
----

query I rowsort
SELECT DISTINCT 15 FROM tab1 AS cor0 WHERE ( NOT + + 34 IS NULL )
----
15

query I rowsort
SELECT + col2 * - col2 + + + ( + + 1 ) FROM tab2 AS cor0
----
-1599
-3363
-528

onlyif mysql # DIV for integer division: 
query I rowsort label-7122
SELECT DISTINCT ( ( + col2 ) ) DIV - col1 + 0 + - col1 - - 9 + + + col2 - col1 + - + col2 AS col0 FROM tab2 AS cor0
----
-125
-145
-93

skipif mysql # not compatible
query I rowsort label-7122
SELECT DISTINCT ( ( + col2 ) ) / - col1 + 0 + - col1 - - 9 + + + col2 - col1 + - + col2 AS col0 FROM tab2 AS cor0
----
-125
-145
-93

query I rowsort
SELECT DISTINCT + ( - col0 ) * + + col1 * col0 + + ( + 86 ) + + + ( + - col0 ) AS col2 FROM tab1 AS cor0
----
-36124
-36379
-389212

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col0 * + col2 * + col2 col1 FROM tab1 AS cor0
----
-23970816
-25150225
-38291344

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE 7 + + + col1 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 - + - 57 col0 FROM tab2
----
69
69
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7128
SELECT * FROM tab1 WHERE ( NOT - CAST( col0 AS SIGNED ) BETWEEN col0 AND NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7128
SELECT * FROM tab1 WHERE ( NOT - CAST ( col0 AS INTEGER ) BETWEEN col0 AND NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 64 * col1 * + col0 AS col1 FROM tab2
----
-150144
-315392
-321600

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = + 6
----

query II rowsort
SELECT + col2, - col1 * - col0 AS col0 FROM tab1
----
59
425
68
4277
96
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, 99 * - - col1 + - - col1 - - + ( - 46 ) AS col0 FROM tab2
----
-23
5054
-40
7654
-58
6654

onlyif mysql # DIV for integer division: 
query I rowsort label-7133
SELECT ALL - 97 DIV col1 AS col1 FROM tab0 AS cor0
----
-1
-4
-97

skipif mysql # not compatible
query I rowsort label-7133
SELECT ALL - 97 / col1 AS col1 FROM tab0 AS cor0
----
-1
-4
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT - COUNT( * ) * MIN( DISTINCT col1 ) AS col1 FROM tab2 WHERE NULL NOT BETWEEN 10 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7134
SELECT - COUNT ( * ) * MIN ( DISTINCT col1 ) AS col1 FROM tab2 WHERE NULL NOT BETWEEN 10 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT MAX( + col2 ) FROM tab0 WHERE NOT - col0 NOT IN ( 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7135
SELECT MAX ( + col2 ) FROM tab0 WHERE NOT - col0 NOT IN ( 27 )
----
NULL

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 11 <> ( + col2 * col1 )
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE NOT NULL <= ( col0 )
----

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

query I rowsort
SELECT DISTINCT + col0 + + col2 * ( - ( 39 ) ) FROM tab1 WHERE + 92 + col2 NOT BETWEEN - col0 - + col1 AND + col2
----
-2216
-2561
-3693

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7141
SELECT + SUM( ( CAST( 39 AS SIGNED ) ) ) AS col2 FROM tab0 WHERE NOT ( 64 ) IS NOT NULL
----
NULL

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

query I rowsort
SELECT DISTINCT - 39 + col0 FROM tab2
----
25
36
7

query I rowsort
SELECT ALL 75 + - col0 AS col2 FROM tab1
----
-10
-16
24

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 86 < NULL
----

query I rowsort
SELECT - col2 - - col0 FROM tab2 WHERE col2 >= + 13
----
17
23
24

query III rowsort
SELECT * FROM tab2 WHERE NULL <= - 41 + 78
----

query I rowsort
SELECT DISTINCT + 98 + col0 AS col2 FROM tab2
----
144
162
173

query III rowsort
SELECT * FROM tab1 WHERE col2 * 38 + col1 IN ( - 90 )
----

query I rowsort
SELECT - 8 + 51 FROM tab2
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT SUM( DISTINCT - 58 ) FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-7150
SELECT SUM ( DISTINCT - 58 ) FROM tab1
----
-58

query I rowsort
SELECT ALL 87 - col2 FROM tab1
----
-9
19
28

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

query I rowsort
SELECT ALL + 56 FROM tab1 AS cor0 WHERE NOT ( - col1 ) < col0 - + 20 * + col2
----
56
56
56

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7156
SELECT + 10 DIV SUM( ALL CAST( ( + 40 ) AS SIGNED ) * + col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7156
SELECT + 10 / SUM ( ALL CAST ( ( + 40 ) AS INTEGER ) * + col1 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT COUNT( * ) * 50 AS col2 FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-7157
SELECT COUNT ( * ) * 50 AS col2 FROM tab2
----
150

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT ALL - COUNT( * ) - + COUNT( * ) AS col2 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL - COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab2
----
-6

query I rowsort
SELECT DISTINCT col1 + 60 AS col0 FROM tab1 AS cor0
----
107
65
74

query I rowsort
SELECT DISTINCT + col2 * col1 - - 47 AS col1 FROM tab0 cor0
----
146
257
3854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7162
SELECT DISTINCT - col2 + - ( col2 ) * - col1 FROM tab0 cor0 WHERE + CAST( NULL AS SIGNED ) / 14 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7162
SELECT DISTINCT - col2 + - ( col2 ) * - col1 FROM tab0 cor0 WHERE + CAST ( NULL AS INTEGER ) / 14 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT COUNT( DISTINCT - col2 ) - 54 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7163
SELECT COUNT ( DISTINCT - col2 ) - 54 FROM tab0 AS cor0
----
-51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 BETWEEN col0 AND + col1 * col1 + + 39
----

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

query I rowsort
SELECT - - 78 + - col0 FROM tab0 AS cor0
----
-19
-9
63

query I rowsort
SELECT - col2 * - col0 + - col2 AS col2 FROM tab0
----
658
860
9504

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) > ( - col1 - + col2 * 90 )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT MIN( - + ( 91 ) ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7175
SELECT MIN ( - + ( 91 ) ) AS col2 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT DISTINCT SUM( + 86 ) AS col2 FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-7176
SELECT DISTINCT SUM ( + 86 ) AS col2 FROM tab0
----
258

query I rowsort
SELECT - + col1 * - - 67 * - 74 + - col0 * - 35 FROM tab2 AS cor0
----
254468
334811
384006

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 * + + col2 * + + 69 col2 FROM tab2 AS cor0
----
-115851
-201480
-292146

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

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

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

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

query I rowsort
SELECT + ( - 79 ) + - ( col1 ) FROM tab1 AS cor0
----
-126
-84
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7183
SELECT ALL + 34 DIV - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-7183
SELECT ALL + 34 / - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-11

query I rowsort
SELECT DISTINCT col2 * + + col0 AS col2 FROM tab1 AS cor0
----
4896
5015
6188

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( ( 32 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7186
SELECT ALL - SUM( ALL + col0 ) DIV + MIN( - col2 ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-7186
SELECT ALL - SUM ( ALL + col0 ) / + MIN ( - col2 ) FROM tab1 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT ALL + - MAX( - + 92 ) + + MIN( ALL col2 ) FROM tab2 AS cor0
----
115

skipif mysql # not compatible
query I rowsort label-7187
SELECT ALL + - MAX ( - + 92 ) + + MIN ( ALL col2 ) FROM tab2 AS cor0
----
115

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

query I rowsort
SELECT DISTINCT 52 * - col2 + - col2 FROM tab2 cor0 WHERE NULL IS NULL
----
-1219
-2120
-3074

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 * - 78 - + col1 col1 FROM tab2 AS cor0
----
-3978
-5226
-6006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7191
SELECT ALL CAST( + CAST( + col0 AS SIGNED ) AS SIGNED ) + col0 AS col1 FROM tab2
----
128
150
92

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL CAST ( + CAST ( + col0 AS INTEGER ) AS INTEGER ) + col0 AS col1 FROM tab2
----
128
150
92

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 36 ) >= ( 73 )
----

query I rowsort
SELECT DISTINCT 67 + - 26 FROM tab1
----
41

query I rowsort
SELECT - col1 * + ( 16 ) FROM tab1
----
-224
-752
-80

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7197
SELECT ALL 52 DIV MAX( ALL + - 66 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7197
SELECT ALL 52 / MAX ( ALL + - 66 ) AS col2 FROM tab1
----
0

query II rowsort
SELECT - col0 * + 56 AS col0, col2 AS col0 FROM tab1
----
-2856
96
-4760
59
-5096
68

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE + col1 NOT BETWEEN ( col0 / + 48 ) AND ( 18 )
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7200
SELECT DISTINCT + CAST( - 17 AS SIGNED ) + - col0 + + + 55 FROM tab1 AS cor0
----
-13
-47
-53

skipif mysql # not compatible
query I rowsort label-7200
SELECT DISTINCT + CAST ( - 17 AS INTEGER ) + - col0 + + + 55 FROM tab1 AS cor0
----
-13
-47
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 17 col1 FROM tab2 AS cor0
----
1139
1309
867

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 62 < NULL
----

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

query I rowsort
SELECT + col2 + + col2 - + - 8 * + col1 - + + col0 AS col2 FROM tab1
----
253
421
73

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7206
SELECT ALL 23 DIV - + col2 * + - 53 - - 18 FROM tab1 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-7206
SELECT ALL 23 / - + col2 * + - 53 - - 18 FROM tab1 AS cor0
----
18
18
18

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

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

query II rowsort
SELECT DISTINCT + col0, 9 FROM tab0
----
15
9
87
9
97
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7209
SELECT DISTINCT - CAST( + 66 AS SIGNED ) AS col2 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-7209
SELECT DISTINCT - CAST ( + 66 AS INTEGER ) AS col2 FROM tab0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT + COUNT( * ) * - - SUM( 23 ) FROM tab1, tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7210
SELECT + COUNT ( * ) * - - SUM ( 23 ) FROM tab1, tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7211
SELECT + 24 DIV - + col1 AS col1, + 77 + + col0 FROM tab2
----
0
123
0
141
0
152

skipif mysql # not compatible
query II rowsort label-7211
SELECT + 24 / - + col1 AS col1, + 77 + + col0 FROM tab2
----
0
123
0
141
0
152

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

query I rowsort
SELECT ALL 43 * - col1 FROM tab0
----
-3483
-43
-903

query III rowsort
SELECT * FROM tab0 WHERE NOT 42 BETWEEN + col1 AND NULL
----
15
81
47

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

query II rowsort
SELECT + 34, 33 AS col0 FROM tab0 AS cor0
----
34
33
34
33
34
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7217
SELECT + col2 col1 FROM tab0 cor0 WHERE NOT - CAST( - + 6 AS SIGNED ) + col1 NOT BETWEEN - + 68 + - 81 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7217
SELECT + col2 col1 FROM tab0 cor0 WHERE NOT - CAST ( - + 6 AS INTEGER ) + col1 NOT BETWEEN - + 68 + - 81 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 + - 50 * - 92 FROM tab0 AS cor0 WHERE + - col2 IS NULL OR NOT NULL = - 85 + + + 14 + 55 * col0
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= 35 * - ( + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7223
SELECT - CAST( NULL AS DECIMAL ) * + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7223
SELECT - CAST ( NULL AS REAL ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT DISTINCT MIN( - 57 ) AS col1 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-7224
SELECT DISTINCT MIN ( - 57 ) AS col1 FROM tab2 AS cor0
----
-57

query I rowsort
SELECT + - 97 * + + col0 * + + col0 AS col0 FROM tab0 AS cor0
----
-21825
-734193
-912673

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7226
SELECT - SUM( + 32 ) / + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 + - - col2 * - col0 col2 FROM tab0
----
-661
-826
-9559

query I rowsort
SELECT ALL + col2 * - 20 * - col1 + + 18 AS col0 FROM tab2
----
23478
61618
77738

onlyif mysql # DIV for integer division: 
query II rowsort label-7232
SELECT col0 DIV - col2 + - - 15 col1, col1 AS col2 FROM tab1
----
14
47
14
5
15
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7232
SELECT col0 / - col2 + - - 15 col1, col1 AS col2 FROM tab1
----
14
47
14
5
15
14

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 = col0 * + 49
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + 58 ) col1 FROM tab2 WHERE NULL BETWEEN NULL AND - - col1
----

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

skipif mysql # not compatible
query I rowsort label-7237
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE + col0 + - + ( - col1 ) * - ( 70 ) * + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7238
SELECT DISTINCT - - col2 - + 90 DIV col0 + + col0 AS col0 FROM tab2 AS cor0
----
103
132
68

skipif mysql # not compatible
query I rowsort label-7238
SELECT DISTINCT - - col2 - + 90 / col0 + + col0 AS col0 FROM tab2 AS cor0
----
103
132
68

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

query I rowsort
SELECT - + col2 * + + col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 92 + col0 + + col2 NOT IN ( + - 12 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - + 52, + ( col0 ) )
----

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

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

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

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

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

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

query I rowsort
SELECT + 85 * - - 49 * - 43 + - col2 FROM tab1 AS cor0
----
-179154
-179163
-179191

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 51 NOT BETWEEN - col1 AND ( col1 * - col0 )
----

query I rowsort
SELECT ALL 35 * 69 AS col1 FROM tab2
----
2415
2415
2415

query I rowsort
SELECT + 70 - col0 * + 72 + + ( ( col0 ) ) + + col1 FROM tab1 WHERE NOT NULL NOT IN ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 AS col2, col1 + - 45 + + + col0 + ( + - ( + - col2 ) ) * - col1 - + + ( + col1 ) * 47 col0 FROM tab2
----
-46
-3518
-64
-6603
-75
-6938

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 21 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7255
SELECT CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + + 77 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7255
SELECT CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + + 77 IS NULL
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT DISTINCT - + ( + MAX( + col2 ) ) col1 FROM tab1 cor0 WHERE NULL = ( NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7257
SELECT DISTINCT - + ( + MAX ( + col2 ) ) col1 FROM tab1 cor0 WHERE NULL = ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7258
SELECT * FROM tab2 cor0 WHERE NOT 27 <> + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7258
SELECT * FROM tab2 cor0 WHERE NOT 27 <> + + CAST ( NULL AS INTEGER )
----

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

query I rowsort
SELECT col2 + - 16 * + col0 FROM tab2 AS cor0
----
-1142
-713
-984

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT ALL - - COUNT( + col2 ) FROM tab2 AS cor0 WHERE NULL BETWEEN 18 AND - + 46
----
0

skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL - - COUNT ( + col2 ) FROM tab2 AS cor0 WHERE NULL BETWEEN 18 AND - + 46
----
0

query I rowsort
SELECT col2 FROM tab1 WHERE col2 NOT BETWEEN - + col2 AND NULL
----

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

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

query I rowsort
SELECT + - col1 - col1 AS col2 FROM tab1 WHERE col0 * - col2 + - 91 IS NOT NULL
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT DISTINCT + ( + ( - + ( + 5 ) ) ) + - COUNT( * ) FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-7267
SELECT DISTINCT + ( + ( - + ( + 5 ) ) ) + - COUNT ( * ) FROM tab0
----
-8

query I rowsort
SELECT col0 + + col0 + - 28 * - 69 / col2 FROM tab2 WHERE - + 5 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + - 74 + col0 * col2 AS col1 FROM tab1
----
-2208
1156
649

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

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

query I rowsort
SELECT + col2 * + ( + col2 ) AS col2 FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT SUM( DISTINCT + 27 ) - 17 * - COUNT( * ) + 39 AS col2 FROM tab2 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-7272
SELECT SUM ( DISTINCT + 27 ) - 17 * - COUNT ( * ) + 39 AS col2 FROM tab2 AS cor0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT + SUM( + - col0 ) - - MIN( ALL + 16 ) * - 5 AS col2 FROM tab1 AS cor0
----
-307

skipif mysql # not compatible
query I rowsort label-7273
SELECT + SUM ( + - col0 ) - - MIN ( ALL + 16 ) * - 5 AS col2 FROM tab1 AS cor0
----
-307

query I rowsort
SELECT DISTINCT 1 * + ( - 77 ) + col1 AS col1 FROM tab0 AS cor0
----
-56
-76
4

query I rowsort
SELECT - ( + 89 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7277
SELECT DISTINCT - COUNT( * ) AS col2, 3 DIV - COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
-9

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL + MAX ( DISTINCT - col1 ) FROM tab2
----
-51

query I rowsort
SELECT DISTINCT + col2 + 88 FROM tab0 AS cor0 WHERE - 54 * - - col2 > 94 + - col2
----

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

query I rowsort
SELECT + col0 * col1 + - 14 FROM tab1 AS cor0 WHERE NOT ( col2 ) > NULL
----

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

query I rowsort
SELECT ALL + col0 * col1 * col0 AS col0 FROM tab1 cor0
----
36125
36414
389207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 * - + col2 col1 FROM tab1 cor0
----
-4779
-5508
-7776

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

query I rowsort
SELECT DISTINCT + 72 AS col0 FROM tab0 WHERE col2 IS NOT NULL
----
72

query II rowsort
SELECT + col2 * + 96, ( + + col2 ) AS col0 FROM tab2
----
2208
23
3840
40
5568
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7290
SELECT ALL - 51 * col0 DIV + ( + 77 ) + 92 * - - 98 * ( - 65 ) + - col1 AS col1 FROM tab1 AS cor0
----
-586087
-586101
-586147

skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL - 51 * col0 / + ( + 77 ) + 92 * - - 98 * ( - 65 ) + - col1 AS col1 FROM tab1 AS cor0
----
-586087
-586101
-586147

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

skipif mysql # not compatible
query I rowsort label-7291
SELECT col2 / - - 74 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + + col0 col2, + col2 AS col2 FROM tab1 AS cor0
----
-45
96
23
68
26
59

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

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT 29 AS col2, + col0 FROM tab2 AS cor0
----
29
46
29
64
29
75

query I rowsort
SELECT DISTINCT - + col2 + - 19 FROM tab0 AS cor0
----
-118
-29
-66

query I rowsort
SELECT + + col0 - + col1 AS col2 FROM tab2 AS cor0
----
-13
-5
8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT ALL + COUNT( * ) + 82 FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL + COUNT ( * ) + 82 FROM tab0 AS cor0
----
85

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

query I rowsort
SELECT DISTINCT + col0 + - col1 + col2 AS col1 FROM tab1
----
112
133
139

query I rowsort
SELECT ( col0 ) + 16 FROM tab1
----
101
107
67

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

skipif mysql # not compatible
query I rowsort label-7305
SELECT DISTINCT COUNT ( * ) + + 17 FROM tab2
----
20

query I rowsort
SELECT 26 + + 69 - - + col2 FROM tab2
----
118
135
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7307
SELECT DISTINCT + + COUNT( ALL - col1 ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 AND + CAST( NULL AS SIGNED ) AND NOT 10 * + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7307
SELECT DISTINCT + + COUNT ( ALL - col1 ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 AND + CAST ( NULL AS INTEGER ) AND NOT 10 * + col0 IS NULL
----
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7310
SELECT ALL ( - col2 ) + CAST( - 16 AS SIGNED ) AS col0 FROM tab1
----
-112
-75
-84

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL ( - col2 ) + CAST ( - 16 AS INTEGER ) AS col0 FROM tab1
----
-112
-75
-84

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7312
SELECT DISTINCT CAST( ( col0 ) AS SIGNED ) AS col1 FROM tab1 WHERE NULL IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7312
SELECT DISTINCT CAST ( ( col0 ) AS INTEGER ) AS col1 FROM tab1 WHERE NULL IS NULL
----
51
85
91

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7316
SELECT - AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) * + - AVG ( ALL + 28 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7316
SELECT - AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) * + - AVG ( ALL + 28 ) FROM tab1
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT ALL - MIN( + ( - col0 ) ) * + COUNT( * ) - - 25 FROM tab0 AS cor0
----
316

skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL - MIN ( + ( - col0 ) ) * + COUNT ( * ) - - 25 FROM tab0 AS cor0
----
316

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7321
SELECT + col2 DIV 44 col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7321
SELECT + col2 / 44 col2 FROM tab0
----
0
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7322
SELECT col2 DIV 91 * - 39 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7322
SELECT col2 / 91 * - 39 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7323
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7325
SELECT CAST( + - col2 AS SIGNED ) FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7325
SELECT CAST ( + - col2 AS INTEGER ) FROM tab0 cor0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - ( - col2 ) + 32 * - 68 - 54 col0 FROM tab2 AS cor0 WHERE col1 + + 6 * + - col0 BETWEEN NULL AND - + col1
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7331
SELECT + + CAST( - + 63 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-109
-127
-138

skipif mysql # not compatible
query I rowsort label-7331
SELECT + + CAST ( - + 63 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-109
-127
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT COUNT( * ) + - COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7332
SELECT COUNT ( * ) + - COUNT ( * ) FROM tab2 cor0
----
0

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col0 + + 68 + + 93
----

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

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

skipif mysql # not compatible
query III rowsort label-7335
SELECT * FROM tab2 WHERE + CAST ( + + 4 AS INTEGER ) - + + 34 IS NULL
----

query I rowsort
SELECT ALL + 29 * - 3 FROM tab1
----
-87
-87
-87

query I rowsort
SELECT DISTINCT col0 * - col2 + col2 AS col0 FROM tab0
----
-658
-860
-9504

query I rowsort
SELECT col2 * - - 69 FROM tab2
----
1587
2760
4002

query I rowsort
SELECT 64 - + + col0 + - + col0 AS col1 FROM tab0
----
-110
-130
34

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 / - col2 * 50 + + col0 * 97 <= col1
----

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

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

query I rowsort
SELECT + 1 - - 65 + - col2 FROM tab2 AS cor0
----
26
43
8

query I rowsort
SELECT col1 - + col2 * + col1 AS col2 FROM tab1 AS cor0
----
-1330
-290
-3149

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col2 + col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7345
SELECT DISTINCT col1 AS col2, CAST( NULL AS SIGNED ) * - + 39 + - 44 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-7345
SELECT DISTINCT col1 AS col2, CAST ( NULL AS INTEGER ) * - + 39 + - 44 FROM tab0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT 32 * col0 AS col1 FROM tab2
----
1472
2048
2400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7347
SELECT DISTINCT - + CAST( + - COUNT( * ) AS SIGNED ) DIV + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-7347
SELECT DISTINCT - + CAST ( + - COUNT ( * ) AS INTEGER ) / + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

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

query I rowsort
SELECT + 27 AS col2 FROM tab1 AS cor0 WHERE NOT ( 70 ) NOT IN ( - ( - ( + - col0 ) ) )
----

query I rowsort
SELECT col0 * - 92 * col0 AS col2 FROM tab1 AS cor0
----
-239292
-664700
-761852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7351
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN + + 71 AND + + 81 / col1
----
0

skipif mysql # not compatible
query I rowsort label-7351
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN + + 71 AND + + 81 / col1
----
0

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

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

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

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

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

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

query I rowsort
SELECT ALL - col0 * 25 * - 24 FROM tab0
----
52200
58200
9000

query I rowsort
SELECT 33 FROM tab1 WHERE NOT + col1 * - col2 <= ( - - ( + + 49 ) )
----

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

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

query I rowsort
SELECT DISTINCT - col0 * - 93 * - 29 FROM tab2
----
-124062
-172608
-202275

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT COUNT( - 23 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7361
SELECT COUNT ( - 23 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT + 68 + 73 * + col0 + 48 FROM tab0 AS cor0
----
1211
6467
7197

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7363
SELECT * FROM tab2 AS cor0 WHERE - 51 * + 75 + + col1 + - col0 + + CAST( NULL AS SIGNED ) - - + 89 * + col2 / - + col2 * - 51 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7363
SELECT * FROM tab2 AS cor0 WHERE - 51 * + 75 + + col1 + - col0 + + CAST ( NULL AS INTEGER ) - - + 89 * + col2 / - + col2 * - 51 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 91 + + 15 AS col0 FROM tab2
----
106
106
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7365
SELECT ALL - - col2 FROM tab1 WHERE + CAST( - + 46 AS SIGNED ) IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7365
SELECT ALL - - col2 FROM tab1 WHERE + CAST ( - + 46 AS INTEGER ) IS NOT NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7366
SELECT DISTINCT 31 DIV + 53 * col2 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7366
SELECT DISTINCT 31 / + 53 * col2 AS col0 FROM tab2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT - COUNT( 90 ) - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7369
SELECT - COUNT ( 90 ) - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7370
SELECT - 6 * + col1 + col2 DIV col2 FROM tab1 AS cor0
----
-281
-29
-83

skipif mysql # not compatible
query I rowsort label-7370
SELECT - 6 * + col1 + col2 / col2 FROM tab1 AS cor0
----
-281
-29
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 + - col2 col2 FROM tab1
----
-137
-146
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT MIN( ALL + 4 ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-7372
SELECT MIN ( ALL + 4 ) FROM tab2
----
4

query I rowsort
SELECT DISTINCT + 81 AS col0 FROM tab1 cor0
----
81

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7375
SELECT + 8 AS col2, COUNT( * ) * - 32 AS col0 FROM tab1 AS cor0
----
8
-96

skipif mysql # not compatible
query II rowsort label-7375
SELECT + 8 AS col2, COUNT ( * ) * - 32 AS col0 FROM tab1 AS cor0
----
8
-96

query I rowsort
SELECT - col1 * col1 + + 17 * - - col2 AS col1 FROM tab2 AS cor0
----
-2210
-3503
-5249

query I rowsort
SELECT ALL + col1 * + col1 + + col0 AS col1 FROM tab1 cor0
----
110
2300
247

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7378
SELECT DISTINCT COUNT( + col2 ) FROM tab0 cor0 WHERE NOT 44 - - col1 BETWEEN col2 + - - CAST( NULL AS SIGNED ) AND + col0 - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7378
SELECT DISTINCT COUNT ( + col2 ) FROM tab0 cor0 WHERE NOT 44 - - col1 BETWEEN col2 + - - CAST ( NULL AS INTEGER ) AND + col0 - CAST ( NULL AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT ALL + 60 + COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 cor0 WHERE NULL <> NULL
----
60

skipif mysql # not compatible
query I rowsort label-7379
SELECT ALL + 60 + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NULL <> NULL
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT - - COUNT( * ) + + 77 AS col0 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-7380
SELECT - - COUNT ( * ) + + 77 AS col0 FROM tab0 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT ALL MIN( ALL - 69 ) col0 FROM tab1
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7381
SELECT ALL MIN ( ALL - 69 ) col0 FROM tab1
----
-69

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NULL > + col1 / + 32
----

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

query II rowsort
SELECT col1 AS col0, col0 + - col2 + + - 87 AS col0 FROM tab2
----
51
-64
67
-70
77
-63

query I rowsort
SELECT ALL - col1 + - col2 - + col2 FROM tab2
----
-157
-183
-97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7386
SELECT ALL - CAST( NULL AS DECIMAL ) * - MIN( DISTINCT + 89 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL - CAST ( NULL AS REAL ) * - MIN ( DISTINCT + 89 ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL - 94 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-94
-94
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-7388
SELECT + 42 DIV + 93 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7388
SELECT + 42 / + 93 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 + + ( - 71 ) FROM tab0
----
-56
16
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7390
SELECT CAST( - col1 AS SIGNED ) * + - 30 + + - col0 FROM tab0 AS cor0
----
-67
2415
543

skipif mysql # not compatible
query I rowsort label-7390
SELECT CAST ( - col1 AS INTEGER ) * + - 30 + + - col0 FROM tab0 AS cor0
----
-67
2415
543

query I rowsort
SELECT + 16 + + + 47 AS col0 FROM tab1 AS cor0
----
63
63
63

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > - 87
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + 69 * col2 col1 FROM tab2 AS cor0
----
-1564
-2720
-3944

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

query I rowsort
SELECT + 75 - 98 AS col1 FROM tab2 WHERE NOT NULL >= + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT DISTINCT - COUNT( ALL 61 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7398
SELECT DISTINCT - COUNT ( ALL 61 ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7399
SELECT + 93 * 68 DIV - 24 AS col2 FROM tab2
----
-263
-263
-263

skipif mysql # not compatible
query I rowsort label-7399
SELECT + 93 * 68 / - 24 AS col2 FROM tab2
----
-263
-263
-263

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 col0 FROM tab2
----
-79
-79
-79

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7402
SELECT - 52, CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab0
----
-52
NULL
-52
NULL
-52
NULL

skipif mysql # not compatible
query II rowsort label-7402
SELECT - 52, CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab0
----
-52
NULL
-52
NULL
-52
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT - 2 * - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-7405
SELECT - 2 * - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7406
SELECT COUNT( + CAST( NULL AS SIGNED ) ) AS col1, - 8 AS col0 FROM tab0
----
0
-8

skipif mysql # not compatible
query II rowsort label-7406
SELECT COUNT ( + CAST ( NULL AS INTEGER ) ) AS col1, - 8 AS col0 FROM tab0
----
0
-8

query I rowsort
SELECT ( - - 4 ) AS col2 FROM tab2
----
4
4
4

query I rowsort
SELECT + col0 * - - 13 FROM tab0
----
1131
1261
195

onlyif mysql # DIV for integer division: 
query I rowsort label-7409
SELECT ALL - col0 + col0 * - col0 DIV + col0 AS col0 FROM tab1
----
-102
-170
-182

skipif mysql # not compatible
query I rowsort label-7409
SELECT ALL - col0 + col0 * - col0 / + col0 AS col0 FROM tab1
----
-102
-170
-182

query I rowsort
SELECT DISTINCT - col1 * col0 + - + col0 FROM tab0
----
-1230
-1914
-194

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

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

query II rowsort
SELECT DISTINCT - 36 + + 18 + 96 AS col0, col0 + col0 * - 50 * + 42 AS col1 FROM tab2
----
78
-134336
78
-157425
78
-96554

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7415
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 * - + CAST( NULL AS SIGNED ) IN ( + 18, col1, 60, + col0 / col0 )
----

skipif mysql # not compatible
query III rowsort label-7415
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 * - + CAST ( NULL AS INTEGER ) IN ( + 18, col1, 60, + col0 / col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT 65 + - SUM( - + 80 ) FROM tab0 AS cor0
----
305

skipif mysql # not compatible
query I rowsort label-7416
SELECT 65 + - SUM ( - + 80 ) FROM tab0 AS cor0
----
305

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7417
SELECT + MAX( ALL + 17 ) * + + CAST( - - 41 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
697

skipif mysql # not compatible
query I rowsort label-7417
SELECT + MAX ( ALL + 17 ) * + + CAST ( - - 41 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
697

query I rowsort
SELECT 82 * - + col1 FROM tab1
----
-1148
-3854
-410

query I rowsort
SELECT DISTINCT 65 + + + col0 + col2 * + 66 + + + col1 FROM tab1
----
4049
4691
6466

query I rowsort
SELECT DISTINCT - 26 * + col2 * + col2 - col2 + + 34 - - col2 FROM tab2 AS cor0
----
-13720
-41566
-87430

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( col1 ) * ( - - 49 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 24 - - + 60 IS NOT NULL
----

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

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

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

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

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

query I rowsort
SELECT + + 92 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

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

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

query I rowsort
SELECT DISTINCT + + 79 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
79

query I rowsort
SELECT + 75 * + - 7 AS col2 FROM tab1
----
-525
-525
-525

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7432
SELECT - 66 + + col0 - + + CAST( + - col1 AS SIGNED ) DIV - col0 FROM tab0 AS cor0
----
-56
21
31

skipif mysql # not compatible
query I rowsort label-7432
SELECT - 66 + + col0 - + + CAST ( + - col1 AS INTEGER ) / - col0 FROM tab0 AS cor0
----
-56
21
31

query I rowsort
SELECT + + col2 + + col1 * 97 FROM tab1 AS cor0
----
1454
4627
544

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7435
SELECT DISTINCT + 31 + - 18 + - - SUM( DISTINCT + ( + 13 ) ) DIV 76 col2 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7435
SELECT DISTINCT + 31 + - 18 + - - SUM ( DISTINCT + ( + 13 ) ) / 76 col2 FROM tab0 AS cor0
----
13

query I rowsort
SELECT + 16 * - col0 AS col1 FROM tab1 AS cor0 WHERE - col0 * + col0 * + 33 NOT BETWEEN NULL AND ( - col1 )
----

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

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

query II rowsort
SELECT ALL col1, 78 + - + col0 * - - col2 AS col2 FROM tab1 AS cor0
----
14
-4818
47
-6110
5
-4937

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT + + MIN( DISTINCT + col1 ) * - COUNT( * ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7443
SELECT + + MIN ( DISTINCT + col1 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-15

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

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

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - 2 * - 45 / + 59 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT ALL 47 + + SUM( - col1 ) FROM tab2
----
-148

skipif mysql # not compatible
query I rowsort label-7446
SELECT ALL 47 + + SUM ( - col1 ) FROM tab2
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT SUM( 33 ) AS col2 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-7447
SELECT SUM ( 33 ) AS col2 FROM tab1
----
99

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

skipif mysql # not compatible
query I rowsort label-7448
SELECT + 47 / + col0 AS col0 FROM tab2 cor0
----
0
0
1

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7452
SELECT - COUNT( * ) * MAX( + col2 ) - - AVG ( 31 ) FROM tab1 AS cor0 WHERE NOT - col0 * - 91 + - col1 - + 4 * CAST( - col2 AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7452
SELECT - COUNT ( * ) * MAX ( + col2 ) - - AVG ( 31 ) FROM tab1 AS cor0 WHERE NOT - col0 * - 91 + - col1 - + 4 * CAST ( - col2 AS INTEGER ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7453
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7454
SELECT 38 * + CAST( + col1 AS SIGNED ) FROM tab2
----
1938
2546
2926

skipif mysql # not compatible
query I rowsort label-7454
SELECT 38 * + CAST ( + col1 AS INTEGER ) FROM tab2
----
1938
2546
2926

onlyif mysql # DIV for integer division: 
query I rowsort label-7455
SELECT + 53 DIV + + ( 70 ) AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7455
SELECT + 53 / + + ( 70 ) AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL 81 * col0 AS col0 FROM tab2
----
3726
5184
6075

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT - ( - MIN( ALL col1 ) ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7457
SELECT - ( - MIN ( ALL col1 ) ) FROM tab1 AS cor0
----
5

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

query I rowsort
SELECT - col1 * - - col0 + - - 0 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL - col0 + 30 AS col0 FROM tab1
----
-21
-55
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT ALL + 22 * ( + 4 ) * COUNT( * ) col0 FROM tab1 AS cor0
----
264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7461
SELECT ALL + 22 * ( + 4 ) * COUNT ( * ) col0 FROM tab1 AS cor0
----
264

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 81 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * - col1 - + 3 * - col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT + 28 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT ALL SUM( - - 31 ) * - 90 AS col0 FROM tab2 AS cor0
----
-8370

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL SUM ( - - 31 ) * - 90 AS col0 FROM tab2 AS cor0
----
-8370

onlyif mysql # aggregate syntax: 
query II rowsort label-7465
SELECT DISTINCT + SUM( + - col2 ) + 74, COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( - 35 IS NOT NULL ) )
----
-82
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7465
SELECT DISTINCT + SUM ( + - col2 ) + 74, COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( - 35 IS NOT NULL ) )
----
-82
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7466
SELECT + + col1 DIV + ( - col0 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-7466
SELECT + + col1 / + ( - col0 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-5
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 55 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT ALL - 82 * - + COUNT( * ) * - SUM( ALL + col2 ) + + - 86 + - + COUNT( * ) + + - COUNT( * ) FROM tab1 cor0
----
-54950

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL - 82 * - + COUNT ( * ) * - SUM ( ALL + col2 ) + + - 86 + - + COUNT ( * ) + + - COUNT ( * ) FROM tab1 cor0
----
-54950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 14 ) * + - 28 + col2 col1 FROM tab2 cor0
----
-334
-352
-369

query II rowsort
SELECT DISTINCT col0 + + - col0 * - col0 AS col0, 49 AS col2 FROM tab0
----
240
49
7656
49
9506
49

query I rowsort
SELECT ALL col2 * + col0 + col1 * ( + - col1 ) AS col1 FROM tab2
----
-139
-1543
-3369

onlyif mysql # DIV for integer division: 
query I rowsort label-7472
SELECT DISTINCT 63 DIV - ( - + 23 ) + + + col2 FROM tab0
----
101
12
49

skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT 63 / - ( - + 23 ) + + + col2 FROM tab0
----
101
12
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7473
SELECT DISTINCT CAST( - col2 AS SIGNED ) - - 74 FROM tab1
----
-22
15
6

skipif mysql # not compatible
query I rowsort label-7473
SELECT DISTINCT CAST ( - col2 AS INTEGER ) - - 74 FROM tab1
----
-22
15
6

query III rowsort
SELECT ALL * FROM tab2 WHERE + 53 NOT BETWEEN + 36 AND NULL
----

query I rowsort
SELECT 67 + + col0 AS col1 FROM tab0
----
154
164
82

onlyif mysql # DIV for integer division: 
query I rowsort label-7476
SELECT - col2 + + + col2 + col1 DIV col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7476
SELECT - col2 + + + col2 + col1 / col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7477
SELECT ALL + 80 * - + 26 - - 31 AS col0, MAX( + 14 ) FROM tab0
----
-2049
14

skipif mysql # not compatible
query II rowsort label-7477
SELECT ALL + 80 * - + 26 - - 31 AS col0, MAX ( + 14 ) FROM tab0
----
-2049
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT ALL - - COUNT( * ) + - 77 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-7478
SELECT ALL - - COUNT ( * ) + - 77 FROM tab0 AS cor0
----
-74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 29 < NULL
----

query I rowsort
SELECT + col0 * + col1 * + 53 + + - col1 FROM tab1 AS cor0
----
22520
226634
37828

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT DISTINCT + - COUNT( * ) * + + 63 - SUM( ALL - col0 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT + - COUNT ( * ) * + + 63 - SUM ( ALL - col0 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7482
SELECT ALL - col0 - + 77 DIV + + 75 AS col0 FROM tab1 AS cor0
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL - col0 - + 77 / + + 75 AS col0 FROM tab1 AS cor0
----
-52
-86
-92

query I rowsort
SELECT DISTINCT + - col0 FROM tab0 AS cor0 WHERE NOT col1 < + col1
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-7484
SELECT DISTINCT + - COUNT( * ), 35 AS col2 FROM tab0 AS cor0
----
-3
35

skipif mysql # not compatible
query II rowsort label-7484
SELECT DISTINCT + - COUNT ( * ), 35 AS col2 FROM tab0 AS cor0
----
-3
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT + COUNT( DISTINCT + - col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7485
SELECT + COUNT ( DISTINCT + - col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 col1 FROM tab1 AS cor0 WHERE col2 * - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 41 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 90 col0 FROM tab0 AS cor0
----
90
90
90

query I rowsort
SELECT 92 * - 15 * + 87 + - col0 AS col0 FROM tab2 AS cor0
----
-120106
-120124
-120135

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT DISTINCT - + SUM( ALL + col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7490
SELECT DISTINCT - + SUM ( ALL + col1 ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT DISTINCT - col0 * + - 64 + 43 AS col0 FROM tab2 AS cor0
----
2987
4139
4843

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( 51 ) * + + col0 * - 91 + + + 75 >= NULL
----

query I rowsort
SELECT ALL - - col2 * - 48 FROM tab2 cor0
----
-1104
-1920
-2784

query I rowsort
SELECT col1 * - 58 AS col2 FROM tab0 AS cor0
----
-1218
-4698
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7495
SELECT ALL + CAST( + + 80 AS SIGNED ) AS col2 FROM tab0
----
80
80
80

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL + CAST ( + + 80 AS INTEGER ) AS col2 FROM tab0
----
80
80
80

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 27 IS NOT NULL
----

query II rowsort
SELECT ALL col2, col2 + col0 AS col2 FROM tab2
----
23
69
40
104
58
133

onlyif mysql # DIV for integer division: 
query I rowsort label-7498
SELECT + + col0 DIV + + col0 col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7498
SELECT + + col0 / + + col0 col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT ALL - COUNT( * ) * 99 AS col2 FROM tab1 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL - COUNT ( * ) * 99 AS col2 FROM tab1 AS cor0
----
-297

query I rowsort
SELECT ALL ( - - 60 ) FROM tab0 AS cor0
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT DISTINCT - 18 + - SUM( col2 ) FROM tab1
----
-241

skipif mysql # not compatible
query I rowsort label-7501
SELECT DISTINCT - 18 + - SUM ( col2 ) FROM tab1
----
-241

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT SUM( ALL - 36 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-108

skipif mysql # not compatible
query I rowsort label-7502
SELECT SUM ( ALL - 36 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7503
SELECT ALL + 75 DIV COUNT( * ) FROM tab0 cor0
----
25

skipif mysql # not compatible
query I rowsort label-7503
SELECT ALL + 75 / COUNT ( * ) FROM tab0 cor0
----
25

query I rowsort
SELECT col2 + col0 + + col2 * col1 FROM tab1 cor0
----
1491
3355
439

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE - 66 / + col0 NOT BETWEEN NULL AND - 13
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT - 96 + - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7506
SELECT - 96 + - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-99

query I rowsort
SELECT + ( col2 ) + + - col1 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT col0 * col1 + 32 FROM tab1 AS cor0
----
4309
457
746

onlyif mysql # aggregate syntax: 
query II rowsort label-7509
SELECT + - 22, - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-22
-3

skipif mysql # not compatible
query II rowsort label-7509
SELECT + - 22, - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-22
-3

query II rowsort
SELECT ALL + col0 AS col1, - col2 FROM tab0 cor0
----
15
-47
87
-10
97
-99

query II rowsort
SELECT DISTINCT - 57, col2 AS col2 FROM tab0 AS cor0
----
-57
10
-57
47
-57
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7512
SELECT ALL + - CAST( NULL AS SIGNED ) AS col1, 68 FROM tab0 AS cor0
----
NULL
68
NULL
68
NULL
68

skipif mysql # not compatible
query II rowsort label-7512
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col1, 68 FROM tab0 AS cor0
----
NULL
68
NULL
68
NULL
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT ALL COUNT( * ) - 89 AS col2 FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-7513
SELECT ALL COUNT ( * ) - 89 AS col2 FROM tab2
----
-86

query I rowsort
SELECT + ( + col2 ) - + 25 * col0 * + 43 AS col0 FROM tab2
----
-49427
-68760
-80567

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 col2 FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT + + COUNT( * ) - - + COUNT( * ) + + SUM( + 40 ) AS col0 FROM tab1 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-7516
SELECT + + COUNT ( * ) - - + COUNT ( * ) + + SUM ( + 40 ) AS col0 FROM tab1 AS cor0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN + col2 AND + + col1
----
-3

skipif mysql # not compatible
query I rowsort label-7517
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN + col2 AND + + col1
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 60 <> col0
----

query II rowsort
SELECT col0, - col2 * 76 AS col1 FROM tab0
----
15
-3572
87
-760
97
-7524

query I rowsort
SELECT ( 27 ) FROM tab0 AS cor0
----
27
27
27

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT col0 IS NULL )
----

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT col1 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT ALL - MAX( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL - MAX ( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
23

query I rowsort
SELECT DISTINCT + + 62 AS col1 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + + col1 ) / 23 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT ALL COUNT( - + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL COUNT ( - + col2 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + - col0 AS col2 FROM tab0 AS cor0 WHERE + 30 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - col1 + - + col0 / + + col1 + 80 AS col0 FROM tab2 AS cor0 WHERE NULL > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + - col0 / + 19 + - + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7530
SELECT DISTINCT - MIN( col1 ) * + 59 + + - 13 + - COUNT( * ) DIV 55 AS col1 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-7530
SELECT DISTINCT - MIN ( col1 ) * + 59 + + - 13 + - COUNT ( * ) / 55 AS col1 FROM tab0
----
-72

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 <> + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 * + col0 * + + ( 59 ) * - + col1 FROM tab2
----
-19863825
-22387904
-7059114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - 41 AS col2, - 87 col1 FROM tab2
----
2091
-87
2747
-87
3157
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7534
SELECT DISTINCT 27 * - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7534
SELECT DISTINCT 27 * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 88 > + 26 + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 + + col1 FROM tab0 AS cor0 WHERE col1 * - col2 + col2 IS NULL
----

query I rowsort
SELECT 23 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT ALL col1 + - + col1 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - - col2 AS col1 FROM tab1 WHERE - - col2 IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL 79 + - ( + col2 ) + - - col1 FROM tab1 cor0
----
-3
25
58

query I rowsort
SELECT ALL + + 89 AS col1 FROM tab0 cor0
----
89
89
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 * col2 + col2 col2 FROM tab2 AS cor0
----
1334
2320
3364

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7543
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 52 <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7543
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 52 <> CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT DISTINCT - MIN( ALL + - col2 ) AS col1 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-7544
SELECT DISTINCT - MIN ( ALL + - col2 ) AS col1 FROM tab2 cor0
----
58

query I rowsort
SELECT col0 * 28 - + col0 AS col1 FROM tab0 AS cor0
----
2349
2619
405

query I rowsort
SELECT + 75 - + col1 AS col1 FROM tab2 AS cor0
----
-2
24
8

query I rowsort
SELECT - + 40 + + col2 FROM tab0 AS cor0
----
-30
59
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7548
SELECT - 79 AS col2, col0 col0 FROM tab2 AS cor0 WHERE 94 * + + CAST( - - col0 AS SIGNED ) NOT BETWEEN - 88 * - + 67 AND + + col1
----
-79
46
-79
64
-79
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7548
SELECT - 79 AS col2, col0 col0 FROM tab2 AS cor0 WHERE 94 * + + CAST ( - - col0 AS INTEGER ) NOT BETWEEN - 88 * - + 67 AND + + col1
----
-79
46
-79
64
-79
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7549
SELECT + col0 + - col2 DIV - 97 AS col0 FROM tab0
----
15
87
98

skipif mysql # not compatible
query I rowsort label-7549
SELECT + col0 + - col2 / - 97 AS col0 FROM tab0
----
15
87
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT DISTINCT ( - + COUNT( * ) ) + + COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7550
SELECT DISTINCT ( - + COUNT ( * ) ) + + COUNT ( * ) AS col0 FROM tab2
----
0

query I rowsort
SELECT + col0 + - - col1 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT - MAX( DISTINCT + col1 ) + 7 * - - 65 FROM tab0
----
374

skipif mysql # not compatible
query I rowsort label-7552
SELECT - MAX ( DISTINCT + col1 ) + 7 * - - 65 FROM tab0
----
374

query I rowsort
SELECT - 46 + col1 FROM tab2
----
21
31
5

query I rowsort
SELECT ALL 33 + col1 FROM tab1
----
38
47
80

query II rowsort
SELECT DISTINCT 8, col2 * + col2 AS col2 FROM tab2
----
8
1600
8
3364
8
529

query I rowsort
SELECT DISTINCT 31 + - - 78 AS col2 FROM tab0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT DISTINCT - + COUNT( * ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7557
SELECT DISTINCT - + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

query II rowsort
SELECT DISTINCT col0 + - ( col2 ) + + col1 * col2 AS col2, + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7559
SELECT ALL - CAST( + + COUNT( - + 77 ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7559
SELECT ALL - CAST ( + + COUNT ( - + 77 ) AS INTEGER ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 19 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

onlyif mysql # aggregate syntax: 
query II rowsort label-7561
SELECT COUNT( * ) AS col1, 23 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
23

skipif mysql # not compatible
query II rowsort label-7561
SELECT COUNT ( * ) AS col1, 23 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7562
SELECT + - 21 * + + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7562
SELECT + - 21 * + + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7563
SELECT + col0 + - - 70 * - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7563
SELECT + col0 + - - 70 * - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT ALL - SUM( - 99 ) AS col0 FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-7564
SELECT ALL - SUM ( - 99 ) AS col0 FROM tab2
----
297

query I rowsort
SELECT DISTINCT - 14 + - col1 AS col2 FROM tab2
----
-65
-81
-91

query II rowsort
SELECT ALL col1, + col2 AS col1 FROM tab2
----
51
23
67
58
77
40

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 50 * - col0 / - col0 + + 5 IS NOT NULL
----

query I rowsort
SELECT + col1 * + 94 * + 26 FROM tab2
----
124644
163748
188188

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 ) * - col0 >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT ALL MIN( DISTINCT - + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL MIN ( DISTINCT - + col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-7571
SELECT DISTINCT 6 AS col0, - col0 DIV - col1 FROM tab2 AS cor0
----
6
0
6
1

skipif mysql # not compatible
query II rowsort label-7571
SELECT DISTINCT 6 AS col0, - col0 / - col1 FROM tab2 AS cor0
----
6
0
6
1

query I rowsort
SELECT DISTINCT - col2 - - 18 AS col0 FROM tab0
----
-29
-81
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 63 col0 FROM tab2
----
1449
2520
3654

query I rowsort
SELECT DISTINCT 4 * 70 FROM tab0
----
280

query I rowsort
SELECT 86 * - 49 AS col0 FROM tab1
----
-4214
-4214
-4214

query I rowsort
SELECT 24 * ( + col0 ) FROM tab0
----
2088
2328
360

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT DISTINCT - ( 73 ) * - COUNT( * ) FROM tab2
----
219

skipif mysql # not compatible
query I rowsort label-7577
SELECT DISTINCT - ( 73 ) * - COUNT ( * ) FROM tab2
----
219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7578
SELECT DISTINCT + CAST( - AVG ( DISTINCT col1 ) AS SIGNED ) + + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT + CAST ( - AVG ( DISTINCT col1 ) AS INTEGER ) + + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-7579
SELECT DISTINCT - ( 88 ) DIV - col0 + col0 FROM tab1
----
52
86
91

skipif mysql # not compatible
query I rowsort label-7579
SELECT DISTINCT - ( 88 ) / - col0 + col0 FROM tab1
----
52
86
91

query I rowsort
SELECT col2 * 10 AS col1 FROM tab0
----
100
470
990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - ( 87 - col2 ) col1 FROM tab1 WHERE ( NULL ) IS NULL
----
57
60
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7582
SELECT ALL + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * col2 = col0 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 17 * col1 AS col0 FROM tab1
----
238
799
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7585
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE col1 < col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7585
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE col1 < col0
----
NULL

query I rowsort
SELECT ALL ( - col2 ) * + ( col2 ) FROM tab0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7587
SELECT - CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7587
SELECT - CAST ( NULL AS REAL ) * - COUNT ( * ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - 23 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * col2 <= + col1 * ( 1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7590
SELECT col1 + + 13 DIV 50 col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7590
SELECT col1 + + 13 / 50 col1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT ALL ( COUNT( * ) ) FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL ( COUNT ( * ) ) FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 * + 57 + 51 * col1 ) = ( NULL )
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 22 ) NOT BETWEEN ( - 6 + - 91 ) AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7595
SELECT + 39 DIV - col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7595
SELECT + 39 / - col0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT ALL + COUNT( * ) - SUM( + col0 ) FROM tab2
----
-182

skipif mysql # not compatible
query I rowsort label-7596
SELECT ALL + COUNT ( * ) - SUM ( + col0 ) FROM tab2
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT + COUNT( * ) + 37 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-7597
SELECT + COUNT ( * ) + 37 FROM tab1
----
40

query I rowsort
SELECT DISTINCT + 98 * ( + col0 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
4508
6272
7350

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 26 IS NULL
----

query I rowsort
SELECT DISTINCT - ( + 86 ) FROM tab1
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7601
SELECT DISTINCT * FROM tab0 WHERE ( CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7601
SELECT DISTINCT * FROM tab0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 + - ( - ( col0 ) ) * 63 AS col1 FROM tab1
----
3162
5270
5642

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT - MAX( - col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( ( 76 ) ) < - 99 * - col1 + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7603
SELECT - MAX ( - col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( ( 76 ) ) < - 99 * - col1 + col0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 92 * ( - col1 * ( col2 ) ) <> + 4 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT DISTINCT + COUNT( * ) * MIN( DISTINCT + 82 ) AS col1 FROM tab2 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-7605
SELECT DISTINCT + COUNT ( * ) * MIN ( DISTINCT + 82 ) AS col1 FROM tab2 AS cor0
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT MIN( + col1 ) * 14 AS col2 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-7606
SELECT MIN ( + col1 ) * 14 AS col2 FROM tab1 AS cor0
----
70

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN + ( + col2 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7609
SELECT + col0 FROM tab1 AS cor0 WHERE NOT col0 * col2 BETWEEN + ( + 20 ) / - CAST( col0 AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7609
SELECT + col0 FROM tab1 AS cor0 WHERE NOT col0 * col2 BETWEEN + ( + 20 ) / - CAST ( col0 AS INTEGER ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT DISTINCT - COUNT( * ) * 60 AS col1 FROM tab2 WHERE ( col0 ) IS NOT NULL
----
-180

skipif mysql # not compatible
query I rowsort label-7610
SELECT DISTINCT - COUNT ( * ) * 60 AS col1 FROM tab2 WHERE ( col0 ) IS NOT NULL
----
-180

query I rowsort
SELECT ALL + 7 * + 5 FROM tab2
----
35
35
35

query I rowsort
SELECT DISTINCT 38 FROM tab0 AS cor0 CROSS JOIN tab0
----
38

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 INNER JOIN tab0 ON NOT ( NULL ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7614
SELECT - MIN( ALL CAST( - col0 AS SIGNED ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-7614
SELECT - MIN ( ALL CAST ( - col0 AS INTEGER ) ) FROM tab0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7615
SELECT - + CAST( NULL AS SIGNED ) / - ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7615
SELECT - + CAST ( NULL AS INTEGER ) / - ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 <> NULL
----

query I rowsort
SELECT ALL + - 13 * 92 AS col2 FROM tab0 AS cor0
----
-1196
-1196
-1196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 14 * col2 col0 FROM tab2 AS cor0
----
-322
-560
-812

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 IN ( + col1 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <> - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 45
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT - 76 NOT BETWEEN + ( col1 ) * + col2 AND col0
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7624
SELECT ALL - ( + col0 ) + - CAST( - col0 AS SIGNED ) col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7624
SELECT ALL - ( + col0 ) + - CAST ( - col0 AS INTEGER ) col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 91 * 72 AS col2 FROM tab0 WHERE NULL BETWEEN 96 * - col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 + 11 * col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT ALL COUNT( * ) + - COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL + 35 * col1 + + 69 FROM tab2
----
1854
2414
2764

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT - COUNT( ALL - col1 ) * COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7629
SELECT - COUNT ( ALL - col1 ) * COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col0 + + 38 - col0 * + 43 FROM tab2
----
-1894
-2650
-3112

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT - MAX( + col1 ) + 49 * 48 FROM tab1
----
2305

skipif mysql # not compatible
query I rowsort label-7631
SELECT - MAX ( + col1 ) + 49 * 48 FROM tab1
----
2305

query I rowsort
SELECT col2 * - - ( - col1 ) + 15 FROM tab2
----
-1158
-3065
-3871

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT BETWEEN - col1 AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7634
SELECT ( + CAST( + col2 AS SIGNED ) ) + ( col0 ) FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-7634
SELECT ( + CAST ( + col2 AS INTEGER ) ) + ( col0 ) FROM tab2
----
104
133
69

query III rowsort
SELECT * FROM tab0 WHERE NULL >= - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 < + 82 * - 40
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7637
SELECT * FROM tab1 AS cor0 WHERE col1 + - 86 / 28 < ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7637
SELECT * FROM tab1 AS cor0 WHERE col1 + - 86 / 28 < ( + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 89 IN ( - col0 * 94 )
----

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 JOIN tab2 AS cor1 ON NOT NULL IS NULL WHERE NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7640
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7641
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col1 + ( - 62 ) ) <= col0 * CAST( col1 / + col2 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7641
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col1 + ( - 62 ) ) <= col0 * CAST ( col1 / + col2 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 25 ) IN ( col1 )
----

query I rowsort
SELECT 44 AS col2 FROM tab1 AS cor0 WHERE col2 BETWEEN - 20 AND 69
----
44
44

onlyif mysql # DIV for integer division: 
query I rowsort label-7644
SELECT DISTINCT + 90 DIV + col1 - + col0 + col2 FROM tab2 AS cor0
----
-16
-22
-23

skipif mysql # not compatible
query I rowsort label-7644
SELECT DISTINCT + 90 / + col1 - + col0 + col2 FROM tab2 AS cor0
----
-16
-22
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7645
SELECT + 11 + + + 52 * + + CAST( NULL AS SIGNED ) * - CAST( - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7645
SELECT + 11 + + + 52 * + + CAST ( NULL AS INTEGER ) * - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 12 - + 35 AS col1 FROM tab0 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-7647
SELECT COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 cor0
----
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 10 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT + ( - ( - + 57 ) ) * MIN( ALL col0 ) FROM tab0 AS cor0
----
855

skipif mysql # not compatible
query I rowsort label-7649
SELECT + ( - ( - + 57 ) ) * MIN ( ALL col0 ) FROM tab0 AS cor0
----
855

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( - 74 ) = - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7651
SELECT ALL ( + CAST( col1 AS SIGNED ) ) AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL ( + CAST ( col1 AS INTEGER ) ) AS col2 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7652
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT - col2 * + 81 BETWEEN ( col0 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7652
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - col2 * + 81 BETWEEN ( col0 ) AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * + + col0 NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7654
SELECT DISTINCT ( - CAST( + col1 AS SIGNED ) ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7654
SELECT DISTINCT ( - CAST ( + col1 AS INTEGER ) ) FROM tab2
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col1
----

query I rowsort
SELECT DISTINCT + + 51 AS col2 FROM tab0 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7657
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE ( NOT ( NOT ( col0 + + col1 DIV col0 ) IN ( 85 ) ) )
----
85

skipif mysql # not compatible
query I rowsort label-7657
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE ( NOT ( NOT ( col0 + + col1 / col0 ) IN ( 85 ) ) )
----
85

query I rowsort
SELECT ALL - + 7 * + ( - 24 ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to b1402786d12a73d4fcc946bf6a6fd981

query II rowsort
SELECT DISTINCT + col0, + col0 + 74 AS col1 FROM tab2
----
46
120
64
138
75
149

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7660
SELECT DISTINCT - CAST( NULL AS DECIMAL ), - col2 AS col0 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-7660
SELECT DISTINCT - CAST ( NULL AS REAL ), - col2 AS col0 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7661
SELECT ALL - COUNT( * ) + COUNT( DISTINCT - CAST( 31 AS DECIMAL ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-8

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL - COUNT ( * ) + COUNT ( DISTINCT - CAST ( 31 AS REAL ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-7662
SELECT + col0 DIV + 58 AS col1 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7662
SELECT + col0 / + 58 AS col1 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT + 22 + + col1 FROM tab2 cor0
----
73
89
99

query I rowsort
SELECT - col1 + - col1 * - ( + col2 ) + + 55 FROM tab1 AS cor0
----
1385
3204
345

query I rowsort
SELECT DISTINCT col0 * - ( + col0 ) AS col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # DIV for integer division: 
query I rowsort label-7666
SELECT DISTINCT + col1 DIV + 11 AS col2 FROM tab0 AS cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-7666
SELECT DISTINCT + col1 / + 11 AS col2 FROM tab0 AS cor0
----
0
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT + COUNT( * ) * - - 52 FROM tab0, tab1 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-7667
SELECT + COUNT ( * ) * - - 52 FROM tab0, tab1 AS cor0
----
468

query III rowsort
SELECT * FROM tab2 WHERE - + col0 > ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT ALL + + 38 * - - 70 - MIN( ALL col1 ) FROM tab0 WHERE col1 * + 79 IS NOT NULL
----
2659

skipif mysql # not compatible
query I rowsort label-7669
SELECT ALL + + 38 * - - 70 - MIN ( ALL col1 ) FROM tab0 WHERE col1 * + 79 IS NOT NULL
----
2659

onlyif mysql # DIV for integer division: 
query I rowsort label-7670
SELECT DISTINCT + col0 DIV ( col2 ) + 89 FROM tab0
----
89
97

skipif mysql # not compatible
query I rowsort label-7670
SELECT DISTINCT + col0 / ( col2 ) + 89 FROM tab0
----
89
97

query I rowsort
SELECT DISTINCT 44 * 27 AS col1 FROM tab1
----
1188

query I rowsort
SELECT 81 * + col1 FROM tab2
----
4131
5427
6237

query III rowsort
SELECT - 95 AS col2, + 27, 62 AS col1 FROM tab2
----
9 values hashing to 2dccc09938cf14ea8add680febc1ee43

query I rowsort
SELECT DISTINCT ( + 17 ) AS col1 FROM tab0 AS cor0
----
17

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 97 * - col1 IN ( - col1 * - col0 + - + 63 / - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT - 48 - 37 - - 43 + SUM( - 19 ) col2 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7676
SELECT - 48 - 37 - - 43 + SUM ( - 19 ) col2 FROM tab1 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT DISTINCT + - 70 * - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
630

skipif mysql # not compatible
query I rowsort label-7677
SELECT DISTINCT + - 70 * - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
630

query I rowsort
SELECT - + 66 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT ALL 17 - + + ( + col0 ) AS col1 FROM tab2
----
-29
-47
-58

query I rowsort
SELECT ALL - + ( - col2 ) + col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7681
SELECT - CAST( - + MIN( col2 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7681
SELECT - CAST ( - + MIN ( col2 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
23

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 13 = NULL
----

query II rowsort
SELECT col0 * col0 AS col1, col1 AS col1 FROM tab1 AS cor0
----
2601
14
7225
5
8281
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT + + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7685
SELECT + + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
3

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab0 WHERE NOT ( NULL ) IS NULL OR NOT - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT COUNT( * ) + - 88 FROM tab0 WHERE NOT NULL < + - 42
----
-88

skipif mysql # not compatible
query I rowsort label-7687
SELECT COUNT ( * ) + - 88 FROM tab0 WHERE NOT NULL < + - 42
----
-88

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 + - col2 IS NOT NULL
----

query I rowsort
SELECT - col2 * + col1 * - 5 * col0 AS col2 FROM tab2
----
1457250
269790
985600

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT DISTINCT + - MIN( DISTINCT - - col2 ) * - 49 + - 55 FROM tab2 AS cor0
----
1072

skipif mysql # not compatible
query I rowsort label-7690
SELECT DISTINCT + - MIN ( DISTINCT - - col2 ) * - 49 + - 55 FROM tab2 AS cor0
----
1072

query II rowsort
SELECT ALL col0 AS col1, col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT DISTINCT - + ( - - COUNT( ALL + 86 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7692
SELECT DISTINCT - + ( - - COUNT ( ALL + 86 ) ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7694
SELECT 56 / CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7694
SELECT 56 / CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - 40 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7696
SELECT ALL - COUNT( * ) DIV - ( + ( + - COUNT( * ) ) ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL - COUNT ( * ) / - ( + ( + - COUNT ( * ) ) ) FROM tab2 cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7697
SELECT ( + 26 ) DIV - ( - ( - COUNT( * ) ) ) AS col2 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-7697
SELECT ( + 26 ) / - ( - ( - COUNT ( * ) ) ) AS col2 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE col0 * - col0 - 49 * - + 63 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - - 72 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) < - - col1 * + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7700
SELECT - col1 + + col2 DIV + - 1 col1 FROM tab1
----
-110
-115
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7700
SELECT - col1 + + col2 / + - 1 col1 FROM tab1
----
-110
-115
-64

query I rowsort
SELECT - col2 + col0 * + 40 AS col2 FROM tab2
----
1817
2520
2942

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7702
SELECT COUNT( * ) + MIN( ALL + CAST( + col1 AS SIGNED ) ) AS col1 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-7702
SELECT COUNT ( * ) + MIN ( ALL + CAST ( + col1 AS INTEGER ) ) AS col1 FROM tab2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7703
SELECT + CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7703
SELECT + CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - col0 ) + - - 51 AS col0 FROM tab0
----
138
148
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT - COUNT( - col1 ) + - COUNT( * ) AS col2 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-7705
SELECT - COUNT ( - col1 ) + - COUNT ( * ) AS col2 FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT DISTINCT 41 + + ( + - MAX( + 31 ) ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-7706
SELECT DISTINCT 41 + + ( + - MAX ( + 31 ) ) FROM tab0
----
10

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 / - col2 * - + 17 < - + col2 / col1 + 53
----
97
1
99

query I rowsort
SELECT DISTINCT - col0 - + 46 FROM tab1 cor0
----
-131
-137
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT DISTINCT + COUNT( ALL + - col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7709
SELECT DISTINCT + COUNT ( ALL + - col1 ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT - col0 * + - 48 - + col2 IS NOT NULL )
----

query I rowsort
SELECT col2 * - ( - col0 ) FROM tab0
----
705
870
9603

query I rowsort
SELECT ALL col1 * + - col0 * + col1 + + col0 AS col1 FROM tab0
----
-38280
-98400
0

query I rowsort
SELECT DISTINCT col1 + + 58 AS col2 FROM tab2
----
109
125
135

query II rowsort
SELECT ALL 93 AS col0, - ( 16 ) * col2 + + - col0 FROM tab0 AS cor0
----
93
-1681
93
-247
93
-767

query II rowsort
SELECT DISTINCT - col0 AS col2, 58 FROM tab1 AS cor0
----
-51
58
-85
58
-91
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7716
SELECT + CAST( NULL AS SIGNED ), + 18 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL
54

skipif mysql # not compatible
query II rowsort label-7716
SELECT + CAST ( NULL AS INTEGER ), + 18 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL
54

query I rowsort
SELECT - ( + col1 ) * + ( ( - + 51 ) ) AS col2 FROM tab1 AS cor0
----
2397
255
714

query I rowsort
SELECT ALL - - 83 * - col0 FROM tab0 AS cor0
----
-1245
-7221
-8051

query II rowsort
SELECT + + 61, + col0 AS col1 FROM tab1 AS cor0
----
61
51
61
85
61
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT DISTINCT - COUNT( + col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7720
SELECT DISTINCT - COUNT ( + col0 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT + - COUNT( * ) AS col2 FROM tab2, tab1 AS cor0 WHERE NULL = - - 1
----
0

skipif mysql # not compatible
query I rowsort label-7721
SELECT + - COUNT ( * ) AS col2 FROM tab2, tab1 AS cor0 WHERE NULL = - - 1
----
0

query II rowsort
SELECT DISTINCT - ( + 30 ) AS col1, col2 + - col2 AS col0 FROM tab0
----
-30
0

query II rowsort
SELECT ALL col2 * - col0 AS col2, - col1 FROM tab2
----
-1058
-51
-2560
-77
-4350
-67

query I rowsort
SELECT ALL 32 * + 49 * - 95 AS col2 FROM tab2
----
-148960
-148960
-148960

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7725
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - - CAST( + col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7725
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - - CAST ( + col0 AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7726
SELECT + - 56 DIV 95 * + - COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7726
SELECT + - 56 / 95 * + - COUNT ( * ) FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT - MAX( + - 61 ) FROM tab2 cor0
----
61

skipif mysql # not compatible
query I rowsort label-7727
SELECT - MAX ( + - 61 ) FROM tab2 cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT + MIN( - - 92 ) + - + COUNT( DISTINCT + + col0 ) AS col0 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-7728
SELECT + MIN ( - - 92 ) + - + COUNT ( DISTINCT + + col0 ) AS col0 FROM tab2
----
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 col2 FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT DISTINCT - ( - + 93 ) AS col0 FROM tab1 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT - - ( - COUNT( - col1 ) ) + COUNT( * ) * - - MAX( - - 81 ) AS col1 FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-7731
SELECT - - ( - COUNT ( - col1 ) ) + COUNT ( * ) * - - MAX ( - - 81 ) AS col1 FROM tab0 AS cor0
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT + - COUNT( + - 4 ) + COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7732
SELECT + - COUNT ( + - 4 ) + COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT col2 AS col2, + 48 + + + col0 + - col0 FROM tab1 cor0
----
59
48
68
48
96
48

onlyif mysql # DIV for integer division: 
query I rowsort label-7734
SELECT DISTINCT col0 DIV - 91 + + + 79 col1 FROM tab0
----
78
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7734
SELECT DISTINCT col0 / - 91 + + + 79 col1 FROM tab0
----
78
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT DISTINCT 5 + COUNT( * ) FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-7735
SELECT DISTINCT 5 + COUNT ( * ) FROM tab2
----
8

query I rowsort
SELECT ALL 37 - + + 66 FROM tab1
----
-29
-29
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-7737
SELECT - col2 DIV + col2 + - col0 FROM tab2 cor0
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-7737
SELECT - col2 / + col2 + - col0 FROM tab2 cor0
----
-47
-65
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7738
SELECT - col0 * - - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0 WHERE - col0 IN ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-7738
SELECT - col0 * - - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0 WHERE - col0 IN ( + col1 )
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NOT ( NULL ) <= NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 / - + ( col2 ) IS NOT NULL )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL = + 16
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7742
SELECT ALL CAST( - - 11 AS SIGNED ) * - col0 + 86 AS col2 FROM tab0
----
-79
-871
-981

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL CAST ( - - 11 AS INTEGER ) * - col0 + 86 AS col2 FROM tab0
----
-79
-871
-981

query I rowsort
SELECT DISTINCT - 75 FROM tab2, tab1 AS cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7744
SELECT DISTINCT + + CAST( - - 97 AS SIGNED ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7744
SELECT DISTINCT + + CAST ( - - 97 AS INTEGER ) FROM tab0 AS cor0
----
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN col0 * + + col0 AND ( + + col0 + - 98 + + 83 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - - col1 col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7747
SELECT - col2 * + 94 + - + 22 DIV + col2 AS col0 FROM tab0 AS cor0
----
-4418
-9306
-942

skipif mysql # not compatible
query I rowsort label-7747
SELECT - col2 * + 94 + - + 22 / + col2 AS col0 FROM tab0 AS cor0
----
-4418
-9306
-942

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * + 42 BETWEEN ( NULL ) AND - 73
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 78, col0 AS col1 FROM tab2
----
78
46
78
64
78
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT + MAX( + ( 86 ) ) FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-7750
SELECT + MAX ( + ( 86 ) ) FROM tab2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7751
SELECT CAST( NULL AS SIGNED ) AS col2, - 93 * + col0 + + col0 AS col1 FROM tab0
----
NULL
-1380
NULL
-8004
NULL
-8924

skipif mysql # not compatible
query II rowsort label-7751
SELECT CAST ( NULL AS INTEGER ) AS col2, - 93 * + col0 + + col0 AS col1 FROM tab0
----
NULL
-1380
NULL
-8004
NULL
-8924

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT ( col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7753
SELECT + col0 DIV + + col0 AS col2, - CAST( NULL AS SIGNED ) DIV + col1 AS col0 FROM tab0
----
1
NULL
1
NULL
1
NULL

skipif mysql # not compatible
query II rowsort label-7753
SELECT + col0 / + + col0 AS col2, - CAST ( NULL AS INTEGER ) / + col1 AS col0 FROM tab0
----
1
NULL
1
NULL
1
NULL

query I rowsort
SELECT ALL - col0 + + - col1 FROM tab0 WHERE NOT - 47 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT + COUNT( + + 67 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7755
SELECT + COUNT ( + + 67 ) col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7756
SELECT ALL - COUNT( * ) AS col2, - 80 AS col2 FROM tab2
----
-3
-80

skipif mysql # not compatible
query II rowsort label-7756
SELECT ALL - COUNT ( * ) AS col2, - 80 AS col2 FROM tab2
----
-3
-80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 - col1 + - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 - + col1 = + + 65
----
3

skipif mysql # not compatible
query I rowsort label-7758
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 - + col1 = + + 65
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + 20 * - col1 * + 20 + - + col2 + + col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT col2 * + ( - + col2 ) IS NULL
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 col2 FROM tab2 WHERE ( + 51 IS NOT NULL ) OR NULL >= NULL
----
89
89
89

query I rowsort
SELECT DISTINCT col2 + - 39 - 7 + - col0 * + col0 * - col1 * col0 * - 3 * + col1 FROM tab0 AS cor0
----
-2737966
-66430124
-871199505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7763
SELECT ALL - CAST( + MIN( ALL + 45 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL - CAST ( + MIN ( ALL + 45 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-45

query II rowsort
SELECT col2 - col1 AS col1, - col2 * + col2 - - - 93 + - - col2 FROM tab0 AS cor0
----
-11
-183
-34
-2255
98
-9795

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7765
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) AS col2, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-7765
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) AS col2, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT ALL 50 * + col0 AS col2 FROM tab0 AS cor0
----
4350
4850
750

query I rowsort
SELECT ALL col0 + + - 76 * col1 FROM tab2
----
-3830
-5017
-5788

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7768
SELECT ALL - COUNT( * ) + - - CAST( 26 AS SIGNED ) + - 2 AS col2 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL - COUNT ( * ) + - - CAST ( 26 AS INTEGER ) + - 2 AS col2 FROM tab2
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7769
SELECT DISTINCT + COUNT( * ) DIV - SUM( + + col0 ) - - + 25 + 50 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-7769
SELECT DISTINCT + COUNT ( * ) / - SUM ( + + col0 ) - - + 25 + 50 FROM tab1
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-7770
SELECT - - COUNT( * ), - 33 AS col1 FROM tab2 cor0
----
3
-33

skipif mysql # not compatible
query II rowsort label-7770
SELECT - - COUNT ( * ), - 33 AS col1 FROM tab2 cor0
----
3
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7771
SELECT - + ( col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7771
SELECT - + ( col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7772
SELECT DISTINCT - 50 + - + SUM( ( + ( CAST( NULL AS DECIMAL ) ) ) ), COUNT( * ) col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7772
SELECT DISTINCT - 50 + - + SUM ( ( + ( CAST ( NULL AS REAL ) ) ) ), COUNT ( * ) col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL
9

query II rowsort
SELECT DISTINCT - col0 * col1, col0 * + + col2 AS col2 FROM tab1 AS cor0
----
-425
5015
-4277
6188
-714
4896

query I rowsort
SELECT 23 * + 97 AS col1 FROM tab0 AS cor0
----
2231
2231
2231

query I rowsort
SELECT DISTINCT - 7 * - 27 AS col0 FROM tab0 AS cor0
----
189

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7776
SELECT DISTINCT CAST( NULL AS SIGNED ), + 79 AS col2 FROM tab0 AS cor0 WHERE ( NOT ( NOT NULL = col2 + + col2 ) )
----

skipif mysql # not compatible
query II rowsort label-7776
SELECT DISTINCT CAST ( NULL AS INTEGER ), + 79 AS col2 FROM tab0 AS cor0 WHERE ( NOT ( NOT NULL = col2 + + col2 ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7777
SELECT DISTINCT col2 DIV - - col1, col0 * + - col2 * col1 AS col1 FROM tab2 AS cor0
----
0
-197120
0
-291450
0
-53958

skipif mysql # not compatible
query II rowsort label-7777
SELECT DISTINCT col2 / - - col1, col0 * + - col2 * col1 AS col1 FROM tab2 AS cor0
----
0
-197120
0
-291450
0
-53958

query I rowsort
SELECT + col1 * - 26 FROM tab1 AS cor0
----
-1222
-130
-364

query I rowsort
SELECT ALL ( - - 50 ) AS col2 FROM tab1 AS cor0
----
50
50
50

query II rowsort
SELECT ALL col2, + 65 FROM tab2
----
23
65
40
65
58
65

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 66 + - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT - 40 * - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7783
SELECT ALL ( + col1 ) + 91 DIV - col0 FROM tab0
----
1
20
75

skipif mysql # not compatible
query I rowsort label-7783
SELECT ALL ( + col1 ) + 91 / - col0 FROM tab0
----
1
20
75

query III rowsort
SELECT * FROM tab1 WHERE NOT 47 * + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * col0 + - col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT ALL SUM( - col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-7786
SELECT ALL SUM ( - col0 ) AS col0 FROM tab2
----
-185

query I rowsort
SELECT col1 * - 48 * 64 FROM tab2
----
-156672
-205824
-236544

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT 16 < + col2 * + ( + col0 ) * col2
----

query I rowsort
SELECT + 68 * - col2 AS col0 FROM tab2 AS cor0
----
-1564
-2720
-3944

query I rowsort
SELECT DISTINCT - + 76 AS col1 FROM tab2 AS cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT - COUNT( * ) + COUNT( * ) FROM tab2, tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7791
SELECT - COUNT ( * ) + COUNT ( * ) FROM tab2, tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7792
SELECT + CAST( NULL AS SIGNED ) + col2 / + 13 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7792
SELECT + CAST ( NULL AS INTEGER ) + col2 / + 13 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 53 - + col0 AS col1 FROM tab1 AS cor0
----
-104
-138
-144

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 23 ) NOT BETWEEN + col1 * - col2 AND ( + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0 AS col2, col1 + - - 72 FROM tab2 AS cor0
----
46
123
64
149
75
139

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7796
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----
0

query I rowsort
SELECT 83 * - + 81 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-6723
-6723
-6723

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 17 col2 FROM tab0 AS cor0
----
-1479
-1649
-255

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7799
SELECT * FROM tab0 WHERE ( + CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7799
SELECT * FROM tab0 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7800
SELECT DISTINCT 58 - + + COUNT( * ), + COUNT( - + 42 ) AS col0 FROM tab0
----
55
3

skipif mysql # not compatible
query II rowsort label-7800
SELECT DISTINCT 58 - + + COUNT ( * ), + COUNT ( - + 42 ) AS col0 FROM tab0
----
55
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7801
SELECT col2 DIV + - col1 - - - 68 AS col0 FROM tab0
----
-167
-68
-68

skipif mysql # not compatible
query I rowsort label-7801
SELECT col2 / + - col1 - - - 68 AS col0 FROM tab0
----
-167
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT DISTINCT COUNT( * ) * 46 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
414

skipif mysql # not compatible
query I rowsort label-7802
SELECT DISTINCT COUNT ( * ) * 46 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
414

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + - 15 col0 FROM tab0
----
-1305
-1455
-225

query I rowsort
SELECT - col1 * - + col0 + - col2 FROM tab1 AS cor0
----
366
4209
618

query I rowsort
SELECT + 89 * - 3 FROM tab2 AS cor0
----
-267
-267
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT + MIN( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7806
SELECT + MIN ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - 10 * - + 70 AS col2 FROM tab1 AS cor0
----
700
700
700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7808
SELECT ALL + + ( - col0 ) / - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL + + ( - col0 ) / - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( col2 + + + 76, 16 * col1 + - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7810
SELECT DISTINCT - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) / - + col2 col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7810
SELECT DISTINCT - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) / - + col2 col0 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7811
SELECT + + CAST( - - AVG ( + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-7811
SELECT + + CAST ( - - AVG ( + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
22

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 16 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT ( + col1 ) * 54 AS col2 FROM tab0
----
1134
4374
54

query I rowsort
SELECT ALL col2 + + + col2 AS col2 FROM tab0
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7815
SELECT DISTINCT + CAST( - 67 AS SIGNED ) * + col2 * + + col0 AS col0, col0 AS col2 FROM tab0
----
-47235
15
-58290
87
-643401
97

skipif mysql # not compatible
query II rowsort label-7815
SELECT DISTINCT + CAST ( - 67 AS INTEGER ) * + col2 * + + col0 AS col0, col0 AS col2 FROM tab0
----
-47235
15
-58290
87
-643401
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7816
SELECT 92 DIV + 55 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7816
SELECT 92 / + 55 AS col0 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7817
SELECT ALL + col1 * + CAST( + col2 AS SIGNED ) FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL + col1 * + CAST ( + col2 AS INTEGER ) FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT COUNT( * ) + + 6 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7818
SELECT COUNT ( * ) + + 6 FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * - col0 * col1 <= NULL
----

query I rowsort
SELECT ( - + col0 ) + - + 34 * - col2 FROM tab1 AS cor0
----
1921
2221
3213

query I rowsort
SELECT - + col2 * + - 80 * - 28 * + - col1 FROM tab0 AS cor0
----
221760
470400
8527680

query II rowsort
SELECT 0 * + ( + 11 ) AS col1, 10 - - 30 FROM tab1
----
0
40
0
40
0
40

query II rowsort
SELECT + col2, - col1 AS col1 FROM tab0
----
10
-21
47
-81
99
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - - 94 ) + + col1 + col0 * + 47 >= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7825
SELECT DISTINCT + + col0 / - ( + - col0 ) * - + CAST( NULL AS SIGNED ) - col0, - col1 + 1 AS col0 FROM tab2 AS cor0
----
NULL
-50
NULL
-66
NULL
-76

skipif mysql # not compatible
query II rowsort label-7825
SELECT DISTINCT + + col0 / - ( + - col0 ) * - + CAST ( NULL AS INTEGER ) - col0, - col1 + 1 AS col0 FROM tab2 AS cor0
----
NULL
-50
NULL
-66
NULL
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT DISTINCT - COUNT( + - col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7826
SELECT DISTINCT - COUNT ( + - col2 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT - COUNT( * ) col1 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7827
SELECT - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT ALL - MAX( - 23 ) AS col0 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7828
SELECT ALL - MAX ( - 23 ) AS col0 FROM tab0 AS cor0
----
23

query I rowsort
SELECT - - col0 + - col0 * - col2 AS col2 FROM tab1 AS cor0
----
4947
5100
6279

query I rowsort
SELECT ALL col1 * - + 14 + - 50 AS col0 FROM tab0
----
-1184
-344
-64

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 ) NOT BETWEEN - col1 AND 52
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT ALL + 54 * + - MAX( ( - 40 ) ) FROM tab0
----
2160

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL + 54 * + - MAX ( ( - 40 ) ) FROM tab0
----
2160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7833
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 85 AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT + col1 * - 57 AS col0 FROM tab1 cor0
----
-2679
-285
-798

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT + COUNT( * ) * - 95 FROM tab2 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-7837
SELECT + COUNT ( * ) * - 95 FROM tab2 AS cor0
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT ALL COUNT( ALL 18 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL COUNT ( ALL 18 ) FROM tab0 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 < + 21
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT - 83 AS col2 FROM tab2 WHERE NOT + col2 IS NULL
----
-83

query I rowsort
SELECT + col0 * + 26 AS col2 FROM tab0 AS cor0
----
2262
2522
390

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7842
SELECT ALL * FROM tab0 AS cor0 WHERE 42 * - CAST( NULL AS SIGNED ) + col2 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7842
SELECT ALL * FROM tab0 AS cor0 WHERE 42 * - CAST ( NULL AS INTEGER ) + col2 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7843
SELECT CAST( NULL AS DECIMAL ) + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7843
SELECT CAST ( NULL AS REAL ) + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - - col1 >= + - 39
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * - 90 FROM tab1
----
-4590
-7650
-8190

query I rowsort
SELECT DISTINCT 85 * + + col0 + - - col2 AS col2 FROM tab1
----
4431
7284
7803

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7847
SELECT DISTINCT + COUNT( * ) / + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7847
SELECT DISTINCT + COUNT ( * ) / + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - ( - col0 ) * + col0 * + col1 FROM tab0
----
158949
18225
9409

query I rowsort
SELECT ALL - + 82 - - - 25 + col0 * 82 / + 3 FROM tab0 WHERE NULL <> + ( - - 16 ) + - 87
----

query I rowsort
SELECT ALL - ( - - 50 ) AS col1 FROM tab2
----
-50
-50
-50

query II rowsort
SELECT + - 85 AS col1, col0 FROM tab1 AS cor0
----
-85
51
-85
85
-85
91

query I rowsort
SELECT + - col2 * - 69 FROM tab0 AS cor0
----
3243
6831
690

query III rowsort
SELECT * FROM tab0 WHERE - ( + + ( + 99 ) ) * + + 90 + + ( + + col2 ) + - col1 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 - col2 col0 FROM tab0
----
-15
-67
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7855
SELECT - MAX( ALL + 31 ) + + - COUNT( * ) DIV + 77 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-7855
SELECT - MAX ( ALL + 31 ) + + - COUNT ( * ) / + 77 FROM tab2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT ALL - MAX( DISTINCT - col0 ) - - 75 AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-7856
SELECT ALL - MAX ( DISTINCT - col0 ) - - 75 AS col2 FROM tab2 AS cor0
----
121

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 95 + + col1 + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7858
SELECT ALL 73 * + 73 - - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7858
SELECT ALL 73 * + 73 - - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7859
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7859
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----

query II rowsort
SELECT ALL + col1 AS col2, col2 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7861
SELECT * FROM tab0 WHERE NOT NULL <= - col1 * - col0 + + + 70 - + 85 + col1 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7861
SELECT * FROM tab0 WHERE NOT NULL <= - col1 * - col0 + + + 70 - + 85 + col1 * + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 63 * + + col2 FROM tab1
----
3717
4284
6048

query I rowsort
SELECT ALL + 82 AS col2 FROM tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7864
SELECT DISTINCT 61, COUNT( * ) col1 FROM tab0
----
61
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7864
SELECT DISTINCT 61, COUNT ( * ) col1 FROM tab0
----
61
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7865
SELECT ALL - ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 11 * - 60 AS col2 FROM tab2
----
-660
-660
-660

query II rowsort
SELECT DISTINCT col0, - 30 FROM tab0 cor0
----
15
-30
87
-30
97
-30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 92 > - col1 + + - 2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 99 FROM tab1 cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 77 col0 FROM tab2 WHERE NOT - - col2 BETWEEN NULL AND col0
----

query I rowsort
SELECT col2 * - ( 83 ) FROM tab1
----
-4897
-5644
-7968

query II rowsort
SELECT DISTINCT + col1, + col2 FROM tab2 cor0
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7873
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( + + col0 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7873
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( + + col0 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - - col0 ) AS col0 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * - 56 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7876
SELECT ALL MIN( + CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - 11 + col1 + - col0 + - 66 FROM tab2 AS cor0
----
-64
-72
-85

query II rowsort
SELECT DISTINCT col1 AS col1, - col0 AS col1 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT ALL + SUM( - + 73 ) + 24 FROM tab1 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL + SUM ( - + 73 ) + 24 FROM tab1 AS cor0
----
-195

query II rowsort
SELECT ALL - col0, - col0 AS col1 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

query I rowsort
SELECT 44 + + - col2 + + col2 FROM tab1
----
44
44
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7882
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col0 + + col1 + col1 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7882
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col0 + + col1 + col1 AS col2 FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT + col2 AS col0, - 39 FROM tab2 WHERE + 67 + + 88 >= + ( + col0 )
----
23
-39
40
-39
58
-39

query I rowsort
SELECT ALL - ( - - col2 ) + - col2 + - 34 AS col2 FROM tab2
----
-114
-150
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT - 69 + - - COUNT( * ) * + COUNT( * ) AS col1 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-7885
SELECT - 69 + - - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT 92 + + - MAX( DISTINCT + 21 ) AS col0 FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-7886
SELECT 92 + + - MAX ( DISTINCT + 21 ) AS col0 FROM tab2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7887
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7887
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 <> NULL
----

query I rowsort
SELECT + 52 + 81 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8f0ca4cf97de794a4b9271d695e9d991

query I rowsort
SELECT DISTINCT - 88 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-88

query II rowsort
SELECT ALL - + col1 + 8 + - - 63, col0 FROM tab2 cor0
----
-6
64
20
46
4
75

query I rowsort
SELECT ALL + + col0 + + col0 AS col0 FROM tab1 cor0
----
102
170
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7893
SELECT ALL - AVG ( DISTINCT + col1 ) - - 15 / + COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7893
SELECT ALL - AVG ( DISTINCT + col1 ) - - 15 / + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + + col0 * 70 + + col2, col1 FROM tab1 AS cor0
----
3666
14
6009
5
6438
47

query I rowsort
SELECT - - 31 AS col2 FROM tab2 cor0
----
31
31
31

query I rowsort
SELECT DISTINCT - 7 * - col1 FROM tab2 AS cor0
----
357
469
539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7897
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= + CAST( + + col1 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7897
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= + CAST ( + + col1 AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT - 68 * + col2 FROM tab1 AS cor0
----
-4012
-4624
-6528

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 <= col0 * + col2 * - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT + 17 * - COUNT( * ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7900
SELECT + 17 * - COUNT ( * ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT - 98 * 20 FROM tab1 AS cor0
----
-1960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - col1 col1, 16 AS col0 FROM tab0 WHERE NOT + + col0 > - 26 * - + col1
----
-1215
16
-1827
16

query I rowsort
SELECT + 9 * - + col2 FROM tab2
----
-207
-360
-522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 * + 82 * + 53 col0 FROM tab2
----
360718
360718
360718

query I rowsort
SELECT - col1 * - - 27 AS col1 FROM tab0
----
-2187
-27
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT ALL - - COUNT( * ) / + ( - 22 ) + + 11 + SUM( col1 ) AS col2 FROM tab0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL - - COUNT ( * ) / + ( - 22 ) + + 11 + SUM ( col1 ) AS col2 FROM tab0 WHERE NOT NULL = NULL
----
NULL

query I rowsort
SELECT DISTINCT - - 0 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT DISTINCT - - MAX( + 36 ) FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-7908
SELECT DISTINCT - - MAX ( + 36 ) FROM tab1 AS cor0
----
36

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - + col0 + 72 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 * + + col1 + + ( + col0 ) FROM tab2 WHERE NOT - 86 IS NULL
----
-2555
-4414
-5865

query I rowsort
SELECT ALL - 18 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT DISTINCT + MIN( 32 ) + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
41

skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT + MIN ( 32 ) + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7913
SELECT + 96 * + CAST( NULL AS SIGNED ) + - - 59 / col1 + + 5 * - col0 col1 FROM tab0 WHERE + - ( + col2 ) + + col2 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7913
SELECT + 96 * + CAST ( NULL AS INTEGER ) + - - 59 / col1 + + 5 * - col0 col1 FROM tab0 WHERE + - ( + col2 ) + + col2 IS NULL
----

query I rowsort
SELECT - 65 * col2 + - 9 + - col2 * + + 15 AS col0 FROM tab1 AS cor0
----
-4729
-5449
-7689

query I rowsort
SELECT + ( + col1 ) + - + 61 + + 52 FROM tab2 AS cor0
----
42
58
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT DISTINCT + 36 * + 5 + - + ( - COUNT( * ) ) FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-7916
SELECT DISTINCT + 36 * + 5 + - + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
183

query II rowsort
SELECT DISTINCT - col2, col1 AS col2 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query I rowsort
SELECT - 8 + ( - col0 ) AS col0 FROM tab2 AS cor0
----
-54
-72
-83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7919
SELECT DISTINCT 87 * - COUNT( col0 ) + + - MIN( + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7919
SELECT DISTINCT 87 * - COUNT ( col0 ) + + - MIN ( + CAST ( NULL AS REAL ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7920
SELECT DISTINCT col0 + 21 + - col0 * col0 DIV 43 AS col2 FROM tab1
----
-62
-80
12

skipif mysql # not compatible
query I rowsort label-7920
SELECT DISTINCT col0 + 21 + - col0 * col0 / 43 AS col2 FROM tab1
----
-62
-80
12

query II rowsort
SELECT ALL - 40, col2 + - col2 AS col2 FROM tab0 WHERE NULL NOT IN ( + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT ALL - 36 * COUNT( * ) + + 68 AS col1 FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-7922
SELECT ALL - 36 * COUNT ( * ) + + 68 AS col1 FROM tab0
----
-40

query I rowsort
SELECT DISTINCT col0 - + + 67 AS col0 FROM tab1 AS cor0
----
-16
18
24

query I rowsort
SELECT DISTINCT col2 * + ( col2 ) AS col1 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7925
SELECT + COUNT( * ) - 7 * - + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7925
SELECT + COUNT ( * ) - 7 * - + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT COUNT( * ) * + 89 * - ( + 66 ) - 96 * - + COUNT( ALL 29 ) + - COUNT( * ) FROM tab2 AS cor0
----
-17337

skipif mysql # not compatible
query I rowsort label-7926
SELECT COUNT ( * ) * + 89 * - ( + 66 ) - 96 * - + COUNT ( ALL 29 ) + - COUNT ( * ) FROM tab2 AS cor0
----
-17337

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT - + 34 + - COUNT( * ) FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-7927
SELECT - + 34 + - COUNT ( * ) FROM tab2 AS cor0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7928
SELECT - - CAST( NULL AS SIGNED ) * + col2 + - + col2 * 60 / + + col1 + - col0 + + col2 AS col0 FROM tab0 AS cor0 WHERE + col0 NOT IN ( - - col2 + - col0, col1 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7928
SELECT - - CAST ( NULL AS INTEGER ) * + col2 + - + col2 * 60 / + + col1 + - col0 + + col2 AS col0 FROM tab0 AS cor0 WHERE + col0 NOT IN ( - - col2 + - col0, col1 )
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 62 - - col0 FROM tab2 AS cor0
----
108
126
137

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT DISTINCT - + ( SUM( ALL + col1 ) ) * - SUM( - - ( - col1 ) ) AS col0 FROM tab1 AS cor0
----
-4356

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT - + ( SUM ( ALL + col1 ) ) * - SUM ( - - ( - col1 ) ) AS col0 FROM tab1 AS cor0
----
-4356

query I rowsort
SELECT ( + - col1 ) AS col2 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT - + COUNT( * ) * + SUM( DISTINCT + 13 ) AS col1 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-7932
SELECT - + COUNT ( * ) * + SUM ( DISTINCT + 13 ) AS col1 FROM tab2 AS cor0
----
-39

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col1 * + 82 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1 AS col1, ( col1 ) AS col0 FROM tab1
----
14
14
47
47
5
5

query II rowsort
SELECT - 22 AS col1, 11 FROM tab2
----
-22
11
-22
11
-22
11

query I rowsort
SELECT + 27 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7937
SELECT - 24 * + CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7937
SELECT - 24 * + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT DISTINCT + COUNT( DISTINCT - ( - 9 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT + COUNT ( DISTINCT - ( - 9 ) ) FROM tab0
----
1

query I rowsort
SELECT + col1 * - 42 AS col2 FROM tab2
----
-2142
-2814
-3234

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col2 * 68 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT MAX( DISTINCT 33 ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-7941
SELECT MAX ( DISTINCT 33 ) FROM tab1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT - ( + + ( - + 33 ) ) * COUNT( * ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-7942
SELECT - ( + + ( - + 33 ) ) * COUNT ( * ) FROM tab2
----
99

query II rowsort
SELECT DISTINCT + 73 AS col1, col0 FROM tab0 AS cor0
----
73
15
73
87
73
97

query II rowsort
SELECT - col2, + 68 * + - col2 AS col1 FROM tab0 AS cor0
----
-10
-680
-47
-3196
-99
-6732

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= 10 * + 83 * - 82 * + 94 + + + 25 * - - col1 + + 2 + - col2 * - 18 + - 40
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + + 45 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT + ( - SUM( DISTINCT - col0 ) ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-7947
SELECT + ( - SUM ( DISTINCT - col0 ) ) AS col1 FROM tab2
----
185

query I rowsort
SELECT col0 * - 32 AS col0 FROM tab0
----
-2784
-3104
-480

query I rowsort
SELECT - 90 - 94 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9774036ad473adf81ced40cdeb46022c

query I rowsort
SELECT DISTINCT + ( 0 ) + + - 41 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-41

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT ( ( NOT NULL IS NOT NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7952
SELECT DISTINCT + col0 DIV - col0 col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7952
SELECT DISTINCT + col0 / - col0 col1 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT ( - - col1 ) * 32 AS col1 FROM tab1 cor0
----
1504
160
448

query I rowsort
SELECT ALL - + col0 * 29 FROM tab1 cor0
----
-1479
-2465
-2639

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7955
SELECT COUNT( * ) + COUNT( DISTINCT CAST( col1 AS SIGNED ) ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7955
SELECT COUNT ( * ) + COUNT ( DISTINCT CAST ( col1 AS INTEGER ) ) AS col1 FROM tab2
----
6

query I rowsort
SELECT 79 * + + col0 + + + col0 + col1 FROM tab1
----
4094
6805
7327

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( + 68 ) * + col2 * + col2 - + - col0 * ( + + col1 ) + + 53 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7958
SELECT + AVG ( DISTINCT - - CAST( NULL AS DECIMAL ) ) + - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7958
SELECT + AVG ( DISTINCT - - CAST ( NULL AS REAL ) ) + - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 - 16 AS col0 FROM tab0
----
-15
5
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT ALL + 5 + - SUM( + col0 ) + - COUNT( DISTINCT + - 28 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL + 5 + - SUM ( + col0 ) + - COUNT ( DISTINCT + - 28 ) FROM tab1
----
-223

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT + + col1 IS NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - ( - col1 ) * - - col2 + + - 21 FROM tab0
----
189
3786
78

query I rowsort
SELECT DISTINCT - - 51 AS col2 FROM tab0 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7964
SELECT DISTINCT - CAST( 66 AS SIGNED ), + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-7964
SELECT DISTINCT - CAST ( 66 AS INTEGER ), + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT DISTINCT + SUM( ALL 22 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT + SUM ( ALL 22 ) AS col1 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT ( - - SUM( col0 ) ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-7966
SELECT ( - - SUM ( col0 ) ) FROM tab1 cor0
----
227

onlyif mysql # aggregate syntax: 
query II rowsort label-7967
SELECT ALL - 89 AS col2, - COUNT( col2 ) FROM tab0 AS cor0
----
-89
-3

skipif mysql # not compatible
query II rowsort label-7967
SELECT ALL - 89 AS col2, - COUNT ( col2 ) FROM tab0 AS cor0
----
-89
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7968
SELECT ALL col0 * + + CAST( NULL AS SIGNED ) 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-7968
SELECT ALL col0 * + + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT DISTINCT - ( - COUNT( * ) ) * + COUNT( * ) + + 86 FROM tab2 cor0
----
95

skipif mysql # not compatible
query I rowsort label-7969
SELECT DISTINCT - ( - COUNT ( * ) ) * + COUNT ( * ) + + 86 FROM tab2 cor0
----
95

query II rowsort
SELECT DISTINCT + + ( - - 44 ), - col2 AS col1 FROM tab1 AS cor0
----
44
-59
44
-68
44
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7971
SELECT DISTINCT CAST( + col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7971
SELECT DISTINCT CAST ( + col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT + ( - + col2 ) * + col2 AS col1, col1 AS col1 FROM tab1
----
-3481
5
-4624
47
-9216
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT ALL ( - + SUM( ALL col1 ) ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-7973
SELECT ALL ( - + SUM ( ALL col1 ) ) AS col2 FROM tab1
----
-66

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT DISTINCT MIN( - + col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-7975
SELECT DISTINCT MIN ( - + col0 ) FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT SUM( ALL + 78 ) AS col0 FROM tab2 WHERE NOT col2 + - col2 + + 52 * - + col2 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7976
SELECT SUM ( ALL + 78 ) AS col0 FROM tab2 WHERE NOT col2 + - col2 + + 52 * - + col2 <= NULL
----
NULL

query I rowsort
SELECT ALL col1 * - + 48 FROM tab0 AS cor0
----
-1008
-3888
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7978
SELECT - ( - col1 ) + + col0 AS col2, CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-7978
SELECT - ( - col1 ) + + col0 AS col2, CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + + col0 * col2 AS col2 FROM tab0 cor0
----
705
870
9603

query I rowsort
SELECT - - 28 AS col1 FROM tab2 AS cor0
----
28
28
28

query I rowsort
SELECT DISTINCT col1 + 12 AS col0 FROM tab1 AS cor0
----
17
26
59

query III rowsort
SELECT ALL * FROM tab1 WHERE + 75 <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL <= col2 + col0 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT DISTINCT + MAX( col1 ) * - COUNT( DISTINCT - + 19 ) + - + SUM( 35 ) - + ( + - COUNT( + 52 ) ) AS col2 FROM tab2
----
-179

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT + MAX ( col1 ) * - COUNT ( DISTINCT - + 19 ) + - + SUM ( 35 ) - + ( + - COUNT ( + 52 ) ) AS col2 FROM tab2
----
-179

query I rowsort
SELECT + 93 + + 42 + - col1 * + + col2 * - - col1 AS col2 FROM tab0
----
-308232
-4275
36

query I rowsort
SELECT + col1 + - 33 * - + col1 FROM tab0
----
2754
34
714

query II rowsort
SELECT ALL 83, 77 + + col1 AS col2 FROM tab2 AS cor0
----
83
128
83
144
83
154

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT - col1 * + - 28 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT DISTINCT + MAX( ALL 1 ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7989
SELECT DISTINCT + MAX ( ALL 1 ) AS col2 FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT 50 + COUNT( * ) AS col1 FROM tab1 cor0
----
53

skipif mysql # not compatible
query I rowsort label-7991
SELECT 50 + COUNT ( * ) AS col1 FROM tab1 cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT ALL + MAX( col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL + MAX ( col2 ) AS col2 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7993
SELECT ALL - SUM( + col0 ) DIV + COUNT( + - col1 ) AS col0 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7993
SELECT ALL - SUM ( + col0 ) / + COUNT ( + - col1 ) AS col0 FROM tab0 AS cor0
----
-66

query I rowsort
SELECT ALL + col1 * + 86 + col1 AS col1 FROM tab1
----
1218
4089
435

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT DISTINCT + ( - + ( ( + COUNT( * ) ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7995
SELECT DISTINCT + ( - + ( ( + COUNT ( * ) ) ) ) FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 + 14 * 36 * col1 * + col2 col0 FROM tab2
----
1552448
1958694
591284

query I rowsort
SELECT DISTINCT 59 + + ( - 2 ) FROM tab1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7998
SELECT ALL - MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7999
SELECT + - CAST( NULL AS SIGNED ) * + ( - + ( - + COUNT( * ) ) ), + 74 - 49 col2 FROM tab0 AS cor0
----
NULL
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7999
SELECT + - CAST ( NULL AS INTEGER ) * + ( - + ( - + COUNT ( * ) ) ), + 74 - 49 col2 FROM tab0 AS cor0
----
NULL
25

query II rowsort
SELECT ALL col1 * + col2 * col2 AS col1, + 8 AS col1 FROM tab2
----
123200
8
225388
8
26979
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8001
SELECT - + 90 DIV - 18 AS col2 FROM tab0 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-8001
SELECT - + 90 / - 18 AS col2 FROM tab0 AS cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT ALL + ( + COUNT( ALL + + 63 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL + ( + COUNT ( ALL + + 63 ) ) AS col0 FROM tab1 AS cor0
----
3

query II rowsort
SELECT + 73, col2 FROM tab0 AS cor0
----
73
10
73
47
73
99

query I rowsort
SELECT DISTINCT + - 36 AS col2 FROM tab1 AS cor0 WHERE ( col1 ) = + col1
----
-36

query II rowsort
SELECT col0 AS col1, + 84 AS col0 FROM tab2
----
46
84
64
84
75
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT 75 * + SUM( DISTINCT 2 ) AS col0 FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-8006
SELECT 75 * + SUM ( DISTINCT 2 ) AS col0 FROM tab1
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-8007
SELECT DISTINCT - col0 + + 25 * + col1 + col0 DIV + col0 FROM tab2
----
1230
1601
1862

skipif mysql # not compatible
query I rowsort label-8007
SELECT DISTINCT - col0 + + 25 * + col1 + col0 / + col0 FROM tab2
----
1230
1601
1862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8008
SELECT col1 * - 28 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8008
SELECT col1 * - 28 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8009
SELECT ALL - col2 col0 FROM tab1 WHERE + + col1 < + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8009
SELECT ALL - col2 col0 FROM tab1 WHERE + + col1 < + + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, - col2 FROM tab2
----
46
-23
64
-40
75
-58

query II rowsort
SELECT DISTINCT - - 19, 18 AS col2 FROM tab1 AS cor0
----
19
18

query I rowsort
SELECT ALL + 48 + col0 + - ( col2 ) FROM tab1 cor0
----
3
71
74

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8014
SELECT + 94 DIV + + col2 - col1 AS col0 FROM tab0 AS cor0
----
-1
-12
-79

skipif mysql # not compatible
query I rowsort label-8014
SELECT + 94 / + + col2 - col1 AS col0 FROM tab0 AS cor0
----
-1
-12
-79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 IS NULL AND + 52 <= NULL
----

query I rowsort
SELECT DISTINCT + + col0 * + 29 + - 90 + col0 AS col2 FROM tab1 AS cor0
----
1440
2460
2640

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT ALL + 5 * + ( COUNT( * ) ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL + 5 * + ( COUNT ( * ) ) AS col2 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-8018
SELECT DISTINCT + ( MAX( DISTINCT + col1 ) ) AS col0, + 37 FROM tab2
----
77
37

skipif mysql # not compatible
query II rowsort label-8018
SELECT DISTINCT + ( MAX ( DISTINCT + col1 ) ) AS col0, + 37 FROM tab2
----
77
37

query I rowsort
SELECT col1 + + col2 + - + ( - col0 ) * + + col1 FROM tab1 WHERE NOT + col1 IS NULL
----
4392
489
824

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT DISTINCT - 61 + - COUNT( ( col0 ) + 88 ) AS col0 FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-8020
SELECT DISTINCT - 61 + - COUNT ( ( col0 ) + 88 ) AS col0 FROM tab1
----
-64

query I rowsort
SELECT ALL - col2 * col1 AS col1 FROM tab2 WHERE NOT ( - col0 * + col1 ) IS NULL
----
-1173
-3080
-3886

query I rowsort
SELECT 30 - + 92 AS col1 FROM tab1 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT ALL + MIN( 73 ) AS col1 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL + MIN ( 73 ) AS col1 FROM tab1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT MIN( DISTINCT ( col2 ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8024
SELECT MIN ( DISTINCT ( col2 ) ) FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT ALL - SUM( DISTINCT - col2 ) col1 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8025
SELECT ALL - SUM ( DISTINCT - col2 ) col1 FROM tab1
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 col1 FROM tab1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT + col2 * + 80 FROM tab2
----
1840
3200
4640

query I rowsort
SELECT DISTINCT + col0 * ( col2 ) AS col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT DISTINCT - col2 + 63 FROM tab0 WHERE - 83 IS NOT NULL
----
-36
16
53

query I rowsort
SELECT 65 * col2 + + 85 FROM tab1
----
3920
4505
6325

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8031
SELECT DISTINCT * FROM tab0 WHERE ( CAST( NULL AS DECIMAL ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8031
SELECT DISTINCT * FROM tab0 WHERE ( CAST ( NULL AS REAL ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8032
SELECT 96 * col0 + + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8032
SELECT 96 * col0 + + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) BETWEEN ( 83 ) AND ( 24 - - col0 )
----

query I rowsort
SELECT DISTINCT col0 * + 10 AS col2 FROM tab2
----
460
640
750

query I rowsort
SELECT ALL ( + ( 3 ) ) + 82 FROM tab1
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT - SUM( DISTINCT + 52 ) AS col1 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-8036
SELECT - SUM ( DISTINCT + 52 ) AS col1 FROM tab0
----
-52

query I rowsort
SELECT DISTINCT - ( - col0 ) * + col2 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT MAX( - 3 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8038
SELECT MAX ( - 3 ) FROM tab0
----
-3

query I rowsort
SELECT col2 * + 4 AS col0 FROM tab1 AS cor0
----
236
272
384

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT MIN( ALL - col0 ) FROM tab2 AS cor0 WHERE ( col1 ) IS NOT NULL
----
-75

skipif mysql # not compatible
query I rowsort label-8040
SELECT MIN ( ALL - col0 ) FROM tab2 AS cor0 WHERE ( col1 ) IS NOT NULL
----
-75

query I rowsort
SELECT ( + 40 ) * + 63 AS col0 FROM tab1 AS cor0
----
2520
2520
2520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8042
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8042
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT COUNT( * ) * + MAX( col2 ) FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-8043
SELECT COUNT ( * ) * + MAX ( col2 ) FROM tab0 AS cor0
----
297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 + 95 col2 FROM tab1 AS cor0
----
190
190
190

query I rowsort
SELECT - 61 + - 81 AS col2 FROM tab2
----
-142
-142
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT DISTINCT - COUNT( * ) * - SUM( ALL + col2 ) FROM tab2 WHERE ( col2 ) BETWEEN ( 8 ) AND 11
----
NULL

skipif mysql # not compatible
query I rowsort label-8046
SELECT DISTINCT - COUNT ( * ) * - SUM ( ALL + col2 ) FROM tab2 WHERE ( col2 ) BETWEEN ( 8 ) AND 11
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col2 + 2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 + + 68 FROM tab1 AS cor0 WHERE NULL >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT ALL - + COUNT( * ) - ( ( 26 ) ) AS col1 FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL - + COUNT ( * ) - ( ( 26 ) ) AS col1 FROM tab1 AS cor0
----
-29

query I rowsort
SELECT DISTINCT - 0 * 50 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT ( col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL < ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8052
SELECT + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8052
SELECT + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col0 * 92 FROM tab2 AS cor0
----
-4232
-5888
-6900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8054
SELECT DISTINCT - CAST( - 92 AS SIGNED ) + - COUNT( * ) FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT - CAST ( - 92 AS INTEGER ) + - COUNT ( * ) FROM tab1 AS cor0
----
89

query I rowsort
SELECT ALL - 41 * col1 FROM tab1 cor0
----
-1927
-205
-574

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8056
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT col1 * CAST( NULL AS SIGNED ) + 87 IS NOT NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8056
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT col1 * CAST ( NULL AS INTEGER ) + 87 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT COUNT( DISTINCT + col0 ) - - MAX( - col1 ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-8057
SELECT COUNT ( DISTINCT + col0 ) - - MAX ( - col1 ) FROM tab1
----
-2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 - - col1 * - col2 NOT BETWEEN + col1 AND - 31
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT - COUNT( * ) * + MIN( + 92 ) FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-8060
SELECT - COUNT ( * ) * + MIN ( + 92 ) FROM tab1
----
-276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8061
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 WHERE ( + col2 ) >= + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-8061
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE ( + col2 ) >= + 32
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8062
SELECT DISTINCT CAST( + + AVG ( ( 52 ) ) AS SIGNED ) FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-8062
SELECT DISTINCT CAST ( + + AVG ( ( 52 ) ) AS INTEGER ) FROM tab0
----
52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8063
SELECT CAST( + + col0 AS SIGNED ) DIV 85 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8063
SELECT CAST ( + + col0 AS INTEGER ) / 85 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT - MAX( ALL + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8064
SELECT - MAX ( ALL + col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8065
SELECT - MIN( ALL - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8065
SELECT - MIN ( ALL - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col0 - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT + ( + COUNT( * ) ) FROM tab2 cor0 WHERE NOT ( col2 * + ( col1 ) ) < col2
----
3

skipif mysql # not compatible
query I rowsort label-8067
SELECT + ( + COUNT ( * ) ) FROM tab2 cor0 WHERE NOT ( col2 * + ( col1 ) ) < col2
----
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL < ( 36 / + 4 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT DISTINCT 17 * - 17 + COUNT( * ) FROM tab2 WHERE ( NULL ) IN ( + col2 * col2 )
----
-289

skipif mysql # not compatible
query I rowsort label-8069
SELECT DISTINCT 17 * - 17 + COUNT ( * ) FROM tab2 WHERE ( NULL ) IN ( + col2 * col2 )
----
-289

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT + COUNT( * ) FROM tab0 WHERE NOT - col1 + - ( col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8070
SELECT + COUNT ( * ) FROM tab0 WHERE NOT - col1 + - ( col2 ) IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8071
SELECT ALL col1 DIV - - 31 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8071
SELECT ALL col1 / - - 31 AS col0 FROM tab1
----
0
0
1

query I rowsort
SELECT + 73 * - - ( + col1 ) * 78 FROM tab0
----
119574
461214
5694

query I rowsort
SELECT ALL AVG ( 26 ) FROM tab0 AS cor0 WHERE ( - col0 * col1 ) IN ( 98 * 97 + + col0 )
----
NULL

query I rowsort
SELECT DISTINCT - 95 * - 81 AS col1 FROM tab0 AS cor0
----
7695

onlyif mysql # DIV for integer division: 
query I rowsort label-8075
SELECT col0 DIV + 94 + + 31 + col1 AS col1 FROM tab1 cor0
----
36
45
78

skipif mysql # not compatible
query I rowsort label-8075
SELECT col0 / + 94 + + 31 + col1 AS col1 FROM tab1 cor0
----
36
45
78

query I rowsort
SELECT - 42 FROM tab2 AS cor0 WHERE NOT NULL >= - 59 + + col1 + 94
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8077
SELECT * FROM tab2 AS cor0 WHERE NOT col2 - CAST( NULL AS SIGNED ) <= ( col2 )
----

skipif mysql # not compatible
query III rowsort label-8077
SELECT * FROM tab2 AS cor0 WHERE NOT col2 - CAST ( NULL AS INTEGER ) <= ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT DISTINCT + - MIN( DISTINCT col1 ) AS col0 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8078
SELECT DISTINCT + - MIN ( DISTINCT col1 ) AS col0 FROM tab0 cor0
----
-1

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT NULL = + 10
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 8 col2 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8081
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN ( + - 23 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8081
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN ( + - 23 ) AND NULL
----

query I rowsort
SELECT DISTINCT + 61 + ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT COUNT( ALL - ( 25 ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8083
SELECT COUNT ( ALL - ( 25 ) ) FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT 66 AS col2 FROM tab0 AS cor0 WHERE ( + 46 ) IS NOT NULL
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8085
SELECT * FROM tab0 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) / col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8085
SELECT * FROM tab0 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) / col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0, 96 * 27 col2 FROM tab0 AS cor0
----
-15
2592
-87
2592
-97
2592

query III rowsort
SELECT * FROM tab1 WHERE - 52 / + - col2 IS NULL
----

query I rowsort
SELECT + 72 * - - 87 AS col1 FROM tab2
----
6264
6264
6264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8089
SELECT ALL - 42 DIV - SUM( + col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8089
SELECT ALL - 42 / - SUM ( + col1 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT DISTINCT MAX( + + col2 ) + + + COUNT( * ) AS col1 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-8090
SELECT DISTINCT MAX ( + + col2 ) + + + COUNT ( * ) AS col1 FROM tab1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT DISTINCT COUNT( * ) + - 87 AS col1 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-8091
SELECT DISTINCT COUNT ( * ) + - 87 AS col1 FROM tab2
----
-84

query I rowsort
SELECT + col0 + + - col0 AS col1 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8093
SELECT CAST( - - CAST( col2 AS DECIMAL ) AS SIGNED ) + + + 98 + - col1 col0 FROM tab1
----
119
152
180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8093
SELECT CAST ( - - CAST ( col2 AS REAL ) AS INTEGER ) + + + 98 + - col1 col0 FROM tab1
----
119
152
180

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT ALL 3 * - 63 + COUNT( ALL 13 ) FROM tab1
----
-186

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL 3 * - 63 + COUNT ( ALL 13 ) FROM tab1
----
-186

query I rowsort
SELECT + 37 + 79 FROM tab1
----
116
116
116

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 72 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * + 40 + - col0 FROM tab1
----
115
1789
509

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( col0 * 68 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8099
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 98 * - CAST( - + col0 AS SIGNED ) NOT IN ( + CAST( NULL AS SIGNED ) + col1 )
----

skipif mysql # not compatible
query III rowsort label-8099
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 98 * - CAST ( - + col0 AS INTEGER ) NOT IN ( + CAST ( NULL AS INTEGER ) + col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 * + col1 * + - 80 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8101
SELECT - col1 DIV - CAST( + ( + 69 ) AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8101
SELECT - col1 / - CAST ( + ( + 69 ) AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT ALL - ( + COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8102
SELECT ALL - ( + COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT DISTINCT - COUNT( * ) * - - 32 * - + 41 FROM tab1
----
3936

skipif mysql # not compatible
query I rowsort label-8104
SELECT DISTINCT - COUNT ( * ) * - - 32 * - + 41 FROM tab1
----
3936

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT 13 - + COUNT( * ) AS col0 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-8105
SELECT 13 - + COUNT ( * ) AS col0 FROM tab2
----
10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 <> + + ( + 36 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 32 - col0 * - col1 AS col0 FROM tab2 AS cor0
----
2314
4896
4993

onlyif mysql # DIV for integer division: 
query I rowsort label-8108
SELECT ( - 55 ) + + ( col2 ) + + 4 DIV + col2 AS col0 FROM tab1 AS cor0
----
13
4
41

skipif mysql # not compatible
query I rowsort label-8108
SELECT ( - 55 ) + + ( col2 ) + + 4 / + col2 AS col0 FROM tab1 AS cor0
----
13
4
41

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * + col0 >= - col1 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL >= ( + 47 )
----

query II rowsort
SELECT - col1 AS col0, col0 * + - 7 FROM tab2 AS cor0
----
-51
-322
-67
-525
-77
-448

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 * - col0 ) BETWEEN NULL AND 84
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8113
SELECT DISTINCT + + 57 DIV col2 AS col0 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8113
SELECT DISTINCT + + 57 / col2 AS col0 FROM tab2 AS cor0
----
0
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8114
SELECT + CAST( NULL AS SIGNED ) * + COUNT( DISTINCT col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8114
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT col2 ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT - 84 AS col2, - col0 FROM tab2
----
-84
-46
-84
-64
-84
-75

query I rowsort
SELECT ALL + 9 * - - col2 AS col1 FROM tab2
----
207
360
522

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col1 ) * 37 + col1 NOT IN ( col2 )
----

query I rowsort
SELECT 48 * col2 AS col0 FROM tab1
----
2832
3264
4608

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 6 + - col2 IS NOT NULL
----

query II rowsort
SELECT + col2 AS col0, col2 AS col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8121
SELECT DISTINCT + CAST( ( - + col0 ) AS SIGNED ) AS col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8121
SELECT DISTINCT + CAST ( ( - + col0 ) AS INTEGER ) AS col1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - + 71 AS col0 FROM tab0 cor0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8123
SELECT - - col0 * - col0 col2 FROM tab0 cor0 WHERE NOT - CAST( - - col0 AS SIGNED ) BETWEEN + - ( - - 23 ) AND NULL
----
-7569
-9409

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8123
SELECT - - col0 * - col0 col2 FROM tab0 cor0 WHERE NOT - CAST ( - - col0 AS INTEGER ) BETWEEN + - ( - - 23 ) AND NULL
----
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT ALL COUNT( * ) * - + 40 AS col2 FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL COUNT ( * ) * - + 40 AS col2 FROM tab2 AS cor0
----
-120

query II rowsort
SELECT col2 + - 89 AS col1, col2 FROM tab1 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8126
SELECT ALL * FROM tab1 AS cor0 WHERE 78 BETWEEN - + 4 AND - CAST( - col2 AS SIGNED )
----
51
14
96

skipif mysql # not compatible
query III rowsort label-8126
SELECT ALL * FROM tab1 AS cor0 WHERE 78 BETWEEN - + 4 AND - CAST ( - col2 AS INTEGER )
----
51
14
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT COUNT( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8128
SELECT COUNT ( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 30 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 col0 FROM tab0 WHERE NOT + + 85 IS NULL
----
-1
-441
-6561

query I rowsort
SELECT col0 + 10 AS col2 FROM tab2
----
56
74
85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + col0 * + 90 + + col0 + + - ( col1 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8133
SELECT ALL + COUNT( * ) DIV + MIN( ALL - 37 ), COUNT( * ) col2 FROM tab1 cor0
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8133
SELECT ALL + COUNT ( * ) / + MIN ( ALL - 37 ), COUNT ( * ) col2 FROM tab1 cor0
----
0
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8134
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + col2 * + 53 - + - 16 + - col2 AS col2, - col1 * - + 19 AS col2 FROM tab1 AS cor0
----
NULL
266
NULL
893
NULL
95

skipif mysql # not compatible
query II rowsort label-8134
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + col2 * + 53 - + - 16 + - col2 AS col2, - col1 * - + 19 AS col2 FROM tab1 AS cor0
----
NULL
266
NULL
893
NULL
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT 21 + + MAX( col1 ) - 5 col0 FROM tab0 cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8135
SELECT 21 + + MAX ( col1 ) - 5 col0 FROM tab0 cor0
----
97

query I rowsort
SELECT + col0 + - col2 + + - col1 FROM tab2 AS cor0
----
-28
-50
-53

query II rowsort
SELECT + col1 + col2 AS col2, - col1 FROM tab1 AS cor0
----
110
-14
115
-47
64
-5

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 IN ( col2 * - col1 )
----

query II rowsort
SELECT col1 + + + col1 AS col1, - col2 FROM tab2 AS cor0
----
102
-23
134
-58
154
-40

query I rowsort
SELECT - col0 FROM tab2 WHERE - col2 * + 30 IS NULL
----

query I rowsort
SELECT ALL + 75 AS col2 FROM tab0 WHERE - col1 IS NOT NULL
----
75
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 86 col2, - col1 FROM tab1
----
-86
-14
-86
-47
-86
-5

query I rowsort
SELECT ALL + ( col2 ) + + ( - + col2 ) AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8144
SELECT ALL col2 * + - CAST( NULL AS DECIMAL ) / 36 + + 20 col1, 31 * 88 * + 72 FROM tab1
----
NULL
196416
NULL
196416
NULL
196416

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8144
SELECT ALL col2 * + - CAST ( NULL AS REAL ) / 36 + + 20 col1, 31 * 88 * + 72 FROM tab1
----
NULL
196416
NULL
196416
NULL
196416

query II rowsort
SELECT - 22 * - 2 * - - col0 AS col1, - ( 1 ) AS col2 FROM tab1
----
2244
-1
3740
-1
4004
-1

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE ( + col1 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT - COUNT( * ) - - - 93 col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8147
SELECT - COUNT ( * ) - - - 93 col1 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT - + col0 - - 21 FROM tab2 AS cor0
----
-25
-43
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT - COUNT( * ) - ( - + 67 ) FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-8149
SELECT - COUNT ( * ) - ( - + 67 ) FROM tab1 AS cor0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8150
SELECT ALL - 45 DIV + + 90 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL - 45 / + + 90 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + col2 - + - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT + 48 - + COUNT( * ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8152
SELECT + 48 - + COUNT ( * ) FROM tab0 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT DISTINCT - SUM( DISTINCT col0 ) + + 51 + + + 74 AS col2 FROM tab0 cor0
----
-74

skipif mysql # not compatible
query I rowsort label-8153
SELECT DISTINCT - SUM ( DISTINCT col0 ) + + 51 + + + 74 AS col2 FROM tab0 cor0
----
-74

query I rowsort
SELECT - + col0 * - col2 + col0 AS col0 FROM tab1 cor0
----
4947
5100
6279

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE NOT 6 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query II rowsort
SELECT ALL - col0 + - + col0 AS col0, + col2 AS col1 FROM tab0
----
-174
10
-194
99
-30
47

query I rowsort
SELECT ALL + + 64 * col0 - 5 AS col1 FROM tab0 AS cor0
----
5563
6203
955

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8158
SELECT ALL * FROM tab1 cor0 WHERE NOT + col0 <> - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8158
SELECT ALL * FROM tab1 cor0 WHERE NOT + col0 <> - + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 71 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - 69, - 55 AS col2 FROM tab0
----
-69
-55
-69
-55
-69
-55

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 / - - col1 + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8162
SELECT + col2 DIV + - 56 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8162
SELECT + col2 / + - 56 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 40 NOT IN ( + col0 * + + col1, - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 NOT BETWEEN col0 / + col0 AND + + col2 / - + col0
----

query I rowsort
SELECT col0 * - + col0 AS col1 FROM tab0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8166
SELECT DISTINCT 60 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8166
SELECT DISTINCT 60 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8167
SELECT + col0 DIV - + col0 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8167
SELECT + col0 / - + col0 AS col1 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 BETWEEN + - col2 * - - col2 + - - 69 AND NULL
----

query I rowsort
SELECT 69 * + + 14 FROM tab0
----
966
966
966

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT + MAX( DISTINCT 62 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
62

skipif mysql # not compatible
query I rowsort label-8170
SELECT + MAX ( DISTINCT 62 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-8171
SELECT ALL + + 24 DIV + 89 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8171
SELECT ALL + + 24 / + 89 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 6 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8173
SELECT ALL + + col0 / - col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8173
SELECT ALL + + col0 / - col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8174
SELECT - 96 AS col2, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-96
3

skipif mysql # not compatible
query II rowsort label-8174
SELECT - 96 AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-96
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8175
SELECT ALL + COUNT( * ), 4 col0 FROM tab0 cor0
----
3
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8175
SELECT ALL + COUNT ( * ), 4 col0 FROM tab0 cor0
----
3
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8176
SELECT ALL + CAST( NULL AS SIGNED ) + - col0 * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL + CAST ( NULL AS INTEGER ) + - col0 * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 54 FROM tab1 WHERE + col1 IS NOT NULL
----
-54
-54
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-8178
SELECT - col2 DIV + 85 + + 11 AS col0 FROM tab0
----
10
11
11

skipif mysql # not compatible
query I rowsort label-8178
SELECT - col2 / + 85 + + 11 AS col0 FROM tab0
----
10
11
11

query III rowsort
SELECT * FROM tab1 WHERE ( - 92 > NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8180
SELECT ALL + 23 * - 26 + 56 * 98 DIV col2 FROM tab0
----
-482
-50
-543

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL + 23 * - 26 + 56 * 98 / col2 FROM tab0
----
-482
-50
-543

query II rowsort
SELECT - col0 + - col0 AS col0, + col1 + + col1 + + + col2 FROM tab0
----
-174
52
-194
101
-30
209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8182
SELECT col0 + - - CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
144
147
159

skipif mysql # not compatible
query I rowsort label-8182
SELECT col0 + - - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
144
147
159

onlyif mysql # DIV for integer division: 
query I rowsort label-8183
SELECT ALL - 58 DIV - col2 + - + col0 FROM tab2
----
-44
-63
-74

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL - 58 / - col2 + - + col0 FROM tab2
----
-44
-63
-74

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL NOT IN ( - 47 )
----

query I rowsort
SELECT + col1 * + 52 AS col0 FROM tab2 AS cor0
----
2652
3484
4004

query II rowsort
SELECT ALL - col0, 25 - + col1 + + + 90 AS col0 FROM tab2 AS cor0 WHERE NOT col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8187
SELECT ALL - + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL - + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT - - 0 * MAX( ALL 22 ) * + COUNT( * ) + MIN( ALL + - col1 ) + + 87 AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8188
SELECT - - 0 * MAX ( ALL 22 ) * + COUNT ( * ) + MIN ( ALL + - col1 ) + + 87 AS col2 FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8189
SELECT ALL CAST( + 32 AS SIGNED ) FROM tab1
----
32
32
32

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL CAST ( + 32 AS INTEGER ) FROM tab1
----
32
32
32

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NOT ( + + col2 * + col1 ) BETWEEN - 16 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT DISTINCT - + COUNT( * ) - - 92 col0 FROM tab0 WHERE NOT NULL = + ( - + col2 )
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8191
SELECT DISTINCT - + COUNT ( * ) - - 92 col0 FROM tab0 WHERE NOT NULL = + ( - + col2 )
----
92

query I rowsort
SELECT + col0 / col2 FROM tab0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 50 FROM tab1 WHERE NOT ( NOT NULL NOT IN ( 58, col0, - 17 ) )
----

query I rowsort
SELECT + + 14 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 69 * - col1 NOT BETWEEN NULL AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-8196
SELECT - 19 DIV - col1 * + 36, col1 AS col2 FROM tab2 AS cor0
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-8196
SELECT - 19 / - col1 * + 36, col1 AS col2 FROM tab2 AS cor0
----
0
51
0
67
0
77

query I rowsort
SELECT ALL + 39 * + - col1 AS col0 FROM tab0
----
-3159
-39
-819

query I rowsort
SELECT DISTINCT col1 + - 81 FROM tab2
----
-14
-30
-4

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col1 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT ALL SUM( col2 ) FROM tab1 WHERE 3 < + - col2 + - - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL SUM ( col2 ) FROM tab1 WHERE 3 < + - col2 + - - col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + ( col1 ) ) + + 30 col1 FROM tab1
----
35
44
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8202
SELECT col0 - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8202
SELECT col0 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 2 - + + col2 + - 0 * + col2 AS col0 FROM tab2 AS cor0
----
-25
-42
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-8204
SELECT ALL - col0 DIV - - col2 + + col0 AS col2 FROM tab2 AS cor0
----
44
63
74

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL - col0 / - - col2 + + col0 AS col2 FROM tab2 AS cor0
----
44
63
74

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * + + 31 IS NOT NULL
----

query I rowsort
SELECT ALL + + 74 * - col2 FROM tab2 AS cor0
----
-1702
-2960
-4292

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8207
SELECT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) >= - col2
----

skipif mysql # not compatible
query III rowsort label-8207
SELECT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) >= - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8208
SELECT ALL + ( - col0 ) DIV + col1 + + 77 + - - 79 DIV col0 - col2 + + col1 DIV + 49 FROM tab1 AS cor0
----
-21
1
8

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL + ( - col0 ) / + col1 + + 77 + - - 79 / col0 - col2 + + col1 / + 49 FROM tab1 AS cor0
----
-21
1
8

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( + 42 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 * + 43 * - - 82 * - col1 * + 61 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 17 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8212
SELECT ALL * FROM tab2 WHERE NULL < + col1 - col2 + CAST( NULL AS SIGNED ) * - - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8212
SELECT ALL * FROM tab2 WHERE NULL < + col1 - col2 + CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8213
SELECT ALL + 29 + - CAST( NULL AS SIGNED ) + - - col2 + - + col2 * + + 97 - - + col1 * - col2 FROM tab1 WHERE NOT + col0 * - 86 = - 92
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL + 29 + - CAST ( NULL AS INTEGER ) + - - col2 + - + col2 * + + 97 - - + col1 * - col2 FROM tab1 WHERE NOT + col0 * - 86 = - 92
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT - MIN( ALL 5 ) FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-8214
SELECT - MIN ( ALL 5 ) FROM tab2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT + COUNT( * ) * - 66 FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-8215
SELECT + COUNT ( * ) * - 66 FROM tab0
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT + + COUNT( * ) AS col0 FROM tab0 WHERE NOT - 43 * - + 95 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8216
SELECT + + COUNT ( * ) AS col0 FROM tab0 WHERE NOT - 43 * - + 95 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8217
SELECT DISTINCT - 62 AS col2, CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-62
59
-62
68
-62
96

skipif mysql # not compatible
query II rowsort label-8217
SELECT DISTINCT - 62 AS col2, CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-62
59
-62
68
-62
96

query I rowsort
SELECT ALL - ( 25 ) + 91 * + 5 FROM tab1 AS cor0
----
430
430
430

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 93 * - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * - ( + 33 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 27 > NULL
----

query I rowsort
SELECT DISTINCT col2 * + 66 + - ( + ( - col0 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT ( - ( + - col2 ) * - + 67 ) BETWEEN col2 AND - col1 * + col0 + + col0
----
3117
6631
747

onlyif mysql # aggregate syntax: 
query II rowsort label-8223
SELECT COUNT( * ) AS col2, - 99 AS col2 FROM tab0 AS cor0 WHERE NULL = - col2 / - col0
----
0
-99

skipif mysql # not compatible
query II rowsort label-8223
SELECT COUNT ( * ) AS col2, - 99 AS col2 FROM tab0 AS cor0 WHERE NULL = - col2 / - col0
----
0
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT COUNT( * ) + + - COUNT( DISTINCT + col0 ) + + - 51 AS col2 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8224
SELECT COUNT ( * ) + + - COUNT ( DISTINCT + col0 ) + + - 51 AS col2 FROM tab1 cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + ( + col1 ) col0 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT ALL + + COUNT( + + col0 ) + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT 82 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL + + COUNT ( + + col0 ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT 82 IS NOT NULL
----
0

query I rowsort
SELECT col1 + 53 AS col2 FROM tab1
----
100
58
67

query I rowsort
SELECT ALL col1 * - ( - col1 ) + + 29 AS col2 FROM tab0
----
30
470
6590

query I rowsort
SELECT col2 + + + col1 + - + 8 AS col1 FROM tab1
----
102
107
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT + MAX( + col1 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
81

skipif mysql # not compatible
query I rowsort label-8230
SELECT + MAX ( + col1 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8231
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - col1 + + - col2 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8231
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - col1 + + - col2 col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col0 - + + ( - 77 ) + - - col2 FROM tab0
----
139
174
273

query I rowsort
SELECT + - 85 * + col1 + - + col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + ( 1 ) - - col0 AS col0 FROM tab0 AS cor0
----
16
88
98

query I rowsort
SELECT ALL - - 3 * + + 32 AS col1 FROM tab0 AS cor0
----
96
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col2 col0 FROM tab0 AS cor0
----
1
99
21
10
81
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * - col1 <= - 20
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8238
SELECT ALL COUNT( * ) DIV COUNT( * ) col1 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8238
SELECT ALL COUNT ( * ) / COUNT ( * ) col1 FROM tab0
----
1

query II rowsort
SELECT ALL - col0 + - col0, 62 + - + col1 AS col0 FROM tab2 WHERE NOT - col2 <> NULL
----

query II rowsort
SELECT DISTINCT - col2 + + col2, col1 AS col0 FROM tab0
----
0
1
0
21
0
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 <> + - 46
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8242
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT NULL <= + - CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT NULL <= + - CAST ( col0 AS INTEGER )
----

query I rowsort
SELECT col1 + + - col1 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - 91 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 30 - - col0 + col0 FROM tab1 WHERE + 36 IS NOT NULL
----
140
152
72

onlyif mysql # DIV for integer division: 
query I rowsort label-8246
SELECT + col0 DIV - col0 + - col1 + - ( - 31 ) FROM tab0
----
-51
29
9

skipif mysql # not compatible
query I rowsort label-8246
SELECT + col0 / - col0 + - col1 + - ( - 31 ) FROM tab0
----
-51
29
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT DISTINCT + + COUNT( 16 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8247
SELECT DISTINCT + + COUNT ( 16 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8248
SELECT 8 DIV + SUM( DISTINCT - col0 ) col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8248
SELECT 8 / + SUM ( DISTINCT - col0 ) col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 59 * - - col1 col1 FROM tab1 AS cor0
----
2773
295
826

query I rowsort
SELECT ALL - 56 + - - col0 FROM tab0 AS cor0
----
-41
31
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT ALL + 42 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL + 42 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8252
SELECT ALL + 13 AS col0, - CAST( - + col0 AS SIGNED ) FROM tab1 AS cor0
----
13
51
13
85
13
91

skipif mysql # not compatible
query II rowsort label-8252
SELECT ALL + 13 AS col0, - CAST ( - + col0 AS INTEGER ) FROM tab1 AS cor0
----
13
51
13
85
13
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT + 68 - COUNT( * ) AS col1 FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-8253
SELECT + 68 - COUNT ( * ) AS col1 FROM tab0
----
65

query I rowsort
SELECT ALL col1 + - col2 * + col1 FROM tab0
----
-189
-3726
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT DISTINCT SUM( + col1 ) * - 37 AS col2 FROM tab2
----
-7215

skipif mysql # not compatible
query I rowsort label-8255
SELECT DISTINCT SUM ( + col1 ) * - 37 AS col2 FROM tab2
----
-7215

query I rowsort
SELECT ALL - 29 * + + col2 * - + col1 AS col0 FROM tab1
----
38976
8555
92684

query I rowsort
SELECT ALL - + col0 * + 80 + - 11 + - 40 FROM tab2 AS cor0
----
-3731
-5171
-6051

query I rowsort
SELECT ALL 8 * - col0 FROM tab0
----
-120
-696
-776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8259
SELECT - ( - CAST( - MIN( ALL - 66 ) AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8259
SELECT - ( - CAST ( - MIN ( ALL - 66 ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-8260
SELECT + COUNT( * ) AS col1, + COUNT( * ) * - MAX( col1 ) * + ( + + 19 ) FROM tab0 AS cor0
----
3
-4617

skipif mysql # not compatible
query II rowsort label-8260
SELECT + COUNT ( * ) AS col1, + COUNT ( * ) * - MAX ( col1 ) * + ( + + 19 ) FROM tab0 AS cor0
----
3
-4617

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( 36 ) BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8262
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT + col1 * + col0 * - col1 + + CAST( NULL AS DECIMAL ) - ( + 84 ) + - 94 * - col0 / + col0 * + col0 * + + CAST( NULL AS SIGNED ) - + col1 <= + col2 / + col2 * - + col1 * + ( ( - 82 ) ) * - 31 * + - col2 + 95 + - col0 )
----

skipif mysql # not compatible
query I rowsort label-8262
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT + col1 * + col0 * - col1 + + CAST ( NULL AS REAL ) - ( + 84 ) + - 94 * - col0 / + col0 * + col0 * + + CAST ( NULL AS INTEGER ) - + col1 <= + col2 / + col2 * - + col1 * + ( ( - 82 ) ) * - 31 * + - col2 + 95 + - col0 )
----

query I rowsort
SELECT ALL - - 81 + col1 + - col0 FROM tab2 AS cor0
----
73
86
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8264
SELECT DISTINCT + ( - ( + 1 ) ) DIV + 66 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8264
SELECT DISTINCT + ( - ( + 1 ) ) / + 66 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT DISTINCT + COUNT( * ) + - 18 FROM tab1 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT + COUNT ( * ) + - 18 FROM tab1 cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT - COUNT( ALL + - col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8266
SELECT - COUNT ( ALL + - col0 ) FROM tab2
----
-3

query II rowsort
SELECT + 55, col2 AS col2 FROM tab1
----
55
59
55
68
55
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 88 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 35 + + 49 FROM tab2
----
84

query II rowsort
SELECT ALL col1 AS col0, - col1 FROM tab1
----
14
-14
47
-47
5
-5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( - col1 ) * - - col1 BETWEEN + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8272
SELECT ALL - col2 DIV - - col1 + + - ( - 32 ) + + - 4 FROM tab0 cor0
----
-71
28
28

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL - col2 / - - col1 + + - ( - 32 ) + + - 4 FROM tab0 cor0
----
-71
28
28

query II rowsort
SELECT ALL - col0 - + + col2 AS col2, - col2 * - + col1 AS col2 FROM tab0
----
-196
99
-62
3807
-97
210

query I rowsort
SELECT DISTINCT + col0 - + + col2 * ( - + col2 ) FROM tab2
----
1664
3439
575

query I rowsort
SELECT DISTINCT - ( - + col1 ) + ( - + ( + 20 ) ) FROM tab2 AS cor0
----
31
47
57

query I rowsort
SELECT + 34 FROM tab1 AS cor0 WHERE ( - 1 ) + + 33 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT - 68 + 9 * - ( COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-8277
SELECT - 68 + 9 * - ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-8278
SELECT DISTINCT SUM( - col0 ) AS col1, - 39 * + - 57 AS col2 FROM tab2 AS cor0
----
-185
2223

skipif mysql # not compatible
query II rowsort label-8278
SELECT DISTINCT SUM ( - col0 ) AS col1, - 39 * + - 57 AS col2 FROM tab2 AS cor0
----
-185
2223

query I rowsort
SELECT DISTINCT col1 - 71 AS col2 FROM tab0 cor0
----
-50
-70
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT 32 + SUM( 3 ) FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-8280
SELECT 32 + SUM ( 3 ) FROM tab1 AS cor0
----
41

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 * + 21 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT + 26 * COUNT( * ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-8282
SELECT + 26 * COUNT ( * ) FROM tab2
----
78

query I rowsort
SELECT - 44 * + - col0 AS col0 FROM tab2
----
2024
2816
3300

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8284
SELECT DISTINCT * FROM tab2 WHERE - 15 IN ( - + CAST( - col1 AS SIGNED ), + 67, - + col0 )
----

skipif mysql # not compatible
query III rowsort label-8284
SELECT DISTINCT * FROM tab2 WHERE - 15 IN ( - + CAST ( - col1 AS INTEGER ), + 67, - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT ALL - SUM( ALL col0 ) AS col1 FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8285
SELECT ALL - SUM ( ALL col0 ) AS col1 FROM tab2 cor0
----
-185

query I rowsort
SELECT DISTINCT - col2 * ( ( + - 15 ) ) AS col2 FROM tab1 AS cor0
----
1020
1440
885

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT ALL + + COUNT( col2 ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8287
SELECT ALL + + COUNT ( col2 ) col0 FROM tab0 cor0
----
3

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 63 IS NOT NULL
----

query I rowsort
SELECT - - ( - - 52 ) * - col0 FROM tab1 AS cor0
----
-2652
-4420
-4732

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

onlyif mysql # DIV for integer division: 
query I rowsort label-8292
SELECT col2 DIV - ( + - 70 ) FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8292
SELECT col2 / - ( + - 70 ) FROM tab0
----
0
0
1

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 36 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # DIV for integer division: 
query I rowsort label-8294
SELECT DISTINCT + - 35 DIV + col1 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-8294
SELECT DISTINCT + - 35 / + col1 FROM tab0 AS cor0
----
-1
-35
0

query II rowsort
SELECT - col0 + - col1 AS col2, col2 FROM tab1 cor0
----
-138
68
-65
96
-90
59

query II rowsort
SELECT DISTINCT - ( + - 32 ) AS col1, col1 AS col0 FROM tab0 cor0
----
32
1
32
21
32
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 + + - 88 col0, 24 + - - 71 AS col2 FROM tab2 AS cor0
----
-11
95
-21
95
-37
95

query I rowsort
SELECT 76 + + col2 FROM tab1 AS cor0
----
135
144
172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + col2 + + col1 * - col2 * + col2 col0, 85 - col2 AS col1 FROM tab1 AS cor0
----
-129024
-11
-17405
26
-217328
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8300
SELECT - col1 + - col0 * + CAST( NULL AS SIGNED ) * - col2 * - 60 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8300
SELECT - col1 + - col0 * + CAST ( NULL AS INTEGER ) * - col2 * - 60 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT COUNT( * ) * - + COUNT( * ) + - 84 FROM tab1 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-8301
SELECT COUNT ( * ) * - + COUNT ( * ) + - 84 FROM tab1 cor0
----
-93

query I rowsort
SELECT DISTINCT + 62 + 16 AS col0 FROM tab1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT ALL MIN( ALL + + col2 ) * MIN( ALL - col0 ) FROM tab1
----
-5369

skipif mysql # not compatible
query I rowsort label-8303
SELECT ALL MIN ( ALL + + col2 ) * MIN ( ALL - col0 ) FROM tab1
----
-5369

query I rowsort
SELECT ALL + col2 * - 17 FROM tab0
----
-1683
-170
-799

query I rowsort
SELECT ALL 36 + - col2 AS col0 FROM tab0
----
-11
-63
26

query III rowsort
SELECT * FROM tab2 WHERE + - col0 NOT BETWEEN col1 AND + col0 - - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8307
SELECT ALL + CAST( + 70 AS SIGNED ) AS col2 FROM tab0 cor0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL + CAST ( + 70 AS INTEGER ) AS col2 FROM tab0 cor0
----
70
70
70

query I rowsort
SELECT + 1 * + + col1 + - ( + - col0 ) AS col2 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT + 22 + col1 * 13 + - col2 FROM tab2 AS cor0
----
662
835
983

query II rowsort
SELECT ALL - 42 * + col0 - col1, ( + 78 ) AS col0 FROM tab2 cor0 WHERE NOT NULL >= - col1
----

query I rowsort
SELECT + 67 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
67
67
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8312
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT - 13 - - 15 * CAST( NULL AS SIGNED ) NOT BETWEEN + col0 AND - 48 ) OR NOT - + 58 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8312
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT - 13 - - 15 * CAST ( NULL AS INTEGER ) NOT BETWEEN + col0 AND - 48 ) OR NOT - + 58 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8313
SELECT ALL CAST( 56 AS SIGNED ) + + col0 FROM tab0
----
143
153
71

skipif mysql # not compatible
query I rowsort label-8313
SELECT ALL CAST ( 56 AS INTEGER ) + + col0 FROM tab0
----
143
153
71

query II rowsort
SELECT DISTINCT - col1 AS col2, + 5 AS col1 FROM tab1
----
-14
5
-47
5
-5
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8316
SELECT + 11 AS col1, + COUNT( * ) * - 90 AS col1 FROM tab1
----
11
-270

skipif mysql # not compatible
query II rowsort label-8316
SELECT + 11 AS col1, + COUNT ( * ) * - 90 AS col1 FROM tab1
----
11
-270

query II rowsort
SELECT - col2 AS col1, col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col2 * + 18 + - 5 IS NULL )
----

query I rowsort
SELECT DISTINCT + col0 - + 62 AS col2 FROM tab2 AS cor0
----
-16
13
2

query I rowsort
SELECT ALL 68 - - 96 * 82 AS col0 FROM tab1 AS cor0
----
7940
7940
7940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8321
SELECT ALL - + CAST( + + 44 AS SIGNED ) FROM tab0 AS cor0
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL - + CAST ( + + 44 AS INTEGER ) FROM tab0 AS cor0
----
-44
-44
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8322
SELECT ALL CAST( NULL AS SIGNED ), 33 AS col1 FROM tab2 AS cor0
----
NULL
33
NULL
33
NULL
33

skipif mysql # not compatible
query II rowsort label-8322
SELECT ALL CAST ( NULL AS INTEGER ), 33 AS col1 FROM tab2 AS cor0
----
NULL
33
NULL
33
NULL
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 21 col2 FROM tab2 AS cor0
----
21

query I rowsort
SELECT ALL - + col1 FROM tab1 WHERE col1 <> NULL OR NOT ( NOT ( ( NOT + col2 * 18 < + col0 * - + col1 + - 0 - - + col1 + + col1 / - col2 ) ) )
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8325
SELECT - col1 * + + col2, CAST( + 1 AS SIGNED ) AS col0 FROM tab2
----
-1173
1
-3080
1
-3886
1

skipif mysql # not compatible
query II rowsort label-8325
SELECT - col1 * + + col2, CAST ( + 1 AS INTEGER ) AS col0 FROM tab2
----
-1173
1
-3080
1
-3886
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8326
SELECT + CAST( NULL AS SIGNED ), - col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-8326
SELECT + CAST ( NULL AS INTEGER ), - col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 82 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + 6 > NULL
----

query I rowsort
SELECT + col0 * ( + + col1 ) AS col1 FROM tab2
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8330
SELECT ALL + col1 AS col1, - CAST( - + col1 AS SIGNED ) FROM tab1 cor0
----
14
14
47
47
5
5

skipif mysql # not compatible
query II rowsort label-8330
SELECT ALL + col1 AS col1, - CAST ( - + col1 AS INTEGER ) FROM tab1 cor0
----
14
14
47
47
5
5

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8332
SELECT ALL - col0 AS col2, + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-8332
SELECT ALL - col0 AS col2, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

query II rowsort
SELECT DISTINCT col0, + col2 FROM tab0 cor0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT DISTINCT 42 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT 42 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NULL = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8335
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL = ( NULL )
----
0

query I rowsort
SELECT - 21 + + col1 - - col1 FROM tab2 cor0
----
113
133
81

query I rowsort
SELECT ALL col1 + - 65 FROM tab0
----
-44
-64
16

query I rowsort
SELECT col0 + + ( - - 63 ) FROM tab0
----
150
160
78

query I rowsort
SELECT ALL - col0 + - - col2 - 0 FROM tab2
----
-17
-23
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + - + col0 * - + ( - + col0 ) AS col1, col2 col2 FROM tab1
----
-2550
96
-7140
59
-8190
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8341
SELECT - CAST( NULL AS DECIMAL ) + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8341
SELECT - CAST ( NULL AS REAL ) + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8342
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - 73 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8342
SELECT DISTINCT - CAST ( NULL AS REAL ) + - 73 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - col2 * - col0 * - 47 * + col1 + - - col0 AS col0 FROM tab2
----
-13698075
-2535980
-9264576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8344
SELECT DISTINCT - - col0 AS col2 FROM tab2 AS cor0 WHERE + 3 * col1 - - CAST( NULL AS SIGNED ) - + 2 + + CAST( NULL AS SIGNED ) * col1 IS NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8344
SELECT DISTINCT - - col0 AS col2 FROM tab2 AS cor0 WHERE + 3 * col1 - - CAST ( NULL AS INTEGER ) - + 2 + + CAST ( NULL AS INTEGER ) * col1 IS NULL
----
46
64
75

query II rowsort
SELECT ALL + - col2, - col0 + + col1 AS col0 FROM tab0 cor0
----
-10
-66
-47
66
-99
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 92 AS col0, + col1 + + + col2 col2 FROM tab0 AS cor0
----
-92
100
-92
128
-92
31

query I rowsort
SELECT + + 68 FROM tab2 AS cor0 WHERE NOT NULL <= - col1
----

query I rowsort
SELECT DISTINCT - 30 * - + col1 - + 62 * col1 FROM tab2 AS cor0
----
-1632
-2144
-2464

query II rowsort
SELECT DISTINCT col0, + col0 * + col1 FROM tab2 AS cor0 WHERE 10 / - 77 / + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT ALL - - ( + + MAX( + col0 ) ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8350
SELECT ALL - - ( + + MAX ( + col0 ) ) FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT ALL + - MIN( DISTINCT + - 34 ) FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL + - MIN ( DISTINCT + - 34 ) FROM tab1 AS cor0
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 27 col0, - col1 FROM tab0 AS cor0
----
27
-1
27
-21
27
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8353
SELECT CAST( NULL AS SIGNED ) * - 36 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8353
SELECT CAST ( NULL AS INTEGER ) * - 36 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * + ( + col2 ) * 3 + + + 28 * col2 + - col2 AS col1 FROM tab2
----
10320
13224
4140

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8355
SELECT ALL * FROM tab0 WHERE NOT - CAST( 75 AS SIGNED ) + + - 49 <= + + 55 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8355
SELECT ALL * FROM tab0 WHERE NOT - CAST ( 75 AS INTEGER ) + + - 49 <= + + 55 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8356
SELECT ALL - CAST( - - col0 AS SIGNED ) + + col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL - CAST ( - - col0 AS INTEGER ) + + col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-66
-96
66

query II rowsort
SELECT - col1 AS col1, col2 - + 19 AS col2 FROM tab0 AS cor0
----
-1
80
-21
-9
-81
28

onlyif mysql # DIV for integer division: 
query I rowsort label-8358
SELECT - + 55 DIV 52 + + - 20 FROM tab1 AS cor0
----
-21
-21
-21

skipif mysql # not compatible
query I rowsort label-8358
SELECT - + 55 / 52 + + - 20 FROM tab1 AS cor0
----
-21
-21
-21

query II rowsort
SELECT col2 AS col0, col2 * - - col1 FROM tab2 AS cor0
----
23
1173
40
3080
58
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT ALL + COUNT( * ) + - - 25 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
34

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL + COUNT ( * ) + - - 25 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
34

query I rowsort
SELECT ( - 50 ) + - col0 AS col1 FROM tab2 AS cor0
----
-114
-125
-96

query I rowsort
SELECT - 32 + col1 * - col1 FROM tab1 AS cor0
----
-2241
-228
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8363
SELECT + CAST( NULL AS SIGNED ) + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8363
SELECT + CAST ( NULL AS INTEGER ) + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - 57 + + + col2 + col1 FROM tab1 AS cor0
----
105
12
67

query I rowsort
SELECT ALL - col1 + + - col1 + + col0 * col2 AS col0 FROM tab0 AS cor0
----
543
828
9601

query I rowsort
SELECT + col1 FROM tab2 cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT ALL COUNT( col2 ) + + 63 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL COUNT ( col2 ) + + 63 FROM tab1
----
66

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - - col1 ) >= + col2
----
15
81
47
87
21
10

query I rowsort
SELECT col2 FROM tab1 WHERE - col0 + - col0 IS NULL
----

query I rowsort
SELECT + 25 AS col0 FROM tab0 WHERE - 88 * + 0 * - 50 IS NULL
----

query I rowsort
SELECT ALL - 59 * + + col0 + + col1 FROM tab2
----
-2663
-3699
-4358

query I rowsort
SELECT ALL 69 - + - col1 + + 72 FROM tab1 AS cor0
----
146
155
188

query I rowsort
SELECT col0 - 26 AS col2 FROM tab1 AS cor0
----
25
59
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT DISTINCT - 42 * + SUM( + ( - - 36 ) ) FROM tab1 AS cor0
----
-4536

skipif mysql # not compatible
query I rowsort label-8374
SELECT DISTINCT - 42 * + SUM ( + ( - - 36 ) ) FROM tab1 AS cor0
----
-4536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 12 * - - ( + col2 ) col1 FROM tab0 AS cor0
----
-1188
-120
-564

query II rowsort
SELECT + ( 19 ) AS col1, col2 FROM tab0
----
19
10
19
47
19
99

query I rowsort
SELECT ALL + 60 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query II rowsort
SELECT DISTINCT + col0 * + col1, col2 FROM tab1
----
425
59
4277
68
714
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8379
SELECT + 19 DIV col0 + - col2 FROM tab0 AS cor0
----
-10
-46
-99

skipif mysql # not compatible
query I rowsort label-8379
SELECT + 19 / col0 + - col2 FROM tab0 AS cor0
----
-10
-46
-99

query I rowsort
SELECT ALL + col2 * + col2 + + col0 FROM tab1 AS cor0
----
3566
4715
9267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8381
SELECT DISTINCT + - COUNT( * ) * CAST( + ( - 21 ) AS SIGNED ) col1 FROM tab1 AS cor0 WHERE NULL > + col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8381
SELECT DISTINCT + - COUNT ( * ) * CAST ( + ( - 21 ) AS INTEGER ) col1 FROM tab1 AS cor0 WHERE NULL > + col2
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN - col2 AND - + col0 + + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8383
SELECT ALL - ( COUNT( * ) ) DIV + 1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL - ( COUNT ( * ) ) / + 1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + col0 * + - col1 AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

query II rowsort
SELECT DISTINCT + 72 * - - col2 * - + col0 AS col1, - col1 FROM tab1
----
-352512
-14
-361080
-5
-445536
-47

query I rowsort
SELECT ALL 74 + 93 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8387
SELECT 27 AS col1, COUNT( + ( - col2 ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
27
3

skipif mysql # not compatible
query II rowsort label-8387
SELECT 27 AS col1, COUNT ( + ( - col2 ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
27
3

query I rowsort
SELECT ALL ( - + ( 57 ) ) FROM tab0
----
-57
-57
-57

query I rowsort
SELECT 0 * + 68 AS col0 FROM tab0
----
0
0
0

query II rowsort
SELECT ALL - col1 AS col0, - col0 + - + col1 AS col1 FROM tab0
----
-1
-98
-21
-108
-81
-96

query II rowsort
SELECT DISTINCT + col2, + 34 FROM tab0
----
10
34
47
34
99
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8392
SELECT col0 + + 90 + - - col0 AS col2, + CAST( + - CAST( - col2 AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
192
96
260
59
272
68

skipif mysql # not compatible
query II rowsort label-8392
SELECT col0 + + 90 + - - col0 AS col2, + CAST ( + - CAST ( - col2 AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
192
96
260
59
272
68

query I rowsort
SELECT + col1 + + col0 FROM tab2 AS cor0 WHERE NOT - 9 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 + + - 33 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - 56 col0 FROM tab0
----
-35
-55
25

query I rowsort
SELECT DISTINCT - 97 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-97

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > - 23
----

query I rowsort
SELECT - 90 FROM tab0 AS cor0 WHERE + col2 >= - col0 * + 62
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT DISTINCT - + MIN( ALL col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8399
SELECT DISTINCT - + MIN ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + + ( col2 ) AS col1 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL AND NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT MIN( ALL + 96 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8402
SELECT MIN ( ALL + 96 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - col1 * + 25 FROM tab2 AS cor0
----
-1275
-1675
-1925

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT ALL - MAX( - + ( - col0 ) ) AS col0 FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8404
SELECT ALL - MAX ( - + ( - col0 ) ) AS col0 FROM tab0 cor0
----
-97

query I rowsort
SELECT + col2 * + col0 * col2 + + + col1 AS col2 FROM tab2
----
102477
24385
252367

query I rowsort
SELECT DISTINCT 40 - 70 FROM tab1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT ALL - COUNT( ALL - + col1 ) - MIN( - col0 ) FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL - COUNT ( ALL - + col1 ) - MIN ( - col0 ) FROM tab0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT DISTINCT COUNT( DISTINCT - 36 ) AS col2 FROM tab0, tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8408
SELECT DISTINCT COUNT ( DISTINCT - 36 ) AS col2 FROM tab0, tab1 AS cor0
----
1

query I rowsort
SELECT col1 FROM tab2 WHERE - col1 <= col0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 - col1, + col2 + - col0 * - col1 + + col2 * col0 col0 FROM tab2
----
0
3427
0
7528
0
9433

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + col2 AND + + col2 + 49 + + col1 + + 22 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8412
SELECT + - 46 * - - col1 + - 43 FROM tab0 AS cor0 WHERE + 61 / - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8412
SELECT + - 46 * - - col1 + - 43 FROM tab0 AS cor0 WHERE + 61 / - CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 * 75 col2 FROM tab1
----
-3000
-3000
-3000

query II rowsort
SELECT ALL col1 AS col1, 41 AS col0 FROM tab0
----
1
41
21
41
81
41

query I rowsort
SELECT ( - + 3 ) AS col0 FROM tab2
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT + - SUM( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8416
SELECT + - SUM ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT - ( - + COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8417
SELECT - ( - + COUNT ( * ) ) FROM tab1 cor0
----
3

query I rowsort
SELECT ALL + col0 FROM tab0 cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8419
SELECT - COUNT( * ) AS col1, + ( + + 31 ) FROM tab1 AS cor0
----
-3
31

skipif mysql # not compatible
query II rowsort label-8419
SELECT - COUNT ( * ) AS col1, + ( + + 31 ) FROM tab1 AS cor0
----
-3
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT DISTINCT + COUNT( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8420
SELECT DISTINCT + COUNT ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
3

query II rowsort
SELECT 35, - 91 AS col2 FROM tab1 cor0
----
35
-91
35
-91
35
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT ALL - ( MAX( ALL - col1 ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8422
SELECT ALL - ( MAX ( ALL - col1 ) ) FROM tab2
----
51

query I rowsort
SELECT DISTINCT + 97 * + - 51 AS col0 FROM tab2
----
-4947

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8424
SELECT - - AVG ( DISTINCT + col1 ), - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 WHERE NOT - 12 < col1 + col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8424
SELECT - - AVG ( DISTINCT + col1 ), - CAST ( NULL AS REAL ) AS col1 FROM tab2 WHERE NOT - 12 < col1 + col1
----
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 * - + ( + + col0 ) col2 FROM tab0
----
1485
8613
9603

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN col1 AND + 14 * 13
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8427
SELECT DISTINCT - col0 * + 3 + - col0 DIV - - 65 col1, - col0 * ( + col0 ) FROM tab1 AS cor0
----
-153
-2601
-256
-7225
-274
-8281

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8427
SELECT DISTINCT - col0 * + 3 + - col0 / - - 65 col1, - col0 * ( + col0 ) FROM tab1 AS cor0
----
-153
-2601
-256
-7225
-274
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT ALL + COUNT( * ) col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8428
SELECT ALL + COUNT ( * ) col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8429
SELECT col1 * - col0 + + - col2 + + + 30 - - ( - col0 ) + - 86 * + + 64 * - CAST( NULL AS SIGNED ) * col2 + 38 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8429
SELECT col1 * - col0 + + - col2 + + + 30 - - ( - col0 ) + - 86 * + + 64 * - CAST ( NULL AS INTEGER ) * col2 + 38 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 48 + + col0 AS col2 FROM tab0 cor0
----
135
145
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8431
SELECT ALL + ( + CAST( - col2 AS SIGNED ) ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL + ( + CAST ( - col2 AS INTEGER ) ) FROM tab1 AS cor0
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - 87 col0 FROM tab1 AS cor0
----
-5133
-5916
-8352

query I rowsort
SELECT - 65 * - col1 AS col0 FROM tab0 AS cor0
----
1365
5265
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT ALL COUNT( * ) + + 29 AS col1 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL COUNT ( * ) + + 29 AS col1 FROM tab1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-8435
SELECT DISTINCT col0 + 74 DIV + 9 col1 FROM tab2
----
54
72
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8435
SELECT DISTINCT col0 + 74 / + 9 col1 FROM tab2
----
54
72
83

query I rowsort
SELECT col1 * col1 - - + ( - + 89 ) AS col0 FROM tab1
----
-64
107
2120

query III rowsort
SELECT * FROM tab2 WHERE + col0 IS NULL AND NOT + col0 - + + 5 - + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 * 2 * col0 + - col1 + + col0 * - col2 AS col1 FROM tab0
----
-336
14247
9214

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 - + col0 + + + ( - col2 ) col2 FROM tab0
----
-157
-192
-291

query II rowsort
SELECT DISTINCT + col2, - 94 FROM tab2 cor0
----
23
-94
40
-94
58
-94

query I rowsort
SELECT + 59 * - col2 * - 75 FROM tab0 cor0
----
207975
438075
44250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8442
SELECT + 64 DIV + - ( + COUNT( ALL + - col0 ) ) - + 84 AS col0 FROM tab2 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-8442
SELECT + 64 / + - ( + COUNT ( ALL + - col0 ) ) - + 84 AS col0 FROM tab2 AS cor0
----
-105

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= 96
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8444
SELECT ALL + + CAST( 76 AS SIGNED ) FROM tab0 AS cor0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-8444
SELECT ALL + + CAST ( 76 AS INTEGER ) FROM tab0 AS cor0
----
76
76
76

query I rowsort
SELECT ALL ( + 62 ) FROM tab0
----
62
62
62

query I rowsort
SELECT DISTINCT + ( + 35 ) AS col0 FROM tab1
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 col2 FROM tab0
----
39
39
39

query II rowsort
SELECT 6 AS col1, - col1 + + - col0 * + + ( col0 ) * + + col1 AS col0 FROM tab0
----
6
-158970
6
-18306
6
-9410

onlyif mysql # DIV for integer division: 
query I rowsort label-8449
SELECT col2 DIV + 91 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8449
SELECT col2 / + 91 AS col1 FROM tab0
----
0
0
1

query I rowsort
SELECT 85 + + col2 FROM tab1
----
144
153
181

query I rowsort
SELECT + 90 + 10 FROM tab2
----
100
100
100

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT MAX( + col0 ) * + - ( - MIN( DISTINCT col2 ) ) AS col1 FROM tab0 WHERE NOT ( 69 * col1 - ( - + col0 ) ) IS NULL
----
970

skipif mysql # not compatible
query I rowsort label-8452
SELECT MAX ( + col0 ) * + - ( - MIN ( DISTINCT col2 ) ) AS col1 FROM tab0 WHERE NOT ( 69 * col1 - ( - + col0 ) ) IS NULL
----
970

query I rowsort
SELECT DISTINCT - 62 * + col0 AS col0 FROM tab2
----
-2852
-3968
-4650

query III rowsort
SELECT * FROM tab1 cor0 WHERE 62 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 96 * - col2 AS col2 FROM tab0 AS cor0
----
-4512
-9504
-960

query II rowsort
SELECT col0, + col2 * ( - ( - - col1 ) ) AS col1 FROM tab1 cor0
----
51
-1344
85
-295
91
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8457
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col2 * - 26 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8457
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col2 * - 26 FROM tab1
----
NULL

query I rowsort
SELECT ALL 61 * 39 FROM tab0
----
2379
2379
2379

query I rowsort
SELECT DISTINCT + 56 * - ( col0 * col0 ) AS col0 FROM tab0
----
-12600
-423864
-526904

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 + 86 * col1 ) IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8461
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) * - col1 <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) * - col1 <> ( NULL )
----
0

query I rowsort
SELECT - col2 - col0 FROM tab2 WHERE NOT + col1 IN ( col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8463
SELECT - 37 AS col2 FROM tab0 WHERE CAST( 55 AS DECIMAL ) IN ( 9 )
----

skipif mysql # not compatible
query I rowsort label-8463
SELECT - 37 AS col2 FROM tab0 WHERE CAST ( 55 AS REAL ) IN ( 9 )
----

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT + col0 * col0 IS NOT NULL
----

query I rowsort
SELECT col2 FROM tab0 WHERE - 14 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8466
SELECT DISTINCT - ( 58 ) + CAST( NULL AS SIGNED ) * col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8466
SELECT DISTINCT - ( 58 ) + CAST ( NULL AS INTEGER ) * col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8467
SELECT - ( 84 ) DIV col2 FROM tab0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-8467
SELECT - ( 84 ) / col2 FROM tab0
----
-1
-8
0

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE ( NULL ) NOT BETWEEN col2 + + 5 AND 1
----

query I rowsort
SELECT DISTINCT + 53 - col2 AS col1 FROM tab2
----
-5
13
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT - MIN( DISTINCT - 55 ) * + 38 FROM tab1
----
2090

skipif mysql # not compatible
query I rowsort label-8470
SELECT - MIN ( DISTINCT - 55 ) * + 38 FROM tab1
----
2090

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT + ( COUNT( * ) ) - COUNT( * ) col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8471
SELECT + ( COUNT ( * ) ) - COUNT ( * ) col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 * + 99 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 11 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 71 ) <= col1
----
15
81
47

query I rowsort
SELECT DISTINCT col2 * - 65 FROM tab2
----
-1495
-2600
-3770

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 = 70
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 * + col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT + col0 * - ( col2 ) AS col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8479
SELECT + SUM( + col1 ) DIV 45 col0 FROM tab0 WHERE ( col2 ) <> col2 + col0
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8479
SELECT + SUM ( + col1 ) / 45 col0 FROM tab0 WHERE ( col2 ) <> col2 + col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT ALL + COUNT( ALL col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL + COUNT ( ALL col2 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT ALL + MIN( ALL - col2 ) AS col1 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL + MIN ( ALL - col2 ) AS col1 FROM tab1 cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT DISTINCT + MAX( DISTINCT col1 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-8482
SELECT DISTINCT + MAX ( DISTINCT col1 ) FROM tab0 cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT ALL + MIN( DISTINCT + 77 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL + MIN ( DISTINCT + 77 ) FROM tab2 AS cor0
----
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 7 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT SUM( 67 ) FROM tab0 cor0
----
201

skipif mysql # not compatible
query I rowsort label-8485
SELECT SUM ( 67 ) FROM tab0 cor0
----
201

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8486
SELECT - COUNT( * ) DIV ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8486
SELECT - COUNT ( * ) / ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT DISTINCT + COUNT( ALL col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8487
SELECT DISTINCT + COUNT ( ALL col0 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT 38 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT DISTINCT MIN( - 77 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-8489
SELECT DISTINCT MIN ( - 77 ) AS col1 FROM tab2
----
-77

query I rowsort
SELECT DISTINCT + + 19 AS col0 FROM tab2 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT DISTINCT COUNT( * ) + 32 * 13 col0 FROM tab1 AS cor0 WHERE + col2 + col1 IS NOT NULL
----
419

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8491
SELECT DISTINCT COUNT ( * ) + 32 * 13 col0 FROM tab1 AS cor0 WHERE + col2 + col1 IS NOT NULL
----
419

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8492
SELECT 71 DIV - COUNT( * ) + CAST( 0 AS SIGNED ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8492
SELECT 71 / - COUNT ( * ) + CAST ( 0 AS INTEGER ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT + + col1 + ( col0 + + 91 ) FROM tab1 AS cor0
----
156
181
229

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN ( col0 ) AND ( NULL )
----
87
21
10
97
1
99

query I rowsort
SELECT + 9 + col1 FROM tab0 AS cor0
----
10
30
90

query I rowsort
SELECT ALL + 78 AS col1 FROM tab2 AS cor0 WHERE col0 * - 55 IN ( - col1 - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8497
SELECT DISTINCT + - col0 DIV - ( + 32 ) + + col2 DIV + CAST( - 11 * 63 AS SIGNED ) FROM tab1 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-8497
SELECT DISTINCT + - col0 / - ( + 32 ) + + col2 / + CAST ( - 11 * 63 AS INTEGER ) FROM tab1 AS cor0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8498
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT DISTINCT COUNT( DISTINCT col2 ) FROM tab1 AS cor0 WHERE - ( + 28 ) * col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8499
SELECT DISTINCT COUNT ( DISTINCT col2 ) FROM tab1 AS cor0 WHERE - ( + 28 ) * col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT COUNT( * ) + 73 FROM tab0 AS cor0 WHERE NOT 2 + + 5 NOT BETWEEN - 14 + - col1 * - ( col1 / - col1 ) AND NULL
----
73

skipif mysql # not compatible
query I rowsort label-8500
SELECT COUNT ( * ) + 73 FROM tab0 AS cor0 WHERE NOT 2 + + 5 NOT BETWEEN - 14 + - col1 * - ( col1 / - col1 ) AND NULL
----
73

query I rowsort
SELECT DISTINCT 7 + + ( 91 ) AS col2 FROM tab1 WHERE col0 / + 18 IN ( col2 / - 31 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 ) BETWEEN + 12 * - col1 AND ( col1 * col0 )
----

query I rowsort
SELECT DISTINCT col2 + 66 FROM tab1 WHERE NOT ( col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 88 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col0 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT - + 76 * - COUNT( * ) FROM tab0 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-8506
SELECT - + 76 * - COUNT ( * ) FROM tab0 AS cor0
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT MIN( - 23 ) * COUNT( * ) + 5 FROM tab1 cor0
----
-64

skipif mysql # not compatible
query I rowsort label-8507
SELECT MIN ( - 23 ) * COUNT ( * ) + 5 FROM tab1 cor0
----
-64

query III rowsort
SELECT * FROM tab2 WHERE + col2 * - col2 + + col0 BETWEEN col1 AND ( NULL )
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) BETWEEN NULL AND ( 21 )
----

query I rowsort
SELECT ALL 38 + - + col0 FROM tab2
----
-26
-37
-8

query I rowsort
SELECT DISTINCT - 43 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-43

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 23 + col2 IS NULL
----

query I rowsort
SELECT - 95 FROM tab2 WHERE ( NOT ( col0 ) NOT IN ( + col2 + + col2 ) )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT ALL COUNT( * ) * - COUNT( * ) + ( 1 ) AS col0 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-8514
SELECT ALL COUNT ( * ) * - COUNT ( * ) + ( 1 ) AS col0 FROM tab0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT + 58 + - ( COUNT( * ) ) FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-8515
SELECT + 58 + - ( COUNT ( * ) ) FROM tab2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT - ( + COUNT( ALL - 9 ) ) * COUNT( * ) col2 FROM tab1 cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8516
SELECT - ( + COUNT ( ALL - 9 ) ) * COUNT ( * ) col2 FROM tab1 cor0
----
-9

query II rowsort
SELECT + col1 AS col1, + 75 FROM tab0 AS cor0
----
1
75
21
75
81
75

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( 28 ) NOT BETWEEN 8 * - col2 - col2 / col2 AND col2 + col0 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 0 * + 93 + col0 * - col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT ALL - col1 / col2 AS col1 FROM tab0 AS cor0 WHERE + 62 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8521
SELECT ALL - col0 * + - col1 + 45 + + CAST( 71 + - col1 AS SIGNED ) * 52 FROM tab2 AS cor0
----
3431
4661
5278

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL - col0 * + - col1 + 45 + + CAST ( 71 + - col1 AS INTEGER ) * 52 FROM tab2 AS cor0
----
3431
4661
5278

onlyif mysql # DIV for integer division: 
query I rowsort label-8522
SELECT DISTINCT col1 DIV + + col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT col1 / + + col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 + + 39 * - 27 >= + col1 OR NOT + ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8524
SELECT - 14 - - CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
32
50
61

skipif mysql # not compatible
query I rowsort label-8524
SELECT - 14 - - CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
32
50
61

query I rowsort
SELECT ALL - col0 * - + col2 AS col0 FROM tab0
----
705
870
9603

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 90 / + col2 + - col2 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col0 > col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + - 96 ) FROM tab0
----
96
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8529
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= - CAST( + 62 AS SIGNED ) / 97 - col2 * col0
----

skipif mysql # not compatible
query III rowsort label-8529
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= - CAST ( + 62 AS INTEGER ) / 97 - col2 * col0
----

query I rowsort
SELECT DISTINCT - + 50 AS col0 FROM tab1 AS cor0
----
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 51 * + col0 * + ( + - col0 ) col1 FROM tab1 AS cor0
----
-132651
-368475
-422331

query I rowsort
SELECT - 86 AS col1 FROM tab0 AS cor0 WHERE NOT col1 <= - col2
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT DISTINCT - COUNT( DISTINCT + 49 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8533
SELECT DISTINCT - COUNT ( DISTINCT + 49 ) AS col1 FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8534
SELECT ALL * FROM tab2 WHERE NOT + 64 + col0 / + + 76 / - 70 <= + CAST( - 98 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8534
SELECT ALL * FROM tab2 WHERE NOT + 64 + col0 / + + 76 / - 70 <= + CAST ( - 98 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 58 + + 28 FROM tab1 WHERE NOT + + 77 * - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8536
SELECT - 76 DIV + col1 AS col1 FROM tab1
----
-1
-15
-5

skipif mysql # not compatible
query I rowsort label-8536
SELECT - 76 / + col1 AS col1 FROM tab1
----
-1
-15
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT ALL - - MAX( + 38 ) AS col0 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-8537
SELECT ALL - - MAX ( + 38 ) AS col0 FROM tab0 AS cor0
----
38

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT 45 >= col0 / + - col1 * ( 70 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( - col1 + + - 57 - - col2 ) AND ( 88 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8540
SELECT - + COUNT( * ) DIV 55 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8540
SELECT - + COUNT ( * ) / 55 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT - + COUNT( ALL - 39 ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8541
SELECT - + COUNT ( ALL - 39 ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 = NULL
----
0

query I rowsort
SELECT 29 AS col1 FROM tab1 AS cor0 WHERE NOT ( - col1 / + + col2 * 76 ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8543
SELECT ALL - CAST( NULL AS SIGNED ) * ( + 16 ) + - 38 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8543
SELECT ALL - CAST ( NULL AS INTEGER ) * ( + 16 ) + - 38 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8544
SELECT DISTINCT + col2 * col0 * - CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT + col2 * col0 * - CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 31 AS col0, + col2 * - col2 + col1 col2 FROM tab0 AS cor0
----
-31
-2128
-31
-79
-31
-9800

query I rowsort
SELECT + col2 * - - col0 + col1 FROM tab2
----
1109
2637
4417

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT - COUNT( * ) + + COUNT( * ) * - - 73 FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-8547
SELECT - COUNT ( * ) + + COUNT ( * ) * - - 73 FROM tab0
----
216

query I rowsort
SELECT col2 + + 55 + col1 FROM tab2
----
129
172
180

query II rowsort
SELECT DISTINCT + 18 AS col0, - col1 + col0 AS col2 FROM tab2
----
18
-13
18
-5
18
8

query I rowsort
SELECT DISTINCT - col1 * + col0 + - col0 + - col1 FROM tab2 AS cor0
----
-2443
-5069
-5167

query I rowsort
SELECT + ( + 37 ) FROM tab0 AS cor0
----
37
37
37

query I rowsort
SELECT DISTINCT 21 + + col1 + + 18 FROM tab0
----
120
40
60

query I rowsort
SELECT + col0 - - col1 FROM tab2 WHERE - col1 IS NOT NULL
----
141
142
97

query I rowsort
SELECT + col0 - + 36 AS col2 FROM tab1
----
15
49
55

query I rowsort
SELECT + col2 - + col1 + - ( - col2 ) FROM tab1
----
113
178
89

query I rowsort
SELECT - - col1 + - col0 + - - ( - col1 ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT col2 * - col1 FROM tab0 cor0 WHERE NOT ( NULL ) <= ( + - col2 - - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8558
SELECT ALL - + ( - 97 ), - COUNT( * ) - COUNT( * ) AS col0 FROM tab2 AS cor0
----
97
-6

skipif mysql # not compatible
query II rowsort label-8558
SELECT ALL - + ( - 97 ), - COUNT ( * ) - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
97
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8559
SELECT 17 AS col0 FROM tab2 WHERE NOT + 63 * + - 39 < ( - 91 ) OR + CAST( NULL AS SIGNED ) + - - col1 > ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-8559
SELECT 17 AS col0 FROM tab2 WHERE NOT + 63 * + - 39 < ( - 91 ) OR + CAST ( NULL AS INTEGER ) + - - col1 > ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8560
SELECT + 88 * - + CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8560
SELECT + 88 * - + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + ( - col1 ) AS col0, 11 + - col0 col2 FROM tab0 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 61 * - col1 - col2 + - col2 col0 FROM tab0 cor0
----
-1301
-259
-5035

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8564
SELECT ALL - 72 DIV + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL - 72 / + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-24

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + col2 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8566
SELECT DISTINCT + - 83 DIV - col2 FROM tab0 AS cor0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-8566
SELECT DISTINCT + - 83 / - col2 FROM tab0 AS cor0
----
0
1
8

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 WHERE NOT + col2 IS NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8568
SELECT + - CAST( - - col1 AS SIGNED ) + + col2 FROM tab1 AS cor0
----
21
54
82

skipif mysql # not compatible
query I rowsort label-8568
SELECT + - CAST ( - - col1 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT ALL - - SUM( ALL + col0 ) col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8569
SELECT ALL - - SUM ( ALL + col0 ) col0 FROM tab1 AS cor0
----
227

query I rowsort
SELECT - + 82 + 39 + - col2 AS col0 FROM tab2 cor0
----
-101
-66
-83

query I rowsort
SELECT 1 + col1 AS col0 FROM tab0 AS cor0
----
2
22
82

query I rowsort
SELECT 73 * + 62 + col1 AS col2 FROM tab1 AS cor0 WHERE ( col1 + - 14 + col0 * - - col0 + col1 + 38 + - col0 * + - col1 * col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8573
SELECT * FROM tab2 AS cor0 WHERE ( col0 + - CAST( NULL AS SIGNED ) * + col0 * + + col0 * - + col1 / 43 - + col1 * 49 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8573
SELECT * FROM tab2 AS cor0 WHERE ( col0 + - CAST ( NULL AS INTEGER ) * + col0 * + + col0 * - + col1 / 43 - + col1 * 49 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0 + - col1, ( - col1 ) AS col0 FROM tab1 AS cor0
----
37
-14
44
-47
80
-5

query I rowsort
SELECT col1 FROM tab2 WHERE ( - col1 / - col1 + col2 - + + 38 ) IS NOT NULL
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - + ( + col0 ) ) NOT BETWEEN - col2 * + - col0 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 12 + - col0 + + col0 FROM tab1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-8578
SELECT ALL 60 + + col1 DIV + 50 FROM tab2
----
61
61
61

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL 60 + + col1 / + 50 FROM tab2
----
61
61
61

query I rowsort
SELECT col2 * + 15 AS col0 FROM tab2
----
345
600
870

onlyif mysql # DIV for integer division: 
query I rowsort label-8580
SELECT DISTINCT ( - col0 ) DIV - 73 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-8580
SELECT DISTINCT ( - col0 ) / - 73 FROM tab2
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8581
SELECT - - ( - CAST( NULL AS SIGNED ) ) * + MIN( + 90 ) - COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8581
SELECT - - ( - CAST ( NULL AS INTEGER ) ) * + MIN ( + 90 ) - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + col0 col2 FROM tab0 AS cor0
----
-77
2
32

query II rowsort
SELECT ALL col0, 58 AS col2 FROM tab1 AS cor0
----
51
58
85
58
91
58

query I rowsort
SELECT + col1 + + col0 + - + col0 AS col2 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT ALL 0 + + col1 * + 61 * col1 * - + col2 + col2 AS col0 FROM tab2 AS cor0
----
-14466720
-15882024
-3649180

query I rowsort
SELECT DISTINCT col1 * - - 47 FROM tab0 cor0
----
3807
47
987

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NULL > - ( - 32 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8588
SELECT + 66 DIV col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-8588
SELECT + 66 / col2 FROM tab0
----
0
1
6

query I rowsort
SELECT - 83 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT DISTINCT - col1 * 21 AS col0 FROM tab1
----
-105
-294
-987

onlyif mysql # DIV for integer division: 
query II rowsort label-8591
SELECT 76 col1, - col1 DIV - 12 AS col0 FROM tab2
----
76
4
76
5
76
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8591
SELECT 76 col1, - col1 / - 12 AS col0 FROM tab2
----
76
4
76
5
76
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8592
SELECT + col1 * - - col2 + + + 80 FROM tab0 WHERE NOT NULL IN ( - 25 * + 8, + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8592
SELECT + col1 * - - col2 + + + 80 FROM tab0 WHERE NOT NULL IN ( - 25 * + 8, + CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT - 36, 21 * - col1 AS col1 FROM tab0 AS cor0
----
-36
-1701
-36
-21
-36
-441

query II rowsort
SELECT 72, + col0 AS col0 FROM tab2 AS cor0
----
72
46
72
64
72
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col1, - 78 * col0 col0 FROM tab0 AS cor0
----
10
-6786
47
-1170
99
-7566

query II rowsort
SELECT ALL - + 64, - col1 AS col0 FROM tab2 AS cor0
----
-64
-51
-64
-67
-64
-77

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col0 + - - col0 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + col2 col1 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT COUNT( * ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8599
SELECT COUNT ( * ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8600
SELECT ALL - 35 * CAST( - 50 AS SIGNED ) * - + SUM( ALL - - 16 ) FROM tab1 AS cor0
----
-84000

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL - 35 * CAST ( - 50 AS INTEGER ) * - + SUM ( ALL - - 16 ) FROM tab1 AS cor0
----
-84000

query I rowsort
SELECT ALL col0 + + - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT - col1 + + - col0 * col1 AS col2 FROM tab2 WHERE NOT ( - 84 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT ALL SUM( DISTINCT - + col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-8603
SELECT ALL SUM ( DISTINCT - + col2 ) FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT - ( + - 34 ) * - COUNT( * ) + - 72 AS col2 FROM tab0
----
-174

skipif mysql # not compatible
query I rowsort label-8604
SELECT - ( + - 34 ) * - COUNT ( * ) + - 72 AS col2 FROM tab0
----
-174

query I rowsort
SELECT DISTINCT - 63 * + + 72 * - - ( - 42 ) + col2 AS col1 FROM tab2 AS cor0
----
190535
190552
190570

query II rowsort
SELECT ALL - + 90 * col1 AS col0, - col2 FROM tab1 cor0
----
-1260
-96
-4230
-68
-450
-59

query II rowsort
SELECT DISTINCT + col1 * + + ( col0 ), col0 * - col0 AS col2 FROM tab0 AS cor0
----
1215
-225
1827
-7569
97
-9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8608
SELECT ALL + 13 DIV + + 36 + + ( + + 0 ) + - COUNT( * ) * + - 75 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
675

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL + 13 / + + 36 + + ( + + 0 ) + - COUNT ( * ) * + - 75 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
675

query I rowsort
SELECT DISTINCT - 1 * 60 * + - 86 * - col0 + col1 FROM tab0
----
-448899
-500519
-77319

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT 52 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query II rowsort
SELECT DISTINCT col2 AS col2, - col0 AS col1 FROM tab0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8612
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL col0 * 59 FROM tab2 AS cor0
----
2714
3776
4425

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 NOT BETWEEN - col1 AND - col0 * - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + 20 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - 27 * - ( - col2 ) + + col0, col0 + - col1 + - 44 AS col1 FROM tab2 AS cor0
----
-1016
-57
-1491
-36
-575
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT + MIN( ALL - col0 ) / + 61 * + - 5 FROM tab1 AS cor0 WHERE + 50 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8617
SELECT + MIN ( ALL - col0 ) / + 61 * + - 5 FROM tab1 AS cor0 WHERE + 50 IS NULL
----
NULL

query I rowsort
SELECT - 23 + col2 FROM tab0 AS cor0
----
-13
24
76

query I rowsort
SELECT DISTINCT + ( - + 61 ) + col2 FROM tab2 AS cor0
----
-21
-3
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-8620
SELECT ALL ( + 93 ) DIV col0 + - col1 AS col0 FROM tab0
----
-1
-20
-75

skipif mysql # not compatible
query I rowsort label-8620
SELECT ALL ( + 93 ) / col0 + - col1 AS col0 FROM tab0
----
-1
-20
-75

query I rowsort
SELECT col2 * - 98 + col1 FROM tab2
----
-2203
-3843
-5617

query I rowsort
SELECT + 35 + + 3 FROM tab0
----
38
38
38

query I rowsort
SELECT + col0 + + + col1 + + 18 FROM tab1
----
108
156
83

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NULL <> col1
----

query I rowsort
SELECT DISTINCT col0 + 62 AS col2 FROM tab2
----
108
126
137

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8626
SELECT DISTINCT CAST( NULL AS DECIMAL ) / + + col2 * + col2 / + - 71 - + 53 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8626
SELECT DISTINCT CAST ( NULL AS REAL ) / + + col2 * + col2 / + - 71 - + 53 AS col1 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT - col0 - + - col1 AS col2, col2 AS col2 FROM tab1
----
-37
96
-44
68
-80
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT ALL 56 + - SUM( ALL + col1 ) AS col1 FROM tab2
----
-139

skipif mysql # not compatible
query I rowsort label-8628
SELECT ALL 56 + - SUM ( ALL + col1 ) AS col1 FROM tab2
----
-139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8630
SELECT ALL * FROM tab1 cor0 WHERE + col0 * col1 + + 79 BETWEEN NULL AND + col0 + + col0 + - CAST( - ( - - col2 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8630
SELECT ALL * FROM tab1 cor0 WHERE + col0 * col1 + + 79 BETWEEN NULL AND + col0 + + col0 + - CAST ( - ( - - col2 ) AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8631
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col0 - - CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8631
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col0 - - CAST ( + col0 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8632
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - + 32 + + + ( + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8632
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - + 32 + + + ( + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT + - SUM( DISTINCT col1 ) FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8633
SELECT + - SUM ( DISTINCT col1 ) FROM tab2 cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT ALL - MAX( ALL + - col1 ) FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL - MAX ( ALL + - col1 ) FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8635
SELECT + - AVG ( DISTINCT - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8635
SELECT + - AVG ( DISTINCT - CAST ( NULL AS REAL ) ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8636
SELECT SUM( - CAST( col2 AS SIGNED ) ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8636
SELECT SUM ( - CAST ( col2 AS INTEGER ) ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT - SUM( DISTINCT 64 ) FROM tab0 cor0
----
-64

skipif mysql # not compatible
query I rowsort label-8637
SELECT - SUM ( DISTINCT 64 ) FROM tab0 cor0
----
-64

query I rowsort
SELECT + 20 * + col0 AS col2 FROM tab1 AS cor0
----
1020
1700
1820

query II rowsort
SELECT col1, - 16 AS col2 FROM tab2
----
51
-16
67
-16
77
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-8640
SELECT 19 AS col1, + COUNT( * ) - + ( - 83 ) AS col1 FROM tab1
----
19
86

skipif mysql # not compatible
query II rowsort label-8640
SELECT 19 AS col1, + COUNT ( * ) - + ( - 83 ) AS col1 FROM tab1
----
19
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT DISTINCT ( + COUNT( ALL col1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8641
SELECT DISTINCT ( + COUNT ( ALL col1 ) ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 >= - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * - ( - - col1 ) col0 FROM tab2 AS cor0
----
2346
4928
5025

query II rowsort
SELECT + - col0, - col2 * + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-46
24334
-64
102400
-75
252300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, 33 FROM tab2 AS cor0
----
46
33
64
33
75
33

query II rowsort
SELECT DISTINCT - + 68 AS col2, col2 FROM tab0 AS cor0
----
-68
10
-68
47
-68
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8647
SELECT - CAST( + + 72 AS SIGNED ) FROM tab2 AS cor0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-8647
SELECT - CAST ( + + 72 AS INTEGER ) FROM tab2 AS cor0
----
-72
-72
-72

query I rowsort
SELECT DISTINCT + 84 * - + 89 * col0 FROM tab2
----
-343896
-478464
-560700

query I rowsort
SELECT - - 74 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT DISTINCT + ( + ( + col0 ) ) + + - 8 AS col1 FROM tab1
----
43
77
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT COUNT( * ) + + + 61 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-8651
SELECT COUNT ( * ) + + + 61 FROM tab0 AS cor0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT DISTINCT - MIN( - 20 ) * + COUNT( - + 93 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8652
SELECT DISTINCT - MIN ( - 20 ) * + COUNT ( - + 93 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 75 + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8654
SELECT ALL + + CAST( col1 AS SIGNED ) * + col2, + ( - 29 ) AS col1 FROM tab1 AS cor0
----
1344
-29
295
-29
3196
-29

skipif mysql # not compatible
query II rowsort label-8654
SELECT ALL + + CAST ( col1 AS INTEGER ) * + col2, + ( - 29 ) AS col1 FROM tab1 AS cor0
----
1344
-29
295
-29
3196
-29

query I rowsort
SELECT 27 * 59 + col0 FROM tab1 AS cor0
----
1644
1678
1684

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * + col2 - - 20 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8657
SELECT + + col2 / + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8657
SELECT + + col2 / + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 32 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - ( ( + col2 ) ) + + + 46 BETWEEN NULL AND 41 * 77
----
0

skipif mysql # not compatible
query I rowsort label-8659
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - ( ( + col2 ) ) + + + 46 BETWEEN NULL AND 41 * 77
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8660
SELECT ALL - col1 + + - col0 + + 35 DIV col2 * 19 AS col2 FROM tab2
----
-141
-142
-78

skipif mysql # not compatible
query I rowsort label-8660
SELECT ALL - col1 + + - col0 + + 35 / col2 * 19 AS col2 FROM tab2
----
-141
-142
-78

query I rowsort
SELECT ALL - 4 AS col0 FROM tab1 WHERE ( NOT ( NULL ) IS NOT NULL )
----
-4
-4
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-8662
SELECT ALL ( + col2 ) DIV + col0 + - 94 AS col0 FROM tab2
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-8662
SELECT ALL ( + col2 ) / + col0 + - 94 AS col0 FROM tab2
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT ALL 5 + - COUNT( * ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-8663
SELECT ALL 5 + - COUNT ( * ) FROM tab0
----
2

query I rowsort
SELECT 2 * + + col1 - + + col1 FROM tab2
----
51
67
77

query I rowsort
SELECT col1 - + + 64 AS col1 FROM tab0
----
-43
-63
17

query I rowsort
SELECT - 19 - - 23 + + + 47 AS col0 FROM tab0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab1 WHERE + 39 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8667
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab1 WHERE + 39 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT + + SUM( ALL + 32 ) + - COUNT( * ) FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-8668
SELECT + + SUM ( ALL + 32 ) + - COUNT ( * ) FROM tab0 AS cor0
----
93

query I rowsort
SELECT DISTINCT + 29 - - - col2 + - col0 - + - col1 FROM tab0 AS cor0
----
-166
-47
48

query I rowsort
SELECT DISTINCT - ( + col2 ) * - 56 - - 43 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3347
3851
5419

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 NOT BETWEEN + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8672
SELECT ALL col2 DIV - 73 col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8672
SELECT ALL col2 / - 73 col2 FROM tab1
----
-1
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - - col1, + 92 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8674
SELECT - col0 * + + col2 + - + col0 DIV + - col0 + + - 99 FROM tab2 AS cor0
----
-1156
-2658
-4448

skipif mysql # not compatible
query I rowsort label-8674
SELECT - col0 * + + col2 + - + col0 / + - col0 + + - 99 FROM tab2 AS cor0
----
-1156
-2658
-4448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 col1 FROM tab2 AS cor0
----
87
87
87

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8677
SELECT ALL + COUNT( * ) AS col1, COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-8677
SELECT ALL + COUNT ( * ) AS col1, COUNT ( * ) FROM tab1
----
3
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 <= - col1 + + col2
----
15
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8679
SELECT DISTINCT - col2 * - 53 + + 53 DIV - col1 FROM tab0
----
2491
5194
528

skipif mysql # not compatible
query I rowsort label-8679
SELECT DISTINCT - col2 * - 53 + + 53 / - col1 FROM tab0
----
2491
5194
528

query I rowsort
SELECT - col1 * - col0 + - ( + 57 ) + col2 + - - 26 FROM tab0 WHERE NOT + 8 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 71 * col0 FROM tab2
----
3266
4544
5325

query III rowsort
SELECT * FROM tab1 WHERE NOT + + ( + - ( col1 ) ) IS NOT NULL
----

query II rowsort
SELECT col2, - col0 AS col1 FROM tab0
----
10
-87
47
-15
99
-97

query III rowsort
SELECT * FROM tab2 WHERE NULL < + ( + col2 ) * + col1 * + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 95 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT DISTINCT + COUNT( - 16 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8686
SELECT DISTINCT + COUNT ( - 16 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT + - COUNT( col0 ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8687
SELECT + - COUNT ( col0 ) col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT ALL - COUNT( * ) + + + 86 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL - COUNT ( * ) + + + 86 FROM tab2 AS cor0
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 18 col0 FROM tab1 cor0
----
18
18
18

query I rowsort
SELECT DISTINCT + + col2 + + - col2 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT + + 25 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + 88 / - - col1 AND + col2
----

query I rowsort
SELECT + 8 + + 51 AS col2 FROM tab0 AS cor0
----
59
59
59

query II rowsort
SELECT ALL + col2, + 75 AS col1 FROM tab2 AS cor0
----
23
75
40
75
58
75

query I rowsort
SELECT 41 + + + col1 FROM tab0
----
122
42
62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8695
SELECT - col1 AS col2 FROM tab1 WHERE col2 + - col2 + col2 + - col1 + + CAST( NULL AS DECIMAL ) * + 46 IN ( + + ( - col1 ) )
----

skipif mysql # not compatible
query I rowsort label-8695
SELECT - col1 AS col2 FROM tab1 WHERE col2 + - col2 + col2 + - col1 + + CAST ( NULL AS REAL ) * + 46 IN ( + + ( - col1 ) )
----

query I rowsort
SELECT ALL + col0 * col2 - + + col2 * + 85 FROM tab1
----
-3264
0
408

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE 70 IS NULL
----

query I rowsort
SELECT ALL 62 + - - 11 FROM tab1
----
73
73
73

query I rowsort
SELECT ALL + col2 * + col2 - - col1 FROM tab0
----
121
2290
9802

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= + 98
----

query I rowsort
SELECT DISTINCT ( - 48 ) AS col2 FROM tab0
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-8702
SELECT 48, MAX( - 8 ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
48
24

skipif mysql # not compatible
query II rowsort label-8702
SELECT 48, MAX ( - 8 ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
48
24

query II rowsort
SELECT - - col1 AS col1, + 72 FROM tab1 AS cor0
----
14
72
47
72
5
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8704
SELECT DISTINCT 26 col1, - ( + + 34 ) DIV COUNT( * ) AS col2 FROM tab0 cor0
----
26
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8704
SELECT DISTINCT 26 col1, - ( + + 34 ) / COUNT ( * ) AS col2 FROM tab0 cor0
----
26
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8705
SELECT ALL col1 + + col2 + 21 AS col1, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
121
NULL
149
NULL
52
NULL

skipif mysql # not compatible
query II rowsort label-8705
SELECT ALL col1 + + col2 + 21 AS col1, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
121
NULL
149
NULL
52
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT - - MIN( DISTINCT + - 41 ) FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-8706
SELECT - - MIN ( DISTINCT + - 41 ) FROM tab1 AS cor0
----
-41

query I rowsort
SELECT DISTINCT - - col0 + + 48 / + col1 + ( ( - ( - 21 ) ) ) - + - col1 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT SUM( DISTINCT - + col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8708
SELECT SUM ( DISTINCT - + col2 ) AS col2 FROM tab0 AS cor0
----
-156

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 27 IS NOT NULL
----

query I rowsort
SELECT ALL - 34 + + col1 FROM tab0 cor0 WHERE NULL BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8711
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - col0 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8711
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - col0 AS col1 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 24 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8713
SELECT 88 DIV - col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8713
SELECT 88 / - col2 FROM tab1
----
-1
-1
0

query I rowsort
SELECT + col2 * + 64 FROM tab1 AS cor0
----
3776
4352
6144

onlyif mysql # DIV for integer division: 
query II rowsort label-8715
SELECT col0 DIV - col2 AS col1, col2 FROM tab2 AS cor0
----
-1
40
-1
58
-2
23

skipif mysql # not compatible
query II rowsort label-8715
SELECT col0 / - col2 AS col1, col2 FROM tab2 AS cor0
----
-1
40
-1
58
-2
23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 1 * + col0 IS NULL
----

query I rowsort
SELECT - + col0 + 63 AS col2 FROM tab2 AS cor0
----
-1
-12
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, + 82 FROM tab1
----
51
82
85
82
91
82

query II rowsort
SELECT - col1 AS col2, col0 * + col0 + - col2 AS col1 FROM tab0 AS cor0
----
-1
9310
-21
7559
-81
178

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8720
SELECT 27 AS col0, + CAST( NULL AS SIGNED ) * + col1 FROM tab2 AS cor0
----
27
NULL
27
NULL
27
NULL

skipif mysql # not compatible
query II rowsort label-8720
SELECT 27 AS col0, + CAST ( NULL AS INTEGER ) * + col1 FROM tab2 AS cor0
----
27
NULL
27
NULL
27
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8721
SELECT - COUNT( + col1 ) * - COUNT( * ) DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8721
SELECT - COUNT ( + col1 ) * - COUNT ( * ) / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8722
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8722
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( col2 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN 71 * + 73 AND NULL
----

query I rowsort
SELECT ALL - col1 + + - col0 * + col1 FROM tab2 AS cor0
----
-2397
-5005
-5092

query I rowsort
SELECT col0 - + col2 * - 14 AS col1 FROM tab1
----
1043
1395
911

query III rowsort
SELECT * FROM tab2 WHERE - - col1 + ( col1 ) + - 99 + - col2 * + col2 - - col1 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 26 + col2 FROM tab0
----
125
36
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8728
SELECT col2 * col2 * + col2 * - - 19 - - + CAST( 6 AS SIGNED ) AS col2, col1 AS col0 FROM tab2
----
1216006
77
231179
51
3707134
67

skipif mysql # not compatible
query II rowsort label-8728
SELECT col2 * col2 * + col2 * - - 19 - - + CAST ( 6 AS INTEGER ) AS col2, col1 AS col0 FROM tab2
----
1216006
77
231179
51
3707134
67

onlyif mysql # aggregate syntax: 
query II rowsort label-8729
SELECT + 44, - SUM( col2 ) AS col1 FROM tab0
----
44
-156

skipif mysql # not compatible
query II rowsort label-8729
SELECT + 44, - SUM ( col2 ) AS col1 FROM tab0
----
44
-156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8730
SELECT ALL * FROM tab2 WHERE NULL BETWEEN col1 AND col2 - + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8730
SELECT ALL * FROM tab2 WHERE NULL BETWEEN col1 AND col2 - + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col1 * + + 13 AS col1 FROM tab2
----
1001
663
871

query I rowsort
SELECT ( + col1 ) * + col0 AS col0 FROM tab2
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( col1 ) AS col0, - 78 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT DISTINCT + + MAX( - 95 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-95

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT + + MAX ( - 95 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 * col2 * + + col2 col2 FROM tab2 AS cor0
----
208568
32798
99200

query II rowsort
SELECT ALL col2 * - 82 AS col1, 93 + + + col1 AS col1 FROM tab0 AS cor0
----
-3854
174
-8118
94
-820
114

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 / + + 23 + - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8739
SELECT ALL 51 / + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL 51 / + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 86 + + 24 col0 FROM tab1
----
-62
-62
-62

query I rowsort
SELECT - - 12 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
12
12
12

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 27 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT ALL - ( 56 ) * - COUNT( * ) * - 13 FROM tab1
----
-2184

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL - ( 56 ) * - COUNT ( * ) * - 13 FROM tab1
----
-2184

query I rowsort
SELECT + col2 + + - ( - col0 ) + + 36 + + 22 * + col2 - - col2 FROM tab1
----
1537
1759
2391

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT ALL 64 + + + MIN( DISTINCT - ( - - 73 ) ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL 64 + + + MIN ( DISTINCT - ( - - 73 ) ) AS col1 FROM tab1
----
-9

query I rowsort
SELECT ALL ( ( + col1 ) ) * col1 FROM tab0
----
1
441
6561

query I rowsort
SELECT col1 + - ( - col1 ) FROM tab1
----
10
28
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8748
SELECT DISTINCT 52 DIV + col0 col0 FROM tab2
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8748
SELECT DISTINCT 52 / + col0 col0 FROM tab2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT - + SUM( + 16 ) FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-8749
SELECT - + SUM ( + 16 ) FROM tab2 AS cor0
----
-48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT + - col2 <= - + 38 )
----
46
51
23

query I rowsort
SELECT DISTINCT 4 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 37 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8752
SELECT - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 37 IS NULL
----
0

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE 45 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8755
SELECT ALL - col2 * col0 - - 8 DIV + + 95 FROM tab2 cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL - col2 * col0 - - 8 / + + 95 FROM tab2 cor0
----
-1058
-2560
-4350

query II rowsort
SELECT col2 + + 43 AS col2, 77 FROM tab1 AS cor0
----
102
77
111
77
139
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * - + col2 * + col2 col1 FROM tab1 AS cor0
----
-110592
-41772
-55488

query I rowsort
SELECT 8 * - 22 AS col2 FROM tab0
----
-176
-176
-176

onlyif mysql # DIV for integer division: 
query I rowsort label-8759
SELECT + 56 DIV - + col1 AS col2 FROM tab1
----
-1
-11
-4

skipif mysql # not compatible
query I rowsort label-8759
SELECT + 56 / - + col1 AS col2 FROM tab1
----
-1
-11
-4

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 < + col1 * - 78 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NOT + 19 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query II rowsort
SELECT DISTINCT - col1, col1 AS col0 FROM tab2 cor0
----
-51
51
-67
67
-77
77

query I rowsort
SELECT ALL + ( + + col2 ) * + 26 AS col2 FROM tab1 AS cor0
----
1534
1768
2496

query I rowsort
SELECT - 72 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query II rowsort
SELECT DISTINCT col1 AS col1, col1 * - col2 * + col0 AS col1 FROM tab1 AS cor0
----
14
-68544
47
-290836
5
-25075

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT DISTINCT MAX( DISTINCT - - col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT MAX ( DISTINCT - - col1 ) AS col0 FROM tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT + col0 * - + col0 FROM tab2 cor0
----
-2116
-4096
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, col0 col2 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT DISTINCT + ( - 49 ) * + SUM( DISTINCT + 98 ) FROM tab2 AS cor0
----
-4802

skipif mysql # not compatible
query I rowsort label-8769
SELECT DISTINCT + ( - 49 ) * + SUM ( DISTINCT + 98 ) FROM tab2 AS cor0
----
-4802

query II rowsort
SELECT DISTINCT + col0 AS col2, col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT + 35 + - col1 * 33 AS col1 FROM tab0 AS cor0
----
-2638
-658
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8772
SELECT ALL - CAST( - 36 AS SIGNED ) FROM tab1 AS cor0
----
36
36
36

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL - CAST ( - 36 AS INTEGER ) FROM tab1 AS cor0
----
36
36
36

query I rowsort
SELECT + - 33 * + - 91 + + 86 * - col1 + + - col1 FROM tab2 AS cor0
----
-1434
-2826
-3696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8774
SELECT - 43 DIV MIN( DISTINCT + col2 ) * 63 + - ( + MAX( + ( ( + - 19 ) ) ) ) DIV - 28 FROM tab0 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-8774
SELECT - 43 / MIN ( DISTINCT + col2 ) * 63 + - ( + MAX ( + ( ( + - 19 ) ) ) ) / - 28 FROM tab0 AS cor0
----
-252

onlyif mysql # DIV for integer division: 
query I rowsort label-8775
SELECT DISTINCT col0 DIV + col0 col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8775
SELECT DISTINCT col0 / + col0 col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT col2 + - - 58 * - - 69 FROM tab0 AS cor0
----
4012
4049
4101

query I rowsort
SELECT - ( - 73 ) FROM tab0 cor0
----
73
73
73

query I rowsort
SELECT ALL + ( + 65 ) FROM tab1 AS cor0
----
65
65
65

query II rowsort
SELECT + col2 AS col0, col1 FROM tab0 cor0 WHERE col1 + + col1 IS NOT NULL
----
10
21
47
81
99
1

query I rowsort
SELECT ALL - col0 * + col0 + - 48 + + 98 + + 14 FROM tab1 WHERE col2 > col1
----
-2537
-7161
-8217

query I rowsort
SELECT DISTINCT ( + 86 ) + + col2 - - col2 FROM tab1
----
204
222
278

query III rowsort
SELECT * FROM tab2 WHERE - - 44 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8783
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 + + + col1 + - col0 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL - 25 * - col1 FROM tab2
----
1275
1675
1925

query I rowsort
SELECT - col2 * - col2 * - + 13 FROM tab2 AS cor0
----
-20800
-43732
-6877

query I rowsort
SELECT ALL col1 + + col2 * 13 * col0 * 77 * - 80 AS col0 FROM tab2 AS cor0
----
-205004723
-348347933
-84724589

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8788
SELECT DISTINCT + CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8788
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8789
SELECT + - 59 * col0 / - col0 - + + CAST( NULL AS SIGNED ) * + col1 / - - 27 * 93 * + + col2 * 67 + + + 64 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-8789
SELECT + - 59 * col0 / - col0 - + + CAST ( NULL AS INTEGER ) * + col1 / - - 27 * 93 * + + col2 * 67 + + + 64 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8790
SELECT ALL MIN( + col0 ) + COUNT( * ) AS col0, - 13 AS col2 FROM tab0 AS cor0
----
18
-13

skipif mysql # not compatible
query II rowsort label-8790
SELECT ALL MIN ( + col0 ) + COUNT ( * ) AS col0, - 13 AS col2 FROM tab0 AS cor0
----
18
-13

query I rowsort
SELECT - - 84 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query II rowsort
SELECT 35 AS col2, col0 FROM tab2
----
35
46
35
64
35
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT DISTINCT COUNT( * ) - 42 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-8793
SELECT DISTINCT COUNT ( * ) - 42 FROM tab2 AS cor0
----
-39

query I rowsort
SELECT col1 - 36 AS col2 FROM tab2 cor0
----
15
31
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8795
SELECT ALL - CAST( - MAX( ALL - col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL - CAST ( - MAX ( ALL - col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT - 15 * - col1 AS col1 FROM tab0 AS cor0
----
1215
15
315

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT DISTINCT + - SUM( col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8797
SELECT DISTINCT + - SUM ( col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT ( NULL ) = col2 * col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 NOT IN ( - 49 + col2, 72, + 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT - COUNT( * ) * + MIN( + 87 ) AS col0 FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-8800
SELECT - COUNT ( * ) * + MIN ( + 87 ) AS col0 FROM tab0
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT MAX( + - 31 ) AS col0 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-8801
SELECT MAX ( + - 31 ) AS col0 FROM tab1
----
-31

query I rowsort
SELECT DISTINCT - + 7 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 88 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 81 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col2 * + 3 AND - + col1
----

query II rowsort
SELECT DISTINCT col1 AS col0, 77 FROM tab2
----
51
77
67
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT DISTINCT + COUNT( * ) + - + 68 AS col1 FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-8807
SELECT DISTINCT + COUNT ( * ) + - + 68 AS col1 FROM tab1
----
-65

query II rowsort
SELECT + col0, + col0 * + + 13 - 57 FROM tab0 AS cor0
----
15
138
87
1074
97
1204

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= - col0 / ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT + ( - 48 ) * COUNT( ALL + col0 ) * - + COUNT( * ) + + COUNT( ALL 31 ) FROM tab2 AS cor0
----
435

skipif mysql # not compatible
query I rowsort label-8810
SELECT + ( - 48 ) * COUNT ( ALL + col0 ) * - + COUNT ( * ) + + COUNT ( ALL 31 ) FROM tab2 AS cor0
----
435

query I rowsort
SELECT DISTINCT - 5 * + - 71 FROM tab1 cor0
----
355

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8812
SELECT - - 36 FROM tab2 AS cor0 WHERE - CAST( - + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8812
SELECT - - 36 FROM tab2 AS cor0 WHERE - CAST ( - + col1 AS INTEGER ) IS NULL
----

query II rowsort
SELECT DISTINCT - + col1, - col1 FROM tab1 cor0
----
-14
-14
-47
-47
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT ALL + - SUM( ALL + + 61 ) AS col2 FROM tab1 cor0
----
-183

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL + - SUM ( ALL + + 61 ) AS col2 FROM tab1 cor0
----
-183

query I rowsort
SELECT col1 * col2 FROM tab2 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT - 91 + 90 FROM tab0
----
-1

query I rowsort
SELECT - 71 + + col1 AS col1 FROM tab2
----
-20
-4
6

query II rowsort
SELECT DISTINCT ( + col1 ) + col0 + + col1 * 17 * - - col1 * - col0 AS col2, col0 + - 85 AS col2 FROM tab0
----
-1551
12
-1672959
-70
-652131
2

query I rowsort
SELECT ALL 76 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + - ( + + col1 ) col0 FROM tab0
----
-11
-34
98

query I rowsort
SELECT DISTINCT - col2 - + 48 + + col0 + + col0 * col1 FROM tab2 cor0
----
2321
4904
4994

query II rowsort
SELECT ALL col2 * - col1, 81 AS col1 FROM tab2 AS cor0
----
-1173
81
-3080
81
-3886
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8823
SELECT - col1 - + col1 * + col1 + + col1 DIV col1 * - + col0 * - col0 * + CAST( - col1 AS SIGNED ) + + 76 * col1 AS col0 FROM tab1 AS cor0
----
-35560
-35775
-387891

skipif mysql # not compatible
query I rowsort label-8823
SELECT - col1 - + col1 * + col1 + + col1 / col1 * - + col0 * - col0 * + CAST ( - col1 AS INTEGER ) + + 76 * col1 AS col0 FROM tab1 AS cor0
----
-35560
-35775
-387891

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT DISTINCT + - COUNT( - + col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT + - COUNT ( - + col2 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8825
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col1 - col1 / + 86 * - - col0 col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8825
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col1 - col1 / + 86 * - - col0 col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT - 84 * - - col0 AS col2, 93 * - col1 AS col2 FROM tab2 AS cor0
----
-3864
-4743
-5376
-7161
-6300
-6231

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8827
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 * - - col0 / - CAST( - + col0 AS DECIMAL ) + - col0 + col2 BETWEEN - col2 * - col1 AND - 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8827
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 * - - col0 / - CAST ( - + col0 AS REAL ) + - col0 + col2 BETWEEN - col2 * - col1 AND - 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col0 AS col2 FROM tab0 WHERE NOT NULL <= + + 92
----

query I rowsort
SELECT - 75 * + 18 AS col2 FROM tab0
----
-1350
-1350
-1350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8830
SELECT DISTINCT MAX( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8830
SELECT DISTINCT MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8831
SELECT ALL CAST( NULL AS SIGNED ) AS col0, - col2 col1 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8831
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, - col2 col1 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col1 + - col0 * + ( + ( col0 ) ) * + 11 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 87 * + + col0 AS col1 FROM tab0 AS cor0
----
1305
7569
8439

query I rowsort
SELECT - 36 * 68 + + 42 FROM tab2 AS cor0 WHERE NOT - ( col2 ) IS NULL
----
-2406
-2406
-2406

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= col2 + - 14
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8836
SELECT COUNT( * ) DIV - 11 * 40 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8836
SELECT COUNT ( * ) / - 11 * 40 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= + col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT ( col2 ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT ALL + - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8839
SELECT ALL + - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 <> + + 56 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + - col1 + col2 col1 FROM tab0 AS cor0
----
-1
13
197

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT ALL - MIN( - 48 ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL - MIN ( - 48 ) FROM tab2 AS cor0
----
48

query I rowsort
SELECT - 91 + + col0 AS col1 FROM tab2 AS cor0
----
-16
-27
-45

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT DISTINCT SUM( ( 39 ) ) * + 15 FROM tab0 AS cor0
----
1755

skipif mysql # not compatible
query I rowsort label-8845
SELECT DISTINCT SUM ( ( 39 ) ) * + 15 FROM tab0 AS cor0
----
1755

query II rowsort
SELECT - col2 * - col1, col2 AS col1 FROM tab0 AS cor0
----
210
10
3807
47
99
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8847
SELECT - COUNT( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 WHERE + 59 * + - col1 * - - col1 > col2 * - 64
----
0

skipif mysql # not compatible
query I rowsort label-8847
SELECT - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 WHERE + 59 * + - col1 * - - col1 > col2 * - 64
----
0

query I rowsort
SELECT DISTINCT - - col1 FROM tab2 AS cor0 WHERE NOT NULL <= - ( - col0 )
----

query I rowsort
SELECT DISTINCT + 45 + col2 + - col0 AS col2 FROM tab1 AS cor0
----
19
22
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8850
SELECT CAST( - ( + 22 ) AS SIGNED ) AS col1 FROM tab0
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-8850
SELECT CAST ( - ( + 22 ) AS INTEGER ) AS col1 FROM tab0
----
-22
-22
-22

query I rowsort
SELECT + - col0 FROM tab2 WHERE - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 54 + - 84 FROM tab0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT DISTINCT + COUNT( * ) - + 59 - + COUNT( * ) * 28 AS col2 FROM tab1
----
-140

skipif mysql # not compatible
query I rowsort label-8853
SELECT DISTINCT + COUNT ( * ) - + 59 - + COUNT ( * ) * 28 AS col2 FROM tab1
----
-140

query I rowsort
SELECT - col0 * + 14 + - 53 AS col2 FROM tab0 AS cor0
----
-1271
-1411
-263

query I rowsort
SELECT ALL + col1 * + 99 * + 66 * - col2 AS col0 FROM tab1 AS cor0
----
-1927530
-20882664
-8781696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 38, - col2 + col0 col1 FROM tab2
----
38
17
38
23
38
24

onlyif mysql # aggregate syntax: 
query II rowsort label-8857
SELECT - + 69 AS col1, COUNT( * ) FROM tab1 AS cor0
----
-69
3

skipif mysql # not compatible
query II rowsort label-8857
SELECT - + 69 AS col1, COUNT ( * ) FROM tab1 AS cor0
----
-69
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <> - 53 + + + col2
----

query I rowsort
SELECT + 98 AS col0 FROM tab2 cor0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT ALL SUM( DISTINCT - col1 ) FROM tab2 AS cor0 WHERE NULL >= + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL SUM ( DISTINCT - col1 ) FROM tab2 AS cor0 WHERE NULL >= + 77
----
NULL

query II rowsort
SELECT + col1 AS col0, 92 * + 81 AS col0 FROM tab1 AS cor0
----
14
7452
47
7452
5
7452

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT DISTINCT + - COUNT( * ) * - COUNT( col1 ) + + 9 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8862
SELECT DISTINCT + - COUNT ( * ) * - COUNT ( col1 ) + + 9 FROM tab2 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT - + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col2 + - col1 = + + col2
----
-3

skipif mysql # not compatible
query I rowsort label-8863
SELECT - + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col2 + - col1 = + + col2
----
-3

query I rowsort
SELECT DISTINCT - col2 * + col2 - - col2 FROM tab2 AS cor0
----
-1560
-3306
-506

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT - 58 * COUNT( ALL - 81 ) FROM tab2 cor0
----
-174

skipif mysql # not compatible
query I rowsort label-8865
SELECT - 58 * COUNT ( ALL - 81 ) FROM tab2 cor0
----
-174

query I rowsort
SELECT col1 * + + col1 * + 93 AS col1 FROM tab0
----
41013
610173
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT + 60 * - COUNT( * ) FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-8867
SELECT + 60 * - COUNT ( * ) FROM tab0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT + MIN( - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8868
SELECT + MIN ( - col2 ) FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT ALL COUNT( ALL - col0 ) * 38 + - COUNT( * ) FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL COUNT ( ALL - col0 ) * 38 + - COUNT ( * ) FROM tab0
----
111

query I rowsort
SELECT - 26 * + 38 * + + 49 FROM tab0
----
-48412
-48412
-48412

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT DISTINCT - COUNT( * ) * SUM( 51 ) * + COUNT( * ) + - MIN( col2 ) * ( COUNT( * ) ) FROM tab2
----
-1446

skipif mysql # not compatible
query I rowsort label-8871
SELECT DISTINCT - COUNT ( * ) * SUM ( 51 ) * + COUNT ( * ) + - MIN ( col2 ) * ( COUNT ( * ) ) FROM tab2
----
-1446

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT DISTINCT + + SUM( - col2 ) FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8872
SELECT DISTINCT + + SUM ( - col2 ) FROM tab0 cor0
----
-156

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 12 > 76
----

query I rowsort
SELECT DISTINCT col2 * col1 AS col0 FROM tab1 WHERE col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 col1 FROM tab2 WHERE - col0 - + col1 IS NOT NULL
----
-35
-35
-35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8876
SELECT - + CAST( NULL AS DECIMAL ) * + col0 + 63 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8876
SELECT - + CAST ( NULL AS REAL ) * + col0 + 63 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE NOT col1 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8878
SELECT ALL + 36 DIV - + 49 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8878
SELECT ALL + 36 / - + 49 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col0 + + + ( + 68 ) FROM tab1 cor0 WHERE ( NOT - 73 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8880
SELECT + COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8880
SELECT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, col2 col0 FROM tab2 AS cor0 WHERE NULL <> + 3
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8882
SELECT - 55 * 42 AS col1, COUNT( * ) * - COUNT( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-2310
0

skipif mysql # not compatible
query II rowsort label-8882
SELECT - 55 * 42 AS col1, COUNT ( * ) * - COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-2310
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8883
SELECT - - col2 + + 98 - ( 72 ) DIV - col2 FROM tab1 AS cor0
----
158
167
194

skipif mysql # not compatible
query I rowsort label-8883
SELECT - - col2 + + 98 - ( 72 ) / - col2 FROM tab1 AS cor0
----
158
167
194

query II rowsort
SELECT DISTINCT - col1 AS col0, - col2 AS col0 FROM tab0 cor0
----
-1
-99
-21
-10
-81
-47

query I rowsort
SELECT - 54 + + col1 AS col2 FROM tab2 cor0
----
-3
13
23

query I rowsort
SELECT DISTINCT 44 * - 87 FROM tab0
----
-3828

query I rowsort
SELECT DISTINCT ( + col0 ) + + + 92 + + col1 FROM tab2
----
189
233
234

query I rowsort
SELECT ALL 32 + col1 * + col0 FROM tab1
----
4309
457
746

onlyif mysql # DIV for integer division: 
query I rowsort label-8889
SELECT col0 DIV + col2 + 89 FROM tab0
----
89
89
97

skipif mysql # not compatible
query I rowsort label-8889
SELECT col0 / + col2 + 89 FROM tab0
----
89
89
97

query I rowsort
SELECT + 27 + - col0 - + - 21 FROM tab1 WHERE NULL > - 35 * col1 * - col1
----

query I rowsort
SELECT ALL 17 * + + 76 FROM tab2 AS cor0
----
1292
1292
1292

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8892
SELECT ( - + col0 ) * + - col1 - - 3 + - 41 + - CAST( NULL AS SIGNED ), + 10 * - ( col0 ) * - col0 FROM tab1 AS cor0 WHERE NOT NULL >= NULL AND - 96 / col0 <= NULL
----

skipif mysql # not compatible
query II rowsort label-8892
SELECT ( - + col0 ) * + - col1 - - 3 + - 41 + - CAST ( NULL AS INTEGER ), + 10 * - ( col0 ) * - col0 FROM tab1 AS cor0 WHERE NOT NULL >= NULL AND - 96 / col0 <= NULL
----

query I rowsort
SELECT - 23 - - 69 FROM tab1 cor0
----
46
46
46

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col0 + + - 36 ) NOT IN ( + col1, + 1, col2 / - + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8895
SELECT ALL CAST( + - COUNT( * ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + col2 * + ( + 77 ) FROM tab0
----
3619
7623
770

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8897
SELECT ALL * FROM tab1 AS cor0 WHERE 19 = - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8897
SELECT ALL * FROM tab1 AS cor0 WHERE 19 = - + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8898
SELECT ALL + 14 DIV - - 97 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8898
SELECT ALL + 14 / - - 97 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8899
SELECT * FROM tab1 AS cor0 WHERE NOT + 13 + + col2 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8899
SELECT * FROM tab1 AS cor0 WHERE NOT + 13 + + col2 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT 74 * - COUNT( * ) AS col2 FROM tab1
----
-222

skipif mysql # not compatible
query I rowsort label-8900
SELECT 74 * - COUNT ( * ) AS col2 FROM tab1
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT + COUNT( * ) * + - SUM( - 20 ) FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-8901
SELECT + COUNT ( * ) * + - SUM ( - 20 ) FROM tab1
----
180

query I rowsort
SELECT ALL + - 38 AS col0 FROM tab1 WHERE col0 IS NOT NULL
----
-38
-38
-38

query I rowsort
SELECT ALL + 33 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 78 col1 FROM tab0
----
1638
6318
78

query I rowsort
SELECT ALL - 86 * + + col2 AS col0 FROM tab1
----
-5074
-5848
-8256

query I rowsort
SELECT DISTINCT + col1 * ( + - col0 ) AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

query II rowsort
SELECT DISTINCT + col0, 98 - - + 89 FROM tab2 AS cor0
----
46
187
64
187
75
187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, col1 FROM tab2 cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT col0 * - col2 + - 23 AS col1 FROM tab0
----
-728
-893
-9626

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + ( col1 ) + + 40 col1 FROM tab2
----
114
157
165

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT + COUNT( * ) * - ( + + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8911
SELECT + COUNT ( * ) * - ( + + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-8912
SELECT DISTINCT + col1 DIV col2 AS col2, + col1 FROM tab0 AS cor0
----
0
1
1
81
2
21

skipif mysql # not compatible
query II rowsort label-8912
SELECT DISTINCT + col1 / col2 AS col2, + col1 FROM tab0 AS cor0
----
0
1
1
81
2
21

query I rowsort
SELECT DISTINCT ( + 29 ) + + col0 + - 80 / - 17 AS col2 FROM tab1 AS cor0 WHERE col2 * - ( + col0 ) IS NULL
----

query II rowsort
SELECT - 60 * col2, - col0 * - - col0 * + - col2 * - 13 AS col0 FROM tab2 AS cor0
----
-1380
-632684
-2400
-2129920
-3480
-4241250

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 = + 84
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8916
SELECT - 30 / col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8916
SELECT - 30 / col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + ( 21 ) AS col0, + 94 + + + col2 + - - 78 + + col2 * col2 * col0 + + + 75 AS col1 FROM tab2 cor0
----
21
102687
21
24604
21
252605

query I rowsort
SELECT - - 25 * + col2 FROM tab2 AS cor0
----
1000
1450
575

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT DISTINCT + - COUNT( - 1 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col0 < - col0
----
-3

skipif mysql # not compatible
query I rowsort label-8919
SELECT DISTINCT + - COUNT ( - 1 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col0 < - col0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( + - ( - 64 ) IS NULL ) )
----

query I rowsort
SELECT 62 - - + col2 FROM tab2
----
102
120
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT DISTINCT - MAX( + + col0 ) + + - COUNT( * ) AS col0 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-8922
SELECT DISTINCT - MAX ( + + col0 ) + + - COUNT ( * ) AS col0 FROM tab1
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8923
SELECT * FROM tab0 WHERE NULL < + 35 - + - CAST( NULL AS SIGNED ) + - - col2 + + ( - + col2 )
----

skipif mysql # not compatible
query III rowsort label-8923
SELECT * FROM tab0 WHERE NULL < + 35 - + - CAST ( NULL AS INTEGER ) + - - col2 + + ( - + col2 )
----

query II rowsort
SELECT DISTINCT + + col2, - col0 AS col1 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT - + 86 * + + 45 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-3870
-3870
-3870

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT + COUNT( - 29 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8926
SELECT + COUNT ( - 29 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 - col0 col0 FROM tab2
----
2070
4032
5550

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT - MAX( - 87 ) AS col2 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-8928
SELECT - MAX ( - 87 ) AS col2 FROM tab1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT + COUNT( * ) FROM tab1 WHERE ( + 24 - - col2 * 58 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8929
SELECT + COUNT ( * ) FROM tab1 WHERE ( + 24 - - col2 * 58 ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8930
SELECT ALL + col1 / - 83 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE ( col2 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL + col1 / - 83 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE col2 > + 30 * col2
----

query I rowsort
SELECT ALL ( col2 ) * - 4 + - ( + col2 ) AS col2 FROM tab2
----
-115
-200
-290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8933
SELECT ALL + COUNT( * ) DIV COUNT( * ) + + SUM( col0 ) FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL + COUNT ( * ) / COUNT ( * ) + + SUM ( col0 ) FROM tab1
----
228

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT ( NULL ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT DISTINCT + SUM( + 6 ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-8935
SELECT DISTINCT + SUM ( + 6 ) FROM tab0
----
18

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 16 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE NOT ( col1 ) <> NULL
----

query I rowsort
SELECT ALL + ( + col2 ) / col0 FROM tab1 WHERE NOT NULL < ( ( col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8939
SELECT * FROM tab2 WHERE col0 * 54 + col1 IN ( + CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8939
SELECT * FROM tab2 WHERE col0 * 54 + col1 IN ( + CAST ( col1 AS INTEGER ) )
----

query I rowsort
SELECT ALL - col1 - + col2 FROM tab2 WHERE NOT + 43 NOT IN ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * col2 IS NULL
----

query I rowsort
SELECT ALL + col2 + + 69 FROM tab1
----
128
137
165

query I rowsort
SELECT - 63 AS col2 FROM tab0 WHERE col1 IS NOT NULL
----
-63
-63
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 * - col2 col1 FROM tab0 WHERE NULL < - col0
----

query I rowsort
SELECT col1 * 48 AS col1 FROM tab1
----
2256
240
672

query I rowsort
SELECT - 90 * + ( 24 ) AS col2 FROM tab0
----
-2160
-2160
-2160

query I rowsort
SELECT DISTINCT + col2 * + 96 AS col2 FROM tab2 AS cor0
----
2208
3840
5568

query I rowsort
SELECT DISTINCT 52 * - 83 AS col2 FROM tab0 AS cor0
----
-4316

query I rowsort
SELECT + ( + 86 ) AS col0 FROM tab2 cor0
----
86
86
86

query I rowsort
SELECT ALL ( col1 ) + - col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT DISTINCT 66 + - 57 AS col1 FROM tab0
----
9

query I rowsort
SELECT DISTINCT + col1 - 61 FROM tab1
----
-14
-47
-56

query III rowsort
SELECT * FROM tab2 WHERE ( ( col1 ) + 60 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE 15 * - col1 + + 55 * - ( 77 * 42 + 64 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8955
SELECT DISTINCT CAST( col1 AS SIGNED ) + col2 * - ( - 42 ) FROM tab2 cor0 WHERE + 60 * + 18 + - 58 IS NOT NULL
----
1017
1757
2503

skipif mysql # not compatible
query I rowsort label-8955
SELECT DISTINCT CAST ( col1 AS INTEGER ) + col2 * - ( - 42 ) FROM tab2 cor0 WHERE + 60 * + 18 + - 58 IS NOT NULL
----
1017
1757
2503

query I rowsort
SELECT DISTINCT col0 * - col0 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NULL
----
-2601
-7225
-8281

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT ALL - - MAX( col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL - - MAX ( col2 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT ALL + 78 + 63 FROM tab0 AS cor0 WHERE NOT + 66 * + 72 IS NULL
----
141
141
141

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 * + col0 + col0 * - col0 IS NULL
----

query I rowsort
SELECT ALL 9 - + col1 FROM tab1 AS cor0
----
-38
-5
4

query I rowsort
SELECT DISTINCT - 19 * + + col2 AS col2 FROM tab2
----
-1102
-437
-760

onlyif mysql # DIV for integer division: 
query I rowsort label-8963
SELECT + 85 DIV - col1 FROM tab1
----
-1
-17
-6

skipif mysql # not compatible
query I rowsort label-8963
SELECT + 85 / - col1 FROM tab1
----
-1
-17
-6

query I rowsort
SELECT ALL + 37 + 53 FROM tab0
----
90
90
90

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + 24 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT - - MAX( DISTINCT + col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8966
SELECT - - MAX ( DISTINCT + col0 ) FROM tab0 AS cor0
----
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT + COUNT( * ) - COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT col0 - + col1 <= ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8968
SELECT + COUNT ( * ) - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT col0 - + col1 <= ( NULL )
----
0

query I rowsort
SELECT + col2 * + 10 AS col0 FROM tab1
----
590
680
960

query I rowsort
SELECT ALL + 24 AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT 51 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT + - 36 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT DISTINCT - SUM( + + 9 ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-8973
SELECT DISTINCT - SUM ( + + 9 ) FROM tab1
----
-27

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE ( + 8 ) BETWEEN + col2 * - col1 AND + 39
----
-59
-68
-96

query I rowsort
SELECT - 42 + + col0 + 15 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8976
SELECT ALL - - 20, col1 DIV - 17 AS col1 FROM tab2 cor0
----
20
-3
20
-3
20
-4

skipif mysql # not compatible
query II rowsort label-8976
SELECT ALL - - 20, col1 / - 17 AS col1 FROM tab2 cor0
----
20
-3
20
-3
20
-4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 / + - col2 + 34 IN ( 41 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * + + col1 + + + 20 AS col1 FROM tab2 AS cor0
----
2621
4509
5949

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 5, - col0 col0 FROM tab0 AS cor0
----
5
-15
5
-87
5
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8980
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - col1 )
----

skipif mysql # not compatible
query III rowsort label-8980
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT + - ( MIN( DISTINCT - col1 ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8981
SELECT + - ( MIN ( DISTINCT - col1 ) ) FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT DISTINCT - + SUM( DISTINCT 70 ) FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-70

skipif mysql # not compatible
query I rowsort label-8982
SELECT DISTINCT - + SUM ( DISTINCT 70 ) FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-70

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL OR NOT + col0 >= + col2 + col1
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT + - 10 * - COUNT( * ) FROM tab2 cor0
----
30

skipif mysql # not compatible
query I rowsort label-8984
SELECT + - 10 * - COUNT ( * ) FROM tab2 cor0
----
30

query I rowsort
SELECT ALL + col1 + - col0 * + col2 AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-1007
-2483
-4283

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT ALL MIN( + ( + - col1 ) ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL MIN ( + ( + - col1 ) ) FROM tab1
----
-47

query I rowsort
SELECT + 90 * - col0 FROM tab2
----
-4140
-5760
-6750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 * col2 col0 FROM tab2 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( + + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + + col2 ) >= ( col0 / 9 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE + col0 NOT IN ( col2 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT + 97 * + - COUNT( * ) FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-8992
SELECT + 97 * + - COUNT ( * ) FROM tab2
----
-291

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8993
SELECT DISTINCT * FROM tab0 WHERE NOT - - col0 * + col0 * + col0 + 77 BETWEEN 58 * col0 + + col2 AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8993
SELECT DISTINCT * FROM tab0 WHERE NOT - - col0 * + col0 * + col0 + 77 BETWEEN 58 * col0 + + col2 AND ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT IN ( + 91 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8995
SELECT ALL CAST( - col1 AS SIGNED ) * 45 FROM tab0 AS cor0
----
-3645
-45
-945

skipif mysql # not compatible
query I rowsort label-8995
SELECT ALL CAST ( - col1 AS INTEGER ) * 45 FROM tab0 AS cor0
----
-3645
-45
-945

query I rowsort
SELECT DISTINCT + - 67 + + col0 FROM tab2 AS cor0
----
-21
-3
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT - 40 + + COUNT( * ) + 63 + + 19 AS col2 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8997
SELECT - 40 + + COUNT ( * ) + 63 + + 19 AS col2 FROM tab0 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT ALL COUNT( * ) + - - COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab1
----
6

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE col2 >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9000
SELECT DISTINCT col1 DIV + - col0 - - ( - 21 ) AS col2 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-9000
SELECT DISTINCT col1 / + - col0 - - ( - 21 ) AS col2 FROM tab1
----
-21

query I rowsort
SELECT + col1 * + + 84 AS col2 FROM tab2 AS cor0
----
4284
5628
6468

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9002
SELECT ALL + COUNT( * ) DIV + 57 * - COUNT( - + col2 ) - + ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL + COUNT ( * ) / + 57 * - COUNT ( - + col2 ) - + ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + col0 * - 22 AS col1 FROM tab1 AS cor0
----
-1122
-1870
-2002

query I rowsort
SELECT + col2 - + 48 FROM tab0 AS cor0
----
-1
-38
51

query I rowsort
SELECT ALL col1 * + ( - + 71 ) FROM tab1 AS cor0
----
-3337
-355
-994

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9006
SELECT + col0 * + col2 - - - col0 AS col1, + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
690
NULL
783
NULL
9506
NULL

skipif mysql # not compatible
query II rowsort label-9006
SELECT + col0 * + col2 - - - col0 AS col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
690
NULL
783
NULL
9506
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > 23
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9008
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - col0 * - - CAST( NULL AS DECIMAL ) + + 19 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9008
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - col0 * - - CAST ( NULL AS REAL ) + + 19 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( NOT ( + - 77 + + col1 / col1 ) IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL AVG ( ALL col0 ) AS col2 FROM tab1 WHERE NOT ( + col2 / + col2 NOT BETWEEN ( - col2 * - col2 - + col2 ) AND NULL )
----
NULL

query I rowsort
SELECT DISTINCT + 9 FROM tab1 WHERE NOT ( NOT col2 IS NOT NULL )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9012
SELECT - CAST( + 94 AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

skipif mysql # not compatible
query I rowsort label-9012
SELECT - CAST ( + 94 AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( + col2 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT - - COUNT( DISTINCT - col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9014
SELECT - - COUNT ( DISTINCT - col0 ) FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( NULL ) > col0 ) OR + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( col2 ) ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9017
SELECT + col0 DIV 6 * + + col1 AS col0 FROM tab0 AS cor0
----
16
162
294

skipif mysql # not compatible
query I rowsort label-9017
SELECT + col0 / 6 * + + col1 AS col0 FROM tab0 AS cor0
----
16
162
294

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - 99
----
0

skipif mysql # not compatible
query I rowsort label-9018
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - 99
----
0

query I rowsort
SELECT DISTINCT + col0 * - 20 * - + col2 * + + col1 * + - col0 FROM tab1 AS cor0
----
-42627500
-529321520
-69914880

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( + col0 * ( - col0 ) ) <= + col2 * - ( - col2 ) * 45
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab2 WHERE + col1 IS NOT NULL
----
46
64
75

query I rowsort
SELECT + 20 + + 60 AS col1 FROM tab0
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT COUNT( * ) + + 6 AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9023
SELECT COUNT ( * ) + + 6 AS col0 FROM tab1
----
9

query I rowsort
SELECT col1 + 25 FROM tab1
----
30
39
72

query I rowsort
SELECT DISTINCT 40 + - 48 FROM tab0
----
-8

query I rowsort
SELECT ALL - ( + col2 ) AS col0 FROM tab0 cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 46 IS NOT NULL
----

query II rowsort
SELECT ALL 24 AS col2, col1 FROM tab0 AS cor0
----
24
1
24
21
24
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT ALL + 79 * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-9029
SELECT ALL + 79 * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-237

query I rowsort
SELECT ALL 26 + ( - - col2 ) FROM tab0
----
125
36
73

query I rowsort
SELECT - col1 * - col2 + + + col2 + col1 FROM tab1
----
1454
3311
359

query I rowsort
SELECT ALL - 51 FROM tab2 AS cor0 WHERE - 70 * - + col1 NOT IN ( - ( - - 0 ) )
----
-51
-51
-51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 64 IS NULL
----

query I rowsort
SELECT 84 * col1 - + col2 FROM tab0 AS cor0
----
-15
1754
6757

query I rowsort
SELECT DISTINCT - col1 * + 86 FROM tab2 AS cor0
----
-4386
-5762
-6622

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT ALL + COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL + COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT 35 * + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-9037
SELECT 35 * + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
105

query I rowsort
SELECT DISTINCT - 46 AS col0 FROM tab1 AS cor0 WHERE NOT 82 IS NULL
----
-46

query I rowsort
SELECT DISTINCT col1 * + 83 FROM tab2 AS cor0
----
4233
5561
6391

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9040
SELECT - COUNT( * ) DIV 83 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9040
SELECT - COUNT ( * ) / 83 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9041
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - - 9 * + + CAST( + - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9041
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - - 9 * + + CAST ( + - col1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT MIN( ALL + + col1 ) * COUNT( * ) + - 72 AS col0 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-9042
SELECT MIN ( ALL + + col1 ) * COUNT ( * ) + - 72 AS col0 FROM tab2
----
81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 19 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - + 36 * ( - + col1 ), col1 FROM tab0 cor0
----
2916
81
36
1
756
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - 55 + col2 IN ( 32 + - col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-9045
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - 55 + col2 IN ( 32 + - col2 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9046
SELECT ALL col1 DIV + col1 AS col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL col1 / + col1 AS col2 FROM tab1 cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9047
SELECT DISTINCT * FROM tab2 cor0 WHERE - CAST( NULL AS SIGNED ) + + ( 24 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9047
SELECT DISTINCT * FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) + + ( 24 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 71 AS col0, 49 AS col2 FROM tab2 AS cor0
----
71
49
71
49
71
49

query I rowsort
SELECT - - col2 AS col2 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT ( + - col2 + - + col2 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT ALL - MIN( - 81 ) FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9051
SELECT ALL - MIN ( - 81 ) FROM tab2 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 79 + + col2 col1 FROM tab1 AS cor0
----
138
147
175

onlyif mysql # DIV for integer division: 
query I rowsort label-9053
SELECT + - col0 + col2 DIV + 46 FROM tab2 AS cor0
----
-46
-64
-74

skipif mysql # not compatible
query I rowsort label-9053
SELECT + - col0 + col2 / + 46 FROM tab2 AS cor0
----
-46
-64
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT MIN( - 1 ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9054
SELECT MIN ( - 1 ) AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT - - MIN( DISTINCT - 2 ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9055
SELECT - - MIN ( DISTINCT - 2 ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT ALL 12 + + 6 FROM tab2, tab1 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT col0 * - - col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9058
SELECT ALL - 15 FROM tab2 WHERE NOT + col2 IN ( + col0, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL - 15 FROM tab2 WHERE NOT + col2 IN ( + col0, CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + - 17 AS col0, col1 col2 FROM tab0
----
-7
21
30
81
82
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN col1 AND 94
----

query II rowsort
SELECT + - col2 + - col2 AS col2, + 72 AS col1 FROM tab2 AS cor0
----
-116
72
-46
72
-80
72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IS NULL OR NOT NULL > + col2 * + 92
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - - col1 + col0, + col0 FROM tab0 AS cor0
----
108
87
96
15
98
97

query I rowsort
SELECT 9 + - 59 AS col1 FROM tab2
----
-50
-50
-50

query II rowsort
SELECT DISTINCT + col1 AS col1, 71 FROM tab2 AS cor0
----
51
71
67
71
77
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT DISTINCT + ( + SUM( - + col1 ) ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9066
SELECT DISTINCT + ( + SUM ( - + col1 ) ) FROM tab2 AS cor0
----
-195

query II rowsort
SELECT + col0, col2 - - col2 - col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9068
SELECT + COUNT( * ) * 35 DIV + - COUNT( DISTINCT col1 ) col1 FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9068
SELECT + COUNT ( * ) * 35 / + - COUNT ( DISTINCT col1 ) col1 FROM tab2 AS cor0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9069
SELECT DISTINCT - CAST( - 98 AS SIGNED ) FROM tab2 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-9069
SELECT DISTINCT - CAST ( - 98 AS INTEGER ) FROM tab2 AS cor0
----
98

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 34 <= + 6 * ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9071
SELECT ALL + col2 DIV - col0 AS col0, + CAST( + col1 AS SIGNED ) FROM tab0
----
-1
1
-3
81
0
21

skipif mysql # not compatible
query II rowsort label-9071
SELECT ALL + col2 / - col0 AS col0, + CAST ( + col1 AS INTEGER ) FROM tab0
----
-1
1
-3
81
0
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9072
SELECT COUNT( DISTINCT - + col1 ) DIV MAX( + 3 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9072
SELECT COUNT ( DISTINCT - + col1 ) / MAX ( + 3 ) AS col1 FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9073
SELECT - col0 DIV - - 85 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9073
SELECT - col0 / - - 85 FROM tab1
----
-1
-1
0

query II rowsort
SELECT ALL ( + 90 ) AS col1, 74 FROM tab2
----
90
74
90
74
90
74

query I rowsort
SELECT col0 * + - 98 FROM tab1
----
-4998
-8330
-8918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9076
SELECT AVG ( DISTINCT + ( CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9076
SELECT AVG ( DISTINCT + ( CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 / 35 * - + 46 + + 87 + - 69 * 40 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 69 AS col0 FROM tab2 cor0
----
69
69
69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + ( col1 ) * + - col1 AND - + col1 - + col0
----

query I rowsort
SELECT DISTINCT + 63 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9081
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9082
SELECT + COUNT( * ) AS col1, + 54 AS col1 FROM tab0 AS cor0
----
3
54

skipif mysql # not compatible
query II rowsort label-9082
SELECT + COUNT ( * ) AS col1, + 54 AS col1 FROM tab0 AS cor0
----
3
54

query I rowsort
SELECT ALL 28 * + col0 FROM tab2 AS cor0
----
1288
1792
2100

query I rowsort
SELECT + - 92 + + + 47 AS col0 FROM tab0 AS cor0
----
-45
-45
-45

query I rowsort
SELECT - - col2 * - 57 + - - 18 AS col2 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-2661
-552
-5625

onlyif mysql # DIV for integer division: 
query I rowsort label-9086
SELECT DISTINCT - 3 DIV col0 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9086
SELECT DISTINCT - 3 / col0 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT ALL COUNT( - + col0 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9087
SELECT ALL COUNT ( - + col0 ) FROM tab0 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 59 * col1 + + 91 * - col2 - col0 col2 FROM tab2 AS cor0
----
-5148
-8247
-9306

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT ( + + COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9089
SELECT ( + + COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT + 99 + col1 AS col1 FROM tab0
----
100
120
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9091
SELECT col2 + + + CAST( + col2 AS SIGNED ) + + 9 AS col0 FROM tab0
----
103
207
29

skipif mysql # not compatible
query I rowsort label-9091
SELECT col2 + + + CAST ( + col2 AS INTEGER ) + + 9 AS col0 FROM tab0
----
103
207
29

query I rowsort
SELECT ALL + - col1 FROM tab0 WHERE - 46 * + col1 - 57 <= - + ( - + col1 ) * - + col2 - - + col2
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 + - + col2 + - 17 + + ( + col2 ) - 85 col0 FROM tab0
----
-29
-29
-29

query I rowsort
SELECT ALL + + 24 FROM tab1 WHERE NOT 50 / + - 8 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + - 45 BETWEEN + col2 + + col2 AND 93
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9096
SELECT CAST( - - 0 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9096
SELECT CAST ( - - 0 AS INTEGER ) FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT ALL COUNT( * ) * - + 69 FROM tab1 WHERE 61 * + col2 BETWEEN + + 22 / + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL COUNT ( * ) * - + 69 FROM tab1 WHERE 61 * + col2 BETWEEN + + 22 / + col1 AND NULL
----
0

query I rowsort
SELECT ALL col2 - - ( + + col1 ) * + + col1 FROM tab0
----
100
451
6608

query I rowsort
SELECT DISTINCT - 30 FROM tab0 WHERE + 77 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 >= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9101
SELECT DISTINCT + ( + CAST( - col1 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT + ( + CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL 5 FROM tab2 cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT + col0 * + 29 AS col1 FROM tab2
----
1334
1856
2175

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * - - col2 IS NOT NULL
----

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT + 24 NOT BETWEEN col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + + + 62 + - col0 + + ( col2 ) * + 96 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= - 24 + - + col1 * - 94 / col1 + - 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT - MIN( ALL + - col0 ) col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9108
SELECT - MIN ( ALL + - col0 ) col2 FROM tab0 AS cor0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 col2 FROM tab0
----
8

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT col0 >= - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9111
SELECT CAST( NULL AS DECIMAL ) + + col1 * col0 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9111
SELECT CAST ( NULL AS REAL ) + + col1 * col0 col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 4 * - col2 + - 85 AS col2 FROM tab2
----
-177
-245
-317

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT - 51 + - - COUNT( * ) col2 FROM tab0
----
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9113
SELECT - 51 + - - COUNT ( * ) col2 FROM tab0
----
-48

query I rowsort
SELECT 29 * - 10 AS col1 FROM tab1 cor0 WHERE + 12 IS NULL
----

query I rowsort
SELECT ALL + - 2 AS col1 FROM tab2 AS cor0
----
-2
-2
-2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT DISTINCT + ( - COUNT( * ) ) + + 16 - + + 76 * + 19 AS col2 FROM tab0 AS cor0
----
-1431

skipif mysql # not compatible
query I rowsort label-9117
SELECT DISTINCT + ( - COUNT ( * ) ) + + 16 - + + 76 * + 19 AS col2 FROM tab0 AS cor0
----
-1431

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9118
SELECT + ( CAST( NULL AS DECIMAL ) ) * - 9 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9118
SELECT + ( CAST ( NULL AS REAL ) ) * - 9 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + AVG ( + - col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 + - ( 98 ) + + col0 * + col2 * - + col0 AS col0 FROM tab1
----
-249698
-426314
-563138

query I rowsort
SELECT col1 - 95 AS col1 FROM tab0
----
-14
-74
-94

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9122
SELECT 43 - - + CAST( + + CAST( - col0 AS DECIMAL ) AS SIGNED ) FROM tab1
----
-42
-48
-8

skipif mysql # not compatible
query I rowsort label-9122
SELECT 43 - - + CAST ( + + CAST ( - col0 AS REAL ) AS INTEGER ) FROM tab1
----
-42
-48
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 + - + col2 col2 FROM tab0
----
-22
30
67

query I rowsort
SELECT col1 * - - col2 + - + col2 AS col1 FROM tab1
----
1248
236
3128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - - 71 + - col2 col1 FROM tab2 AS cor0
----
3243
4504
5267

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9126
SELECT + MIN( col1 ) DIV - 73 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9126
SELECT + MIN ( col1 ) / - 73 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT - col2 + - col1 IS NOT NULL
----

query II rowsort
SELECT + + col1, ( 43 ) AS col0 FROM tab2 AS cor0
----
51
43
67
43
77
43

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 79 * + col2 NOT BETWEEN - + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9130
SELECT DISTINCT - COUNT( * ) AS col2, + MIN( ALL + 77 ) AS col2 FROM tab2 cor0
----
-3
77

skipif mysql # not compatible
query II rowsort label-9130
SELECT DISTINCT - COUNT ( * ) AS col2, + MIN ( ALL + 77 ) AS col2 FROM tab2 cor0
----
-3
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 81 col0 FROM tab2 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 86, 46 col0 FROM tab1 AS cor0
----
-86
46

query I rowsort
SELECT + 56 + + + col0 * - col2 * - col1 AS col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN 55 AND col0
----

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9136
SELECT col1 + CAST( - ( - col2 ) AS SIGNED ) + - - col1 AS col1 FROM tab1
----
124
162
69

skipif mysql # not compatible
query I rowsort label-9136
SELECT col1 + CAST ( - ( - col2 ) AS INTEGER ) + - - col1 AS col1 FROM tab1
----
124
162
69

query II rowsort
SELECT DISTINCT ( 1 ), ( + col1 ) AS col2 FROM tab1
----
1
14
1
47
1
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> - 23
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 39 IS NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE - - col1 >= col1
----
51
85
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 / + col0 >= - col2 + - ( + 65 ) AND NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 92 + - 19 FROM tab0 AS cor0
----
-111
-111
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT DISTINCT - MAX( ALL + col1 ) AS col0 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9143
SELECT DISTINCT - MAX ( ALL + col1 ) AS col0 FROM tab0 cor0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-9144
SELECT DISTINCT + COUNT( * ) AS col0, + 12 + - COUNT( * ) FROM tab2 AS cor0
----
3
9

skipif mysql # not compatible
query II rowsort label-9144
SELECT DISTINCT + COUNT ( * ) AS col0, + 12 + - COUNT ( * ) FROM tab2 AS cor0
----
3
9

query I rowsort
SELECT 27 + ( + + col1 ) FROM tab0 AS cor0
----
108
28
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9146
SELECT ALL + CAST( NULL AS SIGNED ) * ( - AVG ( - col0 ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL + CAST ( NULL AS INTEGER ) * ( - AVG ( - col0 ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 + - 29 * + col1 * - - 12 + + 38 * + col2 FROM tab2
----
-16828
-21037
-25212

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 62 col0 FROM tab2 WHERE ( + 3 <> NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9149
SELECT DISTINCT + COUNT( * ) * - - 52 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9149
SELECT DISTINCT + COUNT ( * ) * - - 52 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT ALL + COUNT( * ) + + 81 + - + COUNT( * ) * 76 AS col0 FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-9150
SELECT ALL + COUNT ( * ) + + 81 + - + COUNT ( * ) * 76 AS col0 FROM tab1
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT ALL COUNT( * ) + + 5 + + - MAX( DISTINCT 52 ) * 96 AS col1 FROM tab1
----
-4984

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL COUNT ( * ) + + 5 + + - MAX ( DISTINCT 52 ) * 96 AS col1 FROM tab1
----
-4984

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col0 = col1
----

query I rowsort
SELECT DISTINCT 21 * - col0 AS col0 FROM tab0 AS cor0
----
-1827
-2037
-315

query I rowsort
SELECT DISTINCT + col1 + + col0 FROM tab0 WHERE NOT + 83 + + col2 IS NOT NULL
----

query II rowsort
SELECT ALL - + col2, col0 FROM tab0 AS cor0 WHERE - ( + + 8 ) = 74
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT + 4 * 27 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col2, col0 + + - col0 AS col2 FROM tab0 AS cor0
----
10
0
47
0
99
0

query I rowsort
SELECT ALL 40 * + 60 * col1 * col0 - 10 * + - 18 + - col0 AS col2 FROM tab1 AS cor0
----
1020095
10264889
1713729

query II rowsort
SELECT - - col0, + col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT 6 * - 96 AS col2 FROM tab2 cor0
----
-576
-576
-576

onlyif mysql # DIV for integer division: 
query I rowsort label-9161
SELECT DISTINCT - + col2 DIV - 66 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9161
SELECT DISTINCT - + col2 / - 66 FROM tab1 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9162
SELECT CAST( - 49 AS SIGNED ) FROM tab0 AS cor0
----
-49
-49
-49

skipif mysql # not compatible
query I rowsort label-9162
SELECT CAST ( - 49 AS INTEGER ) FROM tab0 AS cor0
----
-49
-49
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 80 col2 FROM tab1 AS cor0
----
-80
-80
-80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 61 NOT BETWEEN - 14 + + col0 AND - + 24 * - - col0 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 col0 FROM tab0 AS cor0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT ALL MAX( DISTINCT + 34 ) AS col0 FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL MAX ( DISTINCT + 34 ) AS col0 FROM tab2 AS cor0
----
34

query II rowsort
SELECT - 23 AS col1, - col0 FROM tab2
----
-23
-46
-23
-64
-23
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9168
SELECT DISTINCT + MIN( - CAST( - + col0 AS SIGNED ) ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9168
SELECT DISTINCT + MIN ( - CAST ( - + col0 AS INTEGER ) ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT SUM( - ( ( col0 ) ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-9169
SELECT SUM ( - ( ( col0 ) ) ) FROM tab0
----
-199

query III rowsort
SELECT ALL * FROM tab1 WHERE - 20 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 97 + - col0 FROM tab1 AS cor0
----
12
46
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9172
SELECT DISTINCT + COUNT( * ) AS col2, CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9172
SELECT DISTINCT + COUNT ( * ) AS col2, CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT 44 * - 35 + - 81 + - 13 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f2297de291500fe82731bd35c22a3108

query I rowsort
SELECT col1 + - - 26 FROM tab1
----
31
40
73

query II rowsort
SELECT DISTINCT + col2 AS col0, col1 FROM tab2 WHERE NULL IN ( col0 * - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9176
SELECT - COUNT( * ) AS col2, COUNT( * ) + - 93 - + 10 AS col0 FROM tab0 WHERE NULL IN ( + col1, 94 / + col1 * + + 85 )
----
0
-103

skipif mysql # not compatible
query II rowsort label-9176
SELECT - COUNT ( * ) AS col2, COUNT ( * ) + - 93 - + 10 AS col0 FROM tab0 WHERE NULL IN ( + col1, 94 / + col1 * + + 85 )
----
0
-103

query I rowsort
SELECT DISTINCT col2 - - + 39 FROM tab0 AS cor0
----
138
49
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT ALL - 75 * + + 98 - 41 - - - MAX( - col2 ) - + + 87 AS col2 FROM tab1 AS cor0
----
-7419

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL - 75 * + + 98 - 41 - - - MAX ( - col2 ) - + + 87 AS col2 FROM tab1 AS cor0
----
-7419

query II rowsort
SELECT DISTINCT + col1 * - ( + col2 ) * + col0 + col1 + ( + col0 ) + col0 + - col2, + col2 FROM tab0 cor0 WHERE NOT ( NULL ) > - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 51 * col2 col0 FROM tab2 AS cor0
----
1173
2040
2958

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9181
SELECT DISTINCT col1 * 19 DIV - + CAST( + col0 AS SIGNED ) AS col0 FROM tab2
----
-16
-21
-22

skipif mysql # not compatible
query I rowsort label-9181
SELECT DISTINCT col1 * 19 / - + CAST ( + col0 AS INTEGER ) AS col0 FROM tab2
----
-16
-21
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9182
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT ( - col2 ) - + col2 * col1 * - 19 / - CAST( - ( - col0 ) AS SIGNED ) * - 52 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9182
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT ( - col2 ) - + col2 * col1 * - 19 / - CAST ( - ( - col0 ) AS INTEGER ) * - 52 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9183
SELECT * FROM tab2 WHERE NOT - + 42 + + + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9183
SELECT * FROM tab2 WHERE NOT - + 42 + + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col2, 87 FROM tab1
----
59
87
68
87
96
87

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 * col2 + - 6 + - - 43 < NULL
----

query I rowsort
SELECT DISTINCT ( + + col1 ) AS col0 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT + 44 * - - col0 * + - col0 * 61 AS col1 FROM tab0
----
-20315196
-25253756
-603900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9188
SELECT ALL + CAST( 85 AS SIGNED ) * - 44 - - col1 * col1 AS col0 FROM tab2 AS cor0
----
-1139
2189
749

skipif mysql # not compatible
query I rowsort label-9188
SELECT ALL + CAST ( 85 AS INTEGER ) * - 44 - - col1 * col1 AS col0 FROM tab2 AS cor0
----
-1139
2189
749

query I rowsort
SELECT DISTINCT - col1 * + 23 * - col2 FROM tab0 AS cor0
----
2277
4830
87561

onlyif mysql # DIV for integer division: 
query I rowsort label-9190
SELECT ALL - col2 DIV + - 65 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9190
SELECT ALL - col2 / + - 65 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9191
SELECT ALL col0 * 44 DIV + col0, 71 AS col0 FROM tab2 cor0
----
44
71
44
71
44
71

skipif mysql # not compatible
query II rowsort label-9191
SELECT ALL col0 * 44 / + col0, 71 AS col0 FROM tab2 cor0
----
44
71
44
71
44
71

query II rowsort
SELECT ALL - 68 AS col1, - col1 AS col2 FROM tab0 AS cor0
----
-68
-1
-68
-21
-68
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 > + col0 * - 98 / - - 50
----

query I rowsort
SELECT ALL - + 11 + + col0 + col2 * - + col2 + col0 FROM tab2 cor0
----
-1483
-3225
-448

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9195
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 * + CAST( + - col1 AS SIGNED ), - 90 + + col1, - - 2 + + - col1 )
----

skipif mysql # not compatible
query III rowsort label-9195
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 * + CAST ( + - col1 AS INTEGER ), - 90 + + col1, - - 2 + + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9196
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + 39 - col0 * - col1 / + 56 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9196
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + 39 - col0 * - col1 / + 56 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * - - col1 + + col1 FROM tab1 AS cor0
----
430
4324
728

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 15 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT + COUNT( DISTINCT + 50 ) + - 73 AS col2 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-9199
SELECT + COUNT ( DISTINCT + 50 ) + - 73 AS col2 FROM tab2
----
-72

query I rowsort
SELECT ALL col1 + 43 AS col1 FROM tab2
----
110
120
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9201
SELECT DISTINCT 56 + col0 + - 19 DIV + 25 FROM tab2
----
102
120
131

skipif mysql # not compatible
query I rowsort label-9201
SELECT DISTINCT 56 + col0 + - 19 / + 25 FROM tab2
----
102
120
131

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT ALL COUNT( ALL - + col0 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9202
SELECT ALL COUNT ( ALL - + col0 ) col2 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9203
SELECT + 12 * + - col1 - + + col0 + - 8 DIV 92 AS col1 FROM tab0 AS cor0
----
-109
-339
-987

skipif mysql # not compatible
query I rowsort label-9203
SELECT + 12 * + - col1 - + + col0 + - 8 / 92 AS col1 FROM tab0 AS cor0
----
-109
-339
-987

query II rowsort
SELECT ALL - - col1 AS col0, - col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

query I rowsort
SELECT - ( col2 ) FROM tab0 AS cor0 WHERE col1 * - col0 + 10 * 21 IS NULL
----

query I rowsort
SELECT DISTINCT + 33 * + + col0 + + col2 AS col0 FROM tab0
----
2881
3300
542

onlyif mysql # DIV for integer division: 
query I rowsort label-9207
SELECT DISTINCT - 39 + + 90 + + - col1 DIV - 19 FROM tab0
----
51
52
55

skipif mysql # not compatible
query I rowsort label-9207
SELECT DISTINCT - 39 + + 90 + + - col1 / - 19 FROM tab0
----
51
52
55

query I rowsort
SELECT DISTINCT 58 - - col1 * + col1 * 16 FROM tab0 cor0
----
105034
7114
74

query I rowsort
SELECT ALL + 45 + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT ALL - COUNT( * ) * - 27 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL - COUNT ( * ) * - 27 FROM tab1 AS cor0
----
81

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) < - col1 / col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 - - col2 - - col0 + + 72 * - col2 * - + 72 * - - col0 col0, + col0 AS col0 FROM tab2 AS cor0
----
13271104
64
22550475
75
5484718
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col2, col2 col1 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT ALL col2 * + - 25 - + + col1 FROM tab1 AS cor0
----
-1480
-1747
-2414

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT - 27 * + - col0 FROM tab1
----
1377
2295
2457

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 IN ( + + 93 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 col1 FROM tab0
----
62

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN 40 + + + ( - 56 ) + - - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT DISTINCT - + COUNT( * ) * 69 FROM tab2 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-9220
SELECT DISTINCT - + COUNT ( * ) * 69 FROM tab2 AS cor0
----
-207

query II rowsort
SELECT - col0 AS col1, col2 * - + col1 AS col1 FROM tab2
----
-46
-1173
-64
-3080
-75
-3886

query I rowsort
SELECT - col1 * + col1 * ( - + col1 ) AS col0 FROM tab1
----
103823
125
2744

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL > 39
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9224
SELECT + CAST( NULL AS SIGNED ) * MAX( DISTINCT 89 ) * + 69 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9224
SELECT + CAST ( NULL AS INTEGER ) * MAX ( DISTINCT 89 ) * + 69 AS col0 FROM tab1
----
NULL

query II rowsort
SELECT ALL - 35 * 15 + - col0, col2 FROM tab2 AS cor0
----
-571
23
-589
40
-600
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9226
SELECT - CAST( + - COUNT( * ) AS SIGNED ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9226
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + - 42 * - - col2 AS col1 FROM tab2 AS cor0
----
-1680
-2436
-966

query II rowsort
SELECT - - 36 AS col2, col2 * col0 FROM tab1 AS cor0
----
36
4896
36
5015
36
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT - MIN( ALL + - col2 ) FROM tab1 AS cor0 WHERE + col1 * + col0 / - 30 + - 76 * - col1 * 22 IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-9229
SELECT - MIN ( ALL + - col2 ) FROM tab1 AS cor0 WHERE + col1 * + col0 / - 30 + - 76 * - col1 * 22 IS NOT NULL
----
96

query I rowsort
SELECT ALL + col2 + - ( + + col1 ) AS col0 FROM tab1
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9231
SELECT ALL + col2 + - CAST( + 69 AS SIGNED ) FROM tab0
----
-22
-59
30

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL + col2 + - CAST ( + 69 AS INTEGER ) FROM tab0
----
-22
-59
30

query I rowsort
SELECT DISTINCT 20 + 44 FROM tab1
----
64

query I rowsort
SELECT ALL + + col2 FROM tab0 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 col1, col1 col0 FROM tab1 WHERE NOT col2 * - - col1 BETWEEN - + 14 AND + 22
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT SUM( ALL + col2 ) - - 51 AS col1 FROM tab0
----
207

skipif mysql # not compatible
query I rowsort label-9235
SELECT SUM ( ALL + col2 ) - - 51 AS col1 FROM tab0
----
207

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - 7 + 31
----

query I rowsort
SELECT col0 * + 32 + col2 + ( - col0 ) * + 70 AS col0 FROM tab1
----
-1842
-3171
-3390

onlyif mysql # aggregate syntax: 
query II rowsort label-9238
SELECT ALL - COUNT( * ), ( + - 10 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
-10

skipif mysql # not compatible
query II rowsort label-9238
SELECT ALL - COUNT ( * ), ( + - 10 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
-10

query I rowsort
SELECT DISTINCT - col2 + + col2 + - + 95 FROM tab0
----
-95

query I rowsort
SELECT - + ( + 12 ) FROM tab1 AS cor0
----
-12
-12
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 col0, - 64 AS col1 FROM tab0 AS cor0
----
1
-64
21
-64
81
-64

query I rowsort
SELECT col2 - - 85 FROM tab0 WHERE NOT + 8 > - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9243
SELECT DISTINCT 98 col0, COUNT( * ) AS col2 FROM tab0
----
98
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9243
SELECT DISTINCT 98 col0, COUNT ( * ) AS col2 FROM tab0
----
98
3

query II rowsort
SELECT col0 AS col2, 60 AS col2 FROM tab2
----
46
60
64
60
75
60

query I rowsort
SELECT col1 * 83 FROM tab2 WHERE NOT + + col0 - + + col2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 73 * + ( col0 ) col2 FROM tab1
----
-3723
-6205
-6643

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 53 AS col1, col2 col2 FROM tab1
----
53
59
53
68
53
96

onlyif mysql # DIV for integer division: 
query II rowsort label-9248
SELECT ALL + + ( + col2 ) AS col1, ( - 19 ) DIV + + 76 + - col0 AS col0 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

skipif mysql # not compatible
query II rowsort label-9248
SELECT ALL + + ( + col2 ) AS col1, ( - 19 ) / + + 76 + - col0 AS col0 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT + 17 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN + col0 / 43 AND + col0
----

query I rowsort
SELECT + 80 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT DISTINCT + - 46 * - + COUNT( * ) FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-9251
SELECT DISTINCT + - 46 * - + COUNT ( * ) FROM tab1 AS cor0
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9252
SELECT + col2 FROM tab1 cor0 WHERE - CAST( NULL AS SIGNED ) * - 29 IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9252
SELECT + col2 FROM tab1 cor0 WHERE - CAST ( NULL AS INTEGER ) * - 29 IS NULL
----
59
68
96

query I rowsort
SELECT - - 68 * - 69 + - col0 * - ( - - col1 ) FROM tab0 AS cor0
----
-2865
-3477
-4595

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT ( col0 * - + 67 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT ALL - COUNT( * ) + + 1 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL - COUNT ( * ) + + 1 FROM tab0 AS cor0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9256
SELECT - SUM( ALL col0 ) / 63 + + - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9256
SELECT - SUM ( ALL col0 ) / 63 + + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT col2 + - + 56 * col0 + col0 FROM tab0
----
-4775
-5236
-778

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT + 94 + - MAX( DISTINCT - col0 ) * 90 - COUNT( * ) AS col1 FROM tab1
----
4681

skipif mysql # not compatible
query I rowsort label-9258
SELECT + 94 + - MAX ( DISTINCT - col0 ) * 90 - COUNT ( * ) AS col1 FROM tab1
----
4681

onlyif mysql # DIV for integer division: 
query I rowsort label-9259
SELECT col0 + + col0 - - + col2 DIV - 1 FROM tab0
----
-17
164
95

skipif mysql # not compatible
query I rowsort label-9259
SELECT col0 + + col0 - - + col2 / - 1 FROM tab0
----
-17
164
95

query I rowsort
SELECT - col0 + col1 + + + col0 + - + col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE NULL = ( + - 14 + + col2 )
----

query I rowsort
SELECT - - col2 FROM tab2 WHERE + col2 NOT BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT DISTINCT - 54 + + COUNT( ( + 98 ) ) FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-9263
SELECT DISTINCT - 54 + + COUNT ( ( + 98 ) ) FROM tab0
----
-51

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( col1 ) BETWEEN col0 * - - col1 AND + + 26
----

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE - 90 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT + 34 + COUNT( * ) AS col0 FROM tab0, tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-9266
SELECT + 34 + COUNT ( * ) AS col0 FROM tab0, tab2 AS cor0
----
43

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL IN ( + ( + col1 ), col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 + + - 35 - col0 / - col1 BETWEEN col0 AND + 80
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9269
SELECT ( + ( 93 ) ) * + CAST( + + col0 AS SIGNED ) + - - 7 FROM tab0 cor0
----
1402
8098
9028

skipif mysql # not compatible
query I rowsort label-9269
SELECT ( + ( 93 ) ) * + CAST ( + + col0 AS INTEGER ) + - - 7 FROM tab0 cor0
----
1402
8098
9028

onlyif mysql # DIV for integer division: 
query II rowsort label-9270
SELECT + - col1 DIV + - 72 col0, ( - col0 ) AS col0 FROM tab2 AS cor0
----
0
-46
0
-75
1
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9270
SELECT + - col1 / + - 72 col0, ( - col0 ) AS col0 FROM tab2 AS cor0
----
0
-46
0
-75
1
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT DISTINCT + MAX( DISTINCT + 26 ) AS col2 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT + MAX ( DISTINCT + 26 ) AS col2 FROM tab2 AS cor0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9272
SELECT 99 * + - CAST( + - col0 AS SIGNED ) AS col1 FROM tab0
----
1485
8613
9603

skipif mysql # not compatible
query I rowsort label-9272
SELECT 99 * + - CAST ( + - col0 AS INTEGER ) AS col1 FROM tab0
----
1485
8613
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT MAX( + col0 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
97

skipif mysql # not compatible
query I rowsort label-9273
SELECT MAX ( + col0 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9274
SELECT DISTINCT 39 DIV - + col0 AS col0 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT 39 / - + col0 AS col0 FROM tab0
----
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9275
SELECT ALL 66 DIV + 68 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9275
SELECT ALL 66 / + 68 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - + ( 9 ) AS col2 FROM tab2 AS cor0
----
-9
-9
-9

query I rowsort
SELECT DISTINCT + - 30 AS col2 FROM tab2 AS cor0
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col2, col1 col0 FROM tab1 cor0
----
51
14
85
5
91
47

query I rowsort
SELECT col1 + + col2 + - + 42 FROM tab1 AS cor0
----
22
68
73

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + - ( - col0 ) + - col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 95 col0, + 88 * col2 + - col0 * - 53 col0 FROM tab0 AS cor0
----
95
13853
95
4931
95
5491

query I rowsort
SELECT - + 41 * + - col1 + 19 AS col2 FROM tab1 AS cor0
----
1946
224
593

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9283
SELECT + col1 * col1 * - 91 + - ( - - CAST( NULL AS SIGNED ) ) / - + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9283
SELECT + col1 * col1 * - 91 + - ( - - CAST ( NULL AS INTEGER ) ) / - + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 * - 81 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 + - + col1 * + - col0 < - 73 * 51
----
1215
7047
7857

onlyif mysql # DIV for integer division: 
query I rowsort label-9285
SELECT + - col2 DIV - col0 col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9285
SELECT + - col2 / - col0 col2 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT + + ( COUNT( ALL - + col0 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9286
SELECT + + ( COUNT ( ALL - + col0 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 81 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9289
SELECT + ( + 21 ) / col1 * CAST( NULL AS DECIMAL ) + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9289
SELECT + ( + 21 ) / col1 * CAST ( NULL AS REAL ) + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - col2 ) FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT - + 43 * + col0 FROM tab0 AS cor0
----
-3741
-4171
-645

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 * - + col1 * 75 * col0 col2 FROM tab0
----
12469275
662025
8292375

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT 17 IS NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 68 col0 FROM tab2 AS cor0
----
68
68
68

query I rowsort
SELECT ALL + 72 * - col1 FROM tab0 AS cor0
----
-1512
-5832
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9296
SELECT DISTINCT COUNT( * ) DIV + 60 AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9296
SELECT DISTINCT COUNT ( * ) / + 60 AS col0 FROM tab1 cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT NULL = - col1 )
----

query I rowsort
SELECT ALL + col1 * - 53 FROM tab1 AS cor0
----
-2491
-265
-742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9299
SELECT ALL CAST( - + 72 AS SIGNED ) col1 FROM tab0
----
-72
-72
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9299
SELECT ALL CAST ( - + 72 AS INTEGER ) col1 FROM tab0
----
-72
-72
-72

query II rowsort
SELECT col0 * - 57 AS col1, 47 FROM tab1
----
-2907
47
-4845
47
-5187
47

query I rowsort
SELECT col1 + - ( + col2 ) FROM tab2
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9302
SELECT - col1 + + 28 AS col0, + 68 * + - 63 * + CAST( col0 AS SIGNED ) FROM tab1
----
-19
-389844
14
-218484
23
-364140

skipif mysql # not compatible
query II rowsort label-9302
SELECT - col1 + + 28 AS col0, + 68 * + - 63 * + CAST ( col0 AS INTEGER ) FROM tab1
----
-19
-389844
14
-218484
23
-364140

onlyif mysql # DIV for integer division: 
query I rowsort label-9303
SELECT col2 DIV 86 + + 35 AS col0 FROM tab2
----
35
35
35

skipif mysql # not compatible
query I rowsort label-9303
SELECT col2 / 86 + + 35 AS col0 FROM tab2
----
35
35
35

query I rowsort
SELECT - col1 + - 77 AS col1 FROM tab0 cor0
----
-158
-78
-98

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL >= + col0
----

query I rowsort
SELECT ALL + col0 + - + col2 + col1 FROM tab2 AS cor0
----
101
74
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9307
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT 1 FROM tab2 WHERE - col0 IS NOT NULL
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9309
SELECT ALL - col0 + - CAST( - - 18 AS SIGNED ) AS col0 FROM tab0 cor0
----
-105
-115
-33

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL - col0 + - CAST ( - - 18 AS INTEGER ) AS col0 FROM tab0 cor0
----
-105
-115
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT - 58 + 67 * - COUNT( * ) col2 FROM tab1 AS cor0
----
-259

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9310
SELECT - 58 + 67 * - COUNT ( * ) col2 FROM tab1 AS cor0
----
-259

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 > + col0 * + 41 - - - col2
----

query I rowsort
SELECT ALL ( - 46 ) AS col0 FROM tab2 AS cor0
----
-46
-46
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9313
SELECT ALL MAX( - 22 ) FROM tab1 AS cor0 WHERE NOT col2 - - - col1 * + col2 + + + CAST( NULL AS SIGNED ) = - 79 * + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL MAX ( - 22 ) FROM tab1 AS cor0 WHERE NOT col2 - - - col1 * + col2 + + + CAST ( NULL AS INTEGER ) = - 79 * + 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT DISTINCT SUM( DISTINCT + col2 ) col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9314
SELECT DISTINCT SUM ( DISTINCT + col2 ) col1 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT + COUNT( * ) + + 9 FROM tab2 cor0
----
12

skipif mysql # not compatible
query I rowsort label-9315
SELECT + COUNT ( * ) + + 9 FROM tab2 cor0
----
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9316
SELECT ALL col2 * CAST( NULL AS DECIMAL ) + + - col0 * + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9316
SELECT ALL col2 * CAST ( NULL AS REAL ) + + - col0 * + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + + 17 + + col1 * col0 - - + 13 AS col0 FROM tab1 AS cor0
----
4354
460
758

query I rowsort
SELECT - 7 * + col0 + - + col0 FROM tab1
----
-408
-680
-728

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT 75 > - + col2 + + - col0 + + col0
----

query I rowsort
SELECT DISTINCT 11 * - col2 + - 23 AS col2 FROM tab1
----
-1079
-672
-771

query I rowsort
SELECT ALL col1 - + 75 FROM tab2
----
-24
-8
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9322
SELECT ALL - col1 + - + 3 + + col0 * - - col0 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL - col1 + - + 3 + + col0 * - - col0 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT + ( ( + SUM( ALL 83 ) ) ) - + - 17 AS col1 FROM tab2 AS cor0
----
266

skipif mysql # not compatible
query I rowsort label-9323
SELECT + ( ( + SUM ( ALL 83 ) ) ) - + - 17 AS col1 FROM tab2 AS cor0
----
266

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= + col2 + + + ( - - col0 ) / 19 + - ( - col1 )
----

query I rowsort
SELECT - - ( - 52 ) * col0 * + col2 FROM tab2 AS cor0
----
-133120
-226200
-55016

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT DISTINCT - SUM( DISTINCT + col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-9326
SELECT DISTINCT - SUM ( DISTINCT + col0 ) AS col1 FROM tab0
----
-199

query I rowsort
SELECT DISTINCT + + 16 * + col1 AS col0 FROM tab1 AS cor0
----
224
752
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 46 * col1 col0, + col0 AS col2 FROM tab1 AS cor0
----
2162
91
230
85
644
51

query I rowsort
SELECT - col2 * - + ( + + 99 ) AS col2 FROM tab0 AS cor0
----
4653
9801
990

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> - ( col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 73 IS NULL AND - 13 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT - - COUNT( DISTINCT - ( col1 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9332
SELECT - - COUNT ( DISTINCT - ( col1 ) ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 IN ( - 38 + - - 94 + - col2 + + col0 * + 26 + - 82 + col1 * + col2, col2, + - col0 * + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col0 col0 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT ALL SUM( + col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL SUM ( + col2 ) AS col1 FROM tab1
----
223

query II rowsort
SELECT ALL 78, 26 AS col2 FROM tab0
----
78
26
78
26
78
26

query I rowsort
SELECT DISTINCT col1 + 71 AS col0 FROM tab0
----
152
72
92

onlyif mysql # aggregate syntax: 
query II rowsort label-9338
SELECT - COUNT( * ) AS col1, - 51 AS col0 FROM tab2
----
-3
-51

skipif mysql # not compatible
query II rowsort label-9338
SELECT - COUNT ( * ) AS col1, - 51 AS col0 FROM tab2
----
-3
-51

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - ( col1 ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 45 + 39 FROM tab2
----
84

query I rowsort
SELECT ALL + ( - - 31 ) * - + 82 FROM tab1
----
-2542
-2542
-2542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9342
SELECT - CAST( - 40 AS SIGNED ) + col1 AS col0 FROM tab2 AS cor0
----
107
117
91

skipif mysql # not compatible
query I rowsort label-9342
SELECT - CAST ( - 40 AS INTEGER ) + col1 AS col0 FROM tab2 AS cor0
----
107
117
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9344
SELECT DISTINCT col0 * ( - CAST( NULL AS SIGNED ) ) + 35 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9344
SELECT DISTINCT col0 * ( - CAST ( NULL AS INTEGER ) ) + 35 AS col0 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE 69 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT DISTINCT COUNT( * ) * 92 col1 FROM tab1
----
276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9346
SELECT DISTINCT COUNT ( * ) * 92 col1 FROM tab1
----
276

query I rowsort
SELECT - col1 - + 56 AS col0 FROM tab2
----
-107
-123
-133

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col1 + - col1 )
----

query I rowsort
SELECT + col2 + 49 AS col0 FROM tab0
----
148
59
96

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT ( col0 ) * - 78 AS col1 FROM tab2
----
-3588
-4992
-5850

query I rowsort
SELECT DISTINCT col1 * - 37 + col0 FROM tab2 WHERE col2 + + col2 NOT IN ( - 28 * 57 )
----
-1841
-2404
-2785

query I rowsort
SELECT ALL - 75 * - ( - col0 * col2 ) FROM tab2
----
-192000
-326250
-79350

query I rowsort
SELECT col2 + ( + 86 ) AS col0 FROM tab1 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 46 ) col2 FROM tab1
----
46
46
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9356
SELECT DISTINCT MIN( ( + ( - col0 ) ) ) * + SUM( col0 DIV col1 ) FROM tab1
----
-1911

skipif mysql # not compatible
query I rowsort label-9356
SELECT DISTINCT MIN ( ( + ( - col0 ) ) ) * + SUM ( col0 / col1 ) FROM tab1
----
-1911

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT ALL COUNT( * ) col2 FROM tab1 WHERE NOT ( 37 ) IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9357
SELECT ALL COUNT ( * ) col2 FROM tab1 WHERE NOT ( 37 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT ALL MIN( col0 ) * MAX( + col0 ) FROM tab2 WHERE NOT + col2 * col0 BETWEEN col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL MIN ( col0 ) * MAX ( + col0 ) FROM tab2 WHERE NOT + col2 * col0 BETWEEN col0 AND NULL
----
NULL

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 WHERE col1 / - col1 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT + col0 + col0 * col2 AS col2 FROM tab2
----
1104
2624
4425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9361
SELECT + 52 DIV COUNT( * ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-9361
SELECT + 52 / COUNT ( * ) FROM tab1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT + 58 * - COUNT( * ) FROM tab1
----
-174

skipif mysql # not compatible
query I rowsort label-9362
SELECT + 58 * - COUNT ( * ) FROM tab1
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT + MAX( col0 ) * 79 FROM tab2
----
5925

skipif mysql # not compatible
query I rowsort label-9363
SELECT + MAX ( col0 ) * 79 FROM tab2
----
5925

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * ( ( 56 ) ) col1 FROM tab1
----
-2632
-280
-784

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT COUNT( + col2 ) + - COUNT( * ) col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9365
SELECT COUNT ( + col2 ) + - COUNT ( * ) col0 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col0 * col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 46 NOT BETWEEN col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 79 FROM tab0 AS cor0 WHERE NOT - ( 35 ) NOT BETWEEN 81 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> ( - 86 * col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 + + col2 <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9371
SELECT ALL + CAST( col0 AS SIGNED ) * 67 AS col2 FROM tab1 WHERE NOT NULL = col0
----

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL + CAST ( col0 AS INTEGER ) * 67 AS col2 FROM tab1 WHERE NOT NULL = col0
----

query I rowsort
SELECT + 18 * col1 AS col0 FROM tab2
----
1206
1386
918

query I rowsort
SELECT DISTINCT + col1 * 99 AS col2 FROM tab0 AS cor0
----
2079
8019
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT + MIN( ALL - 15 ) FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9374
SELECT + MIN ( ALL - 15 ) FROM tab2 AS cor0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-9375
SELECT col1 + - col1 FROM tab0 AS cor0 WHERE NOT + col2 DIV - col0 - col2 NOT IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9375
SELECT col1 + - col1 FROM tab0 AS cor0 WHERE NOT + col2 / - col0 - col2 NOT IN ( - col2 )
----
0

onlyif mysql # DIV for integer division: 
query III rowsort label-9376
SELECT * FROM tab1 AS cor0 WHERE NOT + ( + 28 ) * - ( col1 ) BETWEEN NULL AND + 62 * + ( ( ( - col0 ) ) * ( 57 DIV + col0 ) )
----
51
14
96

skipif mysql # not compatible
query III rowsort label-9376
SELECT * FROM tab1 AS cor0 WHERE NOT + ( + 28 ) * - ( col1 ) BETWEEN NULL AND + 62 * + ( ( ( - col0 ) ) * ( 57 / + col0 ) )
----
51
14
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9377
SELECT - - col2 DIV 84 col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9377
SELECT - - col2 / 84 col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT 77 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 + - col0 * col2 IN ( col0 / + col0 )
----
77
77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9379
SELECT ALL 9 DIV - 12 col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9379
SELECT ALL 9 / - 12 col0 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 31 * 31 NOT IN ( 70 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 17 + - col0 * + col0 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9382
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9382
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col1 / + 45 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 63 * - col1 + + 87 AS col0 FROM tab1
----
3048
402
969

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT - COUNT( * ) + + - ( 28 ) FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-9385
SELECT - COUNT ( * ) + + - ( 28 ) FROM tab0
----
-31

query I rowsort
SELECT 91 + + col1 AS col2 FROM tab2
----
142
158
168

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT ALL - MIN( + col2 ) + + COUNT( * ) FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-9387
SELECT ALL - MIN ( + col2 ) + + COUNT ( * ) FROM tab1
----
-56

query I rowsort
SELECT DISTINCT 10 + - + col0 * col2 FROM tab1
----
-4886
-5005
-6178

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT + ( - - COUNT( ALL col2 ) ) + 66 * + COUNT( * ) AS col1 FROM tab0
----
201

skipif mysql # not compatible
query I rowsort label-9389
SELECT + ( - - COUNT ( ALL col2 ) ) + 66 * + COUNT ( * ) AS col1 FROM tab0
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT + COUNT( col1 ) + - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9390
SELECT + COUNT ( col1 ) + - COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col1 )
----

query I rowsort
SELECT DISTINCT col1 + 71 AS col2 FROM tab1 AS cor0
----
118
76
85

query I rowsort
SELECT col0 FROM tab0 WHERE NULL = + col1 + + col0
----

query I rowsort
SELECT 13 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9395
SELECT DISTINCT 43 - CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-9395
SELECT DISTINCT 43 - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
40

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE + col0 + - - col0 BETWEEN NULL AND ( col1 + ( 4 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT + - ( + 33 ) + COUNT( * ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-9397
SELECT + - ( + 33 ) + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-42

query I rowsort
SELECT DISTINCT 25 * + col0 + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
2196
2426
456

query I rowsort
SELECT 43 FROM tab1 cor0 WHERE - col2 IS NOT NULL
----
43
43
43

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 <> + + 7
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-61
-61
-61

query I rowsort
SELECT ALL + - 86 AS col0 FROM tab2 AS cor0
----
-86
-86
-86

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9404
SELECT ALL + SUM( - col0 ) + + SUM( - 36 ) - - COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-334

skipif mysql # not compatible
query I rowsort label-9404
SELECT ALL + SUM ( - col0 ) + + SUM ( - 36 ) - - COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-334

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT + 81 * + - COUNT( * ) * 51 FROM tab0
----
-12393

skipif mysql # not compatible
query I rowsort label-9405
SELECT + 81 * + - COUNT ( * ) * 51 FROM tab0
----
-12393

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NULL > col1 + + col1 + - 33 * col0
----

query II rowsort
SELECT col2 * + col2 AS col0, col2 FROM tab0
----
100
10
2209
47
9801
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT DISTINCT SUM( ALL + + 66 ) AS col0 FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT SUM ( ALL + + 66 ) AS col0 FROM tab0
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9409
SELECT ALL * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) < + - 71 * col0
----

skipif mysql # not compatible
query III rowsort label-9409
SELECT ALL * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) < + - 71 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9410
SELECT CAST( col2 AS SIGNED ) AS col0, col1 AS col0 FROM tab0
----
10
21
47
81
99
1

skipif mysql # not compatible
query II rowsort label-9410
SELECT CAST ( col2 AS INTEGER ) AS col0, col1 AS col0 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9411
SELECT DISTINCT * FROM tab1 WHERE ( - CAST( 69 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9411
SELECT DISTINCT * FROM tab1 WHERE ( - CAST ( 69 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * 54 AS col2 FROM tab2 AS cor0
----
-1242
-2160
-3132

query II rowsort
SELECT + col1 * - 6, - col1 AS col1 FROM tab2 AS cor0
----
-306
-51
-402
-67
-462
-77

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT ( - - col1 ) <= NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE NOT - col2 * col0 * - 39 + - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT ALL - ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9416
SELECT ALL - ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT DISTINCT + - col1 * col0 * - - col2 * - 27 AS col1 FROM tab1 AS cor0
----
1850688
677025
7852572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 col1 FROM tab0 AS cor0
----
69
69
69

query II rowsort
SELECT - + col2 AS col2, 47 FROM tab0 AS cor0
----
-10
47
-47
47
-99
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT + 5 * + 59 + - COUNT( * ) FROM tab1 AS cor0
----
292

skipif mysql # not compatible
query I rowsort label-9420
SELECT + 5 * + 59 + - COUNT ( * ) FROM tab1 AS cor0
----
292

query I rowsort
SELECT ALL col1 + - ( col2 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
28
37
9

query I rowsort
SELECT DISTINCT col1 + - col2 + col2 - + 99 FROM tab1 AS cor0
----
-52
-85
-94

query II rowsort
SELECT ALL col2, 41 FROM tab1 AS cor0
----
59
41
68
41
96
41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9424
SELECT ALL + + col0 + + - col0 + + + col2 + + CAST( NULL AS DECIMAL ) * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9424
SELECT ALL + + col0 + + - col0 + + + col2 + + CAST ( NULL AS REAL ) * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 61 + + + 82 * - - 42 - - 19 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 25a70ff63d30e0f6c99796c44bd028e5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col0 + + - col0 col1 FROM tab0
----
-153
-193
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( + 18 ) IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9428
SELECT ALL * FROM tab0 WHERE NOT ( - CAST( + - col2 AS SIGNED ) ) <> col2 * + CAST( + 67 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9428
SELECT ALL * FROM tab0 WHERE NOT ( - CAST ( + - col2 AS INTEGER ) ) <> col2 * + CAST ( + 67 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9429
SELECT ALL col2 + + col2 + col2 DIV - col1 + - 28 AS col2 FROM tab1
----
107
158
79

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL col2 + + col2 + col2 / - col1 + - 28 AS col2 FROM tab1
----
107
158
79

query I rowsort
SELECT DISTINCT - col0 + - 17 FROM tab0 WHERE NOT + 14 = 94
----
-104
-114
-32

query I rowsort
SELECT ALL 80 AS col0 FROM tab2 cor0
----
80
80
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9432
SELECT + 21 * - 75 + col1 DIV 45 + + + col0 AS col2 FROM tab1 AS cor0
----
-1483
-1490
-1524

skipif mysql # not compatible
query I rowsort label-9432
SELECT + 21 * - 75 + col1 / 45 + + + col0 AS col2 FROM tab1 AS cor0
----
-1483
-1490
-1524

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( col1 ) col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL col1 + ( - - col2 ) - col0 FROM tab1
----
-21
24
59

query III rowsort
SELECT * FROM tab0 WHERE - 93 / - 71 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9437
SELECT - 62 DIV - 90 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-9437
SELECT - 62 / - 90 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( 49 )
----

query I rowsort
SELECT - ( - ( + 37 ) ) AS col2 FROM tab0
----
37
37
37

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IN ( + col2 + - col0 + + 42, + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9441
SELECT DISTINCT - - CAST( 63 AS SIGNED ) - COUNT( * ) col1 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9441
SELECT DISTINCT - - CAST ( 63 AS INTEGER ) - COUNT ( * ) col1 FROM tab0 AS cor0
----
60

query I rowsort
SELECT - - 77 * + col2 - - 2 AS col2 FROM tab1 AS cor0
----
4545
5238
7394

query I rowsort
SELECT + 24 + + 43 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
67
67
67

query I rowsort
SELECT 76 - - col1 FROM tab0 AS cor0
----
157
77
97

query I rowsort
SELECT - - col0 - - col0 + + 42 * - 56 * + - col0 AS col0 FROM tab0 AS cor0
----
204798
228338
35310

query I rowsort
SELECT ALL + col1 * + - 60 AS col0 FROM tab1 AS cor0
----
-2820
-300
-840

query I rowsort
SELECT DISTINCT + col0 * + col0 * + - 83 AS col0 FROM tab0 AS cor0
----
-18675
-628227
-780947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 col0 FROM tab0 cor0
----
88
88
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9449
SELECT ALL CAST( - + col0 AS SIGNED ) AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9449
SELECT ALL CAST ( - + col0 AS INTEGER ) AS col1 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 BETWEEN ( NULL ) AND 41
----

query II rowsort
SELECT col0 AS col2, 10 AS col2 FROM tab0
----
15
10
87
10
97
10

query II rowsort
SELECT + col1 AS col0, + col2 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT ALL col0 * 74 FROM tab1
----
3774
6290
6734

query I rowsort
SELECT - + col0 * + 23 AS col0 FROM tab0 AS cor0
----
-2001
-2231
-345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9455
SELECT - + CAST( COUNT( * ) AS SIGNED ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9455
SELECT - + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9456
SELECT - + CAST( - col0 AS SIGNED ) FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9456
SELECT - + CAST ( - col0 AS INTEGER ) FROM tab1 cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT ALL MIN( ALL 16 ) AS col0 FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL MIN ( ALL 16 ) AS col0 FROM tab2 AS cor0
----
16

query II rowsort
SELECT DISTINCT col0, col2 FROM tab0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT DISTINCT - COUNT( * ) * - 84 col0 FROM tab1
----
252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9459
SELECT DISTINCT - COUNT ( * ) * - 84 col0 FROM tab1
----
252

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NOT 5 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT ALL 60 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # aggregate syntax: 
query II rowsort label-9462
SELECT + COUNT( * ) * - - SUM( DISTINCT 61 ), 13 * + + 33 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL
429

skipif mysql # not compatible
query II rowsort label-9462
SELECT + COUNT ( * ) * - - SUM ( DISTINCT 61 ), 13 * + + 33 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL
429

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT + MAX( ALL + - col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9463
SELECT + MAX ( ALL + - col2 ) FROM tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9464
SELECT ALL + - CAST( - 65 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
65
65
65

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL + - CAST ( - 65 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9465
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT - col1 IS NOT NULL
----
0

query I rowsort
SELECT - col2 + + 4 + + col2 AS col0 FROM tab0 AS cor0
----
4
4
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9467
SELECT ALL + CAST( NULL AS SIGNED ) + COUNT( - - col0 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL + CAST ( NULL AS INTEGER ) + COUNT ( - - col0 ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT DISTINCT + 35 + ( - - COUNT( * ) ) FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-9468
SELECT DISTINCT + 35 + ( - - COUNT ( * ) ) FROM tab0
----
38

query I rowsort
SELECT DISTINCT - col0 + col0 + - col1 + col2 * - col2 AS col1 FROM tab1
----
-3486
-4671
-9230

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT 83 + + + COUNT( * ) AS col0 FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-9470
SELECT 83 + + + COUNT ( * ) AS col0 FROM tab0
----
86

query I rowsort
SELECT DISTINCT + 32 + col0 + + col0 AS col1 FROM tab0
----
206
226
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT ( 20 ) + + 38 + + COUNT( + col0 ) + - MIN( - 31 ) AS col0 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-9472
SELECT ( 20 ) + + 38 + + COUNT ( + col0 ) + - MIN ( - 31 ) AS col0 FROM tab1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9473
SELECT COUNT( * ) + + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9473
SELECT COUNT ( * ) + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 92 * + 48 + - - ( - - 17 ) FROM tab0
----
4433

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9475
SELECT 61 * CAST( NULL AS SIGNED ) * col2 + - + ( + - 98 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9475
SELECT 61 * CAST ( NULL AS INTEGER ) * col2 + - + ( + - 98 ) AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 <> NULL
----

query I rowsort
SELECT DISTINCT 29 + + ( + col0 ) AS col2 FROM tab2
----
104
75
93

query I rowsort
SELECT 32 + - col2 + + - 33 + 53 + + col1 * col0 * + col1 * - col2 * - + col1 FROM tab1
----
13434580
626868
642456708

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT COUNT( * ) FROM tab0 WHERE ( NULL ) >= col2 * - + col1 + - col2 + + 38 - - 16 + + col1 * + col2 * - + col2
----
0

skipif mysql # not compatible
query I rowsort label-9479
SELECT COUNT ( * ) FROM tab0 WHERE ( NULL ) >= col2 * - + col1 + - col2 + + 38 - - 16 + + col1 * + col2 * - + col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 / - - 75 IS NOT NULL
----

query II rowsort
SELECT - 75 AS col1, 52 * + ( + col0 ) FROM tab1 AS cor0
----
-75
2652
-75
4420
-75
4732

query I rowsort
SELECT ALL - + ( 53 ) AS col1 FROM tab1 AS cor0
----
-53
-53
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9483
SELECT + MAX( ALL + CAST( NULL AS SIGNED ) ) - COUNT( * ) - - COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9483
SELECT + MAX ( ALL + CAST ( NULL AS INTEGER ) ) - COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT - 50 - - - 70 AS col1 FROM tab2
----
-120
-120
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT 15 * - COUNT( * ) * 77 + - + COUNT( * ) AS col0 FROM tab1
----
-3468

skipif mysql # not compatible
query I rowsort label-9485
SELECT 15 * - COUNT ( * ) * 77 + - + COUNT ( * ) AS col0 FROM tab1
----
-3468

query I rowsort
SELECT ALL - - 99 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # DIV for integer division: 
query I rowsort label-9487
SELECT + 45 DIV - col1 + - col2 FROM tab0 AS cor0
----
-12
-144
-47

skipif mysql # not compatible
query I rowsort label-9487
SELECT + 45 / - col1 + - col2 FROM tab0 AS cor0
----
-12
-144
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT ALL 69 * - + COUNT( * ) col2 FROM tab0 AS cor0
----
-207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9488
SELECT ALL 69 * - + COUNT ( * ) col2 FROM tab0 AS cor0
----
-207

query I rowsort
SELECT DISTINCT + col2 / - 77 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= + col2 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9490
SELECT ALL - col0 * CAST( - - 72 AS SIGNED ) AS col1 FROM tab0 cor0
----
-1080
-6264
-6984

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL - col0 * CAST ( - - 72 AS INTEGER ) AS col1 FROM tab0 cor0
----
-1080
-6264
-6984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9491
SELECT ALL + - COUNT( * ) * - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9491
SELECT ALL + - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9492
SELECT DISTINCT - - 21 DIV col2, col2 col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9492
SELECT DISTINCT - - 21 / col2, col2 col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9493
SELECT + 56 * - MAX( 64 ) AS col0, + MAX( ALL + - ( + col2 ) ) AS col2 FROM tab2
----
-3584
-23

skipif mysql # not compatible
query II rowsort label-9493
SELECT + 56 * - MAX ( 64 ) AS col0, + MAX ( ALL + - ( + col2 ) ) AS col2 FROM tab2
----
-3584
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-9494
SELECT col0 DIV 60 DIV col1 * - 25 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9494
SELECT col0 / 60 / col1 * - 25 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - col1 * 41 AS col1 FROM tab2
----
-2091
-2747
-3157

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT COUNT( * ) * + + 79 AS col2 FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-9496
SELECT COUNT ( * ) * + + 79 AS col2 FROM tab0
----
237

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 / - - col0 - + 24 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NOT - + 3 >= - 11 * + col0
----

query I rowsort
SELECT ALL - col1 * + 73 AS col2 FROM tab2 AS cor0
----
-3723
-4891
-5621

query I rowsort
SELECT DISTINCT - + 65 * + col1 * + 62 FROM tab0 AS cor0
----
-326430
-4030
-84630

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT + COUNT( - - ( + 21 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9501
SELECT + COUNT ( - - ( + 21 ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE col2 - - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9502
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE col2 - - col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT COUNT( * ) + - + 28 * - + MIN( - ( + 96 ) ) FROM tab2 AS cor0
----
-2685

skipif mysql # not compatible
query I rowsort label-9503
SELECT COUNT ( * ) + - + 28 * - + MIN ( - ( + 96 ) ) FROM tab2 AS cor0
----
-2685

query I rowsort
SELECT + ( - + 44 ) FROM tab1 AS cor0 WHERE - 25 * 76 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 + 65 col1 FROM tab1 AS cor0
----
122
122
122

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT DISTINCT + SUM( 75 ) AS col1 FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT + SUM ( 75 ) AS col1 FROM tab2 AS cor0
----
225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9507
SELECT MIN( ALL + CAST( + + 18 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-9507
SELECT MIN ( ALL + CAST ( + + 18 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT MIN( ALL + 19 ) FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-9508
SELECT MIN ( ALL + 19 ) FROM tab2 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT DISTINCT SUM( DISTINCT 14 ) FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-9509
SELECT DISTINCT SUM ( DISTINCT 14 ) FROM tab1 AS cor0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9510
SELECT + - COUNT( ALL - col2 ) * - 78 * - + COUNT( * ) * + - COUNT( * ) * COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
6318
NULL

skipif mysql # not compatible
query II rowsort label-9510
SELECT + - COUNT ( ALL - col2 ) * - 78 * - + COUNT ( * ) * + - COUNT ( * ) * COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
6318
NULL

query I rowsort
SELECT + ( + - 61 ) AS col2 FROM tab1 AS cor0
----
-61
-61
-61

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9512
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( + + ( 9 ) AS DECIMAL ) < + - 26 - + col0 + + col1
----

skipif mysql # not compatible
query III rowsort label-9512
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( + + ( 9 ) AS REAL ) < + - 26 - + col0 + + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9513
SELECT ALL COUNT( * ) DIV - ( 92 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL COUNT ( * ) / - ( 92 ) FROM tab0
----
0

query I rowsort
SELECT 85 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9515
SELECT ALL * FROM tab2 WHERE col2 / + + col0 * - + col2 * + CAST( NULL AS SIGNED ) * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9515
SELECT ALL * FROM tab2 WHERE col2 / + + col0 * - + col2 * + CAST ( NULL AS INTEGER ) * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT + MIN( - 53 ) FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-9516
SELECT + MIN ( - 53 ) FROM tab0
----
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - ( col0 ) col1 FROM tab0
----
174
194
30

query I rowsort
SELECT DISTINCT col0 * + col0 + - 54 FROM tab0
----
171
7515
9355

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT - + COUNT( * ) + + + 65 AS col2 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-9519
SELECT - + COUNT ( * ) + + + 65 AS col2 FROM tab1 AS cor0
----
62

query I rowsort
SELECT DISTINCT - - 5 AS col2 FROM tab1 cor0
----
5

query I rowsort
SELECT + col1 + - col2 - - col0 - + col0 FROM tab0 AS cor0
----
-98
11
34

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col1 < - + 16
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 56 col0 FROM tab1 AS cor0
----
103
61
70

query I rowsort
SELECT ALL + col1 * - - 54 + + col1 AS col2 FROM tab0
----
1155
4455
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT DISTINCT - 2 + - COUNT( * ) FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-9525
SELECT DISTINCT - 2 + - COUNT ( * ) FROM tab2
----
-5

query II rowsort
SELECT - col0, - 55 AS col1 FROM tab2
----
-46
-55
-64
-55
-75
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT COUNT( * ) * 53 AS col1 FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-9527
SELECT COUNT ( * ) * 53 AS col1 FROM tab0 AS cor0
----
159

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 54 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + - 28 * 19 FROM tab2 AS cor0
----
-532
-532
-532

query I rowsort
SELECT DISTINCT - 39 * 76 AS col1 FROM tab1 AS cor0
----
-2964

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT ALL + COUNT( * ) * 28 AS col2 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-9531
SELECT ALL + COUNT ( * ) * 28 AS col2 FROM tab0 AS cor0
----
84

query II rowsort
SELECT - col1 AS col1, col1 * - 56 FROM tab0
----
-1
-56
-21
-1176
-81
-4536

query I rowsort
SELECT + col2 * - + 98 * 22 FROM tab1
----
-127204
-146608
-206976

query I rowsort
SELECT - ( + 14 ) * 83 FROM tab2
----
-1162
-1162
-1162

onlyif mysql # aggregate syntax: 
query II rowsort label-9535
SELECT + COUNT( DISTINCT + + col0 ) AS col0, 38 FROM tab2
----
3
38

skipif mysql # not compatible
query II rowsort label-9535
SELECT + COUNT ( DISTINCT + + col0 ) AS col0, 38 FROM tab2
----
3
38

onlyif mysql # DIV for integer division: 
query I rowsort label-9536
SELECT - 66 DIV + col1 FROM tab1
----
-1
-13
-4

skipif mysql # not compatible
query I rowsort label-9536
SELECT - 66 / + col1 FROM tab1
----
-1
-13
-4

query I rowsort
SELECT col2 * - + ( + - col1 ) FROM tab0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9538
SELECT + col1 DIV col2 * + + col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9538
SELECT + col1 / col2 * + + col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9539
SELECT DISTINCT - CAST( - col2 AS SIGNED ) * + col2 col1 FROM tab2 AS cor0
----
1600
3364
529

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9539
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) * + col2 col1 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT - 82 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-9540
SELECT - 82 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-246

query I rowsort
SELECT DISTINCT - col1 * + 94 FROM tab0
----
-1974
-7614
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9542
SELECT ALL - CAST( - - 17 AS SIGNED ) * - col0 FROM tab2
----
1088
1275
782

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL - CAST ( - - 17 AS INTEGER ) * - col0 FROM tab2
----
1088
1275
782

query I rowsort
SELECT - col2 * 74 AS col1 FROM tab2
----
-1702
-2960
-4292

query I rowsort
SELECT - col0 + - + col0 + + ( - col2 ) FROM tab1 AS cor0
----
-198
-229
-250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9545
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9545
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9546
SELECT DISTINCT - 11 DIV - + COUNT( * ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9546
SELECT DISTINCT - 11 / - + COUNT ( * ) FROM tab2 cor0
----
3

query II rowsort
SELECT - + 56 + - 85 AS col0, col2 + - col1 FROM tab0 AS cor0
----
-141
-11
-141
-34
-141
98

query I rowsort
SELECT DISTINCT + col1 + + - col1 AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL col0 * - + 17 + col2 FROM tab0
----
-1469
-1550
-208

onlyif mysql # DIV for integer division: 
query I rowsort label-9550
SELECT DISTINCT col2 - - + col2 DIV + 22 FROM tab2
----
24
41
60

skipif mysql # not compatible
query I rowsort label-9550
SELECT DISTINCT col2 - - + col2 / + 22 FROM tab2
----
24
41
60

query I rowsort
SELECT DISTINCT col0 + 80 + - + 57 + + + col0 * - col2 * + - 24 * col2 - + col2 * + + col1 * col0 + - - col0 FROM tab2
----
2260631
530173
5763923

query I rowsort
SELECT - ( - 78 ) AS col1 FROM tab2
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT ALL COUNT( + + col0 ) - - 59 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL COUNT ( + + col0 ) - - 59 FROM tab1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT ALL + - MIN( ALL - 9 ) AS col0 FROM tab0 WHERE ( NOT - col1 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL + - MIN ( ALL - 9 ) AS col0 FROM tab0 WHERE ( NOT - col1 IS NOT NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9555
SELECT CAST( NULL AS SIGNED ) AS col2, + col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-9555
SELECT CAST ( NULL AS INTEGER ) AS col2, + col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col2 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 * + 46 AS col0 FROM tab2
----
-1058
-1840
-2668

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 33 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9559
SELECT DISTINCT - 48 / ( - 4 ) + - - 32 + + + col2 + CAST( NULL AS DECIMAL ) - + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9559
SELECT DISTINCT - 48 / ( - 4 ) + - - 32 + + + col2 + CAST ( NULL AS REAL ) - + col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9560
SELECT + 9 * + + 35 * - - CAST( NULL AS SIGNED ) - + + 26 * - 63 * - - ( - 70 ) 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-9560
SELECT + 9 * + + 35 * - - CAST ( NULL AS INTEGER ) - + + 26 * - 63 * - - ( - 70 ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + + col0 * - col2 AS col0 FROM tab1
----
295885
420784
470016

query I rowsort
SELECT + 19 * - col2 * - col0 FROM tab2 AS cor0
----
20102
48640
82650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9563
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - 12 + AVG ( col0 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - 12 + AVG ( col0 ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + - 5 AS col2 FROM tab2 cor0
----
-5
-5
-5

query II rowsort
SELECT - col1 * col2 AS col0, - col0 * - col0 FROM tab2 AS cor0
----
-1173
2116
-3080
4096
-3886
5625

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9566
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 41 NOT IN ( + - CAST( NULL AS SIGNED ) * col1, col1 )
----

skipif mysql # not compatible
query III rowsort label-9566
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 41 NOT IN ( + - CAST ( NULL AS INTEGER ) * col1, col1 )
----

query I rowsort
SELECT + col2 * - col0 + - - col2 AS col0 FROM tab2 AS cor0
----
-1035
-2520
-4292

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT - MIN( 4 ) col0 FROM tab1
----
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9568
SELECT - MIN ( 4 ) col0 FROM tab1
----
-4

query I rowsort
SELECT col2 * - 13 FROM tab2
----
-299
-520
-754

query II rowsort
SELECT 81 AS col1, ( - col0 ) FROM tab2
----
81
-46
81
-64
81
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-9571
SELECT ALL - 30 DIV - col0 * - - col2 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL - 30 / - col0 * - - col2 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT ALL + COUNT( * ) AS col1 FROM tab0 WHERE NOT + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9572
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 WHERE NOT + col0 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + ( col2 ) * col1 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT - COUNT( * ) * - MIN( DISTINCT - col0 ) AS col0 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-9575
SELECT - COUNT ( * ) * - MIN ( DISTINCT - col0 ) AS col0 FROM tab2
----
-225

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE col0 BETWEEN ( + 1 ) AND ( col2 )
----
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9577
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * 1 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9577
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * 1 AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - col1 * - - col1 + - + 36 FROM tab0 cor0
----
-37
-477
-6597

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT - MAX( + 78 ) FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-9579
SELECT - MAX ( + 78 ) FROM tab0 AS cor0
----
-78

query I rowsort
SELECT DISTINCT - col2 + col1 - col2 AS col2 FROM tab1 AS cor0
----
-113
-178
-89

query I rowsort
SELECT 50 + - col1 FROM tab2
----
-1
-17
-27

query I rowsort
SELECT DISTINCT - ( + col1 ) + - + 95 FROM tab0
----
-116
-176
-96

query I rowsort
SELECT DISTINCT 61 + - 65 + col0 FROM tab0
----
11
83
93

query III rowsort
SELECT ALL * FROM tab1 WHERE 49 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9585
SELECT + - 48 DIV + - 86 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-9585
SELECT + - 48 / + - 86 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT ALL - SUM( + + 18 ) AS col2 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-9586
SELECT ALL - SUM ( + + 18 ) AS col2 FROM tab1 AS cor0
----
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - col1 ) col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9588
SELECT ALL 81 + + - 42 DIV + - 57 * - + col2 + + col2 FROM tab2 AS cor0
----
104
121
139

skipif mysql # not compatible
query I rowsort label-9588
SELECT ALL 81 + + - 42 / + - 57 * - + col2 + + col2 FROM tab2 AS cor0
----
104
121
139

query II rowsort
SELECT ALL - col1, + 94 AS col0 FROM tab0 AS cor0
----
-1
94
-21
94
-81
94

query I rowsort
SELECT ALL + col2 * col1 + + 87 AS col1 FROM tab1
----
1431
3283
382

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 33 - col1 + + col1 col1, 77 AS col1 FROM tab0
----
33
77
33
77
33
77

query I rowsort
SELECT - col1 FROM tab2 WHERE + ( - col1 ) + + - col0 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT - + 41 FROM tab2 WHERE + + ( col0 ) IN ( 23, 89 + + 69 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9594
SELECT + col0 + col0 * + ( col2 ) + - col0 DIV col2 AS col0 FROM tab0 AS cor0
----
720
949
9700

skipif mysql # not compatible
query I rowsort label-9594
SELECT + col0 + col0 * + ( col2 ) + - col0 / col2 AS col0 FROM tab0 AS cor0
----
720
949
9700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 5 col0 FROM tab2 AS cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9596
SELECT ALL - MIN( 9 ) AS col0, COUNT( * ) FROM tab2 AS cor0
----
-9
3

skipif mysql # not compatible
query II rowsort label-9596
SELECT ALL - MIN ( 9 ) AS col0, COUNT ( * ) FROM tab2 AS cor0
----
-9
3

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT + col1 NOT BETWEEN col0 AND + + ( + 77 ) * + 77 * + 57 + 71
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT - + SUM( ALL - col0 ) * 52 FROM tab0 AS cor0
----
10348

skipif mysql # not compatible
query I rowsort label-9598
SELECT - + SUM ( ALL - col0 ) * 52 FROM tab0 AS cor0
----
10348

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT DISTINCT - MAX( ALL - - col1 ) AS col1 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT - MAX ( ALL - - col1 ) AS col1 FROM tab0 cor0
----
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9600
SELECT ALL + - col1 AS col0 FROM tab2 AS cor0 WHERE ( CAST( - col1 AS DECIMAL ) ) IS NOT NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9600
SELECT ALL + - col1 AS col0 FROM tab2 AS cor0 WHERE ( CAST ( - col1 AS REAL ) ) IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT ALL + 66 AS col1 FROM tab2 cor0
----
66
66
66

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT DISTINCT - COUNT( * ) * + - 52 AS col1 FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-9603
SELECT DISTINCT - COUNT ( * ) * + - 52 AS col1 FROM tab2
----
156

query II rowsort
SELECT DISTINCT - col0 * col0 + - 75 + - - col2, + 21 AS col1 FROM tab2
----
-2168
21
-4131
21
-5642
21

query I rowsort
SELECT + col2 + - 30 AS col0 FROM tab0
----
-20
17
69

query I rowsort
SELECT ALL 9 * + 57 * - 7 * col0 + + 67 AS col2 FROM tab2 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT ( col0 ) + - col1 + + col0 + - col1 * + col2 AS col1 FROM tab1
----
-1256
-130
-3061

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9608
SELECT + col2 / ( - 85 ) + - - CAST( NULL AS SIGNED ) / CAST( ( + ( 27 ) ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9608
SELECT + col2 / ( - 85 ) + - - CAST ( NULL AS INTEGER ) / CAST ( ( + ( 27 ) ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE 35 BETWEEN + - 81 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9610
SELECT col2, - CAST( - 80 AS SIGNED ) FROM tab0
----
10
80
47
80
99
80

skipif mysql # not compatible
query II rowsort label-9610
SELECT col2, - CAST ( - 80 AS INTEGER ) FROM tab0
----
10
80
47
80
99
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + + col1 * - + col2 col2 FROM tab1 AS cor0
----
-1293
-210
-3105

query I rowsort
SELECT ALL ( - 54 ) AS col2 FROM tab2 cor0 WHERE NOT + col0 IS NULL
----
-54
-54
-54

query I rowsort
SELECT - 76 * + col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) > col2 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT - COUNT( * ) + + - 57 AS col1 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-9614
SELECT - COUNT ( * ) + + - 57 AS col1 FROM tab2 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT DISTINCT - + ( - 45 ) * - MIN( ALL col1 ) FROM tab0 cor0
----
-45

skipif mysql # not compatible
query I rowsort label-9615
SELECT DISTINCT - + ( - 45 ) * - MIN ( ALL col1 ) FROM tab0 cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT + 60 * - ( MAX( DISTINCT - 39 ) ) FROM tab2 AS cor0
----
2340

skipif mysql # not compatible
query I rowsort label-9616
SELECT + 60 * - ( MAX ( DISTINCT - 39 ) ) FROM tab2 AS cor0
----
2340

query II rowsort
SELECT 7 AS col0, - 62 AS col1 FROM tab1
----
7
-62
7
-62
7
-62

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9618
SELECT ALL col1 + CAST( NULL AS DECIMAL ) AS col1, - col0 + - - 37 FROM tab1
----
NULL
-14
NULL
-48
NULL
-54

skipif mysql # not compatible
query II rowsort label-9618
SELECT ALL col1 + CAST ( NULL AS REAL ) AS col1, - col0 + - - 37 FROM tab1
----
NULL
-14
NULL
-48
NULL
-54

query II rowsort
SELECT DISTINCT + col1 AS col2, - 1 AS col1 FROM tab0
----
1
-1
21
-1
81
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-9620
SELECT DISTINCT + + 11 col2, col1 DIV + - col1 col2 FROM tab1 cor0
----
11
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9620
SELECT DISTINCT + + 11 col2, col1 / + - col1 col2 FROM tab1 cor0
----
11
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9621
SELECT ALL - col0 * - - col0 * col1 * - 98 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL - col0 * - - col0 * col1 * - 98 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <= col2 / - col2
----

query I rowsort
SELECT DISTINCT + 3 * - 80 * + + 25 AS col1 FROM tab1 AS cor0
----
-6000

query I rowsort
SELECT ALL - col1 * - + col2 FROM tab2 AS cor0
----
1173
3080
3886

query II rowsort
SELECT - - col0, + col1 AS col2 FROM tab2 AS cor0
----
46
51
64
77
75
67

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 70 <> - 21 / col2
----

query I rowsort
SELECT - col1 * 31 * + 6 AS col1 FROM tab0
----
-15066
-186
-3906

onlyif mysql # aggregate syntax: 
query II rowsort label-9628
SELECT MAX( DISTINCT - - col1 ) col1, MIN( - col2 ) FROM tab1 WHERE NOT + col1 IS NULL
----
47
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9628
SELECT MAX ( DISTINCT - - col1 ) col1, MIN ( - col2 ) FROM tab1 WHERE NOT + col1 IS NULL
----
47
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT DISTINCT - - SUM( + col0 ) FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN - + col0 AND - col1
----
110

skipif mysql # not compatible
query I rowsort label-9629
SELECT DISTINCT - - SUM ( + col0 ) FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN - + col0 AND - col1
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9630
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( - + col2 AS SIGNED ) / + col2 + 33 + + 80 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9630
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( - + col2 AS INTEGER ) / + col2 + 33 + + 80 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 61 + col2 + - col2 * col1 FROM tab0 AS cor0 WHERE NOT col0 = - col2
----
-139
-3699
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9632
SELECT - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9632
SELECT - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + ( + ( + col0 ) ) ) AS col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9634
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE 11 + + col2 + + col0 + + 64 * + 13 BETWEEN - col1 AND + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 11 + + col2 + + col0 + + 64 * + 13 BETWEEN - col1 AND + CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT ALL col0 + - col2 + - col1 FROM tab1
----
-24
-59
21

query I rowsort
SELECT ( - + ( - col2 ) ) AS col2 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9637
SELECT ALL - col2 AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT + col1 IS NULL
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-9637
SELECT ALL - col2 AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT + col1 IS NULL
----
-59
NULL
-68
NULL
-96
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( + - col1 ) NOT BETWEEN NULL AND + col0 + - col0
----

query I rowsort
SELECT + + col2 / + col2 AS col1 FROM tab0 WHERE NOT + - col0 * - col2 * + 15 + - col2 IS NOT NULL
----

query I rowsort
SELECT - + col0 AS col0 FROM tab1 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL - col0 * 22 + col0 FROM tab2
----
-1344
-1575
-966

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9642
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 17 >= - CAST( col0 AS DECIMAL ) * col2 * - - col0 * + + 48
----

skipif mysql # not compatible
query III rowsort label-9642
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 17 >= - CAST ( col0 AS REAL ) * col2 * - - col0 * + + 48
----

query I rowsort
SELECT 93 + + - col0 FROM tab0 AS cor0
----
-4
6
78

query I rowsort
SELECT DISTINCT + ( + + col0 ) AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT - 59 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> + col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9646
SELECT ALL - 53 DIV - 63 + 23, col1 AS col2 FROM tab0 AS cor0
----
23
1
23
21
23
81

skipif mysql # not compatible
query II rowsort label-9646
SELECT ALL - 53 / - 63 + 23, col1 AS col2 FROM tab0 AS cor0
----
23
1
23
21
23
81

query I rowsort
SELECT DISTINCT col0 * - col0 + - + col2 FROM tab2
----
-2139
-4136
-5683

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT COUNT( * ) * + - ( SUM( - 86 ) ) AS col2 FROM tab2 cor0
----
774

skipif mysql # not compatible
query I rowsort label-9648
SELECT COUNT ( * ) * + - ( SUM ( - 86 ) ) AS col2 FROM tab2 cor0
----
774

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT DISTINCT + 89 * SUM( + 76 ) * - 10 * MAX( ALL + col0 ) + COUNT( * ) FROM tab0 AS cor0
----
-19683237

skipif mysql # not compatible
query I rowsort label-9649
SELECT DISTINCT + 89 * SUM ( + 76 ) * - 10 * MAX ( ALL + col0 ) + COUNT ( * ) FROM tab0 AS cor0
----
-19683237

query II rowsort
SELECT ALL + col1 - + col0 AS col1, + col2 FROM tab1 AS cor0
----
-37
96
-44
68
-80
59

query I rowsort
SELECT col2 - - 49 AS col2 FROM tab0 AS cor0
----
148
59
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9652
SELECT 12 - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9652
SELECT 12 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 80 * col2 FROM tab2 cor0
----
-1840
-3200
-4640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9654
SELECT ALL ( ( + CAST( col2 AS SIGNED ) ) ) AS col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL ( ( + CAST ( col2 AS INTEGER ) ) ) AS col0 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9655
SELECT ALL ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 28 * col1 FROM tab0
----
2268
28
588

query I rowsort
SELECT + + col0 - col1 FROM tab0 AS cor0 WHERE NOT + col1 + + - 37 BETWEEN + col1 AND + - col2
----
-66
66
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9658
SELECT DISTINCT col0 DIV + - col2 FROM tab0 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT col0 / + - col2 FROM tab0 AS cor0
----
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT + COUNT( * ) * - - 24 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-9659
SELECT + COUNT ( * ) * - - 24 FROM tab1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT - SUM( DISTINCT - col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9660
SELECT - SUM ( DISTINCT - col2 ) AS col0 FROM tab0
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9661
SELECT + SUM( ALL 28 ) AS col0, 69 DIV - SUM( DISTINCT + col1 ) + MIN( ALL + + col0 ) FROM tab0
----
84
15

skipif mysql # not compatible
query II rowsort label-9661
SELECT + SUM ( ALL 28 ) AS col0, 69 / - SUM ( DISTINCT + col1 ) + MIN ( ALL + + col0 ) FROM tab0
----
84
15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + + col0 = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 35 * + col0 AS col0 FROM tab1 AS cor0
----
1785
2975
3185

onlyif mysql # DIV for integer division: 
query I rowsort label-9664
SELECT DISTINCT + col1 DIV + col1 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT + col1 / + col1 AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9665
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 / - - CAST( + ( + 8 ) AS SIGNED ) <> + col0 * 1 + + col1 + - + 66 / col2 * - ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-9665
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 / - - CAST ( + ( + 8 ) AS INTEGER ) <> + col0 * 1 + + col1 + - + 66 / col2 * - ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, + col1 AS col2 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE + col0 <= NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 cor0 WHERE + 4 * col2 - - + 98 IN ( + - col2 * - 37, + col2, - - col2, + ( - 35 ) * + col2 * - 14 )
----

query I rowsort
SELECT ALL + - 39 * 46 AS col1 FROM tab1 cor0
----
-1794
-1794
-1794

query I rowsort
SELECT ALL + col0 + - - 35 * - col1 * col0 FROM tab0 AS cor0
----
-3298
-42510
-63858

query I rowsort
SELECT + ( + - col0 ) + col2 * col2 FROM tab0 AS cor0
----
13
2194
9704

query I rowsort
SELECT + 9 + + col1 AS col2 FROM tab2 AS cor0 WHERE 9 * + 67 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT col2 > col1 )
----
15
81
47
87
21
10

query I rowsort
SELECT col2 + - - 50 - + col2 FROM tab1
----
50
50
50

query I rowsort
SELECT 33 + + 64 AS col2 FROM tab2
----
97
97
97

query I rowsort
SELECT ALL - ( - col2 ) FROM tab0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT ALL + MAX( ALL - col1 ) col0 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9677
SELECT ALL + MAX ( ALL - col1 ) col0 FROM tab2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9678
SELECT ALL + CAST( ( + + col1 ) AS SIGNED ) * + col1 + 75 * ( + - col1 ) + + + col1 FROM tab0
----
-1113
-73
567

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL + CAST ( ( + + col1 ) AS INTEGER ) * + col1 + 75 * ( + - col1 ) + + + col1 FROM tab0
----
-1113
-73
567

query I rowsort
SELECT + 70 * - col2 * col0 + + - col2 AS col2 FROM tab1 AS cor0
----
-342816
-351109
-433228

query I rowsort
SELECT - ( + - col2 ) * 48 * col1 FROM tab2 AS cor0
----
147840
186528
56304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 * 17 - + col0 col2 FROM tab1
----
198
204
238

query I rowsort
SELECT col2 - + - ( + 85 ) * - + 54 AS col2 FROM tab0
----
-4491
-4543
-4580

query I rowsort
SELECT - col0 - - - col2 AS col1 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT col1 + 55 AS col1 FROM tab0 AS cor0
----
136
56
76

query I rowsort
SELECT ALL + 71 - ( + + col1 ) AS col2 FROM tab2 AS cor0
----
-6
20
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * col1 - + ( 14 ) col2 FROM tab2 AS cor0
----
-1187
-3094
-3900

query I rowsort
SELECT DISTINCT - ( - col2 ) - 91 * + 41 FROM tab2 AS cor0
----
-3673
-3691
-3708

query I rowsort
SELECT ( - + col1 ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

query II rowsort
SELECT DISTINCT - 65 AS col2, + col1 * + 97 + - - col0 * - 26 AS col2 FROM tab0 AS cor0
----
-65
-225
-65
-2425
-65
7467

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9690
SELECT * FROM tab1 WHERE NOT col1 * + CAST( - col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9690
SELECT * FROM tab1 WHERE NOT col1 * + CAST ( - col2 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT col1 * + 37 * col1 FROM tab1
----
7252
81733
925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9692
SELECT 16 DIV + SUM( col1 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9692
SELECT 16 / + SUM ( col1 ) AS col2 FROM tab1
----
0

query I rowsort
SELECT + 17 * - 49 FROM tab1
----
-833
-833
-833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9694
SELECT ( + 46 ), MAX( col1 ) - - + SUM( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
46
NULL

skipif mysql # not compatible
query II rowsort label-9694
SELECT ( + 46 ), MAX ( col1 ) - - + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
46
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 36 > + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col2 * - + 11 AS col1, + 79 * - col0 * col1 FROM tab2
----
253
-185334
440
-389312
638
-396975

query I rowsort
SELECT ALL + 58 * col2 FROM tab1
----
3422
3944
5568

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT DISTINCT COUNT( * ) + - 79 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-79

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT COUNT ( * ) + - 79 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT MIN( ALL + - col0 ) col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9699
SELECT MIN ( ALL + - col0 ) col1 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT + col2 * + 19 FROM tab0 AS cor0
----
1881
190
893

query I rowsort
SELECT ALL 26 * + + 95 FROM tab2 AS cor0
----
2470
2470
2470

onlyif mysql # DIV for integer division: 
query I rowsort label-9702
SELECT DISTINCT + 58 DIV + 70 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9702
SELECT DISTINCT + 58 / + 70 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT + 3 * + MAX( DISTINCT - - col0 ) FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-9703
SELECT + 3 * + MAX ( DISTINCT - - col0 ) FROM tab1 AS cor0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT + COUNT( - 53 ) col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9704
SELECT + COUNT ( - 53 ) col1 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT ALL COUNT( DISTINCT - col1 ) + - - 34 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-9705
SELECT ALL COUNT ( DISTINCT - col1 ) + - - 34 FROM tab2 AS cor0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9706
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT - ( col1 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT - ( col1 ) IS NULL
----
NULL
NULL
NULL

query II rowsort
SELECT - 94 AS col2, - 69 FROM tab0 AS cor0
----
-94
-69
-94
-69
-94
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT ALL - COUNT( * ) + COUNT( * ) col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9708
SELECT ALL - COUNT ( * ) + COUNT ( * ) col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9709
SELECT - ( - COUNT( * ) ) DIV 5 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9709
SELECT - ( - COUNT ( * ) ) / 5 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - + 69 col1 FROM tab1 WHERE 7 + - col2 IS NOT NULL
----
3243
345
966

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT + COUNT( * ) - - 74 AS col2 FROM tab2, tab1 cor0
----
83

skipif mysql # not compatible
query I rowsort label-9711
SELECT + COUNT ( * ) - - 74 AS col2 FROM tab2, tab1 cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT DISTINCT - COUNT( * ) + - - 51 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-9712
SELECT DISTINCT - COUNT ( * ) + - - 51 FROM tab1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT + MIN( - + 48 ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-9713
SELECT + MIN ( - + 48 ) FROM tab1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT ALL - 64 + - ( + MAX( ALL - col1 ) ) + COUNT( * ) AS col2 FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL - 64 + - ( + MAX ( ALL - col1 ) ) + COUNT ( * ) AS col2 FROM tab2
----
-10

query I rowsort
SELECT ALL col2 * + + col2 + 79 AS col2 FROM tab1
----
3560
4703
9295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9716
SELECT DISTINCT 72 + + + 69 AS col2, COUNT( * ) FROM tab0 cor0 WHERE NOT - ( CAST( NULL AS SIGNED ) ) BETWEEN NULL AND + col0
----
141
0

skipif mysql # not compatible
query II rowsort label-9716
SELECT DISTINCT 72 + + + 69 AS col2, COUNT ( * ) FROM tab0 cor0 WHERE NOT - ( CAST ( NULL AS INTEGER ) ) BETWEEN NULL AND + col0
----
141
0

query I rowsort
SELECT - 1 AS col1 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - ( - 16 ) * - 36 NOT BETWEEN 64 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 14 + col0 AS col0 FROM tab2
----
60
78
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT ALL + MIN( DISTINCT + 49 ) AS col1 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-9720
SELECT ALL + MIN ( DISTINCT + 49 ) AS col1 FROM tab0 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT ALL MIN( ALL - - 87 ) FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-9721
SELECT ALL MIN ( ALL - - 87 ) FROM tab1 AS cor0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9722
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 39 + - - 33 + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9722
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 39 + - - 33 + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT ALL - COUNT( * ) * + COUNT( * ) + + 88 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL - COUNT ( * ) * + COUNT ( * ) + + 88 FROM tab0 AS cor0
----
79

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9725
SELECT ALL - COUNT( * ), - COUNT( * ) col2 FROM tab0
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9725
SELECT ALL - COUNT ( * ), - COUNT ( * ) col2 FROM tab0
----
-3
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9726
SELECT - ( - ( COUNT( * ) ) ) * + - 18, COUNT( * ) col1 FROM tab1
----
-54
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9726
SELECT - ( - ( COUNT ( * ) ) ) * + - 18, COUNT ( * ) col1 FROM tab1
----
-54
3

query I rowsort
SELECT - 35 * - 67 AS col0 FROM tab0
----
2345
2345
2345

onlyif mysql # aggregate syntax: 
query II rowsort label-9728
SELECT COUNT( * ) AS col2, + 33 AS col1 FROM tab2
----
3
33

skipif mysql # not compatible
query II rowsort label-9728
SELECT COUNT ( * ) AS col2, + 33 AS col1 FROM tab2
----
3
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9729
SELECT COUNT( DISTINCT - col2 ) * - SUM( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9729
SELECT COUNT ( DISTINCT - col2 ) * - SUM ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

query II rowsort
SELECT ALL col2 AS col0, col1 + 77 AS col1 FROM tab2 AS cor0
----
23
128
40
154
58
144

query I rowsort
SELECT + col2 + + col2 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT + col1, - col1 FROM tab0 cor0
----
1
-1
21
-21
81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT + - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9733
SELECT + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT + 75 FROM tab1 AS cor0 WHERE - 9 IS NULL
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE - ( - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 * col1 + 68 * + - 88 FROM tab2 AS cor0 WHERE NOT 2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT ( - col1 ), ( - + col1 ) * - + col1 + - + col0 AS col2 FROM tab1 AS cor0
----
-14
145
-47
2118
-5
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9739
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9740
SELECT + + CAST( NULL AS SIGNED ) + 3 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9740
SELECT + + CAST ( NULL AS INTEGER ) + 3 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9741
SELECT 91 DIV - 58 + + + MAX( DISTINCT - + 95 ) FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-9741
SELECT 91 / - 58 + + + MAX ( DISTINCT - + 95 ) FROM tab2
----
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 / col0 - - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9743
SELECT ALL * FROM tab1 WHERE + CAST( ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9743
SELECT ALL * FROM tab1 WHERE + CAST ( ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT DISTINCT + COUNT( * ) + COUNT( * ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9744
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1
----
6

query I rowsort
SELECT + + col2 AS col1 FROM tab1 WHERE + - col2 IS NOT NULL
----
59
68
96

query I rowsort
SELECT + col2 FROM tab0 WHERE ( - + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT COUNT( DISTINCT col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9747
SELECT COUNT ( DISTINCT col0 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + - 90 - + - col0 AS col0 FROM tab2 cor0
----
-15
-26
-44

query I rowsort
SELECT DISTINCT ( - col0 ) * col2 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + - col0 IS NOT NULL OR NOT + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT ALL 58 + + ( 44 ) * SUM( DISTINCT + - col0 ) FROM tab0
----
-8698

skipif mysql # not compatible
query I rowsort label-9751
SELECT ALL 58 + + ( 44 ) * SUM ( DISTINCT + - col0 ) FROM tab0
----
-8698

onlyif mysql # DIV for integer division: 
query I rowsort label-9752
SELECT col0 DIV + ( + - col0 ) - ( + 54 ) FROM tab1
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-9752
SELECT col0 / + ( + - col0 ) - ( + 54 ) FROM tab1
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT MAX( ALL - 22 ) FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-9753
SELECT MAX ( ALL - 22 ) FROM tab0
----
-22

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 50 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 2 * 95 AS col1 FROM tab1 AS cor0
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT DISTINCT + + SUM( + col0 ) AS col2 FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-9756
SELECT DISTINCT + + SUM ( + col0 ) AS col2 FROM tab2 cor0
----
185

query I rowsort
SELECT + - col2 * ( + col2 ) AS col1 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT ALL 59 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT + MAX( + ( + col1 ) ) AS col2 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-9759
SELECT + MAX ( + ( + col1 ) ) AS col2 FROM tab1 cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - 37 col1 FROM tab0 AS cor0
----
1
-37
21
-37
81
-37

query I rowsort
SELECT ALL + 65 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 25 * + ( - 16 ) FROM tab2
----
-400
-400
-400

query I rowsort
SELECT - col1 * - 20 AS col1 FROM tab2
----
1020
1340
1540

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 72 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + ( 89 ) AS col1, 39 * + col2 col1 FROM tab1 AS cor0
----
103
3744
136
2652
94
2301

query I rowsort
SELECT ALL - col0 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
-46
-64
-75

query I rowsort
SELECT 51 + + col1 + col0 FROM tab0
----
147
149
159

query I rowsort
SELECT col0 + 61 FROM tab1
----
112
146
152

query I rowsort
SELECT - 63 * + col1 FROM tab0 cor0
----
-1323
-5103
-63

query I rowsort
SELECT + col0 * - + col1 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 24 / + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT ALL + COUNT( col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL + COUNT ( col2 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 BETWEEN NULL AND + col0
----

query II rowsort
SELECT + - col2 AS col1, - col0 FROM tab2 AS cor0
----
-23
-46
-40
-64
-58
-75

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 NOT BETWEEN col1 * + 48 + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 + col2 - 74 AS col0 FROM tab0
----
-43
26
54

query I rowsort
SELECT + 96 - - + col1 AS col1 FROM tab0
----
117
177
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9778
SELECT - + ( + CAST( NULL AS SIGNED ) ) * + col1 * + col1 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9778
SELECT - + ( + CAST ( NULL AS INTEGER ) ) * + col1 * + col1 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 - + 30 AS col1 FROM tab0
----
-29
-9
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9780
SELECT - MAX( ALL + 87 ) + - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9780
SELECT - MAX ( ALL + 87 ) + - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + ( + - col0 ) AND NULL
----

query I rowsort
SELECT ALL + col1 * col2 + + + col1 AS col0 FROM tab1 AS cor0
----
1358
300
3243

query I rowsort
SELECT ALL col1 - + col2 + col1 AS col1 FROM tab1 AS cor0
----
-49
-68
26

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 AS col0, + col1 col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT DISTINCT + 71 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT - COUNT( * ) * 97 col1 FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9787
SELECT - COUNT ( * ) * 97 col1 FROM tab0 AS cor0
----
-291

query I rowsort
SELECT ALL 39 * + 17 * col2 AS col1 FROM tab2 AS cor0
----
15249
26520
38454

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 = - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT DISTINCT + COUNT( DISTINCT - 51 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9790
SELECT DISTINCT + COUNT ( DISTINCT - 51 ) FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9791
SELECT ALL + MIN( + col2 ) * + 54 + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9791
SELECT ALL + MIN ( + col2 ) * + 54 + CAST ( NULL AS REAL ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 NOT BETWEEN - col2 AND col2 + + 20 + 99 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9793
SELECT DISTINCT ( + COUNT( * ) ) DIV - 76 * - CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9793
SELECT DISTINCT ( + COUNT ( * ) ) / - 76 * - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
0

query I rowsort
SELECT - col1 * + - col1 * + col0 + col0 AS col1 FROM tab2
----
119692
336750
379520

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9795
SELECT * FROM tab0 WHERE NOT 35 + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9795
SELECT * FROM tab0 WHERE NOT 35 + + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT SUM( ALL - 54 ) + - - COUNT( * ) AS col2 FROM tab2
----
-159

skipif mysql # not compatible
query I rowsort label-9796
SELECT SUM ( ALL - 54 ) + - - COUNT ( * ) AS col2 FROM tab2
----
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-9797
SELECT col2 DIV 33 + - - 11 + - col2 AS col1 FROM tab0
----
-35
-85
1

skipif mysql # not compatible
query I rowsort label-9797
SELECT col2 / 33 + - - 11 + - col2 AS col1 FROM tab0
----
-35
-85
1

query I rowsort
SELECT DISTINCT + col1 + + 76 FROM tab1 WHERE NOT col1 * col2 * - 91 - col1 < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - + col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9800
SELECT - + COUNT( * ), 73 col1 FROM tab2 cor0
----
-3
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9800
SELECT - + COUNT ( * ), 73 col1 FROM tab2 cor0
----
-3
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT ALL COUNT( + - 68 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9801
SELECT ALL COUNT ( + - 68 ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9802
SELECT col2 DIV + - 32 FROM tab1 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-9802
SELECT col2 / + - 32 FROM tab1 AS cor0
----
-1
-2
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-9803
SELECT ALL - + col0 DIV - col1 AS col2, col2 AS col0 FROM tab2 AS cor0
----
0
23
0
40
1
58

skipif mysql # not compatible
query II rowsort label-9803
SELECT ALL - + col0 / - col1 AS col2, col2 AS col0 FROM tab2 AS cor0
----
0
23
0
40
1
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9804
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT + 2 <= + - ( + col1 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9804
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT + 2 <= + - ( + col1 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT COUNT( DISTINCT + col1 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9805
SELECT COUNT ( DISTINCT + col1 ) col1 FROM tab2
----
3

query I rowsort
SELECT - 21 + + col2 * 67 FROM tab1 AS cor0
----
3932
4535
6411

onlyif mysql # DIV for integer division: 
query I rowsort label-9807
SELECT DISTINCT ( - col2 ) + + + col0 + - col1 DIV + - 37 FROM tab1
----
-45
24
26

skipif mysql # not compatible
query I rowsort label-9807
SELECT DISTINCT ( - col2 ) + + + col0 + - col1 / + - 37 FROM tab1
----
-45
24
26

query I rowsort
SELECT DISTINCT 1 * - - ( - col0 ) - col0 AS col2 FROM tab0
----
-174
-194
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-9809
SELECT col1 DIV + col0 * - - col0, + 4 AS col0 FROM tab1
----
0
4
0
4
0
4

skipif mysql # not compatible
query II rowsort label-9809
SELECT col1 / + col0 * - - col0, + 4 AS col0 FROM tab1
----
0
4
0
4
0
4

query I rowsort
SELECT DISTINCT col1 * - 97 FROM tab0
----
-2037
-7857
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN 62 AND - - col1 / + col1 - - 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT ALL - MIN( DISTINCT - + 16 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 * - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL - MIN ( DISTINCT - + 16 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 * - col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9813
SELECT DISTINCT CAST( - ( + col1 ) AS SIGNED ) AS col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-9813
SELECT DISTINCT CAST ( - ( + col1 ) AS INTEGER ) AS col1 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + 35 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9815
SELECT + CAST( NULL AS DECIMAL ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9815
SELECT + CAST ( NULL AS REAL ) col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT MAX( ALL col1 ) - + 84 FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-9816
SELECT MAX ( ALL col1 ) - + 84 FROM tab2
----
-7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 NOT IN ( 70 + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 ) / col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT - 74 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9820
SELECT DISTINCT CAST( col2 AS SIGNED ) FROM tab2 WHERE NOT - 26 NOT BETWEEN 40 + 19 AND col2
----

skipif mysql # not compatible
query I rowsort label-9820
SELECT DISTINCT CAST ( col2 AS INTEGER ) FROM tab2 WHERE NOT - 26 NOT BETWEEN 40 + 19 AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9821
SELECT col2 col2 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND CAST( NULL AS SIGNED ) * 66 + - col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9821
SELECT col2 col2 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND CAST ( NULL AS INTEGER ) * 66 + - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9822
SELECT 72 - 26 DIV COUNT( * ) AS col1 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-9822
SELECT 72 - 26 / COUNT ( * ) AS col1 FROM tab0
----
64

query I rowsort
SELECT DISTINCT 97 + 60 FROM tab0 WHERE ( NULL ) BETWEEN + 43 + + col2 AND ( NULL )
----

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE col0 < 86 * - col1
----

query I rowsort
SELECT ALL + 72 * - 83 - col1 AS col0 FROM tab0
----
-5977
-5997
-6057

query I rowsort
SELECT DISTINCT 42 - col2 FROM tab0
----
-5
-57
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT + 95 * + SUM( - col2 ) AS col0 FROM tab0 WHERE NOT col2 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9827
SELECT + 95 * + SUM ( - col2 ) AS col0 FROM tab0 WHERE NOT col2 > NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 < col2 * 75 - 85
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 24 + 18 col0 FROM tab1
----
42

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 43 + - col2 * col1 ) IS NOT NULL
----

query I rowsort
SELECT - col2 FROM tab2 WHERE - col1 - col0 NOT BETWEEN ( 2 ) AND ( - col1 )
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9833
SELECT - CAST( COUNT( * ) AS SIGNED ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9833
SELECT - CAST ( COUNT ( * ) AS INTEGER ) col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT - ( MIN( col1 ) ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9834
SELECT - ( MIN ( col1 ) ) AS col1 FROM tab0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 ) >= ( - col2 )
----

query I rowsort
SELECT DISTINCT 22 + + col1 * - col1 FROM tab0 WHERE NOT - 91 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT DISTINCT - MIN( 98 ) FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-9837
SELECT DISTINCT - MIN ( 98 ) FROM tab1
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9838
SELECT MIN( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9838
SELECT MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 64 - col1 * + col0 <> 71 * ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * + col0 = ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT ALL - COUNT( * ) * 77 FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL - COUNT ( * ) * 77 FROM tab2 AS cor0
----
-231

query I rowsort
SELECT DISTINCT + 74 * + col0 FROM tab2 AS cor0
----
3404
4736
5550

query I rowsort
SELECT - 38 + - 45 AS col1 FROM tab1 AS cor0
----
-83
-83
-83

query I rowsort
SELECT - col1 + ( ( + 77 ) ) * + col0 FROM tab0 AS cor0
----
1074
6678
7468

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT ALL SUM( + ( col1 ) ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9846
SELECT ALL SUM ( + ( col1 ) ) AS col1 FROM tab0 AS cor0
----
103

query I rowsort
SELECT + 18 + - ( - ( 91 ) ) FROM tab0 cor0
----
109
109
109

query I rowsort
SELECT DISTINCT + col0 FROM tab1 cor0 WHERE ( col2 ) IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT + 74 * + COUNT( * ) + ( COUNT( * ) + + 27 ) AS col2 FROM tab2 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-9849
SELECT + 74 * + COUNT ( * ) + ( COUNT ( * ) + + 27 ) AS col2 FROM tab2 AS cor0
----
252

query I rowsort
SELECT 70 * + col1 + col1 FROM tab1
----
3337
355
994

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 67 col0 FROM tab2
----
118
134
144

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE 30 + - 88 IS NULL
----

query I rowsort
SELECT 15 FROM tab1 WHERE NULL BETWEEN - col0 + - 23 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT DISTINCT MIN( - 72 ) FROM tab0 AS cor0 CROSS JOIN tab2
----
-72

skipif mysql # not compatible
query I rowsort label-9854
SELECT DISTINCT MIN ( - 72 ) FROM tab0 AS cor0 CROSS JOIN tab2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT 84 - + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 WHERE ( NULL ) IS NULL
----
75

skipif mysql # not compatible
query I rowsort label-9855
SELECT 84 - + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 WHERE ( NULL ) IS NULL
----
75

query I rowsort
SELECT ALL ( col0 ) - + col1 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT DISTINCT + 14 - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-9857
SELECT DISTINCT + 14 - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT COUNT( * ) * COUNT( * ) col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9858
SELECT COUNT ( * ) * COUNT ( * ) col0 FROM tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9859
SELECT - - col1 DIV - ( col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9859
SELECT - - col1 / - ( col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9860
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT + col1 * - 46 NOT IN ( + 87 )
----

skipif mysql # not compatible
query I rowsort label-9860
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NOT + col1 * - 46 NOT IN ( + 87 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 ) < NULL
----

query I rowsort
SELECT ( col1 ) FROM tab1 AS cor0 WHERE - 67 IS NULL
----

query I rowsort
SELECT DISTINCT col1 / - col0 AS col0 FROM tab2 AS cor0 WHERE col1 <= ( - col1 )
----

query I rowsort
SELECT + ( - 67 ) - + col0 AS col2 FROM tab0 AS cor0
----
-154
-164
-82

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) IN ( col1 * - 96 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * 52 - col1 AS col2 FROM tab2 AS cor0
----
2601
3417
3927

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT ALL 44 + + COUNT( * ) AS col0 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL 44 + + COUNT ( * ) AS col0 FROM tab2
----
47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 17 * + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9869
SELECT DISTINCT MIN( ALL CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9869
SELECT DISTINCT MIN ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT DISTINCT MIN( + col0 ) + 70 * - COUNT( * ) FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT MIN ( + col0 ) + 70 * - COUNT ( * ) FROM tab0
----
-195

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9871
SELECT ( + CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9871
SELECT ( + CAST ( NULL AS REAL ) ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT + ( - COUNT( * ) ) col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9873
SELECT + ( - COUNT ( * ) ) col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT - col1 < ( col1 + 66 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9875
SELECT ALL + COUNT( * ) DIV COUNT( DISTINCT ( 11 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL + COUNT ( * ) / COUNT ( DISTINCT ( 11 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT 18 * - COUNT( ALL 81 ) col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9876
SELECT 18 * - COUNT ( ALL 81 ) col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-162

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IN ( - 22 )
----

query I rowsort
SELECT - 62 AS col0 FROM tab0 WHERE NOT NULL <> - + col1 + 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT - 1 * - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col2 = ( + 5 )
----
3

skipif mysql # not compatible
query I rowsort label-9879
SELECT - 1 * - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col2 = ( + 5 )
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * - 6 - 31 IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT + MIN( ALL - col1 ) col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9881
SELECT + MIN ( ALL - col1 ) col0 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9882
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + CAST( NULL AS SIGNED ) * + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9882
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * + col0 IS NULL
----

query I rowsort
SELECT DISTINCT 39 AS col0 FROM tab1 AS cor0 WHERE + ( col1 ) BETWEEN NULL AND col0
----

query II rowsort
SELECT ALL + 5, + col0 + - col1 AS col0 FROM tab2 AS cor0
----
5
-13
5
-5
5
8

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 88 / - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9886
SELECT 75 + - + col1 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9886
SELECT 75 + - + col1 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT 16 + - MAX( DISTINCT + 80 ) FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-9887
SELECT 16 + - MAX ( DISTINCT + 80 ) FROM tab0
----
-64

query I rowsort
SELECT DISTINCT + + col2 * 25 AS col0 FROM tab1 WHERE NOT - col1 IS NULL
----
1475
1700
2400

onlyif mysql # aggregate syntax: 
query II rowsort label-9889
SELECT COUNT( * ) + COUNT( * ), 65 AS col1 FROM tab0
----
6
65

skipif mysql # not compatible
query II rowsort label-9889
SELECT COUNT ( * ) + COUNT ( * ), 65 AS col1 FROM tab0
----
6
65

query I rowsort
SELECT - 48 + - + col0 FROM tab1
----
-133
-139
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT DISTINCT ( + - COUNT( * ) ) * + + COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT ( + - COUNT ( * ) ) * + + COUNT ( * ) AS col2 FROM tab2
----
-9

query I rowsort
SELECT + col2 + + col2 + 73 AS col0 FROM tab2
----
119
153
189

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT SUM( ALL + 99 ) + + MAX( col1 ) FROM tab0
----
378

skipif mysql # not compatible
query I rowsort label-9893
SELECT SUM ( ALL + 99 ) + + MAX ( col1 ) FROM tab0
----
378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9894
SELECT ALL - col0 FROM tab1 WHERE NOT + ( + CAST( NULL AS SIGNED ) ) * col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9894
SELECT ALL - col0 FROM tab1 WHERE NOT + ( + CAST ( NULL AS INTEGER ) ) * col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9895
SELECT ALL COUNT( * ) * + + ( - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9895
SELECT ALL COUNT ( * ) * + + ( - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + 32 * col2 + + col1 AS col0 FROM tab0 cor0 WHERE col1 - - + 8 IS NULL
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( - 2 = col0 * col2 )
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9898
SELECT DISTINCT + 77 DIV - + col1 FROM tab0 AS cor0
----
-3
-77
0

skipif mysql # not compatible
query I rowsort label-9898
SELECT DISTINCT + 77 / - + col1 FROM tab0 AS cor0
----
-3
-77
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 39 ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9900
SELECT ALL - + ( - 9 ) + + SUM( CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL - + ( - 9 ) + + SUM ( CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT - col1 * + - 16 * + col0 FROM tab1
----
11424
6800
68432

query I rowsort
SELECT col2 - + - col1 FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9903
SELECT * FROM tab2 WHERE - - CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-9903
SELECT * FROM tab2 WHERE - - CAST ( NULL AS INTEGER ) < NULL
----

query I rowsort
SELECT DISTINCT + - 20 - - col1 * - 67 AS col2 FROM tab1 AS cor0
----
-3169
-355
-958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT DISTINCT + MAX( - 90 ) FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-9906
SELECT DISTINCT + MAX ( - 90 ) FROM tab0 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT ALL - MIN( ALL + 77 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL - MIN ( ALL + 77 ) FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT DISTINCT MIN( col0 ) AS col0 FROM tab0 WHERE NOT - 92 + 40 > + col1
----
15

skipif mysql # not compatible
query I rowsort label-9908
SELECT DISTINCT MIN ( col0 ) AS col0 FROM tab0 WHERE NOT - 92 + 40 > + col1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9909
SELECT DISTINCT - 51 DIV - + col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-9909
SELECT DISTINCT - 51 / - + col0 FROM tab2
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9910
SELECT + col0 DIV col1 * col2 FROM tab1
----
1003
288
68

skipif mysql # not compatible
query I rowsort label-9910
SELECT + col0 / col1 * col2 FROM tab1
----
1003
288
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT DISTINCT + COUNT( * ) * - - MIN( - col2 ) AS col2 FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-9911
SELECT DISTINCT + COUNT ( * ) * - - MIN ( - col2 ) AS col2 FROM tab2
----
-174

query III rowsort
SELECT * FROM tab2 WHERE NOT - 54 BETWEEN + ( ( + 67 ) ) AND col1 - - 46
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 11 - - 30 * col2 AS col0 FROM tab2 WHERE NOT ( NULL IN ( col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9914
SELECT DISTINCT CAST( + 52 AS SIGNED ) AS col1 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-9914
SELECT DISTINCT CAST ( + 52 AS INTEGER ) AS col1 FROM tab1
----
52

onlyif mysql # DIV for integer division: 
query II rowsort label-9915
SELECT col0 col2, col1 DIV 35 col2 FROM tab1
----
51
0
85
0
91
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9915
SELECT col0 col2, col1 / 35 col2 FROM tab1
----
51
0
85
0
91
1

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - 11 / + + col1 * col1 + - + 16
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9917
SELECT DISTINCT + COUNT( * ) AS col2, ( - 27 ) AS col0 FROM tab2 AS cor0
----
3
-27

skipif mysql # not compatible
query II rowsort label-9917
SELECT DISTINCT + COUNT ( * ) AS col2, ( - 27 ) AS col0 FROM tab2 AS cor0
----
3
-27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9918
SELECT DISTINCT + col1, + ( + CAST( - col0 AS SIGNED ) ) FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

skipif mysql # not compatible
query II rowsort label-9918
SELECT DISTINCT + col1, + ( + CAST ( - col0 AS INTEGER ) ) FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( + + 52 / - + 76 + + col0 ) OR NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT ALL - ( - - 36 ) * - 1 * + COUNT( * ) AS col1 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-9920
SELECT ALL - ( - - 36 ) * - 1 * + COUNT ( * ) AS col1 FROM tab2
----
108

query I rowsort
SELECT ALL + - 77 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9922
SELECT - 68 DIV MIN( 75 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9922
SELECT - 68 / MIN ( 75 ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( NOT ( 33 ) IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + ( + 1 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 27 ) * - + 2 * col1 col1 FROM tab0 AS cor0
----
-1134
-4374
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9926
SELECT ALL - CAST( NULL AS SIGNED ) + - AVG ( ALL 17 ) * - COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9926
SELECT ALL - CAST ( NULL AS INTEGER ) + - AVG ( ALL 17 ) * - COUNT ( * ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT 6 * - 92 FROM tab1 WHERE - - 26 <> - col2
----
-552
-552
-552

onlyif mysql # aggregate syntax: 
query II rowsort label-9928
SELECT COUNT( * ) AS col0, 51 AS col2 FROM tab0
----
3
51

skipif mysql # not compatible
query II rowsort label-9928
SELECT COUNT ( * ) AS col0, 51 AS col2 FROM tab0
----
3
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9929
SELECT DISTINCT ( COUNT( * ) ) + 97 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9929
SELECT DISTINCT ( COUNT ( * ) ) + 97 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= ( + + 99 ) * col2 * - 19
----

query III rowsort
SELECT * FROM tab1 WHERE col0 * - 2 + + ( + 68 ) + col1 >= ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT 89 * COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
267

skipif mysql # not compatible
query I rowsort label-9932
SELECT 89 * COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT + - COUNT( * ) + + + 78 AS col0 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9933
SELECT + - COUNT ( * ) + + + 78 AS col0 FROM tab1 AS cor0
----
75

query I rowsort
SELECT - - 65 + + - col1 FROM tab0 AS cor0
----
-16
44
64

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) BETWEEN + col1 AND + - 21
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 74 * + + 84 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT DISTINCT 11 + + COUNT( * ) + + 25 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
45

skipif mysql # not compatible
query I rowsort label-9937
SELECT DISTINCT 11 + + COUNT ( * ) + + 25 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9938
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col1 + col1 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9938
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 + col1 AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9939
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9939
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT + + COUNT( 80 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9940
SELECT + + COUNT ( 80 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT 0 + - + 11 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query I rowsort
SELECT + 88 - - + col2 FROM tab2 AS cor0
----
111
128
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9943
SELECT ALL + 75 - - - CAST( 10 AS SIGNED ) FROM tab0 AS cor0
----
65
65
65

skipif mysql # not compatible
query I rowsort label-9943
SELECT ALL + 75 - - - CAST ( 10 AS INTEGER ) FROM tab0 AS cor0
----
65
65
65

query I rowsort
SELECT ALL + - col1 - + col2 AS col0 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9945
SELECT + CAST( - 99 AS SIGNED ) - - MAX( - col2 ) col1 FROM tab0 AS cor0
----
-109

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9945
SELECT + CAST ( - 99 AS INTEGER ) - - MAX ( - col2 ) col1 FROM tab0 AS cor0
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9946
SELECT DISTINCT CAST( COUNT( col2 ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT CAST ( COUNT ( col2 ) AS INTEGER ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - 24 * + - col1 FROM tab2
----
1224
1608
1848

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9948
SELECT DISTINCT * FROM tab1 WHERE NOT - + CAST( 92 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-9948
SELECT DISTINCT * FROM tab1 WHERE NOT - + CAST ( 92 AS INTEGER ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT ALL - - COUNT( * ) FROM tab2 WHERE - 11 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL - - COUNT ( * ) FROM tab2 WHERE - 11 IS NULL
----
0

query I rowsort
SELECT - col1 * + + 32 AS col2 FROM tab1
----
-1504
-160
-448

onlyif mysql # aggregate syntax: 
query II rowsort label-9952
SELECT - - 41, - SUM( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
41
-199

skipif mysql # not compatible
query II rowsort label-9952
SELECT - - 41, - SUM ( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
41
-199

query I rowsort
SELECT + 95 + - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT + MAX( DISTINCT col1 ) * SUM( + col0 ) / - SUM( col2 ) + + + COUNT( * ) FROM tab2 WHERE NOT NULL <= col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9955
SELECT + MAX ( DISTINCT col1 ) * SUM ( + col0 ) / - SUM ( col2 ) + + + COUNT ( * ) FROM tab2 WHERE NOT NULL <= col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT MAX( ALL - 14 ) AS col2 FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-9956
SELECT MAX ( ALL - 14 ) AS col2 FROM tab2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT - SUM( ALL - 36 ) FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-9957
SELECT - SUM ( ALL - 36 ) FROM tab2
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9958
SELECT - - MIN( ALL - CAST( - col2 AS SIGNED ) ) * 26 AS col1 FROM tab1 AS cor0
----
1534

skipif mysql # not compatible
query I rowsort label-9958
SELECT - - MIN ( ALL - CAST ( - col2 AS INTEGER ) ) * 26 AS col1 FROM tab1 AS cor0
----
1534

query I rowsort
SELECT - - 98 AS col1 FROM tab2 AS cor0
----
98
98
98

query I rowsort
SELECT - - 67 * - col1 * - + 25 * - col2 * - col0 FROM tab1 AS cor0
----
114811200
42000625
487150300

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE col1 / - 94 IS NOT NULL
----
15
87
97

query I rowsort
SELECT + - 13 + + + col2 FROM tab2 AS cor0
----
10
27
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT DISTINCT + SUM( DISTINCT col1 ) - + - SUM( ALL - ( - 60 ) ) + + + COUNT( DISTINCT - col1 ) FROM tab2 AS cor0 WHERE col0 BETWEEN ( NULL ) AND col1 + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-9963
SELECT DISTINCT + SUM ( DISTINCT col1 ) - + - SUM ( ALL - ( - 60 ) ) + + + COUNT ( DISTINCT - col1 ) FROM tab2 AS cor0 WHERE col0 BETWEEN ( NULL ) AND col1 + 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT - ( 5 ) + COUNT( * ) AS col0 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-9964
SELECT - ( 5 ) + COUNT ( * ) AS col0 FROM tab1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT ALL + SUM( ALL - + ( col2 ) ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL + SUM ( ALL - + ( col2 ) ) AS col1 FROM tab2
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9966
SELECT CAST( NULL AS SIGNED ) + - SUM( DISTINCT + col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9966
SELECT CAST ( NULL AS INTEGER ) + - SUM ( DISTINCT + col0 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT ALL COUNT( + - col1 ) AS col1 FROM tab2 WHERE ( NOT ( NULL ) < 47 )
----
0

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL COUNT ( + - col1 ) AS col1 FROM tab2 WHERE ( NOT ( NULL ) < 47 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9968
SELECT ALL ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 WHERE NOT - + CAST( NULL AS SIGNED ) IN ( + + col2 )
----

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 WHERE NOT - + CAST ( NULL AS INTEGER ) IN ( + + col2 )
----

query I rowsort
SELECT DISTINCT - + 2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT - 43 - COUNT( * ) FROM tab0 AS cor0 WHERE - 61 * - col0 = + col1
----
-43

skipif mysql # not compatible
query I rowsort label-9970
SELECT - 43 - COUNT ( * ) FROM tab0 AS cor0 WHERE - 61 * - col0 = + col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT ALL - COUNT( col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9971
SELECT ALL - COUNT ( col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT MAX( ALL - - ( - col1 ) ) - - COUNT( * ) AS col0 FROM tab2 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-9972
SELECT MAX ( ALL - - ( - col1 ) ) - - COUNT ( * ) AS col0 FROM tab2 cor0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9973
SELECT + 77 - - + CAST( NULL AS SIGNED ) + - 12 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9973
SELECT + 77 - - + CAST ( NULL AS INTEGER ) + - 12 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 75 * + col2 AS col0 FROM tab2
----
1725
3000
4350

query III rowsort
SELECT * FROM tab1 WHERE + 17 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT DISTINCT 28 + + ( 64 ) + COUNT( * ) FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-9976
SELECT DISTINCT 28 + + ( 64 ) + COUNT ( * ) FROM tab0
----
95

query I rowsort
SELECT ALL col2 * + + col1 - col0 + col0 + + - col2 + 47 + - 11 AS col2 FROM tab1
----
1284
272
3164

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9978
SELECT DISTINCT - + ( - + CAST( + col1 AS SIGNED ) ), + col0 * - col1 AS col1 FROM tab0 AS cor0
----
1
-97
21
-1827
81
-1215

skipif mysql # not compatible
query II rowsort label-9978
SELECT DISTINCT - + ( - + CAST ( + col1 AS INTEGER ) ), + col0 * - col1 AS col1 FROM tab0 AS cor0
----
1
-97
21
-1827
81
-1215

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT ALL + - SUM( ALL - - col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9979
SELECT ALL + - SUM ( ALL - - col1 ) AS col1 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT 0 / ( + col1 ) * + col1 * col1 FROM tab1 AS cor0 WHERE NOT col1 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9981
SELECT ALL + CAST( - 91 AS SIGNED ) * - - COUNT( * ) FROM tab1 cor0
----
-273

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL + CAST ( - 91 AS INTEGER ) * - - COUNT ( * ) FROM tab1 cor0
----
-273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
83

query I rowsort
SELECT DISTINCT - - col1 * - col0 * - 60 - col0 + - col2 * - 48 * + - col0 FROM tab1 AS cor0
----
-192219
-215305
-40495

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT DISTINCT - 45 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT - 45 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT ALL COUNT( + 95 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL COUNT ( + 95 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT + col2 * + 38 * + - col0 * + + 68 FROM tab0
----
-1821720
-2248080
-24814152

query I rowsort
SELECT col0 * col2 * - col1 AS col2 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9988
SELECT - ( - 71 ) DIV - + ( COUNT( * ) ) AS col0 FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-9988
SELECT - ( - 71 ) / - + ( COUNT ( * ) ) AS col0 FROM tab1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT DISTINCT MAX( - 58 ) FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-9989
SELECT DISTINCT MAX ( - 58 ) FROM tab1
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9990
SELECT ALL 60 DIV + ( col0 ) AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9990
SELECT ALL 60 / + ( col0 ) AS col1 FROM tab2
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9991
SELECT + col0 DIV - + col1 col2 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9991
SELECT + col0 / - + col1 col2 FROM tab1
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT ALL MIN( ALL col1 ) * - COUNT( * ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9992
SELECT ALL MIN ( ALL col1 ) * - COUNT ( * ) col1 FROM tab0
----
-3

query I rowsort
SELECT - col1 * + col2 FROM tab2 AS cor0 WHERE NOT - 24 * - col0 >= 44
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9994
SELECT ALL + col1 DIV - 46 AS col2 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL + col1 / - 46 AS col2 FROM tab2 cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN col2 - col0 AND - col1 * - - 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT COUNT( * ) + MIN( DISTINCT col1 ) AS col1 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-9996
SELECT COUNT ( * ) + MIN ( DISTINCT col1 ) AS col1 FROM tab1
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - col2 ) + - col2 AS col1, - 70 col1 FROM tab2
----
-116
-70
-46
-70
-80
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9998
SELECT ALL - CAST( - 32 AS SIGNED ) AS col1 FROM tab1
----
32
32
32

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL - CAST ( - 32 AS INTEGER ) AS col1 FROM tab1
----
32
32
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9999
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) <= 67
----

skipif mysql # not compatible
query III rowsort label-9999
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) <= 67
----

