sqllogictest
Artifact Content
Not logged in

Artifact 7cea830b01c96debb76f4a5526ba1317941e0090:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 67 - + 3 AS col1 FROM tab2
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT ALL - COUNT( * ) - - + COUNT( * ) * 67 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-1
SELECT ALL - COUNT ( * ) - - + COUNT ( * ) * 67 FROM tab1
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2
SELECT + col0 * CAST( 54 AS SIGNED ) FROM tab0
----
4698
5238
810

skipif mysql # not compatible
query I rowsort label-2
SELECT + col0 * CAST ( 54 AS INTEGER ) FROM tab0
----
4698
5238
810

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3
SELECT DISTINCT * FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) * - + 56 NOT IN ( + col1 * + col0 - + 24, col1 )
----

skipif mysql # not compatible
query III rowsort label-3
SELECT DISTINCT * FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) * - + 56 NOT IN ( + col1 * + col0 - + 24, col1 )
----

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

query II rowsort
SELECT ALL - - col0 AS col2, col2 AS col0 FROM tab1 AS cor0
----
51
96
85
59
91
68

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 37 * col0 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - 31 OR NOT CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND - 28
----

skipif mysql # not compatible
query III rowsort label-9
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - 31 OR NOT CAST ( NULL AS REAL ) NOT BETWEEN NULL AND - 28
----

query I rowsort
SELECT ALL + 45 * 58 + 84 AS col1 FROM tab0 AS cor0
----
2694
2694
2694

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - - 13 + - 11 col2 FROM tab0 AS cor0
----
1120
1250
184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-12
SELECT col1 * - CAST( + 39 AS SIGNED ) * col2 * + col0 * - - col0 + - 11 * col0 AS col2 FROM tab0 AS cor0
----
-33406590
-36329216
-61991067

skipif mysql # not compatible
query I rowsort label-12
SELECT col1 * - CAST ( + 39 AS INTEGER ) * col2 * + col0 * - - col0 + - 11 * col0 AS col2 FROM tab0 AS cor0
----
-33406590
-36329216
-61991067

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

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

query I rowsort
SELECT 37 * + 11 FROM tab0
----
407
407
407

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-15
SELECT ALL 5 / - col0 + + - CAST( NULL AS SIGNED ) + 22 * - col0 * col2 + 88 AS col1 FROM tab1 WHERE NOT + col2 <= + - col0 * 55
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-15
SELECT ALL 5 / - col0 + + - CAST ( NULL AS INTEGER ) + 22 * - col0 * col2 + 88 AS col1 FROM tab1 WHERE NOT + col2 <= + - col0 * 55
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col2, 69 - col0 AS col1 FROM tab1 WHERE NOT NULL IN ( col0, col2 )
----

query I rowsort
SELECT DISTINCT 55 * + + col2 AS col2 FROM tab0
----
2585
5445
550

query III rowsort
SELECT * FROM tab1 WHERE - col1 NOT BETWEEN 4 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * col2 + + col2 + - col0 FROM tab2 WHERE + col0 IS NOT NULL
----
1576
3347
506

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT + COUNT( * ) col2 FROM tab1 WHERE - 39 + col0 + + + 20 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-20
SELECT + COUNT ( * ) col2 FROM tab1 WHERE - 39 + col0 + + + 20 IS NULL
----
0

query I rowsort
SELECT ALL 39 * - - col2 FROM tab2
----
1560
2262
897

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-22
SELECT ALL - col1 + + - col1 - + + 43 + + CAST( - col0 AS SIGNED ) FROM tab1
----
-122
-138
-228

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL - col1 + + - col1 - + + 43 + + CAST ( - col0 AS INTEGER ) FROM tab1
----
-122
-138
-228

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

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

query I rowsort
SELECT ALL - 90 + - + 13 FROM tab0 AS cor0
----
-103
-103
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-25
SELECT + 57 * - + SUM( + col0 ) + + COUNT( * ) * - + 9 AS col2, + 62 AS col0 FROM tab2 AS cor0
----
-10572
62

skipif mysql # not compatible
query II rowsort label-25
SELECT + 57 * - + SUM ( + col0 ) + + COUNT ( * ) * - + 9 AS col2, + 62 AS col0 FROM tab2 AS cor0
----
-10572
62

query I rowsort
SELECT DISTINCT + - 60 + 5 FROM tab2 AS cor0
----
-55

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

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

query I rowsort
SELECT - 36 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT + MIN( DISTINCT + 32 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-29
SELECT + MIN ( DISTINCT + 32 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + 43 / + + ( - col2 ) * - - 13 <= NULL
----

query I rowsort
SELECT - + 55 - col1 FROM tab1 AS cor0
----
-102
-60
-69

query II rowsort
SELECT DISTINCT - col2, col0 AS col1 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query II rowsort
SELECT col0 - + + 30, 33 AS col1 FROM tab2 cor0
----
16
33
34
33
45
33

query I rowsort
SELECT DISTINCT - 26 * + col2 + - col0 * - col2 + - ( - - col0 ) AS col1 FROM tab0 AS cor0
----
-532
523
6932

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 >= + + col2 / + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-39
SELECT + CAST( - 13 AS SIGNED ) * + + 90 FROM tab2
----
-1170
-1170
-1170

skipif mysql # not compatible
query I rowsort label-39
SELECT + CAST ( - 13 AS INTEGER ) * + + 90 FROM tab2
----
-1170
-1170
-1170

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

query II rowsort
SELECT - 47 AS col0, + 54 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 66fbf42451df27e8a45700ff02cec19a

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

onlyif mysql # DIV for integer division: 
query I rowsort label-43
SELECT 22 DIV - 79 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-43
SELECT 22 / - 79 AS col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-44
SELECT DISTINCT + CAST( NULL AS SIGNED ), - 51 * col1 AS col1 FROM tab1 AS cor0
----
NULL
-2397
NULL
-255
NULL
-714

skipif mysql # not compatible
query II rowsort label-44
SELECT DISTINCT + CAST ( NULL AS INTEGER ), - 51 * col1 AS col1 FROM tab1 AS cor0
----
NULL
-2397
NULL
-255
NULL
-714

query I rowsort
SELECT - + 40 FROM tab0 cor0
----
-40
-40
-40

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

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

query II rowsort
SELECT DISTINCT - col2, ( - + 38 ) FROM tab1 AS cor0 WHERE NOT 40 * + col2 IS NOT NULL
----

query I rowsort
SELECT ALL col1 + + 2 * - - 30 AS col2 FROM tab2 cor0
----
111
127
137

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

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

query I rowsort
SELECT DISTINCT + - col1 * col0 * + 87 + - col2 + 74 AS col2 FROM tab1 AS cor0
----
-36960
-372093
-62140

query II rowsort
SELECT ALL + 33 * col0 AS col2, col2 + - col1 * - 61 + col0 FROM tab0 AS cor0 WHERE NOT NULL <= - col0 / 0 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT - COUNT( DISTINCT + - col0 ) * - + 11 FROM tab2 WHERE + col1 BETWEEN - - col1 AND col1
----
33

skipif mysql # not compatible
query I rowsort label-53
SELECT - COUNT ( DISTINCT + - col0 ) * - + 11 FROM tab2 WHERE + col1 BETWEEN - - col1 AND col1
----
33

query I rowsort
SELECT col1 * + 3 + - col2 AS col0 FROM tab1
----
-44
-54
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-55
SELECT ALL col2 * + CAST( - col2 AS SIGNED ) AS col0 FROM tab2
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-55
SELECT ALL col2 * + CAST ( - col2 AS INTEGER ) AS col0 FROM tab2
----
-1600
-3364
-529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-56
SELECT DISTINCT + CAST( 51 AS SIGNED ) * COUNT( * ) + + - COUNT( * ) AS col0 FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-56
SELECT DISTINCT + CAST ( 51 AS INTEGER ) * COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab1
----
150

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

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

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

skipif mysql # not compatible
query I rowsort label-58
SELECT + CAST ( + 54 AS INTEGER ) FROM tab1
----
54
54
54

query I rowsort
SELECT 47 * col0 AS col2 FROM tab2
----
2162
3008
3525

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

skipif mysql # not compatible
query I rowsort label-60
SELECT - - col1 / + 78 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + - 2 + col0 FROM tab0 AS cor0
----
194
60
95

query I rowsort
SELECT DISTINCT - + col2 + + - 16 FROM tab2 AS cor0
----
-39
-56
-74

query I rowsort
SELECT + 0 - + 60 FROM tab0, tab0 cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT - 65 FROM tab1, tab1 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT - col2 * + ( - - 5 ) + 50 AS col0 FROM tab1
----
-245
-290
-430

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE ( 91 - + 53 ) IS NULL
----

query I rowsort
SELECT ALL - + 83 + + 3 FROM tab2 AS cor0
----
-80
-80
-80

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 86 * 8 col2 FROM tab2 cor0
----
-688

query II rowsort
SELECT DISTINCT + col1, col2 * + - col0 FROM tab1 AS cor0 WHERE NOT + 80 IS NULL
----
14
-4896
47
-6188
5
-5015

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * - + col2 + + 54 * - col0 >= - col0
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-75
SELECT DISTINCT - - 58 DIV col0 AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-75
SELECT DISTINCT - - 58 / col0 AS col2 FROM tab2 AS cor0
----
0
1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-76
SELECT col0 col2, CAST ( NULL AS INTEGER ) / 33 FROM tab1
----
51
NULL
85
NULL
91
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-78
SELECT DISTINCT col1 DIV + col0 * - + 96 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-78
SELECT DISTINCT col1 / + col0 * - + 96 FROM tab1
----
0

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

skipif mysql # not compatible
query III rowsort label-79
SELECT DISTINCT * FROM tab0 WHERE + col2 NOT IN ( - + CAST ( NULL AS INTEGER ) * - + col2 * - col2, col2, + col0 )
----

query I rowsort
SELECT - 42 * + 68 * - + col0 AS col2 FROM tab1
----
145656
242760
259896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, + col2 + + 25 col2 FROM tab2
----
-23
48
-40
65
-58
83

query I rowsort
SELECT DISTINCT + col0 + - col0 FROM tab2 WHERE + 99 + - 9 NOT IN ( - col0 - - ( 21 ), + col2, col0 )
----
0

query I rowsort
SELECT ALL + ( - 48 ) AS col0 FROM tab1
----
-48
-48
-48

query I rowsort
SELECT ALL + ( - col0 ) * 88 FROM tab0
----
-1320
-7656
-8536

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT DISTINCT + - COUNT( * ) * + 29 * + 68 AS col1 FROM tab2 AS cor0
----
-5916

skipif mysql # not compatible
query I rowsort label-85
SELECT DISTINCT + - COUNT ( * ) * + 29 * + 68 AS col1 FROM tab2 AS cor0
----
-5916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-86
SELECT ALL - CAST( NULL AS SIGNED ) * - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-86
SELECT ALL - CAST ( NULL AS INTEGER ) * - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 65 * + col0 AS col2 FROM tab0 AS cor0
----
5655
6305
975

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-90
SELECT 60 DIV 46, 97 AS col2 FROM tab0
----
1
97
1
97
1
97

skipif mysql # not compatible
query II rowsort label-90
SELECT 60 / 46, 97 AS col2 FROM tab0
----
1
97
1
97
1
97

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT DISTINCT - 45 + - - MAX( DISTINCT - col2 ) col0 FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-91
SELECT DISTINCT - 45 + - - MAX ( DISTINCT - col2 ) col0 FROM tab0 AS cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT - MIN( + + col2 ) FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-92
SELECT - MIN ( + + col2 ) FROM tab2 cor0
----
-23

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-94
SELECT - 14 * - - SUM( DISTINCT + 39 ) AS col0, - COUNT( * ) FROM tab2 AS cor0
----
-546
-3

skipif mysql # not compatible
query II rowsort label-94
SELECT - 14 * - - SUM ( DISTINCT + 39 ) AS col0, - COUNT ( * ) FROM tab2 AS cor0
----
-546
-3

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

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

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

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

skipif mysql # not compatible
query I rowsort label-97
SELECT - CAST ( + - 98 AS INTEGER ) FROM tab1
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT COUNT( * ) + + MIN( ALL + 93 ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-98
SELECT COUNT ( * ) + + MIN ( ALL + 93 ) FROM tab2
----
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT DISTINCT - - 18 * - + SUM( + col2 ) FROM tab1 WHERE - - col0 IS NOT NULL
----
-4014

skipif mysql # not compatible
query I rowsort label-100
SELECT DISTINCT - - 18 * - + SUM ( + col2 ) FROM tab1 WHERE - - col0 IS NOT NULL
----
-4014

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE - + 17 = col0
----

query I rowsort
SELECT 36 + col2 + + col1 * - - col1 AS col0 FROM tab0
----
136
487
6644

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

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

skipif mysql # not compatible
query I rowsort label-104
SELECT DISTINCT 17 * CAST ( NULL AS INTEGER ) - - - col0 + - 59 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 55 AS col0 FROM tab1 AS cor0 WHERE col1 * + 43 IN ( + col0 + - - col1, + col0, + col0 + + 61, 73 + + 60 * + - 50 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT DISTINCT - COUNT( - - 93 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-106
SELECT DISTINCT - COUNT ( - - 93 ) FROM tab0
----
-3

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-110
SELECT ALL - ( + 0 ) * - 48 + - 49 + + + col1 * + 27 * - - ( - 93 ) * - + 49 * - 87 * + col0 DIV - + col0 AS col1 FROM tab1 AS cor0
----
149861453
503106422
53521916

skipif mysql # not compatible
skipif postgresql # PostgreSQL does not promote INTEGER (32-bit) results
query I rowsort label-110
SELECT ALL - ( + 0 ) * - 48 + - 49 + + + col1 * + 27 * - - ( - 93 ) * - + 49 * - 87 * + col0 / - + col0 AS col1 FROM tab1 AS cor0
----
149861453
503106422
53521916

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT ALL + SUM( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-111
SELECT ALL + SUM ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
-103

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-113
SELECT DISTINCT + 67 * - CAST( - col2 AS SIGNED ) FROM tab2
----
1541
2680
3886

skipif mysql # not compatible
query I rowsort label-113
SELECT DISTINCT + 67 * - CAST ( - col2 AS INTEGER ) FROM tab2
----
1541
2680
3886

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

onlyif mysql # DIV for integer division: 
query I rowsort label-115
SELECT DISTINCT + + col2 DIV - - 8 - + col2 AS col0 FROM tab1 AS cor0
----
-52
-60
-84

skipif mysql # not compatible
query I rowsort label-115
SELECT DISTINCT + + col2 / - - 8 - + col2 AS col0 FROM tab1 AS cor0
----
-52
-60
-84

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

query II rowsort
SELECT DISTINCT + col2 AS col1, - col0 + 23 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) = + 50 + - col0
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 * - 23 col2 FROM tab2
----
552
552
552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 1 * 18 + - + 63 col2 FROM tab1 AS cor0
----
-45
-45
-45

query II rowsort
SELECT DISTINCT col0 + + + col0 AS col1, - 46 FROM tab1 cor0
----
102
-46
170
-46
182
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-123
SELECT DISTINCT + + ( - col0 ) + + CAST( - + 20 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-105
-111
-71

skipif mysql # not compatible
query I rowsort label-123
SELECT DISTINCT + + ( - col0 ) + + CAST ( - + 20 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-105
-111
-71

query I rowsort
SELECT ALL + col2 + + 88 FROM tab0 AS cor0
----
135
187
98

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

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

query I rowsort
SELECT ALL + 73 + - - 27 AS col2 FROM tab0
----
100
100
100

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + ( - 87 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) * - + 96 col0 FROM tab0
----
4512
9504
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 * 52 * + 41 col2 FROM tab1
----
138580
138580
138580

onlyif mysql # DIV for integer division: 
query II rowsort label-130
SELECT col0 DIV - col0 AS col1, - 46 AS col0 FROM tab1
----
-1
-46
-1
-46
-1
-46

skipif mysql # not compatible
query II rowsort label-130
SELECT col0 / - col0 AS col1, - 46 AS col0 FROM tab1
----
-1
-46
-1
-46
-1
-46

query I rowsort
SELECT DISTINCT 30 * + 80 FROM tab0
----
2400

query I rowsort
SELECT ( + + 94 ) * - 55 FROM tab2
----
-5170
-5170
-5170

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

query I rowsort
SELECT - + col1 / 77 * - col1 + col1 FROM tab2 AS cor0 WHERE ( NOT NULL >= NULL )
----

query I rowsort
SELECT ALL + - 96 + + col1 AS col2 FROM tab1 AS cor0
----
-49
-82
-91

query I rowsort
SELECT + col2 + - - 11 AS col2 FROM tab2 AS cor0
----
34
51
69

query II rowsort
SELECT ALL - 86 + + - 70, - col2 AS col0 FROM tab1 AS cor0
----
-156
-59
-156
-68
-156
-96

query I rowsort
SELECT + ( + - 13 ) + - 92 * - col1 * - + 88 AS col2 FROM tab2
----
-412909
-542445
-623405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col0 + + 29 * + col2 * - + 57 * 34 col0 FROM tab1
----
-3315918
-3821736
-5395392

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-145
SELECT + ( - 79 ) FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) / + col1 * - 60 IS NOT NULL
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-145
SELECT + ( - 79 ) FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) / + col1 * - 60 IS NOT NULL
----
-79
-79
-79

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

query I rowsort
SELECT ALL + col0 * - ( + 52 ) FROM tab1 AS cor0
----
-2652
-4420
-4732

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

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT ALL - SUM( ALL 23 ) FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-149
SELECT ALL - SUM ( ALL 23 ) FROM tab1
----
-69

query II rowsort
SELECT - - col0, ( + + col2 ) + col0 AS col0 FROM tab2 WHERE NOT - - col2 = + col0
----
46
69
64
104
75
133

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE ( - col0 ) IS NOT NULL
----
10
47
99

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

query I rowsort
SELECT DISTINCT 48 * + 44 AS col0 FROM tab1
----
2112

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-156
SELECT + 49 col1 FROM tab0 AS cor0 WHERE NOT ( col1 ) IN ( + + col0 / + 93, 78 + + col2 * - CAST( NULL AS DECIMAL ), + col0 * + 76 * - + col2 * + + col1 - + - ( col1 ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-156
SELECT + 49 col1 FROM tab0 AS cor0 WHERE NOT ( col1 ) IN ( + + col0 / + 93, 78 + + col2 * - CAST ( NULL AS REAL ), + col0 * + 76 * - + col2 * + + col1 - + - ( col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-157
SELECT col1 + + CAST( - col0 AS SIGNED ) - - 37 AS col1, - 71 AS col2 FROM tab0 cor0
----
-29
-71
-59
-71
103
-71

skipif mysql # not compatible
query II rowsort label-157
SELECT col1 + + CAST ( - col0 AS INTEGER ) - - 37 AS col1, - 71 AS col2 FROM tab0 cor0
----
-29
-71
-59
-71
103
-71

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT NULL <= - col2
----

query II rowsort
SELECT DISTINCT - + ( - col1 ) * col0 + + ( col2 ), + col2 FROM tab1 cor0
----
4345
68
484
59
810
96

query II rowsort
SELECT ALL 77 * + 22, ( + col1 ) * - col1 AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT ( + - 57 ) - 98 * - SUM( - 69 ) FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-20343

skipif mysql # not compatible
query I rowsort label-162
SELECT ( + - 57 ) - 98 * - SUM ( - 69 ) FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-20343

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

onlyif mysql # DIV for integer division: 
query I rowsort label-164
SELECT col0 * - + 90 - - 47 DIV + col0 FROM tab2 AS cor0
----
-4139
-5760
-6750

skipif mysql # not compatible
query I rowsort label-164
SELECT col0 * - + 90 - - 47 / + col0 FROM tab2 AS cor0
----
-4139
-5760
-6750

query I rowsort
SELECT ALL + 42 + - - 59 * + col1 AS col0 FROM tab2 AS cor0
----
3051
3995
4585

query I rowsort
SELECT ALL + 32 + - col1 * + 33 FROM tab1 AS cor0
----
-133
-1519
-430

query I rowsort
SELECT ALL + ( - col2 ) * + col2 + 72 FROM tab0
----
-2137
-28
-9729

onlyif mysql # DIV for integer division: 
query I rowsort label-168
SELECT DISTINCT + col1 DIV 24 AS col1 FROM tab2
----
2
3

skipif mysql # not compatible
query I rowsort label-168
SELECT DISTINCT + col1 / 24 AS col1 FROM tab2
----
2
3

query I rowsort
SELECT ALL - col0 * col2 - col2 AS col0 FROM tab2
----
-1081
-2600
-4408

query III rowsort
SELECT * FROM tab0 WHERE - col0 > col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-171
SELECT ALL col1 - ( + col0 ) DIV col0, - col1 AS col1 FROM tab1
----
13
-14
4
-5
46
-47

skipif mysql # not compatible
query II rowsort label-171
SELECT ALL col1 - ( + col0 ) / col0, - col1 AS col1 FROM tab1
----
13
-14
4
-5
46
-47

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

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

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

query I rowsort
SELECT + 24 * - col0 + + + col1 * + col1 AS col2 FROM tab0 AS cor0
----
-1647
-2327
6201

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

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

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

query I rowsort
SELECT DISTINCT - - 14 AS col2 FROM tab2 AS cor0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-178
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

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

query I rowsort
SELECT 14 * col1 * - 25 FROM tab1 AS cor0
----
-16450
-1750
-4900

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT DISTINCT - MAX( + + col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-181
SELECT DISTINCT - MAX ( + + col2 ) AS col1 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT 32 * + - col0 FROM tab0 AS cor0
----
-2784
-3104
-480

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT - MAX( - ( col1 ) ) FROM tab2 WHERE NOT col2 * - col0 + - col2 + - + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-184
SELECT - MAX ( - ( col1 ) ) FROM tab2 WHERE NOT col2 * - col0 + - col2 + - + col2 IS NOT NULL
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 78, col1 col1 FROM tab2
----
78
51
78
67
78
77

query I rowsort
SELECT - 53 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL AND 6 / - - ( col2 ) IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-189
SELECT - CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-189
SELECT - CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

skipif mysql # not compatible
query I rowsort label-191
SELECT COUNT ( * ) + + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT ALL + MAX( - ( + + col2 ) ) col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-192
SELECT ALL + MAX ( - ( + + col2 ) ) col2 FROM tab2 AS cor0
----
-23

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 28 * col0 ) > + ( + 79 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 > col1
----

query I rowsort
SELECT + 83 - - col1 AS col2 FROM tab1
----
130
88
97

query I rowsort
SELECT + 84 - - - col2 AS col2 FROM tab0
----
-15
37
74

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

query I rowsort
SELECT DISTINCT + col2 - - 43 FROM tab1
----
102
111
139

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

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

query I rowsort
SELECT DISTINCT 74 AS col1 FROM tab2 cor0
----
74

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

skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT 22 / - ( - + 60 ) / COUNT ( * ) * + COUNT ( * ) * - COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT SUM( col1 ) AS col2 FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-208
SELECT SUM ( col1 ) AS col2 FROM tab0 cor0
----
103

query II rowsort
SELECT ALL + + col0, 35 FROM tab0 AS cor0
----
15
35
87
35
97
35

query I rowsort
SELECT ALL + col2 * + - 80 * - - col0 FROM tab0 AS cor0
----
-56400
-69600
-768240

query I rowsort
SELECT - - col2 * + col2 - + + col2 + + col1 FROM tab0 AS cor0
----
111
2243
9703

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT DISTINCT MAX( 12 ) AS col2 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-215
SELECT DISTINCT MAX ( 12 ) AS col2 FROM tab1 AS cor0
----
12

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 < - 84 + col1 - - col1 - - + col2
----
87
21
10

query III rowsort
SELECT * FROM tab2 WHERE NOT + 21 * - + 72 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-218
SELECT - 11 * + col2 * - CAST( + col2 AS SIGNED ) + + - col2 AS col0 FROM tab0
----
107712
1090
24252

skipif mysql # not compatible
query I rowsort label-218
SELECT - 11 * + col2 * - CAST ( + col2 AS INTEGER ) + + - col2 AS col0 FROM tab0
----
107712
1090
24252

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-222
SELECT DISTINCT COUNT( * ) + - SUM( DISTINCT + 16 ), COUNT( * ) + - COUNT( * ) AS col2 FROM tab0
----
-13
0

skipif mysql # not compatible
query II rowsort label-222
SELECT DISTINCT COUNT ( * ) + - SUM ( DISTINCT + 16 ), COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0
----
-13
0

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

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

query I rowsort
SELECT ALL 18 + col0 AS col1 FROM tab1 AS cor0
----
103
109
69

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT IN ( col1 * - 63 + + 79, col2 )
----

query I rowsort
SELECT + col2 + + + col0 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT DISTINCT + - 67 - - MIN( - + ( - 14 ) ) FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-227
SELECT DISTINCT + - 67 - - MIN ( - + ( - 14 ) ) FROM tab2 AS cor0
----
-53

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 + - + col1 * col1 col1 FROM tab1 AS cor0
----
-199
-2212
-28

query I rowsort
SELECT - col0 FROM tab1 cor0 WHERE - 79 NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT ALL + 28 - col1 + - + col2 AS col1 FROM tab1
----
-36
-82
-87

query I rowsort
SELECT DISTINCT col0 + + - 3 AS col2 FROM tab2
----
43
61
72

query I rowsort
SELECT + ( + 99 ) + - col1 + - ( - col0 ) * + col1 AS col0 FROM tab1
----
4329
519
799

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT - MAX( ALL - 29 ) FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-236
SELECT - MAX ( ALL - 29 ) FROM tab2
----
29

query I rowsort
SELECT ALL + col2 * - - col1 * + col0 AS col0 FROM tab0 AS cor0
----
18270
57105
9603

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

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT ALL - COUNT( * ) * - 19 * - 17 AS col0 FROM tab2 AS cor0
----
-969

skipif mysql # not compatible
query I rowsort label-239
SELECT ALL - COUNT ( * ) * - 19 * - 17 AS col0 FROM tab2 AS cor0
----
-969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 87 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 23 + + - col0 - + 59 col0 FROM tab0 cor0
----
-169
-179
-97

query I rowsort
SELECT DISTINCT 80 AS col0 FROM tab2 cor0
----
80

query I rowsort
SELECT - 1 + - 62 FROM tab2 AS cor0
----
-63
-63
-63

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

query I rowsort
SELECT AVG ( - 48 ) FROM tab2 WHERE - col1 > NULL
----
NULL

query II rowsort
SELECT ALL + + col2 * - - 49 + - col2 AS col2, col1 + + col0 AS col1 FROM tab2 WHERE NOT - col2 > + col2
----
1104
97
1920
141
2784
142

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

query I rowsort
SELECT DISTINCT col0 + + 73 AS col0 FROM tab0
----
160
170
88

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NULL = + col0 + col0
----

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

query II rowsort
SELECT DISTINCT col1 + - - 44 AS col0, 16 * + - col1 FROM tab0 AS cor0
----
125
-1296
45
-16
65
-336

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

query I rowsort
SELECT col2 * - + col2 FROM tab0
----
-100
-2209
-9801

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

query I rowsort
SELECT ALL col0 FROM tab2 WHERE + 86 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-258
SELECT ALL + ( MAX( - - col0 ) ), - COUNT( * ) + + - CAST( - 38 AS SIGNED ) + + COUNT( DISTINCT - col2 ) AS col2 FROM tab2
----
75
38

skipif mysql # not compatible
query II rowsort label-258
SELECT ALL + ( MAX ( - - col0 ) ), - COUNT ( * ) + + - CAST ( - 38 AS INTEGER ) + + COUNT ( DISTINCT - col2 ) AS col2 FROM tab2
----
75
38

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

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

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

query I rowsort
SELECT ALL 53 * + 11 AS col1 FROM tab2 AS cor0
----
583
583
583

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

query I rowsort
SELECT ALL 61 * + - ( 33 ) + - col1 FROM tab1 AS cor0
----
-2018
-2027
-2060

query I rowsort
SELECT 53 * - col1 FROM tab2 AS cor0
----
-2703
-3551
-4081

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

query I rowsort
SELECT - 47 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT - + 96 < NULL )
----

query I rowsort
SELECT - - 65 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT DISTINCT - - 29 * - + SUM( - + col2 ) FROM tab1 AS cor0
----
6467

skipif mysql # not compatible
query I rowsort label-269
SELECT DISTINCT - - 29 * - + SUM ( - + col2 ) FROM tab1 AS cor0
----
6467

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) < 67
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-273
SELECT DISTINCT + + SUM( ( - - col0 ) ) DIV - + 97 AS col1, COUNT( * ) * + - 8 AS col2 FROM tab2 AS cor0 WHERE NOT - 15 * - + col0 * - 54 + + - col2 IS NULL
----
-1
-24

skipif mysql # not compatible
query II rowsort label-273
SELECT DISTINCT + + SUM ( ( - - col0 ) ) / - + 97 AS col1, COUNT ( * ) * + - 8 AS col2 FROM tab2 AS cor0 WHERE NOT - 15 * - + col0 * - 54 + + - col2 IS NULL
----
-1
-24

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT DISTINCT ( - MAX( col2 ) ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-276
SELECT DISTINCT ( - MAX ( col2 ) ) AS col1 FROM tab2
----
-58

query I rowsort
SELECT ALL 35 * + 95 AS col0 FROM tab1
----
3325
3325
3325

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-280
SELECT DISTINCT 62 DIV 54 AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-280
SELECT DISTINCT 62 / 54 AS col0 FROM tab0
----
1

query I rowsort
SELECT DISTINCT col0 * + col2 * + 26 FROM tab0
----
18330
22620
249678

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-282
SELECT DISTINCT - 83 DIV - - COUNT( * ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-282
SELECT DISTINCT - 83 / - - COUNT ( * ) FROM tab0
----
-27

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

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

query I rowsort
SELECT - 53 + + 61 + - 81 AS col0 FROM tab0 cor0
----
-73
-73
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-286
SELECT col2 + + CAST( + + ( col2 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
198
20
94

skipif mysql # not compatible
query I rowsort label-286
SELECT col2 + + CAST ( + + ( col2 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
198
20
94

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - + col1 * - 85 * - col1 col2 FROM tab0
----
37464
557604
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-289
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL BETWEEN + 73 AND 1
----

skipif mysql # not compatible
query I rowsort label-289
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL BETWEEN + 73 AND 1
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-291
SELECT - COUNT( * ) - - 7 AS col2, + COUNT( * ) FROM tab2
----
4
3

skipif mysql # not compatible
query II rowsort label-291
SELECT - COUNT ( * ) - - 7 AS col2, + COUNT ( * ) FROM tab2
----
4
3

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

query II rowsort
SELECT + 60 AS col1, col2 FROM tab1 AS cor0 WHERE + ( + col2 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 - + - 3 * - col0 AS col2 FROM tab0 AS cor0
----
-174
-194
-30

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

query I rowsort
SELECT col2 * - - col2 * + + 18 - - col2 AS col2 FROM tab1 AS cor0
----
165984
62717
83300

query I rowsort
SELECT DISTINCT - col2 + + col1 - + col1 - col0 * col0 AS col2 FROM tab1 AS cor0
----
-2697
-7284
-8349

query I rowsort
SELECT col2 + 93 AS col0 FROM tab2 AS cor0
----
116
133
151

query II rowsort
SELECT ALL 62 AS col0, - col0 FROM tab2 AS cor0
----
62
-46
62
-64
62
-75

query I rowsort
SELECT DISTINCT col0 + 38 AS col0 FROM tab0 AS cor0
----
125
135
53

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * - + 18 + - + col1 FROM tab1 WHERE NOT col2 <> 85 * - - 91
----

query I rowsort
SELECT DISTINCT - col1 * + + ( + - 14 ) AS col1 FROM tab1
----
196
658
70

query I rowsort
SELECT - 15 * + col0 FROM tab1 AS cor0
----
-1275
-1365
-765

query I rowsort
SELECT 78 * + col0 * + col2 FROM tab0 AS cor0
----
54990
67860
749034

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

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

query I rowsort
SELECT - - 11 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT ( - - 33 ) AS col1 FROM tab0
----
33
33
33

query I rowsort
SELECT DISTINCT + 40 FROM tab2 WHERE NULL = - - 4
----

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

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

query I rowsort
SELECT ALL - col1 + + col1 - - - col2 * - + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-295885
-420784
-470016

query I rowsort
SELECT ALL + col1 + - 43 AS col1 FROM tab0 AS cor0
----
-22
-42
38

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-318
SELECT DISTINCT col0 + - 16 * + + CAST( - col1 AS SIGNED ) + + col1 + - + col2 + + col0 - 79 * 6 * - col0 * + - 18 * + col1 FROM tab0 AS cor0
----
-10365020
-15587443
-827492

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT col0 + - 16 * + + CAST ( - col1 AS INTEGER ) + + col1 + - + col2 + + col0 - 79 * 6 * - col0 * + - 18 * + col1 FROM tab0 AS cor0
----
-10365020
-15587443
-827492

query II rowsort
SELECT - 42 * - 14 * col1 + + 73 AS col1, 72 FROM tab1 AS cor0 WHERE - 40 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT ALL + COUNT( * ) * + - MAX( col2 ) AS col1 FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-320
SELECT ALL + COUNT ( * ) * + - MAX ( col2 ) AS col1 FROM tab0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT COUNT( col1 ) * 42 FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-321
SELECT COUNT ( col1 ) * 42 FROM tab0
----
126

query I rowsort
SELECT col0 * - 52 AS col2 FROM tab1
----
-2652
-4420
-4732

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

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

query I rowsort
SELECT ( + col1 ) * - 27 FROM tab1
----
-1269
-135
-378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-325
SELECT + 81 DIV MIN( ALL + 22 ) * 18 AS col2 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-325
SELECT + 81 / MIN ( ALL + 22 ) * 18 AS col2 FROM tab0
----
54

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-327
SELECT CAST( NULL AS SIGNED ) * - 50 AS col0, + COUNT( DISTINCT - - col2 ) col2 FROM tab2
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-327
SELECT CAST ( NULL AS INTEGER ) * - 50 AS col0, + COUNT ( DISTINCT - - col2 ) col2 FROM tab2
----
NULL
3

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * ( + col0 ) * 87 * - + col1 + - 3 = NULL AND NOT 69 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-330
SELECT DISTINCT - - COUNT( * ) + + + 94 col0, 13 FROM tab1 AS cor0
----
97
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-330
SELECT DISTINCT - - COUNT ( * ) + + + 94 col0, 13 FROM tab1 AS cor0
----
97
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 34 col0 FROM tab0 AS cor0
----
133
44
81

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT COUNT( DISTINCT + 18 ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-332
SELECT COUNT ( DISTINCT + 18 ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT - COUNT( DISTINCT + + 14 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-333
SELECT - COUNT ( DISTINCT + + 14 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-335
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
0

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

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

query II rowsort
SELECT ALL + col1, - ( - col0 ) AS col2 FROM tab0 cor0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT DISTINCT - ( MIN( + 30 ) ) AS col2 FROM tab2 WHERE NULL > col0
----
NULL

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT - ( MIN ( + 30 ) ) AS col2 FROM tab2 WHERE NULL > col0
----
NULL

query II rowsort
SELECT col1 AS col0, col0 + ( - 84 ) + col0 * - + col1 AS col0 FROM tab2
----
51
-2384
67
-5034
77
-4948

onlyif mysql # DIV for integer division: 
query I rowsort label-341
SELECT + col2 DIV 4 * - 43 FROM tab0
----
-1032
-473
-86

skipif mysql # not compatible
query I rowsort label-341
SELECT + col2 / 4 * - 43 FROM tab0
----
-1032
-473
-86

query II rowsort
SELECT + 23, - 31 AS col2 FROM tab1
----
23
-31
23
-31
23
-31

query II rowsort
SELECT ALL - col0 AS col2, + 41 FROM tab1
----
-51
41
-85
41
-91
41

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-345
SELECT ALL COUNT ( * ), + ( - 97 ) col2 FROM tab2
----
3
-97

query I rowsort
SELECT ALL - 47 FROM tab2 WHERE NULL IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT + SUM( ALL - 63 ) AS col1 FROM tab2 cor0
----
-189

skipif mysql # not compatible
query I rowsort label-349
SELECT + SUM ( ALL - 63 ) AS col1 FROM tab2 cor0
----
-189

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

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

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

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

skipif mysql # not compatible
query I rowsort label-352
SELECT ALL CAST ( + - MIN ( - col0 ) AS INTEGER ) AS col2 FROM tab1
----
91

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 60 + col1 * + + ( + col2 ) AS col0 FROM tab2 AS cor0
----
1233
3140
3946

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-361
SELECT col0, 47 + - 5 DIV ( 24 ) AS col0 FROM tab2 AS cor0
----
46
47
64
47
75
47

skipif mysql # not compatible
query II rowsort label-361
SELECT col0, 47 + - 5 / ( 24 ) AS col0 FROM tab2 AS cor0
----
46
47
64
47
75
47

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

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

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

query I rowsort
SELECT ALL + - 59 - - col2 FROM tab0 AS cor0
----
-12
-49
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-365
SELECT DISTINCT SUM( - 94 ) * 23 - + CAST( NULL AS SIGNED ) * + 47 col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-365
SELECT DISTINCT SUM ( - 94 ) * 23 - + CAST ( NULL AS INTEGER ) * + 47 col1 FROM tab0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-366
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL <= NULL
----
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-369
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE col2 NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-369
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE col2 NOT BETWEEN NULL AND ( NULL )
----

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

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

query I rowsort
SELECT - col1 + - col0 FROM tab2 WHERE NOT + col0 NOT IN ( col0 * ( - 61 ) + - 40 )
----

query I rowsort
SELECT + ( - col1 ) FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT + COUNT( DISTINCT 12 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-373
SELECT + COUNT ( DISTINCT 12 ) FROM tab1
----
1

query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) IN ( 9 + - col2 * - 85 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > + 50
----

query I rowsort
SELECT + 5 + + col1 FROM tab1
----
10
19
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-377
SELECT + ( - CAST( col0 AS SIGNED ) ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-377
SELECT + ( - CAST ( col0 AS INTEGER ) ) FROM tab2
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 87 * + col2 + col1 ) IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-379
SELECT DISTINCT + COUNT ( * ) + 35 FROM tab2
----
38

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-381
SELECT + CAST( col1 AS SIGNED ) + - 1 AS col2 FROM tab0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-381
SELECT + CAST ( col1 AS INTEGER ) + - 1 AS col2 FROM tab0
----
0
20
80

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

skipif mysql # not compatible
query I rowsort label-382
SELECT + MIN ( DISTINCT - col2 ) FROM tab2
----
-58

query I rowsort
SELECT col2 * - col2 + - 50 AS col1 FROM tab0
----
-150
-2259
-9851

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT 55 + COUNT( DISTINCT col0 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-384
SELECT 55 + COUNT ( DISTINCT col0 ) AS col0 FROM tab2
----
58

query I rowsort
SELECT ALL ( - 8 ) FROM tab1
----
-8
-8
-8

query I rowsort
SELECT ALL col0 - 67 * + 24 AS col1 FROM tab1
----
-1517
-1523
-1557

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

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

query I rowsort
SELECT 49 * ( 71 ) + + 28 AS col2 FROM tab2 WHERE NOT ( col1 ) NOT BETWEEN 31 + col2 AND - col2
----

query I rowsort
SELECT ALL 22 + 31 FROM tab0
----
53
53
53

query I rowsort
SELECT ALL - 80 FROM tab0 WHERE NULL < NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-394
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col0 + + CAST( - col0 AS SIGNED ) * - 31 )
----

skipif mysql # not compatible
query III rowsort label-394
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col0 + + CAST ( - col0 AS INTEGER ) * - 31 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT - 19 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-395
SELECT - 19 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-57

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

query I rowsort
SELECT DISTINCT 33 + 48 AS col2 FROM tab1
----
81

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

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

query I rowsort
SELECT DISTINCT - col1 + - col2 * - 14 FROM tab1 AS cor0
----
1330
821
905

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-401
SELECT DISTINCT - col2 FROM tab0 cor0 WHERE + 69 + 15 * + col0 NOT BETWEEN col0 * + CAST( col1 AS SIGNED ) AND NULL
----
-10
-47

skipif mysql # not compatible
query I rowsort label-401
SELECT DISTINCT - col2 FROM tab0 cor0 WHERE + 69 + 15 * + col0 NOT BETWEEN col0 * + CAST ( col1 AS INTEGER ) AND NULL
----
-10
-47

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab2 AS cor0 WHERE ( col1 + 41 * 66 ) BETWEEN 54 AND NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 ) NOT BETWEEN col2 AND 65
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT DISTINCT + + COUNT( DISTINCT - 97 ) + - 46 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-409
SELECT DISTINCT + + COUNT ( DISTINCT - 97 ) + - 46 FROM tab2 AS cor0
----
-45

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

query I rowsort
SELECT col2 + 56 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 12 - col1
----

query I rowsort
SELECT + 97 * - col0 AS col2 FROM tab2 AS cor0
----
-4462
-6208
-7275

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 84 + + col0 * + col1 ) BETWEEN ( 84 ) AND col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + 55 <> NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT ALL COUNT( * ) + 91 * + 1 FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-416
SELECT ALL COUNT ( * ) + 91 * + 1 FROM tab0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT + SUM( + col1 ) * 32 FROM tab1
----
2112

skipif mysql # not compatible
query I rowsort label-417
SELECT + SUM ( + col1 ) * 32 FROM tab1
----
2112

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

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT 99 * + 83 * + SUM( DISTINCT - col0 ) FROM tab0
----
-1635183

skipif mysql # not compatible
query I rowsort label-419
SELECT 99 * + 83 * + SUM ( DISTINCT - col0 ) FROM tab0
----
-1635183

onlyif mysql # DIV for integer division: 
query I rowsort label-420
SELECT DISTINCT col0 DIV + col1 - col1 * col0 FROM tab1
----
-408
-4276
-711

skipif mysql # not compatible
query I rowsort label-420
SELECT DISTINCT col0 / + col1 - col1 * col0 FROM tab1
----
-408
-4276
-711

query I rowsort
SELECT col1 - + + col2 AS col2 FROM tab0
----
-98
11
34

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( - 16 * ( - col1 ) + - col1 )
----

query I rowsort
SELECT + 18 - + - col1 FROM tab2
----
69
85
95

query III rowsort
SELECT * FROM tab2 WHERE col0 >= col0 + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= + 59
----

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

query I rowsort
SELECT + - col2 + col1 + 97 FROM tab0 cor0
----
-1
108
131

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

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

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

query I rowsort
SELECT ALL - col2 * + col1 + col0 * - col2 + 91 AS col1 FROM tab2 AS cor0
----
-2140
-5549
-8145

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-431
SELECT - col0 AS col1 FROM tab1 cor0 WHERE NOT - CAST( - col0 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-431
SELECT - col0 AS col1 FROM tab1 cor0 WHERE NOT - CAST ( - col0 AS REAL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 * + col2 col1 FROM tab1
----
1475
1700
2400

query I rowsort
SELECT col0 * - 8 AS col2 FROM tab0
----
-120
-696
-776

query I rowsort
SELECT ALL ( col2 ) / col1 AS col1 FROM tab0 WHERE + 48 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT ALL - COUNT( * ) + + 66 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
57

skipif mysql # not compatible
query I rowsort label-435
SELECT ALL - COUNT ( * ) + + 66 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col0, 34 + + - col2 + - 94 * 29 FROM tab2
----
-51
-2715
-67
-2750
-77
-2732

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT - MAX( DISTINCT - 76 ) FROM tab1, tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-437
SELECT - MAX ( DISTINCT - 76 ) FROM tab1, tab1 AS cor0
----
76

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-441
SELECT ( + col0 ) / col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IN ( ( + 84 ) + 4 )
----

skipif mysql # not compatible
query I rowsort label-441
SELECT ( + col0 ) / col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IN ( ( + 84 ) + 4 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-443
SELECT DISTINCT + 12 * - 82 DIV 81 col2 FROM tab1 cor0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-443
SELECT DISTINCT + 12 * - 82 / 81 col2 FROM tab1 cor0
----
-12

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-444
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - ( - col0 ) BETWEEN ( + CAST( col0 AS DECIMAL ) ) + - col2 AND ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-444
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - ( - col0 ) BETWEEN ( + CAST ( col0 AS REAL ) ) + - col2 AND ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-445
SELECT ALL + col2 DIV 34 DIV + col0 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-445
SELECT ALL + col2 / 34 / + col0 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT ALL - MAX( ALL - col1 ) col0 FROM tab2 AS cor0
----
51

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

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

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

query I rowsort
SELECT DISTINCT + 76 FROM tab1 WHERE NOT - col0 IS NULL
----
76

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < - 1
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-454
SELECT - col2 * + 17 - 49 FROM tab0 WHERE NOT - CAST( col1 AS DECIMAL ) / col2 NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-454
SELECT - col2 * + 17 - 49 FROM tab0 WHERE NOT - CAST ( col1 AS REAL ) / col2 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-455
SELECT * FROM tab1 WHERE NOT - 30 + + col1 * col0 = + CAST( col2 AS DECIMAL ) / + 35
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-455
SELECT * FROM tab1 WHERE NOT - 30 + + col1 * col0 = + CAST ( col2 AS REAL ) / + 35
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT - - 62 + 91 AS col2 FROM tab2 AS cor0
----
153
153
153

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

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

query I rowsort
SELECT + col0 * - 30 FROM tab1 AS cor0 WHERE - ( - col1 ) * + 42 * - col0 + col2 NOT IN ( col0 )
----
-1530
-2550
-2730

onlyif mysql # DIV for integer division: 
query I rowsort label-461
SELECT 31 + - - col0 DIV + - 64 + - col2 * - 17 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1713
200
830

skipif mysql # not compatible
query I rowsort label-461
SELECT 31 + - - col0 / + - 64 + - col2 * - 17 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1713
200
830

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-462
SELECT ALL COUNT( * ) * CAST( NULL AS SIGNED ) * - COUNT( * ) / 2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL COUNT ( * ) * CAST ( NULL AS INTEGER ) * - COUNT ( * ) / 2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 AS cor0 WHERE + col1 - + + 81 * - col2 BETWEEN NULL AND ( + col0 )
----

query I rowsort
SELECT - ( - - col2 ) FROM tab2 AS cor0 WHERE NULL > ( - 39 )
----

query I rowsort
SELECT - col0 - - 67 + col2 FROM tab2 AS cor0
----
43
44
50

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

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

query I rowsort
SELECT ALL 90 - - 43 FROM tab2 AS cor0
----
133
133
133

onlyif mysql # DIV for integer division: 
query I rowsort label-468
SELECT + - 49 + 51 * col2 DIV + col1 + + col0 AS col0 FROM tab0 AS cor0
----
-5
5097
62

skipif mysql # not compatible
query I rowsort label-468
SELECT + - 49 + 51 * col2 / + col1 + + col0 AS col0 FROM tab0 AS cor0
----
-5
5097
62

query I rowsort
SELECT + col0 * + col2 + - 90 + - 70 FROM tab1 AS cor0
----
4736
4855
6028

query II rowsort
SELECT DISTINCT col0 - 89 * + ( 94 ), + col0 FROM tab1
----
-8275
91
-8281
85
-8315
51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 WHERE NULL BETWEEN ( - + col2 ) AND + 10
----
0

skipif mysql # not compatible
query I rowsort label-472
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 WHERE NULL BETWEEN ( - + col2 ) AND + 10
----
0

query I rowsort
SELECT - col1 * 36 AS col1 FROM tab2 WHERE ( NOT + 43 IS NOT NULL )
----

query I rowsort
SELECT ALL ( col2 ) - col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT DISTINCT - COUNT( * ) + - MAX( - col1 ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-475
SELECT DISTINCT - COUNT ( * ) + - MAX ( - col1 ) FROM tab0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT + - 58 * - + MAX( ( 99 ) ) col1 FROM tab2 AS cor0
----
5742

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-476
SELECT + - 58 * - + MAX ( ( 99 ) ) col1 FROM tab2 AS cor0
----
5742

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * + + 16 NOT IN ( + 54 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT + MAX( ( - 74 ) ) * + MAX( ALL + col1 ) * + 23 FROM tab0 AS cor0
----
-137862

skipif mysql # not compatible
query I rowsort label-479
SELECT + MAX ( ( - 74 ) ) * + MAX ( ALL + col1 ) * + 23 FROM tab0 AS cor0
----
-137862

query I rowsort
SELECT ALL col1 * - col1 * col0 AS col1 FROM tab1 AS cor0
----
-201019
-2125
-9996

query I rowsort
SELECT DISTINCT + ( + + col0 ) * - col1 AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT DISTINCT - MIN( + + 98 ) * - 68 FROM tab0 cor0
----
6664

skipif mysql # not compatible
query I rowsort label-482
SELECT DISTINCT - MIN ( + + 98 ) * - 68 FROM tab0 cor0
----
6664

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 4 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE NOT + - col2 * - 39 IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT DISTINCT MAX( DISTINCT + 41 ) AS col2 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-486
SELECT DISTINCT MAX ( DISTINCT + 41 ) AS col2 FROM tab2
----
41

query I rowsort
SELECT ALL 7 * - 11 FROM tab2
----
-77
-77
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-488
SELECT 23 DIV COUNT( * ) FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-488
SELECT 23 / COUNT ( * ) FROM tab0
----
7

query III rowsort
SELECT ALL * FROM tab0 WHERE + - ( - 8 ) IN ( col2 )
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT NULL <> ( - col1 / - col1 )
----

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE 56 IN ( - col2 * + 57 - + col2 + 75 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-493
SELECT * FROM tab1 WHERE ( - CAST( + + col0 AS SIGNED ) / - 70 * col1 + - 60 ) BETWEEN ( + col2 ) AND + 56 * + col0
----

skipif mysql # not compatible
query III rowsort label-493
SELECT * FROM tab1 WHERE ( - CAST ( + + col0 AS INTEGER ) / - 70 * col1 + - 60 ) BETWEEN ( + col2 ) AND + 56 * + col0
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-495
SELECT DISTINCT col1 DIV + 39 + + col2 AS col1 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-495
SELECT DISTINCT col1 / + 39 + + col2 AS col1 FROM tab2 AS cor0
----
24
41
59

query I rowsort
SELECT - col2 FROM tab0 cor0 WHERE 4 IS NULL
----

query I rowsort
SELECT DISTINCT - 71 * + col2 FROM tab1 AS cor0
----
-4189
-4828
-6816

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

query I rowsort
SELECT DISTINCT - + col2 AS col0 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-502
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE col1 * col0 + - - 72 IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT * FROM tab1 WHERE - 80 NOT BETWEEN NULL AND - 75
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT + SUM( - - col2 ) - - COUNT( * ) AS col1 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-507
SELECT + SUM ( - - col2 ) - - COUNT ( * ) AS col1 FROM tab0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT ALL - COUNT( DISTINCT - 45 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-508
SELECT ALL - COUNT ( DISTINCT - 45 ) FROM tab0
----
-1

query I rowsort
SELECT col1 * - + col2 AS col0 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT - 46 AS col2 FROM tab0 WHERE NOT - - 2 IS NULL
----
-46
-46
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-511
SELECT DISTINCT - 33 DIV + - col1 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-511
SELECT DISTINCT - 33 / + - col1 AS col1 FROM tab2
----
0

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-515
SELECT - - col2 DIV 69 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-515
SELECT - - col2 / 69 AS col0 FROM tab1 AS cor0
----
0
0
1

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

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

query II rowsort
SELECT ALL 46 AS col2, col2 * - 10 * + 16 AS col2 FROM tab0
----
46
-15840
46
-1600
46
-7520

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT - COUNT( * ) FROM tab2 WHERE NOT 21 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-518
SELECT - COUNT ( * ) FROM tab2 WHERE NOT 21 IS NULL
----
-3

query I rowsort
SELECT DISTINCT - - 2 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col1 AND + 32 / col1 / - 51 + - col2 + + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-520
SELECT DISTINCT COUNT( * ) AS col2, 94 FROM tab2 AS cor0
----
3
94

skipif mysql # not compatible
query II rowsort label-520
SELECT DISTINCT COUNT ( * ) AS col2, 94 FROM tab2 AS cor0
----
3
94

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( col1 ) AS col2, + col1 col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-524
SELECT DISTINCT + 24 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-524
SELECT DISTINCT + 24 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) >= NULL
----

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

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

query I rowsort
SELECT + + col0 * + col2 AS col1 FROM tab1 cor0
----
4896
5015
6188

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + ( + - 49 ) - + col0 ) BETWEEN - 49 + + col1 AND + 21 + - 96
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 65 * - - 21 AS col1 FROM tab2
----
1365
1365
1365

query I rowsort
SELECT ALL col0 * ( + col0 ) * - col0 AS col0 FROM tab2
----
-262144
-421875
-97336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - 44 + 34 * - col1 col1 FROM tab1
----
-1733
-299
-571

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT 0 + MIN( DISTINCT + col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-532
SELECT 0 + MIN ( DISTINCT + col2 ) AS col1 FROM tab2
----
23

query I rowsort
SELECT DISTINCT col1 * - ( - 30 ) + - col1 + - col1 FROM tab1 AS cor0
----
1316
140
392

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-535
SELECT DISTINCT - col0 / - col0 * - col2 + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-538
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 AS cor0 JOIN tab0 cor1 ON ( NOT ( - - CAST( NULL AS SIGNED ) IS NOT NULL ) )
----
9

skipif mysql # not compatible
query I rowsort label-538
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 AS cor0 JOIN tab0 cor1 ON ( NOT ( - - CAST ( NULL AS INTEGER ) IS NOT NULL ) )
----
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT MAX( ALL - col0 ) AS col2 FROM tab2 WHERE + col0 * + col0 + + col0 + + + 20 IS NOT NULL
----
-46

skipif mysql # not compatible
query I rowsort label-540
SELECT MAX ( ALL - col0 ) AS col2 FROM tab2 WHERE + col0 * + col0 + + col0 + + + 20 IS NOT NULL
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-541
SELECT ALL 38 DIV - COUNT( * ) AS col1 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-541
SELECT ALL 38 / - COUNT ( * ) AS col1 FROM tab0
----
-12

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 90 ) IS NULL AND NOT ( - col1 ) > - 80
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT MIN( - col1 ) + - 24 * COUNT( col1 ) col0 FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-545
SELECT MIN ( - col1 ) + - 24 * COUNT ( col1 ) col0 FROM tab0 AS cor0
----
-153

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col0, col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query II rowsort
SELECT DISTINCT - - 21 AS col0, + ( - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
21
-23
21
-40
21
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT DISTINCT + - COUNT( * ) * MIN( - 96 ) FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-549
SELECT DISTINCT + - COUNT ( * ) * MIN ( - 96 ) FROM tab1 AS cor0
----
288

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

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT SUM( - + col0 ) * + 47 FROM tab1
----
-10669

skipif mysql # not compatible
query I rowsort label-551
SELECT SUM ( - + col0 ) * + 47 FROM tab1
----
-10669

query I rowsort
SELECT col2 * col2 + - col0 AS col2 FROM tab1 AS cor0
----
3396
4533
9165

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

query I rowsort
SELECT + - 91 - - 7 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 * + 6 BETWEEN NULL AND + - col1
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + + 32
----

query II rowsort
SELECT DISTINCT - 78 + + col0, col0 FROM tab0 WHERE col0 * - - col0 + - 25 NOT IN ( - col2 )
----
-63
15
19
97
9
87

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE NULL > - col1 * - col0 + - 35 + + 76
----
0

skipif mysql # not compatible
query I rowsort label-557
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NULL > - col1 * - col0 + - 35 + + 76
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-558
SELECT + 94 DIV + ( COUNT( ALL - 53 ) ) col1 FROM tab0
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-558
SELECT + 94 / + ( COUNT ( ALL - 53 ) ) col1 FROM tab0
----
31

query I rowsort
SELECT DISTINCT 95 * - + col2 FROM tab2
----
-2185
-3800
-5510

query I rowsort
SELECT ALL 19 * - ( - 28 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 5cfd3197880a9bfecd048e3074a3952a

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN + col2 + + col2 AND col2
----

query I rowsort
SELECT 85 + - 1 FROM tab0 AS cor0
----
84
84
84

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT + 46 + col1 + - col2 FROM tab1 cor0
----
-36
-8
25

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

query I rowsort
SELECT col1 * - + col2 AS col0 FROM tab0
----
-210
-3807
-99

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

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

query I rowsort
SELECT - ( col1 ) * - 27 - - 39 AS col2 FROM tab0
----
2226
606
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 79, col0 + + 4 col2 FROM tab0
----
79
101
79
19
79
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT ALL + COUNT( * ) FROM tab2 WHERE ( col1 ) NOT BETWEEN NULL AND ( col2 )
----
3

skipif mysql # not compatible
query I rowsort label-571
SELECT ALL + COUNT ( * ) FROM tab2 WHERE ( col1 ) NOT BETWEEN NULL AND ( col2 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-572
SELECT 30 DIV - ( - - col1 ) AS col0 FROM tab0
----
-1
-30
0

skipif mysql # not compatible
query I rowsort label-572
SELECT 30 / - ( - - col1 ) AS col0 FROM tab0
----
-1
-30
0

query I rowsort
SELECT - col1 * + 41 AS col1 FROM tab2
----
-2091
-2747
-3157

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

query II rowsort
SELECT + col2, + ( + 43 ) + + col1 FROM tab1
----
59
48
68
90
96
57

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-576
SELECT DISTINCT MIN ( + - col0 ) col1 FROM tab1 AS cor0
----
-91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT - + 32 + + SUM( - ( col1 ) ) AS col1 FROM tab2 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-578
SELECT - + 32 + + SUM ( - ( col1 ) ) AS col1 FROM tab2 AS cor0
----
-227

query I rowsort
SELECT ALL + col0 + + + col0 AS col1 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-580
SELECT col0 + - CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
17
23
24

skipif mysql # not compatible
query I rowsort label-580
SELECT col0 + - CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
17
23
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 20 + + + ( - + col0 ) col1, + 14 FROM tab2
----
-26
14
-44
14
-55
14

query I rowsort
SELECT DISTINCT col2 - + 91 AS col2 FROM tab1
----
-23
-32
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-583
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - + CAST( NULL AS SIGNED ) + - 15 AND NULL
----

skipif mysql # not compatible
query III rowsort label-583
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - + CAST ( NULL AS INTEGER ) + - 15 AND NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-585
SELECT DISTINCT + 12 * 67 AS col2, col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
804
NULL

skipif mysql # not compatible
query II rowsort label-585
SELECT DISTINCT + 12 * 67 AS col2, col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
804
NULL

query I rowsort
SELECT ALL - col0 * - 81 AS col0 FROM tab0 AS cor0
----
1215
7047
7857

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 3 * col2 col2 FROM tab2 AS cor0
----
120
174
69

query I rowsort
SELECT DISTINCT - + 3 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-589
SELECT COUNT( * ) AS col2, - 57 * - CAST( + 77 AS SIGNED ) * 39 FROM tab1
----
3
171171

skipif mysql # not compatible
query II rowsort label-589
SELECT COUNT ( * ) AS col2, - 57 * - CAST ( + 77 AS INTEGER ) * 39 FROM tab1
----
3
171171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, 82 * + col1 * - 36 AS col0 FROM tab0
----
15
-239112
87
-61992
97
-2952

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

onlyif mysql # aggregate syntax: 
query II rowsort label-592
SELECT DISTINCT 51 col0, + SUM( - col2 ) * + + COUNT( * ) FROM tab2
----
51
-363

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-592
SELECT DISTINCT 51 col0, + SUM ( - col2 ) * + + COUNT ( * ) FROM tab2
----
51
-363

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT + + MAX( - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-593
SELECT + + MAX ( - col1 ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT - ( + 13 ) FROM tab2 AS cor0 WHERE NOT - 23 = + col0 - - col1
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-595
SELECT DISTINCT - 68 + + - col1 DIV + col2 FROM tab0 AS cor0
----
-68
-69
-70

skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT - 68 + + - col1 / + col2 FROM tab0 AS cor0
----
-68
-69
-70

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

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

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

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

skipif mysql # not compatible
query I rowsort label-598
SELECT - ( + + ( - SUM ( DISTINCT - - col1 ) ) ) AS col0 FROM tab2 AS cor0
----
195

query I rowsort
SELECT col2 * col1 * 46 + - 26 AS col2 FROM tab0
----
175096
4528
9634

query I rowsort
SELECT ALL col0 * - - col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT - COUNT( - + col0 ) * - COUNT( * ) + 59 AS col1 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-601
SELECT - COUNT ( - + col0 ) * - COUNT ( * ) + 59 AS col1 FROM tab1
----
68

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

query II rowsort
SELECT ALL + 60, col0 FROM tab2 AS cor0
----
60
46
60
64
60
75

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

skipif mysql # not compatible
query I rowsort label-604
SELECT DISTINCT + COUNT ( * ) + + ( 20 ) AS col0 FROM tab1 AS cor0
----
23

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

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL + COUNT ( + CAST ( + + col0 AS INTEGER ) ) AS col0 FROM tab0
----
3

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

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

query I rowsort
SELECT 7 * - 38 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 5fe531d2a9776aea5d7f7f9e48815590

query I rowsort
SELECT DISTINCT + col1 * - 5 FROM tab2
----
-255
-335
-385

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

query I rowsort
SELECT - - 24 * col2 AS col0 FROM tab2 AS cor0
----
1392
552
960

query I rowsort
SELECT ALL - col0 * + col0 * 9 - - - col0 AS col1 FROM tab2 AS cor0
----
-19090
-36928
-50700

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-612
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 / + - col1 BETWEEN - CAST( - 71 AS SIGNED ) + - - col2 AND - 76
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-612
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 / + - col1 BETWEEN - CAST ( - 71 AS INTEGER ) + - - col2 AND - 76
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-616
SELECT + ( - 40 ) / - COUNT ( * ) col0 FROM tab0 cor0
----
13

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-619
SELECT DISTINCT - col1 + col0 FROM tab1 WHERE ( 58 - CAST( NULL AS DECIMAL ) * col1 * - - 90 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-619
SELECT DISTINCT - col1 + col0 FROM tab1 WHERE ( 58 - CAST ( NULL AS REAL ) * col1 * - - 90 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * ( + col2 ) FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT + 81 * 57 FROM tab2
----
4617
4617
4617

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT DISTINCT - 30 * - MAX( DISTINCT - ( - 34 ) ) AS col0 FROM tab2
----
1020

skipif mysql # not compatible
query I rowsort label-622
SELECT DISTINCT - 30 * - MAX ( DISTINCT - ( - 34 ) ) AS col0 FROM tab2
----
1020

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

query I rowsort
SELECT DISTINCT + - col2 * + col2 + + col1 AS col1 FROM tab0 AS cor0
----
-2128
-79
-9800

query II rowsort
SELECT ALL - - col0 AS col0, - col0 AS col0 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

query II rowsort
SELECT ALL col0 * col0 + + - 59 + - col2 + ( + 91 ), col2 AS col1 FROM tab1 cor0
----
2537
96
7198
59
8245
68

query I rowsort
SELECT ALL 58 + + col1 FROM tab1 cor0
----
105
63
72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT + MAX( ALL 97 ) col1 FROM tab1
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-629
SELECT + MAX ( ALL 97 ) col1 FROM tab1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT ALL - ( + COUNT( * ) ) - COUNT( * ) AS col1 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL - ( + COUNT ( * ) ) - COUNT ( * ) AS col1 FROM tab0
----
-6

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

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

query I rowsort
SELECT + 3 * 85 - - - col1 AS col0 FROM tab2
----
178
188
204

query I rowsort
SELECT - 34 - col0 AS col2 FROM tab0
----
-121
-131
-49

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

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

query I rowsort
SELECT col0 + 66 FROM tab2
----
112
130
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-636
SELECT ALL + COUNT( * ) DIV - 81 - + + 8 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-8

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

onlyif mysql # DIV for integer division: 
query I rowsort label-637
SELECT DISTINCT col0 DIV + - 6 FROM tab0 AS cor0
----
-14
-16
-2

skipif mysql # not compatible
query I rowsort label-637
SELECT DISTINCT col0 / + - 6 FROM tab0 AS cor0
----
-14
-16
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT + - COUNT( * ) * + + 93 + + SUM( ( - + col2 ) ) * - - MIN( ALL - col2 ) FROM tab0 AS cor0
----
15165

skipif mysql # not compatible
query I rowsort label-638
SELECT + - COUNT ( * ) * + + 93 + + SUM ( ( - + col2 ) ) * - - MIN ( ALL - col2 ) FROM tab0 AS cor0
----
15165

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, - col1 FROM tab2 AS cor0
----
-23
-51
-40
-77
-58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT + MAX( ALL + 36 ) AS col2 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-641
SELECT + MAX ( ALL + 36 ) AS col2 FROM tab2 AS cor0
----
36

query I rowsort
SELECT + 73 * col0 AS col2 FROM tab2
----
3358
4672
5475

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT MIN( DISTINCT - 73 ) FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-643
SELECT MIN ( DISTINCT - 73 ) FROM tab2
----
-73

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

query I rowsort
SELECT ALL - 20 * + col0 FROM tab1
----
-1020
-1700
-1820

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

query I rowsort
SELECT ALL col0 + + 10 FROM tab0 AS cor0
----
107
25
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-648
SELECT ALL - + 58 * + col0 + + + CAST( - 84 AS SIGNED ) FROM tab0 AS cor0
----
-5130
-5710
-954

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL - + 58 * + col0 + + + CAST ( - 84 AS INTEGER ) FROM tab0 AS cor0
----
-5130
-5710
-954

query I rowsort
SELECT DISTINCT col1 + + 30 FROM tab2 AS cor0
----
107
81
97

onlyif mysql # aggregate syntax: 
query I rowsort label-650
SELECT DISTINCT + MIN( DISTINCT + - 33 ) FROM tab1, tab2 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-650
SELECT DISTINCT + MIN ( DISTINCT + - 33 ) FROM tab1, tab2 cor0
----
-33

query I rowsort
SELECT - - 91 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 43 + + + col0 col2, + col0 AS col1 FROM tab0 AS cor0
----
130
87
140
97
58
15

query II rowsort
SELECT col0, - col0 * 16 * - + 72 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 14 + + + col0 - col2 col0 FROM tab2 cor0
----
31
37
38

query I rowsort
SELECT ALL + 74 + + col1 + 85 + - col2 FROM tab0 AS cor0
----
170
193
61

query I rowsort
SELECT col0 * - col0 * - - col1 + - col1 * + ( + 72 ) - + - col0 FROM tab2 AS cor0
----
-111542
-320872
-381624

onlyif mysql # DIV for integer division: 
query I rowsort label-658
SELECT ALL - 50 + + 2 DIV + col1 AS col0 FROM tab1 cor0
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-658
SELECT ALL - 50 + + 2 / + col1 AS col0 FROM tab1 cor0
----
-50
-50
-50

query I rowsort
SELECT DISTINCT ( ( + col1 ) ) + + 47 AS col1 FROM tab0
----
128
48
68

query I rowsort
SELECT ALL 32 * 18 - - col0 AS col1 FROM tab1
----
627
661
667

query I rowsort
SELECT col0 + - - col0 AS col0 FROM tab1
----
102
170
182

query I rowsort
SELECT col0 * 99 AS col2 FROM tab1
----
5049
8415
9009

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

query II rowsort
SELECT DISTINCT + 40, 22 AS col0 FROM tab1
----
40
22

onlyif mysql # DIV for integer division: 
query I rowsort label-665
SELECT 53 DIV - 5 AS col0 FROM tab1 AS cor0
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-665
SELECT 53 / - 5 AS col0 FROM tab1 AS cor0
----
-10
-10
-10

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

query I rowsort
SELECT DISTINCT + + 82 AS col0 FROM tab1 cor0
----
82

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 NOT BETWEEN - col1 + 96 AND + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT DISTINCT + + 76 * + col1 AS col2 FROM tab0 AS cor0
----
1596
6156
76

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

query I rowsort
SELECT ALL - - 51 AS col2 FROM tab1 cor0
----
51
51
51

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

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

query I rowsort
SELECT - - 81 * - col0 * col1 + - - col0 FROM tab0 AS cor0
----
-147900
-7760
-98400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-675
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-675
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + CAST ( NULL AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT DISTINCT - MAX( DISTINCT - - col0 ) * MAX( ALL + 0 ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-676
SELECT DISTINCT - MAX ( DISTINCT - - col0 ) * MAX ( ALL + 0 ) col2 FROM tab0
----
0

query I rowsort
SELECT - 24 * + - col2 FROM tab0
----
1128
2376
240

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT DISTINCT COUNT( DISTINCT ( + 59 ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-678
SELECT DISTINCT COUNT ( DISTINCT ( + 59 ) ) FROM tab1
----
1

query I rowsort
SELECT DISTINCT + 71 FROM tab1 AS cor0 WHERE NULL IS NULL OR NULL IS NULL
----
71

query I rowsort
SELECT + 22 + + - col1 FROM tab1
----
-25
17
8

query I rowsort
SELECT - col2 + 38 * - 64 AS col2 FROM tab1
----
-2491
-2500
-2528

query II rowsort
SELECT + 91 * + + col2 * - col1 + + + 67, + col1 FROM tab2 AS cor0
----
-106676
51
-280213
77
-353559
67

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-683
SELECT DISTINCT + - col0 + - 40 + - CAST( NULL AS SIGNED ) + + CAST( + col2 AS DECIMAL ) + col2 AS col0, col0 col1 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-683
SELECT DISTINCT + - col0 + - 40 + - CAST ( NULL AS INTEGER ) + + CAST ( + col2 AS REAL ) + col2 AS col0, col0 col1 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT + + col0 * 80 + + + 80 FROM tab2 AS cor0
----
3760
5200
6080

query I rowsort
SELECT DISTINCT col0 + - 31 FROM tab2 AS cor0
----
15
33
44

query I rowsort
SELECT DISTINCT col2 - col0 + + col1 * - + 48 AS col0 FROM tab1 AS cor0
----
-2279
-266
-627

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-689
SELECT ALL CAST( NULL AS DECIMAL ) - - ( 51 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-689
SELECT ALL CAST ( NULL AS REAL ) - - ( 51 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + - + col1 FROM tab1
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT DISTINCT 48 * 18 - COUNT( * ) AS col1 FROM tab2
----
861

skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT 48 * 18 - COUNT ( * ) AS col1 FROM tab2
----
861

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col1 IS NOT NULL
----

query I rowsort
SELECT 78 * + 52 + - + ( - 32 ) FROM tab1 cor0
----
4088
4088
4088

onlyif mysql # aggregate syntax: 
query II rowsort label-694
SELECT DISTINCT 16 col1, - COUNT( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
16
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-694
SELECT DISTINCT 16 col1, - COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
16
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT DISTINCT 64 * COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
576

skipif mysql # not compatible
query I rowsort label-695
SELECT DISTINCT 64 * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-696
SELECT ALL - 24 AS col1 FROM tab0 AS cor0 WHERE col1 BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL - 24 AS col1 FROM tab0 AS cor0 WHERE col1 BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT + ( 67 ) * - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, + col0 AS col2 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-701
SELECT col2 * CAST( - col0 AS SIGNED ) FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-701
SELECT col2 * CAST ( - col0 AS INTEGER ) FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT + 66 * + 81 * - 31 FROM tab1
----
-165726
-165726
-165726

query I rowsort
SELECT col1 * + - col1 * + + 62 AS col1 FROM tab2
----
-161262
-278318
-367598

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

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT ALL - ( + MAX( DISTINCT 61 ) ) FROM tab1
----
-61

skipif mysql # not compatible
query I rowsort label-705
SELECT ALL - ( + MAX ( DISTINCT 61 ) ) FROM tab1
----
-61

query II rowsort
SELECT ALL 76 * + col2 + - 47 + - col1 AS col1, - col2 + col0 AS col0 FROM tab2
----
1650
23
2916
24
4294
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-707
SELECT DISTINCT - - col2 / - + 85 / + - col1 / - - 71 / + - col2 * 24 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col1 / + col0
----

skipif mysql # not compatible
query I rowsort label-707
SELECT DISTINCT - - col2 / - + 85 / + - col1 / - - 71 / + - col2 * 24 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col1 / + col0
----

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

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

query I rowsort
SELECT ALL + col2 * - 54 - - col1 - - + col0 FROM tab0
----
-2442
-432
-5248

query I rowsort
SELECT - col0 - - 92 AS col0 FROM tab2 AS cor0
----
17
28
46

query I rowsort
SELECT ALL - ( - col0 ) + - col0 * col0 AS col0 FROM tab2 AS cor0
----
-2070
-4032
-5550

query I rowsort
SELECT + 11 - - col2 FROM tab1 AS cor0
----
107
70
79

query I rowsort
SELECT DISTINCT - - col0 + - col0 * + 24 AS col1 FROM tab1 AS cor0
----
-1173
-1955
-2093

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

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT + 4 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-715
SELECT + 4 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
7

query I rowsort
SELECT + ( 61 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

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

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

query I rowsort
SELECT DISTINCT - 17 + + ( col0 ) FROM tab1 cor0 WHERE NOT - col2 IN ( + - ( + 14 ) + - 52, + col0 * + 21 )
----
34
68
74

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

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

query I rowsort
SELECT DISTINCT - - 75 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
75

query I rowsort
SELECT ALL + col2 * + - col1 * + 30 * + 98 AS col1 FROM tab2
----
-11424840
-3448620
-9055200

onlyif mysql # DIV for integer division: 
query I rowsort label-723
SELECT ALL + col2 DIV + 81 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-723
SELECT ALL + col2 / + 81 FROM tab1 AS cor0
----
0
0
1

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

skipif mysql # not compatible
query I rowsort label-724
SELECT ALL + ( 40 ) + - + CAST ( NULL AS INTEGER ) * - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - - col2 * col0 * - 63 col1 FROM tab2 cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT - - col2 + 19 AS col0 FROM tab0 AS cor0
----
118
29
66

query I rowsort
SELECT ( + + 68 ) * 74 AS col1 FROM tab0
----
5032
5032
5032

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

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

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

skipif mysql # not compatible
query I rowsort label-730
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + col1 + + col2 IS NULL
----
NULL

query II rowsort
SELECT - col0 AS col2, - col0 + - col1 - - 5 AS col2 FROM tab1
----
-51
-60
-85
-85
-91
-133

query I rowsort
SELECT DISTINCT - 97 + 70 FROM tab2 AS cor0
----
-27

query I rowsort
SELECT ALL col2 + + + ( ( col2 ) ) * + col2 AS col0 FROM tab1 cor0
----
3540
4692
9312

query I rowsort
SELECT DISTINCT - col0 - + 13 AS col0 FROM tab0 AS cor0
----
-100
-110
-28

query I rowsort
SELECT ALL + col2 + ( + col2 ) - ( + + col1 ) FROM tab0 AS cor0
----
-1
13
197

onlyif mysql # DIV for integer division: 
query I rowsort label-736
SELECT + col1 DIV + col0 + - - col2 AS col2 FROM tab0 AS cor0
----
10
52
99

skipif mysql # not compatible
query I rowsort label-736
SELECT + col1 / + col0 + - - col2 AS col2 FROM tab0 AS cor0
----
10
52
99

query I rowsort
SELECT ALL + 79 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-739
SELECT - col2 + - col1, col1 + 22 AS col0 FROM tab1 WHERE NULL <> - CAST( NULL AS SIGNED ) + + 78 - - + col2
----

skipif mysql # not compatible
query II rowsort label-739
SELECT - col2 + - col1, col1 + 22 AS col0 FROM tab1 WHERE NULL <> - CAST ( NULL AS INTEGER ) + + 78 - - + col2
----

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

skipif mysql # not compatible
query I rowsort label-740
SELECT SUM ( 32 ) FROM tab2 AS cor0
----
96

query III rowsort
SELECT * FROM tab2 WHERE NOT 0 + - ( + col2 ) + col2 IS NOT NULL
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 55 BETWEEN + + 82 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 > + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT DISTINCT 47 * - COUNT( * ) FROM tab0
----
-141

skipif mysql # not compatible
query I rowsort label-745
SELECT DISTINCT 47 * - COUNT ( * ) FROM tab0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT DISTINCT SUM( - 81 ) FROM tab1
----
-243

skipif mysql # not compatible
query I rowsort label-746
SELECT DISTINCT SUM ( - 81 ) FROM tab1
----
-243

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 > col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-748
SELECT ALL - 83 * 62 / col1 * + col1 * + col0 + col0 + + CAST( - + col2 AS SIGNED ) + + 29 + + 62 * - - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL - 83 * 62 / col1 * + col1 * + col0 + col0 + + CAST ( - + col2 AS INTEGER ) + + 29 + + 62 * - - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - + 40 FROM tab0 AS cor0
----
-1880
-3960
-400

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, col1 AS col0 FROM tab1
----
51
14
85
5
91
47

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

query I rowsort
SELECT ALL 21 * + 87 FROM tab1
----
1827
1827
1827

query III rowsort
SELECT - ( - + col0 ) AS col1, - ( + col2 ), col2 AS col1 FROM tab0 AS cor0
----
9 values hashing to a8027d4c2666fb274d03f218d9ca209b

query II rowsort
SELECT DISTINCT + col2, - col2 + + col0 FROM tab2 cor0 WHERE col1 <> col2
----
23
23
40
24
58
17

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

query I rowsort
SELECT DISTINCT + 18 FROM tab2 AS cor0 WHERE - col1 * + 79 <= 67 * - - col0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + ( col2 ) col2 FROM tab1 AS cor0 WHERE NOT + col2 * - col2 >= + - 93 * - + col2
----
-23
-26
45

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

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 AS cor0 WHERE NULL > NULL
----

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

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

query I rowsort
SELECT ALL col2 * col0 + + + col0 AS col2 FROM tab0 AS cor0
----
720
957
9700

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

query I rowsort
SELECT ALL col1 * + 95 FROM tab1
----
1330
4465
475

query I rowsort
SELECT 85 * ( + - col2 ) AS col0 FROM tab1
----
-5015
-5780
-8160

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

query I rowsort
SELECT ALL - 49 + + col1 * - - col1 FROM tab0 cor0
----
-48
392
6512

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT SUM( - + 71 ) AS col2 FROM tab0 WHERE ( NULL ) BETWEEN col2 AND 26
----
NULL

skipif mysql # not compatible
query I rowsort label-768
SELECT SUM ( - + 71 ) AS col2 FROM tab0 WHERE ( NULL ) BETWEEN col2 AND 26
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) * 50 + - ( - col1 ) - + + 30 * col2 col2 FROM tab0 AS cor0
----
-3679
-779
-7919

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

skipif mysql # not compatible
query I rowsort label-770
SELECT + - MIN ( + - 49 ) AS col1 FROM tab0 AS cor0
----
49

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

skipif mysql # not compatible
query II rowsort label-771
SELECT - + 35 AS col1, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-35
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 3 <= - 28
----

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + col1 AND - 70 * - + 2
----

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

query I rowsort
SELECT ALL 18 * - 74 FROM tab0
----
-1332
-1332
-1332

query I rowsort
SELECT DISTINCT 3 * + col2 FROM tab2
----
120
174
69

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

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

query I rowsort
SELECT ALL + col0 * + + 45 - - col2 AS col1 FROM tab0 AS cor0
----
3925
4464
722

onlyif mysql # DIV for integer division: 
query I rowsort label-780
SELECT ALL col0 + - col0 DIV col1 * - col0 + - 18 AS col1 FROM tab2 AS cor0
----
132
28
46

skipif mysql # not compatible
query I rowsort label-780
SELECT ALL col0 + - col0 / col1 * - col0 + - 18 AS col1 FROM tab2 AS cor0
----
132
28
46

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

query I rowsort
SELECT - 36 * col0 FROM tab2
----
-1656
-2304
-2700

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

onlyif mysql # DIV for integer division: 
query I rowsort label-784
SELECT + col2 DIV - 23 FROM tab1
----
-2
-2
-4

skipif mysql # not compatible
query I rowsort label-784
SELECT + col2 / - 23 FROM tab1
----
-2
-2
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 * - - col2 col1 FROM tab2
----
160
232
92

query I rowsort
SELECT ALL 22 * + col0 AS col0 FROM tab2
----
1012
1408
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT + 70 * 4 * + MAX( DISTINCT + + col0 ) AS col1 FROM tab0
----
27160

skipif mysql # not compatible
query I rowsort label-787
SELECT + 70 * 4 * + MAX ( DISTINCT + + col0 ) AS col1 FROM tab0
----
27160

query II rowsort
SELECT col2, - ( col1 ) + + + col2 FROM tab2
----
23
-28
40
-37
58
-9

query I rowsort
SELECT - 37 * ( + col0 ) AS col0 FROM tab0
----
-3219
-3589
-555

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

query I rowsort
SELECT ALL + col1 + + 98 + - col0 * - col2 AS col0 FROM tab2 AS cor0
----
1207
2735
4515

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

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT DISTINCT + SUM( + col2 ) AS col2 FROM tab1 WHERE NOT ( - col2 ) / 45 / col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-793
SELECT DISTINCT + SUM ( + col2 ) AS col2 FROM tab1 WHERE NOT ( - col2 ) / 45 / col0 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 > - 75 + 45
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 64 >= NULL AND col1 IS NOT NULL
----

query I rowsort
SELECT - 16 * - col1 - - col2 - + col2 AS col0 FROM tab0 AS cor0
----
1296
16
336

query I rowsort
SELECT - col2 * col0 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN + + col0 AND NULL
----
-705
-870
-9603

query I rowsort
SELECT ALL - ( - 2 ) FROM tab0 AS cor0
----
2
2
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT COUNT( DISTINCT - 44 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-800
SELECT COUNT ( DISTINCT - 44 ) AS col0 FROM tab2
----
1

query I rowsort
SELECT DISTINCT 42 * + 96 AS col1 FROM tab1
----
4032

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, + col1 * - col1 FROM tab1
----
14
-196
47
-2209
5
-25

query I rowsort
SELECT ALL - col2 * - 37 * + 10 * + - col2 AS col1 FROM tab0
----
-3626370
-37000
-817330

query II rowsort
SELECT DISTINCT + 12 AS col1, 67 AS col1 FROM tab2
----
12
67

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT COUNT( * ) col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-805
SELECT COUNT ( * ) col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

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

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

query I rowsort
SELECT col2 * + 85 AS col0 FROM tab2 WHERE col2 * + 78 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-809
SELECT ALL COUNT( * ) DIV 61 + + 62 AS col2 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-809
SELECT ALL COUNT ( * ) / 61 + + 62 AS col2 FROM tab2
----
62

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( 64 + - col1 * 24 )
----

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE 3 + 91 = NULL
----

query I rowsort
SELECT + 89 + + col1 FROM tab2 WHERE NOT col0 < ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE 57 * col2 + col1 > col1 + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT - 92 + - 49 * col2 FROM tab2
----
-1219
-2052
-2934

onlyif mysql # DIV for integer division: 
query I rowsort label-817
SELECT - col0 DIV col0 + - 31 FROM tab1
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-817
SELECT - col0 / col0 + - 31 FROM tab1
----
-32
-32
-32

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 + - 92 AS col1 FROM tab1
----
-106
-139
-97

query I rowsort
SELECT - col1 * + col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col2 * 84 AS col0 FROM tab1
----
-4956
-5712
-8064

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT DISTINCT MAX( DISTINCT + ( - 46 ) ) FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-825
SELECT DISTINCT MAX ( DISTINCT + ( - 46 ) ) FROM tab0
----
-46

query I rowsort
SELECT - col0 + + 95 FROM tab0
----
-2
8
80

query I rowsort
SELECT + 75 * col0 AS col0 FROM tab2
----
3450
4800
5625

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT ALL MAX( DISTINCT col1 ) col1 FROM tab1 WHERE NOT NULL < ( - col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-829
SELECT ALL MAX ( DISTINCT col1 ) col1 FROM tab1 WHERE NOT NULL < ( - col0 )
----
NULL

query I rowsort
SELECT - col1 * 42 AS col1 FROM tab1
----
-1974
-210
-588

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-832
SELECT * FROM tab2 AS cor0 WHERE 19 * + CAST( 98 AS SIGNED ) + col2 = col1
----

skipif mysql # not compatible
query III rowsort label-832
SELECT * FROM tab2 AS cor0 WHERE 19 * + CAST ( 98 AS INTEGER ) + col2 = col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-833
SELECT col1 DIV CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-833
SELECT col1 / CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
1
1
1

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

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

query I rowsort
SELECT col2 - + ( - col1 ) * - col0 AS col1 FROM tab2 AS cor0
----
-2323
-4888
-4967

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

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

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( 40 ) IS NOT NULL
----

query I rowsort
SELECT + 96 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

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

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

query I rowsort
SELECT ( 33 ) FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT DISTINCT - col1 * + 7 FROM tab0 AS cor0
----
-147
-567
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT DISTINCT MIN( - col1 ) * + MAX( ALL col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-4466

skipif mysql # not compatible
query I rowsort label-842
SELECT DISTINCT MIN ( - col1 ) * + MAX ( ALL col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-4466

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= 91 + col0 * col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-844
SELECT ALL + - SUM( ALL - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT ALL col0 * - 80 + 90 FROM tab1 AS cor0 WHERE NOT col1 * + 81 IS NULL
----
-3990
-6710
-7190

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

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

query I rowsort
SELECT col0 * - col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 46 FROM tab2 WHERE NOT - 28 + 61 < NULL
----

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

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

query I rowsort
SELECT DISTINCT + col0 * col2 + - 76 * + 85 FROM tab0
----
-5590
-5755
3143

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-853
SELECT - 84 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * - 51 <= NULL
----

skipif mysql # not compatible
query I rowsort label-853
SELECT - 84 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * - 51 <= NULL
----

query I rowsort
SELECT + 66 * - col0 * 31 AS col2 FROM tab2 AS cor0
----
-130944
-153450
-94116

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

query I rowsort
SELECT DISTINCT col2 + - col1 * 37 FROM tab0 AS cor0
----
-2950
-767
62

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

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

query III rowsort
SELECT * FROM tab1 WHERE ( + 64 * 97 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT - col1 + - col0 * - + 2 FROM tab2 AS cor0
----
41
51
83

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

query I rowsort
SELECT ALL col0 + - 3 FROM tab1 cor0
----
48
82
88

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

query I rowsort
SELECT DISTINCT - col0 + col0 * + - 72 AS col1 FROM tab0 AS cor0
----
-1095
-6351
-7081

query I rowsort
SELECT DISTINCT - + 45 - + col1 FROM tab0 AS cor0
----
-126
-46
-66

query I rowsort
SELECT DISTINCT 69 + - + 85 FROM tab0 AS cor0
----
-16

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-869
SELECT - CAST ( + - 71 AS INTEGER ) col0 FROM tab0
----
71
71
71

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 93 + - col1 * - 96 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * 10 - + col1 + + col0 + + 72 AS col2 FROM tab0
----
-72
-804
158

query I rowsort
SELECT 69 - - + col2 + - ( - + col1 ) FROM tab2
----
143
186
194

query I rowsort
SELECT col2 - ( + ( + col1 ) ) AS col1 FROM tab0
----
-11
-34
98

query II rowsort
SELECT col2 + - + col1 AS col2, - col2 + + 29 + + col2 AS col0 FROM tab1 AS cor0
----
21
29
54
29
82
29

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE col2 IN ( col2 )
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-876
SELECT + 34 * + ( CAST( 71 AS SIGNED ) ) + col2 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) IN ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-876
SELECT + 34 * + ( CAST ( 71 AS INTEGER ) ) + col2 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IN ( - col0 )
----

query I rowsort
SELECT + + col1 * + 80 + + 11 FROM tab1 AS cor0
----
1131
3771
411

query III rowsort
SELECT * FROM tab2 WHERE NOT 88 >= ( ( 49 ) + + col2 )
----
64
77
40
75
67
58

query I rowsort
SELECT ALL + - 75 FROM tab1 WHERE NULL IS NULL
----
-75
-75
-75

query I rowsort
SELECT DISTINCT ( 59 ) * + ( + col2 ) FROM tab2 AS cor0
----
1357
2360
3422

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 64 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-882
SELECT ALL 80 DIV ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-882
SELECT ALL 80 / ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-26

query I rowsort
SELECT ALL - + ( + 87 ) + - 85 - - col2 * + col0 FROM tab1 AS cor0 WHERE NOT + 97 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - + col0 col1 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-885
SELECT DISTINCT + 84 DIV - col0 + - col0 FROM tab0 AS cor0
----
-20
-87
-97

skipif mysql # not compatible
query I rowsort label-885
SELECT DISTINCT + 84 / - col0 + - col0 FROM tab0 AS cor0
----
-20
-87
-97

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 97 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-889
SELECT + CAST( - + ( - col0 ) AS SIGNED ) AS col1, + col2 + - col2 - + col0 AS col1 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

skipif mysql # not compatible
query II rowsort label-889
SELECT + CAST ( - + ( - col0 ) AS INTEGER ) AS col1, + col2 + - col2 - + col0 AS col1 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

query I rowsort
SELECT DISTINCT + ( col2 ) * + col1 * col1 * - col0 AS col2 FROM tab2 AS cor0
----
-15178240
-19527150
-2751858

onlyif mysql # DIV for integer division: 
query I rowsort label-891
SELECT ALL - 86 DIV + col2 AS col2 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL - 86 / + col2 AS col2 FROM tab2
----
-1
-2
-3

query I rowsort
SELECT ALL ( 22 ) AS col2 FROM tab0
----
22
22
22

query I rowsort
SELECT + 95 * ( + 93 ) FROM tab1
----
8835
8835
8835

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col1, col1 + 92 col2 FROM tab0
----
1
93
21
113
81
173

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 - + col0 >= ( + - 79 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-896
SELECT DISTINCT 2, - COUNT( * ) AS col2 FROM tab2, tab1 AS cor0
----
2
-9

skipif mysql # not compatible
query II rowsort label-896
SELECT DISTINCT 2, - COUNT ( * ) AS col2 FROM tab2, tab1 AS cor0
----
2
-9

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, - col0 * + col2 col2 FROM tab2
----
46
-1058
64
-2560
75
-4350

query I rowsort
SELECT + 15 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT DISTINCT + col2 + - - 14 - col2 AS col2 FROM tab0
----
14

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

skipif mysql # not compatible
query I rowsort label-902
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( - col1 )
----
0

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

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

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

query I rowsort
SELECT DISTINCT - - col1 + + 81 FROM tab0 AS cor0
----
102
162
82

query II rowsort
SELECT + col1, - 39 / + - col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 41 + + + col0 FROM tab1 AS cor0 WHERE ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT ALL - MIN( ALL + col0 ) + + + 99 + - + 81 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL - MIN ( ALL + col0 ) + + + 99 + - + 81 FROM tab1
----
-33

query I rowsort
SELECT col0 + - col2 + 20 FROM tab1
----
-25
43
46

query I rowsort
SELECT ALL col2 FROM tab0 WHERE ( col2 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 44 + 1 <> - 46
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 + + + col0 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-916
SELECT DISTINCT + ( + 26 ) AS col0 FROM tab1 WHERE NOT + col0 * + CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-916
SELECT DISTINCT + ( + 26 ) AS col0 FROM tab1 WHERE NOT + col0 * + CAST ( NULL AS INTEGER ) <= NULL
----

query I rowsort
SELECT ALL col1 * + 53 FROM tab0
----
1113
4293
53

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-920
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 > col0 + CAST( - 71 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-920
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 > col0 + CAST ( - 71 AS INTEGER )
----

query I rowsort
SELECT ALL 26 * col0 * + col1 FROM tab2
----
128128
130650
60996

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

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT + 76 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-923
SELECT + 76 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
228

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

skipif mysql # not compatible
query I rowsort label-924
SELECT ALL - + COUNT ( * ) / 35 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT 16 * ( - + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-925
SELECT 16 * ( - + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT + SUM( 84 ) FROM tab0 AS cor0 WHERE NOT - 36 IN ( + col2 )
----
252

skipif mysql # not compatible
query I rowsort label-926
SELECT + SUM ( 84 ) FROM tab0 AS cor0 WHERE NOT - 36 IN ( + col2 )
----
252

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-929
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE NOT NULL >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-929
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE NOT NULL >= + CAST ( NULL AS INTEGER )
----

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

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

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

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

query I rowsort
SELECT + col2 FROM tab2 WHERE ( col2 - col1 ) <> col2 + col0 * - 13
----
23
40
58

query I rowsort
SELECT + col2 * + - 32 AS col2 FROM tab0
----
-1504
-3168
-320

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-934
SELECT ALL - COUNT ( * ) * + COUNT ( * ) col1 FROM tab0
----
-9

query I rowsort
SELECT DISTINCT col1 + + 8 FROM tab1
----
13
22
55

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

query II rowsort
SELECT col0 * + col0, col1 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
2601
14
7225
5
8281
47

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

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

query I rowsort
SELECT ALL - 42 + col2 + - 28 + col1 * col2 * - + 80 FROM tab1 AS cor0
----
-107494
-23611
-255682

query I rowsort
SELECT ALL + 34 + - 91 * + - col0 AS col2 FROM tab2 AS cor0
----
4220
5858
6859

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-941
SELECT DISTINCT COUNT( * ) * 14 * ( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-941
SELECT DISTINCT COUNT ( * ) * 14 * ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT DISTINCT + COUNT( * ) * + 57 * - COUNT( DISTINCT + 99 ) AS col2 FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-943
SELECT DISTINCT + COUNT ( * ) * + 57 * - COUNT ( DISTINCT + 99 ) AS col2 FROM tab2
----
-171

query I rowsort
SELECT col0 + - - 35 AS col0 FROM tab0
----
122
132
50

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 45 col0 FROM tab2 AS cor0
----
45

query I rowsort
SELECT - - 10 FROM tab2 AS cor0 WHERE 32 IS NULL
----

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

query I rowsort
SELECT DISTINCT - 77 * col2 + col1 AS col2 FROM tab0 AS cor0
----
-3538
-749
-7622

query I rowsort
SELECT - col1 - + ( - - 19 ) FROM tab1 AS cor0
----
-24
-33
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-951
SELECT CAST( NULL AS SIGNED ) * - 87 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-951
SELECT CAST ( NULL AS INTEGER ) * - 87 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 29 * 3 - 47 AS col0 FROM tab1
----
40
40
40

query II rowsort
SELECT + col0 - + 35 AS col2, col2 + col1 FROM tab2
----
11
74
29
117
40
125

query I rowsort
SELECT DISTINCT + col0 * + - 13 AS col0 FROM tab2
----
-598
-832
-975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-955
SELECT - COUNT( * ) * - 19 + + COUNT( * ) FROM tab0 WHERE NOT NULL = CAST( NULL AS SIGNED ) * - 39 + - col0 - col0 / - 48
----
0

skipif mysql # not compatible
query I rowsort label-955
SELECT - COUNT ( * ) * - 19 + + COUNT ( * ) FROM tab0 WHERE NOT NULL = CAST ( NULL AS INTEGER ) * - 39 + - col0 - col0 / - 48
----
0

query I rowsort
SELECT + 85 * - col0 AS col2 FROM tab2
----
-3910
-5440
-6375

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 56 >= - 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT + 40 * - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-960
SELECT + 40 * - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col1, + ( - 54 ) FROM tab0 cor0
----
1
-54
21
-54
81
-54

query I rowsort
SELECT - - 24 AS col2 FROM tab0 cor0
----
24
24
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-963
SELECT DISTINCT - COUNT( * ) + CAST( + 97 AS SIGNED ) AS col1, 82 AS col1 FROM tab0 AS cor0
----
94
82

skipif mysql # not compatible
query II rowsort label-963
SELECT DISTINCT - COUNT ( * ) + CAST ( + 97 AS INTEGER ) AS col1, 82 AS col1 FROM tab0 AS cor0
----
94
82

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-965
SELECT ALL - AVG ( - 97 ) + - ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-965
SELECT ALL - AVG ( - 97 ) + - ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

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

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

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

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

query II rowsort
SELECT DISTINCT 23 * - col0 AS col0, col2 AS col0 FROM tab0
----
-2001
10
-2231
99
-345
47

query I rowsort
SELECT ALL 54 * + + col1 FROM tab1
----
2538
270
756

onlyif mysql # aggregate syntax: 
query II rowsort label-971
SELECT ALL ( COUNT( + col0 ) ), - 69 col2 FROM tab0 WHERE - col0 * + - col0 * + + col2 - + col1 BETWEEN NULL AND ( NULL )
----
0
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-971
SELECT ALL ( COUNT ( + col0 ) ), - 69 col2 FROM tab0 WHERE - col0 * + - col0 * + + col2 - + col1 BETWEEN NULL AND ( NULL )
----
0
-69

query I rowsort
SELECT 9 AS col2 FROM tab0 WHERE ( col0 + + 48 * - + col1 + - + col2 ) IN ( + col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-973
SELECT - col0 * 96 AS col1, - col0 DIV - col2 col0 FROM tab2 cor0
----
-4416
2
-6144
1
-7200
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-973
SELECT - col0 * 96 AS col1, - col0 / - col2 col0 FROM tab2 cor0
----
-4416
2
-6144
1
-7200
1

query I rowsort
SELECT ALL 0 + + col1 AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT - - 83 AS col2 FROM tab1 cor0
----
83
83
83

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

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

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

query I rowsort
SELECT - + col1 + ( + - col2 ) * col2 FROM tab0 AS cor0
----
-121
-2290
-9802

onlyif mysql # DIV for integer division: 
query I rowsort label-979
SELECT ALL + 93 DIV + + col0 + - + col1 AS col1 FROM tab2 AS cor0
----
-49
-66
-76

skipif mysql # not compatible
query I rowsort label-979
SELECT ALL + 93 / + + col0 + - + col1 AS col1 FROM tab2 AS cor0
----
-49
-66
-76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT DISTINCT MAX( DISTINCT - col2 ) + - + 6 AS col1 FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-981
SELECT DISTINCT MAX ( DISTINCT - col2 ) + - + 6 AS col1 FROM tab1 AS cor0
----
-65

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-983
SELECT ALL + 18 AS col1, + COUNT( * ) DIV + + 46 AS col1 FROM tab0
----
18
0

skipif mysql # not compatible
query II rowsort label-983
SELECT ALL + 18 AS col1, + COUNT ( * ) / + + 46 AS col1 FROM tab0
----
18
0

query I rowsort
SELECT DISTINCT - col0 * - 50 FROM tab2
----
2300
3200
3750

query I rowsort
SELECT + 67 * - 31 AS col2 FROM tab2
----
-2077
-2077
-2077

onlyif mysql # aggregate syntax: 
query II rowsort label-986
SELECT - COUNT( * ), MAX( ALL - 58 ) * - 30 AS col0 FROM tab2
----
-3
1740

skipif mysql # not compatible
query II rowsort label-986
SELECT - COUNT ( * ), MAX ( ALL - 58 ) * - 30 AS col0 FROM tab2
----
-3
1740

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 * col2 * - - col0 col2 FROM tab1 WHERE NOT - - 94 = NULL
----

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

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

query I rowsort
SELECT 2 * + col0 AS col0 FROM tab0
----
174
194
30

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

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

skipif mysql # not compatible
query I rowsort label-993
SELECT SUM ( - + 54 ) FROM tab2
----
-162

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - 69 AND col1
----

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

query III rowsort
SELECT * FROM tab0 WHERE - + col2 > + - col0
----
87
21
10

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

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

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

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

query I rowsort
SELECT ALL - ( - + 1 ) * + col2 FROM tab0
----
10
47
99

query I rowsort
SELECT col0 * 68 FROM tab2 WHERE 40 IS NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1006
SELECT 71 col1, + 89 * col1 DIV + col0 col2 FROM tab0
----
71
0
71
21
71
480

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1006
SELECT 71 col1, + 89 * col1 / + col0 col2 FROM tab0
----
71
0
71
21
71
480

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT ALL + + 20 + + - MIN( + 40 ) * - 82 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-9820

skipif mysql # not compatible
query I rowsort label-1008
SELECT ALL + + 20 + + - MIN ( + 40 ) * - 82 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-9820

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT ALL + - 25 + - 99 + + COUNT( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL + - 25 + - 99 + + COUNT ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
-121

query I rowsort
SELECT + col1 FROM tab2 cor0 WHERE NULL BETWEEN - col0 AND 4 / + 26
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1011
SELECT DISTINCT + ( + CAST( - - 33 AS SIGNED ) ) - + + col2 * col2 * - col2 FROM tab0
----
1033
103856
970332

skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT + ( + CAST ( - - 33 AS INTEGER ) ) - + + col2 * col2 * - col2 FROM tab0
----
1033
103856
970332

query II rowsort
SELECT DISTINCT + + AVG ( + col1 ) AS col2, 53 AS col2 FROM tab0 WHERE NOT NULL = col2
----
NULL
53

query II rowsort
SELECT DISTINCT + + col1 + + + col1, col0 FROM tab1 AS cor0 WHERE NOT col0 <= - col1
----
10
85
28
51
94
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1014
SELECT - 19 DIV - 21 * + 53 - + + COUNT( * ) * - - COUNT( * ) FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1014
SELECT - 19 / - 21 * + 53 - + + COUNT ( * ) * - - COUNT ( * ) FROM tab2 cor0
----
-9

query II rowsort
SELECT DISTINCT 94 * col0, + col0 FROM tab0 AS cor0
----
1410
15
8178
87
9118
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1016
SELECT DISTINCT + 45 DIV + + COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-1016
SELECT DISTINCT + 45 / + + COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
18

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1017
SELECT - SUM ( col2 ) col0 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT + - COUNT( * ) AS col2 FROM tab2 WHERE NOT + 65 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1018
SELECT + - COUNT ( * ) AS col2 FROM tab2 WHERE NOT + 65 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT ALL MIN( ALL + + 69 ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL MIN ( ALL + + 69 ) FROM tab2
----
69

query I rowsort
SELECT DISTINCT - 90 * 63 AS col0 FROM tab2 AS cor0
----
-5670

onlyif mysql # DIV for integer division: 
query I rowsort label-1021
SELECT DISTINCT + - 41 DIV - + col2 col0 FROM tab0 AS cor0
----
0
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1021
SELECT DISTINCT + - 41 / - + col2 col0 FROM tab0 AS cor0
----
0
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1022
SELECT ALL CAST( + 44 AS SIGNED ) * - + col2 col2 FROM tab1 AS cor0
----
-2596
-2992
-4224

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1022
SELECT ALL CAST ( + 44 AS INTEGER ) * - + col2 col2 FROM tab1 AS cor0
----
-2596
-2992
-4224

query II rowsort
SELECT + col0 AS col2, + col0 + - - col0 AS col2 FROM tab1 AS cor0
----
51
102
85
170
91
182

query I rowsort
SELECT DISTINCT - - col1 + 97 FROM tab0 cor0
----
118
178
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 AS col1, - col0 * + 40 * - - col0 * + 73 col2 FROM tab2 cor0
----
-23
-6178720
-40
-11960320
-58
-16425000

query II rowsort
SELECT ALL - + col1, - col1 - 86 AS col2 FROM tab1 cor0
----
-14
-100
-47
-133
-5
-91

query I rowsort
SELECT ALL - col1 * - col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
2346
4928
5025

query I rowsort
SELECT col1 + + + 13 FROM tab2 AS cor0
----
64
80
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1029
SELECT - col1 * - - CAST( NULL AS SIGNED ) + 0 + - col1 + - + col2 / 49 AS col2, + col1 AS col0 FROM tab0 cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-1029
SELECT - col1 * - - CAST ( NULL AS INTEGER ) + 0 + - col1 + - + col2 / 49 AS col2, + col1 AS col0 FROM tab0 cor0
----
NULL
1
NULL
21
NULL
81

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

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

query I rowsort
SELECT + col2 + - + col1 + + - 1 * + + col0 AS col0 FROM tab2
----
-101
-74
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1032
SELECT + col1 AS col0, col0 - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE col2 + - col0 + + 45 * - col1 - col1 IS NOT NULL
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-1032
SELECT + col1 AS col0, col0 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE col2 + - col0 + + 45 * - col1 - col1 IS NOT NULL
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT col1 * + ( col0 ) + - col2 FROM tab0 AS cor0
----
-2
1168
1817

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT DISTINCT + 76 + - + COUNT( ALL + + col0 ) FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-1034
SELECT DISTINCT + 76 + - + COUNT ( ALL + + col0 ) FROM tab1 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT ALL + + ( MIN( - 24 ) ) + + 2 AS col2 FROM tab0 cor0
----
-22

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL + + ( MIN ( - 24 ) ) + + 2 AS col2 FROM tab0 cor0
----
-22

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

query I rowsort
SELECT DISTINCT - col0 + col2 + + - col0 FROM tab1
----
-111
-114
-6

query II rowsort
SELECT - ( + col1 ) - + col1 - 1 * col0 * - col1, + col0 FROM tab1
----
415
85
4183
91
686
51

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 84 AS col1, 30 col0 FROM tab0 AS cor0
----
84
30
84
30
84
30

query I rowsort
SELECT 8 * 86 FROM tab1 AS cor0
----
688
688
688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * col1 col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1044
SELECT - 80 * - + 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-1044
SELECT - 80 * - + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + - ( + 68 ) < + col1 * - - col1
----

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

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

query I rowsort
SELECT ALL - col2 * + col2 + + ( - col1 ) + + 64 AS col0 FROM tab1 AS cor0
----
-3422
-4607
-9166

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

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

query I rowsort
SELECT ALL col1 * + 48 FROM tab1 AS cor0
----
2256
240
672

query I rowsort
SELECT - 80 + 48 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-32
-32
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1051
SELECT ALL - + col2 * + CAST( + 2 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - col1 + + 23 IS NULL
----
-198
-20
-94

skipif mysql # not compatible
query I rowsort label-1051
SELECT ALL - + col2 * + CAST ( + 2 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - col1 + + 23 IS NULL
----
-198
-20
-94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT MAX( DISTINCT - 40 ) AS col0 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-1053
SELECT MAX ( DISTINCT - 40 ) AS col0 FROM tab2
----
-40

query I rowsort
SELECT DISTINCT - 12 * - col1 * + col0 * - 23 + - col2 AS col0 FROM tab0 AS cor0
----
-26871
-335387
-504262

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1055
SELECT + 66 * CAST( + 58 AS SIGNED ) + + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT - 54 NOT BETWEEN + - CAST( + 36 AS SIGNED ) * - col2 - + 35 AND - col2 + - 33
----

skipif mysql # not compatible
query I rowsort label-1055
SELECT + 66 * CAST ( + 58 AS INTEGER ) + + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT - 54 NOT BETWEEN + - CAST ( + 36 AS INTEGER ) * - col2 - + 35 AND - col2 + - 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT - SUM( + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT - col0 NOT IN ( 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1056
SELECT - SUM ( + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT - col0 NOT IN ( 8 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1057
SELECT ALL - + 62 DIV + 49 - - col0 + - + 7 * col1 AS col0 FROM tab0 AS cor0
----
-553
-61
89

skipif mysql # not compatible
query I rowsort label-1057
SELECT ALL - + 62 / + 49 - - col0 + - + 7 * col1 AS col0 FROM tab0 AS cor0
----
-553
-61
89

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

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

query I rowsort
SELECT - 26 * - ( + col0 ) FROM tab1
----
1326
2210
2366

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

skipif mysql # not compatible
query I rowsort label-1060
SELECT + - COUNT ( * ) FROM tab1 WHERE - - col1 < + + col0 / col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1061
SELECT + col1 DIV - col1 + 63 AS col2 FROM tab0
----
62
62
62

skipif mysql # not compatible
query I rowsort label-1061
SELECT + col1 / - col1 + 63 AS col2 FROM tab0
----
62
62
62

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 >= + - 69
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 + - col1 + - - col2 col2 FROM tab1
----
130
158
97

query I rowsort
SELECT + - col2 + - - col0 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT + - col2 + col1 * + col1 * - col1 FROM tab0 AS cor0
----
-100
-531488
-9271

query I rowsort
SELECT ALL - - 63 + 88 AS col0 FROM tab1 AS cor0
----
151
151
151

query I rowsort
SELECT - 86 * - + col1 * - col1 * + - 95 AS col2 FROM tab0 AS cor0 WHERE NULL >= - col0 * + col1
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1069
SELECT COUNT ( * ) col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( + ( - 3 ) / col1 + + - col2 * - - col0 * 9 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col0 + - col0 col1 FROM tab1 AS cor0
----
4845
4930
6097

query I rowsort
SELECT ALL - - 69 * - col0 + + + col0 FROM tab2 cor0
----
-3128
-4352
-5100

query I rowsort
SELECT DISTINCT - 87 + + + col1 AS col0 FROM tab1
----
-40
-73
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1074
SELECT ALL + CAST( col0 AS SIGNED ) - + - col0 + + - 78 AS col2 FROM tab1
----
104
24
92

skipif mysql # not compatible
query I rowsort label-1074
SELECT ALL + CAST ( col0 AS INTEGER ) - + - col0 + + - 78 AS col2 FROM tab1
----
104
24
92

query II rowsort
SELECT DISTINCT + 55 AS col0, 77 FROM tab0
----
55
77

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1077
SELECT DISTINCT + COUNT( * ), ( + + COUNT( * ) ) + + COUNT( - col2 ) AS col2 FROM tab2
----
3
6

skipif mysql # not compatible
query II rowsort label-1077
SELECT DISTINCT + COUNT ( * ), ( + + COUNT ( * ) ) + + COUNT ( - col2 ) AS col2 FROM tab2
----
3
6

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

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

query I rowsort
SELECT + + col0 FROM tab1 WHERE NULL >= - ( + + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1080
SELECT col2 - - - col1 DIV + 14 col0 FROM tab2
----
20
35
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1080
SELECT col2 - - - col1 / + 14 col0 FROM tab2
----
20
35
54

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < + 31
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1082
SELECT 45 - ( - 39 ) DIV + 56 AS col2 FROM tab2 AS cor0
----
45
45
45

skipif mysql # not compatible
query I rowsort label-1082
SELECT 45 - ( - 39 ) / + 56 AS col2 FROM tab2 AS cor0
----
45
45
45

query I rowsort
SELECT ALL - col1 - - + 73 FROM tab2 AS cor0
----
-4
22
6

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = + 64
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1085
SELECT + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

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

query I rowsort
SELECT DISTINCT - - 27 + + 69 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
96

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 82 * + + col0 + 13 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
149827
7967
99643

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

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

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

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

query I rowsort
SELECT ALL + col2 * - 24 FROM tab0
----
-1128
-2376
-240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1092
SELECT ALL + ( - SUM( - col2 ) ) * 31 DIV + 63 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL + ( - SUM ( - col2 ) ) * 31 / + 63 FROM tab0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1093
SELECT DISTINCT + CAST( - col0 AS SIGNED ) FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1093
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-1094
SELECT - col1 DIV + col0 + - - col0 + + col2 * - + 74 FROM tab0 AS cor0
----
-3468
-653
-7229

skipif mysql # not compatible
query I rowsort label-1094
SELECT - col1 / + col0 + - - col0 + + col2 * - + 74 FROM tab0 AS cor0
----
-3468
-653
-7229

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

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

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

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

query I rowsort
SELECT - 63 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

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

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

query I rowsort
SELECT ALL 41 + + + col1 AS col1 FROM tab0 AS cor0
----
122
42
62

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT DISTINCT - COUNT( * ) - - 24 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-1102
SELECT DISTINCT - COUNT ( * ) - - 24 FROM tab0 AS cor0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-1103
SELECT 13 DIV + - col1 + 95 + - col1 AS col2 FROM tab2 AS cor0
----
18
28
44

skipif mysql # not compatible
query I rowsort label-1103
SELECT 13 / + - col1 + 95 + - col1 AS col2 FROM tab2 AS cor0
----
18
28
44

query I rowsort
SELECT DISTINCT - - 66 * - col1 + - - col0 AS col0 FROM tab0 cor0
----
-1299
-5331
31

query I rowsort
SELECT DISTINCT + col0 + 75 FROM tab0 AS cor0
----
162
172
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT 27 + - COUNT( - col1 ) * + 75 FROM tab0 cor0
----
-198

skipif mysql # not compatible
query I rowsort label-1106
SELECT 27 + - COUNT ( - col1 ) * + 75 FROM tab0 cor0
----
-198

query I rowsort
SELECT ALL col1 - + 24 FROM tab1
----
-10
-19
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT ALL SUM( + 27 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL SUM ( + 27 ) AS col1 FROM tab0
----
81

query I rowsort
SELECT + col2 * - 58 FROM tab0
----
-2726
-5742
-580

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

query I rowsort
SELECT ALL + col1 + + + 44 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
49
58
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1112
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * 7 FROM tab2 AS cor0 WHERE NOT - col1 = + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1112
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * 7 FROM tab2 AS cor0 WHERE NOT - col1 = + col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1113
SELECT ALL col2 AS col0, col1 DIV col0 DIV col2 AS col2 FROM tab2
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-1113
SELECT ALL col2 AS col0, col1 / col0 / col2 AS col2 FROM tab2
----
23
0
40
0
58
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1114
SELECT COUNT( * ) AS col1, COUNT( ALL - 67 ) - - + MAX( ALL + + 92 ) FROM tab0
----
3
95

skipif mysql # not compatible
query II rowsort label-1114
SELECT COUNT ( * ) AS col1, COUNT ( ALL - 67 ) - - + MAX ( ALL + + 92 ) FROM tab0
----
3
95

query I rowsort
SELECT ALL 74 * + + col1 * - col2 FROM tab2
----
-227920
-287564
-86802

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

query II rowsort
SELECT DISTINCT col1, + 68 * + col2 AS col1 FROM tab2 AS cor0
----
51
1564
67
3944
77
2720

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

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

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

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

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 WHERE NOT - ( - + 65 ) = NULL
----

query I rowsort
SELECT ALL 28 * + col0 FROM tab1
----
1428
2380
2548

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

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1125
SELECT - 14 * - - COUNT( * ) * - CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1125
SELECT - 14 * - - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + 10 + + 52 AS col0 FROM tab0
----
62
62
62

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

query I rowsort
SELECT DISTINCT + + col2 + + - col2 FROM tab0 AS cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT DISTINCT ( + COUNT( * ) ) * 3 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-1130
SELECT DISTINCT ( + COUNT ( * ) ) * 3 FROM tab1
----
9

query I rowsort
SELECT + col2 + + - 72 * - ( col2 ) + + col0 AS col2 FROM tab1
----
4392
5055
7059

query I rowsort
SELECT + col0 + + - 21 FROM tab1 AS cor0 WHERE col2 * - col2 IS NOT NULL
----
30
64
70

query II rowsort
SELECT ALL col1 AS col1, + col2 + - col0 FROM tab1 AS cor0
----
14
45
47
-23
5
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT + MIN( ALL ( 40 ) ) FROM tab1 cor0
----
40

skipif mysql # not compatible
query I rowsort label-1134
SELECT + MIN ( ALL ( 40 ) ) FROM tab1 cor0
----
40

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - - 40 col0 FROM tab0
----
-121
-41
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT DISTINCT - 42 - - COUNT( ALL col2 ) FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-1138
SELECT DISTINCT - 42 - - COUNT ( ALL col2 ) FROM tab0
----
-39

query I rowsort
SELECT 11 - + col1 FROM tab1
----
-3
-36
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1140
SELECT - 66 - CAST( - ( col2 ) AS SIGNED ) + + - col2 * + - col0 FROM tab1
----
4926
5008
6190

skipif mysql # not compatible
query I rowsort label-1140
SELECT - 66 - CAST ( - ( col2 ) AS INTEGER ) + + - col2 * + - col0 FROM tab1
----
4926
5008
6190

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

skipif mysql # not compatible
query I rowsort label-1141
SELECT + MIN ( 17 ) AS col0 FROM tab2
----
17

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * - col0 + + col1 + - 93 * - 8 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1143
SELECT ALL MAX ( + col1 ) FROM tab1 cor0
----
47

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1147
SELECT COUNT( ( - CAST( - - col0 AS SIGNED ) ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1147
SELECT COUNT ( ( - CAST ( - - col0 AS INTEGER ) ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT DISTINCT + MAX( 55 ) AS col0 FROM tab0 AS cor0 WHERE - col1 * - col0 + + col0 * 35 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1148
SELECT DISTINCT + MAX ( 55 ) AS col0 FROM tab0 AS cor0 WHERE - col1 * - col0 + + col0 * 35 IS NULL
----
NULL

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

query I rowsort
SELECT DISTINCT 45 + col1 FROM tab2 AS cor0 WHERE ( 43 ) NOT BETWEEN NULL AND - col2
----
112
122
96

query I rowsort
SELECT - 95 * + - col0 AS col0 FROM tab0 AS cor0
----
1425
8265
9215

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

query I rowsort
SELECT ALL + + col1 * 79 FROM tab2 AS cor0
----
4029
5293
6083

onlyif mysql # DIV for integer division: 
query I rowsort label-1154
SELECT - 8 * col0 DIV + col2 AS col0 FROM tab1 AS cor0
----
-10
-11
-4

skipif mysql # not compatible
query I rowsort label-1154
SELECT - 8 * col0 / + col2 AS col0 FROM tab1 AS cor0
----
-10
-11
-4

query I rowsort
SELECT + col0 * - + col0 AS col2 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT - 56 * col1 * + col0 FROM tab0
----
-102312
-5432
-68040

query I rowsort
SELECT - 83 * + - ( col2 ) + 40 + + col1 FROM tab1
----
4942
5731
8022

query I rowsort
SELECT + col2 + 12 FROM tab2
----
35
52
70

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

query II rowsort
SELECT DISTINCT + col2 + - 94, col2 AS col1 FROM tab0 AS cor0
----
-47
47
-84
10
5
99

query II rowsort
SELECT 19, - ( - col2 ) + + - col1 AS col0 FROM tab2 AS cor0
----
19
-28
19
-37
19
-9

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT DISTINCT - COUNT( * ) * 4 + - COUNT( * ) col2 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1164
SELECT DISTINCT - COUNT ( * ) * 4 + - COUNT ( * ) col2 FROM tab2 AS cor0
----
-15

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col2 FROM tab0 cor0 WHERE ( NULL ) <> + col2 * col1 * + 82 * + col2
----

query I rowsort
SELECT ALL + ( col1 ) + - col1 * + 12 * - col0 - col1 * - col1 AS col1 FROM tab1 AS cor0
----
5130
53580
8778

onlyif mysql # DIV for integer division: 
query I rowsort label-1168
SELECT - col0 + - 25 DIV col1 FROM tab0 AS cor0
----
-122
-15
-88

skipif mysql # not compatible
query I rowsort label-1168
SELECT - col0 + - 25 / col1 FROM tab0 AS cor0
----
-122
-15
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1169
SELECT - CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 cor0 WHERE ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1169
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 cor0 WHERE ( NULL ) > NULL
----
0

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

query I rowsort
SELECT ALL col1 * 72 - col1 + 38 FROM tab2 AS cor0
----
3659
4795
5505

query I rowsort
SELECT 73 * 58 AS col1 FROM tab2
----
4234
4234
4234

query I rowsort
SELECT + ( + 97 ) AS col2 FROM tab1
----
97
97
97

query I rowsort
SELECT DISTINCT - 82 * + 46 - - col2 FROM tab2 AS cor0
----
-3714
-3732
-3749

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1175
SELECT - 31 * - COUNT ( * ) col1 FROM tab2 AS cor0
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1176
SELECT - COUNT( col0 ) * 58 DIV 50 - + 36 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-1176
SELECT - COUNT ( col0 ) * 58 / 50 - + 36 FROM tab0 AS cor0
----
-39

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * - col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1178
SELECT - col0 + - col2, + 24 * CAST( - + ( + + col0 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-196
-2328
-62
-360
-97
-2088

skipif mysql # not compatible
query II rowsort label-1178
SELECT - col0 + - col2, + 24 * CAST ( - + ( + + col0 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-196
-2328
-62
-360
-97
-2088

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( 90 * - 45 / col1, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT + + 4 + + - COUNT( * ) FROM tab0 cor0
----
1

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

query I rowsort
SELECT DISTINCT + - ( - col2 ) * 12 + - 28 FROM tab0 AS cor0
----
1160
536
92

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1183
SELECT + col1 AS col1 FROM tab2 WHERE + - ( + CAST( + col2 AS SIGNED ) ) IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1183
SELECT + col1 AS col1 FROM tab2 WHERE + - ( + CAST ( + col2 AS INTEGER ) ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT col1 * - col2 * - + ( + 38 ) AS col2 FROM tab2
----
117040
147668
44574

onlyif mysql # DIV for integer division: 
query I rowsort label-1185
SELECT + 40 DIV ( + 17 ) AS col1 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1185
SELECT + 40 / ( + 17 ) AS col1 FROM tab0
----
2
2
2

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

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

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

query I rowsort
SELECT DISTINCT + 33 FROM tab2 AS cor0 WHERE NULL IS NULL
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1189
SELECT + + MAX( DISTINCT - 4 ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1189
SELECT + + MAX ( DISTINCT - 4 ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

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

query III rowsort
SELECT - col1 + + col2 AS col1, - ( - col1 ) AS col0, + col2 AS col1 FROM tab0
----
9 values hashing to bf199469a25b3fb9edcbcde43ee241b3

query I rowsort
SELECT - 54 + + - col2 FROM tab2
----
-112
-77
-94

query II rowsort
SELECT DISTINCT - 7 AS col2, + 86 FROM tab1
----
-7
86

query I rowsort
SELECT + 70 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT ALL ( - col0 ) + + - col1 * col2 + + col0 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT + 68 * - col0 AS col1 FROM tab0 cor0
----
-1020
-5916
-6596

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT - ( + MAX( ALL + 76 ) ) FROM tab1
----
-76

skipif mysql # not compatible
query I rowsort label-1200
SELECT - ( + MAX ( ALL + 76 ) ) FROM tab1
----
-76

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 - - + 9 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * + - col1 AS col0 FROM tab0
----
-1
-441
-6561

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT + 9 > + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT ALL - 6 * - + COUNT( * ) AS col1 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL - 6 * - + COUNT ( * ) AS col1 FROM tab0
----
18

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 NOT BETWEEN col2 - col1 AND ( + 83 * col1 / + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1206
SELECT - CAST( NULL AS SIGNED ) - - SUM( DISTINCT + 98 ) col2, + COUNT( * ) AS col1 FROM tab0 WHERE NOT ( NOT col0 IS NOT NULL )
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1206
SELECT - CAST ( NULL AS INTEGER ) - - SUM ( DISTINCT + 98 ) col2, + COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( NOT col0 IS NOT NULL )
----
NULL
3

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

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

skipif mysql # not compatible
query III rowsort label-1208
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col0, col0, + col2, - col2 + - - CAST ( NULL AS INTEGER ) / - col2, - 88 / + col2 )
----

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

skipif mysql # not compatible
query I rowsort label-1209
SELECT + CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT + 67 ) FROM tab0 AS cor0
----
NULL

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

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

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

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

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - ( + 14 ) > NULL
----

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = ( 51 ) - - - 39 - + - 90 * + - 76
----

query II rowsort
SELECT - col1, + col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-51
51
-67
67
-77
77

query I rowsort
SELECT DISTINCT - 32 + col1 FROM tab1 AS cor0
----
-18
-27
15

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

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

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

query I rowsort
SELECT 19 * - col1 FROM tab2 AS cor0
----
-1273
-1463
-969

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT DISTINCT + 63 * COUNT( DISTINCT + + 16 ) FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT + 63 * COUNT ( DISTINCT + + 16 ) FROM tab2 AS cor0
----
63

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 33 + col2 <> - col1 + + - col1 + + 35
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1226
SELECT DISTINCT - ( + ( + + CAST( col0 AS SIGNED ) ) ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1226
SELECT DISTINCT - ( + ( + + CAST ( col0 AS INTEGER ) ) ) FROM tab2 AS cor0
----
-46
-64
-75

query II rowsort
SELECT ALL col0 * - col0, + col1 AS col1 FROM tab2
----
-2116
51
-4096
77
-5625
67

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN - col2 + col0 AND NULL
----

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

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

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

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

query I rowsort
SELECT + 12 AS col2 FROM tab0 cor0
----
12
12
12

query I rowsort
SELECT DISTINCT - 77 - - 55 AS col1 FROM tab1
----
-22

query I rowsort
SELECT DISTINCT + 95 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 36 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

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

query II rowsort
SELECT ALL + col0, + ( 9 ) AS col2 FROM tab1 AS cor0
----
51
9
85
9
91
9

query I rowsort
SELECT DISTINCT 8 AS col1 FROM tab1 AS cor0 WHERE NOT 65 * + - col2 > NULL
----

query I rowsort
SELECT ALL 92 AS col2 FROM tab0 AS cor0 WHERE NOT 23 NOT IN ( + - col2 / + col1, 42 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 98 col1 FROM tab2 AS cor0
----
98
98
98

query II rowsort
SELECT ALL col0 AS col2, col1 * - + ( + 24 ) FROM tab0 AS cor0
----
15
-1944
87
-504
97
-24

query II rowsort
SELECT ALL - col1, ( + + 88 ) AS col1 FROM tab1
----
-14
88
-47
88
-5
88

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

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

query II rowsort
SELECT ALL col0 AS col2, + col2 AS col2 FROM tab1
----
51
96
85
59
91
68

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT + COUNT( * ) * SUM( - col2 ) AS col2 FROM tab2 AS cor0
----
-363

skipif mysql # not compatible
query I rowsort label-1247
SELECT + COUNT ( * ) * SUM ( - col2 ) AS col2 FROM tab2 AS cor0
----
-363

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + + - col1 + col0 * 42 + 19 col0, 76 AS col0 FROM tab1
----
2198
76
3669
76
3885
76

query I rowsort
SELECT - col0 * col2 + ( col1 ) FROM tab1
----
-4882
-5010
-6141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 92 col0 FROM tab2 cor0
----
138
156
167

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT DISTINCT - MIN( - col2 ) + - 5 AS col1 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-1253
SELECT DISTINCT - MIN ( - col2 ) + - 5 AS col1 FROM tab0 AS cor0
----
94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT ALL - 14 + SUM( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL - 14 + SUM ( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
-117

query I rowsort
SELECT DISTINCT + + col1 * - col1 - col2 + - 98 AS col0 FROM tab0 cor0
----
-198
-549
-6706

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1258
SELECT col2 AS col0, + 55 DIV col1 AS col0 FROM tab2
----
23
1
40
0
58
0

skipif mysql # not compatible
query II rowsort label-1258
SELECT col2 AS col0, + 55 / col1 AS col0 FROM tab2
----
23
1
40
0
58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT DISTINCT 74 * - ( COUNT( * ) ) FROM tab1
----
-222

skipif mysql # not compatible
query I rowsort label-1259
SELECT DISTINCT 74 * - ( COUNT ( * ) ) FROM tab1
----
-222

query I rowsort
SELECT ALL - 65 * - 28 FROM tab0
----
1820
1820
1820

query I rowsort
SELECT 64 * + col1 AS col1 FROM tab1
----
3008
320
896

onlyif mysql # aggregate syntax: 
query II rowsort label-1262
SELECT - + COUNT( * ) col2, + COUNT( ALL + col1 ) FROM tab2 WHERE ( NOT ( NOT - + col2 + + 21 IS NULL ) )
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1262
SELECT - + COUNT ( * ) col2, + COUNT ( ALL + col1 ) FROM tab2 WHERE ( NOT ( NOT - + col2 + + 21 IS NULL ) )
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT MAX( DISTINCT + 83 ) col1 FROM tab2
----
83

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

query I rowsort
SELECT + 7 - col2 AS col1 FROM tab1
----
-52
-61
-89

query I rowsort
SELECT + 84 - + - col1 AS col1 FROM tab2 AS cor0
----
135
151
161

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

query I rowsort
SELECT ALL - - col0 * - + col1 + + col2 * + col2 + col1 AS col2 FROM tab0 AS cor0
----
-1706
1075
9705

query I rowsort
SELECT - + col0 + - - 83 - + 36 * - - col1 AS col1 FROM tab2 cor0
----
-1799
-2404
-2753

query III rowsort
SELECT * FROM tab1 WHERE ( - 16 ) BETWEEN - col1 AND + col1 / + col1
----
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT MIN( col2 ) + - 16 col2 FROM tab0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1270
SELECT MIN ( col2 ) + - 16 col2 FROM tab0
----
-6

query I rowsort
SELECT ALL col1 * - col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-2601
-4489
-5929

query I rowsort
SELECT col2 + + col2 * + col1 AS col2 FROM tab1
----
1440
3264
354

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT MAX( - col1 ) + 91 AS col1 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-1273
SELECT MAX ( - col1 ) + 91 AS col1 FROM tab2
----
40

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 IN ( 78 )
----

query I rowsort
SELECT DISTINCT + col2 * 36 + + col0 * col1 AS col2 FROM tab0
----
2187
2907
3661

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 + 71 = + col2 * + col1
----

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

query I rowsort
SELECT DISTINCT + ( + 99 ) + + 89 * col0 FROM tab0
----
1434
7842
8732

query I rowsort
SELECT ALL 48 + + 97 FROM tab0
----
145
145
145

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT COUNT( * ) + 34 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-1284
SELECT COUNT ( * ) + 34 FROM tab1
----
37

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + 98 >= ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-1287
SELECT DISTINCT COUNT ( 90 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT 9 FROM tab0 WHERE NOT 86 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT ALL SUM( DISTINCT col2 ) FROM tab1 WHERE NOT + col2 <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1289
SELECT ALL SUM ( DISTINCT col2 ) FROM tab1 WHERE NOT + col2 <= ( NULL )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 ) <= 46 + 18
----
97
1
99

query I rowsort
SELECT - col1 * col1 AS col0 FROM tab0 WHERE - col2 = ( col1 )
----

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 NOT IN ( + 83 / + 50 )
----

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

query I rowsort
SELECT ALL col1 + + col2 * - 50 FROM tab2 AS cor0
----
-1099
-1923
-2833

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1298
SELECT 59 DIV 1 FROM tab0 AS cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-1298
SELECT 59 / 1 FROM tab0 AS cor0
----
59
59
59

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE col0 * - col1 <= + col0
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1300
SELECT DISTINCT COUNT( * ) + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1300
SELECT DISTINCT COUNT ( * ) + - CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1301
SELECT col0 DIV + 45 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-1301
SELECT col0 / + 45 FROM tab1 AS cor0
----
1
1
2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 BETWEEN ( 31 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT + - SUM( 7 ) FROM tab0 cor0
----
-21

skipif mysql # not compatible
query I rowsort label-1303
SELECT + - SUM ( 7 ) FROM tab0 cor0
----
-21

query I rowsort
SELECT DISTINCT - 28 + 26 * 10 FROM tab0 AS cor0
----
232

query I rowsort
SELECT + col2 * col0 + 91 * col0 AS col2 FROM tab0 cor0
----
18430
2070
8787

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

query I rowsort
SELECT ALL + - col1 * col1 + + 81 * - col2 FROM tab0 AS cor0
----
-10368
-1251
-8020

onlyif mysql # DIV for integer division: 
query I rowsort label-1308
SELECT 38 DIV + 7 + + col0 FROM tab2 AS cor0
----
51
69
80

skipif mysql # not compatible
query I rowsort label-1308
SELECT 38 / + 7 + + col0 FROM tab2 AS cor0
----
51
69
80

query I rowsort
SELECT + + 58 + - col1 FROM tab2 AS cor0
----
-19
-9
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT ALL 0 + SUM( ALL + col2 + - 18 ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL 0 + SUM ( ALL + col2 + - 18 ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
201

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 7 * - 71 ) >= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( + - 69 ) - 23 AS col0 FROM tab0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) / - col2 col1 FROM tab1 WHERE NOT ( col1 ) <= ( 99 )
----

query I rowsort
SELECT ALL ( + + 44 ) FROM tab1
----
44
44
44

onlyif mysql # DIV for integer division: 
query I rowsort label-1318
SELECT DISTINCT 90 DIV 56 + 39 FROM tab0 WHERE NOT ( 94 ) IS NULL
----
40

skipif mysql # not compatible
query I rowsort label-1318
SELECT DISTINCT 90 / 56 + 39 FROM tab0 WHERE NOT ( 94 ) IS NULL
----
40

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

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE 63 * 40 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1321
SELECT DISTINCT CAST( + 5 AS SIGNED ) + CAST( col1 AS SIGNED ) * 55 FROM tab2 AS cor0
----
2810
3690
4240

skipif mysql # not compatible
query I rowsort label-1321
SELECT DISTINCT CAST ( + 5 AS INTEGER ) + CAST ( col1 AS INTEGER ) * 55 FROM tab2 AS cor0
----
2810
3690
4240

query I rowsort
SELECT + + ( + col2 ) - 55 * col0 FROM tab2 cor0
----
-2507
-3480
-4067

query I rowsort
SELECT + + col2 - + - col1 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT ALL - COUNT( * ) + - COUNT( * ) * 26 AS col2 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1324
SELECT ALL - COUNT ( * ) + - COUNT ( * ) * 26 AS col2 FROM tab0 cor0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-1325
SELECT DISTINCT - - col1 DIV 48 * col2 col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1325
SELECT DISTINCT - - col1 / 48 * col2 col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1326
SELECT ALL - + CAST( 27 AS SIGNED ) * MAX( col2 ) AS col0 FROM tab2 AS cor0
----
-1566

skipif mysql # not compatible
query I rowsort label-1326
SELECT ALL - + CAST ( 27 AS INTEGER ) * MAX ( col2 ) AS col0 FROM tab2 AS cor0
----
-1566

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT 33 * COUNT( * ) FROM tab1, tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-1327
SELECT 33 * COUNT ( * ) FROM tab1, tab0 AS cor0
----
297

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

query I rowsort
SELECT ALL - - 75 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT DISTINCT - + 27 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-27

query I rowsort
SELECT ALL + 74 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1332
SELECT + CAST( + + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1332
SELECT + CAST ( + + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 12 * - 75 * + 83 col0 FROM tab1 AS cor0
----
1045800
3510900
373500

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

query I rowsort
SELECT + col1 - + col0 FROM tab1 AS cor0 WHERE NOT 22 * 73 - - col0 IS NULL
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT + - SUM( - col1 ) col1 FROM tab2 cor0
----
195

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

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

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

query I rowsort
SELECT - 44 FROM tab1 AS cor0 WHERE NOT NULL <= ( col1 )
----

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

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

query I rowsort
SELECT - col1 * 7 + - col2 + + 83 FROM tab0 AS cor0
----
-23
-531
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1341
SELECT + 87 * + - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
-5133
-5916
-8352

skipif mysql # not compatible
query I rowsort label-1341
SELECT + 87 * + - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
-5133
-5916
-8352

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1342
SELECT DISTINCT 52 col1, CAST( - + col2 AS SIGNED ) col1 FROM tab1 AS cor0
----
52
-59
52
-68
52
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1342
SELECT DISTINCT 52 col1, CAST ( - + col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
52
-59
52
-68
52
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT DISTINCT - MAX( - 76 ) FROM tab0 cor0
----
76

skipif mysql # not compatible
query I rowsort label-1343
SELECT DISTINCT - MAX ( - 76 ) FROM tab0 cor0
----
76

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

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

query I rowsort
SELECT - col2 / - 35 FROM tab1 AS cor0 WHERE NOT ( col0 / 83 / - col1 ) NOT IN ( + ( + 39 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1347
SELECT - CAST( + 56 AS SIGNED ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-56
-56
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1347
SELECT - CAST ( + 56 AS INTEGER ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-56
-56
-56

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE + - col2 / + - 18 + col0 * col0 IS NOT NULL
----
1
21
81

query I rowsort
SELECT - ( + + 85 ) * col2 AS col0 FROM tab1
----
-5015
-5780
-8160

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1351
SELECT DISTINCT + - 89 * SUM( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
-20203

skipif mysql # not compatible
query I rowsort label-1351
SELECT DISTINCT + - 89 * SUM ( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
-20203

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE + col0 / + col2 + + 37 * + 18 IN ( + col2 )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT ALL - COUNT( * ) + COUNT( * ) FROM tab1 WHERE NULL IN ( + col0 + + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1355
SELECT ALL - COUNT ( * ) + COUNT ( * ) FROM tab1 WHERE NULL IN ( + col0 + + col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT ALL COUNT( * ) * 86 AS col0 FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-1356
SELECT ALL COUNT ( * ) * 86 AS col0 FROM tab0
----
258

query I rowsort
SELECT + col2 + - ( 98 ) FROM tab1
----
-2
-30
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-1358
SELECT col1 DIV + col1 + + col2 FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-1358
SELECT col1 / + col1 + + col2 FROM tab0
----
100
11
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT - - 14 + 0 + - - MIN( ALL - col1 ) FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-1359
SELECT - - 14 + 0 + - - MIN ( ALL - col1 ) FROM tab1 AS cor0
----
-33

query I rowsort
SELECT DISTINCT + + col1 - col1 AS col2 FROM tab2 AS cor0 WHERE + 20 BETWEEN - - col2 AND - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 4 * - col2 + 1 col1 FROM tab1 cor0
----
-235
-271
-383

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT - COUNT( ALL - 84 ) * 37 AS col0 FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-1364
SELECT - COUNT ( ALL - 84 ) * 37 AS col0 FROM tab0
----
-111

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT DISTINCT - COUNT( DISTINCT - 50 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1366
SELECT DISTINCT - COUNT ( DISTINCT - 50 ) FROM tab2
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT + MIN( col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT 57 / 57 IN ( + col1 )
----
10

skipif mysql # not compatible
query I rowsort label-1368
SELECT + MIN ( col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT 57 / 57 IN ( + col1 )
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-1369
SELECT ALL - col1 DIV - - 87 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1369
SELECT ALL - col1 / - - 87 FROM tab1 AS cor0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-1370
SELECT DISTINCT 20 / + 30 * - COUNT ( * ) AS col1 FROM tab0
----
0

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

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

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

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT - ( + - col1 ) * - col2 * - col0 + + + 33 - + col2 BETWEEN 68 AND col2
----
14
47
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT ALL - ( - - COUNT( * ) ) * SUM( ALL 98 ) FROM tab0 AS cor0
----
-882

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL - ( - - COUNT ( * ) ) * SUM ( ALL 98 ) FROM tab0 AS cor0
----
-882

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT + COUNT( DISTINCT 61 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1378
SELECT + COUNT ( DISTINCT 61 ) AS col1 FROM tab0
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE + 35 / col0 = - col1
----

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

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

query I rowsort
SELECT 26 + - col0 + + 60 + + 61 FROM tab2
----
101
72
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT - COUNT( + - 77 ) + - 29 AS col0 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-1382
SELECT - COUNT ( + - 77 ) + - 29 AS col0 FROM tab0 AS cor0
----
-32

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

skipif mysql # not compatible
query I rowsort label-1383
SELECT DISTINCT + AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2, tab0 AS cor0
----
NULL

query I rowsort
SELECT + 95 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

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

query I rowsort
SELECT + 72 - - + col1 * - - col1 * col0 * + ( + ( + 74 ) ) * ( - 62 ) FROM tab1 AS cor0
----
-45861576
-922275100
-9749428

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 26 ) * - col2 * - 76 * + - ( - col2 ) * + 93 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1390
SELECT ALL + col1 - + + col1 DIV col1 AS col1 FROM tab1 AS cor0
----
13
4
46

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL + col1 - + + col1 / col1 AS col1 FROM tab1 AS cor0
----
13
4
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1391
SELECT + COUNT( * ) + + 47 * MIN( DISTINCT ( + + 11 ) ) DIV + + COUNT( * ) FROM tab1 AS cor0
----
175

skipif mysql # not compatible
query I rowsort label-1391
SELECT + COUNT ( * ) + + 47 * MIN ( DISTINCT ( + + 11 ) ) / + + COUNT ( * ) FROM tab1 AS cor0
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT DISTINCT 62 - - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-1392
SELECT DISTINCT 62 - - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
65

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 + + col0 col0, col1 AS col0 FROM tab1 AS cor0
----
144
5
147
14
159
47

onlyif mysql # DIV for integer division: 
query II rowsort label-1395
SELECT - col2 DIV + - col1 + - 66 + - col1 AS col1, col1 AS col1 FROM tab0 AS cor0
----
-147
81
-87
21
32
1

skipif mysql # not compatible
query II rowsort label-1395
SELECT - col2 / + - col1 + - 66 + - col1 AS col1, col1 AS col1 FROM tab0 AS cor0
----
-147
81
-87
21
32
1

query I rowsort
SELECT DISTINCT col0 - + col1 * - col0 * 73 + col0 + + col2 AS col1 FROM tab0 cor0
----
133555
7374
88772

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 29 + + 73
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab0 WHERE + + col0 + 51 NOT IN ( - - col0, - 59, + ( + col0 ) )
----
10
47
99

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

query I rowsort
SELECT ALL - 80 * - 51 FROM tab1 WHERE col0 IN ( + + 63 + - + col0 * - col0 + + + 11 * - - col0 )
----

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

query III rowsort
SELECT * FROM tab1 WHERE col0 / + col1 + col1 * + - col2 < ( + 24 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 ) < ( 12 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + + col0 * + col2 / - - 53
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1406
SELECT MIN( ALL - + col1 ) DIV + + COUNT( * ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-1406
SELECT MIN ( ALL - + col1 ) / + + COUNT ( * ) FROM tab2 AS cor0
----
-25

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

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

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

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

query I rowsort
SELECT DISTINCT ( + 85 ) AS col1 FROM tab2 cor0
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 * + + 22 col1 FROM tab2
----
-1122
-1122
-1122

onlyif mysql # aggregate syntax: 
query II rowsort label-1411
SELECT 94, - COUNT( * ) AS col1 FROM tab0 AS cor0
----
94
-3

skipif mysql # not compatible
query II rowsort label-1411
SELECT 94, - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
94
-3

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

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

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

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

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

query II rowsort
SELECT DISTINCT col1 * - - col1, 33 AS col2 FROM tab2 AS cor0
----
2601
33
4489
33
5929
33

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 cor0 WHERE NOT 2 NOT BETWEEN + ( + col2 ) + - + col2 - - 51 AND col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1417
SELECT DISTINCT - col2 AS col2, 58 DIV + + col0 FROM tab1 AS cor0
----
-59
0
-68
0
-96
1

skipif mysql # not compatible
query II rowsort label-1417
SELECT DISTINCT - col2 AS col2, 58 / + + col0 FROM tab1 AS cor0
----
-59
0
-68
0
-96
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT - 28 * - 53 * + COUNT( + - col2 ) col0 FROM tab1 AS cor0
----
4452

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1418
SELECT - 28 * - 53 * + COUNT ( + - col2 ) col0 FROM tab1 AS cor0
----
4452

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

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

query I rowsort
SELECT DISTINCT + col2 + col1 - - - col0 AS col0 FROM tab1 cor0
----
-21
24
59

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL + col0 * 61 AS col0 FROM tab0
----
5307
5917
915

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1423
SELECT COUNT( ALL col0 ) DIV + 66 - 24 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-1423
SELECT COUNT ( ALL col0 ) / + 66 - 24 FROM tab0
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-1424
SELECT DISTINCT col1 + - + 92 + + 36 DIV + col1 FROM tab1
----
-45
-76
-80

skipif mysql # not compatible
query I rowsort label-1424
SELECT DISTINCT col1 + - + 92 + + 36 / + col1 FROM tab1
----
-45
-76
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT DISTINCT - COUNT( - - col2 ) AS col2 FROM tab0 AS cor0 WHERE - 92 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1425
SELECT DISTINCT - COUNT ( - - col2 ) AS col2 FROM tab0 AS cor0 WHERE - 92 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1426
SELECT DISTINCT - ( - CAST( col2 AS SIGNED ) ) + col1 FROM tab2 AS cor0
----
117
125
74

skipif mysql # not compatible
query I rowsort label-1426
SELECT DISTINCT - ( - CAST ( col2 AS INTEGER ) ) + col1 FROM tab2 AS cor0
----
117
125
74

query II rowsort
SELECT ALL - col2 * ( col1 ), col1 AS col1 FROM tab0 AS cor0
----
-210
21
-3807
81
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT ALL 69 + - - COUNT( * ) + - + 89 AS col0 FROM tab2 cor0
----
-17

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL 69 + - - COUNT ( * ) + - + 89 AS col0 FROM tab2 cor0
----
-17

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE NULL > - col0 * - 18
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1430
SELECT + col1 DIV + 35 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1430
SELECT + col1 / + 35 FROM tab1 AS cor0
----
0
0
1

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

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

query I rowsort
SELECT DISTINCT - + col2 + - col1 + col2 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT MAX( + col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-1433
SELECT MAX ( + col2 ) AS col1 FROM tab2 AS cor0
----
58

query II rowsort
SELECT ALL - col1 + + + 10 + + + col0 * - col0 AS col2, col1 - 6 FROM tab1 AS cor0
----
-2605
8
-7220
-1
-8318
41

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT ALL COUNT( * ) + + ( COUNT( ALL col0 ) ) AS col1 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-1436
SELECT ALL COUNT ( * ) + + ( COUNT ( ALL col0 ) ) AS col1 FROM tab0 cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + 65, - 70 * + 95, + 26 )
----

query I rowsort
SELECT + col0 * 16 * - 47 - + - col0 * + + col2 AS col0 FROM tab1 AS cor0
----
-33456
-58905
-62244

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1439
SELECT DISTINCT - CAST( 75 AS SIGNED ) * - + 66 AS col0 FROM tab0
----
4950

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT - CAST ( 75 AS INTEGER ) * - + 66 AS col0 FROM tab0
----
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT MIN( + - col2 ) col0 FROM tab1
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1440
SELECT MIN ( + - col2 ) col0 FROM tab1
----
-96

query I rowsort
SELECT DISTINCT ( - ( col1 ) ) AS col2 FROM tab0
----
-1
-21
-81

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 4 col0 FROM tab1
----
-236
-272
-384

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT DISTINCT - + 11 * - COUNT( * ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-1446
SELECT DISTINCT - + 11 * - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1447
SELECT - col0 DIV - 17 AS col2 FROM tab1
----
3
5
5

skipif mysql # not compatible
query I rowsort label-1447
SELECT - col0 / - 17 AS col2 FROM tab1
----
3
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT 37 * - + COUNT( * ) AS col0 FROM tab0, tab0 cor0
----
-333

skipif mysql # not compatible
query I rowsort label-1448
SELECT 37 * - + COUNT ( * ) AS col0 FROM tab0, tab0 cor0
----
-333

query I rowsort
SELECT ALL - 78 * - col0 FROM tab1
----
3978
6630
7098

query I rowsort
SELECT - ( + col1 ) + - - 72 AS col1 FROM tab0 WHERE NOT 93 <= ( NULL )
----

query I rowsort
SELECT DISTINCT 33 * - col2 * - - 29 FROM tab0
----
-44979
-94743
-9570

query I rowsort
SELECT 88 * col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - 46, 57 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT - COUNT( col1 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1454
SELECT - COUNT ( col1 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT + + 4 AS col0 FROM tab0 AS cor0
----
4
4
4

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

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

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

query I rowsort
SELECT 85 + - col2 + + 22 FROM tab2
----
49
67
84

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

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

query I rowsort
SELECT DISTINCT - col1 + + 81 FROM tab0
----
0
60
80

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

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE ( NULL ) IS NULL
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT DISTINCT + ( + - 80 ) + - COUNT( * ) AS col2 FROM tab0 cor0
----
-83

skipif mysql # not compatible
query I rowsort label-1463
SELECT DISTINCT + ( + - 80 ) + - COUNT ( * ) AS col2 FROM tab0 cor0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT - + COUNT( DISTINCT 40 ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1464
SELECT - + COUNT ( DISTINCT 40 ) AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT - + COUNT( ALL 5 ) col0 FROM tab0 AS cor0
----
-3

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1466
SELECT ALL MAX( ALL 75 ) DIV + + 97 col1, + 54 FROM tab1
----
0
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1466
SELECT ALL MAX ( ALL 75 ) / + + 97 col1, + 54 FROM tab1
----
0
54

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

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

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + 63 / + col0 * - col2 - - col1 + col2 * + + col0 * - col1, + ( + col0 ) * - + col1 + col2 + col1 )
----

query I rowsort
SELECT - + 44 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

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

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL - col1 / - + col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + col0 + 87 * - col0 FROM tab0 AS cor0
----
-1290
-7482
-8342

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1473
SELECT DISTINCT 5, + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE col1 <= 94 * + - col2 + + col2 / col2
----

skipif mysql # not compatible
query II rowsort label-1473
SELECT DISTINCT 5, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE col1 <= 94 * + - col2 + + col2 / col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1474
SELECT DISTINCT - CAST( + col0 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-128
-150
-92

skipif mysql # not compatible
query I rowsort label-1474
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT + MAX( 87 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
87

skipif mysql # not compatible
query I rowsort label-1475
SELECT + MAX ( 87 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 < - col2
----
-3

skipif mysql # not compatible
query I rowsort label-1476
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 < - col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1477
SELECT * FROM tab0 cor0 WHERE NOT 41 >= CAST( - 92 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1477
SELECT * FROM tab0 cor0 WHERE NOT 41 >= CAST ( - 92 AS INTEGER )
----

query I rowsort
SELECT DISTINCT col2 + - - 74 * + 21 FROM tab2 WHERE col2 >= col1 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1479
SELECT DISTINCT + col0 col1, - CAST( - col0 AS SIGNED ) FROM tab0
----
15
15
87
87
97
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1479
SELECT DISTINCT + col0 col1, - CAST ( - col0 AS INTEGER ) FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT ALL + 92 FROM tab2 WHERE NOT + 90 * - + col2 + - - col0 IS NOT NULL
----

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

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

query I rowsort
SELECT col0 * + 85 AS col0 FROM tab2
----
3910
5440
6375

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT ALL - 68 * - - COUNT( * ) AS col0 FROM tab2
----
-204

skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL - 68 * - - COUNT ( * ) AS col0 FROM tab2
----
-204

query I rowsort
SELECT - col0 + 13 FROM tab0
----
-2
-74
-84

query I rowsort
SELECT col2 * col0 + - col1 + + col2 * + 27 FROM tab0 AS cor0
----
1119
12275
1893

onlyif mysql # DIV for integer division: 
query I rowsort label-1493
SELECT col1 + 37 DIV - col2 FROM tab0 AS cor0
----
1
18
81

skipif mysql # not compatible
query I rowsort label-1493
SELECT col1 + 37 / - col2 FROM tab0 AS cor0
----
1
18
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT ALL COUNT( * ) + - - ( + 86 ) AS col1 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL COUNT ( * ) + - - ( + 86 ) AS col1 FROM tab2
----
89

query I rowsort
SELECT DISTINCT col1 + + 75 AS col1 FROM tab1
----
122
80
89

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

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

query I rowsort
SELECT ALL + col1 * - 47 AS col2 FROM tab1
----
-2209
-235
-658

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

query I rowsort
SELECT - col1 * + 20 * - 30 FROM tab0
----
12600
48600
600

query I rowsort
SELECT + col2 * + + 11 FROM tab1
----
1056
649
748

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

query I rowsort
SELECT + 10 * + col1 AS col1 FROM tab1
----
140
470
50

onlyif mysql # DIV for integer division: 
query I rowsort label-1505
SELECT - 28 DIV + - 59 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1505
SELECT - 28 / + - 59 AS col1 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1506
SELECT ALL * FROM tab1 WHERE NOT ( NOT + - 0 - - ( - col1 ) + - 29 + + + 79 + - - 34 BETWEEN - + 91 + col2 * CAST( NULL AS SIGNED ) AND NULL ) OR NOT - col2 > + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1506
SELECT ALL * FROM tab1 WHERE NOT ( NOT + - 0 - - ( - col1 ) + - 29 + + + 79 + - - 34 BETWEEN - + 91 + col2 * CAST ( NULL AS INTEGER ) AND NULL ) OR NOT - col2 > + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-1507
SELECT + col2 DIV col1 - - col1 AS col0, + col1 * + 40 FROM tab2
----
51
2040
67
2680
77
3080

skipif mysql # not compatible
query II rowsort label-1507
SELECT + col2 / col1 - - col1 AS col0, + col1 * + 40 FROM tab2
----
51
2040
67
2680
77
3080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1508
SELECT + 7 * - COUNT( * ) DIV MIN( DISTINCT - 47 ) - - 52 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-1508
SELECT + 7 * - COUNT ( * ) / MIN ( DISTINCT - 47 ) - - 52 FROM tab0
----
52

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 71 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1510
SELECT ALL - 33, COUNT( * ) + - + 1 AS col0 FROM tab1 AS cor0
----
-33
2

skipif mysql # not compatible
query II rowsort label-1510
SELECT ALL - 33, COUNT ( * ) + - + 1 AS col0 FROM tab1 AS cor0
----
-33
2

query II rowsort
SELECT ALL + + col1, 81 * + 52 FROM tab0 cor0
----
1
4212
21
4212
81
4212

query I rowsort
SELECT ( - - col1 ) * + - col1 FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT + + col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 58 * - 47 / - col2 + - + 58 AND + col2
----

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

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

query I rowsort
SELECT ALL - col2 + + col1 * + - col1 + - + 70 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1516
SELECT DISTINCT col1 DIV - 30, col2 FROM tab0
----
-2
47
0
10
0
99

skipif mysql # not compatible
query II rowsort label-1516
SELECT DISTINCT col1 / - 30, col2 FROM tab0
----
-2
47
0
10
0
99

onlyif mysql # DIV for integer division: 
query II rowsort label-1517
SELECT col2 DIV - col2, - 43 col0 FROM tab1
----
-1
-43
-1
-43
-1
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1517
SELECT col2 / - col2, - 43 col0 FROM tab1
----
-1
-43
-1
-43
-1
-43

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE NOT - + 86 IS NULL
----
46
64
75

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

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

query I rowsort
SELECT - ( col0 ) - + + 88 FROM tab2 WHERE NOT - - 45 / col1 - + col2 IS NULL
----
-134
-152
-163

query II rowsort
SELECT DISTINCT ( + - 33 ), + 65 AS col1 FROM tab1
----
-33
65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT ALL 20 * 93 * + - 77 * + - MAX( - col1 ) col2 FROM tab2
----
-7304220

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1523
SELECT ALL 20 * 93 * + - 77 * + - MAX ( - col1 ) col2 FROM tab2
----
-7304220

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

query II rowsort
SELECT ALL - + ( + col1 ) AS col2, - col1 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1526
SELECT 55 DIV + COUNT( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-1526
SELECT 55 / + COUNT ( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
18

query II rowsort
SELECT ALL col2, 69 FROM tab1
----
59
69
68
69
96
69

query I rowsort
SELECT DISTINCT + 94 * - - 93 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
8742

onlyif mysql # aggregate syntax: 
query II rowsort label-1529
SELECT DISTINCT + + COUNT( * ) AS col0, - 37 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
-37

skipif mysql # not compatible
query II rowsort label-1529
SELECT DISTINCT + + COUNT ( * ) AS col0, - 37 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
-37

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 / - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1531
SELECT - col1 + - col1 AS col1 FROM tab2 AS cor0 WHERE NULL < - CAST( NULL AS SIGNED ) * - 98
----

skipif mysql # not compatible
query I rowsort label-1531
SELECT - col1 + - col1 AS col1 FROM tab2 AS cor0 WHERE NULL < - CAST ( NULL AS INTEGER ) * - 98
----

query I rowsort
SELECT DISTINCT - col2 + 55 FROM tab2 AS cor0
----
-3
15
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1533
SELECT + col1 AS col0, + ( - - 43 ) * CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
51
989
67
2494
77
1720

skipif mysql # not compatible
query II rowsort label-1533
SELECT + col1 AS col0, + ( - - 43 ) * CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
51
989
67
2494
77
1720

onlyif mysql # DIV for integer division: 
query I rowsort label-1534
SELECT 41 + - 45 DIV 42 FROM tab0 AS cor0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-1534
SELECT 41 + - 45 / 42 FROM tab0 AS cor0
----
40
40
40

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

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

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

query I rowsort
SELECT + 20 + + col0 FROM tab1
----
105
111
71

query I rowsort
SELECT ALL 7 + + - 9 FROM tab2
----
-2
-2
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1539
SELECT DISTINCT - - SUM( ALL CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) ) * + 28 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1539
SELECT DISTINCT - - SUM ( ALL CAST ( CAST ( NULL AS REAL ) AS INTEGER ) ) * + 28 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1540
SELECT - 81 * - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) - COUNT( * ) * 95 col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1540
SELECT - 81 * - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) - COUNT ( * ) * 95 col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 - + 36 AS col1 FROM tab0
----
-15
-35
45

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN col2 * col2 AND + col2 * - 29 / 51 * - col1 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1546
SELECT DISTINCT + 39 DIV + + col1 FROM tab1 AS cor0
----
0
2
7

skipif mysql # not compatible
query I rowsort label-1546
SELECT DISTINCT + 39 / + + col1 FROM tab1 AS cor0
----
0
2
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1547
SELECT + - SUM( + col2 ) DIV + + 21 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1547
SELECT + - SUM ( + col2 ) / + + 21 FROM tab2 AS cor0
----
-5

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( - col1 ) * - col2 col1, - 20 * 45 AS col0 FROM tab0 AS cor0
----
-210
-900
-3807
-900
-99
-900

onlyif mysql # DIV for integer division: 
query I rowsort label-1550
SELECT + 57 * col2 DIV - + 48 FROM tab0 AS cor0
----
-11
-117
-55

skipif mysql # not compatible
query I rowsort label-1550
SELECT + 57 * col2 / - + 48 FROM tab0 AS cor0
----
-11
-117
-55

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

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

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

query I rowsort
SELECT + - col1 * + col2 * - + col0 AS col1 FROM tab0 AS cor0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT ALL + 66 * ( + ( - COUNT( * ) ) ) AS col0 FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-1554
SELECT ALL + 66 * ( + ( - COUNT ( * ) ) ) AS col0 FROM tab0 AS cor0
----
-198

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

query I rowsort
SELECT ALL + 44 * + - 93 AS col2 FROM tab1
----
-4092
-4092
-4092

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 * col2 col0 FROM tab1
----
-1475
-150212
-18816

query I rowsort
SELECT DISTINCT col1 / + 40 FROM tab1 WHERE NOT NULL NOT BETWEEN + col1 + - - col1 AND - 94
----

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

skipif mysql # not compatible
query I rowsort label-1559
SELECT + + ( - ( COUNT ( * ) ) ) FROM tab2 WHERE ( NULL <= + 10 / - - col1 + col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1560
SELECT ( + + CAST( + col2 AS SIGNED ) ), - col1 col1 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1560
SELECT ( + + CAST ( + col2 AS INTEGER ) ), - col1 col1 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

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

query I rowsort
SELECT DISTINCT - 12 + + - col2 + + 64 AS col1 FROM tab0 cor0
----
-47
42
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 38 * 3 = col0 * + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE + col1 BETWEEN NULL AND - 64 + - 33 * + - 11
----
0

skipif mysql # not compatible
query I rowsort label-1564
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE + col1 BETWEEN NULL AND - 64 + - 33 * + - 11
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT ALL + COUNT( * ) + COUNT( ALL + ( + 10 ) ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1566
SELECT ALL + COUNT ( * ) + COUNT ( ALL + ( + 10 ) ) FROM tab1 AS cor0
----
6

query II rowsort
SELECT + col2 AS col1, ( - + 50 ) FROM tab0
----
10
-50
47
-50
99
-50

query I rowsort
SELECT DISTINCT - + ( + col2 ) FROM tab2 WHERE NOT + col2 / + + col2 BETWEEN NULL AND - + col1
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1569
SELECT DISTINCT CAST( - ( - col2 ) AS SIGNED ) - + 42 + col1 AS col1 FROM tab0
----
-11
58
86

skipif mysql # not compatible
query I rowsort label-1569
SELECT DISTINCT CAST ( - ( - col2 ) AS INTEGER ) - + 42 + col1 AS col1 FROM tab0
----
-11
58
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 31, col0 col0 FROM tab2
----
-31
46
-31
64
-31
75

query I rowsort
SELECT 21 - + col1 AS col0 FROM tab0
----
-60
0
20

query I rowsort
SELECT - 36 - + col2 AS col2 FROM tab2
----
-59
-76
-94

query I rowsort
SELECT + - 14 FROM tab0 WHERE NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 - 96 col0 FROM tab1
----
-67
-67
-67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + ( - col0 ) NOT BETWEEN - col1 AND NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 8 + 19 * + + 96 * col0 + + + col1 AS col2 FROM tab2 AS cor0
----
116821
136875
83963

query I rowsort
SELECT DISTINCT + - 85 FROM tab2 cor0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1578
SELECT DISTINCT + COUNT( * ) + + - 53 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-44

skipif mysql # not compatible
query I rowsort label-1578
SELECT DISTINCT + COUNT ( * ) + + - 53 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-44

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

query I rowsort
SELECT ALL 33 AS col1 FROM tab0 cor0
----
33
33
33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1581
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < CAST( col0 AS SIGNED ) - + col0
----

skipif mysql # not compatible
query III rowsort label-1581
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < CAST ( col0 AS INTEGER ) - + col0
----

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

query I rowsort
SELECT + - 49 * + col1 FROM tab1 cor0
----
-2303
-245
-686

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1584
SELECT + MAX( DISTINCT + 55 ) DIV + + ( COUNT( * ) ) AS col2 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-1584
SELECT + MAX ( DISTINCT + 55 ) / + + ( COUNT ( * ) ) AS col2 FROM tab1
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 43 col0 FROM tab0
----
2021
4257
430

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1587
SELECT DISTINCT col0 * - + 77 * - + CAST( NULL AS DECIMAL ), + ( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1587
SELECT DISTINCT col0 * - + 77 * - + CAST ( NULL AS REAL ), + ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL
NULL

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

query I rowsort
SELECT DISTINCT + col1 * 98 AS col1 FROM tab2
----
4998
6566
7546

query I rowsort
SELECT DISTINCT + col1 * - col1 + + 8 + + col0 AS col2 FROM tab1
----
-137
-2110
68

query I rowsort
SELECT ALL - + 54 * + + col1 AS col0 FROM tab1 AS cor0
----
-2538
-270
-756

query I rowsort
SELECT ALL 76 + - + col0 AS col1 FROM tab0 AS cor0
----
-11
-21
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT DISTINCT - + SUM( DISTINCT col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-223

skipif mysql # not compatible
query I rowsort label-1593
SELECT DISTINCT - + SUM ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-223

query I rowsort
SELECT DISTINCT - + 22 + + 30 - - col1 * col2 AS col0 FROM tab2 AS cor0
----
1181
3088
3894

query I rowsort
SELECT ALL - col2 * + 45 FROM tab0 AS cor0 WHERE ( col0 IS NOT NULL )
----
-2115
-4455
-450

query I rowsort
SELECT + - 98 - + 75 AS col1 FROM tab0 cor0
----
-173
-173
-173

query I rowsort
SELECT - col2 + col1 + - 35 AS col1 FROM tab1 cor0
----
-117
-56
-89

query I rowsort
SELECT DISTINCT - - 19 + + + col1 AS col2 FROM tab0 AS cor0
----
100
20
40

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

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

query I rowsort
SELECT DISTINCT + col2 + + - 41 FROM tab0 AS cor0
----
-31
58
6

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1602
SELECT DISTINCT + 28 DIV - 53 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1602
SELECT DISTINCT + 28 / - 53 FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE + 96 < 35
----

query I rowsort
SELECT 98 * 66 FROM tab1
----
6468
6468
6468

query I rowsort
SELECT + + col0 FROM tab0 WHERE ( - 64 ) IS NOT NULL
----
15
87
97

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

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

query II rowsort
SELECT 83 AS col2, 14 AS col0 FROM tab2
----
83
14
83
14
83
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col1 FROM tab2 WHERE + - col1 / 73 * + - col2 IS NOT NULL
----
-46
-64
-75

query II rowsort
SELECT 70, ( - col1 ) AS col1 FROM tab2
----
70
-51
70
-67
70
-77

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

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

query II rowsort
SELECT + col0, col0 + 67 + - col0 * + + 76 AS col1 FROM tab1 AS cor0
----
51
-3758
85
-6308
91
-6758

query I rowsort
SELECT + 2 * + + 83 * + col2 + - 38 FROM tab0 AS cor0
----
1622
16396
7764

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

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

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

query I rowsort
SELECT ALL + col2 + col2 + - col2 FROM tab2 WHERE - - col0 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT DISTINCT ( + COUNT( * ) ) * + 81 - + 86 AS col2 FROM tab1
----
157

skipif mysql # not compatible
query I rowsort label-1616
SELECT DISTINCT ( + COUNT ( * ) ) * + 81 - + 86 AS col2 FROM tab1
----
157

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 * - + col0 + + col2 + - 46 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1618
SELECT ALL 27 FROM tab0 WHERE CAST( col1 AS DECIMAL ) + col2 IS NOT NULL
----
27
27
27

skipif mysql # not compatible
query I rowsort label-1618
SELECT ALL 27 FROM tab0 WHERE CAST ( col1 AS REAL ) + col2 IS NOT NULL
----
27
27
27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT DISTINCT - - MIN( - col2 ) * - 99 AS col0 FROM tab2 AS cor0 WHERE col1 / col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1620
SELECT DISTINCT - - MIN ( - col2 ) * - 99 AS col0 FROM tab2 AS cor0 WHERE col1 / col1 IS NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT DISTINCT COUNT( * ) + - ( - 40 ) - - + SUM( DISTINCT - + 34 ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1622
SELECT DISTINCT COUNT ( * ) + - ( - 40 ) - - + SUM ( DISTINCT - + 34 ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT ALL + col1 + - 30 FROM tab1 AS cor0
----
-16
-25
17

query I rowsort
SELECT - col0 + + 29 FROM tab2 cor0
----
-17
-35
-46

query I rowsort
SELECT - 24 + - - 76 FROM tab2
----
52
52
52

query I rowsort
SELECT + 90 + col1 FROM tab0
----
111
171
91

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

query I rowsort
SELECT DISTINCT - 16 + - ( - - 51 ) FROM tab1 AS cor0
----
-67

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= col1 * col1
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 + - + col2 col2 FROM tab2 AS cor0
----
27
45
62

query II rowsort
SELECT ALL + - 45 + - col2 + - + ( + 13 ) + 41 * 12, col2 AS col2 FROM tab1 AS cor0
----
338
96
366
68
375
59

query I rowsort
SELECT DISTINCT - 68 + col2 AS col1 FROM tab1 cor0
----
-9
0
28

onlyif mysql # DIV for integer division: 
query I rowsort label-1635
SELECT DISTINCT col1 DIV - 64 AS col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-1635
SELECT DISTINCT col1 / - 64 AS col0 FROM tab2
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1636
SELECT - col0 - - 21 DIV - + col1 DIV 24 * + + 89 AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1636
SELECT - col0 - - 21 / - + col1 / 24 * + + 89 AS col0 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT DISTINCT MIN( DISTINCT - 71 ) + + + 3 - + 43 FROM tab1 WHERE NOT 33 + - col1 < + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT MIN ( DISTINCT - 71 ) + + + 3 - + 43 FROM tab1 WHERE NOT 33 + - col1 < + col2
----
NULL

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

query II rowsort
SELECT col2, col1 AS col0 FROM tab0
----
10
21
47
81
99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT col0 * + 4 / - - 99 * - col1 col0, + 63, col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( + 99 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN - - 50 / + col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 / - 44 + - 63 AS col2 FROM tab1 WHERE NOT NULL <= col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1643
SELECT 33 DIV - COUNT( * ) FROM tab2 cor0
----
-11

skipif mysql # not compatible
query I rowsort label-1643
SELECT 33 / - COUNT ( * ) FROM tab2 cor0
----
-11

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

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

query I rowsort
SELECT ALL + - 52 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT col2 * - - col1 * + 5 FROM tab1 AS cor0
----
1475
15980
6720

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT COUNT( * ) + 41 * 17 FROM tab2
----
700

skipif mysql # not compatible
query I rowsort label-1649
SELECT COUNT ( * ) + 41 * 17 FROM tab2
----
700

query I rowsort
SELECT ALL col1 + 84 AS col2 FROM tab2
----
135
151
161

query I rowsort
SELECT DISTINCT - 7 * - col1 FROM tab0
----
147
567
7

query I rowsort
SELECT ALL + col1 + - 77 * - + col1 FROM tab2 AS cor0
----
3978
5226
6006

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 32 > + - col0
----

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

query IIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NULL NOT BETWEEN NULL AND NULL, tab2 AS cor2
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1657
SELECT 78 + 43 + + COUNT ( * ) col2 FROM tab2 AS cor0
----
124

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1659
SELECT 14 + + 94 DIV + ( + 37 ), + col0 - - + CAST( NULL AS SIGNED ) + - CAST( + col0 AS SIGNED ) + - - col0 AS col0 FROM tab1 AS cor0
----
16
NULL
16
NULL
16
NULL

skipif mysql # not compatible
query II rowsort label-1659
SELECT 14 + + 94 / + ( + 37 ), + col0 - - + CAST ( NULL AS INTEGER ) + - CAST ( + col0 AS INTEGER ) + - - col0 AS col0 FROM tab1 AS cor0
----
16
NULL
16
NULL
16
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1660
SELECT ALL col1 DIV - - col0 + col2 FROM tab0 AS cor0
----
10
52
99

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL col1 / - - col0 + col2 FROM tab0 AS cor0
----
10
52
99

query I rowsort
SELECT + + col1 + - 34 FROM tab2 cor0
----
17
33
43

query I rowsort
SELECT ALL - 61 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-61
-61
-61

query I rowsort
SELECT + 63 + + col2 AS col0 FROM tab0 cor0
----
110
162
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT ALL - - MAX( col2 ) AS col1 FROM tab2 WHERE + + col2 < col1
----
58

skipif mysql # not compatible
query I rowsort label-1664
SELECT ALL - - MAX ( col2 ) AS col1 FROM tab2 WHERE + + col2 < col1
----
58

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

skipif mysql # not compatible
query I rowsort label-1665
SELECT - - COUNT ( * ) FROM tab1 WHERE NOT - col2 IS NULL
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT ALL MAX( ALL + 88 ) FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL MAX ( ALL + 88 ) FROM tab1
----
88

query I rowsort
SELECT - - 95 * - col0 * - 69 * col0 FROM tab1 AS cor0
----
17049555
47359875
54281955

query I rowsort
SELECT ALL + col0 * - 38 FROM tab2 AS cor0
----
-1748
-2432
-2850

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT + - 26 * - COUNT( * ) + MIN( ALL + col2 ) - ( - ( - 18 ) ) FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-1670
SELECT + - 26 * - COUNT ( * ) + MIN ( ALL + col2 ) - ( - ( - 18 ) ) FROM tab2 AS cor0
----
83

query I rowsort
SELECT ( + 50 ) * + col2 + - col2 AS col2 FROM tab1 cor0
----
2891
3332
4704

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

query I rowsort
SELECT ALL + - 7 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT 84 + - col2 AS col0 FROM tab0
----
-15
37
74

onlyif mysql # DIV for integer division: 
query I rowsort label-1675
SELECT - 68 DIV + col2 + - - ( + col2 ) AS col0 FROM tab2 AS cor0
----
21
39
57

skipif mysql # not compatible
query I rowsort label-1675
SELECT - 68 / + col2 + - - ( + col2 ) AS col0 FROM tab2 AS cor0
----
21
39
57

query I rowsort
SELECT 38 + - col1 FROM tab1 AS cor0
----
-9
24
33

query I rowsort
SELECT ALL - - 74 + col0 FROM tab0 AS cor0
----
161
171
89

query I rowsort
SELECT DISTINCT 7 * + col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - ( + col0 ) * + + 61 FROM tab2 AS cor0
----
-2806
-3904
-4575

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT DISTINCT MAX( DISTINCT - 39 ) FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-1680
SELECT DISTINCT MAX ( DISTINCT - 39 ) FROM tab1 AS cor0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-1681
SELECT ALL - 70 DIV - col1 + - - col2 FROM tab1 AS cor0
----
101
69
73

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL - 70 / - col1 + - - col2 FROM tab1 AS cor0
----
101
69
73

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

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

query I rowsort
SELECT + - col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-15
-87
-97

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col0 <> 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT COUNT( * ) - - COUNT( * ) AS col1 FROM tab2, tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-1687
SELECT COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab2, tab0 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1688
SELECT + + col0 * + col2 AS col1 FROM tab2 WHERE ( - + col1 ) = - + col2 + + CAST( 84 AS SIGNED ) * - col0
----

skipif mysql # not compatible
query I rowsort label-1688
SELECT + + col0 * + col2 AS col1 FROM tab2 WHERE ( - + col1 ) = - + col2 + + CAST ( 84 AS INTEGER ) * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1689
SELECT ALL col2 * col2 + + CAST( + col2 AS SIGNED ) FROM tab0 cor0
----
110
2256
9900

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL col2 * col2 + + CAST ( + col2 AS INTEGER ) FROM tab0 cor0
----
110
2256
9900

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT COUNT( DISTINCT + + ( 0 ) ) + - 90 AS col0 FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-1691
SELECT COUNT ( DISTINCT + + ( 0 ) ) + - 90 AS col0 FROM tab1
----
-89

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1692
SELECT + COUNT ( + - col2 ) col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - - 23 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT DISTINCT + - COUNT( ( + - col2 ) ) + ( + 35 ) AS col0 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-1694
SELECT DISTINCT + - COUNT ( ( + - col2 ) ) + ( + 35 ) AS col0 FROM tab0 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT DISTINCT + + COUNT( * ) * - + 47 FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-1695
SELECT DISTINCT + + COUNT ( * ) * - + 47 FROM tab1 AS cor0
----
-141

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

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

query I rowsort
SELECT DISTINCT - ( + col2 ) * + - col0 * col2 * - col0 + - col1 FROM tab0
----
-497106
-756921
-92217610

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT ALL COUNT( * ) FROM tab0 WHERE - col0 NOT BETWEEN 13 AND ( + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-1698
SELECT ALL COUNT ( * ) FROM tab0 WHERE - col0 NOT BETWEEN 13 AND ( + col2 )
----
3

query II rowsort
SELECT + ( col1 ), + col2 * + + col1 + - col2 + - col0 FROM tab2
----
51
1104
67
3753
77
2976

query I rowsort
SELECT DISTINCT col1 * - + col0 + - - col2 FROM tab2 AS cor0
----
-2323
-4888
-4967

query I rowsort
SELECT + col0 * - col2 * col2 AS col0 FROM tab1 AS cor0
----
-295885
-420784
-470016

query I rowsort
SELECT - + 95 * 92 FROM tab0 AS cor0
----
-8740
-8740
-8740

onlyif mysql # DIV for integer division: 
query I rowsort label-1703
SELECT ALL col1 DIV - 49 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1703
SELECT ALL col1 / - 49 col0 FROM tab1
----
0
0
0

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

query II rowsort
SELECT DISTINCT - col2 AS col0, + col1 * - col1 AS col2 FROM tab0
----
-10
-441
-47
-6561
-99
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1706
SELECT - 81, CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to bce86745840dfe82a2960dccf5b4ddb2

skipif mysql # not compatible
query II rowsort label-1706
SELECT - 81, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to bce86745840dfe82a2960dccf5b4ddb2

query I rowsort
SELECT ALL + + 97 + col0 + - col0 FROM tab1 AS cor0
----
97
97
97

query I rowsort
SELECT DISTINCT - col0 * - + col2 + - col2 FROM tab1 AS cor0
----
4800
4956
6120

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT ALL COUNT( * ) + - - 71 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-1709
SELECT ALL COUNT ( * ) + - - 71 FROM tab0 AS cor0
----
74

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

query I rowsort
SELECT + ( + 62 ) + - col0 FROM tab2 AS cor0
----
-13
-2
16

query I rowsort
SELECT AVG ( - 45 ) AS col0 FROM tab1 AS cor0 WHERE col2 + col2 IS NULL
----
NULL

query I rowsort
SELECT - 8 + 39 AS col1 FROM tab0 AS cor0
----
31
31
31

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

skipif mysql # not compatible
query I rowsort label-1714
SELECT + col2 * ( - - ( col0 ) ) * col1 + - CAST ( NULL AS REAL ) * + 40 + - col1 + ( col2 ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT + COUNT( + col2 ) + 6 + 68 FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-1715
SELECT + COUNT ( + col2 ) + 6 + 68 FROM tab1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT ALL - 56 * - 77 * - COUNT( * ) FROM tab2
----
-12936

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL - 56 * - 77 * - COUNT ( * ) FROM tab2
----
-12936

query I rowsort
SELECT col2 * + - col2 + - col2 + + 49 FROM tab0
----
-2207
-61
-9851

onlyif mysql # aggregate syntax: 
query II rowsort label-1718
SELECT COUNT( - 23 ) AS col1, MIN( - col0 ) * + COUNT( * ) FROM tab0 AS cor0
----
3
-291

skipif mysql # not compatible
query II rowsort label-1718
SELECT COUNT ( - 23 ) AS col1, MIN ( - col0 ) * + COUNT ( * ) FROM tab0 AS cor0
----
3
-291

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1719
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND + col1 * - + 74
----

skipif mysql # not compatible
query III rowsort label-1719
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND + col1 * - + 74
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1720
SELECT 85 DIV + + col2 + + - col2 FROM tab1 AS cor0
----
-58
-67
-96

skipif mysql # not compatible
query I rowsort label-1720
SELECT 85 / + + col2 + + - col2 FROM tab1 AS cor0
----
-58
-67
-96

query II rowsort
SELECT col2, + ( - + 88 ) AS col2 FROM tab0 AS cor0
----
10
-88
47
-88
99
-88

query II rowsort
SELECT + ( - - col1 ) AS col0, 39 * + 16 * - 18 AS col2 FROM tab0 AS cor0
----
1
-11232
21
-11232
81
-11232

query I rowsort
SELECT DISTINCT + col1 + + col2 * + col1 AS col0 FROM tab0 AS cor0
----
100
231
3888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 - - + 49 col1, + col2 AS col2 FROM tab2
----
113
40
124
58
95
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT ALL + COUNT( * ) - - - COUNT( * ) - + 93 AS col0 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL + COUNT ( * ) - - - COUNT ( * ) - + 93 AS col0 FROM tab0
----
-93

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL <= col0 / + 5
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1731
SELECT - - col2 DIV col1 AS col0 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-1731
SELECT - - col2 / col1 AS col0 FROM tab1 AS cor0
----
1
11
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1732
SELECT + col1 DIV 54 AS col0 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1732
SELECT + col1 / 54 AS col0 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT 29 * + col1 AS col1 FROM tab2 cor0
----
1479
1943
2233

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

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

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

query I rowsort
SELECT DISTINCT - 97 AS col0 FROM tab2, tab0 AS cor0
----
-97

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

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

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

query I rowsort
SELECT ALL - 67 AS col0 FROM tab1 AS cor0 WHERE NOT 69 * - col1 < - - col1
----

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

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

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

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT - 54 * - 35 IS NULL
----
-1
-21
-81

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

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

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE col2 * + col2 NOT IN ( + 41 )
----
23
40
58

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1747
SELECT + col1 DIV - col1 + - col1 FROM tab1
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-1747
SELECT + col1 / - col1 + - col1 FROM tab1
----
-15
-48
-6

query III rowsort
SELECT * FROM tab1 WHERE col2 * col1 <= ( + 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT - MIN( 73 ) AS col1 FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-1749
SELECT - MIN ( 73 ) AS col1 FROM tab2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1750
SELECT ALL col1 * CAST( col0 / - col0 AS SIGNED ) AS col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL col1 * CAST ( col0 / - col0 AS INTEGER ) AS col1 FROM tab1
----
-14
-47
-5

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) + - col1 col0 FROM tab1 WHERE NOT NULL IN ( ( 22 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - 64 col1 FROM tab2 WHERE NOT - col2 IS NULL
----
110
128
139

query I rowsort
SELECT DISTINCT + col2 * 15 FROM tab2
----
345
600
870

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT 63 + + COUNT( * ) AS col2 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-1755
SELECT 63 + + COUNT ( * ) AS col2 FROM tab0
----
66

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) <> ( col1 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1760
SELECT col2 / ( - col2 ) FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL ( - col2 ) FROM tab2 WHERE col0 = - col1 * 7 + 26 * + col2
----

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 + - 93 < ( col1 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT COUNT( * ) + 42 * COUNT( * ) FROM tab2 cor0
----
129

skipif mysql # not compatible
query I rowsort label-1765
SELECT COUNT ( * ) + 42 * COUNT ( * ) FROM tab2 cor0
----
129

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 84 + - 71 ) <= + col0 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE ( 99 ) <= 20
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1768
SELECT + col2 * CAST( 8 AS SIGNED ) FROM tab2
----
184
320
464

skipif mysql # not compatible
query I rowsort label-1768
SELECT + col2 * CAST ( 8 AS INTEGER ) FROM tab2
----
184
320
464

query I rowsort
SELECT - 15 - + 86 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 5d0ef0a1d81af4018c86ba51e4b5f20f

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1770
SELECT DISTINCT + 67 DIV CAST( col2 AS SIGNED ) FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-1770
SELECT DISTINCT + 67 / CAST ( col2 AS INTEGER ) FROM tab1
----
0
1

query I rowsort
SELECT ALL col2 FROM tab1 WHERE - col2 * 19 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT ALL COUNT( ALL - ( col1 ) ) * 5 + + COUNT( * ) FROM tab0 WHERE NOT + col0 IS NULL
----
18

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL COUNT ( ALL - ( col1 ) ) * 5 + + COUNT ( * ) FROM tab0 WHERE NOT + col0 IS NULL
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT - + MAX( col2 ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-1773
SELECT - + MAX ( col2 ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-288

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1779
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 40 + - col2 * 71 NOT BETWEEN ( col0 * - col2 + 40 * + col2 ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1779
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 40 + - col2 * 71 NOT BETWEEN ( col0 * - col2 + 40 * + col2 ) AND CAST ( NULL AS INTEGER )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1780
SELECT - + MAX ( col1 ) col0 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT ( 97 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

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

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

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

query I rowsort
SELECT + 40 FROM tab1 WHERE NOT ( + col1 ) > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1785
SELECT DISTINCT - COUNT( + + CAST( + col2 AS SIGNED ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1785
SELECT DISTINCT - COUNT ( + + CAST ( + col2 AS INTEGER ) ) FROM tab0
----
-3

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + 19 * + col1 BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT DISTINCT + COUNT( - col2 ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1788
SELECT DISTINCT + COUNT ( - col2 ) FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT ( + 92 ) * - col2 FROM tab2
----
-2116
-3680
-5336

query I rowsort
SELECT col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 ) BETWEEN + col2 AND 95 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 * - col1 AS col0 FROM tab1 WHERE NULL IS NULL
----
196
2209
25

query I rowsort
SELECT ALL - col0 * + 57 AS col1 FROM tab1 AS cor0
----
-2907
-4845
-5187

query I rowsort
SELECT ALL + 49 + col1 AS col0 FROM tab2 AS cor0
----
100
116
126

query I rowsort
SELECT - col0 * col0 - + col2 FROM tab0 AS cor0
----
-272
-7579
-9508

query I rowsort
SELECT DISTINCT ( + 72 ) + col1 * col2 AS col1 FROM tab1 AS cor0
----
1416
3268
367

query I rowsort
SELECT + + col0 * - + col2 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT - 41 + + col1 * col1 AS col2 FROM tab1 AS cor0
----
-16
155
2168

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT DISTINCT COUNT( * ) + 33 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----
33

skipif mysql # not compatible
query I rowsort label-1799
SELECT DISTINCT COUNT ( * ) + 33 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1800
SELECT + col1 DIV + col0 + + 89 - - col0 col2 FROM tab0 cor0
----
109
176
186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1800
SELECT + col1 / + col0 + + 89 - - col0 col2 FROM tab0 cor0
----
109
176
186

query I rowsort
SELECT DISTINCT col0 + - 41 AS col2 FROM tab1 cor0
----
10
44
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1802
SELECT - 78 + + - 73 + 17 DIV COUNT( * ) AS col1 FROM tab1 AS cor0
----
-146

skipif mysql # not compatible
query I rowsort label-1802
SELECT - 78 + + - 73 + 17 / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT - SUM( ALL col1 ) + 92 AS col2 FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-1803
SELECT - SUM ( ALL col1 ) + 92 AS col2 FROM tab0 AS cor0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1804
SELECT DISTINCT + col2 DIV + - col0 + - 17 FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-1804
SELECT DISTINCT + col2 / + - col0 + - 17 FROM tab2 AS cor0
----
-17

query I rowsort
SELECT - + col2 * col1 + + col2 * - 18 + 87 FROM tab1 AS cor0
----
-1270
-2985
-4333

query I rowsort
SELECT + + col2 + + - col1 AS col2 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE - col1 > 89
----

query I rowsort
SELECT - 27 * - col0 FROM tab1 AS cor0 WHERE col0 < ( 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT COUNT( * ) + - + 60 + - - COUNT( * ) col2 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1809
SELECT COUNT ( * ) + - + 60 + - - COUNT ( * ) col2 FROM tab1 AS cor0
----
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - + col2 col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE col2 / 20 + + col0 IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1812
SELECT ALL col1 + + ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL col1 + + ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT ALL 15 * 27 * - - COUNT( * ) col0 FROM tab0
----
1215

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1813
SELECT ALL 15 * 27 * - - COUNT ( * ) col0 FROM tab0
----
1215

query I rowsort
SELECT 24 + 63 FROM tab1
----
87
87
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1815
SELECT ALL + col2 DIV + col0 - + - col1 * - + 53 FROM tab2
----
-2703
-3551
-4081

skipif mysql # not compatible
query I rowsort label-1815
SELECT ALL + col2 / + col0 - + - col1 * - + 53 FROM tab2
----
-2703
-3551
-4081

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT - - COUNT( * ) AS col0 FROM tab1 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1816
SELECT - - COUNT ( * ) AS col0 FROM tab1 WHERE col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1817
SELECT ALL ( COUNT( * ) ) DIV + COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1817
SELECT ALL ( COUNT ( * ) ) / + COUNT ( * ) FROM tab1
----
1

query I rowsort
SELECT ALL + 4 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT - col2 - + 19 AS col0 FROM tab2 AS cor0
----
-42
-59
-77

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col0 * + - 97 - - + col1 AS col2 FROM tab0 AS cor0
----
1536
8460
9410

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 59 * + + 9 + + 49 = + col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT DISTINCT SUM( - 31 ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-1825
SELECT DISTINCT SUM ( - 31 ) FROM tab0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT DISTINCT - COUNT( * ) * - 31 AS col0 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT - COUNT ( * ) * - 31 AS col0 FROM tab1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT DISTINCT MAX( DISTINCT + ( ( + 59 ) ) ) FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-1827
SELECT DISTINCT MAX ( DISTINCT + ( ( + 59 ) ) ) FROM tab0 AS cor0
----
59

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( + col2 ) NOT BETWEEN col0 AND ( NULL )
----

query II rowsort
SELECT - col1 * ( + - col0 ), 38 AS col2 FROM tab2 AS cor0
----
2346
38
4928
38
5025
38

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col0 + + 61 - 4 * 19 ) BETWEEN + col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT - + COUNT( 77 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1832
SELECT - + COUNT ( 77 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1833
SELECT ALL + CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT 6 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT 6 IS NOT NULL
----

query II rowsort
SELECT ALL 1 AS col0, col0 AS col0 FROM tab0
----
1
15
1
87
1
97

query II rowsort
SELECT DISTINCT col2, - col2 * - 69 FROM tab2
----
23
1587
40
2760
58
4002

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1836
SELECT - CAST( NULL AS SIGNED ) col1, + col1 / + 10 FROM tab0 WHERE NOT ( - + col0 ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1836
SELECT - CAST ( NULL AS INTEGER ) col1, + col1 / + 10 FROM tab0 WHERE NOT ( - + col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 7 FROM tab1 WHERE - + 78 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col0, col1 + - - col0 * - 55 + - - 38 col2 FROM tab1
----
14
-2753
47
-4920
5
-4632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1839
SELECT - MAX( + + col2 ) * 74 + - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT - + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1839
SELECT - MAX ( + + col2 ) * 74 + - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - + col0 IS NULL
----
NULL

query II rowsort
SELECT + col0 AS col0, - col0 AS col1 FROM tab1
----
51
-51
85
-85
91
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-1841
SELECT DISTINCT - 22 AS col2, 83 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-22
249

skipif mysql # not compatible
query II rowsort label-1841
SELECT DISTINCT - 22 AS col2, 83 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-22
249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1842
SELECT + - CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1842
SELECT + - CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1843
SELECT + col1 AS col2 FROM tab2 WHERE - + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1843
SELECT + col1 AS col2 FROM tab2 WHERE - + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1844
SELECT - CAST( NULL AS SIGNED ) * + MIN( + col1 ) + - + CAST( NULL AS SIGNED ) + COUNT( * ) / 94 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1844
SELECT - CAST ( NULL AS INTEGER ) * + MIN ( + col1 ) + - + CAST ( NULL AS INTEGER ) + COUNT ( * ) / 94 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 84 / col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1846
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 10 * - col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1846
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 10 * - col1 FROM tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 44 = - - col1
----

query I rowsort
SELECT ALL + - 32 + + 66 + + + ( + col1 ) FROM tab0 cor0
----
115
35
55

query I rowsort
SELECT DISTINCT + 9 - col1 + - 65 AS col2 FROM tab2 AS cor0
----
-107
-123
-133

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 ) NOT BETWEEN ( 54 ) * + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 53 * + + 86 * 18 + - 1 FROM tab0 AS cor0
----
-82045

query I rowsort
SELECT 44 - + col1 + - col0 * - col1 + - col1 FROM tab1 AS cor0
----
4227
459
730

query III rowsort
SELECT * FROM tab2 WHERE + ( + ( - col1 ) ) - - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( col2 ) - + 35 AS col2 FROM tab1
----
-103
-131
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT COUNT( * ) - + 37 col1 FROM tab2
----
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1855
SELECT COUNT ( * ) - + 37 col1 FROM tab2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT DISTINCT COUNT( * ) - + + COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1856
SELECT DISTINCT COUNT ( * ) - + + COUNT ( * ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT - COUNT( * ) * 91 + ( 8 ) AS col2 FROM tab1
----
-265

skipif mysql # not compatible
query I rowsort label-1857
SELECT - COUNT ( * ) * 91 + ( 8 ) AS col2 FROM tab1
----
-265

query I rowsort
SELECT ALL - ( - - ( + col1 ) ) AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1859
SELECT - 58 + + col2 - + CAST( NULL AS SIGNED ) * + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1859
SELECT - 58 + + col2 - + CAST ( NULL AS INTEGER ) * + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - 33 ) AS col1 FROM tab0
----
-33
-33
-33

query I rowsort
SELECT ALL + 8 * - col2 FROM tab2 AS cor0
----
-184
-320
-464

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( 27 ) NOT BETWEEN col1 AND col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 24 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * ( col0 ) * - col0 * + 36 FROM tab1 AS cor0
----
-15345900
-20271888
-8989056

onlyif mysql # DIV for integer division: 
query II rowsort label-1865
SELECT ALL + col2 AS col2, - 37 + 85 + 20 DIV - 71 FROM tab0 AS cor0
----
10
48
47
48
99
48

skipif mysql # not compatible
query II rowsort label-1865
SELECT ALL + col2 AS col2, - 37 + 85 + 20 / - 71 FROM tab0 AS cor0
----
10
48
47
48
99
48

query I rowsort
SELECT ALL - col0 * + - col1 AS col1 FROM tab0 AS cor0
----
1215
1827
97

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 21 * + + 24 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT DISTINCT MAX( DISTINCT - 83 ) FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-1868
SELECT DISTINCT MAX ( DISTINCT - 83 ) FROM tab0
----
-83

query I rowsort
SELECT + 12 * 96 FROM tab2
----
1152
1152
1152

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 26 < + 71 * - 10 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1871
SELECT col2 * 86 * 53 + col1 * - 27 AS col2 FROM tab0 AS cor0 WHERE NOT CAST( - col2 AS SIGNED ) BETWEEN - + col2 + + + ( - col1 ) AND ( col2 )
----

skipif mysql # not compatible
query I rowsort label-1871
SELECT col2 * 86 * 53 + col1 * - 27 AS col2 FROM tab0 AS cor0 WHERE NOT CAST ( - col2 AS INTEGER ) BETWEEN - + col2 + + + ( - col1 ) AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT - - MIN( 43 ) FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-1872
SELECT - - MIN ( 43 ) FROM tab1 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT DISTINCT + MIN( DISTINCT + col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1873
SELECT DISTINCT + MIN ( DISTINCT + col1 ) AS col1 FROM tab0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1874
SELECT + MIN( ALL col0 ) + CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1874
SELECT + MIN ( ALL col0 ) + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT ALL ( - 51 ) + + MIN( DISTINCT + col1 ) FROM tab0
----
-50

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL ( - 51 ) + + MIN ( DISTINCT + col1 ) FROM tab0
----
-50

query I rowsort
SELECT DISTINCT + - col0 - + - 0 FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75

query I rowsort
SELECT + col0 * - 13 + col2 AS col0 FROM tab0 cor0
----
-1121
-1162
-148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1878
SELECT - CAST( NULL AS SIGNED ) * + - col2 / col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1878
SELECT - CAST ( NULL AS INTEGER ) * + - col2 / col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1879
SELECT - CAST( COUNT( * ) AS SIGNED ) + - 90 FROM tab2 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-1879
SELECT - CAST ( COUNT ( * ) AS INTEGER ) + - 90 FROM tab2 cor0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1880
SELECT ALL ( + + CAST( + col1 AS SIGNED ) ) FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL ( + + CAST ( + col1 AS INTEGER ) ) FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT ALL + - col1 + + col0 + + 78 AS col1 FROM tab2 AS cor0
----
65
73
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT DISTINCT COUNT( * ) + - 7 AS col0 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT COUNT ( * ) + - 7 AS col0 FROM tab1 AS cor0
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + ( + col1 ) * col1 col2 FROM tab2
----
-2624
-4547
-5969

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col0 + + col2 IS NULL
----

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT ( - col0 ) = NULL
----

query I rowsort
SELECT - ( - 64 ) * + col1 FROM tab2
----
3264
4288
4928

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> - 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT + MAX( ALL + - 23 ) FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1888
SELECT + MAX ( ALL + - 23 ) FROM tab1 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT DISTINCT + COUNT( DISTINCT - + 47 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1889
SELECT DISTINCT + COUNT ( DISTINCT - + 47 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT ALL - ( - + col0 ) AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL + 30 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1892
SELECT DISTINCT col1 * + col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT col1 * + col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + + 5
----

query II rowsort
SELECT - col0 AS col0, col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT DISTINCT + COUNT( * ) * - SUM( ALL - ( col0 ) ) FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT + COUNT ( * ) * - SUM ( ALL - ( col0 ) ) FROM tab1 AS cor0
----
681

query I rowsort
SELECT - 48 * - 99 AS col2 FROM tab1 AS cor0
----
4752
4752
4752

onlyif mysql # DIV for integer division: 
query I rowsort label-1897
SELECT DISTINCT + - col0 DIV - col2 AS col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT + - col0 / - col2 AS col2 FROM tab1 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT COUNT( ALL + + 58 ) * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1898
SELECT COUNT ( ALL + + 58 ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1899
SELECT ALL + MAX( DISTINCT col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN CAST( col0 AS SIGNED ) AND + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL + MAX ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN CAST ( col0 AS INTEGER ) AND + 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT DISTINCT + 88 + + COUNT( * ) * - 59 FROM tab0 cor0 WHERE NOT col0 IS NULL
----
-89

skipif mysql # not compatible
query I rowsort label-1900
SELECT DISTINCT + 88 + + COUNT ( * ) * - 59 FROM tab0 cor0 WHERE NOT col0 IS NULL
----
-89

query I rowsort
SELECT ALL - + col0 * - col2 + - - col2 AS col1 FROM tab0 cor0
----
752
880
9702

query I rowsort
SELECT ALL + col0 + - 81 AS col0 FROM tab2 WHERE NOT + col1 NOT BETWEEN + - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1903
SELECT + col2 DIV CAST( - + col1 AS SIGNED ) col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1903
SELECT + col2 / CAST ( - + col1 AS INTEGER ) col2 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 >= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1905
SELECT + 80 DIV + - COUNT( * ) AS col1 FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-1905
SELECT + 80 / + - COUNT ( * ) AS col1 FROM tab2
----
-26

query II rowsort
SELECT DISTINCT - col1 + + + col2, 40 AS col0 FROM tab0
----
-11
40
-34
40
98
40

query I rowsort
SELECT - 64 + + + col1 AS col0 FROM tab2 AS cor0
----
-13
13
3

query I rowsort
SELECT - 73 * - col0 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
1095
6351
7081

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT DISTINCT + - MAX( + - 14 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
14

skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT + - MAX ( + - 14 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1910
SELECT ALL COUNT( * ) DIV - + COUNT( * ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1910
SELECT ALL COUNT ( * ) / - + COUNT ( * ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT ALL - COUNT( + + 2 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL - COUNT ( + + 2 ) AS col0 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( - 94 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - 0 * + - ( + col0 ) + - 65 - 30 col0 FROM tab2 AS cor0
----
-20
-31
-49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 <> - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( col2 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

query II rowsort
SELECT col2, + col2 AS col0 FROM tab0
----
10
10
47
47
99
99

query II rowsort
SELECT 34 AS col2, col0 FROM tab0
----
34
15
34
87
34
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT DISTINCT + COUNT( DISTINCT + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1918
SELECT DISTINCT + COUNT ( DISTINCT + col2 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT + MAX( DISTINCT + - col1 ) col0 FROM tab1
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1919
SELECT + MAX ( DISTINCT + - col1 ) col0 FROM tab1
----
-5

query I rowsort
SELECT DISTINCT - - ( - col2 ) FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col1 AND 46 + + col1 * - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + + col0
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 60 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT DISTINCT - MAX( col1 ) * - + COUNT( * ) FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-1923
SELECT DISTINCT - MAX ( col1 ) * - + COUNT ( * ) FROM tab1 AS cor0
----
141

query I rowsort
SELECT ALL - col0 + - 68 AS col1 FROM tab2 AS cor0
----
-114
-132
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT ALL ( + - SUM( ALL + - col0 ) ) + + 93 FROM tab2 AS cor0
----
278

skipif mysql # not compatible
query I rowsort label-1925
SELECT ALL ( + - SUM ( ALL + - col0 ) ) + + 93 FROM tab2 AS cor0
----
278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1926
SELECT - CAST( + 57 AS SIGNED ) FROM tab1 AS cor0
----
-57
-57
-57

skipif mysql # not compatible
query I rowsort label-1926
SELECT - CAST ( + 57 AS INTEGER ) FROM tab1 AS cor0
----
-57
-57
-57

query I rowsort
SELECT + + col0 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT + col2 + - - col2 AS col0 FROM tab2
----
116
46
80

query I rowsort
SELECT ( col2 ) + - + col1 * - col2 FROM tab0
----
198
220
3854

query I rowsort
SELECT ALL - col0 * + - col2 AS col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT 77 + col2 FROM tab1
----
136
145
173

query I rowsort
SELECT - 71 + + 83 * - + col0 FROM tab0
----
-1316
-7292
-8122

onlyif mysql # DIV for integer division: 
query I rowsort label-1933
SELECT DISTINCT - 31 DIV col0 AS col1 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT - 31 / col0 AS col1 FROM tab0
----
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - ( + 44 ) * - - col1 col1 FROM tab2 AS cor0
----
-103224
-216832
-221100

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT - 52 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-1935
SELECT - 52 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
156

query I rowsort
SELECT - 12 + + col1 AS col2 FROM tab2 AS cor0
----
39
55
65

query I rowsort
SELECT - + 92 * - 76 FROM tab1 AS cor0
----
6992
6992
6992

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + col0 * + col1 * + col2 col1, 7 FROM tab0 cor0
----
1589490
7
856575
7
931491
7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 53 <= col2
----

query I rowsort
SELECT - 68 * - 44 * - col2 FROM tab0 AS cor0
----
-140624
-296208
-29920

query I rowsort
SELECT + + 68 * + col0 * + - 34 FROM tab0 AS cor0
----
-201144
-224264
-34680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 col0 FROM tab2
----
50
50
50

onlyif mysql # aggregate syntax: 
query II rowsort label-1944
SELECT ALL + 73 col0, MIN( - 77 ) FROM tab1
----
73
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1944
SELECT ALL + 73 col0, MIN ( - 77 ) FROM tab1
----
73
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 16 col1 FROM tab0
----
-16
-16
-16

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 80 > - 3 + - + 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT DISTINCT - MAX( DISTINCT col0 ) * 46 AS col1 FROM tab2
----
-3450

skipif mysql # not compatible
query I rowsort label-1947
SELECT DISTINCT - MAX ( DISTINCT col0 ) * 46 AS col1 FROM tab2
----
-3450

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT ALL - COUNT( DISTINCT - 27 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL - COUNT ( DISTINCT - 27 ) FROM tab0
----
-1

query I rowsort
SELECT DISTINCT 16 * ( - 86 ) AS col2 FROM tab2
----
-1376

query II rowsort
SELECT - col1, 5 AS col1 FROM tab2 cor0
----
-51
5
-67
5
-77
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT - + COUNT( * ) * - - 48 AS col2 FROM tab0 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-1951
SELECT - + COUNT ( * ) * - - 48 AS col2 FROM tab0 AS cor0
----
-144

query I rowsort
SELECT - - col1 AS col0 FROM tab2 WHERE NOT + 33 IS NOT NULL
----

query I rowsort
SELECT - 58 * - col1 * col1 + + col0 FROM tab1
----
11419
128213
1535

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 col2 FROM tab2, tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT + + 87 + + COUNT( * ) FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-1955
SELECT + + 87 + + COUNT ( * ) FROM tab1 AS cor0
----
90

query I rowsort
SELECT - 79 + col2 + col1 + + + col0 AS col2 FROM tab0 AS cor0
----
118
39
64

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 + - 58 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1958
SELECT + - CAST( - - 1 AS SIGNED ) FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1958
SELECT + - CAST ( - - 1 AS INTEGER ) FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - - col0 * + + col2 + - - col2 AS col2 FROM tab0 AS cor0
----
752
880
9702

query I rowsort
SELECT DISTINCT 15 * + 51 * - col1 + - col0 + + col1 * 52 AS col1 FROM tab2 AS cor0
----
-36409
-47846
-54965

query I rowsort
SELECT DISTINCT col0 * - - ( - ( 19 ) ) + + col1 * + - col2 + + + col1 * - - col1 AS col0 FROM tab2 cor0
----
-822
1633
554

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT DISTINCT - ( + - 91 ) * + COUNT( * ) FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-1962
SELECT DISTINCT - ( + - 91 ) * + COUNT ( * ) FROM tab1 AS cor0
----
273

query I rowsort
SELECT ALL + col1 * + + col0 + + 80 + + 32 FROM tab2 AS cor0
----
2458
5040
5137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1964
SELECT DISTINCT 14 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) / + col0 * + 48 <= NULL
----

skipif mysql # not compatible
query I rowsort label-1964
SELECT DISTINCT 14 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) / + col0 * + 48 <= NULL
----

query II rowsort
SELECT DISTINCT + 97 * col2, col1 AS col0 FROM tab1
----
5723
5
6596
47
9312
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT - - COUNT( * ) col0 FROM tab2 WHERE - col2 / - col0 IN ( col0 * + 2 + 87 / - col0, 61, + 52, + col2, + + 34 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1966
SELECT - - COUNT ( * ) col0 FROM tab2 WHERE - col2 / - col0 IN ( col0 * + 2 + 87 / - col0, 61, + 52, + col2, + + 34 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE - 10 >= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE + - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1968
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE + - col1 IS NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1969
SELECT DISTINCT * FROM tab2 WHERE NOT - - col1 + - 56 + + + col2 * + + 66 IN ( + col0 * 41 * col0 + + CAST( col2 AS DECIMAL ) + + col1 - col1 + - - 14 * + - 20 * - col0, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1969
SELECT DISTINCT * FROM tab2 WHERE NOT - - col1 + - 56 + + + col2 * + + 66 IN ( + col0 * 41 * col0 + + CAST ( col2 AS REAL ) + + col1 - col1 + - - 14 * + - 20 * - col0, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + 29 ) * - col0 AS col2 FROM tab2
----
-1334
-1856
-2175

query I rowsort
SELECT DISTINCT - 70 * 7 AS col1 FROM tab2
----
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT ALL 14 * + ( + COUNT( * ) ) + + COUNT( * ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL 14 * + ( + COUNT ( * ) ) + + COUNT ( * ) FROM tab1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-1973
SELECT 46 DIV col2 * + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1973
SELECT 46 / col2 * + col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1974
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + - col2 * + ( + - col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + - col2 * + ( + - col2 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT + MIN( - 95 ) - + - 69 + - COUNT( col1 ) AS col2 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-1975
SELECT + MIN ( - 95 ) - + - 69 + - COUNT ( col1 ) AS col2 FROM tab0
----
-29

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 / - 55 * + col0 + col2 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT ALL + COUNT( * ) + COUNT( * ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL + COUNT ( * ) + COUNT ( * ) FROM tab0 cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 91 + + - col2, - col1 col2 FROM tab2 AS cor0
----
33
-67
51
-77
68
-51

query II rowsort
SELECT 80 AS col1, + 5 FROM tab1
----
80
5
80
5
80
5

query I rowsort
SELECT DISTINCT 87 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
87

query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL + ( - - 52 ) + - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-47
42
5

query II rowsort
SELECT ALL col2 AS col0, col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * - - col1 * - 13 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT DISTINCT - COUNT( * ) * - + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT - COUNT ( * ) * - + COUNT ( * ) FROM tab2 AS cor0
----
9

query II rowsort
SELECT ALL col1 * col1 + + - 4 AS col1, + col1 * + 52 AS col1 FROM tab1 cor0
----
192
728
21
260
2205
2444

onlyif mysql # DIV for integer division: 
query I rowsort label-1987
SELECT ALL - col1 DIV - - col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL - col1 / - - col0 FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT DISTINCT - COUNT( + - col1 ) * - + 89 AS col2 FROM tab1 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-1988
SELECT DISTINCT - COUNT ( + - col1 ) * - + 89 AS col2 FROM tab1 AS cor0
----
267

query II rowsort
SELECT - ( 89 ) AS col1, + col0 AS col1 FROM tab1
----
-89
51
-89
85
-89
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1990
SELECT + col2 DIV - + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1990
SELECT + col2 / - + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + 6 * 95 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-570

query I rowsort
SELECT ALL - ( 37 ) AS col0 FROM tab1
----
-37
-37
-37

query I rowsort
SELECT ALL + ( - 14 ) + - 16 AS col2 FROM tab2 AS cor0
----
-30
-30
-30

query I rowsort
SELECT ALL + + col1 + 41 AS col2 FROM tab2 AS cor0
----
108
118
92

query I rowsort
SELECT DISTINCT - 91 + + col0 * - - 51 * col1 + ( col0 ) FROM tab1 AS cor0
----
21669
218127
36374

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT COUNT( * ) + 41 AS col2 FROM tab1 cor0
----
44

skipif mysql # not compatible
query I rowsort label-1996
SELECT COUNT ( * ) + 41 AS col2 FROM tab1 cor0
----
44

query I rowsort
SELECT ALL - - col1 + + - 42 FROM tab0 AS cor0
----
-21
-41
39

query I rowsort
SELECT 57 + - - col1 FROM tab1 AS cor0
----
104
62
71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1999
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( - col0 * + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1999
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( - col0 * + - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 WHERE + ( - - 12 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 62 >= NULL
----

query I rowsort
SELECT ALL - col2 * - 35 + 40 * - + col2 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * 23 / ( - 66 ) - 12 + - 43 AS col1 FROM tab1 WHERE NOT col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2004
SELECT COUNT( * ) AS col2, 80 FROM tab0
----
3
80

skipif mysql # not compatible
query II rowsort label-2004
SELECT COUNT ( * ) AS col2, 80 FROM tab0
----
3
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2005
SELECT ALL - - COUNT( * ) + + CAST( - MAX( - 29 ) AS SIGNED ) col1 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2005
SELECT ALL - - COUNT ( * ) + + CAST ( - MAX ( - 29 ) AS INTEGER ) col1 FROM tab1 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-2006
SELECT ALL COUNT( * ) AS col0, 74 FROM tab1 AS cor0
----
3
74

skipif mysql # not compatible
query II rowsort label-2006
SELECT ALL COUNT ( * ) AS col0, 74 FROM tab1 AS cor0
----
3
74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 57 - - 59 >= ( - 49 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + - 97, - 70 AS col2 FROM tab0 cor0
----
-97
-70
-97
-70
-97
-70

query II rowsort
SELECT col0 AS col1, 64 FROM tab2 AS cor0
----
46
64
64
64
75
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 - - 55 col0 FROM tab1 AS cor0
----
-27
-27
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2011
SELECT ALL - col0 * CAST( NULL AS SIGNED ) - + col2 - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) - + col2 - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 BETWEEN - col0 AND NULL AND NOT col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT DISTINCT - COUNT( * ) * - 89 FROM tab1 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-2013
SELECT DISTINCT - COUNT ( * ) * - 89 FROM tab1 AS cor0
----
267

query I rowsort
SELECT - 52 * + col2 + - 83 - + + ( + col0 ) FROM tab2 AS cor0
----
-1325
-2227
-3174

query I rowsort
SELECT ALL - col1 * + - col1 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT + col1 * - col1 AS col1 FROM tab2 cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2017
SELECT DISTINCT - COUNT( * ) DIV - MIN( - 47 ) + - 14 * COUNT( * ) FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT - COUNT ( * ) / - MIN ( - 47 ) + - 14 * COUNT ( * ) FROM tab0 AS cor0
----
-42

query I rowsort
SELECT 1 * - 0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2019
SELECT + - 29 DIV col2 * - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2019
SELECT + - 29 / col2 * - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2020
SELECT ALL 40 DIV - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2020
SELECT ALL 40 / - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2021
SELECT ALL - - col0 DIV + 7 FROM tab1 AS cor0
----
12
13
7

skipif mysql # not compatible
query I rowsort label-2021
SELECT ALL - - col0 / + 7 FROM tab1 AS cor0
----
12
13
7

query I rowsort
SELECT col0 * + ( + col1 ) FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT ALL MAX( - 86 ) AS col0 FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL MAX ( - 86 ) AS col0 FROM tab0
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-2024
SELECT DISTINCT COUNT( * ) AS col2, COUNT( * ) * - 77 + - - ( - 94 ) FROM tab0
----
3
-325

skipif mysql # not compatible
query II rowsort label-2024
SELECT DISTINCT COUNT ( * ) AS col2, COUNT ( * ) * - 77 + - - ( - 94 ) FROM tab0
----
3
-325

query II rowsort
SELECT + col0 AS col2, 80 * + col1 FROM tab2
----
46
4080
64
6160
75
5360

query I rowsort
SELECT DISTINCT 69 * + - 53 AS col0 FROM tab0
----
-3657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2027
SELECT DISTINCT 16 * - + 54 + - - col1 + ( col2 ) + - col1 * - + CAST( NULL AS SIGNED ) * col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2027
SELECT DISTINCT 16 * - + 54 + - - col1 + ( col2 ) + - col1 * - + CAST ( NULL AS INTEGER ) * col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2028
SELECT + col1 DIV col1 FROM tab0 AS cor0 WHERE NOT 1 = + + 12
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2028
SELECT + col1 / col1 FROM tab0 AS cor0 WHERE NOT 1 = + + 12
----
1
1
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2030
SELECT DISTINCT + - col1 FROM tab0 cor0 WHERE NOT NULL BETWEEN - col1 + + + CAST( NULL AS SIGNED ) + - col2 + + col1 * 59 AND + 63
----

skipif mysql # not compatible
query I rowsort label-2030
SELECT DISTINCT + - col1 FROM tab0 cor0 WHERE NOT NULL BETWEEN - col1 + + + CAST ( NULL AS INTEGER ) + - col2 + + col1 * 59 AND + 63
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2031
SELECT DISTINCT * FROM tab2 WHERE NOT + + 75 * - - CAST( col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2031
SELECT DISTINCT * FROM tab2 WHERE NOT + + 75 * - - CAST ( col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2032
SELECT - col0 DIV + 10 + - + col1 col0 FROM tab1
----
-13
-19
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2032
SELECT - col0 / + 10 + - + col1 col0 FROM tab1
----
-13
-19
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-2033
SELECT 8 + + COUNT( * ) - + 92 + - COUNT( * ) col1, COUNT( * ) FROM tab2
----
-84
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2033
SELECT 8 + + COUNT ( * ) - + 92 + - COUNT ( * ) col1, COUNT ( * ) FROM tab2
----
-84
3

query I rowsort
SELECT + - col2 * col0 + - col1 FROM tab0 AS cor0
----
-786
-891
-9604

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col0 * + + ( - col0 ) * - 52 * + col0 col1 FROM tab0 AS cor0 WHERE 12 NOT IN ( + - 3 )
----
175515
34242243
47459093

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL > + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2037
SELECT ALL - 74 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL - 74 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + - 18 + - col2 * + col2 * - 82 AS col1 FROM tab1 AS cor0
----
285339
379059
755643

query I rowsort
SELECT col0 * col2 * 33 + + col0 * 20 AS col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
145050
35834
85760

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT - COUNT( * ) FROM tab1 WHERE + + col0 + col1 * 24 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2040
SELECT - COUNT ( * ) FROM tab1 WHERE + + col0 + col1 * 24 IS NOT NULL
----
-3

query I rowsort
SELECT 5 - + + col1 + + - col0 + - col1 FROM tab0
----
-124
-172
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 75 - 37 * col2 col1 FROM tab2
----
-1555
-2221
-926

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT DISTINCT MIN( - + 95 ) - + ( 63 ) AS col0 FROM tab1
----
-158

skipif mysql # not compatible
query I rowsort label-2043
SELECT DISTINCT MIN ( - + 95 ) - + ( 63 ) AS col0 FROM tab1
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT + - ( COUNT( * ) ) + COUNT( * ) * - + 89 FROM tab1 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-2044
SELECT + - ( COUNT ( * ) ) + COUNT ( * ) * - + 89 FROM tab1 AS cor0
----
-270

query I rowsort
SELECT ALL + col2 + - 60 + + 90 + - - col0 * - + col2 FROM tab1 AS cor0
----
-4770
-4926
-6090

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2046
SELECT ALL + - ( - 34 ) - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL + - ( - 34 ) - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query II rowsort label-2047
SELECT + col1 AS col0, + col2 DIV - col2 FROM tab0
----
1
-1
21
-1
81
-1

skipif mysql # not compatible
query II rowsort label-2047
SELECT + col1 AS col0, + col2 / - col2 FROM tab0
----
1
-1
21
-1
81
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2048
SELECT + 73 + - COUNT( * ) AS col1, - MIN( + ( CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
64
NULL

skipif mysql # not compatible
query II rowsort label-2048
SELECT + 73 + - COUNT ( * ) AS col1, - MIN ( + ( CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
64
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2049
SELECT - 95 - - CAST( - col1 AS SIGNED ) AS col2 FROM tab0 WHERE NOT 64 = col0
----
-116
-176
-96

skipif mysql # not compatible
query I rowsort label-2049
SELECT - 95 - - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 WHERE NOT 64 = col0
----
-116
-176
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT DISTINCT + COUNT( * ) * ( + COUNT( * ) ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT + COUNT ( * ) * ( + COUNT ( * ) ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT - col1 * + + 64 + + - col0 AS col1 FROM tab1 AS cor0
----
-3099
-405
-947

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2053
SELECT ALL CAST( - 37 AS SIGNED ) FROM tab1
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-2053
SELECT ALL CAST ( - 37 AS INTEGER ) FROM tab1
----
-37
-37
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2054
SELECT COUNT( * ) * + - COUNT( * ) DIV COUNT( * ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2054
SELECT COUNT ( * ) * + - COUNT ( * ) / COUNT ( * ) AS col2 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 10 = col2 * - - 58
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 <= col0
----
46
51
23
64
77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2057
SELECT + col0 + 90 DIV + + col2 FROM tab0
----
16
96
97

skipif mysql # not compatible
query I rowsort label-2057
SELECT + col0 + 90 / + + col2 FROM tab0
----
16
96
97

query II rowsort
SELECT ALL - + col2 + 23 AS col0, 85 * + col1 AS col1 FROM tab1 AS cor0
----
-36
425
-45
3995
-73
1190

query I rowsort
SELECT col0 * col1 * + - col0 * + col0 AS col1 FROM tab2 AS cor0
----
-20185088
-28265625
-4964136

query II rowsort
SELECT DISTINCT + - ( + col0 ) AS col0, 87 FROM tab1 AS cor0
----
-51
87
-85
87
-91
87

query I rowsort
SELECT - col2 * - - col1 + - - 10 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 49 + - + col1 FROM tab1
----
-54
-63
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT - col0 * + col1 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2064
SELECT ALL col0 + + + col2 DIV + 24 AS col1 FROM tab0
----
101
16
87

skipif mysql # not compatible
query I rowsort label-2064
SELECT ALL col0 + + + col2 / + 24 AS col1 FROM tab0
----
101
16
87

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE col2 * + 82 BETWEEN NULL AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - + col2 col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT + 94 + + col1 * + col0 + 70 FROM tab1 AS cor0
----
4441
589
878

query I rowsort
SELECT - 3 + - ( - ( ( col2 ) ) ) FROM tab2 AS cor0
----
20
37
55

query I rowsort
SELECT + - col1 + - - 59 FROM tab2 AS cor0
----
-18
-8
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2070
SELECT ALL - + col0 DIV - + 17 col0 FROM tab2 WHERE NOT + - 71 IS NULL
----
2
3
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2070
SELECT ALL - + col0 / - + 17 col0 FROM tab2 WHERE NOT + - 71 IS NULL
----
2
3
4

query I rowsort
SELECT DISTINCT 37 - + - 9 FROM tab0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT - MIN( ALL 79 ) FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-2072
SELECT - MIN ( ALL 79 ) FROM tab0 AS cor0
----
-79

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < 78 - + - col1 - - ( col0 ) * + - col2
----

query I rowsort
SELECT + 4 * - 68 FROM tab0 AS cor0
----
-272
-272
-272

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT ALL + - MAX( + col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL + - MAX ( + col0 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT - col1 * col1 - col1 * - col2 FROM tab2 AS cor0 WHERE NOT col1 + - col2 * - 25 IS NULL
----
-1428
-2849
-603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2077
SELECT + SUM( ALL - 63 ) DIV 95 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2077
SELECT + SUM ( ALL - 63 ) / 95 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT COUNT( * ) FROM tab0 WHERE NOT - 92 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2078
SELECT COUNT ( * ) FROM tab0 WHERE NOT - 92 = NULL
----
0

query I rowsort
SELECT - ( - col0 ) * - - col0 AS col2 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT ALL col1 * + - col2 * - col0 * - + 74 FROM tab2
----
-14586880
-21567300
-3992892

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT ALL COUNT( * ) * + 45 * + 21 FROM tab1
----
2835

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL COUNT ( * ) * + 45 * + 21 FROM tab1
----
2835

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - ( + 62 ) col0 FROM tab1
----
-3162
-5270
-5642

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2083
SELECT - CAST( + CAST( - + COUNT( * ) AS SIGNED ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2083
SELECT - CAST ( + CAST ( - + COUNT ( * ) AS INTEGER ) AS INTEGER ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2084
SELECT ALL + col0 DIV - - col1 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL + col0 / - - col1 FROM tab0
----
0
4
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2085
SELECT DISTINCT + + col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT + + col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2086
SELECT DISTINCT col1 DIV + + col2 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-2086
SELECT DISTINCT col1 / + + col2 FROM tab2
----
1
2

query I rowsort
SELECT ALL 1 * + + ( col0 ) FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2088
SELECT DISTINCT ( + CAST( NULL AS DECIMAL ) ) + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2088
SELECT DISTINCT ( + CAST ( NULL AS REAL ) ) + COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT MIN( DISTINCT + 47 ) * - + COUNT( DISTINCT + 45 ) FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2089
SELECT MIN ( DISTINCT + 47 ) * - + COUNT ( DISTINCT + 45 ) FROM tab0 AS cor0
----
-47

query I rowsort
SELECT DISTINCT + ( col1 ) + + col1 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT ALL - - ( ( + COUNT( * ) ) ) + + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL - - ( ( + COUNT ( * ) ) ) + + COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL 99 AS col2 FROM tab1 WHERE NOT - - ( + 53 ) IS NULL
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT 76 * - COUNT( DISTINCT - col0 ) AS col1 FROM tab0
----
-228

skipif mysql # not compatible
query I rowsort label-2093
SELECT 76 * - COUNT ( DISTINCT - col0 ) AS col1 FROM tab0
----
-228

onlyif mysql # DIV for integer division: 
query I rowsort label-2094
SELECT DISTINCT - 30 DIV - - col2 FROM tab0
----
-3
0

skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT - 30 / - - col2 FROM tab0
----
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 25 col1 FROM tab2 WHERE NULL NOT BETWEEN - 32 AND ( NULL )
----

query II rowsort
SELECT DISTINCT + + col1, - col2 + 91 + - + col1 AS col2 FROM tab1 cor0
----
14
-19
47
-24
5
27

query I rowsort
SELECT DISTINCT - + ( - 54 ) AS col2 FROM tab0 AS cor0
----
54

query I rowsort
SELECT DISTINCT + col0 * - - 59 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 AND col0
----

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT 66 * + + MIN( - 68 ) col1 FROM tab0
----
-4488

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2101
SELECT 66 * + + MIN ( - 68 ) col1 FROM tab0
----
-4488

onlyif mysql # DIV for integer division: 
query I rowsort label-2102
SELECT - 66 DIV + - col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2102
SELECT - 66 / + - col0 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT DISTINCT - MAX( - ( col0 ) ) + + MAX( - 8 ) FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-2104
SELECT DISTINCT - MAX ( - ( col0 ) ) + + MAX ( - 8 ) FROM tab1 AS cor0
----
43

query I rowsort
SELECT + - col1 * - col2 * + - col2 * + col1 - col0 AS col2 FROM tab2 AS cor0
----
-1375975
-15101071
-9486464

query I rowsort
SELECT - + ( + col0 ) * + 51 FROM tab0 AS cor0
----
-4437
-4947
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT DISTINCT - MAX( - col1 ) + - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-2107
SELECT DISTINCT - MAX ( - col1 ) + - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2108
SELECT DISTINCT + 9 * + + col1 * + col0 * CAST( + - col0 AS SIGNED ) AS col1, col2 DIV 51 + - col2 FROM tab0
----
-1430541
-10
-164025
-47
-84681
-98

skipif mysql # not compatible
query II rowsort label-2108
SELECT DISTINCT + 9 * + + col1 * + col0 * CAST ( + - col0 AS INTEGER ) AS col1, col2 / 51 + - col2 FROM tab0
----
-1430541
-10
-164025
-47
-84681
-98

query I rowsort
SELECT 60 + col2 FROM tab1
----
119
128
156

query I rowsort
SELECT + col0 + + + col0 - + - col2 AS col2 FROM tab0
----
184
293
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT ALL + MAX( DISTINCT ( col1 ) ) * 78 FROM tab0
----
6318

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL + MAX ( DISTINCT ( col1 ) ) * 78 FROM tab0
----
6318

query I rowsort
SELECT - col1 + - col1 * - col1 AS col0 FROM tab1
----
182
20
2162

query I rowsort
SELECT ALL - ( + + 99 ) FROM tab2
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT ALL + - COUNT( * ) * - 73 AS col1 FROM tab2 WHERE NOT col2 IS NULL
----
219

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL + - COUNT ( * ) * - 73 AS col1 FROM tab2 WHERE NOT col2 IS NULL
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT ALL + COUNT( 29 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2115
SELECT ALL + COUNT ( 29 ) col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT - + COUNT( * ) * + 90 col0 FROM tab0 AS cor0
----
-270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2116
SELECT - + COUNT ( * ) * + 90 col0 FROM tab0 AS cor0
----
-270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2117
SELECT ALL col1 - col1 - - 62 + + - CAST( NULL AS SIGNED ) * + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2117
SELECT ALL col1 - col1 - - 62 + + - CAST ( NULL AS INTEGER ) * + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT DISTINCT + MIN( + + col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2118
SELECT DISTINCT + MIN ( + + col2 ) AS col1 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2119
SELECT - - COUNT( * ) + - 77 DIV + + 88 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2119
SELECT - - COUNT ( * ) + - 77 / + + 88 FROM tab0 cor0
----
3

query I rowsort
SELECT col0 + - col0 + + ( - col1 ) - - - col0 + + - col2 FROM tab0 AS cor0
----
-118
-143
-197

query I rowsort
SELECT - ( - col0 ) + + + ( + ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT + 97 FROM tab2 AS cor0 WHERE NULL > - col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2123
SELECT 93 + - CAST( 70 AS SIGNED ) DIV 2 * - + col2 + - col1 AS col0, - col2 * col0 DIV - col2 FROM tab0 AS cor0
----
1657
15
3557
97
422
87

skipif mysql # not compatible
query II rowsort label-2123
SELECT 93 + - CAST ( 70 AS INTEGER ) / 2 * - + col2 + - col1 AS col0, - col2 * col0 / - col2 FROM tab0 AS cor0
----
1657
15
3557
97
422
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2124
SELECT CAST( NULL AS SIGNED ) + + - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2124
SELECT CAST ( NULL AS INTEGER ) + + - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + - 12 + + - col1 * + ( 75 ) FROM tab2 AS cor0
----
-3791
-4962
-5723

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 54 > + + col0 * - - 75
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, ( + col0 ) AS col1 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2128
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) AS col2, - ( + MAX( ALL - col0 ) ) FROM tab1 AS cor0
----
-1
51

skipif mysql # not compatible
query II rowsort label-2128
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) AS col2, - ( + MAX ( ALL - col0 ) ) FROM tab1 AS cor0
----
-1
51

query I rowsort
SELECT - 75 * + + 89 FROM tab2, tab1 AS cor0
----
9 values hashing to 3eef45c405946423b60ea6758811693e

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT MIN( ALL - 14 ) AS col0 FROM tab2, tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-2130
SELECT MIN ( ALL - 14 ) AS col0 FROM tab2, tab2 AS cor0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2131
SELECT - CAST( + - col0 AS SIGNED ) AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2131
SELECT - CAST ( + - col0 AS INTEGER ) AS col0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT DISTINCT 29 * COUNT( * ) AS col0 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT 29 * COUNT ( * ) AS col0 FROM tab2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT ALL SUM( ALL + 39 ) AS col1 FROM tab1, tab1 cor0
----
351

skipif mysql # not compatible
query I rowsort label-2133
SELECT ALL SUM ( ALL + 39 ) AS col1 FROM tab1, tab1 cor0
----
351

query I rowsort
SELECT - 72 * - 47 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 77cbe25dfccb2e7185fe19624bc0b852

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT SUM( ALL - col2 ) * - ( - + COUNT( * ) ) col0 FROM tab0 AS cor0
----
-468

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2135
SELECT SUM ( ALL - col2 ) * - ( - + COUNT ( * ) ) col0 FROM tab0 AS cor0
----
-468

query II rowsort
SELECT + 69 + + col1 * 90, ( + col1 ) AS col2 FROM tab0
----
159
1
1959
21
7359
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * 81 + + col2 * + 88 col1, col2 AS col0 FROM tab0 AS cor0
----
10697
47
2581
10
8793
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 <> + 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT - MAX( + col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2139
SELECT - MAX ( + col2 ) AS col1 FROM tab0 AS cor0
----
-99

query II rowsort
SELECT - col0 AS col2, 99 AS col1 FROM tab1 AS cor0
----
-51
99
-85
99
-91
99

query I rowsort
SELECT ALL - col2 * + + 3 + - ( col1 ) + + col1 - - col0 * - col1 + - + 35 * - 12 * col1 + - + col0 * 44 FROM tab2 AS cor0
----
16981
19641
24476

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col0 * - 34
----

query I rowsort
SELECT ALL - 35 + 2 FROM tab2 cor0
----
-33
-33
-33

query I rowsort
SELECT DISTINCT - + col1 + - - col1 AS col0 FROM tab1 AS cor0
----
0

query II rowsort
SELECT col0 AS col1, - col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2146
SELECT ALL + col1 * - + CAST( + col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-2146
SELECT ALL + col1 * - + CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT DISTINCT 89 + - - COUNT( * ) FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-2147
SELECT DISTINCT 89 + - - COUNT ( * ) FROM tab0
----
92

query II rowsort
SELECT 16, ( - + col2 ) AS col2 FROM tab0 WHERE + + col2 IS NOT NULL
----
16
-10
16
-47
16
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT MIN( ALL + + col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2149
SELECT MIN ( ALL + + col0 ) AS col2 FROM tab1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2150
SELECT COUNT( * ) + - ( + COUNT( * ) ) - COUNT( * ) DIV - - 39 * COUNT( * ) + + MIN( DISTINCT 31 ) FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-2150
SELECT COUNT ( * ) + - ( + COUNT ( * ) ) - COUNT ( * ) / - - 39 * COUNT ( * ) + + MIN ( DISTINCT 31 ) FROM tab1
----
31

query II rowsort
SELECT ALL + 25 + col2 AS col0, - 13 FROM tab0 AS cor0
----
124
-13
35
-13
72
-13

query I rowsort
SELECT - 22 + col0 FROM tab1
----
29
63
69

query I rowsort
SELECT ALL - - 95 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT DISTINCT col0 - 87 FROM tab2
----
-12
-23
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2155
SELECT DISTINCT - CAST( col1 AS SIGNED ) + + col2 FROM tab0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-2155
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + + col2 FROM tab0
----
-11
-34
98

query I rowsort
SELECT ALL + + 86 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT + 87 * - + col2 AS col2 FROM tab0
----
-4089
-8613
-870

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 / 83 <= - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 63 - + col1 FROM tab1 AS cor0
----
16
49
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 >= - + 53 + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 8 * + ( + - ( - 70 ) ) col0 FROM tab0 AS cor0
----
-560
-560
-560

query I rowsort
SELECT DISTINCT - 71 * 11 * + - col2 * + col1 FROM tab0 AS cor0
----
164010
2973267
77319

query I rowsort
SELECT - AVG ( - + ( + - col0 ) ) FROM tab0 AS cor0 WHERE NOT 75 * col2 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - 33 IS NOT NULL
----

query III rowsort
SELECT ALL 81 AS col0, + col0 * - - 30 + 39 AS col1, - col0 + - + col1 AS col1 FROM tab1
----
9 values hashing to b8b74a5508a6131373b06eecfcd80ad2

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT ALL - COUNT( * ) * - 81 AS col2 FROM tab1
----
243

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL - COUNT ( * ) * - 81 AS col2 FROM tab1
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT DISTINCT - MAX( - + col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2167
SELECT DISTINCT - MAX ( - + col2 ) AS col0 FROM tab2
----
23

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) = ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT + - SUM( ALL + 18 ) * + 30 AS col1 FROM tab2 cor0
----
-1620

skipif mysql # not compatible
query I rowsort label-2169
SELECT + - SUM ( ALL + 18 ) * + 30 AS col1 FROM tab2 cor0
----
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT DISTINCT - MAX( DISTINCT 96 ) * + 43 * 92 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2170
SELECT DISTINCT - MAX ( DISTINCT 96 ) * + 43 * 92 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2171
SELECT ALL + 58 DIV + + 98 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL + 58 / + + 98 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2173
SELECT CAST( NULL AS SIGNED ) * - 18 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2173
SELECT CAST ( NULL AS INTEGER ) * - 18 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT - - 83 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT + COUNT( * ) + + 33 AS col0 FROM tab0 WHERE NOT - - col0 * - 49 + 10 <> NULL
----
33

skipif mysql # not compatible
query I rowsort label-2175
SELECT + COUNT ( * ) + + 33 AS col0 FROM tab0 WHERE NOT - - col0 * - 49 + 10 <> NULL
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2176
SELECT DISTINCT + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 0 * col2 col1 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 > col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2180
SELECT + col0 + + 37 DIV + + col1 AS col1 FROM tab0 AS cor0
----
134
15
88

skipif mysql # not compatible
query I rowsort label-2180
SELECT + col0 + + 37 / + + col1 AS col1 FROM tab0 AS cor0
----
134
15
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT 61 + - COUNT( * ) + - + 22 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-2181
SELECT 61 + - COUNT ( * ) + - + 22 FROM tab1 AS cor0
----
36

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( 59 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2183
SELECT DISTINCT + - 77 + - col0 DIV + 79 AS col0 FROM tab0 AS cor0
----
-77
-78

skipif mysql # not compatible
query I rowsort label-2183
SELECT DISTINCT + - 77 + - col0 / + 79 AS col0 FROM tab0 AS cor0
----
-77
-78

query I rowsort
SELECT ALL col1 + col2 * + 26 FROM tab2 AS cor0
----
1117
1575
649

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT DISTINCT MIN( col0 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT MIN ( col0 ) AS col1 FROM tab1 AS cor0
----
51

query I rowsort
SELECT + col2 + + 74 + - + col2 AS col2 FROM tab0 AS cor0
----
74
74
74

query I rowsort
SELECT DISTINCT - 63 FROM tab0 cor0 WHERE NOT ( + 0 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT 10 AS col0, col1 FROM tab2
----
10
51
10
67
10
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT ALL - COUNT( * ) * 11 FROM tab0, tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL - COUNT ( * ) * 11 FROM tab0, tab0 AS cor0
----
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 NOT BETWEEN + 5 AND NULL
----

query II rowsort
SELECT DISTINCT + + 54 AS col0, col2 FROM tab0 cor0
----
54
10
54
47
54
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = + - 99 + + col0
----

query I rowsort
SELECT - col1 * + col2 + + ( + col2 ) + + 29 - - 93 AS col1 FROM tab2 AS cor0
----
-1028
-2918
-3706

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + ( - 78 ) + - + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT COUNT( * ) - 71 FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-2195
SELECT COUNT ( * ) - 71 FROM tab2 AS cor0
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-2196
SELECT - col2 DIV 59 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2196
SELECT - col2 / 59 AS col2 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE - 48 NOT IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 * + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 84 + - col0 * col0 AS col2 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT - col0 + + col0 FROM tab1 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT 95 * col1 + 51 FROM tab0
----
146
2046
7746

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT ( - 96 ) NOT IN ( col2 * + 9 )
----

query I rowsort
SELECT col0 * 72 + 25 AS col0 FROM tab1
----
3697
6145
6577

query I rowsort
SELECT col2 * + col1 + 32 * - 64 AS col0 FROM tab0
----
-1838
-1949
1759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2205
SELECT DISTINCT - CAST( - 64 AS SIGNED ) FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT - CAST ( - 64 AS INTEGER ) FROM tab2
----
64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN - col2 + + col2 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT DISTINCT MAX( DISTINCT col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2207
SELECT DISTINCT MAX ( DISTINCT col2 ) AS col0 FROM tab1
----
96

query I rowsort
SELECT - col1 FROM tab1 WHERE col0 IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * col1 - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT + MAX( ALL + 93 ) AS col2 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-2210
SELECT + MAX ( ALL + 93 ) AS col2 FROM tab1
----
93

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 5 * col0 - + col1 * + 50 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT DISTINCT + MAX( DISTINCT col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2212
SELECT DISTINCT + MAX ( DISTINCT col2 ) FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT COUNT( * ) + - 54 AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2213
SELECT COUNT ( * ) + - 54 AS col0 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT - 5 * - MAX( + 81 ) + - MIN( ALL col2 ) AS col1 FROM tab1
----
346

skipif mysql # not compatible
query I rowsort label-2214
SELECT - 5 * - MAX ( + 81 ) + - MIN ( ALL col2 ) AS col1 FROM tab1
----
346

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN ( - col2 / + 3 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 + - col0 ) NOT IN ( - 21 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 56 - 73 FROM tab1
----
-17
-17
-17

query I rowsort
SELECT ALL + AVG ( ALL + 59 ) FROM tab2 WHERE NULL <= + col0 * col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2219
SELECT DISTINCT - ( + col2 ) + ( - col2 ) DIV 74 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2219
SELECT DISTINCT - ( + col2 ) + ( - col2 ) / 74 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT DISTINCT COUNT( * ) - + 61 AS col1 FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-2220
SELECT DISTINCT COUNT ( * ) - + 61 AS col1 FROM tab1
----
-58

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 IN ( + 81 * 11 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT ALL - COUNT( 36 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL - COUNT ( 36 ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT ALL 36 + - col0 AS col1 FROM tab0
----
-51
-61
21

query III rowsort
SELECT * FROM tab1 WHERE NULL <= col1 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT ALL COUNT( * ) * - COUNT( * ) col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2226
SELECT ALL COUNT ( * ) * - COUNT ( * ) col1 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT 70 * col0 AS col2 FROM tab1 AS cor0
----
3570
5950
6370

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 43 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2229
SELECT DISTINCT + col1 * CAST( - col0 * - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
38367
97
98415

skipif mysql # not compatible
query I rowsort label-2229
SELECT DISTINCT + col1 * CAST ( - col0 * - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
38367
97
98415

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 WHERE NOT - 26 IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 LEFT OUTER JOIN tab0 ON NOT NULL IS NULL
----
18 values hashing to 3bb2bca130a6dfa84e4c44460040062d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 * + col2 col0 FROM tab2
----
1680
2436
966

query I rowsort
SELECT ALL - col2 + + 86 * + col1 FROM tab2 AS cor0
----
4363
5704
6582

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 69 NOT BETWEEN NULL AND ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 43 = ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 26 / 13 >= + col1 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 * + 90 col1 FROM tab1 AS cor0
----
4641
7735
8281

query I rowsort
SELECT - 71 FROM tab2 AS cor0 WHERE + 40 * ( ( + col1 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT MAX( ALL col0 ) - + MIN( DISTINCT - 40 ) / + 67 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2239
SELECT MAX ( ALL col0 ) - + MIN ( DISTINCT - 40 ) / + 67 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( 5 )
----
NULL

query I rowsort
SELECT ALL - col0 + 2 FROM tab0 cor0
----
-13
-85
-95

query I rowsort
SELECT ALL + - col1 + 71 AS col2 FROM tab0 AS cor0
----
-10
50
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT ALL 71 * COUNT( * ) FROM tab2 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL 71 * COUNT ( * ) FROM tab2 AS cor0
----
213

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col1 - col1 / col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 42 * col1 FROM tab1
----
1974
210
588

query I rowsort
SELECT 77 - - col2 + 52 * col1 AS col0 FROM tab1
----
2589
396
901

onlyif mysql # DIV for integer division: 
query I rowsort label-2246
SELECT DISTINCT + col1 - + 40 DIV col1 FROM tab1
----
-3
12
47

skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT + col1 - + 40 / col1 FROM tab1
----
-3
12
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT ALL SUM( DISTINCT - - col0 ) col0 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2247
SELECT ALL SUM ( DISTINCT - - col0 ) col0 FROM tab0
----
199

query I rowsort
SELECT - col1 + + col2 AS col2 FROM tab0 WHERE 53 IS NULL OR NOT NULL IN ( - 2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT - COUNT( * ) FROM tab1 WHERE + col2 < 83
----
-2

skipif mysql # not compatible
query I rowsort label-2249
SELECT - COUNT ( * ) FROM tab1 WHERE + col2 < 83
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - 68 col1 FROM tab1
----
-17
17
23

query I rowsort
SELECT col2 * - + 51 + + col0 AS col2 FROM tab1
----
-2924
-3377
-4845

query I rowsort
SELECT DISTINCT + 58 * 42 FROM tab2
----
2436

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * - col1 <> NULL AND NOT + 71 + - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2254
SELECT ALL - 25 DIV 18 * + 22 AS col1 FROM tab1 AS cor0
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL - 25 / 18 * + 22 AS col1 FROM tab1 AS cor0
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT ALL + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN 92 AND col2 / - 84
----
0

skipif mysql # not compatible
query I rowsort label-2255
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN 92 AND col2 / - 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT DISTINCT 56 * COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( - col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2256
SELECT DISTINCT 56 * COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( - col1 ) IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT COUNT( * ) * 73 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
657

skipif mysql # not compatible
query I rowsort label-2258
SELECT COUNT ( * ) * 73 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
657

query I rowsort
SELECT + + 36 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT MIN( + - 27 ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-2260
SELECT MIN ( + - 27 ) FROM tab2
----
-27

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + - col1 * - 99 + + col2 ) = - col2
----

query I rowsort
SELECT col2 * - + col2 AS col0 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT ALL - col2 * + col2 + - + col1 AS col0 FROM tab2 AS cor0
----
-1677
-3431
-580

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 48 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 26 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT DISTINCT - MAX( - col2 ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-2266
SELECT DISTINCT - MAX ( - col2 ) FROM tab2 cor0
----
23

query I rowsort
SELECT ALL + + 72 FROM tab1 cor0
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT + - MAX( ALL col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2268
SELECT + - MAX ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT + ( - + MIN( ALL col2 ) ) col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2269
SELECT + ( - + MIN ( ALL col2 ) ) col1 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT ALL - 45 / + 84 FROM tab1 AS cor0 WHERE - 24 + + - col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2271
SELECT + MIN( - 69 ) DIV 73 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2271
SELECT + MIN ( - 69 ) / 73 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT ALL + ( - 44 ) * - COUNT( * ) AS col1 FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL + ( - 44 ) * - COUNT ( * ) AS col1 FROM tab2
----
132

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 21 * - col0 ) <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2274
SELECT col0 * - col1 / + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2274
SELECT col0 * - col1 / + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2275
SELECT ( + 88 ) col0, COUNT( - 70 ) AS col0 FROM tab0
----
88
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2275
SELECT ( + 88 ) col0, COUNT ( - 70 ) AS col0 FROM tab0
----
88
3

query I rowsort
SELECT DISTINCT + 42 AS col1 FROM tab2 WHERE NOT - - col2 NOT BETWEEN col0 * 24 AND 31
----

query I rowsort
SELECT + - ( - - col2 ) FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col0 * - + col1 AS col1, - col1 * 20 * + col2 AS col0 FROM tab2 AS cor0
----
-2346
-23460
-4928
-61600
-5025
-77720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2279
SELECT ALL + + 17 + + - CAST( - 10 AS SIGNED ) + + COUNT( * ) * - 73 AS col2 FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL + + 17 + + - CAST ( - 10 AS INTEGER ) + + COUNT ( * ) * - 73 AS col2 FROM tab1 AS cor0
----
-192

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col1 NOT IN ( col1 + col1 + - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col1 + col1 IS NULL
----

query I rowsort
SELECT DISTINCT 46 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
46

query I rowsort
SELECT ALL - - col0 + - col0 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT ALL - 23 * - MIN( 73 ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL - 23 * - MIN ( 73 ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2285
SELECT ALL col2 * + CAST( 58 AS SIGNED ) + + 75 AS col2 FROM tab1 AS cor0 WHERE CAST( - 35 AS SIGNED ) IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-2285
SELECT ALL col2 * + CAST ( 58 AS INTEGER ) + + 75 AS col2 FROM tab1 AS cor0 WHERE CAST ( - 35 AS INTEGER ) IN ( col1 )
----

query I rowsort
SELECT DISTINCT 40 * + - col1 FROM tab0 AS cor0
----
-3240
-40
-840

query III rowsort
SELECT * FROM tab1 WHERE + - 24 + col0 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT + col2 * col1 - - col2 > NULL )
----

query I rowsort
SELECT 8 * + 45 * + - col0 FROM tab2
----
-16560
-23040
-27000

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2290
SELECT ALL ( - col0 ), + col1 DIV - - col2 + - - col0 DIV - col2 + + CAST( 81 AS SIGNED ) AS col0 FROM tab1
----
-51
81
-85
80
-91
80

skipif mysql # not compatible
query II rowsort label-2290
SELECT ALL ( - col0 ), + col1 / - - col2 + - - col0 / - col2 + + CAST ( 81 AS INTEGER ) AS col0 FROM tab1
----
-51
81
-85
80
-91
80

query I rowsort
SELECT ALL + 33 - - ( 88 ) FROM tab2
----
121
121
121

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE NOT ( ( NULL ) NOT IN ( + 35 ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 55 >= + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2294
SELECT ALL col0 DIV - - 21 AS col1 FROM tab0
----
0
4
4

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL col0 / - - 21 AS col1 FROM tab0
----
0
4
4

query III rowsort
SELECT * FROM tab2 WHERE ( NOT - col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT - 29 - + + COUNT( * ) FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-2296
SELECT - 29 - + + COUNT ( * ) FROM tab2 AS cor0
----
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, 7 col0 FROM tab0 AS cor0
----
10
7
47
7
99
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2298
SELECT ALL + + col1 DIV 53 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL + + col1 / 53 AS col2 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2299
SELECT ALL CAST( NULL AS SIGNED ) * CAST( + 11 AS DECIMAL ) AS col1 FROM tab0 WHERE + - col2 NOT IN ( - 64 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2299
SELECT ALL CAST ( NULL AS INTEGER ) * CAST ( + 11 AS REAL ) AS col1 FROM tab0 WHERE + - col2 NOT IN ( - 64 )
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 * - 79 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN - ( + + col1 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN ( col0 * + - col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2302
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( col0 AS SIGNED ) * - col2 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2302
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( col0 AS INTEGER ) * - col2 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 < - col1
----
97
1
99

query I rowsort
SELECT ALL - 16 * - col1 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 * col1 col2 FROM tab2 AS cor0
----
408
536
616

onlyif mysql # DIV for integer division: 
query I rowsort label-2306
SELECT col1 DIV 39 * + - col2 * - + 37 AS col0 FROM tab2 AS cor0
----
1480
2146
851

skipif mysql # not compatible
query I rowsort label-2306
SELECT col1 / 39 * + - col2 * - + 37 AS col0 FROM tab2 AS cor0
----
1480
2146
851

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT DISTINCT COUNT( ALL - + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT COUNT ( ALL - + col1 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT MAX( + 76 ) * - - 57 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-12996

skipif mysql # not compatible
query I rowsort label-2308
SELECT MAX ( + 76 ) * - - 57 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-12996

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT MAX( DISTINCT - + col2 ) col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2309
SELECT MAX ( DISTINCT - + col2 ) col2 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL > ( + col0 ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + + 61 + + col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2312
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 * + - col0 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2312
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 * + - col0 AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2314
SELECT ALL 7 + + ( - - col2 ) FROM tab1 WHERE NOT - CAST( 84 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2314
SELECT ALL 7 + + ( - - col2 ) FROM tab1 WHERE NOT - CAST ( 84 AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT ALL 23 AS col2, + col1 AS col2 FROM tab2
----
23
51
23
67
23
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT DISTINCT + 0 * 82 * + SUM( - 18 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT + 0 * 82 * + SUM ( - 18 ) FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2317
SELECT - + col1 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2317
SELECT - + col1 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-1
-21
-81

query II rowsort
SELECT DISTINCT col1 AS col1, ( - col0 ) AS col2 FROM tab0
----
1
-97
21
-87
81
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-2319
SELECT + COUNT( * ), COUNT( * ) - + COUNT( * ) AS col2 FROM tab0
----
3
0

skipif mysql # not compatible
query II rowsort label-2319
SELECT + COUNT ( * ), COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab0
----
3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, - 72 col2 FROM tab2
----
23
-72
40
-72
58
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2321
SELECT DISTINCT + CAST( 5 AS SIGNED ) col1 FROM tab2
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2321
SELECT DISTINCT + CAST ( 5 AS INTEGER ) col1 FROM tab2
----
5

query I rowsort
SELECT DISTINCT - ( - col1 ) AS col2 FROM tab1 WHERE ( - col1 ) IS NULL
----

query I rowsort
SELECT - ( col0 ) + + - col2 FROM tab0 AS cor0
----
-196
-62
-97

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT 78 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # DIV for integer division: 
query I rowsort label-2326
SELECT - - col0 DIV col2 col0 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2326
SELECT - - col0 / col2 col0 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN ( col1 + - col1 ) AND + 23
----
0

skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN ( col1 + - col1 ) AND + 23
----
0

query I rowsort
SELECT + - 70 FROM tab0 cor0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT ALL - COUNT( * ) - - COUNT( * ) + - + 9 - - 38 * 62 FROM tab0 cor0
----
2347

skipif mysql # not compatible
query I rowsort label-2329
SELECT ALL - COUNT ( * ) - - COUNT ( * ) + - + 9 - - 38 * 62 FROM tab0 cor0
----
2347

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= 48 / + + ( + 9 )
----

query I rowsort
SELECT + - 82 - - ( + col1 ) AS col0 FROM tab0 AS cor0
----
-1
-61
-81

query I rowsort
SELECT DISTINCT col0 * + col2 + + + col2 + col0 + + col2 FROM tab1
----
5139
5218
6415

query I rowsort
SELECT DISTINCT + col2 - 19 * + col2 AS col2 FROM tab0
----
-1782
-180
-846

query II rowsort
SELECT + col2 - + - 6 - + - col0 + + + ( - col0 ) AS col2, - ( + - col0 ) FROM tab0
----
105
97
16
87
53
15

onlyif mysql # DIV for integer division: 
query I rowsort label-2335
SELECT 62 + + + 62 + 85 DIV - 90 FROM tab2
----
124
124
124

skipif mysql # not compatible
query I rowsort label-2335
SELECT 62 + + + 62 + 85 / - 90 FROM tab2
----
124
124
124

query I rowsort
SELECT DISTINCT - col2 - 73 FROM tab0
----
-120
-172
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, + col1 AS col0 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT 37 * - + col0 + - - col1 AS col1 FROM tab2
----
-1651
-2291
-2708

query I rowsort
SELECT DISTINCT - 81 * 8 - - + 60 AS col2 FROM tab2
----
-588

query I rowsort
SELECT ALL col1 - + 18 FROM tab2
----
33
49
59

query I rowsort
SELECT DISTINCT + 50 * + col2 * - - col0 FROM tab0 WHERE NOT - 76 * - - 14 IS NULL
----
35250
43500
480150

query II rowsort
SELECT - col0, - col0 FROM tab0
----
-15
-15
-87
-87
-97
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2343
SELECT ALL 91 DIV + 20 - + + COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2343
SELECT ALL 91 / + 20 - + + COUNT ( * ) FROM tab2 AS cor0
----
1

query II rowsort
SELECT col0 AS col1, 70 FROM tab0
----
15
70
87
70
97
70

onlyif mysql # DIV for integer division: 
query I rowsort label-2345
SELECT ALL col0 DIV + + 91 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL col0 / + + 91 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT + COUNT( DISTINCT + col0 ) * - + 64 FROM tab0
----
-192

skipif mysql # not compatible
query I rowsort label-2346
SELECT + COUNT ( DISTINCT + col0 ) * - + 64 FROM tab0
----
-192

query I rowsort
SELECT ALL + - col2 + + col0 AS col0 FROM tab1 WHERE NOT - - 3 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT + MIN( col2 ) col1 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2348
SELECT + MIN ( col2 ) col1 FROM tab1
----
59

query I rowsort
SELECT ALL - ( - + 82 ) FROM tab1
----
82
82
82

query I rowsort
SELECT ALL + - 10 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

query II rowsort
SELECT ALL 61, + col1 FROM tab1 AS cor0
----
61
14
61
47
61
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2352
SELECT ALL COUNT( * ) DIV + + 7 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2352
SELECT ALL COUNT ( * ) / + + 7 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 55 BETWEEN + - col1 * - - col1 AND ( + - col0 + + col0 * - col1 * - 19 )
----

query I rowsort
SELECT + 1 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN col2 * - + col1 AND col2
----
1
1

query I rowsort
SELECT ALL - ( - + 34 ) AS col1 FROM tab0
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT - SUM( - col2 ) FROM tab0 WHERE NOT ( NOT NULL > col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2356
SELECT - SUM ( - col2 ) FROM tab0 WHERE NOT ( NOT NULL > col2 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col1 * + 19 + + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 62 col0 FROM tab1 WHERE NOT 35 * + + col0 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2359
SELECT * FROM tab2 WHERE 63 + - + 75 - - + CAST( - col1 AS SIGNED ) * - col1 <= - col0 + + col1
----

skipif mysql # not compatible
query III rowsort label-2359
SELECT * FROM tab2 WHERE 63 + - + 75 - - + CAST ( - col1 AS INTEGER ) * - col1 <= - col0 + + col1
----

query I rowsort
SELECT DISTINCT + 7 * col1 + + - 30 * + 20 AS col0 FROM tab1 AS cor0 WHERE + 91 IS NOT NULL
----
-271
-502
-565

query I rowsort
SELECT ALL + + col0 + 63 - + + col2 AS col2 FROM tab2 AS cor0
----
80
86
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT DISTINCT - COUNT( DISTINCT + 62 ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2362
SELECT DISTINCT - COUNT ( DISTINCT + 62 ) AS col2 FROM tab2
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + + 21 <= - 37
----

query I rowsort
SELECT + - 73 + + - 89 AS col2 FROM tab0 AS cor0
----
-162
-162
-162

query II rowsort
SELECT DISTINCT col0 * + 66 + + col0, 73 AS col0 FROM tab2 AS cor0
----
3082
73
4288
73
5025
73

query I rowsort
SELECT - + ( + col0 ) * + col0 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + + + 60 + + 49 - col0 + col2 * + - col2 AS col1, + 34 col0 FROM tab2 cor0
----
-1632
34
-3397
34
-517
34

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( + col2 ) AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2369
SELECT DISTINCT - - 20 + col1 + + CAST( NULL AS DECIMAL ) / + 67 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT - - 20 + col1 + + CAST ( NULL AS REAL ) / + 67 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT + + MAX( - col1 ) + - - 9 AS col2 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-2370
SELECT + + MAX ( - col1 ) + - - 9 AS col2 FROM tab0 AS cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2371
SELECT DISTINCT CAST( NULL AS SIGNED ) - - - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2371
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - - col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 0 + - col1 + - 1 FROM tab2 cor0
----
-52
-68
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT ALL - ( + COUNT( DISTINCT - col1 ) ) + - + 53 AS col2 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL - ( + COUNT ( DISTINCT - col1 ) ) + - + 53 AS col2 FROM tab2
----
-56

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 84 = 74
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * - 85 * - - col0 * + 66 = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT ALL + MAX( DISTINCT + - 84 ) AS col0 FROM tab2 WHERE NOT col1 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2376
SELECT ALL + MAX ( DISTINCT + - 84 ) AS col0 FROM tab2 WHERE NOT col1 < NULL
----
NULL

query I rowsort
SELECT ALL + ( + 99 ) FROM tab2
----
99
99
99

query I rowsort
SELECT ALL + 49 * - - col0 AS col0 FROM tab1
----
2499
4165
4459

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NOT ( + + col1 * + 28 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2380
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 98 col1, col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2380
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 98 col1, col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2381
SELECT + 78 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 * + 0 - + 8 AND ( 72 - + CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2381
SELECT + 78 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 * + 0 - + 8 AND ( 72 - + CAST ( - col1 AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 5 + + + col1 - col0 <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 27 IS NULL
----

query I rowsort
SELECT ALL - 97 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT DISTINCT - - col2 * - + col2 * - - col1 AS col2 FROM tab2 AS cor0
----
-123200
-225388
-26979

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT SUM( DISTINCT + + 51 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-2386
SELECT SUM ( DISTINCT + + 51 ) FROM tab1 cor0
----
51

query I rowsort
SELECT ALL - col1 + + 73 AS col1 FROM tab0 cor0 WHERE NOT - ( + col2 ) IS NULL
----
-8
52
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2388
SELECT ALL - 80 + - 20 DIV - col1 AS col2 FROM tab0 AS cor0
----
-60
-80
-80

skipif mysql # not compatible
query I rowsort label-2388
SELECT ALL - 80 + - 20 / - col1 AS col2 FROM tab0 AS cor0
----
-60
-80
-80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 60 + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 86 + + + 32 + - + 1 FROM tab2 AS cor0
----
117
117
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2391
SELECT 22 DIV COUNT( ALL - col0 ) AS col1 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-2391
SELECT 22 / COUNT ( ALL - col0 ) AS col1 FROM tab2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2392
SELECT DISTINCT + col0 * 87 DIV - 71 col2 FROM tab2
----
-56
-78
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2392
SELECT DISTINCT + col0 * 87 / - 71 col2 FROM tab2
----
-56
-78
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, + col0 + - 58 FROM tab2
----
-51
-12
-67
17
-77
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2394
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2394
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN ( - 2 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - col0 ) + 18 col0 FROM tab1
----
103
109
69

query I rowsort
SELECT - col0 + - - 72 FROM tab0 AS cor0
----
-15
-25
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT ALL - 94 - + COUNT( ALL + + ( - 24 ) ) AS col2 FROM tab2
----
-97

skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL - 94 - + COUNT ( ALL + + ( - 24 ) ) AS col2 FROM tab2
----
-97

query II rowsort
SELECT + 42 + 70, col0 FROM tab0
----
112
15
112
87
112
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 col0 FROM tab1 AS cor0 WHERE NOT NULL < col2
----

query I rowsort
SELECT + 11 - + col1 * - - col2 AS col2 FROM tab1 AS cor0
----
-1333
-284
-3185

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 94 NOT BETWEEN col2 AND NULL AND NULL <> + 44 + ( col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 58 IS NULL AND NULL IN ( - 72, + 75 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + + 28 IS NOT NULL AND ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2405
SELECT ALL - col1 + + + CAST( 24 AS SIGNED ) FROM tab2 AS cor0
----
-27
-43
-53

skipif mysql # not compatible
query I rowsort label-2405
SELECT ALL - col1 + + + CAST ( 24 AS INTEGER ) FROM tab2 AS cor0
----
-27
-43
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT + 7 * + - COUNT( * ) col0 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2406
SELECT + 7 * + - COUNT ( * ) col0 FROM tab1 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT COUNT( * ) * + + 61 AS col1 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-2407
SELECT COUNT ( * ) * + + 61 AS col1 FROM tab0
----
183

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col0 <= - - 58
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT ALL - COUNT( DISTINCT + col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2409
SELECT ALL - COUNT ( DISTINCT + col1 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2410
SELECT DISTINCT + col2 * CAST( - col1 AS SIGNED ) FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-2410
SELECT DISTINCT + col2 * CAST ( - col1 AS INTEGER ) FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT ( + COUNT( + ( - 80 ) ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2411
SELECT ( + COUNT ( + ( - 80 ) ) ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ( col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2413
SELECT ALL + - col0 * + CAST( - col0 AS SIGNED ), col1 FROM tab1 cor0
----
2601
14
7225
5
8281
47

skipif mysql # not compatible
query II rowsort label-2413
SELECT ALL + - col0 * + CAST ( - col0 AS INTEGER ), col1 FROM tab1 cor0
----
2601
14
7225
5
8281
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT DISTINCT - COUNT( - ( - + col0 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2414
SELECT DISTINCT - COUNT ( - ( - + col0 ) ) FROM tab1
----
-3

query I rowsort
SELECT - col0 * - - col1 * - col1 FROM tab0
----
38367
97
98415

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( 87 * - - col0, col0, col2, col2 * - 3 + + col0 + 44 + - ( - col2 ), - 19 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2417
SELECT DISTINCT 83 DIV - + SUM( ALL 27 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2417
SELECT DISTINCT 83 / - + SUM ( ALL 27 ) AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ( + - 50 ) * col1 FROM tab1 AS cor0
----
-2350
-250
-700

query I rowsort
SELECT ALL - + col2 AS col0 FROM tab2 AS cor0 WHERE - 47 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2420
SELECT DISTINCT + - col2 / col1 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2420
SELECT DISTINCT + - col2 / col1 + - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2421
SELECT CAST( - col1 AS SIGNED ) + + 1 AS col2 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-2421
SELECT CAST ( - col1 AS INTEGER ) + + 1 AS col2 FROM tab1 AS cor0
----
-13
-4
-46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2422
SELECT + 15 DIV - CAST( + - 30 AS SIGNED ) + - 7 + 67 * col2 * - col1 + + ( + + 29 ) AS col0 FROM tab0 AS cor0
----
-14048
-255047
-6611

skipif mysql # not compatible
query I rowsort label-2422
SELECT + 15 / - CAST ( + - 30 AS INTEGER ) + - 7 + 67 * col2 * - col1 + + ( + + 29 ) AS col0 FROM tab0 AS cor0
----
-14048
-255047
-6611

query I rowsort
SELECT + col1 + - + col2 + - col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE ( ( NOT 85 IS NULL ) )
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT - - ( MIN( + - col1 ) ) + - 85 AS col0 FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-2425
SELECT - - ( MIN ( + - col1 ) ) + - 85 AS col0 FROM tab1 AS cor0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT DISTINCT COUNT( DISTINCT - - ( - + 45 ) ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT COUNT ( DISTINCT - - ( - + 45 ) ) AS col1 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT DISTINCT - 83 * + COUNT( - - col0 ) AS col2 FROM tab1
----
-249

skipif mysql # not compatible
query I rowsort label-2427
SELECT DISTINCT - 83 * + COUNT ( - - col0 ) AS col2 FROM tab1
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT + COUNT( * ) + + COUNT( + - ( + - 99 ) ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2428
SELECT + COUNT ( * ) + + COUNT ( + - ( + - 99 ) ) AS col0 FROM tab2
----
6

query II rowsort
SELECT ( + - 50 ) + + col2 AS col0, col0 + col1 FROM tab1
----
18
138
46
65
9
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2430
SELECT ALL + SUM( + col2 ) DIV 47 + + COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-2430
SELECT ALL + SUM ( + col2 ) / 47 + + COUNT ( * ) AS col1 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT 40 + + SUM( - ( - 71 ) ) col0 FROM tab2
----
253

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2431
SELECT 40 + + SUM ( - ( - 71 ) ) col0 FROM tab2
----
253

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT DISTINCT - COUNT( ALL + ( 65 ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2432
SELECT DISTINCT - COUNT ( ALL + ( 65 ) ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT ALL ( - 35 ) * - - 34 * col2 FROM tab0
----
-117810
-11900
-55930

onlyif mysql # DIV for integer division: 
query I rowsort label-2434
SELECT ALL col2 DIV - ( + col0 ) + 41 FROM tab2
----
41
41
41

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL col2 / - ( + col0 ) + 41 FROM tab2
----
41
41
41

query I rowsort
SELECT DISTINCT 48 * col2 AS col2 FROM tab2
----
1104
1920
2784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2436
SELECT ALL - + MIN( DISTINCT - + col1 ) FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND - CAST( + - 91 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL - + MIN ( DISTINCT - + col1 ) FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND - CAST ( + - 91 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2437
SELECT - + CAST( NULL AS SIGNED ) / + CAST( NULL AS SIGNED ) * 42 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2437
SELECT - + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) * 42 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 49 - 80 * + - 23 FROM tab2 AS cor0
----
1791
1791
1791

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT - 19 * + col2 FROM tab2 cor0
----
-1102
-437
-760

query I rowsort
SELECT col0 + + 73 AS col1 FROM tab0
----
160
170
88

query I rowsort
SELECT + 48 * - 22 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 2193898b11a83d6d9f53c732d7ce76d8

query I rowsort
SELECT ALL + + col1 + - ( 97 ) * + - col0 AS col1 FROM tab1 AS cor0
----
4961
8250
8874

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + - 25 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT ALL + MIN( ALL - 43 ) FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-2445
SELECT ALL + MIN ( ALL - 43 ) FROM tab1 AS cor0
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-2446
SELECT ( col1 ) DIV col0 AS col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2446
SELECT ( col1 ) / col0 AS col2 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT - + 0 * + 61 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 NOT IN ( - 4 / - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - 87, + col1 AS col1 FROM tab0 AS cor0
----
-87
1
-87
21
-87
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) col1 FROM tab0 AS cor0 WHERE NOT 32 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 55 ) < + 66
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 44 AS col1, + col2 * - 41 * - 49 AS col2 FROM tab1 AS cor0
----
-44
118531
-44
136612
-44
192864

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT - ( - COUNT( * ) ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2453
SELECT - ( - COUNT ( * ) ) col2 FROM tab0
----
3

query I rowsort
SELECT + col2 * + 75 FROM tab2
----
1725
3000
4350

onlyif mysql # aggregate syntax: 
query II rowsort label-2455
SELECT ALL + MAX( 85 ), + ( ( 51 ) ) * - - 46 * + 30 AS col2 FROM tab1 AS cor0
----
85
70380

skipif mysql # not compatible
query II rowsort label-2455
SELECT ALL + MAX ( 85 ), + ( ( 51 ) ) * - - 46 * + 30 AS col2 FROM tab1 AS cor0
----
85
70380

onlyif mysql # DIV for integer division: 
query I rowsort label-2456
SELECT 37 * + - col1 + + + col2 DIV - + ( ( - col0 ) ) FROM tab2 AS cor0
----
-1887
-2479
-2849

skipif mysql # not compatible
query I rowsort label-2456
SELECT 37 * + - col1 + + + col2 / - + ( ( - col0 ) ) FROM tab2 AS cor0
----
-1887
-2479
-2849

query I rowsort
SELECT ALL 71 AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 NOT BETWEEN col0 * + col0 + 90 * + col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + - col1 col0 FROM tab0
----
-66
66
96

query I rowsort
SELECT DISTINCT - col1 * + 91 FROM tab0
----
-1911
-7371
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT COUNT( - ( - - col2 ) ) + - 56 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-2461
SELECT COUNT ( - ( - - col2 ) ) + - 56 FROM tab1
----
-53

query I rowsort
SELECT ALL - col1 * 98 AS col1 FROM tab2
----
-4998
-6566
-7546

query II rowsort
SELECT + col1, col1 FROM tab1 cor0
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT 30 * - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-2464
SELECT 30 * - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
90

query I rowsort
SELECT ALL - col0 + + - col1 * - - col2 FROM tab2 AS cor0
----
-1219
-3144
-3961

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= + col2 / - 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 39 AND + 31
----
0

skipif mysql # not compatible
query I rowsort label-2467
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 39 AND + 31
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT ALL + COUNT( * ) * + - 92 AS col0 FROM tab1 cor0
----
-276

skipif mysql # not compatible
query I rowsort label-2468
SELECT ALL + COUNT ( * ) * + - 92 AS col0 FROM tab1 cor0
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT ALL - COUNT( * ) / MIN( col1 ) FROM tab0 WHERE NOT NULL = - col1 / 72 + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL - COUNT ( * ) / MIN ( col1 ) FROM tab0 WHERE NOT NULL = - col1 / 72 + - 18
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2470
SELECT - 11 DIV - 44 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2470
SELECT - 11 / - 44 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( NOT ( NULL ) = col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2472
SELECT - CAST( col1 AS SIGNED ) - - + 26 AS col0 FROM tab1
----
-21
12
21

skipif mysql # not compatible
query I rowsort label-2472
SELECT - CAST ( col1 AS INTEGER ) - - + 26 AS col0 FROM tab1
----
-21
12
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2473
SELECT - 4 * + 5 - CAST( + CAST( + - ( MIN( + - 50 ) ) AS SIGNED ) AS SIGNED ) * + COUNT( * ) + 68 AS col2 FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-2473
SELECT - 4 * + 5 - CAST ( + CAST ( + - ( MIN ( + - 50 ) ) AS INTEGER ) AS INTEGER ) * + COUNT ( * ) + 68 AS col2 FROM tab2
----
-102

query I rowsort
SELECT ALL - 60 * - 95 AS col2 FROM tab1
----
5700
5700
5700

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 62 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2476
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 26 * - + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 26 * - + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT + - 96 + + - col0 FROM tab1 cor0
----
-147
-181
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT DISTINCT + - 23 * COUNT( ALL 58 ) + + + ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2478
SELECT DISTINCT + - 23 * COUNT ( ALL 58 ) + + + ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-66

query I rowsort
SELECT + ( + 1 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT ALL + - ( + + 95 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2481
SELECT 56 / - + CAST( NULL AS SIGNED ) / + + col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2481
SELECT 56 / - + CAST ( NULL AS INTEGER ) / + + col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( + + 82 ) * - 92 AS col2 FROM tab0 AS cor0
----
-7544
-7544
-7544

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT DISTINCT + MAX( DISTINCT + + col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2483
SELECT DISTINCT + MAX ( DISTINCT + + col1 ) AS col2 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT ALL COUNT( ALL 57 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2484
SELECT ALL COUNT ( ALL 57 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( - 52, col1, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT COUNT( DISTINCT + + 12 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2486
SELECT COUNT ( DISTINCT + + 12 ) FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2487
SELECT 93 DIV - col1 FROM tab1
----
-1
-18
-6

skipif mysql # not compatible
query I rowsort label-2487
SELECT 93 / - col1 FROM tab1
----
-1
-18
-6

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN col0 AND 66
----

query I rowsort
SELECT + ( - - 25 ) FROM tab1
----
25
25
25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2490
SELECT - 16 * + CAST( NULL AS DECIMAL ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2490
SELECT - 16 * + CAST ( NULL AS REAL ) col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 87 col2, 79 AS col1 FROM tab1
----
87
79
87
79
87
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2492
SELECT DISTINCT COUNT( * ) DIV - 36 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT COUNT ( * ) / - 36 AS col0 FROM tab1
----
0

query II rowsort
SELECT ALL - col2 AS col0, col2 AS col0 FROM tab2 WHERE ( + col1 ) IS NULL
----

query II rowsort
SELECT ALL col2, - col0 AS col1 FROM tab0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT DISTINCT + ( + ( - col2 ) ) FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2496
SELECT ALL - CAST( - + 90 AS SIGNED ) FROM tab0 cor0
----
90
90
90

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL - CAST ( - + 90 AS INTEGER ) FROM tab0 cor0
----
90
90
90

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND 59
----

query I rowsort
SELECT DISTINCT + ( 4 ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
4

query I rowsort
SELECT - col1 FROM tab2 WHERE + 84 NOT IN ( 5 - + col1 )
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 col0 FROM tab1, tab0 AS cor0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2501
SELECT ALL - + CAST( + 39 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL - + CAST ( + 39 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-39
-39
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-2502
SELECT ALL + col1 + + + col1 DIV - - col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL + col1 + + + col1 / - - col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT - 2 * - col2 + + - col1 - 36 + col1 + + + 71 FROM tab1 AS cor0 WHERE NULL IS NULL
----
153
171
227

query I rowsort
SELECT - + col1 + - 0 FROM tab2 cor0
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 + - col0, ( + col0 ) col2 FROM tab2 AS cor0
----
-8
75
13
64
5
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT - MIN( - 20 ) + 95 AS col2 FROM tab2 AS cor0
----
115

skipif mysql # not compatible
query I rowsort label-2506
SELECT - MIN ( - 20 ) + 95 AS col2 FROM tab2 AS cor0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT ALL + - 19 + + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-2507
SELECT ALL + - 19 + + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-16

query I rowsort
SELECT DISTINCT - 40 AS col1 FROM tab1 WHERE col0 * + 18 + - col0 + - col2 NOT IN ( col0 )
----
-40

query I rowsort
SELECT - ( col1 ) + - ( - - col0 ) AS col0 FROM tab1
----
-138
-65
-90

query I rowsort
SELECT - + col0 FROM tab0 WHERE - 98 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2511
SELECT + COUNT( * ) AS col1, - 29 FROM tab2
----
3
-29

skipif mysql # not compatible
query II rowsort label-2511
SELECT + COUNT ( * ) AS col1, - 29 FROM tab2
----
3
-29

query I rowsort
SELECT DISTINCT - col1 + + col2 AS col0 FROM tab0 WHERE + - col0 + 44 NOT BETWEEN + - 33 AND + + col1
----
-11
98

query I rowsort
SELECT + - col0 - + - 92 AS col0 FROM tab2 AS cor0
----
17
28
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT - COUNT( DISTINCT col2 ) + + - 44 + + COUNT( * ) FROM tab2 AS cor0 WHERE + col2 - 85 * - col0 = NULL
----
-44

skipif mysql # not compatible
query I rowsort label-2514
SELECT - COUNT ( DISTINCT col2 ) + + - 44 + + COUNT ( * ) FROM tab2 AS cor0 WHERE + col2 - 85 * - col0 = NULL
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT - + SUM( ALL + 77 ) - SUM( DISTINCT - + col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2515
SELECT - + SUM ( ALL + 77 ) - SUM ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2516
SELECT col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + CAST( NULL AS DECIMAL ) * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2516
SELECT col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + CAST ( NULL AS REAL ) * - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2517
SELECT col1 - - col0 * - - 29 AS col2, + col2 DIV + ( - ( - col1 ) ) AS col1 FROM tab2 AS cor0
----
1385
0
1933
0
2242
0

skipif mysql # not compatible
query II rowsort label-2517
SELECT col1 - - col0 * - - 29 AS col2, + col2 / + ( - ( - col1 ) ) AS col1 FROM tab2 AS cor0
----
1385
0
1933
0
2242
0

query I rowsort
SELECT 76 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 86 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
86

query I rowsort
SELECT + col2 * - 71 FROM tab2 cor0
----
-1633
-2840
-4118

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT DISTINCT + SUM( col0 ) * + 61 AS col2 FROM tab0 AS cor0
----
12139

skipif mysql # not compatible
query I rowsort label-2521
SELECT DISTINCT + SUM ( col0 ) * + 61 AS col2 FROM tab0 AS cor0
----
12139

query I rowsort
SELECT DISTINCT - ( + ( - + 44 ) ) FROM tab2 AS cor0
----
44

query I rowsort
SELECT - ( + + ( - ( - col1 ) ) ) FROM tab2
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 11 + + col1 AS col2, + col0 col0 FROM tab2 WHERE NOT - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT ALL COUNT( ALL col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL COUNT ( ALL col2 ) AS col1 FROM tab2
----
3

query II rowsort
SELECT DISTINCT ( + ( col2 ) ) AS col0, + col1 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2527
SELECT ALL + 78 + + CAST( + col0 AS SIGNED ) FROM tab0
----
165
175
93

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL + 78 + + CAST ( + col0 AS INTEGER ) FROM tab0
----
165
175
93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2528
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN CAST( - ( + col2 ) AS SIGNED ) * + 33 * + 63 AND - + ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-2528
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN CAST ( - ( + col2 ) AS INTEGER ) * + 33 * + 63 AND - + ( + col0 )
----

query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE NOT NULL <> + 76
----

query I rowsort
SELECT - + 15 * - col0 FROM tab2 AS cor0
----
1125
690
960

onlyif mysql # DIV for integer division: 
query I rowsort label-2531
SELECT ALL + col0 DIV + 19 + 72 AS col0 FROM tab1 AS cor0
----
74
76
76

skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL + col0 / + 19 + 72 AS col0 FROM tab1 AS cor0
----
74
76
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2532
SELECT DISTINCT COUNT( * ) DIV - 17 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2532
SELECT DISTINCT COUNT ( * ) / - 17 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 43 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2534
SELECT + 47 DIV + + 14 + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2534
SELECT + 47 / + + 14 + COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT DISTINCT ( + + col0 ) + 6 + - col1 + + + 78 AS col1 FROM tab1
----
121
128
164

query I rowsort
SELECT DISTINCT - col0 * col0 FROM tab0 AS cor0 WHERE NULL <> ( + ( col2 ) )
----

query I rowsort
SELECT - 4 + - 64 FROM tab1 AS cor0 WHERE - 87 > + 35
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2538
SELECT + + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) * - ( + 60 ) + + + 41 - + - col2 - CAST( NULL AS SIGNED ) * + 53 * + 55 FROM tab2 AS cor0 WHERE + col2 + - col1 * - CAST( NULL AS SIGNED ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2538
SELECT + + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) * - ( + 60 ) + + + 41 - + - col2 - CAST ( NULL AS INTEGER ) * + 53 * + 55 FROM tab2 AS cor0 WHERE + col2 + - col1 * - CAST ( NULL AS INTEGER ) IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, - 99 FROM tab1 AS cor0 WHERE col0 + - 73 BETWEEN + col2 AND - 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE + col2 + + ( ( col1 ) ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2540
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE + col2 + + ( ( col1 ) ) IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - col2 * - - col0 - 75 * col2 FROM tab0 AS cor0
----
-1620
-17028
-4230

query I rowsort
SELECT ALL + col2 * + col0 - - 83 AS col1 FROM tab2
----
1141
2643
4433

onlyif mysql # DIV for integer division: 
query I rowsort label-2543
SELECT col0 DIV + col0 + + + col1 AS col0 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-2543
SELECT col0 / + col0 + + + col1 AS col0 FROM tab1
----
15
48
6

query I rowsort
SELECT - col0 + + 80 AS col2 FROM tab0
----
-17
-7
65

query I rowsort
SELECT col2 + - col0 * - 8 AS col1 FROM tab1
----
504
739
796

query I rowsort
SELECT 1 + ( - ( ( - col0 ) ) ) FROM tab2
----
47
65
76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN + col2 AND + 96
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + col1 NOT BETWEEN + - 46 / - col1 * + 52 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col2 + - 65, 41 AS col1 FROM tab1 AS cor0
----
-124
41
-133
41
-161
41

query I rowsort
SELECT DISTINCT col2 * col1 AS col0 FROM tab0 cor0
----
210
3807
99

query I rowsort
SELECT ALL + + col1 * - + col1 AS col1 FROM tab1 AS cor0 WHERE 54 IS NOT NULL
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT + MAX( ALL - col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-2552
SELECT + MAX ( ALL - col2 ) AS col0 FROM tab2
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 31, col0 col0 FROM tab0
----
-31
15
-31
87
-31
97

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT ALL - - COUNT( * ) FROM tab1 WHERE - - 71 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL - - COUNT ( * ) FROM tab1 WHERE - - 71 < NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2556
SELECT DISTINCT + 24 DIV + 62 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2556
SELECT DISTINCT + 24 / + 62 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT - COUNT( + 2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2557
SELECT - COUNT ( + 2 ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + ( + ( - col2 ) ) col1, - 48 FROM tab0 AS cor0
----
-10
-48
-47
-48
-99
-48

query I rowsort
SELECT ALL - - 78 AS col0 FROM tab2 AS cor0
----
78
78
78

query I rowsort
SELECT - col1 * + 80 + 36 FROM tab2 AS cor0
----
-4044
-5324
-6124

query I rowsort
SELECT + col1 * + ( - 76 ) AS col2 FROM tab1
----
-1064
-3572
-380

query I rowsort
SELECT + col2 * 13 + col2 FROM tab0
----
1386
140
658

query I rowsort
SELECT 74 + + col0 FROM tab0
----
161
171
89

query I rowsort
SELECT DISTINCT - 17 * - 52 FROM tab2
----
884

query I rowsort
SELECT ALL - ( - + col0 ) FROM tab2 WHERE NULL IS NULL
----
46
64
75

query II rowsort
SELECT DISTINCT col0 AS col0, - 84 FROM tab1 WHERE NULL <= ( - 13 )
----

query I rowsort
SELECT - 41 * - 21 * - - col1 FROM tab2
----
43911
57687
66297

query I rowsort
SELECT - - col1 + + + 13 + + + col0 FROM tab2 AS cor0
----
110
154
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2569
SELECT - + 79 + CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2569
SELECT - + 79 + CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( + col1 ) + - col2 + + 18 + + - ( - - 38 ) FROM tab0 AS cor0
----
-118
-9
14

query I rowsort
SELECT DISTINCT - col0 * col0 + - - 72 AS col1 FROM tab0 cor0
----
-153
-7497
-9337

query I rowsort
SELECT col1 * - col0 + + - ( col1 ) FROM tab0 AS cor0
----
-1296
-1848
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT DISTINCT + + COUNT( * ) + - - 34 FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-2574
SELECT DISTINCT + + COUNT ( * ) + - - 34 FROM tab1 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT DISTINCT - MIN( ALL - - 81 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2575
SELECT DISTINCT - MIN ( ALL - - 81 ) AS col2 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL ( + 26 ) FROM tab2
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT DISTINCT COUNT( * ) - - + COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT COUNT ( * ) - - + COUNT ( * ) AS col1 FROM tab0
----
6

query I rowsort
SELECT + col2 FROM tab1 WHERE col0 * + 4 + + col2 * + + 68 + + 5 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2579
SELECT col1 DIV col1 AS col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2579
SELECT col1 / col1 AS col2 FROM tab1 cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2580
SELECT 84 AS col1, - 58 + + + col0 DIV - + col1 + + CAST( - col1 AS SIGNED ) FROM tab0 WHERE NOT col1 <= - col2
----
84
-139
84
-156
84
-83

skipif mysql # not compatible
query II rowsort label-2580
SELECT 84 AS col1, - 58 + + + col0 / - + col1 + + CAST ( - col1 AS INTEGER ) FROM tab0 WHERE NOT col1 <= - col2
----
84
-139
84
-156
84
-83

query I rowsort
SELECT ALL - - 25 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT ALL SUM( - col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL SUM ( - col1 ) AS col0 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT 33 * col1 FROM tab0 cor0
----
2673
33
693

onlyif mysql # DIV for integer division: 
query I rowsort label-2584
SELECT - col0 DIV - - col1 col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2584
SELECT - col0 / - - col1 col1 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT col1 * - - col2 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT DISTINCT - MAX( - + col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2586
SELECT DISTINCT - MAX ( - + col1 ) AS col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT - col2 * 5 + + ( - ( - 0 ) ) - + col0 AS col0 FROM tab1 AS cor0 WHERE NOT + 43 = - 95
----
-380
-431
-531

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2588
SELECT DISTINCT - - col0 * + + CAST( NULL AS SIGNED ) + - col1 FROM tab0 cor0 WHERE NOT col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2588
SELECT DISTINCT - - col0 * + + CAST ( NULL AS INTEGER ) + - col1 FROM tab0 cor0 WHERE NOT col0 IS NULL
----
NULL

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT ALL col1 * 4 * + col1 * + col0 AS col0 FROM tab2
----
1346700
1517824
478584

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 > - col0
----
15
81
47

query I rowsort
SELECT ALL col0 * - - col0 AS col1 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT DISTINCT ( + + col0 ) * col2 AS col2 FROM tab1
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 43 col2 FROM tab1 WHERE + col2 IS NOT NULL
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2595
SELECT + - col2 / - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2595
SELECT + - col2 / - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 36 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT DISTINCT - + 40 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-40

query I rowsort
SELECT 30 * 13 * + - col1 FROM tab1
----
-18330
-1950
-5460

query II rowsort
SELECT - col0 * - col2, - col2 AS col0 FROM tab1 cor0
----
4896
-96
5015
-59
6188
-68

query I rowsort
SELECT ALL col1 + - - col0 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT 64 - 53 FROM tab0 AS cor0
----
11
11
11

query I rowsort
SELECT ALL col2 + + 37 AS col0 FROM tab1 AS cor0
----
105
133
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab0 AS cor0 WHERE NULL = col0
----

query I rowsort
SELECT DISTINCT + col1 - - ( - - col1 ) + + + col2 + + - col0 + + 75 FROM tab2 AS cor0
----
154
192
205

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 - ( - 8 ), col0 + - 60 col0 FROM tab1
----
59
-9
93
25
99
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT SUM( DISTINCT + 30 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-2606
SELECT SUM ( DISTINCT + 30 ) FROM tab0
----
30

query I rowsort
SELECT - 57 * - 52 AS col1 FROM tab0
----
2964
2964
2964

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT ALL + MIN( DISTINCT + + ( - 71 ) ) * - - 36 AS col2 FROM tab0
----
-2556

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL + MIN ( DISTINCT + + ( - 71 ) ) * - - 36 AS col2 FROM tab0
----
-2556

query I rowsort
SELECT DISTINCT - col2 + - 39 - + + col2 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-157
-175
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT SUM( + 36 ) FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-2610
SELECT SUM ( + 36 ) FROM tab1
----
108

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 62 - - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2612
SELECT ALL + MAX( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL + MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT ALL + - MAX( - 81 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL + - MAX ( - 81 ) FROM tab0 cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 AS col2, 97 col0 FROM tab2 AS cor0
----
-46
97
-64
97
-75
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - col0 + - col0 * col0
----

query I rowsort
SELECT 6 FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NULL
----
6
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) col1 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT + 25 * col1 AS col2 FROM tab2 AS cor0
----
1275
1675
1925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2619
SELECT ALL CAST( - 42 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-2619
SELECT ALL CAST ( - 42 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-42
-42
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2620
SELECT - 43 + + + CAST( - - COUNT( * ) AS SIGNED ) col2 FROM tab1 cor0
----
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2620
SELECT - 43 + + + CAST ( - - COUNT ( * ) AS INTEGER ) col2 FROM tab1 cor0
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-2621
SELECT 34 DIV + - 96 + + 74 FROM tab2
----
74
74
74

skipif mysql # not compatible
query I rowsort label-2621
SELECT 34 / + - 96 + + 74 FROM tab2
----
74
74
74

query II rowsort
SELECT 26 + - - col2 AS col2, 42 AS col2 FROM tab1
----
122
42
85
42
94
42

onlyif mysql # aggregate syntax: 
query II rowsort label-2623
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col0, 10 AS col1 FROM tab1
----
9
10

skipif mysql # not compatible
query II rowsort label-2623
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col0, 10 AS col1 FROM tab1
----
9
10

query I rowsort
SELECT ( + col1 ) + - - 55 * - 17 AS col2 FROM tab0
----
-854
-914
-934

query I rowsort
SELECT ALL + - 89 + + 62 AS col1 FROM tab0 AS cor0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT - 74 + 92 * + col2 FROM tab2 cor0
----
2042
3606
5262

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT DISTINCT + COUNT( 69 ) + - ( - + 72 ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2627
SELECT DISTINCT + COUNT ( 69 ) + - ( - + 72 ) FROM tab1 AS cor0
----
75

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - - col2 col2 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2630
SELECT col0 + + 51 DIV col1 + + col0 AS col1 FROM tab2 AS cor0
----
128
150
93

skipif mysql # not compatible
query I rowsort label-2630
SELECT col0 + + 51 / col1 + + col0 AS col1 FROM tab2 AS cor0
----
128
150
93

query I rowsort
SELECT - - 10 + 70 AS col2 FROM tab1 AS cor0
----
80
80
80

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2632
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 95 + - CAST( NULL AS DECIMAL ) + - col2
----

skipif mysql # not compatible
query III rowsort label-2632
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 95 + - CAST ( NULL AS REAL ) + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT DISTINCT + MIN( DISTINCT + - col0 ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT + MIN ( DISTINCT + - col0 ) AS col0 FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2634
SELECT * FROM tab1 AS cor0 WHERE ( NOT NULL NOT IN ( + 84 / + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-2634
SELECT * FROM tab1 AS cor0 WHERE ( NOT NULL NOT IN ( + 84 / + CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT ALL + col0 * col1 - - - ( + + col2 ) FROM tab1 AS cor0
----
366
4209
618

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2636
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( - ( col2 ) AS SIGNED ) / col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2636
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( - ( col2 ) AS INTEGER ) / col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT - SUM( ALL + ( col0 ) ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2637
SELECT - SUM ( ALL + ( col0 ) ) AS col1 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT DISTINCT col1 * + 79 FROM tab2 AS cor0
----
4029
5293
6083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2639
SELECT MAX( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2639
SELECT MAX ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT ALL COUNT( ALL + 74 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL COUNT ( ALL + 74 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT SUM( - ( 53 ) ) AS col2 FROM tab2 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-2641
SELECT SUM ( - ( 53 ) ) AS col2 FROM tab2 AS cor0
----
-159

query III rowsort
SELECT ALL * FROM tab0 WHERE - 10 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT DISTINCT 21 * + ( + - COUNT( * ) ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-2643
SELECT DISTINCT 21 * + ( + - COUNT ( * ) ) FROM tab0
----
-63

query II rowsort
SELECT ALL ( + - col2 ) AS col0, col0 AS col2 FROM tab1
----
-59
85
-68
91
-96
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 50 col2 FROM tab2
----
-2550
-3350
-3850

query II rowsort
SELECT DISTINCT - ( - col1 ) AS col1, 84 FROM tab2 AS cor0
----
51
84
67
84
77
84

query I rowsort
SELECT + - 58 AS col2 FROM tab1 AS cor0
----
-58
-58
-58

query II rowsort
SELECT + - col0 * - - col0 AS col2, 54 FROM tab1 AS cor0
----
-2601
54
-7225
54
-8281
54

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 3 BETWEEN NULL AND - 5
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2650
SELECT DISTINCT - - COUNT( * ) * + 58 + - MIN( DISTINCT col0 ) FROM tab2 WHERE - col1 <> + - ( CAST( + + col2 AS SIGNED ) )
----
128

skipif mysql # not compatible
query I rowsort label-2650
SELECT DISTINCT - - COUNT ( * ) * + 58 + - MIN ( DISTINCT col0 ) FROM tab2 WHERE - col1 <> + - ( CAST ( + + col2 AS INTEGER ) )
----
128

query I rowsort
SELECT - col0 + - + 11 AS col0 FROM tab1
----
-102
-62
-96

query I rowsort
SELECT DISTINCT + col1 - col2 - 94 AS col0 FROM tab0 AS cor0 WHERE NULL >= + col0
----

query I rowsort
SELECT + + col2 FROM tab0 AS cor0 WHERE + col2 > + 35 + - - 72
----

query II rowsort
SELECT + + 97 AS col2, col2 AS col0 FROM tab2 AS cor0
----
97
23
97
40
97
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT + ( - MIN( - + 89 ) ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-2655
SELECT + ( - MIN ( - + 89 ) ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
267

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 57 > col2
----
97
1
99

query II rowsort
SELECT DISTINCT + 61, + col2 - + col0 AS col0 FROM tab2
----
61
-17
61
-23
61
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2658
SELECT DISTINCT - CAST( ( - 24 ) AS SIGNED ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-2658
SELECT DISTINCT - CAST ( ( - 24 ) AS INTEGER ) FROM tab2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2659
SELECT 36 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2659
SELECT 36 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT DISTINCT + ( - MAX( - col0 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2660
SELECT DISTINCT + ( - MAX ( - col0 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT DISTINCT 52 + COUNT( * ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2661
SELECT DISTINCT 52 + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT ALL - MIN( DISTINCT col2 ) FROM tab1 WHERE NULL BETWEEN NULL AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL - MIN ( DISTINCT col2 ) FROM tab1 WHERE NULL BETWEEN NULL AND col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2663
SELECT CAST( NULL AS DECIMAL ) / COUNT( * ) * - + ( - CAST( - COUNT( + + 94 ) AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2663
SELECT CAST ( NULL AS REAL ) / COUNT ( * ) * - + ( - CAST ( - COUNT ( + + 94 ) AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query II rowsort
SELECT ALL + 72 + + col2 * - 57 * col0 + 92 AS col2, + col2 AS col1 FROM tab2 cor0
----
-145756
40
-247786
58
-60142
23

query I rowsort
SELECT col2 * 56 + col2 + col1 FROM tab1 AS cor0
----
3368
3923
5486

query I rowsort
SELECT ALL + 26 FROM tab2 cor0 WHERE NOT - 4 <> col0 / + + col0 * - col0
----

query II rowsort
SELECT DISTINCT + 43 * - 58 * col2, - col1 AS col1 FROM tab1 AS cor0
----
-147146
-5
-169592
-47
-239424
-14

query I rowsort
SELECT DISTINCT - 73 * + 87 * + col2 - - - 19 + col0 FROM tab0 AS cor0
----
-298501
-628671
-63442

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT DISTINCT 28 * 16 - - COUNT( * ) FROM tab0 AS cor0
----
451

skipif mysql # not compatible
query I rowsort label-2669
SELECT DISTINCT 28 * 16 - - COUNT ( * ) FROM tab0 AS cor0
----
451

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT 41 IS NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 41 * - col2 col2 FROM tab2 AS cor0
----
1640
2378
943

query II rowsort
SELECT 50, + 35 AS col1 FROM tab2
----
50
35
50
35
50
35

query II rowsort
SELECT ALL col1 AS col2, + 7 FROM tab0
----
1
7
21
7
81
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2674
SELECT - CAST( - ( + 60 ) AS SIGNED ) AS col2 FROM tab2
----
60
60
60

skipif mysql # not compatible
query I rowsort label-2674
SELECT - CAST ( - ( + 60 ) AS INTEGER ) AS col2 FROM tab2
----
60
60
60

query I rowsort
SELECT DISTINCT 51 * + col1 FROM tab1
----
2397
255
714

onlyif mysql # aggregate syntax: 
query II rowsort label-2676
SELECT ALL COUNT( * ) col0, 25 FROM tab0
----
3
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2676
SELECT ALL COUNT ( * ) col0, 25 FROM tab0
----
3
25

query I rowsort
SELECT DISTINCT ( 69 ) AS col1 FROM tab0 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2678
SELECT + col1 DIV - - col0 + + + col2 FROM tab2 AS cor0 WHERE NOT - 12 + + CAST( col1 AS SIGNED ) BETWEEN + col0 AND + col1
----
24
58

skipif mysql # not compatible
query I rowsort label-2678
SELECT + col1 / - - col0 + + + col2 FROM tab2 AS cor0 WHERE NOT - 12 + + CAST ( col1 AS INTEGER ) BETWEEN + col0 AND + col1
----
24
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( - ( col0 ) ) - + 48 col2 FROM tab1 AS cor0
----
4848
4967
6140

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT ALL + SUM( ALL - col2 ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL + SUM ( ALL - col2 ) AS col2 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT + MIN( - col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2681
SELECT + MIN ( - col0 ) AS col0 FROM tab1
----
-91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( + 97 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 > ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 13 <= + col0
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NOT ( NULL ) = ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 98 <> + col2
----

query I rowsort
SELECT ALL 78 * col1 AS col0 FROM tab1
----
1092
3666
390

query III rowsort
SELECT * FROM tab2 WHERE + col2 < ( - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 NOT BETWEEN ( + col0 ) AND - col2 / + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE col0 NOT BETWEEN 1 AND NULL
----

query I rowsort
SELECT 18 * - col0 AS col2 FROM tab0
----
-1566
-1746
-270

query I rowsort
SELECT + 63 * + col1 FROM tab2
----
3213
4221
4851

query I rowsort
SELECT 24 + col2 FROM tab2
----
47
64
82

query I rowsort
SELECT ALL + col2 * + col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2695
SELECT * FROM tab2 WHERE NOT ( + col2 + - CAST( - col2 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2695
SELECT * FROM tab2 WHERE NOT ( + col2 + - CAST ( - col2 AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2696
SELECT ALL CAST( NULL AS SIGNED ) * + 57 + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL CAST ( NULL AS INTEGER ) * + 57 + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 14 AS col1 FROM tab0 WHERE ( NULL ) IS NULL
----
14

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE + 47 IN ( - 62 * + col2 )
----

query I rowsort
SELECT + col2 * 98 AS col1 FROM tab1
----
5782
6664
9408

query I rowsort
SELECT ALL - col0 + 64 AS col2 FROM tab1
----
-21
-27
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 + - col2 col2 FROM tab2
----
-1081
-2600
-4408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2702
SELECT DISTINCT MAX( ALL + col0 ) * - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab0 WHERE NOT ( - 82 / + CAST( NULL AS SIGNED ) ) IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT MAX ( ALL + col0 ) * - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab0 WHERE NOT ( - 82 / + CAST ( NULL AS INTEGER ) ) IN ( col2 )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 ) IN ( + 28 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2704
SELECT DISTINCT CAST( NULL AS SIGNED ) / + COUNT( * ) col0 FROM tab0 WHERE NOT col2 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2704
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + COUNT ( * ) col0 FROM tab0 WHERE NOT col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT DISTINCT + COUNT( DISTINCT + 90 ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT + COUNT ( DISTINCT + 90 ) FROM tab2 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT DISTINCT + COUNT( - 75 ) + + 6 AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2706
SELECT DISTINCT + COUNT ( - 75 ) + + 6 AS col1 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT ALL - COUNT( * ) + COUNT( - ( + 36 ) - + ( col1 ) ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL - COUNT ( * ) + COUNT ( - ( + 36 ) - + ( col1 ) ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col1 - col1 * col0 AS col2 FROM tab1 AS cor0
----
-420
-4230
-700

query I rowsort
SELECT ( - col1 ) AS col2 FROM tab1 cor0 WHERE ( 95 * - col0 ) IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL 43 + - col2 * col1 AS col2 FROM tab0 AS cor0
----
-167
-3764
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT 71 - + COUNT( * ) FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-2711
SELECT 71 - + COUNT ( * ) FROM tab0 AS cor0
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 - - col2 col2 FROM tab1
----
11
2
39

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 - + ( col1 ) ) >= - 61 * 37 + col1
----

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-2715
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT ALL + + 97 * MAX( DISTINCT col1 ) AS col0 FROM tab0 cor0
----
7857

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL + + 97 * MAX ( DISTINCT col1 ) AS col0 FROM tab0 cor0
----
7857

query I rowsort
SELECT + 82 * 6 AS col0 FROM tab1 AS cor0
----
492
492
492

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2718
SELECT + CAST( NULL AS SIGNED ) * 65 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2718
SELECT + CAST ( NULL AS INTEGER ) * 65 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT - 93 - COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2719
SELECT - 93 - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
-93

query I rowsort
SELECT - 27 FROM tab0 AS cor0 WHERE NOT ( - col0 ) BETWEEN NULL AND ( col0 + 12 * - col1 )
----
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT ( - ( - COUNT( * ) ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2721
SELECT ( - ( - COUNT ( * ) ) ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + col2 * 63 FROM tab2 AS cor0 WHERE NOT ( - 87 ) NOT BETWEEN NULL AND + col0 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT DISTINCT - SUM( DISTINCT 16 ) AS col2 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-2723
SELECT DISTINCT - SUM ( DISTINCT 16 ) AS col2 FROM tab0 AS cor0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2724
SELECT - + 12 * - CAST( 83 AS SIGNED ) FROM tab0 AS cor0
----
996
996
996

skipif mysql # not compatible
query I rowsort label-2724
SELECT - + 12 * - CAST ( 83 AS INTEGER ) FROM tab0 AS cor0
----
996
996
996

query I rowsort
SELECT ALL 1 * ( 18 ) FROM tab1 AS cor0
----
18
18
18

onlyif mysql # DIV for integer division: 
query I rowsort label-2726
SELECT - + 97 DIV col2 AS col0 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-2726
SELECT - + 97 / col2 AS col0 FROM tab2 AS cor0
----
-1
-2
-4

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - ( 4 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 * - ( col1 ) * + 50 FROM tab0
----
-22050
-328050
-50

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 96 * + col0 * + col0 FROM tab1
----
249696
693600
794976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2732
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2 WHERE col1 / col1 >= 18
----

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2 WHERE col1 / col1 >= 18
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT - 65 >= ( + col1 + 25 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT MAX( - - 75 ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2734
SELECT MAX ( - - 75 ) AS col2 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT DISTINCT ( MIN( - 14 ) ) * 99 FROM tab1 AS cor0
----
-1386

skipif mysql # not compatible
query I rowsort label-2735
SELECT DISTINCT ( MIN ( - 14 ) ) * 99 FROM tab1 AS cor0
----
-1386

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col2 ) col1 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT - ( + col0 ) * - 85 FROM tab2 AS cor0
----
3910
5440
6375

query I rowsort
SELECT col2 * - col0 * col0 AS col1 FROM tab2 AS cor0
----
-163840
-326250
-48668

query I rowsort
SELECT ( - col0 ) * 33 FROM tab1 AS cor0
----
-1683
-2805
-3003

query I rowsort
SELECT DISTINCT + 2 FROM tab2, tab1 AS cor0
----
2

query I rowsort
SELECT ALL + 29 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT ALL col1 * + col2 AS col0 FROM tab1 WHERE + col1 BETWEEN NULL AND + col0 + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2743
SELECT ALL + 88 * ( 40 ) DIV 88 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

skipif mysql # not compatible
query I rowsort label-2743
SELECT ALL + 88 * ( 40 ) / 88 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT + 14 + col0 + + ( - col2 ) FROM tab0
----
-18
12
91

query III rowsort
SELECT ALL * FROM tab0 WHERE - 46 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT + COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0 WHERE NULL = + col2 + + col1
----
0

skipif mysql # not compatible
query I rowsort label-2746
SELECT + COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL = + col2 + + col1
----
0

query I rowsort
SELECT - + 47 * ( - col0 ) AS col2 FROM tab1 AS cor0
----
2397
3995
4277

query I rowsort
SELECT ALL + col2 + col1 + + ( col0 ) * 62 FROM tab1 AS cor0
----
3272
5334
5757

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT ALL - COUNT( * ) + + + 50 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL - COUNT ( * ) + + + 50 FROM tab1 cor0
----
47

query I rowsort
SELECT DISTINCT - col2 * + col2 + - 56 FROM tab0 AS cor0
----
-156
-2265
-9857

query II rowsort
SELECT - col1, - ( col1 ) AS col0 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * + col1 <= col2 OR NULL <= 57
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT + - ( + + 40 ) + - ( col0 ) AS col0 FROM tab0 AS cor0
----
-127
-137
-55

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 IN ( - 48 + col1 * 89 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 col1 FROM tab2 AS cor0 WHERE NULL = + col0 + col2 + col1
----

query I rowsort
SELECT ALL + ( - 10 ) + + - col2 + - 89 * - col1 AS col2 FROM tab2
----
4506
5895
6803

query I rowsort
SELECT DISTINCT - col0 - - - 13 AS col0 FROM tab1
----
-104
-64
-98

query I rowsort
SELECT ALL - 18 * - col1 AS col0 FROM tab0 WHERE NULL NOT IN ( 50 ) AND NOT + col1 - 92 NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT 87 + + - MAX( - + 58 ) + COUNT( col2 ) FROM tab1
----
148

skipif mysql # not compatible
query I rowsort label-2759
SELECT 87 + + - MAX ( - + 58 ) + COUNT ( col2 ) FROM tab1
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT COUNT( * ) + - 65 FROM tab2
----
-62

skipif mysql # not compatible
query I rowsort label-2760
SELECT COUNT ( * ) + - 65 FROM tab2
----
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 16 * - col2 col1, - col0 FROM tab2
----
-368
-46
-640
-64
-928
-75

query I rowsort
SELECT - col1 + + 1 AS col1 FROM tab0
----
-20
-80
0

query I rowsort
SELECT 28 + - col0 FROM tab0
----
-59
-69
13

query I rowsort
SELECT ALL col0 - col2 AS col0 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT DISTINCT - 79 + + - 83 AS col1 FROM tab1 AS cor0
----
-162

onlyif mysql # DIV for integer division: 
query I rowsort label-2766
SELECT ALL col1 - + + col0 + + col2 DIV col1 FROM tab0 AS cor0
----
-66
3
66

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL col1 - + + col0 + + col2 / col1 FROM tab0 AS cor0
----
-66
3
66

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 68 + - col1 / + 93 + + 67 BETWEEN col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + + col0 col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT - MIN( ALL - - col2 ) * - ( MAX( ALL col0 ) ) - COUNT( ALL + col2 ) AS col0 FROM tab0
----
967

skipif mysql # not compatible
query I rowsort label-2769
SELECT - MIN ( ALL - - col2 ) * - ( MAX ( ALL col0 ) ) - COUNT ( ALL + col2 ) AS col0 FROM tab0
----
967

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT - + COUNT( * ) FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-2770
SELECT - + COUNT ( * ) FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + - col0 col2 FROM tab0
----
1215
1827
97

query II rowsort
SELECT - + 23 AS col1, 28 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 821b5c7f4ef6bc8c65e8a13f9fd6df69

query I rowsort
SELECT + ( + col0 ) * 36 FROM tab1 cor0
----
1836
3060
3276

query I rowsort
SELECT - + 88 * - 15 FROM tab2 cor0
----
1320
1320
1320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2775
SELECT DISTINCT - SUM( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 + + CAST( NULL AS SIGNED ) NOT IN ( + + col2 * + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT - SUM ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 + + CAST ( NULL AS INTEGER ) NOT IN ( + + col2 * + col2 )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 58 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2777
SELECT col0 FROM tab1 cor0 WHERE NOT + CAST( - 75 AS SIGNED ) < ( + 4 )
----

skipif mysql # not compatible
query I rowsort label-2777
SELECT col0 FROM tab1 cor0 WHERE NOT + CAST ( - 75 AS INTEGER ) < ( + 4 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 55 col2, 88 col2 FROM tab1 AS cor0
----
-55
88
-55
88
-55
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2779
SELECT ALL col0 * + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL col0 * + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT + col0 + - + 31 AS col0, col0 FROM tab0
----
-16
15
56
87
66
97

query III rowsort
SELECT DISTINCT - 9, + 30 AS col0, - col1 AS col1 FROM tab1
----
9 values hashing to ff6b480e835aed97f9e48a2748e401ab

query II rowsort
SELECT + 86 AS col1, 93 AS col0 FROM tab2, tab1 AS cor0
----
18 values hashing to 876796b47df0a9af3f66dc2579e72f59

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT DISTINCT 72 * - COUNT( * ) + + ( ( - + COUNT( * ) ) ) + SUM( - col2 ) + + ( - COUNT( * ) ) * 7 FROM tab2 AS cor0
----
-361

skipif mysql # not compatible
query I rowsort label-2783
SELECT DISTINCT 72 * - COUNT ( * ) + + ( ( - + COUNT ( * ) ) ) + SUM ( - col2 ) + + ( - COUNT ( * ) ) * 7 FROM tab2 AS cor0
----
-361

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2784
SELECT ALL - CAST( NULL AS SIGNED ) * 23 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2784
SELECT ALL - CAST ( NULL AS INTEGER ) * 23 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL < ( 40 * + + 13 )
----

query I rowsort
SELECT + - col1 * col0 FROM tab0 cor0 WHERE col0 / + col1 IS NOT NULL
----
-1215
-1827
-97

query I rowsort
SELECT + col0 * + - ( - - col2 ) + col0 AS col0 FROM tab1 AS cor0
----
-4845
-4930
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT ALL + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col2 * + col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col2 * + col2 <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2789
SELECT ALL CAST( 68 AS SIGNED ) + - 45 FROM tab2 cor0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL CAST ( 68 AS INTEGER ) + - 45 FROM tab2 cor0
----
23
23
23

query II rowsort
SELECT ALL + col2, 93 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + 42 + + col2 AS col1 FROM tab2 AS cor0
----
100
65
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT DISTINCT 30 + COUNT( * ) FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-2792
SELECT DISTINCT 30 + COUNT ( * ) FROM tab1 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) - + + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2793
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) - + + COUNT ( * ) FROM tab0 AS cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 22 IS NULL
----

query I rowsort
SELECT ALL col0 * - 73 FROM tab0 AS cor0
----
-1095
-6351
-7081

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT + COUNT( * ) + MIN( DISTINCT - col0 ) FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2796
SELECT + COUNT ( * ) + MIN ( DISTINCT - col0 ) FROM tab2 AS cor0
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-2797
SELECT - ( - - col2 ) + - 6 DIV col0 AS col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2797
SELECT - ( - - col2 ) + - 6 / col0 AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT col0 * - 52 * + col2 + + - col0 AS col1 FROM tab1 AS cor0
----
-254643
-260865
-321867

query I rowsort
SELECT ALL col1 - + 71 AS col1 FROM tab2
----
-20
-4
6

query I rowsort
SELECT ALL - 50 * + col2 AS col1 FROM tab0
----
-2350
-4950
-500

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN col2 - - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2802
SELECT DISTINCT col0 DIV 54 AS col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT col0 / 54 AS col0 FROM tab0
----
0
1

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 / ( + - col2 ) < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2804
SELECT DISTINCT - 95 / + col0 - + 70 * + 78 FROM tab1 cor0 WHERE NOT NULL BETWEEN - CAST( - + col2 AS DECIMAL ) * - 57 + + 67 AND NULL AND NOT 61 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2804
SELECT DISTINCT - 95 / + col0 - + 70 * + 78 FROM tab1 cor0 WHERE NOT NULL BETWEEN - CAST ( - + col2 AS REAL ) * - 57 + + 67 AND NULL AND NOT 61 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT DISTINCT + - COUNT( * ) * ( + 37 ) - 78 * 52 col0 FROM tab1 AS cor0
----
-4167

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2805
SELECT DISTINCT + - COUNT ( * ) * ( + 37 ) - 78 * 52 col0 FROM tab1 AS cor0
----
-4167

query I rowsort
SELECT DISTINCT + 88 * + col0 AS col2 FROM tab1 AS cor0
----
4488
7480
8008

query I rowsort
SELECT + col2 * - col1 + - col2 * + col1 - + ( - + col1 ) FROM tab2 AS cor0
----
-2295
-6083
-7705

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 <> col1 * - col1 * col1 OR col0 + 71 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( - ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT + col2 + - - 11 FROM tab0 AS cor0 WHERE NOT ( + col0 ) >= - + 99 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 72 col2 FROM tab1 AS cor0
----
1008
3384
360

query II rowsort
SELECT col1 * - col1 AS col1, col2 + + - 19 FROM tab2 WHERE NOT NULL BETWEEN ( + - col1 * col0 + + 35 ) AND col1
----

query I rowsort
SELECT + col2 - col1 - - col2 / col0 * - + col2 AS col0 FROM tab2 WHERE NOT - 66 <> col2 / + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT DISTINCT SUM( DISTINCT - - 19 ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-2814
SELECT DISTINCT SUM ( DISTINCT - - 19 ) FROM tab0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT - SUM( DISTINCT - + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2815
SELECT - SUM ( DISTINCT - + col1 ) FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT - COUNT( - col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2816
SELECT - COUNT ( - col0 ) FROM tab2
----
-3

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE - 50 BETWEEN - col2 + + 33 * col0 / 1 AND - - ( - - 41 )
----

query I rowsort
SELECT DISTINCT - + col2 * + 91 FROM tab2 AS cor0
----
-2093
-3640
-5278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2819
SELECT ALL 54 * col0 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL 54 * col0 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - + col1 * + col2 * + + col0 * + 68 + - col1 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
59
68
96

query I rowsort
SELECT + - 67 AS col1 FROM tab1 AS cor0
----
-67
-67
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 col1 FROM tab0 cor0
----
86
86
86

query I rowsort
SELECT ALL + 21 * + col0 * col0 + + - col0 - + col0 AS col2 FROM tab0 AS cor0
----
158775
197395
4695

query I rowsort
SELECT DISTINCT col1 - + + ( + col0 ) AS col2 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT ALL 13 - + - col1 AS col0 FROM tab1 AS cor0
----
18
27
60

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - + col0 + - col0 AND + 26
----

query I rowsort
SELECT + 93 + + - ( + + col2 ) + 55 FROM tab2
----
108
125
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2829
SELECT DISTINCT col0 - + col1 DIV - - 48 AS col1 FROM tab0
----
14
87
97

skipif mysql # not compatible
query I rowsort label-2829
SELECT DISTINCT col0 - + col1 / - - 48 AS col1 FROM tab0
----
14
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT SUM( - col1 ) + COUNT( * ) AS col0 FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-2830
SELECT SUM ( - col1 ) + COUNT ( * ) AS col0 FROM tab2
----
-192

query I rowsort
SELECT + ( + col1 ) * - col2 AS col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2832
SELECT DISTINCT - + col0 FROM tab2 AS cor0 WHERE NOT col1 * + col0 NOT IN ( col2, - 37 + + col2, col0 * - CAST( - col1 AS SIGNED ) * - col2 )
----

skipif mysql # not compatible
query I rowsort label-2832
SELECT DISTINCT - + col0 FROM tab2 AS cor0 WHERE NOT col1 * + col0 NOT IN ( col2, - 37 + + col2, col0 * - CAST ( - col1 AS INTEGER ) * - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2833
SELECT - - col0 DIV - 75 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2833
SELECT - - col0 / - 75 AS col2 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT DISTINCT MAX( 92 ) AS col0 FROM tab1 cor0
----
92

skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT MAX ( 92 ) AS col0 FROM tab1 cor0
----
92

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col2 BETWEEN - - col2 AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2836
SELECT 36 AS col1, - COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) > NULL
----
36
0

skipif mysql # not compatible
query II rowsort label-2836
SELECT 36 AS col1, - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) > NULL
----
36
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2837
SELECT DISTINCT + COUNT( * ) / CAST( NULL AS SIGNED ) / COUNT( * ) * + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT + 1 - - col0 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2837
SELECT DISTINCT + COUNT ( * ) / CAST ( NULL AS INTEGER ) / COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT + 1 - - col0 IS NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT DISTINCT + + COUNT( * ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2838
SELECT DISTINCT + + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2839
SELECT - 4 DIV + + col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2839
SELECT - 4 / + + col2 FROM tab0 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 19 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2841
SELECT - + col2 DIV - 67 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2841
SELECT - + col2 / - 67 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 59 col1 FROM tab2 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT - COUNT( ALL - 18 ) AS col2 FROM tab0 WHERE NOT - col2 * - col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2843
SELECT - COUNT ( ALL - 18 ) AS col2 FROM tab0 WHERE NOT - col2 * - col1 IS NULL
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2844
SELECT + col2 + - + 36 * col1 + col0 AS col1, CAST( NULL AS DECIMAL ) * - col0 + + + col2 - + col0 col0 FROM tab2
----
-1767
NULL
-2279
NULL
-2668
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2844
SELECT + col2 + - + 36 * col1 + col0 AS col1, CAST ( NULL AS REAL ) * - col0 + + + col2 - + col0 col0 FROM tab2
----
-1767
NULL
-2279
NULL
-2668
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col0 + + + 30 <> NULL
----

query I rowsort
SELECT ALL - + col2 + - - 69 FROM tab0 cor0
----
-30
22
59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN - col1 + + col2 * col0 AND - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT ALL + + COUNT( * ) FROM tab2 AS cor0 WHERE - 7 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL + + COUNT ( * ) FROM tab2 AS cor0 WHERE - 7 < NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 > + + col0 * 71 + - col1 + + col1 )
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + + col0 col2 FROM tab2 cor0
----
104
133
69

query I rowsort
SELECT ALL + 67 * col1 + - + col2 + + col1 + col1 FROM tab1 AS cor0
----
286
3175
870

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT + SUM( DISTINCT - col2 ) + - COUNT( * ) FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-2853
SELECT + SUM ( DISTINCT - col2 ) + - COUNT ( * ) FROM tab0 AS cor0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT ALL + 62 - - + COUNT( * ) * 26 FROM tab2 AS cor0
----
140

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL + 62 - - + COUNT ( * ) * 26 FROM tab2 AS cor0
----
140

query I rowsort
SELECT ALL + col1 * - col2 + col1 + - 65 AS col0 FROM tab2 cor0
----
-1187
-3068
-3884

query II rowsort
SELECT + 88 AS col2, col2 FROM tab0
----
88
10
88
47
88
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 / - col1 <= + col1
----

query I rowsort
SELECT + ( 30 ) FROM tab1
----
30
30
30

query I rowsort
SELECT ALL col1 * - - col1 * + col1 + col1 AS col2 FROM tab0 AS cor0
----
2
531522
9282

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT DISTINCT + - COUNT( * ) * - 11 AS col0 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT + - COUNT ( * ) * - 11 AS col0 FROM tab0 AS cor0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * 16 col2 FROM tab1 AS cor0
----
1360
1456
816

query II rowsort
SELECT - + col0 * col0 * + ( + col0 ) AS col1, ( 36 ) AS col2 FROM tab2 AS cor0
----
-262144
36
-421875
36
-97336
36

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2864
SELECT DISTINCT + - COUNT( - col0 ), 92 - COUNT( * ) + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0
92

skipif mysql # not compatible
query II rowsort label-2864
SELECT DISTINCT + - COUNT ( - col0 ), 92 - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2865
SELECT - col2 / + col1 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2865
SELECT - col2 / + col1 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT DISTINCT 51 * COUNT( * ) * 53 * + 78 * - - 27 AS col0 FROM tab1 AS cor0
----
17077554

skipif mysql # not compatible
query I rowsort label-2866
SELECT DISTINCT 51 * COUNT ( * ) * 53 * + 78 * - - 27 AS col0 FROM tab1 AS cor0
----
17077554

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2867
SELECT ALL - MIN( + col1 ) DIV 52 * + 57 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL - MIN ( + col1 ) / 52 * + 57 AS col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 84 col2 FROM tab0 AS cor0 WHERE NOT + 51 / col2 < NULL
----

query I rowsort
SELECT col0 * + col0 * - ( + + col1 ) FROM tab0
----
-158949
-18225
-9409

query I rowsort
SELECT ALL col1 + - col2 * - col2 FROM tab2
----
1677
3431
580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2871
SELECT DISTINCT + 18 + - - COUNT( * ), COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
21
NULL

skipif mysql # not compatible
query II rowsort label-2871
SELECT DISTINCT + 18 + - - COUNT ( * ), COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
21
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2872
SELECT ALL - col0 DIV col1 + - - 79 col1 FROM tab0 AS cor0
----
-18
75
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2872
SELECT ALL - col0 / col1 + - - 79 col1 FROM tab0 AS cor0
----
-18
75
79

query I rowsort
SELECT + - ( - 3 ) AS col0 FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT 84 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 4 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 WHERE NOT + ( col2 ) + col0 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2877
SELECT DISTINCT * FROM tab2 WHERE - 1 * - 77 - + - 95 IN ( + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2877
SELECT DISTINCT * FROM tab2 WHERE - 1 * - 77 - + - 95 IN ( + - CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT DISTINCT col2 AS col0, 47 FROM tab0
----
10
47
47
47
99
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, - 47 col2 FROM tab2
----
51
-47
67
-47
77
-47

query I rowsort
SELECT ALL - ( - 14 ) * + 67 AS col2 FROM tab1 WHERE NOT + 98 <> - col2 * + col1 / - - col1
----

query I rowsort
SELECT DISTINCT + col0 * - 51 AS col2 FROM tab0
----
-4437
-4947
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT ALL - COUNT( ALL col0 ) + - + ( - - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2882
SELECT ALL - COUNT ( ALL col0 ) + - + ( - - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * + - 13 BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT - col0 * 26 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2885
SELECT CAST( + + col2 AS SIGNED ) + + + col0 col2, 85 FROM tab2 AS cor0
----
104
85
133
85
69
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2885
SELECT CAST ( + + col2 AS INTEGER ) + + + col0 col2, 85 FROM tab2 AS cor0
----
104
85
133
85
69
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2886
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2886
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 WHERE NULL IS NULL
----
51
67
77

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 * col0 * + - 96 BETWEEN NULL AND + 16 + - + col2 - + col1 / + ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 - + - ( + col0 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col2 - - - 70 AS col1 FROM tab1 AS cor0
----
-11
-2
26

query II rowsort
SELECT ALL + + 58 + - col0 AS col1, - col1 FROM tab2 AS cor0
----
-17
-67
-6
-77
12
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 col2 FROM tab0 AS cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT DISTINCT + SUM( DISTINCT + + ( col2 ) ) FROM tab1 AS cor0 WHERE + 6 * - - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT + SUM ( DISTINCT + + ( col2 ) ) FROM tab1 AS cor0 WHERE + 6 * - - col2 IS NULL
----
NULL

query I rowsort
SELECT - col2 * - - col2 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT + SUM( + col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
103

skipif mysql # not compatible
query I rowsort label-2895
SELECT + SUM ( + col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
103

query I rowsort
SELECT ALL - + 44 AS col2 FROM tab1 AS cor0
----
-44
-44
-44

query II rowsort
SELECT DISTINCT col1 AS col0, - col0 AS col2 FROM tab2
----
51
-46
67
-75
77
-64

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 * + - col1 * col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2899
SELECT ALL - CAST( NULL AS SIGNED ) * - + 86 * col1 AS col2, + col2 * + col2 FROM tab2
----
NULL
1600
NULL
3364
NULL
529

skipif mysql # not compatible
query II rowsort label-2899
SELECT ALL - CAST ( NULL AS INTEGER ) * - + 86 * col1 AS col2, + col2 * + col2 FROM tab2
----
NULL
1600
NULL
3364
NULL
529

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 58 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * 28 * + + col2 - - 69 AS col0 FROM tab0 AS cor0
----
-2731
-274359
-61783

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 72 * 70 * 17 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - ( - col2 ) * - col2 * - 8 * 14 + - col0 - - - col2 AS col1 FROM tab1 AS cor0
----
1032045
389728
517729

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col2, + 15 + - - 92 FROM tab0 AS cor0
----
10
107
47
107
99
107

query I rowsort
SELECT DISTINCT ( - col2 ) + 90 AS col1 FROM tab0 cor0
----
-9
43
80

query II rowsort
SELECT ALL + - 69 AS col0, col2 AS col1 FROM tab2 AS cor0
----
-69
23
-69
40
-69
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT 52 + ( - - SUM( ALL - + col2 ) ) FROM tab0 AS cor0
----
-104

skipif mysql # not compatible
query I rowsort label-2908
SELECT 52 + ( - - SUM ( ALL - + col2 ) ) FROM tab0 AS cor0
----
-104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2909
SELECT COUNT( + ( + 18 ) ) DIV - COUNT( * ) + - 50 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2909
SELECT COUNT ( + ( + 18 ) ) / - COUNT ( * ) + - 50 FROM tab1 AS cor0
----
-51

query II rowsort
SELECT + 72 + - col2 AS col0, col0 + 97 AS col1 FROM tab2
----
14
172
32
161
49
143

query I rowsort
SELECT col1 + + - ( 14 ) + + col1 AS col1 FROM tab0
----
-12
148
28

query I rowsort
SELECT DISTINCT col0 - + col0 * - + col2 AS col1 FROM tab2 WHERE - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 * col0 * + col1 AS col0 FROM tab0
----
158949
18225
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT ALL - COUNT( * ) + - 29 AS col1 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL - COUNT ( * ) + - 29 AS col1 FROM tab2
----
-32

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + col2 AND + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2916
SELECT col0 DIV + col0 AS col1, 58 DIV + + col1 FROM tab1
----
1
1
1
11
1
4

skipif mysql # not compatible
query II rowsort label-2916
SELECT col0 / + col0 AS col1, 58 / + + col1 FROM tab1
----
1
1
1
11
1
4

query I rowsort
SELECT DISTINCT col1 * + col2 * + ( + col0 ) FROM tab2
----
197120
291450
53958

onlyif mysql # DIV for integer division: 
query I rowsort label-2918
SELECT ALL + 45 DIV ( - col0 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL + 45 / ( - col0 ) FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT ALL 24 * - COUNT( * ) AS col1 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL 24 * - COUNT ( * ) AS col1 FROM tab1
----
-72

query I rowsort
SELECT ALL - - col2 + 54 * - 58 * col1 AS col0 FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND - 85
----

query I rowsort
SELECT DISTINCT + 72 + - col1 * + 49 * - 56 FROM tab1 AS cor0
----
129040
13792
38488

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT + 23 + - - MIN( ALL + col0 ) + - 20 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-2923
SELECT + 23 + - - MIN ( ALL + col0 ) + - 20 FROM tab2
----
49

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 * - 8 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2925
SELECT ALL + col1 DIV + 42 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL + col1 / + 42 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND 88
----
0

skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND 88
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2927
SELECT + + 79, - 59 + + - 21 * + MAX( ( + - col0 ) ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
79
910

skipif mysql # not compatible
query II rowsort label-2927
SELECT + + 79, - 59 + + - 21 * + MAX ( ( + - col0 ) ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
79
910

query II rowsort
SELECT ALL + col1, 50 + 65 FROM tab1 AS cor0
----
14
115
47
115
5
115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col0, 73 col1 FROM tab2 AS cor0
----
-23
73
-40
73
-58
73

query I rowsort
SELECT DISTINCT ( + + col1 ) AS col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT DISTINCT MIN( 42 ) FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT MIN ( 42 ) FROM tab2 AS cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 96 col1 FROM tab0 AS cor0
----
-96
-96
-96

query II rowsort
SELECT - + 30 AS col1, col2 - - - 8 * + + col0 AS col0 FROM tab1 AS cor0
----
-30
-312
-30
-621
-30
-660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2934
SELECT - 36 DIV + SUM( - + col1 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2934
SELECT - 36 / + SUM ( - + col1 ) AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 NOT IN ( col0 + 24 * - 41 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - - col2 col1 FROM tab0 AS cor0
----
210
3807
99

query II rowsort
SELECT DISTINCT + + col0 AS col1, + 87 FROM tab2 AS cor0
----
46
87
64
87
75
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT DISTINCT - COUNT( - col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2938
SELECT DISTINCT - COUNT ( - col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL - SUM( - 84 ) AS col0 FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL - SUM ( - 84 ) AS col0 FROM tab1
----
252

query I rowsort
SELECT + col2 * + + 99 FROM tab0 WHERE NOT + + col2 + + - col1 * - col0 IN ( + + col0, 17 )
----
4653
9801
990

query I rowsort
SELECT ALL 15 * + - col0 FROM tab1
----
-1275
-1365
-765

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2942
SELECT DISTINCT * FROM tab0 WHERE NULL < - ( + + col2 ) - + CAST( - col0 AS DECIMAL ) * col0 + - col1
----

skipif mysql # not compatible
query III rowsort label-2942
SELECT DISTINCT * FROM tab0 WHERE NULL < - ( + + col2 ) - + CAST ( - col0 AS REAL ) * col0 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT DISTINCT COUNT( * ) * + + 18 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-2943
SELECT DISTINCT COUNT ( * ) * + + 18 FROM tab0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2944
SELECT ALL col1 DIV + 52 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL col1 / + 52 AS col1 FROM tab2
----
0
1
1

query I rowsort
SELECT + + col2 + + 69 AS col0 FROM tab1 WHERE NULL IS NULL
----
128
137
165

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 14 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - col0 / ( + col2 ) + + - col1 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT + MIN( DISTINCT - 50 ) FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-2948
SELECT + MIN ( DISTINCT - 50 ) FROM tab0 AS cor0
----
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 64 + - ( col0 ) col0 FROM tab2 AS cor0
----
-11
0
18

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 91 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + ( - 22 ) col2 FROM tab1 cor0
----
-27
-36
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT DISTINCT - MIN( ALL + + col0 ) + - 69 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-2952
SELECT DISTINCT - MIN ( ALL + + col0 ) + - 69 FROM tab0
----
-84

query I rowsort
SELECT DISTINCT + ( 32 ) * + col2 * - col0 FROM tab2
----
-139200
-33856
-81920

query III rowsort
SELECT * FROM tab2 WHERE - col1 * col2 + + + 18 + + ( - + col0 ) * - ( col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 85 * + + col0 AS col2 FROM tab1
----
-4335
-7225
-7735

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN - + col2 + + col0 AND NULL
----

query I rowsort
SELECT ALL 54 AS col0 FROM tab1 AS cor0 WHERE 52 * + - 14 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT ALL + COUNT( DISTINCT col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL + COUNT ( DISTINCT col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col1 + 34 AS col1 FROM tab1 AS cor0
----
-13
20
29

query I rowsort
SELECT - ( - 83 ) FROM tab1
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT ALL MIN( DISTINCT + 56 ) AS col1 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL MIN ( DISTINCT + 56 ) AS col1 FROM tab2
----
56

query I rowsort
SELECT ALL + 97 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # DIV for integer division: 
query II rowsort label-2963
SELECT - col0 DIV col0, col1 AS col1 FROM tab2 AS cor0
----
-1
51
-1
67
-1
77

skipif mysql # not compatible
query II rowsort label-2963
SELECT - col0 / col0, col1 AS col1 FROM tab2 AS cor0
----
-1
51
-1
67
-1
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 * col0 + + col2 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT COUNT( * ) * - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2965
SELECT COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2966
SELECT - 10 DIV col0 + + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2966
SELECT - 10 / col0 + + col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT + ( - MAX( + + col0 ) ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2967
SELECT + ( - MAX ( + + col0 ) ) AS col0 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT * FROM tab2 WHERE NOT - 18 <> col0 * 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT - 27 * COUNT( * ) * + - COUNT( * ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-2969
SELECT - 27 * COUNT ( * ) * + - COUNT ( * ) FROM tab0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT + MAX( 15 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2970
SELECT + MAX ( 15 ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT ( - + SUM( DISTINCT + col0 ) ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2971
SELECT ( - + SUM ( DISTINCT + col0 ) ) FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT DISTINCT - - MAX( + col1 ) AS col2 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-2972
SELECT DISTINCT - - MAX ( + col1 ) AS col2 FROM tab1 cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col2, col0 col2 FROM tab1 AS cor0
----
59
85
68
91
96
51

query II rowsort
SELECT 59 AS col2, 50 FROM tab1 AS cor0
----
59
50
59
50
59
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT ALL MIN( + 46 ) AS col1 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL MIN ( + 46 ) AS col1 FROM tab1 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT + - COUNT( * ) * + 51 FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-2976
SELECT + - COUNT ( * ) * + 51 FROM tab0 AS cor0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT ALL - COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NOT - 87 * + - col0 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL - COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NOT - 87 * + - col0 IS NULL )
----
0

query II rowsort
SELECT - 58 * col2, - col2 AS col0 FROM tab1
----
-3422
-59
-3944
-68
-5568
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT - MAX( DISTINCT - - col0 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2979
SELECT - MAX ( DISTINCT - - col0 ) AS col0 FROM tab0
----
-97

query I rowsort
SELECT - + col0 FROM tab0 WHERE - col0 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT DISTINCT - 96 + + - COUNT( * ) col0 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2981
SELECT DISTINCT - 96 + + - COUNT ( * ) col0 FROM tab1 AS cor0
----
-99

query I rowsort
SELECT + col0 + + col1 * - - 44 FROM tab0 AS cor0
----
1011
141
3579

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + - 57 + - col2 col2 FROM tab2 AS cor0
----
-20
-29
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT 99 + + 66 * - COUNT( * ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2984
SELECT 99 + + 66 * - COUNT ( * ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT ALL 13 * 36 FROM tab1 AS cor0
----
468
468
468

onlyif mysql # DIV for integer division: 
query I rowsort label-2986
SELECT ALL + col0 DIV col0 + + col1 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL + col0 / col0 + + col1 FROM tab1
----
15
48
6

query I rowsort
SELECT ALL - 68 * - col1 AS col1 FROM tab0
----
1428
5508
68

query II rowsort
SELECT ALL - col2 AS col0, + col1 AS col2 FROM tab2
----
-23
51
-40
77
-58
67

query I rowsort
SELECT DISTINCT - col2 - - col1 AS col2 FROM tab2
----
28
37
9

query II rowsort
SELECT DISTINCT col1, + col2 * - - 95 AS col0 FROM tab1
----
14
9120
47
6460
5
5605

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT ALL - MAX( - - col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL - MAX ( - - col2 ) AS col2 FROM tab2
----
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2992
SELECT - + col0 - CAST( NULL AS DECIMAL ) * + + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2992
SELECT - + col0 - CAST ( NULL AS REAL ) * + + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 80 NOT BETWEEN - col2 AND + col0
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT - + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2994
SELECT - + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT + + 37 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
37

query I rowsort
SELECT DISTINCT col2 * + 0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2997
SELECT ALL - + CAST( NULL AS SIGNED ) AS col2, ( col2 ) FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-2997
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col2, ( col2 ) FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2998
SELECT ALL + CAST( - + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT ( ( - col1 BETWEEN - CAST( NULL AS SIGNED ) AND col1 * - CAST( - 26 AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL + CAST ( - + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT ( ( - col1 BETWEEN - CAST ( NULL AS INTEGER ) AND col1 * - CAST ( - 26 AS INTEGER ) ) )
----

query I rowsort
SELECT - col2 * - - 57 FROM tab0 AS cor0
----
-2679
-5643
-570

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 58 = 4
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3001
SELECT DISTINCT 20 AS col0, MIN( - col1 ) AS col2 FROM tab2 AS cor0
----
20
-77

skipif mysql # not compatible
query II rowsort label-3001
SELECT DISTINCT 20 AS col0, MIN ( - col1 ) AS col2 FROM tab2 AS cor0
----
20
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3002
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + + CAST( NULL AS SIGNED ) BETWEEN - + col2 AND + - col1
----

skipif mysql # not compatible
query III rowsort label-3002
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + + CAST ( NULL AS INTEGER ) BETWEEN - + col2 AND + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT ALL + COUNT( + - col1 ) * + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL + COUNT ( + - col1 ) * + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9

query I rowsort
SELECT - ( col0 ) * - + col1 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT DISTINCT + col2 * - col1 + + col2 FROM tab2 AS cor0
----
-1150
-3040
-3828

query I rowsort
SELECT ALL + - col2 * - col1 * col1 + + - ( - col0 ) FROM tab1 AS cor0
----
150303
1560
18867

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND - col0 * + ( col2 )
----

query I rowsort
SELECT ALL ( - 12 ) FROM tab0
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT - SUM( - 20 ) FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-3009
SELECT - SUM ( - 20 ) FROM tab0 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT DISTINCT SUM( + col1 ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
103

skipif mysql # not compatible
query I rowsort label-3010
SELECT DISTINCT SUM ( + col1 ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
103

query I rowsort
SELECT DISTINCT ( 13 ) AS col1 FROM tab2 cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE - 59 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3012
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE - 59 IS NOT NULL
----
-3

query I rowsort
SELECT + - 63 + + + col0 + col1 + col2 FROM tab2 WHERE 52 + col2 IS NOT NULL
----
118
137
57

query I rowsort
SELECT 47 * + 77 FROM tab2
----
3619
3619
3619

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3015
SELECT + CAST( - - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3015
SELECT + CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT col0, + 42 FROM tab2 AS cor0
----
46
42
64
42
75
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT ALL + 9 + ( - MAX( - col0 ) ) * COUNT( * ) FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL + 9 + ( - MAX ( - col0 ) ) * COUNT ( * ) FROM tab1 AS cor0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT ALL - + 51 + COUNT( * ) FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL - + 51 + COUNT ( * ) FROM tab1 AS cor0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3019
SELECT * FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN - col2 / + col1 + + 6 * col0 - + 74 + + - 6 / + col2 AND - col1 * + ( + col1 ) * + - col1 * CAST( NULL AS SIGNED ) * + col2 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3019
SELECT * FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN - col2 / + col1 + + 6 * col0 - + 74 + + - 6 / + col2 AND - col1 * + ( + col1 ) * + - col1 * CAST ( NULL AS INTEGER ) * + col2 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 57 BETWEEN - col0 AND + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + 15 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3021
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + 15 IS NOT NULL
----
3

query I rowsort
SELECT ALL col1 - - - col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT 55 * + col0 + col2 AS col2 FROM tab0
----
4795
5434
872

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT ALL 28 * COUNT( * ) AS col0 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL 28 * COUNT ( * ) AS col0 FROM tab2
----
84

query I rowsort
SELECT + 7 + + col2 FROM tab0
----
106
17
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3026
SELECT col1 * 66 + + + 4 - col0 DIV 65 AS col0 FROM tab0
----
1389
5350
69

skipif mysql # not compatible
query I rowsort label-3026
SELECT col1 * 66 + + + 4 - col0 / 65 AS col0 FROM tab0
----
1389
5350
69

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= - - 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT ALL - - ( - - COUNT( * ) ) FROM tab1 WHERE NOT + col1 <> col2 * - 95
----
0

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL - - ( - - COUNT ( * ) ) FROM tab1 WHERE NOT + col1 <> col2 * - 95
----
0

query II rowsort
SELECT - 43 + + col0 * ( + col1 ), - col0 AS col1 FROM tab2
----
2303
-46
4885
-64
4982
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + + col2 col1 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT DISTINCT - col2 * + - 87 AS col2 FROM tab0 AS cor0
----
4089
8613
870

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 * + col2 + + col1 - + + col1 * ( col2 ) + col2 * + 22 * 60 FROM tab2 AS cor0
----
28065
46717
68855

query I rowsort
SELECT DISTINCT + col2 + - 25 FROM tab1 AS cor0 WHERE NOT col1 * + 46 / - col1 IS NULL
----
34
43
71

query I rowsort
SELECT + - col1 * 55 FROM tab2 AS cor0
----
-2805
-3685
-4235

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT DISTINCT - MAX( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT - MAX ( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
46

query I rowsort
SELECT - + col2 * + 71 AS col0 FROM tab0 AS cor0
----
-3337
-7029
-710

onlyif mysql # DIV for integer division: 
query I rowsort label-3038
SELECT ALL - - col0 DIV 22 AS col2 FROM tab2 cor0
----
2
2
3

skipif mysql # not compatible
query I rowsort label-3038
SELECT ALL - - col0 / 22 AS col2 FROM tab2 cor0
----
2
2
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3039
SELECT DISTINCT ( - CAST( + + ( + col2 ) AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT ( - CAST ( + + ( + col2 ) AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT DISTINCT + MIN( - 23 ) AS col1 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3040
SELECT DISTINCT + MIN ( - 23 ) AS col1 FROM tab1 AS cor0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3041
SELECT - COUNT( * ) DIV - 68 + + CAST( - COUNT( * ) AS SIGNED ) FROM tab0, tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3041
SELECT - COUNT ( * ) / - 68 + + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0, tab0 cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 / ( + 38 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 70 AS col2, + col0 AS col2 FROM tab0
----
70
15
70
87
70
97

query II rowsort
SELECT ( + 59 ) * col2 + + - 35 AS col0, - col2 FROM tab2
----
1322
-23
2325
-40
3387
-58

query II rowsort
SELECT ALL col2 AS col1, col0 + + + col0 + + - 43 AS col2 FROM tab2
----
23
49
40
85
58
107

query I rowsort
SELECT DISTINCT col1 + + - 66 FROM tab1
----
-19
-52
-61

query I rowsort
SELECT - 46 + col2 * + 70 + + col0 AS col2 FROM tab0
----
3259
6981
741

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col0 * + col2 + - col0 > NULL
----

query II rowsort
SELECT - 26, 48 + - col2 AS col0 FROM tab2 AS cor0
----
-26
-10
-26
25
-26
8

query I rowsort
SELECT ALL - col0 * + 16 * + + col1 + + - col1 AS col1 FROM tab1 AS cor0
----
-11438
-6805
-68479

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3051
SELECT DISTINCT - + CAST( 89 AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-89

skipif mysql # not compatible
query I rowsort label-3051
SELECT DISTINCT - + CAST ( 89 AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-89

query II rowsort
SELECT ALL col2 * + 27 + col2, + col2 FROM tab2
----
1120
40
1624
58
644
23

query I rowsort
SELECT DISTINCT + - col1 * + - 16 FROM tab1 AS cor0
----
224
752
80

query I rowsort
SELECT - - col1 + - col0 * - col0 * 67 * - - ( + 57 ) FROM tab2 AS cor0
----
15642701
21481942
8081055

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT DISTINCT COUNT( * ) + + 98 AS col2 FROM tab0 cor0
----
101

skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT COUNT ( * ) + + 98 AS col2 FROM tab0 cor0
----
101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 65 * col1 * + + col2 col1 FROM tab2 AS cor0
----
200240
252648
76268

query II rowsort
SELECT ALL + col2 + - - col2 * col0 AS col1, + col2 AS col1 FROM tab2 AS cor0
----
1081
23
2600
40
4408
58

query I rowsort
SELECT ALL + col0 - + 71 FROM tab1 AS cor0
----
-20
14
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3059
SELECT - CAST( - - ( - ( - + col1 ) ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3059
SELECT - CAST ( - - ( - ( - + col1 ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 38 col2 FROM tab1 AS cor0
----
38
38
38

query I rowsort
SELECT DISTINCT 46 - + 2 FROM tab0 AS cor0
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 - - + col1 col1 FROM tab1 cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT DISTINCT + - COUNT( * ) FROM tab0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3063
SELECT DISTINCT + - COUNT ( * ) FROM tab0 WHERE + col1 IS NULL
----
0

query I rowsort
SELECT + ( + 71 ) AS col2 FROM tab0
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT MAX( + + 8 ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-3065
SELECT MAX ( + + 8 ) FROM tab1
----
8

query I rowsort
SELECT DISTINCT col1 * 65 * + ( + col1 ) - 10 FROM tab0
----
28655
426455
55

query I rowsort
SELECT + ( + - col1 ) AS col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ( - col0 ) * + + 23 FROM tab0
----
-2001
-2231
-345

query I rowsort
SELECT + 31 * - 48 FROM tab0 AS cor0
----
-1488
-1488
-1488

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 IN ( + + col0 - col0 * 97, + col0, 96 * - 2 * - + col0 + - col1, - 60, 77 * - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3071
SELECT ALL + - CAST( NULL AS SIGNED ), 38 col2 FROM tab2 AS cor0
----
NULL
38
NULL
38
NULL
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3071
SELECT ALL + - CAST ( NULL AS INTEGER ), 38 col2 FROM tab2 AS cor0
----
NULL
38
NULL
38
NULL
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT ALL + COUNT( + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL + COUNT ( + col2 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3073
SELECT CAST( - + 59 AS SIGNED ) AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

skipif mysql # not compatible
query I rowsort label-3073
SELECT CAST ( - + 59 AS INTEGER ) AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL NOT IN ( + col0 / + col0, col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3074
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL NOT IN ( + col0 / + col0, col2 )
----
0

query II rowsort
SELECT + 76 * col2 + - ( col0 ), col2 FROM tab0 AS cor0
----
3557
47
673
10
7427
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT - COUNT( * ) * + 46 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-3076
SELECT - COUNT ( * ) * + 46 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3077
SELECT ALL + MIN( - CAST( 60 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL + MIN ( - CAST ( 60 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-60

query I rowsort
SELECT ALL col0 FROM tab1 cor0 WHERE NOT NULL < + 26
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3079
SELECT - 37 DIV - col0 * - ( 40 ) col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3079
SELECT - 37 / - col0 * - ( 40 ) col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 68 - + 3 * + 34 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT DISTINCT + MIN( ALL col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3081
SELECT DISTINCT + MIN ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT + col2 * - + col0 FROM tab2 cor0
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT 56 * + 88 FROM tab1
----
4928

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + ( col0 ) / - col2 - - 5 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3085
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3085
SELECT DISTINCT CAST ( NULL AS REAL ) * + col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT DISTINCT + + COUNT( * ) FROM tab2 WHERE - col0 * - 83 + - - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT + + COUNT ( * ) FROM tab2 WHERE - col0 * - 83 + - - col2 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, 91 AS col2 FROM tab1
----
14
91
47
91
5
91

query I rowsort
SELECT - col0 + col1 - col2 FROM tab0
----
-195
-76
19

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) NOT IN ( 62 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT ALL + COUNT( * ) + - ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL + COUNT ( * ) + - ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT 92 * - - col1 AS col0 FROM tab0 AS cor0
----
1932
7452
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3092
SELECT COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT ALL + col1 * + 22 FROM tab2
----
1122
1474
1694

onlyif mysql # DIV for integer division: 
query I rowsort label-3094
SELECT ALL 48 DIV col2 * + 95 * 47 - + + col2 * + col2 AS col0 FROM tab2 AS cor0
----
-3364
2865
8401

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL 48 / col2 * + 95 * 47 - + + col2 * + col2 AS col0 FROM tab2 AS cor0
----
-3364
2865
8401

query I rowsort
SELECT DISTINCT - + col2 + + 67 + col1 AS col2 FROM tab1 cor0
----
-15
13
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3096
SELECT + COUNT( * ) - - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3096
SELECT + COUNT ( * ) - - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3097
SELECT - - col0 - CAST( - 23 AS SIGNED ) FROM tab2 AS cor0
----
69
87
98

skipif mysql # not compatible
query I rowsort label-3097
SELECT - - col0 - CAST ( - 23 AS INTEGER ) FROM tab2 AS cor0
----
69
87
98

query I rowsort
SELECT DISTINCT col0 + + - 34 FROM tab0 AS cor0
----
-19
53
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT DISTINCT - + COUNT( * ) - - 54 + 15 + + 0 AS col1 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3099
SELECT DISTINCT - + COUNT ( * ) - - 54 + 15 + + 0 AS col1 FROM tab2 AS cor0
----
66

query I rowsort
SELECT ALL - col0 * + col1 * + ( + col1 ) FROM tab1
----
-201019
-2125
-9996

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT + MAX( ALL - 76 ) AS col1 FROM tab1
----
-76

skipif mysql # not compatible
query I rowsort label-3101
SELECT + MAX ( ALL - 76 ) AS col1 FROM tab1
----
-76

query I rowsort
SELECT DISTINCT col1 * - + col1 AS col0 FROM tab1
----
-196
-2209
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-3103
SELECT DISTINCT col0 DIV - - col2 AS col2 FROM tab0
----
0
8

skipif mysql # not compatible
query I rowsort label-3103
SELECT DISTINCT col0 / - - col2 AS col2 FROM tab0
----
0
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT MIN( DISTINCT - - col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3104
SELECT MIN ( DISTINCT - - col0 ) AS col0 FROM tab2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3105
SELECT ALL - + MAX( ALL CAST( - col2 AS SIGNED ) ) AS col1 FROM tab0 WHERE NOT + + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL - + MAX ( ALL CAST ( - col2 AS INTEGER ) ) AS col1 FROM tab0 WHERE NOT + + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
15
87
97

query I rowsort
SELECT - + col2 + 13 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT ALL 19, col0 * - ( + 17 ) AS col1 FROM tab2
----
19
-1088
19
-1275
19
-782

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT DISTINCT COUNT( * ) * + 66 FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT COUNT ( * ) * + 66 FROM tab0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT DISTINCT + 86 + + COUNT( * ) * + COUNT( - 37 ) col1 FROM tab1 WHERE NOT col2 > NULL
----
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3110
SELECT DISTINCT + 86 + + COUNT ( * ) * + COUNT ( - 37 ) col1 FROM tab1 WHERE NOT col2 > NULL
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-3111
SELECT ALL - 24 * col1 DIV 4 AS col0 FROM tab2
----
-306
-402
-462

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL - 24 * col1 / 4 AS col0 FROM tab2
----
-306
-402
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT COUNT( * ) + MIN( + 19 ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-3112
SELECT COUNT ( * ) + MIN ( + 19 ) FROM tab1
----
22

query I rowsort
SELECT ALL ( - - col1 ) AS col1 FROM tab0
----
1
21
81

query III rowsort
SELECT * FROM tab2 WHERE - ( - col2 ) < col2
----

query II rowsort
SELECT col0 + 90 AS col2, 91 FROM tab1
----
141
91
175
91
181
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3116
SELECT DISTINCT - col0 * + - CAST( NULL AS SIGNED ) * + 80 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3116
SELECT DISTINCT - col0 * + - CAST ( NULL AS INTEGER ) * + 80 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3117
SELECT ALL + 97 + CAST( - CAST( - 18 AS SIGNED ) AS SIGNED ) AS col2 FROM tab0
----
115
115
115

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL + 97 + CAST ( - CAST ( - 18 AS INTEGER ) AS INTEGER ) AS col2 FROM tab0
----
115
115
115

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN - - col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 59 * - col1 - - ( - col2 ) AS col0 FROM tab2 AS cor0
----
-3032
-4011
-4583

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3120
SELECT - CAST( 2 AS SIGNED ) - - - col1 FROM tab1 AS cor0
----
-16
-49
-7

skipif mysql # not compatible
query I rowsort label-3120
SELECT - CAST ( 2 AS INTEGER ) - - - col1 FROM tab1 AS cor0
----
-16
-49
-7

query I rowsort
SELECT ALL + 57 * - col2 + - col2 * - + 97 FROM tab2 AS cor0
----
1600
2320
920

onlyif mysql # DIV for integer division: 
query I rowsort label-3122
SELECT + col1 DIV + ( + ( - + ( + 87 ) ) ) * + - 34 + - 31 FROM tab0 AS cor0
----
-31
-31
-31

skipif mysql # not compatible
query I rowsort label-3122
SELECT + col1 / + ( + ( - + ( + 87 ) ) ) * + - 34 + - 31 FROM tab0 AS cor0
----
-31
-31
-31

query I rowsort
SELECT DISTINCT + - 17 AS col2 FROM tab0 AS cor0
----
-17

query I rowsort
SELECT DISTINCT + col1 + - 50 AS col2 FROM tab2 AS cor0
----
1
17
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT + - 78 * - COUNT( * ) FROM tab1 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-3125
SELECT + - 78 * - COUNT ( * ) FROM tab1 AS cor0
----
234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 col2 FROM tab1 AS cor0
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT - MIN( - + col2 ) AS col0 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-3127
SELECT - MIN ( - + col2 ) AS col0 FROM tab2 cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT - MIN( - - col1 ) AS col2 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3128
SELECT - MIN ( - - col1 ) AS col2 FROM tab1 cor0
----
-5

query I rowsort
SELECT ( + + 21 ) AS col1 FROM tab0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT ALL 31 * COUNT( ALL - col2 ) col1 FROM tab2
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3130
SELECT ALL 31 * COUNT ( ALL - col2 ) col1 FROM tab2
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3131
SELECT - + 51 DIV col0 AS col2 FROM tab0 WHERE NOT col2 >= col0
----
0

skipif mysql # not compatible
query I rowsort label-3131
SELECT - + 51 / col0 AS col2 FROM tab0 WHERE NOT col2 >= col0
----
0

query II rowsort
SELECT DISTINCT - 18, - col1 AS col2 FROM tab2 AS cor0
----
-18
-51
-18
-67
-18
-77

query I rowsort
SELECT 40 FROM tab2 AS cor0 WHERE NOT col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 84 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3134
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 84 IS NOT NULL
----
0

query I rowsort
SELECT + - col2 AS col0 FROM tab0 AS cor0 WHERE NULL > - col1 * - 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT + + MIN( + col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3136
SELECT + + MIN ( + col1 ) AS col2 FROM tab2 AS cor0
----
51

query I rowsort
SELECT DISTINCT + 32 * + 38 + 24 + + 90 AS col2 FROM tab1 AS cor0
----
1330

query I rowsort
SELECT ALL - 16 + + - col2 * col2 AS col1 FROM tab0 AS cor0
----
-116
-2225
-9817

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > + 85 * 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE - - ( - col1 ) * + - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3140
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE - - ( - col1 ) * + - col2 IS NULL
----
0

query I rowsort
SELECT - col2 + - - col2 / - col0 + 8 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 45 + - col1 FROM tab1
----
-2
31
40

query I rowsort
SELECT 15 * + - ( - 90 ) + - + 19 FROM tab2
----
1331
1331
1331

query I rowsort
SELECT - - col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) > - - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 32 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( 97 ) * + 13 AS col2 FROM tab0
----
1261
1261
1261

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT + SUM( ALL 52 ) AS col1 FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-3147
SELECT + SUM ( ALL 52 ) AS col1 FROM tab2
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-3148
SELECT ALL col2 DIV col0 col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3148
SELECT ALL col2 / col0 col1 FROM tab1
----
0
0
1

query I rowsort
SELECT col1 + + 86 FROM tab0
----
107
167
87

query I rowsort
SELECT DISTINCT col2 + col2 * + 32 FROM tab0 WHERE NOT - col2 / 79 IS NULL
----
1551
3267
330

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 col1 FROM tab0 WHERE - col1 IS NOT NULL
----
225
7569
9409

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT ( col1 ) IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT + 3 - col0 AS col1 FROM tab0
----
-12
-84
-94

query I rowsort
SELECT + 76 + col0 AS col0 FROM tab1
----
127
161
167

query I rowsort
SELECT DISTINCT 37 + - col1 FROM tab2
----
-14
-30
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 + + col1 col2 FROM tab1
----
101
59
68

query I rowsort
SELECT DISTINCT + col0 + 82 FROM tab1
----
133
167
173

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT 5 + - COUNT( * ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-3158
SELECT 5 + - COUNT ( * ) FROM tab2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3159
SELECT DISTINCT * FROM tab0 WHERE ( + col1 + - CAST( 10 + col0 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3159
SELECT DISTINCT * FROM tab0 WHERE ( + col1 + - CAST ( 10 + col0 AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3160
SELECT ALL * FROM tab2 WHERE ( - CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3160
SELECT ALL * FROM tab2 WHERE ( - CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 + + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 4 * col0 + - 29 NOT BETWEEN - col0 AND 90
----

query I rowsort
SELECT DISTINCT ( 85 ) AS col2 FROM tab1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3165
SELECT col0 * - col0 + + 30 FROM tab2 WHERE NOT ( + CAST( NULL AS SIGNED ) ) BETWEEN + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3165
SELECT col0 * - col0 + + 30 FROM tab2 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT - SUM( ( col0 ) ) + - COUNT( * ) FROM tab1
----
-230

skipif mysql # not compatible
query I rowsort label-3166
SELECT - SUM ( ( col0 ) ) + - COUNT ( * ) FROM tab1
----
-230

query I rowsort
SELECT + 89 FROM tab2 WHERE NOT ( - col1 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT ALL 28 + COUNT( * ) * MAX( DISTINCT col2 ) AS col2 FROM tab2 WHERE NOT NULL NOT IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3168
SELECT ALL 28 + COUNT ( * ) * MAX ( DISTINCT col2 ) AS col2 FROM tab2 WHERE NOT NULL NOT IN ( - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT + 48 + + COUNT( * ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-3169
SELECT + 48 + + COUNT ( * ) FROM tab0
----
51

query I rowsort
SELECT - 64 + col0 FROM tab1
----
-13
21
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT DISTINCT - MIN( 46 ) AS col1 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT - MIN ( 46 ) AS col1 FROM tab1
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3172
SELECT 49 AS col0 FROM tab2 WHERE ( + col2 ) NOT IN ( CAST( col1 AS SIGNED ) + + col0 )
----
49
49
49

skipif mysql # not compatible
query I rowsort label-3172
SELECT 49 AS col0 FROM tab2 WHERE ( + col2 ) NOT IN ( CAST ( col1 AS INTEGER ) + + col0 )
----
49
49
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3173
SELECT ( + col1 ) * col2 - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT ( col2 ) BETWEEN ( col0 * + 13 ) AND col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3173
SELECT ( + col1 ) * col2 - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT ( col2 ) BETWEEN ( col0 * + 13 ) AND col2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE 51 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE ( - 30 ) NOT BETWEEN NULL AND col2 / + col2
----

query I rowsort
SELECT + 89 * - 58 FROM tab2 AS cor0
----
-5162
-5162
-5162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3177
SELECT DISTINCT - COUNT( * ) DIV - 51 AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3177
SELECT DISTINCT - COUNT ( * ) / - 51 AS col2 FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3178
SELECT + 65 DIV col1 + - col1 AS col2 FROM tab2 AS cor0 WHERE NOT col0 > CAST( ( 78 ) AS SIGNED ) + - col2
----
-50

skipif mysql # not compatible
query I rowsort label-3178
SELECT + 65 / col1 + - col1 AS col2 FROM tab2 AS cor0 WHERE NOT col0 > CAST ( ( 78 ) AS INTEGER ) + - col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT ALL COUNT( * ) * 22 AS col0 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL COUNT ( * ) * 22 AS col0 FROM tab2 AS cor0
----
66

query I rowsort
SELECT DISTINCT + ( col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( + col0 * + 67 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT + 62 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-3181
SELECT + 62 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT COUNT( DISTINCT col2 ) AS col1 FROM tab2 WHERE NOT col2 * - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3182
SELECT COUNT ( DISTINCT col2 ) AS col1 FROM tab2 WHERE NOT col2 * - col0 IS NULL
----
3

query I rowsort
SELECT - 20 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT DISTINCT MIN( ALL - col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-3184
SELECT DISTINCT MIN ( ALL - col0 ) FROM tab0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3185
SELECT DISTINCT - col0 + CAST( - 23 AS SIGNED ) FROM tab1
----
-108
-114
-74

skipif mysql # not compatible
query I rowsort label-3185
SELECT DISTINCT - col0 + CAST ( - 23 AS INTEGER ) FROM tab1
----
-108
-114
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT MIN( DISTINCT - ( + col1 ) ) FROM tab0 WHERE NULL NOT BETWEEN ( 1 ) * + 16 AND 63
----
NULL

skipif mysql # not compatible
query I rowsort label-3186
SELECT MIN ( DISTINCT - ( + col1 ) ) FROM tab0 WHERE NULL NOT BETWEEN ( 1 ) * + 16 AND 63
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3187
SELECT ALL - CAST( NULL AS SIGNED ) * + col0 + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL - CAST ( NULL AS INTEGER ) * + col0 + col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 <> 9
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN ( 47 ) AND ( NULL )
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT ALL - - COUNT( * ) + 33 AS col1 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL - - COUNT ( * ) + 33 AS col1 FROM tab0 AS cor0
----
36

query I rowsort
SELECT DISTINCT - col0 + - 90 AS col0 FROM tab2 cor0
----
-136
-154
-165

query I rowsort
SELECT ( + 47 ) + - 7 AS col0 FROM tab0 AS cor0
----
40
40
40

onlyif mysql # DIV for integer division: 
query III rowsort label-3193
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 DIV col0 + col2 <= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3193
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 / col0 + col2 <= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT DISTINCT + SUM( + col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3194
SELECT DISTINCT + SUM ( + col1 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT - col1 + 71 AS col0 FROM tab2 AS cor0
----
-6
20
4

query I rowsort
SELECT ALL col0 + - 37 * ( 87 - + col2 ) FROM tab2 AS cor0
----
-1675
-2322
-998

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT ALL - COUNT( * ) * + ( - COUNT( * ) * COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT - 99 NOT BETWEEN + col1 + - col0 AND ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL - COUNT ( * ) * + ( - COUNT ( * ) * COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT - 99 NOT BETWEEN + col1 + - col0 AND ( col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3198
SELECT DISTINCT CAST( 10 AS SIGNED ) + 0 * 15 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3198
SELECT DISTINCT CAST ( 10 AS INTEGER ) + 0 * 15 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 * 78 * + col0 + - 63 FROM tab0
----
54927
67797
748971

onlyif mysql # DIV for integer division: 
query I rowsort label-3200
SELECT col2 * + + col2 DIV col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3200
SELECT col2 * + + col2 / col2 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3201
SELECT ALL CAST( NULL AS DECIMAL ) col1 FROM tab1 WHERE NOT ( NULL ) BETWEEN - col0 + col1 / 30 AND ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3201
SELECT ALL CAST ( NULL AS REAL ) col1 FROM tab1 WHERE NOT ( NULL ) BETWEEN - col0 + col1 / 30 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 43 col1 FROM tab1
----
2537
2924
4128

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT DISTINCT ( - COUNT( * ) ) + + 33 FROM tab0 WHERE NOT NULL IS NULL
----
33

skipif mysql # not compatible
query I rowsort label-3203
SELECT DISTINCT ( - COUNT ( * ) ) + + 33 FROM tab0 WHERE NOT NULL IS NULL
----
33

query I rowsort
SELECT - 61 * - - 92 FROM tab2
----
-5612
-5612
-5612

query I rowsort
SELECT 10 + + col0 AS col1 FROM tab1 WHERE ( col1 ) > ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3206
SELECT * FROM tab2 WHERE col2 BETWEEN CAST( 19 AS SIGNED ) - + col1 AND ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-3206
SELECT * FROM tab2 WHERE col2 BETWEEN CAST ( 19 AS INTEGER ) - + col1 AND ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3207
SELECT ALL CAST( + col0 AS SIGNED ) FROM tab2 WHERE ( - 92 * col0 ) NOT IN ( col0 - + 13 * col2 )
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL CAST ( + col0 AS INTEGER ) FROM tab2 WHERE ( - 92 * col0 ) NOT IN ( col0 - + 13 * col2 )
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3208
SELECT * FROM tab0 WHERE - CAST( - col1 AS SIGNED ) * col0 < col1 * col2
----
15
81
47
97
1
99

skipif mysql # not compatible
query III rowsort label-3208
SELECT * FROM tab0 WHERE - CAST ( - col1 AS INTEGER ) * col0 < col1 * col2
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT + + COUNT( * ) - + SUM( 46 ) + 81 * 66 FROM tab2 AS cor0
----
5211

skipif mysql # not compatible
query I rowsort label-3209
SELECT + + COUNT ( * ) - + SUM ( 46 ) + 81 * 66 FROM tab2 AS cor0
----
5211

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * col1 + + col1 * - 18 IS NULL
----

query I rowsort
SELECT ALL col1 + - col2 + - col2 AS col0 FROM tab2 cor0
----
-3
-49
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT ALL - ( COUNT( * ) ) * - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL - ( COUNT ( * ) ) * - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
81

query I rowsort
SELECT DISTINCT 69 * - col0 - - 23 * - col0 FROM tab0
----
-1380
-8004
-8924

query I rowsort
SELECT ALL 19 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT DISTINCT + COUNT( + + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3215
SELECT DISTINCT + COUNT ( + + col0 ) FROM tab1
----
3

query I rowsort
SELECT + 75 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 85 * 36 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 109b634652b78a0b59f29418a375db6f

query I rowsort
SELECT + 77 * + 22 FROM tab0 cor0
----
1694
1694
1694

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND ( - - col0 - 15 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3221
SELECT col1, CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-3221
SELECT col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3222
SELECT + + CAST( NULL AS SIGNED ) / - - 29 / COUNT( DISTINCT 73 ) * + 98 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3222
SELECT + + CAST ( NULL AS INTEGER ) / - - 29 / COUNT ( DISTINCT 73 ) * + 98 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT ALL - MAX( ALL col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3223
SELECT ALL - MAX ( ALL col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT SUM( ALL + 86 ) AS col2 FROM tab1 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-3224
SELECT SUM ( ALL + 86 ) AS col2 FROM tab1 AS cor0
----
258

query I rowsort
SELECT 25 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
25
25
25

query I rowsort
SELECT ALL col2 + + 24 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT DISTINCT - MAX( ALL col0 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT - MAX ( ALL col0 ) AS col0 FROM tab0
----
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT - 50 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - ( - col0 ) * + col1 * 33 * col2 AS col2 FROM tab1
----
2261952
827475
9597588

query I rowsort
SELECT ALL + col1 * + col2 AS col1 FROM tab1 WHERE + + 12 * - 35 + + 39 < col0
----
1344
295
3196

query I rowsort
SELECT col0 * - 54 * 3 FROM tab1 AS cor0
----
-13770
-14742
-8262

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT ( NOT + 31 - col1 * col0 <> ( - col1 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3233
SELECT - + col0 DIV + col1 col2 FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NULL
----
-4
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3233
SELECT - + col0 / + col1 col2 FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NULL
----
-4
-97
0

query I rowsort
SELECT col1 + - + col0 + col2 * col2 FROM tab2 AS cor0
----
1613
3356
534

query I rowsort
SELECT DISTINCT + 32 * + + col0 + - ( - col1 ) AS col2 FROM tab1 AS cor0
----
1646
2725
2959

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE + col1 + - + col1 <> 94 * 12 + - col0 * - col1
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3237
SELECT ALL + 94 - 71 FROM tab1 cor0 WHERE + col2 / - CAST( NULL AS SIGNED ) + - 36 NOT IN ( - col1 * col1 )
----

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL + 94 - 71 FROM tab1 cor0 WHERE + col2 / - CAST ( NULL AS INTEGER ) + - 36 NOT IN ( - col1 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT + MAX( - + col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3238
SELECT + MAX ( - + col2 ) AS col0 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT ALL + col1 * - 71 FROM tab2 AS cor0
----
-3621
-4757
-5467

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE + ( - + 42 ) NOT IN ( + 39 + - 91 + 77 * col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-3240
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE + ( - + 42 ) NOT IN ( + 39 + - 91 + 77 * col2 )
----
-3

query I rowsort
SELECT DISTINCT - col2 + - 33 FROM tab2 AS cor0
----
-56
-73
-91

query I rowsort
SELECT - ( + col0 ) * + ( + 96 ) AS col2 FROM tab2 WHERE + col2 / + - col0 <> ( - col1 )
----
-4416
-6144
-7200

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT - ( + - MAX( + 63 ) ) AS col0 FROM tab2, tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3243
SELECT - ( + - MAX ( + 63 ) ) AS col0 FROM tab2, tab2 AS cor0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3244
SELECT + col2 + CAST( - col1 AS SIGNED ) * + + 56 * + 72 AS col0 FROM tab2
----
-205609
-270086
-310424

skipif mysql # not compatible
query I rowsort label-3244
SELECT + col2 + CAST ( - col1 AS INTEGER ) * + + 56 * + 72 AS col0 FROM tab2
----
-205609
-270086
-310424

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3245
SELECT ALL + ( + 0 ) * + 75 DIV - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3245
SELECT ALL + ( + 0 ) * + 75 / - COUNT ( * ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT MAX( DISTINCT + col0 ) FROM tab1 WHERE 15 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3246
SELECT MAX ( DISTINCT + col0 ) FROM tab1 WHERE 15 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT ALL + MAX( - + col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3247
SELECT ALL + MAX ( - + col2 ) FROM tab2
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 + + col2 col2 FROM tab1
----
135
144
172

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3249
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - col0 * ( - col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3249
SELECT DISTINCT - CAST ( NULL AS REAL ) + - col0 * ( - col1 ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 * - col0 > NULL
----

query I rowsort
SELECT + 77 * + 76 FROM tab2
----
5852
5852
5852

query II rowsort
SELECT - col1 * col0 AS col1, - col0 * + 26 AS col2 FROM tab0
----
-1215
-390
-1827
-2262
-97
-2522

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT - + 89 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3254
SELECT - col0 * + col1 FROM tab0 AS cor0 WHERE NOT ( - 54 - - - CAST( NULL AS SIGNED ) BETWEEN ( 58 ) AND NULL )
----

skipif mysql # not compatible
query I rowsort label-3254
SELECT - col0 * + col1 FROM tab0 AS cor0 WHERE NOT ( - 54 - - - CAST ( NULL AS INTEGER ) BETWEEN ( 58 ) AND NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3255
SELECT ALL COUNT( * ) * 88 DIV + 10 AS col2 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL COUNT ( * ) * 88 / + 10 AS col2 FROM tab0 AS cor0
----
26

query I rowsort
SELECT ALL + - 35 AS col1 FROM tab1 AS cor0
----
-35
-35
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 73 col0 FROM tab1 AS cor0 WHERE NOT NULL <= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3258
SELECT + ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3258
SELECT + ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT DISTINCT - MIN( + col2 ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT - MIN ( + col2 ) AS col2 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3260
SELECT + ( 68 ) DIV - COUNT( * ) FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-3260
SELECT + ( 68 ) / - COUNT ( * ) FROM tab2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT ALL + COUNT( DISTINCT + 79 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL + COUNT ( DISTINCT + 79 ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT + 82 + + MAX( ALL col1 ) AS col0 FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-3262
SELECT + 82 + + MAX ( ALL col1 ) AS col0 FROM tab2
----
159

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE - 82 BETWEEN + + 41 AND NULL
----

query I rowsort
SELECT DISTINCT 35 * - col1 FROM tab0
----
-2835
-35
-735

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 <= 81 + - col0 * 74 / - col1
----

query I rowsort
SELECT DISTINCT 62 + col2 AS col0 FROM tab2
----
102
120
85

query I rowsort
SELECT DISTINCT 2 * col2 AS col2 FROM tab0
----
198
20
94

query I rowsort
SELECT DISTINCT + col1 * col0 * - col1 * + col0 FROM tab2
----
-24285184
-25250625
-5503716

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = col1 + - ( ( + - col0 ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 32 = - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-3271
SELECT - col0 DIV - col1, + col0 * - col0 AS col1 FROM tab2
----
0
-2116
0
-4096
1
-5625

skipif mysql # not compatible
query II rowsort label-3271
SELECT - col0 / - col1, + col0 * - col0 AS col1 FROM tab2
----
0
-2116
0
-4096
1
-5625

query I rowsort
SELECT ALL - col1 * ( - - col1 ) + - ( - 65 ) + + col1 AS col1 FROM tab2 cor0
----
-2485
-4357
-5787

query I rowsort
SELECT DISTINCT + 12 + - ( + col2 ) FROM tab2 AS cor0 WHERE NULL > col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3274
SELECT DISTINCT + - col2 * - col0 * + - 90 + - CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3274
SELECT DISTINCT + - col2 * - col0 * + - 90 + - CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 + - - col1 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT ALL + col1 + - - col2 AS col0 FROM tab0 AS cor0
----
100
128
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - ( + col1 ) ) col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( col1, - col2 * - 69 * + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3278
SELECT ALL + col1 + - CAST( + col0 AS SIGNED ) col2 FROM tab0 AS cor0
----
-66
-96
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3278
SELECT ALL + col1 + - CAST ( + col0 AS INTEGER ) col2 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT ALL - col2 * + + col2 AS col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT ( col2 ) * col0 + 99 * col1 * + - 73 * 55 AS col1 FROM tab1
----
-18675607
-1982410
-5559894

query I rowsort
SELECT DISTINCT - col1 - - 46 FROM tab1
----
-1
32
41

query I rowsort
SELECT + 59 - - col2 AS col1 FROM tab0
----
106
158
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3283
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 76 * + col0 - - - CAST( + col2 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3283
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 76 * + col0 - - - CAST ( + col2 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 64 * - col1 AS col2 FROM tab2 AS cor0
----
3264
4288
4928

onlyif mysql # DIV for integer division: 
query I rowsort label-3285
SELECT - col0 DIV + col0 - + col0 FROM tab2 AS cor0
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-3285
SELECT - col0 / + col0 - + col0 FROM tab2 AS cor0
----
-47
-65
-76

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 10 * + col1 = NULL
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 WHERE NULL NOT BETWEEN - col1 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 93, ( 64 ) * + - 41 - - - 85 col0 FROM tab2
----
93
-2709

query II rowsort
SELECT ALL 7 AS col0, - col2 + + ( - 82 ) FROM tab2
----
7
-105
7
-122
7
-140

query II rowsort
SELECT DISTINCT 25 AS col1, - col2 * + 90 AS col0 FROM tab1 AS cor0
----
25
-5310
25
-6120
25
-8640

query II rowsort
SELECT ALL + col1, col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query II rowsort
SELECT ALL - col0, col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT DISTINCT SUM( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT SUM ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3294
SELECT - + 33, - SUM( DISTINCT ( + 25 ) ) * + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-33
-75

skipif mysql # not compatible
query II rowsort label-3294
SELECT - + 33, - SUM ( DISTINCT ( + 25 ) ) * + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-33
-75

query I rowsort
SELECT + col2 * + 15 * - 47 * + col1 FROM tab1 AS cor0
----
-207975
-2253180
-947520

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3296
SELECT DISTINCT - - col1 AS col0, ( - 71 ) + - ( col0 ) + + CAST( NULL AS SIGNED ) + 77 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-3296
SELECT DISTINCT - - col1 AS col0, ( - 71 ) + - ( col0 ) + + CAST ( NULL AS INTEGER ) + 77 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT - col0 * col0 - + 37 AS col1 FROM tab1 AS cor0
----
-2638
-7262
-8318

query I rowsort
SELECT DISTINCT - col2 * - col1 + + col2 + col0 * - 24 FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT MAX( - - 76 ) AS col2 FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-3299
SELECT MAX ( - - 76 ) AS col2 FROM tab0 AS cor0
----
76

query I rowsort
SELECT DISTINCT ( + - ( - col2 ) ) FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT - 45 AS col1, 72 AS col2 FROM tab1 AS cor0
----
-45
72
-45
72
-45
72

query I rowsort
SELECT ( - 46 ) FROM tab0
----
-46
-46
-46

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 + col0 + col2 * + + 48 * - col1 / 84 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3305
SELECT - 31 DIV - col1 FROM tab0
----
0
1
31

skipif mysql # not compatible
query I rowsort label-3305
SELECT - 31 / - col1 FROM tab0
----
0
1
31

query I rowsort
SELECT ALL col2 * + - 59 FROM tab2
----
-1357
-2360
-3422

query III rowsort
SELECT * FROM tab2 WHERE col2 - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3308
SELECT DISTINCT col1 DIV - + col1 AS col2, 23 - + col0 + + CAST( NULL AS SIGNED ) + + ( - col2 ) FROM tab1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3308
SELECT DISTINCT col1 / - + col1 AS col2, 23 - + col0 + + CAST ( NULL AS INTEGER ) + + ( - col2 ) FROM tab1
----
-1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3309
SELECT col2 DIV + - col0 + + + col0 + - - col0 AS col1 FROM tab1 AS cor0
----
101
170
182

skipif mysql # not compatible
query I rowsort label-3309
SELECT col2 / + - col0 + + + col0 + - - col0 AS col1 FROM tab1 AS cor0
----
101
170
182

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3310
SELECT - - 50 AS col1 FROM tab0 AS cor0 WHERE NULL >= CAST( NULL AS DECIMAL ) + - - ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-3310
SELECT - - 50 AS col1 FROM tab0 AS cor0 WHERE NULL >= CAST ( NULL AS REAL ) + - - ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 56 ) col2 FROM tab0
----
-56
-56
-56

query II rowsort
SELECT + 10 AS col0, + 60 + + 8 AS col2 FROM tab1 cor0
----
10
68
10
68
10
68

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 - - col2 + - 48 AND - - col0 - + + 11
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3314
SELECT + - CAST( - + 67 AS SIGNED ) - COUNT( * ) FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-3314
SELECT + - CAST ( - + 67 AS INTEGER ) - COUNT ( * ) FROM tab0 AS cor0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT DISTINCT + COUNT( ALL - - col2 ) + - - 1 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3315
SELECT DISTINCT + COUNT ( ALL - - col2 ) + - - 1 FROM tab1 AS cor0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3316
SELECT + 80 + - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL > 32
----

skipif mysql # not compatible
query I rowsort label-3316
SELECT + 80 + - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL > 32
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3317
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( CAST( - col2 AS SIGNED ), 61 * + col2 * + col2, + 68, 38 * + 11 + - - CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3317
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( CAST ( - col2 AS INTEGER ), 61 * + col2 * + col2, + 68, 38 * + 11 + - - CAST ( - col2 AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3318
SELECT DISTINCT - - SUM( DISTINCT + col2 ) * + COUNT( col0 ) - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3318
SELECT DISTINCT - - SUM ( DISTINCT + col2 ) * + COUNT ( col0 ) - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE - col2 IN ( - + 6, 32, + + col2 - + 27 + + + col0 )
----

query I rowsort
SELECT ALL 3 + col0 FROM tab0
----
100
18
90

query I rowsort
SELECT col1 + 3 FROM tab1
----
17
50
8

query III rowsort
SELECT * FROM tab2 WHERE col0 * - + col1 / + 4 + + 63 IN ( - + 93, 69 + - ( + + col2 ) )
----

query I rowsort
SELECT col1 + - + 38 + + - 17 AS col0 FROM tab2
----
-4
12
22

query I rowsort
SELECT col2 * + - col2 + col2 * col1 FROM tab0
----
-9702
110
1598

query I rowsort
SELECT DISTINCT - 57 * - - col2 - - ( - col0 ) FROM tab1
----
-3448
-3967
-5523

query III rowsort
SELECT * FROM tab2 WHERE - + 12 NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 93 ) col2 FROM tab0
----
93

query II rowsort
SELECT + ( col0 ), col1 + - 22 FROM tab0
----
15
59
87
-1
97
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT SUM( - + 36 ) * + 4 FROM tab2
----
-432

skipif mysql # not compatible
query I rowsort label-3329
SELECT SUM ( - + 36 ) * + 4 FROM tab2
----
-432

query I rowsort
SELECT + col2 * + + col2 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT - + 70 AS col0 FROM tab1 AS cor0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT ALL + - 93 * - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-3332
SELECT ALL + - 93 * - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-279

query I rowsort
SELECT - 26 * - 95 AS col0 FROM tab2 AS cor0
----
2470
2470
2470

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3334
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( - col2 / + + 57 + CAST( + - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3334
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( - col2 / + + 57 + CAST ( + - col2 AS INTEGER ) )
----

query II rowsort
SELECT ALL - col0 AS col1, ( 5 ) FROM tab1 WHERE NULL IS NULL
----
-51
5
-85
5
-91
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3336
SELECT ALL 37 DIV ( - col0 ) FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3336
SELECT ALL 37 / ( - col0 ) FROM tab0
----
-2
0
0

query I rowsort
SELECT DISTINCT - col0 * - col1 + - - col1 FROM tab1 AS cor0
----
430
4324
728

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT SUM( + + 84 ) AS col1 FROM tab2 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-3338
SELECT SUM ( + + 84 ) AS col1 FROM tab2 AS cor0
----
252

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3340
SELECT - col0 + - col1 + + 74 + CAST( NULL AS SIGNED ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT - col0 + - col1 + + 74 + CAST ( NULL AS INTEGER ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT ALL - MIN( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL - MIN ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT col2 + 66 FROM tab2 AS cor0 WHERE NOT NULL >= 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT - + COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3343
SELECT - + COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL >= NULL
----
0

query I rowsort
SELECT 45 * + 1 + + - 62 FROM tab2
----
-17
-17
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 + col2 col2 FROM tab0
----
141
52
89

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT COUNT( * ) FROM tab2 WHERE + col1 * + - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3347
SELECT COUNT ( * ) FROM tab2 WHERE + col1 * + - col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3348
SELECT DISTINCT + + ( COUNT( * ) ) col1, - MIN( + + col0 ) + - COUNT( * ) AS col1 FROM tab1 WHERE NOT - col2 + col2 IN ( - + 72, col0 * - col0 )
----
3
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3348
SELECT DISTINCT + + ( COUNT ( * ) ) col1, - MIN ( + + col0 ) + - COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col2 + col2 IN ( - + 72, col0 * - col0 )
----
3
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT ALL - MAX( ALL 66 ) AS col0 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL - MAX ( ALL 66 ) AS col0 FROM tab2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT MAX( ALL - + col2 ) * + - 12 FROM tab1
----
708

skipif mysql # not compatible
query I rowsort label-3350
SELECT MAX ( ALL - + col2 ) * + - 12 FROM tab1
----
708

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT DISTINCT MIN( DISTINCT 5 ) * + COUNT( * ) + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col1 + + - 41 IS NOT NULL
----
18

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT MIN ( DISTINCT 5 ) * + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col1 + + - 41 IS NOT NULL
----
18

query I rowsort
SELECT col0 / 76 FROM tab1 AS cor0 WHERE col0 * + col0 <> NULL
----

query I rowsort
SELECT DISTINCT col0 * + + col1 - - col2 + + col2 AS col0 FROM tab1 AS cor0
----
4413
543
906

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3354
SELECT CAST( 6 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-3354
SELECT CAST ( 6 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
6
6
6

query I rowsort
SELECT DISTINCT - + col1 + - col0 * - 94 FROM tab1 AS cor0
----
4780
7985
8507

query I rowsort
SELECT DISTINCT col1 + 41 AS col1 FROM tab0
----
122
42
62

query I rowsort
SELECT DISTINCT + ( - 28 ) FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
-28

query I rowsort
SELECT ALL + ( - + col1 ) * 14 - col2 FROM tab2
----
-1118
-737
-996

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3359
SELECT DISTINCT col2 * col0 AS col1 FROM tab2 WHERE NOT - col1 * + 48 - - - col2 * CAST( NULL AS SIGNED ) IS NOT NULL
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-3359
SELECT DISTINCT col2 * col0 AS col1 FROM tab2 WHERE NOT - col1 * + 48 - - - col2 * CAST ( NULL AS INTEGER ) IS NOT NULL
----
1058
2560
4350

query I rowsort
SELECT + - col0 + + 6 + - 80 + col2 FROM tab2 AS cor0
----
-91
-97
-98

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 81 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 - + - 2 FROM tab2 AS cor0
----
-21
-38
-56

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT ALL COUNT( ALL - 0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3364
SELECT ALL COUNT ( ALL - 0 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NOT ( NOT + col2 > NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3365
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( NOT + col2 > NULL )
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( col1 ) * + col1 * - - ( + ( + + col2 ) ) = + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3367
SELECT DISTINCT 13 DIV ( 33 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3367
SELECT DISTINCT 13 / ( 33 ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3368
SELECT - + CAST( + 37 AS SIGNED ) FROM tab1 AS cor0
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-3368
SELECT - + CAST ( + 37 AS INTEGER ) FROM tab1 AS cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT - SUM( DISTINCT col0 ) * - + SUM( DISTINCT + col0 ) FROM tab1 AS cor0
----
51529

skipif mysql # not compatible
query I rowsort label-3369
SELECT - SUM ( DISTINCT col0 ) * - + SUM ( DISTINCT + col0 ) FROM tab1 AS cor0
----
51529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3370
SELECT ALL + COUNT( * ) * - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT - MAX( DISTINCT + - col2 ) FROM tab1 WHERE NOT col1 >= - + col0 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3371
SELECT - MAX ( DISTINCT + - col2 ) FROM tab1 WHERE NOT col1 >= - + col0 * col2
----
NULL

query I rowsort
SELECT DISTINCT - 87 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-87

query I rowsort
SELECT + - ( - col2 ) * - + col2 FROM tab0 cor0
----
-100
-2209
-9801

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + col0 <= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT ALL COUNT( * ) * + ( + 56 ) FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL COUNT ( * ) * + ( + 56 ) FROM tab0 AS cor0
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3376
SELECT DISTINCT - SUM( DISTINCT - + col2 ) DIV CAST( COUNT( * ) AS SIGNED ) * 10 * COUNT( * ) FROM tab2 AS cor0
----
1200

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT - SUM ( DISTINCT - + col2 ) / CAST ( COUNT ( * ) AS INTEGER ) * 10 * COUNT ( * ) FROM tab2 AS cor0
----
1200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3377
SELECT DISTINCT + CAST( - ( + + col2 ) AS SIGNED ) + col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1 * + - col2 + col0
----

skipif mysql # not compatible
query I rowsort label-3377
SELECT DISTINCT + CAST ( - ( + + col2 ) AS INTEGER ) + col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1 * + - col2 + col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( + col1 ) + + 61 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE + 55 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3381
SELECT 95 DIV - COUNT( * ) AS col1 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-3381
SELECT 95 / - COUNT ( * ) AS col1 FROM tab0
----
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3382
SELECT col1 + - - col1 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3382
SELECT col1 + - - col1 + - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + - col0 + + col1 + 46 - + + col2 * col2 FROM tab2
----
-1618
-3393
-529

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT - 52 + - + COUNT( DISTINCT - - ( + + col2 ) ) FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-3385
SELECT - 52 + - + COUNT ( DISTINCT - - ( + + col2 ) ) FROM tab2
----
-55

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3386
SELECT DISTINCT - CAST( col0 AS DECIMAL ) FROM tab2 cor0 WHERE NOT - ( - + col0 ) NOT IN ( + col0 * col0, + CAST( NULL AS SIGNED ) + - col0, 5, - col0 )
----

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT - CAST ( col0 AS REAL ) FROM tab2 cor0 WHERE NOT - ( - + col0 ) NOT IN ( + col0 * col0, + CAST ( NULL AS INTEGER ) + - col0, 5, - col0 )
----

query II rowsort
SELECT - 67 AS col1, + col0 AS col1 FROM tab1
----
-67
51
-67
85
-67
91

query I rowsort
SELECT DISTINCT 16 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3389
SELECT + CAST( - ( + col2 ) AS SIGNED ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3389
SELECT + CAST ( - ( + col2 ) AS INTEGER ) FROM tab2
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-3390
SELECT DISTINCT - 32 * col1 DIV 74 AS col2 FROM tab1
----
-2
-20
-6

skipif mysql # not compatible
query I rowsort label-3390
SELECT DISTINCT - 32 * col1 / 74 AS col2 FROM tab1
----
-2
-20
-6

query I rowsort
SELECT ALL + 4 FROM tab1 cor0
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) + + 46 * - col0 col0 FROM tab2 AS cor0
----
-2093
-2904
-3392

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 28 = + + 1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col0 FROM tab1 AS cor0 WHERE NOT + 8 IS NOT NULL
----

query I rowsort
SELECT + 56 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
56
56
56

query I rowsort
SELECT ALL - 87 * 41 AS col2 FROM tab2 AS cor0
----
-3567
-3567
-3567

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT - 53 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT COUNT( + + 7 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3398
SELECT COUNT ( + + 7 ) FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3399
SELECT ALL * FROM tab0 WHERE + - ( CAST( + ( 25 ) AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3399
SELECT ALL * FROM tab0 WHERE + - ( CAST ( + ( 25 ) AS REAL ) ) IS NULL
----

query I rowsort
SELECT 16 * + + 78 FROM tab0
----
1248
1248
1248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3401
SELECT ALL + + 32 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3401
SELECT ALL + + 32 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( - 63 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3403
SELECT ALL + + col1 DIV col0 AS col0 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL + + col1 / col0 AS col0 FROM tab0 AS cor0
----
0
0
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab2 cor0 WHERE NOT NULL BETWEEN + col2 AND - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL >= col1 )
----

query I rowsort
SELECT DISTINCT col1 * - + 87 * col2 FROM tab1
----
-116928
-25665
-278052

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 44 + - - 96 AS col2 FROM tab1 AS cor0
----
140

query II rowsort
SELECT + - col0 * - ( - col0 ) + + col2, col1 AS col2 FROM tab0 AS cor0
----
-178
81
-7559
21
-9310
1

query I rowsort
SELECT DISTINCT - col1 + + 38 AS col2 FROM tab2 AS cor0
----
-13
-29
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT DISTINCT - COUNT( ALL + 88 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3411
SELECT DISTINCT - COUNT ( ALL + 88 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3412
SELECT - col2 * + 88 * col0 + - col0 + - + col0 + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3412
SELECT - col2 * + 88 * col0 + - col0 + - + col0 + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3413
SELECT DISTINCT + - col0 FROM tab0 WHERE NOT ( NOT ( NOT + - CAST( - col2 AS SIGNED ) NOT BETWEEN - ( - col2 ) AND NULL ) )
----

skipif mysql # not compatible
query I rowsort label-3413
SELECT DISTINCT + - col0 FROM tab0 WHERE NOT ( NOT ( NOT + - CAST ( - col2 AS INTEGER ) NOT BETWEEN - ( - col2 ) AND NULL ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3414
SELECT - CAST( NULL AS DECIMAL ) * + col1 * - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3414
SELECT - CAST ( NULL AS REAL ) * + col1 * - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ALL ( - COUNT( * ) ) * - + 18 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL ( - COUNT ( * ) ) * - + 18 FROM tab0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3416
SELECT - 28 DIV + - 20 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3416
SELECT - 28 / + - 20 FROM tab2
----
1
1
1

query II rowsort
SELECT ALL + col2 + - + col0 AS col0, col2 AS col2 FROM tab1
----
-23
68
-26
59
45
96

query I rowsort
SELECT DISTINCT 77 + 65 AS col1 FROM tab1
----
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab0 AS cor0 WHERE 91 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3420
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3420
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3421
SELECT * FROM tab2 AS cor0 WHERE CAST( - ( - 80 ) AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3421
SELECT * FROM tab2 AS cor0 WHERE CAST ( - ( - 80 ) AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 62 - + col2 + - 31 + + col0 - - 9, col2 FROM tab2 AS cor0
----
57
58
63
23
64
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3423
SELECT 51 * COUNT( DISTINCT + - CAST( NULL AS SIGNED ) ) + - - 71 AS col0 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-3423
SELECT 51 * COUNT ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + - - 71 AS col0 FROM tab1
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-3424
SELECT DISTINCT + 76 AS col2, + COUNT( * ) FROM tab2
----
76
3

skipif mysql # not compatible
query II rowsort label-3424
SELECT DISTINCT + 76 AS col2, + COUNT ( * ) FROM tab2
----
76
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT - 47 * COUNT( * ) col1 FROM tab0 cor0
----
-141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3425
SELECT - 47 * COUNT ( * ) col1 FROM tab0 cor0
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-3426
SELECT + 52 DIV - + col1 AS col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3426
SELECT + 52 / - + col1 AS col0 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3427
SELECT - CAST( + - COUNT( * ) AS SIGNED ) DIV + 26 AS col0, 86 AS col1 FROM tab2 AS cor0
----
0
86

skipif mysql # not compatible
query II rowsort label-3427
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) / + 26 AS col0, 86 AS col1 FROM tab2 AS cor0
----
0
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3428
SELECT CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3428
SELECT CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3429
SELECT - col2 AS col0, - col0 DIV col1 AS col1 FROM tab2 AS cor0
----
-23
0
-40
0
-58
-1

skipif mysql # not compatible
query II rowsort label-3429
SELECT - col2 AS col0, - col0 / col1 AS col1 FROM tab2 AS cor0
----
-23
0
-40
0
-58
-1

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 * - col0 AND + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 <= col1
----
15
81
47
87
21
10

query I rowsort
SELECT col0 * - col2 * - col2 AS col1 FROM tab1
----
295885
420784
470016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + 71 AS col0, col0 col1, col1 FROM tab0
----
9 values hashing to 0f12431be5944096b197ee3d9e8cc7ae

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT DISTINCT + COUNT( 8 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3434
SELECT DISTINCT + COUNT ( 8 ) FROM tab2
----
3

query I rowsort
SELECT ALL 7 * col2 AS col2 FROM tab1
----
413
476
672

onlyif mysql # DIV for integer division: 
query I rowsort label-3436
SELECT DISTINCT col0 DIV + col0 + + - 71 col2 FROM tab0 WHERE - col2 + - + col0 IS NOT NULL
----
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3436
SELECT DISTINCT col0 / + col0 + + - 71 col2 FROM tab0 WHERE - col2 + - + col0 IS NOT NULL
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 * - col2 col0 FROM tab2
----
-1702
-2960
-4292

query I rowsort
SELECT DISTINCT col1 * col0 * + 51 AS col0 FROM tab0 WHERE NULL NOT BETWEEN - col2 * - - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 53 * + + col2 col0 FROM tab0 AS cor0
----
-2491
-5247
-530

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 AS col0, col0 * + col2 + - col0 + - ( 71 ) * - col1 col0 FROM tab1 AS cor0
----
-51
5839
-85
5285
-91
9434

onlyif mysql # aggregate syntax: 
query II rowsort label-3441
SELECT ALL - COUNT( * ) AS col1, SUM( DISTINCT + 66 ) FROM tab2 AS cor0
----
-3
66

skipif mysql # not compatible
query II rowsort label-3441
SELECT ALL - COUNT ( * ) AS col1, SUM ( DISTINCT + 66 ) FROM tab2 AS cor0
----
-3
66

query I rowsort
SELECT 79 - + 63 + col1 * + 36 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3443
SELECT ALL - + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL - + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - 55 AS col2 FROM tab2 cor0
----
55
55
55

query I rowsort
SELECT DISTINCT - AVG ( - + col2 ) FROM tab0 cor0 WHERE NOT NULL >= + 72
----
NULL

query I rowsort
SELECT ALL - 43 * + 76 FROM tab1
----
-3268
-3268
-3268

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT + 45 + + COUNT( * ) AS col2 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-3447
SELECT + 45 + + COUNT ( * ) AS col2 FROM tab2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3448
SELECT DISTINCT + col1 DIV + + col0 AS col2 FROM tab0
----
0
5

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT + col1 / + + col0 AS col2 FROM tab0
----
0
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, col0 AS col0 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3450
SELECT - 13 + + - col1 DIV - 10 + - + col2 - - col2 * - 8 AS col2 FROM tab2
----
-215
-366
-529

skipif mysql # not compatible
query I rowsort label-3450
SELECT - 13 + + - col1 / - 10 + - + col2 - - col2 * - 8 AS col2 FROM tab2
----
-215
-366
-529

query II rowsort
SELECT DISTINCT + col0, - 86 AS col1 FROM tab0 AS cor0
----
15
-86
87
-86
97
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col0 FROM tab1 AS cor0 WHERE 91 > NULL
----

query I rowsort
SELECT ALL 92 * - - col0 + col0 - col2 FROM tab0 cor0
----
1348
8081
8922

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT DISTINCT + SUM( 69 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
621

skipif mysql # not compatible
query I rowsort label-3455
SELECT DISTINCT + SUM ( 69 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
621

query II rowsort
SELECT DISTINCT col2 - - + col2 AS col1, - col2 FROM tab2
----
116
-58
46
-23
80
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + + 51 col0 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 83 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3459
SELECT + + col0 DIV + col1 AS col1 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3459
SELECT + + col0 / + col1 AS col1 FROM tab2 cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT ALL + - MIN( DISTINCT + 1 ) col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3460
SELECT ALL + - MIN ( DISTINCT + 1 ) col2 FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3461
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3461
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> CAST ( NULL AS REAL )
----

query I rowsort
SELECT - col2 * + 21 AS col2 FROM tab1 AS cor0
----
-1239
-1428
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT COUNT( + + col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3463
SELECT COUNT ( + + col2 ) AS col0 FROM tab2
----
3

query II rowsort
SELECT + 87, + col2 FROM tab0
----
87
10
87
47
87
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT ALL + + COUNT( * ) * - 43 FROM tab0 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL + + COUNT ( * ) * - 43 FROM tab0 AS cor0
----
-129

query II rowsort
SELECT ALL 32 * + + 80 * - ( - - 10 ) + + + col0 AS col0, + col2 + - ( - - col0 ) + - col1 * + col1 FROM tab0 AS cor0
----
-25503
1
-25513
-518
-25585
-6529

query II rowsort
SELECT 50 AS col2, + col0 FROM tab1
----
50
51
50
85
50
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT DISTINCT + COUNT( - col2 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3468
SELECT DISTINCT + COUNT ( - col2 ) col0 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + 12 * col2 + + - col1 FROM tab1 AS cor0
----
1138
703
769

query I rowsort
SELECT - 88 + + col2 FROM tab1 AS cor0
----
-20
-29
8

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT MAX( ALL - 87 ) + - + 7 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-3472
SELECT MAX ( ALL - 87 ) + - + 7 FROM tab0 AS cor0
----
-94

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + + col1 IN ( - col0, col2, + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 97, + col1 * 22 col2 FROM tab0 AS cor0
----
97
1782
97
22
97
462

query I rowsort
SELECT + 57 * col2 * - + 19 * 46 AS col0 FROM tab2
----
-1145814
-1992720
-2889444

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT DISTINCT COUNT( * ) * + COUNT( DISTINCT - col0 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3476
SELECT DISTINCT COUNT ( * ) * + COUNT ( DISTINCT - col0 ) FROM tab0
----
9

query I rowsort
SELECT DISTINCT + - col0 AS col2 FROM tab2 WHERE + 63 IS NULL OR NOT + - col0 IN ( + + 29 + + 5 + - - col2 * + col1, + col1 + col2, - 19 )
----
-46
-64
-75

query I rowsort
SELECT 79 * col2 AS col0 FROM tab0
----
3713
7821
790

query I rowsort
SELECT ALL 9 * + 41 AS col1 FROM tab1
----
369
369
369

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 85 <= + + col1 - col2
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT COUNT( * ) * - + 27 + + MAX( col2 ) AS col0 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3481
SELECT COUNT ( * ) * - + 27 + + MAX ( col2 ) AS col0 FROM tab1 AS cor0
----
15

query II rowsort
SELECT 60 AS col0, col2 AS col2 FROM tab0
----
60
10
60
47
60
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3483
SELECT col2 AS col1, col2 + + CAST( - col1 AS SIGNED ) DIV + - 50 col0 FROM tab1
----
59
59
68
68
96
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3483
SELECT col2 AS col1, col2 + + CAST ( - col1 AS INTEGER ) / + - 50 col0 FROM tab1
----
59
59
68
68
96
96

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT COUNT( ALL col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3485
SELECT COUNT ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 1 NOT BETWEEN - col1 + 63 AND col2
----
64
77
40
75
67
58

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 20 < + col0
----

query I rowsort
SELECT ALL - col0 * + - col1 + - - col1 AS col1 FROM tab1 AS cor0
----
430
4324
728

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT ALL + 91 * - 28 + + - 22 + + - 45 * - + COUNT( * ) * 96 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-41450

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL + 91 * - 28 + + - 22 + + - 45 * - + COUNT ( * ) * 96 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-41450

onlyif mysql # aggregate syntax: 
query II rowsort label-3490
SELECT DISTINCT - + SUM( ALL col1 ) * + 20 AS col1, COUNT( * ) FROM tab1 AS cor0
----
-1320
3

skipif mysql # not compatible
query II rowsort label-3490
SELECT DISTINCT - + SUM ( ALL col1 ) * + 20 AS col1, COUNT ( * ) FROM tab1 AS cor0
----
-1320
3

query I rowsort
SELECT ALL 67 * + 54 * col1 + 92 FROM tab1 AS cor0
----
170138
18182
50744

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT + col1 * + ( 60 ) < + col2
----
59
68
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 17 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 48 * col1 * + - col0 AS col0 FROM tab1 AS cor0
----
-20400
-205296
-34272

query I rowsort
SELECT - 73 * + + col2 + - ( + col2 ) AS col0 FROM tab1 WHERE NOT + col0 IS NULL
----
-4366
-5032
-7104

query I rowsort
SELECT DISTINCT + ( + 28 ) FROM tab2
----
28

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3497
SELECT - col0 + + + 68 / + CAST( - + CAST( + - col0 AS SIGNED ) AS DECIMAL ) - - col2 * + col2 FROM tab0 WHERE NOT col2 - 69 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3497
SELECT - col0 + + + 68 / + CAST ( - + CAST ( + - col0 AS INTEGER ) AS REAL ) - - col2 * + col2 FROM tab0 WHERE NOT col2 - 69 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT DISTINCT + ( + - COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3498
SELECT DISTINCT + ( + - COUNT ( * ) ) FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3499
SELECT DISTINCT + SUM( + col0 ) + - COUNT( * ) + - MAX( + col1 ) - + + COUNT( * ) + + ( + - 16 ) * + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3499
SELECT DISTINCT + SUM ( + col0 ) + - COUNT ( * ) + - MAX ( + col1 ) - + + COUNT ( * ) + + ( + - 16 ) * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3500
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * + 94 / + + 95 * + + 37 - + col1 NOT IN ( + 27 - - - col1, - CAST( NULL AS DECIMAL ), - 78, - 48 )
----

skipif mysql # not compatible
query III rowsort label-3500
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * + 94 / + + 95 * + + 37 - + col1 NOT IN ( + 27 - - - col1, - CAST ( NULL AS REAL ), - 78, - 48 )
----

query I rowsort
SELECT ALL ( - 5 ) AS col0 FROM tab0
----
-5
-5
-5

query I rowsort
SELECT + ( col1 ) FROM tab1 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT DISTINCT ( + 49 ) + + 14 * + - COUNT( * ) AS col1 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-3503
SELECT DISTINCT ( + 49 ) + + 14 * + - COUNT ( * ) AS col1 FROM tab0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3504
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3504
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + - col0 + 96 FROM tab1 AS cor0
----
11
45
5

query I rowsort
SELECT ALL col0 + 52 + + 12 AS col0 FROM tab2 AS cor0
----
110
128
139

query I rowsort
SELECT - - col2 AS col0 FROM tab2 WHERE + - 3 / col0 IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3508
SELECT + 7 DIV + 3 + + col2 FROM tab2
----
25
42
60

skipif mysql # not compatible
query I rowsort label-3508
SELECT + 7 / + 3 + + col2 FROM tab2
----
25
42
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3509
SELECT ALL - ( - + CAST( + + ( - col0 ) AS SIGNED ) ) AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL - ( - + CAST ( + + ( - col0 ) AS INTEGER ) ) AS col2 FROM tab2
----
-46
-64
-75

query II rowsort
SELECT ALL - col0, col0 AS col2 FROM tab1
----
-51
51
-85
85
-91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 69 col1 FROM tab1 cor0
----
3243
345
966

query II rowsort
SELECT + 2 AS col2, + col2 + - 58 AS col0 FROM tab0 AS cor0
----
2
-11
2
-48
2
41

query I rowsort
SELECT ALL - col0 * 34 * + col1 AS col2 FROM tab2 AS cor0
----
-167552
-170850
-79764

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 55 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 * - - 6 * - - col0 AS col0 FROM tab1 AS cor0
----
-15606
-43350
-49686

query I rowsort
SELECT DISTINCT - - ( - col1 ) + col1 FROM tab0 AS cor0 WHERE col2 * col0 IS NULL
----

query I rowsort
SELECT - 39 AS col1 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - col1 - ( - 89 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 )
----

query I rowsort
SELECT DISTINCT - + col2 * + col1 * - 20 FROM tab1 AS cor0
----
26880
5900
63920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3520
SELECT DISTINCT - - COUNT( * ) + - 57 col1 FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN - ( + + col1 ) * - 47 + + CAST( - 65 AS SIGNED ) AND NULL
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3520
SELECT DISTINCT - - COUNT ( * ) + - 57 col1 FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN - ( + + col1 ) * - 47 + + CAST ( - 65 AS INTEGER ) AND NULL
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT ALL + COUNT( DISTINCT col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL + COUNT ( DISTINCT col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3522
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( ( ( - col0 + - col0 + - - col1 + - col1 * + col2 NOT BETWEEN + - CAST( NULL AS SIGNED ) - - 92 AND NULL ) ) ) )
----

skipif mysql # not compatible
query III rowsort label-3522
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( ( ( - col0 + - col0 + - - col1 + - col1 * + col2 NOT BETWEEN + - CAST ( NULL AS INTEGER ) - - 92 AND NULL ) ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT 11 * - COUNT( col2 ) + - 26 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-3523
SELECT 11 * - COUNT ( col2 ) + - 26 FROM tab1
----
-59

query I rowsort
SELECT - 85 + - + 96 FROM tab2
----
-181
-181
-181

query II rowsort
SELECT ALL + col2, 57 AS col1 FROM tab2 WHERE NOT - col2 - - col0 BETWEEN 9 * - + col0 AND + col2 * + + col1 * - 87 + + + col0 + - - col1 * + - col2
----
23
57
40
57
58
57

query I rowsort
SELECT col1 * + 42 * + ( + - col0 ) FROM tab0
----
-4074
-51030
-76734

query III rowsort
SELECT * FROM tab0 WHERE - - 5 * col1 + col1 = NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 <= + col1 / - col1 * - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3529
SELECT ALL CAST( NULL AS SIGNED ) + + - col1 * col0, + col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-3529
SELECT ALL CAST ( NULL AS INTEGER ) + + - col1 * col0, + col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query II rowsort
SELECT + col0 AS col2, - col2 AS col1 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3531
SELECT + col1 DIV + + col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3531
SELECT + col1 / + + col2 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT DISTINCT - col0 - + 97 FROM tab0 AS cor0
----
-112
-184
-194

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN + col2 AND - col1 / + 30 * col1 * - col1
----

query I rowsort
SELECT ALL - col0 - + + col0 FROM tab0
----
-174
-194
-30

query I rowsort
SELECT DISTINCT - col1 * - col2 FROM tab0 WHERE - 45 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT - SUM( DISTINCT - - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-3536
SELECT - SUM ( DISTINCT - - col1 ) FROM tab1
----
-66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3537
SELECT DISTINCT CAST( NULL AS SIGNED ), - ( + col1 ) DIV + col1 + 41 * - 97 AS col2 FROM tab1
----
NULL
-3978

skipif mysql # not compatible
query II rowsort label-3537
SELECT DISTINCT CAST ( NULL AS INTEGER ), - ( + col1 ) / + col1 + 41 * - 97 AS col2 FROM tab1
----
NULL
-3978

query I rowsort
SELECT ALL + col1 * + col2 * + - 42 * + - 43 AS col2 FROM tab2
----
2118438
5562480
7018116

query I rowsort
SELECT DISTINCT + col1 * + - 38 AS col0 FROM tab0 WHERE NOT ( 31 ) IS NOT NULL
----

query I rowsort
SELECT - 15 * - col2 AS col2 FROM tab2
----
345
600
870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3541
SELECT + col0 * - col1 + - + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-2323
-4888
-4967

skipif mysql # not compatible
query I rowsort label-3541
SELECT + col0 * - col1 + - + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-2323
-4888
-4967

query I rowsort
SELECT ALL - ( - col2 ) FROM tab0 cor0 WHERE NULL IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + col2 * - 42 AS col0 FROM tab0 AS cor0
----
-1974
-4158
-420

query I rowsort
SELECT DISTINCT 48 * + col2 + - 35 * - 95 FROM tab2 AS cor0
----
4429
5245
6109

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - col0 ) * + + 1 / + 21 * + - 14 - - col0 * + col1 IS NOT NULL
----

query II rowsort
SELECT + - col0 * 35 AS col1, - col2 FROM tab0 AS cor0
----
-3045
-10
-3395
-99
-525
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3547
SELECT ALL - - COUNT( * ) + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3547
SELECT ALL - - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col0 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3549
SELECT 27 * COUNT( * ) col0, - 63 AS col2 FROM tab0 cor0
----
81
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3549
SELECT 27 * COUNT ( * ) col0, - 63 AS col2 FROM tab0 cor0
----
81
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3550
SELECT DISTINCT + col0 AS col1, - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3550
SELECT DISTINCT + col0 AS col1, - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT 62 * + 68 * 89 AS col0 FROM tab2 AS cor0
----
375224
375224
375224

query I rowsort
SELECT + - 3 * + - col2 AS col0 FROM tab1 AS cor0
----
177
204
288

query III rowsort
SELECT * FROM tab2 WHERE col0 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3554
SELECT - col1 + - 54 + + col2 - - + col1 + + col2 DIV + 27 FROM tab2
----
-13
-31
6

skipif mysql # not compatible
query I rowsort label-3554
SELECT - col1 + - 54 + + col2 - - + col1 + + col2 / + 27 FROM tab2
----
-13
-31
6

query I rowsort
SELECT DISTINCT + 33 + ( - - 36 ) FROM tab1 WHERE ( - + 76 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3556
SELECT CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3556
SELECT CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + col0 + - col0 FROM tab0 AS cor0
----
690
783
9506

query I rowsort
SELECT - col0 + + col0 * - - col1 AS col1 FROM tab1 cor0
----
340
4186
663

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) >= - col1
----

query I rowsort
SELECT + ( - - 82 ) + col0 AS col1 FROM tab2 AS cor0
----
128
146
157

onlyif mysql # aggregate syntax: 
query II rowsort label-3561
SELECT ALL - COUNT( * ) AS col0, COUNT( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9
9

skipif mysql # not compatible
query II rowsort label-3561
SELECT ALL - COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3562
SELECT ALL + COUNT( * ) * + - CAST( NULL AS SIGNED ) * - 51 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * - 51 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + 62 AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT 6 - - col2 FROM tab2 AS cor0
----
29
46
64

query I rowsort
SELECT ALL - - ( col1 ) * + col2 + col0 + + - col2 + col0 + + + 86 FROM tab1 AS cor0
----
1436
3396
492

query I rowsort
SELECT DISTINCT + 63 - col1 FROM tab2 AS cor0
----
-14
-4
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT - COUNT( * ) FROM tab2 cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3567
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL > NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + 77 <> - - col1 + - 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT ALL MIN( DISTINCT ( 70 ) ) FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL MIN ( DISTINCT ( 70 ) ) FROM tab0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3570
SELECT * FROM tab1 WHERE NOT col1 NOT BETWEEN ( - CAST( NULL AS SIGNED ) * + col2 * - 24 * col1 ) AND col2
----

skipif mysql # not compatible
query III rowsort label-3570
SELECT * FROM tab1 WHERE NOT col1 NOT BETWEEN ( - CAST ( NULL AS INTEGER ) * + col2 * - 24 * col1 ) AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3571
SELECT DISTINCT + CAST( + + col1 AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT + CAST ( + + col1 AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 59 <= - ( 68 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( - + col1 ) * ( + 10 ) AS col0 FROM tab1
----
140
470
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3574
SELECT - AVG ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3574
SELECT - AVG ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT DISTINCT - - MIN( - col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT - - MIN ( - col0 ) AS col1 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ALL + col0 + - 42 FROM tab0 AS cor0
----
-27
45
55

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT ALL + col0 * - col1 * + 92 + + col2 + col1 * + 54 FROM tab2 cor0
----
-213055
-449178
-458624

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 68 > + - ( col1 )
----

query I rowsort
SELECT + + col0 + - col1 * + + col2 AS col0 FROM tab2 AS cor0
----
-1127
-3016
-3811

query II rowsort
SELECT ALL - 1 AS col0, col2 AS col0 FROM tab0
----
-1
10
-1
47
-1
99

query I rowsort
SELECT 80 + + - 58 FROM tab1
----
22
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, col1 AS col0 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT DISTINCT COUNT( * ) * + 18 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-3584
SELECT DISTINCT COUNT ( * ) * + 18 FROM tab2
----
54

query I rowsort
SELECT DISTINCT 31 + - col0 FROM tab0
----
-56
-66
16

onlyif mysql # DIV for integer division: 
query II rowsort label-3586
SELECT ALL col1 DIV col1 * - col1 + col1, col0 + - - col2 - - ( - + 99 ) * - - 22 * + col0 AS col2 FROM tab2
----
0
-100119
0
-139288
0
-163217

skipif mysql # not compatible
query II rowsort label-3586
SELECT ALL col1 / col1 * - col1 + col1, col0 + - - col2 - - ( - + 99 ) * - - 22 * + col0 AS col2 FROM tab2
----
0
-100119
0
-139288
0
-163217

query I rowsort
SELECT ALL + + 76 * - 92 + + + 6 AS col2 FROM tab2 cor0
----
-6986
-6986
-6986

query I rowsort
SELECT DISTINCT - col1 - + col1 * - 36 FROM tab2 AS cor0
----
1785
2345
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT ALL - - MIN( 3 ) + - - 84 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-3589
SELECT ALL - - MIN ( 3 ) + - - 84 FROM tab0 AS cor0
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3590
SELECT DISTINCT + SUM( ALL - - 9 ) DIV - COUNT( col1 ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3590
SELECT DISTINCT + SUM ( ALL - - 9 ) / - COUNT ( col1 ) AS col0 FROM tab2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3591
SELECT ALL col1 DIV - + col1 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL col1 / - + col1 AS col0 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3592
SELECT DISTINCT - CAST( + 29 AS SIGNED ) AS col1, + col2 + - 77 FROM tab0 AS cor0
----
-29
-30
-29
-67
-29
22

skipif mysql # not compatible
query II rowsort label-3592
SELECT DISTINCT - CAST ( + 29 AS INTEGER ) AS col1, + col2 + - 77 FROM tab0 AS cor0
----
-29
-30
-29
-67
-29
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3593
SELECT DISTINCT - + SUM( DISTINCT + 68 ) + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT - + SUM ( DISTINCT + 68 ) + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - 17 FROM tab2 AS cor0 WHERE NOT + col0 + - - 66 IS NULL
----
17
17
17

query I rowsort
SELECT + col1 * 6 - col2 * - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3596
SELECT + col1 DIV col0 AS col0, + col2 * - - 66 FROM tab2 AS cor0
----
0
3828
1
1518
1
2640

skipif mysql # not compatible
query II rowsort label-3596
SELECT + col1 / col0 AS col0, + col2 * - - 66 FROM tab2 AS cor0
----
0
3828
1
1518
1
2640

query I rowsort
SELECT + - col1 FROM tab1 AS cor0 WHERE NOT NULL < col2
----

query I rowsort
SELECT ALL - 52 * + ( - + 89 ) AS col2 FROM tab0 AS cor0
----
4628
4628
4628

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3599
SELECT + CAST( NULL AS SIGNED ) / - AVG ( ALL + + col1 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3599
SELECT + CAST ( NULL AS INTEGER ) / - AVG ( ALL + + col1 ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 22 * - col1 + 92 * + - col2 FROM tab2 AS cor0
----
-3238
-5374
-6810

onlyif mysql # DIV for integer division: 
query II rowsort label-3601
SELECT + - col1 DIV + col0 AS col2, 21 AS col0 FROM tab2 AS cor0
----
-1
21
-1
21
0
21

skipif mysql # not compatible
query II rowsort label-3601
SELECT + - col1 / + col0 AS col2, 21 AS col0 FROM tab2 AS cor0
----
-1
21
-1
21
0
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3602
SELECT DISTINCT col0 FROM tab0 WHERE NULL NOT IN ( 34 * col0 - - + col1 * ( - col0 ) - - col0, + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3602
SELECT DISTINCT col0 FROM tab0 WHERE NULL NOT IN ( 34 * col0 - - + col1 * ( - col0 ) - - col0, + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3603
SELECT ALL 23 DIV + col1 FROM tab0
----
0
1
23

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL 23 / + col1 FROM tab0
----
0
1
23

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT + col0 IS NULL
----
-14
-47
-5

query I rowsort
SELECT + 90 * - 58 AS col0 FROM tab1
----
-5220
-5220
-5220

query I rowsort
SELECT - 52 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-52
-52
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 col2 FROM tab2 WHERE - 18 >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT - COUNT( * ) * + COUNT( * ) + - 26 * 26 FROM tab0
----
-685

skipif mysql # not compatible
query I rowsort label-3608
SELECT - COUNT ( * ) * + COUNT ( * ) + - 26 * 26 FROM tab0
----
-685

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col2 * + col1 ) IS NULL
----

query I rowsort
SELECT + col1 * + ( col0 ) AS col1 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT + COUNT( * ) * COUNT( * ) + - 54 AS col0 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-3611
SELECT + COUNT ( * ) * COUNT ( * ) + - 54 AS col0 FROM tab0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3612
SELECT ALL 35 * - 21 FROM tab1 WHERE ( 10 ) BETWEEN NULL AND - CAST( - 90 AS SIGNED ) * - col1
----

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL 35 * - 21 FROM tab1 WHERE ( 10 ) BETWEEN NULL AND - CAST ( - 90 AS INTEGER ) * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3613
SELECT ALL - col1 + + col2 DIV - 60 AS col0 FROM tab0
----
-2
-21
-81

skipif mysql # not compatible
query I rowsort label-3613
SELECT ALL - col1 + + col2 / - 60 AS col0 FROM tab0
----
-2
-21
-81

query I rowsort
SELECT - col0 FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT DISTINCT MIN( ALL + ( - col2 ) ) + COUNT( * ) * COUNT( * ) AS col1 FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-3615
SELECT DISTINCT MIN ( ALL + ( - col2 ) ) + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2
----
-49

query I rowsort
SELECT - col2 + col2 * + 70 FROM tab2
----
1587
2760
4002

query I rowsort
SELECT DISTINCT ( + col1 ) * - 36 FROM tab1
----
-1692
-180
-504

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3618
SELECT ALL ( - col2 ) AS col2 FROM tab1 WHERE NOT 56 * col1 <= ( CAST( + col2 AS DECIMAL ) / - col0 )
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL ( - col2 ) AS col2 FROM tab1 WHERE NOT 56 * col1 <= ( CAST ( + col2 AS REAL ) / - col0 )
----
-59
-68
-96

query I rowsort
SELECT ALL ( ( ( 94 ) ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
94
94
94

query I rowsort
SELECT ALL 25 + + col0 FROM tab1 WHERE NOT + col0 * - 11 BETWEEN ( NULL ) AND 55 * 28
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3621
SELECT ALL 85 * CAST( 75 * + 52 AS SIGNED ) FROM tab0 WHERE NOT + col0 * + 19 BETWEEN ( + 99 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL 85 * CAST ( 75 * + 52 AS INTEGER ) FROM tab0 WHERE NOT + col0 * + 19 BETWEEN ( + 99 ) AND NULL
----

query I rowsort
SELECT ALL 47 * + 16 AS col0 FROM tab1
----
752
752
752

query III rowsort
SELECT * FROM tab0 WHERE - col1 + + col2 IN ( - col1 + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3624
SELECT ALL ( CAST( NULL AS SIGNED ) ) * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * col2 AS col1 FROM tab2 WHERE NOT + 93 IS NOT NULL
----

query I rowsort
SELECT 38 AS col2 FROM tab2 WHERE NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col1 * ( col0 * - 94 ) + - 64 AS col0 FROM tab2
----
220460
463168
472286

query I rowsort
SELECT + 88 * - col2 + - ( 85 ) FROM tab0
----
-4221
-8797
-965

query I rowsort
SELECT DISTINCT ( 23 ) FROM tab1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT DISTINCT SUM( DISTINCT + ( + ( col0 ) ) ) FROM tab1 WHERE + 94 * 5 = 71
----
NULL

skipif mysql # not compatible
query I rowsort label-3630
SELECT DISTINCT SUM ( DISTINCT + ( + ( col0 ) ) ) FROM tab1 WHERE + 94 * 5 = 71
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 39 col0 FROM tab0
----
120
40
60

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE 80 + - 95 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT + ( + 82 ) + COUNT( * ) FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-3633
SELECT + ( + 82 ) + COUNT ( * ) FROM tab1
----
85

query I rowsort
SELECT ALL 90 - - col2 FROM tab2
----
113
130
148

query I rowsort
SELECT - col0 * - 21 AS col2 FROM tab0
----
1827
2037
315

query I rowsort
SELECT - col1 * 0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3637
SELECT col0 DIV col2 + ( col0 ) DIV CAST( - col2 AS SIGNED ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3637
SELECT col0 / col2 + ( col0 ) / CAST ( - col2 AS INTEGER ) AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - 2 * 22 + col0 FROM tab0
----
-29
43
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT COUNT( * ) + 58 AS col1 FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-3639
SELECT COUNT ( * ) + 58 AS col1 FROM tab1 AS cor0
----
61

query I rowsort
SELECT - 27 + + 60 FROM tab0 AS cor0
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3642
SELECT 72 DIV - col0 + + 67 FROM tab0 WHERE + 4 IS NOT NULL
----
63
67
67

skipif mysql # not compatible
query I rowsort label-3642
SELECT 72 / - col0 + + 67 FROM tab0 WHERE + 4 IS NOT NULL
----
63
67
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3643
SELECT DISTINCT * FROM tab0 WHERE + CAST( 30 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3643
SELECT DISTINCT * FROM tab0 WHERE + CAST ( 30 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 10 * - col2 - - 67 AS col2 FROM tab0
----
1057
167
537

query I rowsort
SELECT ALL + col1 FROM tab1 cor0 WHERE NOT 18 * col1 = NULL
----

query I rowsort
SELECT DISTINCT + + col1 * 52 FROM tab0 AS cor0
----
1092
4212
52

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 55 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT DISTINCT COUNT( DISTINCT 89 ) * 48 AS col2 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3648
SELECT DISTINCT COUNT ( DISTINCT 89 ) * 48 AS col2 FROM tab0 AS cor0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3649
SELECT - col0 + - CAST( + CAST( NULL AS SIGNED ) + + col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT 73 * + col2 < col0 / + 42 - + col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3649
SELECT - col0 + - CAST ( + CAST ( NULL AS INTEGER ) + + col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT 73 * + col2 < col0 / + 42 - + col2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - AVG ( - col1 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * col2 BETWEEN col1 + col1 AND ( - col2 ) + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT SUM( DISTINCT + 4 ) AS col0 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-3652
SELECT SUM ( DISTINCT + 4 ) AS col0 FROM tab0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT ALL MIN( ALL + - col0 ) * 60 FROM tab2
----
-4500

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL MIN ( ALL + - col0 ) * 60 FROM tab2
----
-4500

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > + col2 + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 73 * - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT MIN( 52 ) AS col1 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-3656
SELECT MIN ( 52 ) AS col1 FROM tab1
----
52

query I rowsort
SELECT ALL col1 * + 29 AS col2 FROM tab2
----
1479
1943
2233

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT MAX( + col0 ) * 82 AS col1 FROM tab1
----
7462

skipif mysql # not compatible
query I rowsort label-3658
SELECT MAX ( + col0 ) * 82 AS col1 FROM tab1
----
7462

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT ALL - + MIN( DISTINCT + col2 ) AS col1 FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL - + MIN ( DISTINCT + col2 ) AS col1 FROM tab1 cor0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3660
SELECT ALL COUNT( + - col0 ) * CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3660
SELECT ALL COUNT ( + - col0 ) * CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
9

query I rowsort
SELECT 5 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 cor0 WHERE NOT col2 IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab0 WHERE NOT 65 / col2 + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 51 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3666
SELECT ALL + 50 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL + 50 + + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 19 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 + - 12 + col1 * col2 >= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 78 + + col1 AS col2 FROM tab1 AS cor0 WHERE ( + col2 ) NOT BETWEEN NULL AND col1
----
125
83
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 22 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3670
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 22 AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * + 62 + 65 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col2 + - col2 AS col1 FROM tab0 cor0
----
-198
-20
-94

query I rowsort
SELECT 75 + + 32 FROM tab2 AS cor0
----
107
107
107

query II rowsort
SELECT DISTINCT + col1 AS col1, 38 AS col1 FROM tab0 AS cor0
----
1
38
21
38
81
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT + COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3675
SELECT + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3676
SELECT DISTINCT - col2 * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT - col2 * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + - col1 FROM tab2
----
NULL

query I rowsort
SELECT + 4 * - + col2 * - col0 AS col2 FROM tab2
----
10240
17400
4232

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT ALL - + COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL - + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( + - col0 ) + 23 IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT DISTINCT + COUNT( ALL ( + ( - 92 ) ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT + COUNT ( ALL ( + ( - 92 ) ) ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL 7 - - col2 FROM tab2 cor0
----
30
47
65

onlyif mysql # aggregate syntax: 
query II rowsort label-3682
SELECT + MIN( ( - + 59 ) ) AS col0, 59 FROM tab2
----
-59
59

skipif mysql # not compatible
query II rowsort label-3682
SELECT + MIN ( ( - + 59 ) ) AS col0, 59 FROM tab2
----
-59
59

query I rowsort
SELECT DISTINCT + col1 * - 50 FROM tab1
----
-2350
-250
-700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * - + col1 col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query II rowsort
SELECT + col1, + 83 FROM tab2 AS cor0
----
51
83
67
83
77
83

query I rowsort
SELECT + + ( - 29 ) * + 27 FROM tab0 AS cor0
----
-783
-783
-783

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3687
SELECT 19 / + CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3687
SELECT 19 / + CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT - MIN( DISTINCT + col1 ) * - - 63 AS col2 FROM tab2 cor0
----
-3213

skipif mysql # not compatible
query I rowsort label-3688
SELECT - MIN ( DISTINCT + col1 ) * - - 63 AS col2 FROM tab2 cor0
----
-3213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 54 col0 FROM tab2 AS cor0
----
-54
-54
-54

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN - 81 + - col2 AND NULL AND NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3691
SELECT ALL * FROM tab0 cor0 WHERE NOT - col1 <> - col0 + - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3691
SELECT ALL * FROM tab0 cor0 WHERE NOT - col1 <> - col0 + - CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT - ( - 96 ) FROM tab1 AS cor0
----
96

query II rowsort
SELECT col2 AS col2, col1 * + 12 AS col1 FROM tab0
----
10
252
47
972
99
12

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 68 ) / + 86 + - - 11 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 71 FROM tab2, tab2 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query III rowsort
SELECT * FROM tab2 WHERE NOT 29 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - 97 ) FROM tab1
----
-97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT DISTINCT COUNT( col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3699
SELECT DISTINCT COUNT ( col0 ) FROM tab0
----
3

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NULL = - col2 * col0
----

query II rowsort
SELECT ALL + col1, - col2 * - - 88 FROM tab2
----
51
-2024
67
-5104
77
-3520

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 + - + 21 * - col0 * + + col1 NOT BETWEEN - 43 + col0 AND col2 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= ( + ( + 32 ) )
----

query I rowsort
SELECT col2 * + 12 FROM tab1
----
1152
708
816

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + col0 BETWEEN NULL AND ( - - col1 ) / + 52 * 19
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + col0 NOT IN ( - col2 + - col2 * - col1 * + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 92 * + 76 AS col1 FROM tab0 AS cor0
----
6992
6992
6992

query I rowsort
SELECT + - col2 * + - 4 + - 91 FROM tab1 AS cor0
----
145
181
293

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT ALL + ( COUNT( + + 63 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3709
SELECT ALL + ( COUNT ( + + 63 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3710
SELECT ALL - COUNT( * ) DIV + 77 AS col0, 17 col2 FROM tab1 AS cor0
----
0
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3710
SELECT ALL - COUNT ( * ) / + 77 AS col0, 17 col2 FROM tab1 AS cor0
----
0
17

query I rowsort
SELECT - + col0 * col1 + 83 AS col1 FROM tab1 AS cor0
----
-342
-4194
-631

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col0 * col2 col0 FROM tab1 cor0 WHERE ( NULL ) IN ( - col0 - 33 + + 64 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3713
SELECT * FROM tab0 cor0 WHERE NULL NOT IN ( col2, col2 * + + 69, - CAST( - + col1 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3713
SELECT * FROM tab0 cor0 WHERE NULL NOT IN ( col2, col2 * + + 69, - CAST ( - + col1 AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3714
SELECT CAST( NULL AS SIGNED ) * - - ( - CAST( + 58 AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3714
SELECT CAST ( NULL AS INTEGER ) * - - ( - CAST ( + 58 AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + col2 * - - col0 * - + 53 AS col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-37350
-46023
-508862

onlyif mysql # DIV for integer division: 
query I rowsort label-3716
SELECT DISTINCT + + col0 DIV - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT + + col0 / - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-16
-88
-98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 42 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 25 + - col1 AS col0 FROM tab0 AS cor0
----
-56
24
4

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col2 * + col2 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT - COUNT( + 12 ) * + - 87 * + + COUNT( * ) - - + SUM( ALL - 40 ) AS col2 FROM tab1 AS cor0
----
663

skipif mysql # not compatible
query I rowsort label-3720
SELECT - COUNT ( + 12 ) * + - 87 * + + COUNT ( * ) - - + SUM ( ALL - 40 ) AS col2 FROM tab1 AS cor0
----
663

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( - 95, - 19, col0 )
----

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab2 WHERE NOT + + 58 + - 55 IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT col0 - + col2 - - + 42 AS col2 FROM tab2
----
59
65
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT - COUNT( * ) + + 76 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-3724
SELECT - COUNT ( * ) + + 76 FROM tab2
----
73

query I rowsort
SELECT ALL 2 - - col1 AS col2 FROM tab1
----
16
49
7

query II rowsort
SELECT DISTINCT 8 AS col1, 85 * - col2 AS col0 FROM tab0
----
8
-3995
8
-8415
8
-850

query I rowsort
SELECT 82 * - - 12 FROM tab0
----
984
984
984

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3728
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( + 26 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3728
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( + 26 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col2 ) NOT IN ( 16 * - + col2 - - col0 )
----

query I rowsort
SELECT DISTINCT - + 64 AS col1 FROM tab2 cor0
----
-64

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT IN ( 14 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3732
SELECT + ( 13 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3732
SELECT + ( 13 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - ( col1 ), - col0 )
----

query I rowsort
SELECT DISTINCT col1 * + + 48 AS col0 FROM tab1 AS cor0
----
2256
240
672

onlyif mysql # aggregate syntax: 
query II rowsort label-3735
SELECT ALL + MIN( DISTINCT 76 ) AS col2, 22 FROM tab0 cor0
----
76
22

skipif mysql # not compatible
query II rowsort label-3735
SELECT ALL + MIN ( DISTINCT 76 ) AS col2, 22 FROM tab0 cor0
----
76
22

query I rowsort
SELECT - col0 + - 80 - - + col2 FROM tab1
----
-103
-106
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT - SUM( + 78 ) + + COUNT( * ) FROM tab0 WHERE NOT + - col2 * col0 < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3737
SELECT - SUM ( + 78 ) + + COUNT ( * ) FROM tab0 WHERE NOT + - col2 * col0 < ( NULL )
----
NULL

query I rowsort
SELECT col2 + - 77 FROM tab1
----
-18
-9
19

query I rowsort
SELECT ALL col1 * + 99 * col2 AS col2 FROM tab0
----
20790
376893
9801

query I rowsort
SELECT DISTINCT 93 * + - ( + col2 ) FROM tab0
----
-4371
-9207
-930

query I rowsort
SELECT ( - ( + 32 ) ) AS col0 FROM tab0
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT - - col0 NOT BETWEEN - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3742
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT - - col0 NOT BETWEEN - col2 AND NULL
----
0

query I rowsort
SELECT ALL + - 3 FROM tab0 WHERE ( + 92 ) IS NOT NULL
----
-3
-3
-3

query II rowsort
SELECT 72, col2 AS col1 FROM tab1
----
72
59
72
68
72
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) col1 FROM tab1 cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3745
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) col1 FROM tab1 cor0
----
-9

query I rowsort
SELECT DISTINCT + col1 + + col2 - - col2 FROM tab0 AS cor0
----
175
199
41

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 12 IN ( col0, + 2 * + - col0 )
----

query I rowsort
SELECT ALL - col1 * + 64 FROM tab1
----
-3008
-320
-896

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 69 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3751
SELECT DISTINCT - - ( + - 51 ) + COUNT( * ) - MIN( col0 ) + 37 AS col1, 63 FROM tab1 AS cor0
----
-62
63

skipif mysql # not compatible
query II rowsort label-3751
SELECT DISTINCT - - ( + - 51 ) + COUNT ( * ) - MIN ( col0 ) + 37 AS col1, 63 FROM tab1 AS cor0
----
-62
63

query I rowsort
SELECT DISTINCT - 2 - + + col1 FROM tab0 AS cor0
----
-23
-3
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3753
SELECT ALL + 91 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) + 41 <= - col0
----

skipif mysql # not compatible
query I rowsort label-3753
SELECT ALL + 91 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) + 41 <= - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3754
SELECT MIN( ALL + col2 ) * CAST( NULL AS SIGNED ) * 58 - + 43 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3754
SELECT MIN ( ALL + col2 ) * CAST ( NULL AS INTEGER ) * 58 - + 43 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 * - 98 * + - col2 AS col2 FROM tab1
----
131712
28910
313208

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT DISTINCT MIN( + + col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3756
SELECT DISTINCT MIN ( + + col1 ) FROM tab0
----
1

query III rowsort
SELECT * FROM tab1 WHERE - col1 * - col0 BETWEEN NULL AND - 51 + col0
----

query I rowsort
SELECT col0 - + - 64 AS col2 FROM tab2
----
110
128
139

query I rowsort
SELECT col2 * + col2 - 91 FROM tab0
----
2118
9
9710

query I rowsort
SELECT ALL - + 84 AS col0 FROM tab0 WHERE NOT - + col1 = 4
----
-84
-84
-84

query I rowsort
SELECT + col0 * col0 * - + col0 AS col1 FROM tab2 AS cor0
----
-262144
-421875
-97336

onlyif mysql # aggregate syntax: 
query II rowsort label-3762
SELECT + - MAX( DISTINCT - - col2 ), - 87 AS col2 FROM tab1 cor0
----
-96
-87

skipif mysql # not compatible
query II rowsort label-3762
SELECT + - MAX ( DISTINCT - - col2 ), - 87 AS col2 FROM tab1 cor0
----
-96
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col0, col0 col1 FROM tab2
----
51
46
67
75
77
64

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT + 43 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + 87 ) FROM tab1 cor0
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT DISTINCT MIN( ALL - - 68 ) AS col2 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-3766
SELECT DISTINCT MIN ( ALL - - 68 ) AS col2 FROM tab0 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-3767
SELECT + 98, COUNT( col2 ) col1 FROM tab1 AS cor0
----
98
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3767
SELECT + 98, COUNT ( col2 ) col1 FROM tab1 AS cor0
----
98
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3768
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-3768
SELECT DISTINCT CAST ( col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT + - 78 AS col0 FROM tab1 AS cor0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3770
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3770
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL 49 * + 33 FROM tab0
----
1617
1617
1617

query I rowsort
SELECT DISTINCT col1 * - - 75 * + - col1 FROM tab2
----
-195075
-336675
-444675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3773
SELECT COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3773
SELECT COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE 10 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * + col0 * + col2 + - 67 FROM tab0
----
-33202
-8767
-950764

query I rowsort
SELECT DISTINCT - col0 + 68 AS col0 FROM tab0
----
-19
-29
53

query I rowsort
SELECT ALL + 38 + + col1 FROM tab2 AS cor0
----
105
115
89

query I rowsort
SELECT DISTINCT 49 + 42 + + + 86 + + 44 AS col0 FROM tab0 AS cor0
----
221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3779
SELECT ALL - - 9 * + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL - - 9 * + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) <> + 94
----

query I rowsort
SELECT - col2 - - - col0 FROM tab2 cor0
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT ALL + + 53 + + COUNT( - 62 ) - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL + + 53 + + COUNT ( - 62 ) - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
53

query I rowsort
SELECT - col1 * + 13 - - col0 + 94 * + + col1 + - col1 AS col0 FROM tab1 AS cor0
----
1171
3851
485

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 56 = - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - col0 col0 FROM tab0 AS cor0
----
-108
-96
-98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col1 AND + + col0 / + ( - 86 ) * col0
----

query I rowsort
SELECT DISTINCT + col1 - col1 + + 9 + - col1 * - 65 AS col0 FROM tab0
----
1374
5274
74

query I rowsort
SELECT + 61 + - + ( - col0 ) AS col2 FROM tab1
----
112
146
152

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT DISTINCT MAX( DISTINCT + 96 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT MAX ( DISTINCT + 96 ) AS col0 FROM tab1
----
96

query I rowsort
SELECT + col1 * + ( + - col1 ) FROM tab0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT DISTINCT 29 * + SUM( 22 ) AS col2 FROM tab1
----
1914

skipif mysql # not compatible
query I rowsort label-3791
SELECT DISTINCT 29 * + SUM ( 22 ) AS col2 FROM tab1
----
1914

query I rowsort
SELECT + ( + col1 ) * col2 FROM tab2
----
1173
3080
3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3793
SELECT + COUNT( * ) AS col2, - ( - + CAST( COUNT( * ) AS SIGNED ) ) AS col0 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-3793
SELECT + COUNT ( * ) AS col2, - ( - + CAST ( COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab1
----
3
3

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 71 IS NOT NULL
----

query I rowsort
SELECT col1 * + + 90 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
1890
7290
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3797
SELECT + 31 / - 23 + CAST( + 16 AS SIGNED ) - - + 27 + + col0 + - col0 * 49 / - col1 + + ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT - col2 <> NULL
----

skipif mysql # not compatible
query I rowsort label-3797
SELECT + 31 / - 23 + CAST ( + 16 AS INTEGER ) - - + 27 + + col0 + - col0 * 49 / - col1 + + ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT ALL SUM( 21 ) FROM tab2 cor0
----
63

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL SUM ( 21 ) FROM tab2 cor0
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab0 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT ALL + MAX( 72 ) col0 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3800
SELECT ALL + MAX ( 72 ) col0 FROM tab1 AS cor0
----
72

query II rowsort
SELECT ALL - 43 AS col2, - 3 FROM tab2 AS cor0
----
-43
-3
-43
-3
-43
-3

query I rowsort
SELECT + 26 * - - col2 * - col0 FROM tab0 AS cor0
----
-18330
-22620
-249678

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT COUNT( + - 7 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3803
SELECT COUNT ( + - 7 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 47 FROM tab0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 <= + + ( + ( - 23 ) ) * col2 + + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col1 * 0 * 92 FROM tab2 AS cor0 WHERE NOT NULL <> - col2
----

query I rowsort
SELECT DISTINCT - 0 * + col2 + + - 86 AS col2 FROM tab2 cor0
----
-86

query I rowsort
SELECT ALL - col2 * - col1 + 65 FROM tab1 AS cor0
----
1409
3261
360

query II rowsort
SELECT + + col0 + - col2 AS col0, - 76 AS col2 FROM tab2 AS cor0
----
17
-76
23
-76
24
-76

query I rowsort
SELECT - 72 + - col0 AS col1 FROM tab1 AS cor0
----
-123
-157
-163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, 53 FROM tab2
----
46
53
64
53
75
53

query I rowsort
SELECT DISTINCT col0 * + col1 * + + 28 FROM tab1
----
11900
119756
19992

query I rowsort
SELECT DISTINCT - ( + 32 ) FROM tab0
----
-32

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 28 = + col0 + + col1 + ( - 12 )
----

query I rowsort
SELECT - ( - + 70 ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3816
SELECT CAST( + - col2 AS SIGNED ) * - - col0 * - col0 FROM tab1 AS cor0
----
249696
426275
563108

skipif mysql # not compatible
query I rowsort label-3816
SELECT CAST ( + - col2 AS INTEGER ) * - - col0 * - col0 FROM tab1 AS cor0
----
249696
426275
563108

query I rowsort
SELECT ALL + col0 - + + col2 + - col2 AS col1 FROM tab1 AS cor0
----
-141
-33
-45

query I rowsort
SELECT - - 52 - + - col1 FROM tab2 AS cor0
----
103
119
129

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT ALL + MIN( - - 28 ) FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL + MIN ( - - 28 ) FROM tab1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT + COUNT( * ) + - + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3820
SELECT + COUNT ( * ) + - + COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT ALL - 54 * - col0 * col2 / + + col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + 47 * + col2 FROM tab2 AS cor0
----
-1081
-1880
-2726

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NULL = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3824
SELECT DISTINCT + col2 DIV + - col2 AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT + col2 / + - col2 AS col1 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT ( + 71 ) FROM tab2 cor0 WHERE NOT col2 IN ( + - col2 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT ALL MIN( 69 ) FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-3826
SELECT ALL MIN ( 69 ) FROM tab1 AS cor0
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-3827
SELECT + 19 * col2 DIV - + col0 FROM tab1
----
-13
-14
-35

skipif mysql # not compatible
query I rowsort label-3827
SELECT + 19 * col2 / - + col0 FROM tab1
----
-13
-14
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3828
SELECT DISTINCT 26 AS col1 FROM tab2 WHERE - - CAST( - - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3828
SELECT DISTINCT 26 AS col1 FROM tab2 WHERE - - CAST ( - - col0 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL ( - 90 ) * 93 FROM tab2
----
-8370
-8370
-8370

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3831
SELECT DISTINCT + - col0 + - col1 + + + ( - 80 ) FROM tab2 AS cor0 WHERE - CAST( - + col2 AS SIGNED ) BETWEEN NULL AND - col1
----

skipif mysql # not compatible
query I rowsort label-3831
SELECT DISTINCT + - col0 + - col1 + + + ( - 80 ) FROM tab2 AS cor0 WHERE - CAST ( - + col2 AS INTEGER ) BETWEEN NULL AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3832
SELECT DISTINCT - 94 DIV col2 AS col1 FROM tab0 AS cor0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-3832
SELECT DISTINCT - 94 / col2 AS col1 FROM tab0 AS cor0
----
-2
-9
0

query I rowsort
SELECT DISTINCT - - 15 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3834
SELECT ALL CAST( NULL AS DECIMAL ) + + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL CAST ( NULL AS REAL ) + + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col0 FROM tab0 AS cor0 WHERE - 29 IN ( col2, - ( - - 32 ) * + 97 * - col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 ) >= NULL
----

query I rowsort
SELECT + col2 * 47 + col0 FROM tab2 AS cor0
----
1127
1944
2801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3838
SELECT - CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-3838
SELECT - CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT ALL - col2 * col2 * col0 + + col2 + + - 78 AS col2 FROM tab2 AS cor0
----
-102438
-24389
-252320

query I rowsort
SELECT ALL - + 69 FROM tab1 AS cor0
----
-69
-69
-69

query I rowsort
SELECT - col2 * + - 43 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1720
2494
989

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3842
SELECT * FROM tab1 AS cor0 WHERE col2 + CAST( col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3842
SELECT * FROM tab1 AS cor0 WHERE col2 + CAST ( col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - col1 FROM tab2 WHERE NOT + col1 IS NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-3844
SELECT ALL + col2 DIV col2 * + col0 col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3844
SELECT ALL + col2 / col2 * + col0 col2 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT ALL - COUNT( ALL 37 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3845
SELECT ALL - COUNT ( ALL 37 ) AS col0 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( + col2 ), col2 * + col2 col2 FROM tab1
----
-59
3481
-68
4624
-96
9216

query II rowsort
SELECT - col1 AS col1, col1 AS col2 FROM tab1 WHERE ( + 99 ) <> NULL AND col2 - + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3848
SELECT - col1 DIV col2 + - 69 col0 FROM tab1
----
-69
-69
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3848
SELECT - col1 / col2 + - 69 col0 FROM tab1
----
-69
-69
-69

query II rowsort
SELECT ALL - ( - 61 ), col0 AS col1 FROM tab0
----
61
15
61
87
61
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3850
SELECT DISTINCT - CAST( 61 AS SIGNED ) + - 94 * - - col0 * + col0 + col2 FROM tab0 AS cor0
----
-21164
-711537
-884408

skipif mysql # not compatible
query I rowsort label-3850
SELECT DISTINCT - CAST ( 61 AS INTEGER ) + - 94 * - - col0 * + col0 + col2 FROM tab0 AS cor0
----
-21164
-711537
-884408

query I rowsort
SELECT ALL - ( - 26 ) FROM tab2 AS cor0
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT COUNT( + col2 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3852
SELECT COUNT ( + col2 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + 90 - 30 FROM tab0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3854
SELECT ( - 93 ) / + 90 - + 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-3854
SELECT ( - 93 ) / + 90 - + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col2 AS col1, - col0 * ( - - col2 ) AS col0 FROM tab2 AS cor0
----
23
-1058
40
-2560
58
-4350

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < - 44 * - ( + 37 ) * - + col1
----

query I rowsort
SELECT - + col2 * - 95 FROM tab1 cor0
----
5605
6460
9120

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3858
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 - + CAST( NULL AS SIGNED ) / - + 44 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3858
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 - + CAST ( NULL AS INTEGER ) / - + 44 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT ALL + COUNT( ALL - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL + COUNT ( ALL - col2 ) FROM tab1
----
3

query I rowsort
SELECT + + 62 AS col2 FROM tab1 WHERE NOT + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT DISTINCT + 12 * + COUNT( * ) AS col0 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-3861
SELECT DISTINCT + 12 * + COUNT ( * ) AS col0 FROM tab2
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - + 99 col0 FROM tab1
----
5841
6732
9504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 AS cor0 WHERE NOT + ( + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT - - COUNT( * ) + - 84 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3864
SELECT - - COUNT ( * ) + - 84 FROM tab1 AS cor0
----
-81

query II rowsort
SELECT DISTINCT 18 + - - col0 * col0 AS col1, - col0 AS col1 FROM tab1 cor0
----
2619
-51
7243
-85
8299
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT DISTINCT + - COUNT( DISTINCT - 17 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3866
SELECT DISTINCT + - COUNT ( DISTINCT - 17 ) FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 22 col2 FROM tab0 AS cor0 WHERE ( 63 + - + col0 > NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3868
SELECT DISTINCT - col1 * col1 + + col1 * - - 42 + + CAST( NULL AS SIGNED ) - - + col0 * col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3868
SELECT DISTINCT - col1 * col1 + + col1 * - - 42 + + CAST ( NULL AS INTEGER ) - - + col0 * col2 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 / - - 95 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT ALL + COUNT( * ) + - - COUNT( ALL + + 11 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3870
SELECT ALL + COUNT ( * ) + - - COUNT ( ALL + + 11 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT col2 + + - col1 + + + col2 * + col2 AS col0 FROM tab2 AS cor0 WHERE ( NOT + + 13 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3872
SELECT col2 DIV - 59 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3872
SELECT col2 / - 59 AS col1 FROM tab0
----
-1
0
0

query III rowsort
SELECT * FROM tab1 WHERE col1 + - col2 + + 97 * - col0 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3874
SELECT + SUM( + ( + + col0 ) ) DIV - 10 AS col2 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-3874
SELECT + SUM ( + ( + + col0 ) ) / - 10 AS col2 FROM tab2
----
-18

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3875
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0, - col0 * + 33 * + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3875
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0, - col0 * + 33 * + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL

query II rowsort
SELECT + col1 AS col0, + col0 AS col1 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT ALL + COUNT( col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL + COUNT ( col0 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT 63 * - - 54 * SUM( ALL ( + 85 ) ) FROM tab2
----
867510

skipif mysql # not compatible
query I rowsort label-3878
SELECT 63 * - - 54 * SUM ( ALL ( + 85 ) ) FROM tab2
----
867510

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 28 * + col2 <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 BETWEEN ( + col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT 35 - COUNT( * ) FROM tab2 cor0
----
32

skipif mysql # not compatible
query I rowsort label-3881
SELECT 35 - COUNT ( * ) FROM tab2 cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT SUM( ALL - col0 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-227

skipif mysql # not compatible
query I rowsort label-3882
SELECT SUM ( ALL - col0 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3883
SELECT CAST( NULL AS SIGNED ) / - col2 + + col0 * + 15 - + ( - + col0 ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3883
SELECT CAST ( NULL AS INTEGER ) / - col2 + + col0 * + 15 - + ( - + col0 ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - 8 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3885
SELECT ALL CAST( - col2 AS SIGNED ) * CAST( NULL AS SIGNED ) - col1 / col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL CAST ( - col2 AS INTEGER ) * CAST ( NULL AS INTEGER ) - col1 / col0 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3886
SELECT ALL CAST( 14 AS SIGNED ) AS col0 FROM tab1 cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL CAST ( 14 AS INTEGER ) AS col0 FROM tab1 cor0
----
14
14
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3887
SELECT ALL CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3887
SELECT ALL CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - ( col0 ), + col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * + 97 AS col1, - col1 + - col2 * - - 62 col1 FROM tab0 AS cor0
----
1455
-2995
8439
-641
9409
-6139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-3891
SELECT ALL + - SUM( - - col0 ) col2, - COUNT( * ) * - 92 + + COUNT( ALL - col2 ) FROM tab2 cor0
----
-185
279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3891
SELECT ALL + - SUM ( - - col0 ) col2, - COUNT ( * ) * - 92 + + COUNT ( ALL - col2 ) FROM tab2 cor0
----
-185
279

query I rowsort
SELECT - - 8 AS col0 FROM tab1 cor0
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3893
SELECT - - col0 * + col1 AS col1, CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) col1 FROM tab2 AS cor0
----
2346
NULL
4928
NULL
5025
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3893
SELECT - - col0 * + col1 AS col1, CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM tab2 AS cor0
----
2346
NULL
4928
NULL
5025
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3894
SELECT - CAST( SUM( + 6 ) AS SIGNED ) AS col2 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-3894
SELECT - CAST ( SUM ( + 6 ) AS INTEGER ) AS col2 FROM tab0
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-3895
SELECT ALL - COUNT( * ) AS col1, + 34 FROM tab2
----
-3
34

skipif mysql # not compatible
query II rowsort label-3895
SELECT ALL - COUNT ( * ) AS col1, + 34 FROM tab2
----
-3
34

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + + col2 AND + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3897
SELECT ALL * FROM tab2 WHERE - + col1 NOT BETWEEN ( + CAST( + col0 AS SIGNED ) * - + col0 + 56 + + - col0 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3897
SELECT ALL * FROM tab2 WHERE - + col1 NOT BETWEEN ( + CAST ( + col0 AS INTEGER ) * - + col0 + 56 + + - col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT - - COUNT( DISTINCT 70 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3898
SELECT - - COUNT ( DISTINCT 70 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT - COUNT( * ) * + 65 AS col0 FROM tab1 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3899
SELECT - COUNT ( * ) * + 65 AS col0 FROM tab1 AS cor0
----
-195

query II rowsort
SELECT DISTINCT - 52, + 74 - col1 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN - 78 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3901
SELECT 41 AS col2, COUNT( * ) AS col1 FROM tab0 AS cor0
----
41
3

skipif mysql # not compatible
query II rowsort label-3901
SELECT 41 AS col2, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
41
3

query I rowsort
SELECT + 38 * - ( + + 32 ) + col2 FROM tab0 AS cor0
----
-1117
-1169
-1206

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3903
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * - - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3903
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3904
SELECT DISTINCT - col0 DIV - col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
4
97

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT - col0 / - col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
4
97

query I rowsort
SELECT + col2 * - col1 * col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

query I rowsort
SELECT DISTINCT + - 30 FROM tab0 AS cor0 WHERE + 55 + + + col2 IN ( + col1, 97 * + + col0, - - 37 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > 38
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NULL <= + + 47 AND ( NULL ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 46 < + col1
----
91
47
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3910
SELECT col0 + - 11 - - + col1 DIV - col2 + col0 FROM tab1
----
159
171
91

skipif mysql # not compatible
query I rowsort label-3910
SELECT col0 + - 11 - - + col1 / - col2 + col0 FROM tab1
----
159
171
91

query I rowsort
SELECT 32 + 88 FROM tab2
----
120
120
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3912
SELECT - MIN( + + ( + + CAST( - col0 AS SIGNED ) ) ) + + 10 + COUNT( - col1 ) AS col0 FROM tab0
----
110

skipif mysql # not compatible
query I rowsort label-3912
SELECT - MIN ( + + ( + + CAST ( - col0 AS INTEGER ) ) ) + + 10 + COUNT ( - col1 ) AS col0 FROM tab0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT SUM( DISTINCT + + col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3913
SELECT SUM ( DISTINCT + + col2 ) AS col2 FROM tab0
----
156

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col1 / + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 72 * - ( - col0 ) FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-3672
-6120
-6552

onlyif mysql # DIV for integer division: 
query I rowsort label-3916
SELECT - 81 DIV + col1 AS col1 FROM tab0 AS cor0
----
-1
-3
-81

skipif mysql # not compatible
query I rowsort label-3916
SELECT - 81 / + col1 AS col1 FROM tab0 AS cor0
----
-1
-3
-81

query I rowsort
SELECT - - 78 FROM tab0 cor0
----
78
78
78

query II rowsort
SELECT DISTINCT col2 AS col0, + 81 - - + 71 AS col2 FROM tab0 AS cor0
----
10
152
47
152
99
152

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 57 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - col1 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT SUM( ALL + - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3922
SELECT SUM ( ALL + - col2 ) FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3923
SELECT + CAST( - - COUNT( col0 ) AS SIGNED ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3923
SELECT + CAST ( - - COUNT ( col0 ) AS INTEGER ) AS col2 FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT + 25 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3925
SELECT - col0 AS col0 FROM tab1 cor0 WHERE NOT NULL <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3925
SELECT - col0 AS col0 FROM tab1 cor0 WHERE NOT NULL <= + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT - + MIN( - col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3926
SELECT - + MIN ( - col2 ) AS col2 FROM tab2 AS cor0
----
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 40 IN ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 65 col0 FROM tab2 AS cor0
----
65
65
65

query I rowsort
SELECT DISTINCT 27 * 44 * col2 AS col2 FROM tab1
----
114048
70092
80784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3930
SELECT - 9 DIV - ( - + COUNT( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-3930
SELECT - 9 / - ( - + COUNT ( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT - COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3931
SELECT - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT - + col1 * col0 * 6 FROM tab1 AS cor0 WHERE NULL NOT IN ( + 53, - col1, - col1 * + col2 )
----

query I rowsort
SELECT - 60 + - - col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-39
-59
21

query I rowsort
SELECT ALL - col2 + 34 AS col2 FROM tab0 AS cor0
----
-13
-65
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + ( - col2 ) * - + col1 col0 FROM tab0 AS cor0
----
123
2
3792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3936
SELECT MIN( ALL + - CAST( + col1 AS SIGNED ) ) AS col1 FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3936
SELECT MIN ( ALL + - CAST ( + col1 AS INTEGER ) ) AS col1 FROM tab1 cor0
----
-47

query I rowsort
SELECT DISTINCT - col0 + - col2 + - + col1 * + 95 FROM tab1 AS cor0
----
-1477
-4624
-619

onlyif mysql # DIV for integer division: 
query I rowsort label-3938
SELECT DISTINCT + 39 DIV - + col1 + - ( + col0 ) FROM tab0 AS cor0
----
-136
-15
-88

skipif mysql # not compatible
query I rowsort label-3938
SELECT DISTINCT + 39 / - + col1 + - ( + col0 ) FROM tab0 AS cor0
----
-136
-15
-88

query I rowsort
SELECT ALL col1 * - 40 AS col2 FROM tab1
----
-1880
-200
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT DISTINCT MIN( DISTINCT + - 71 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-71

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT MIN ( DISTINCT + - 71 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-71

query I rowsort
SELECT DISTINCT - ( + + col1 ) FROM tab2
----
-51
-67
-77

query II rowsort
SELECT - - col0, - col1 AS col2 FROM tab2 cor0
----
46
-51
64
-77
75
-67

query I rowsort
SELECT + 88 * 86 FROM tab2 AS cor0
----
7568
7568
7568

onlyif mysql # DIV for integer division: 
query I rowsort label-3944
SELECT ( - col1 ) DIV + col0 AS col1 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-3944
SELECT ( - col1 ) / + col0 AS col1 FROM tab0 AS cor0
----
-5
0
0

query I rowsort
SELECT + 59 * + ( + + col0 ) + - col2 FROM tab2 cor0
----
2691
3736
4367

query I rowsort
SELECT - ( - col1 ) * - - col2 + col0 FROM tab1
----
1395
3287
380

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> - + col0 * + + 17 / col0 * + col0 * col0
----

query I rowsort
SELECT DISTINCT 37 + - col1 * col0 FROM tab2
----
-2309
-4891
-4988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 + - col1 + - - 28 col0 FROM tab2 AS cor0
----
23
31
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3950
SELECT + CAST( NULL AS SIGNED ) + - + col2 + 86 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3950
SELECT + CAST ( NULL AS INTEGER ) + - + col2 + 86 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3951
SELECT - MIN( + + col2 ) + - 85 * MIN( ALL + + col0 ) DIV + 87 FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-3951
SELECT - MIN ( + + col2 ) + - 85 * MIN ( ALL + + col0 ) / + 87 FROM tab2 AS cor0
----
-67

query I rowsort
SELECT ALL ( - - 24 ) + + col0 FROM tab2 AS cor0
----
70
88
99

query III rowsort
SELECT * FROM tab0 WHERE - 61 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * 21 AS col1 FROM tab2
----
1344
1575
966

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3955
SELECT - CAST( + + col1 AS DECIMAL ) / + - col0 + + - col1 + + - col1 * + 20 + + 30 AS col1 FROM tab1 AS cor0 WHERE NULL < 85 * 61 * - - 15
----

skipif mysql # not compatible
query I rowsort label-3955
SELECT - CAST ( + + col1 AS REAL ) / + - col0 + + - col1 + + - col1 * + 20 + + 30 AS col1 FROM tab1 AS cor0 WHERE NULL < 85 * 61 * - - 15
----

query I rowsort
SELECT ( - + col2 ) - + - ( - 51 ) + col1 FROM tab2 cor0
----
-14
-23
-42

query I rowsort
SELECT - 68 - - col2 - + col0 AS col0 FROM tab0 AS cor0
----
-145
-36
-66

query I rowsort
SELECT DISTINCT 36 + - col0 * + col2 * 18 FROM tab0 AS cor0
----
-12654
-15624
-172818

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT 77 * + 92 * + 51 * + + 79 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3960
SELECT ALL - col1 * col2 - + col0 + + CAST( NULL AS DECIMAL ) * 32 AS col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL - col1 * col2 - + col0 + + CAST ( NULL AS REAL ) * 32 AS col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + 77 + - 42 FROM tab0
----
35
35
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3962
SELECT DISTINCT CAST( 97 AS SIGNED ) - - col0 AS col2, col2 * - + ( + - 79 ) FROM tab2
----
143
1817
161
3160
172
4582

skipif mysql # not compatible
query II rowsort label-3962
SELECT DISTINCT CAST ( 97 AS INTEGER ) - - col0 AS col2, col2 * - + ( + - 79 ) FROM tab2
----
143
1817
161
3160
172
4582

query I rowsort
SELECT 17 * + col2 * - + col1 AS col0 FROM tab0
----
-1683
-3570
-64719

query I rowsort
SELECT ALL ( 3 ) FROM tab1
----
3
3
3

query I rowsort
SELECT ALL + col0 * - + 33 AS col1 FROM tab0
----
-2871
-3201
-495

query I rowsort
SELECT - col0 * 51 FROM tab2
----
-2346
-3264
-3825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + 35 col0 FROM tab0
----
1645
3465
350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3968
SELECT - 43 DIV - + COUNT( * ) AS col0 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-3968
SELECT - 43 / - + COUNT ( * ) AS col0 FROM tab2
----
14

query I rowsort
SELECT ALL col1 * + col1 * ( - 22 ) AS col2 FROM tab0 AS cor0
----
-144342
-22
-9702

query I rowsort
SELECT ALL - - col2 * 52 - col2 FROM tab0 AS cor0
----
2397
5049
510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3971
SELECT - CAST( + + CAST( - 2 AS SIGNED ) AS SIGNED ) FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-3971
SELECT - CAST ( + + CAST ( - 2 AS INTEGER ) AS INTEGER ) FROM tab2
----
2
2
2

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) NOT IN ( 95 * + ( - col0 ), + col1, + 68 * + col1 + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 88 * + - 94 + + - 33 + col2 * col1 - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT DISTINCT + - COUNT( DISTINCT + col2 ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3974
SELECT DISTINCT + - COUNT ( DISTINCT + col2 ) AS col2 FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3975
SELECT + 37 + col1 AS col1 FROM tab2 AS cor0 WHERE NOT CAST( col1 AS SIGNED ) IN ( - + col0 / - col1, + 13, - 88, col2 + - 19 * - col1 + + 63, col0, - 11 * + col0 - - + 40 - + col2 )
----
104
114
88

skipif mysql # not compatible
query I rowsort label-3975
SELECT + 37 + col1 AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( col1 AS INTEGER ) IN ( - + col0 / - col1, + 13, - 88, col2 + - 19 * - col1 + + 63, col0, - 11 * + col0 - - + 40 - + col2 )
----
104
114
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3976
SELECT ALL col1 DIV - + col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL col1 / - + col2 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 + + 10 * - col1 col2 FROM tab2
----
-510
-670
-770

onlyif mysql # DIV for integer division: 
query I rowsort label-3978
SELECT col0 DIV 63 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3978
SELECT col0 / 63 FROM tab2
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3979
SELECT col1 DIV 46 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3979
SELECT col1 / 46 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT MIN( ALL col1 ) col2 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3980
SELECT MIN ( ALL col1 ) col2 FROM tab2
----
51

query I rowsort
SELECT ALL + 90 * + + 11 AS col2 FROM tab1
----
990
990
990

onlyif mysql # DIV for integer division: 
query I rowsort label-3982
SELECT 8 DIV + - col0 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3982
SELECT 8 / + - col0 AS col0 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3983
SELECT ALL - 7 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL - 7 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT MAX( 91 ) FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-3984
SELECT MAX ( 91 ) FROM tab2
----
91

query III rowsort
SELECT * FROM tab2 WHERE col2 <> 70
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 90 AS col1 FROM tab0 WHERE col2 - - col2 IS NOT NULL
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT ALL - SUM( ALL - + ( + 53 ) ) + 63 FROM tab0
----
222

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL - SUM ( ALL - + ( + 53 ) ) + 63 FROM tab0
----
222

query I rowsort
SELECT ALL - ( col2 ) + - 9 FROM tab0
----
-108
-19
-56

query I rowsort
SELECT DISTINCT col2 + col0 - + 97 AS col1 FROM tab0 AS cor0
----
-35
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT - SUM( col0 ) * - 12 + - + 68 AS col2 FROM tab1 AS cor0
----
2656

skipif mysql # not compatible
query I rowsort label-3990
SELECT - SUM ( col0 ) * - 12 + - + 68 AS col2 FROM tab1 AS cor0
----
2656

query I rowsort
SELECT + + col0 + - 20 * + + 10 AS col1 FROM tab0 AS cor0
----
-103
-113
-185

query I rowsort
SELECT col2 * + 41 + + 67 * col0 FROM tab2
----
4025
5928
7403

query II rowsort
SELECT + col0 * + col2 * + + col0 + col0 AS col1, + 6 AS col1 FROM tab0
----
10590
6
75777
6
931588
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT - ( + 63 ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-3994
SELECT - ( + 63 ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT DISTINCT - MIN( - 54 ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT - MIN ( - 54 ) FROM tab0 AS cor0
----
54

query I rowsort
SELECT DISTINCT col0 * - 37 + 96 FROM tab2 AS cor0
----
-1606
-2272
-2679

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT + COUNT( * ) * - ( + - COUNT( + + col2 ) ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3997
SELECT + COUNT ( * ) * - ( + - COUNT ( + + col2 ) ) FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT + - COUNT( + - col0 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3998
SELECT + - COUNT ( + - col0 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT + col1 * 74 + - col1 FROM tab1 AS cor0
----
1022
3431
365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 88 col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT SUM( DISTINCT + + col0 ) FROM tab2 cor0 WHERE NULL IS NULL
----
185

skipif mysql # not compatible
query I rowsort label-4001
SELECT SUM ( DISTINCT + + col0 ) FROM tab2 cor0 WHERE NULL IS NULL
----
185

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 81 * col2 >= col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4003
SELECT + - col2 DIV - 83 + - 83 + col2 FROM tab0 AS cor0
----
-36
-73
17

skipif mysql # not compatible
query I rowsort label-4003
SELECT + - col2 / - 83 + - 83 + col2 FROM tab0 AS cor0
----
-36
-73
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 col0 FROM tab0
----
93
93
93

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 / - col1 + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT ALL 41 * + SUM( 36 ) AS col1 FROM tab0
----
4428

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL 41 * + SUM ( 36 ) AS col1 FROM tab0
----
4428

query II rowsort
SELECT 94 AS col2, col0 AS col1 FROM tab1 AS cor0
----
94
51
94
85
94
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT 55 * + COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
495

skipif mysql # not compatible
query I rowsort label-4008
SELECT 55 * + COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
495

query II rowsort
SELECT DISTINCT - - 28 AS col0, 74 * col2 + - 73 FROM tab0 AS cor0
----
28
3405
28
667
28
7253

query I rowsort
SELECT - 99 * + col1 FROM tab2 cor0
----
-5049
-6633
-7623

onlyif mysql # aggregate syntax: 
query II rowsort label-4011
SELECT - 53 AS col2, - MIN( - 33 ) FROM tab0 AS cor0
----
-53
33

skipif mysql # not compatible
query II rowsort label-4011
SELECT - 53 AS col2, - MIN ( - 33 ) FROM tab0 AS cor0
----
-53
33

query I rowsort
SELECT 7 * + col1 FROM tab0 AS cor0
----
147
567
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT + - 26 * + COUNT( * ) * 23 AS col2 FROM tab2 AS cor0
----
-1794

skipif mysql # not compatible
query I rowsort label-4013
SELECT + - 26 * + COUNT ( * ) * 23 AS col2 FROM tab2 AS cor0
----
-1794

query II rowsort
SELECT ALL col0 * - - 5 AS col1, 10 AS col2 FROM tab0
----
435
10
485
10
75
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 5 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + + + col0 FROM tab2
----
104
133
69

query I rowsort
SELECT DISTINCT col0 * + 91 * - + 96 AS col2 FROM tab1
----
-445536
-742560
-794976

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4018
SELECT * FROM tab2 WHERE + 56 + CAST( col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4018
SELECT * FROM tab2 WHERE + 56 + CAST ( col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4019
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 93 + - 1 + + col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 93 + - 1 + + col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 83 col0 FROM tab0 AS cor0
----
-1245
-7221
-8051

query I rowsort
SELECT DISTINCT - col0 * col0 * - ( col2 ) + + + 6 AS col0 FROM tab2 AS cor0
----
163846
326256
48674

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4022
SELECT - CAST( 60 AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
-9
17
7

skipif mysql # not compatible
query I rowsort label-4022
SELECT - CAST ( 60 AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
-9
17
7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 >= - - col1
----

query I rowsort
SELECT + 87 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT 48 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT + col2 * 6 * + ( 39 ) FROM tab2
----
13572
5382
9360

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT + 97 - + SUM( + col1 ) AS col0 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-4027
SELECT + 97 - + SUM ( + col1 ) AS col0 FROM tab0
----
-6

query II rowsort
SELECT 30 - + ( 86 ) AS col2, - col1 AS col1 FROM tab1
----
-56
-14
-56
-47
-56
-5

query I rowsort
SELECT + ( + 33 ) - - col1 * + - col1 * - - 29 * + col0 AS col1 FROM tab0
----
-1112610
-2780
-2854002

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT 38 + + col2 IS NULL
----
14
47
5

query I rowsort
SELECT - - 45 - + col0 AS col0 FROM tab1 AS cor0
----
-40
-46
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT DISTINCT COUNT( 0 ) + - - 97 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-4032
SELECT DISTINCT COUNT ( 0 ) + - - 97 FROM tab0 AS cor0
----
100

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN - 44 + col0 * - col2 * + col1 AND 22
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT + MIN( - - 82 ) + MAX( ALL 58 ) col0 FROM tab1 cor0
----
140

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4035
SELECT + MIN ( - - 82 ) + MAX ( ALL 58 ) col0 FROM tab1 cor0
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT DISTINCT + SUM( DISTINCT + 52 ) AS col1 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-4036
SELECT DISTINCT + SUM ( DISTINCT + 52 ) AS col1 FROM tab0 AS cor0
----
52

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + + + col0 * col0 < - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col0 AS col1, col0 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT DISTINCT COUNT( - 42 ) * - COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT COUNT ( - 42 ) * - COUNT ( * ) FROM tab1
----
-9

query II rowsort
SELECT col0, + col1 - 50 AS col0 FROM tab0
----
15
31
87
-29
97
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-4041
SELECT DISTINCT COUNT( * ) AS col0, ( - + COUNT( * ) ) AS col1 FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-4041
SELECT DISTINCT COUNT ( * ) AS col0, ( - + COUNT ( * ) ) AS col1 FROM tab1
----
3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - 96 col1 FROM tab2
----
-4896
-6432
-7392

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT DISTINCT + SUM( - 65 ) FROM tab1
----
-195

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT + SUM ( - 65 ) FROM tab1
----
-195

query I rowsort
SELECT ALL - + ( + + ( 1 ) ) FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) * 33 AS col2 FROM tab1 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-4045
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) * 33 AS col2 FROM tab1 AS cor0
----
-297

query I rowsort
SELECT ALL - col0 * - + 42 FROM tab2 WHERE col2 IS NOT NULL
----
1932
2688
3150

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4047
SELECT ALL + 27 + + col2 + - CAST( NULL AS SIGNED ) + + col2 + - 47 * - - 95 / - col0 + - 73 AS col2, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4047
SELECT ALL + 27 + + col2 + - CAST ( NULL AS INTEGER ) + + col2 + - 47 * - - 95 / - col0 + - 73 AS col2, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT col2 + + - 11 FROM tab0 AS cor0
----
-1
36
88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * + ( + 96 ) <= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * 63 * + col1 AS col1 FROM tab2
----
163863
282807
373527

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4051
SELECT DISTINCT - CAST( col1 AS SIGNED ) + - - 56 - + col2 DIV + - col1 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
10
48
62

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + - - 56 - + col2 / + - col1 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
10
48
62

onlyif mysql # DIV for integer division: 
query I rowsort label-4052
SELECT DISTINCT - col1 DIV + 11 AS col1 FROM tab1
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-4052
SELECT DISTINCT - col1 / + 11 AS col1 FROM tab1
----
-1
-4
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4053
SELECT DISTINCT ( + 71 ) * MAX( ALL + CAST( col2 AS SIGNED ) ) col2 FROM tab0
----
7029

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4053
SELECT DISTINCT ( + 71 ) * MAX ( ALL + CAST ( col2 AS INTEGER ) ) col2 FROM tab0
----
7029

query I rowsort
SELECT + - col0 FROM tab0 WHERE - col2 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT ALL col1 * - 13 FROM tab0
----
-1053
-13
-273

query I rowsort
SELECT ALL ( + 99 ) FROM tab2 WHERE NULL IS NULL
----
99
99
99

query III rowsort
SELECT * FROM tab0 WHERE - - 93 * col0 + 53 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE + col0 * - 73 IS NULL
----

query I rowsort
SELECT ALL - - 82 * + ( + 0 ) + - 73 AS col2 FROM tab0 AS cor0
----
-73
-73
-73

query I rowsort
SELECT DISTINCT 57 * 44 - - col2 * - + ( + col0 ) FROM tab2 AS cor0
----
-1842
-52
1450

query I rowsort
SELECT + col1 + - - col0 AS col2 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT col1 + col1 * + col1 * ( 36 ) + + ( + col2 ) FROM tab0 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT ( 53 ) FROM tab0
----
53

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( 35 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT COUNT( * ) * ( 95 ) FROM tab0
----
285

skipif mysql # not compatible
query I rowsort label-4065
SELECT COUNT ( * ) * ( 95 ) FROM tab0
----
285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4066
SELECT - col2 AS col1 FROM tab2 WHERE - col1 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4066
SELECT - col2 AS col1 FROM tab2 WHERE - col1 NOT IN ( CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( + 51 ) col0 FROM tab0
----
1071
4131
51

query I rowsort
SELECT 48 * col0 FROM tab0
----
4176
4656
720

query I rowsort
SELECT DISTINCT + 66 + + col1 AS col0 FROM tab2
----
117
133
143

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT SUM( DISTINCT col2 ) * + 80 AS col2 FROM tab2
----
9680

skipif mysql # not compatible
query I rowsort label-4070
SELECT SUM ( DISTINCT col2 ) * + 80 AS col2 FROM tab2
----
9680

query I rowsort
SELECT - 15 * col2 + col0 * 73 FROM tab2
----
3013
4072
4605

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE NOT 71 * 96 + col2 IS NOT NULL
----

query I rowsort
SELECT - 56 + col1 FROM tab2
----
-5
11
21

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 + + col0 * col2 ) >= ( + col0 )
----

query I rowsort
SELECT - col2 FROM tab1 WHERE + 24 = ( - ( col0 ) )
----

query I rowsort
SELECT DISTINCT 21 / - col0 FROM tab0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE ( col2 + col1 ) <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4078
SELECT DISTINCT + CAST( 88 AS SIGNED ) - SUM( - col2 ) FROM tab0
----
244

skipif mysql # not compatible
query I rowsort label-4078
SELECT DISTINCT + CAST ( 88 AS INTEGER ) - SUM ( - col2 ) FROM tab0
----
244

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT 89 + COUNT( ALL 30 ) FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-4079
SELECT 89 + COUNT ( ALL 30 ) FROM tab0
----
92

query I rowsort
SELECT 53 * 33 AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND - 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT DISTINCT + 11 * 58 + - COUNT( * ) FROM tab1
----
635

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT + 11 * 58 + - COUNT ( * ) FROM tab1
----
635

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT DISTINCT COUNT( * ) + 57 AS col2 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-4082
SELECT DISTINCT COUNT ( * ) + 57 AS col2 FROM tab0
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 93 col0 FROM tab2
----
139
157
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4084
SELECT - MAX( DISTINCT + 58 ) * - 79 col2 FROM tab1 WHERE ( 38 ) NOT BETWEEN ( + col2 * CAST( NULL AS SIGNED ) ) AND ( + CAST( col0 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4084
SELECT - MAX ( DISTINCT + 58 ) * - 79 col2 FROM tab1 WHERE ( 38 ) NOT BETWEEN ( + col2 * CAST ( NULL AS INTEGER ) ) AND ( + CAST ( col0 AS INTEGER ) )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL + 72 + col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - ( - 48 ) AS col0 FROM tab0
----
48
48
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4088
SELECT + COUNT( - CAST( + 80 AS SIGNED ) ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4088
SELECT + COUNT ( - CAST ( + 80 AS INTEGER ) ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT DISTINCT - SUM( DISTINCT + 14 ) FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT - SUM ( DISTINCT + 14 ) FROM tab1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4090
SELECT - ( + CAST( 40 AS SIGNED ) ) + ( + SUM( DISTINCT 90 ) ) * 91 AS col2 FROM tab0
----
8150

skipif mysql # not compatible
query I rowsort label-4090
SELECT - ( + CAST ( 40 AS INTEGER ) ) + ( + SUM ( DISTINCT 90 ) ) * 91 AS col2 FROM tab0
----
8150

query III rowsort
SELECT * FROM tab2 WHERE + col1 * - col0 NOT IN ( ( + col1 ) * - col1 + 10 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4092
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 51 - - CAST( col1 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4092
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 51 - - CAST ( col1 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 47 * col0 FROM tab1 cor0
----
-2397
-3995
-4277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 75 col1 FROM tab2 AS cor0
----
-75
-75
-75

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 * - col2 ) <> 88 * col0 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT DISTINCT COUNT( * ) * 61 AS col2 FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-4096
SELECT DISTINCT COUNT ( * ) * 61 AS col2 FROM tab1
----
183

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND ( + col1 )
----

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 WHERE NOT + 93 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT ALL COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
81

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT ALL COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( col1 ) >= 70 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-4100
SELECT ALL COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( col1 ) >= 70 * - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4101
SELECT + CAST( col2 AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-4101
SELECT + CAST ( col2 AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4102
SELECT + - MAX( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4102
SELECT + - MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > ( col1 * - 58 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4104
SELECT ALL + col0 - + 97 * - col1 FROM tab2 cor0 WHERE NOT NULL IN ( CAST( col2 AS SIGNED ) * 22 )
----

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL + col0 - + 97 * - col1 FROM tab2 cor0 WHERE NOT NULL IN ( CAST ( col2 AS INTEGER ) * 22 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 90 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT ALL + col0 * 95 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT + - SUM( col0 ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4108
SELECT + - SUM ( col0 ) AS col0 FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4109
SELECT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) * + col0 + 75 <= 97
----

skipif mysql # not compatible
query III rowsort label-4109
SELECT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) * + col0 + 75 <= 97
----

query I rowsort
SELECT DISTINCT 65 + - col2 FROM tab1
----
-3
-31
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4111
SELECT DISTINCT ( - ( ( 80 ) ) ) DIV + col1 FROM tab0
----
-3
-80
0

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT ( - ( ( 80 ) ) ) / + col1 FROM tab0
----
-3
-80
0

query I rowsort
SELECT - col1 + - 43 FROM tab2
----
-110
-120
-94

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 > col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + + ( col2 ) AS col1 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT - MAX( ALL - col1 ) * + 69 + - 50 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-4115
SELECT - MAX ( ALL - col1 ) * + 69 + - 50 FROM tab0
----
19

query I rowsort
SELECT - col1 + + ( 89 ) FROM tab0
----
68
8
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4117
SELECT - 81 DIV + + COUNT( * ) + + COUNT( * ) * 36 AS col1 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-4117
SELECT - 81 / + + COUNT ( * ) + + COUNT ( * ) * 36 AS col1 FROM tab2
----
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 6 + col2 < ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 21 * + col1 + + col2 IS NOT NULL
----

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE + 10 / - col2 BETWEEN + col0 * - col1 AND col1 + col2
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4121
SELECT DISTINCT - ( + + col0 ) - + + CAST( col2 AS SIGNED ) FROM tab2
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-4121
SELECT DISTINCT - ( + + col0 ) - + + CAST ( col2 AS INTEGER ) FROM tab2
----
-104
-133
-69

query I rowsort
SELECT - 77 AS col0 FROM tab0 WHERE ( + + 22 ) IS NULL
----

query I rowsort
SELECT ALL - 9 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT ALL + 32 FROM tab2 WHERE + 94 > col1
----
32
32
32

query I rowsort
SELECT 53 * col0 AS col0 FROM tab0
----
4611
5141
795

query II rowsort
SELECT DISTINCT + col1, - col1 AS col0 FROM tab1
----
14
-14
47
-47
5
-5

query III rowsort
SELECT * FROM tab2 WHERE NOT - - ( col0 ) - 70 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4128
SELECT CAST( NULL AS SIGNED ), - col0 AS col1 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-4128
SELECT CAST ( NULL AS INTEGER ), - col0 AS col1 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT + ( 99 ) FROM tab1 AS cor0
----
99
99
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4130
SELECT ALL - 41 AS col2, MIN( col1 ) col2 FROM tab0 AS cor0
----
-41
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4130
SELECT ALL - 41 AS col2, MIN ( col1 ) col2 FROM tab0 AS cor0
----
-41
1

query I rowsort
SELECT ALL 11 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 11
----

query I rowsort
SELECT ALL + 17 * 78 FROM tab2 AS cor0
----
1326
1326
1326

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 55 IS NOT NULL
----

query I rowsort
SELECT ALL 13 * - col1 - col0 FROM tab0 AS cor0 WHERE - col0 BETWEEN - col2 AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 25 * + col0 NOT BETWEEN ( col0 ) AND ( - col2 * + 31 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT ALL - 93 * + COUNT( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL - 93 * + COUNT ( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
-279

query III rowsort
SELECT * FROM tab2 WHERE NOT 38 NOT BETWEEN + 33 AND ( - col2 )
----

query I rowsort
SELECT + col2 * - col0 FROM tab0 WHERE NOT - col2 * - 1 IS NULL
----
-705
-870
-9603

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN ( + col2 + - 53 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4140
SELECT DISTINCT + col2 DIV col0 * + 44 AS col1 FROM tab1
----
0
44

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT + col2 / col0 * + 44 AS col1 FROM tab1
----
0
44

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= + + 0 * - + 82
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * - col2 - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT - MIN( DISTINCT + col2 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4143
SELECT - MIN ( DISTINCT + col2 ) AS col0 FROM tab1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4144
SELECT ALL + 28 * - CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL + 28 * - CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT + + ( COUNT( * ) ) AS col2 FROM tab0 AS cor0 WHERE NOT 1 > + col0
----
3

skipif mysql # not compatible
query I rowsort label-4145
SELECT + + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE NOT 1 > + col0
----
3

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 91 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT DISTINCT 57 * - 88 AS col0 FROM tab2
----
-5016

query I rowsort
SELECT - col2 * + - col1 + col1 + - + 94 + 3 * col2 AS col1 FROM tab2
----
1199
3183
4033

query II rowsort
SELECT DISTINCT 70, + col0 AS col0 FROM tab1
----
70
51
70
85
70
91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 96 <= - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4151
SELECT DISTINCT + ( + CAST( NULL AS DECIMAL ) ) + + + COUNT( + col1 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT DISTINCT + ( + CAST ( NULL AS REAL ) ) + + + COUNT ( + col1 ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4152
SELECT DISTINCT 5 * + CAST( - col0 AS SIGNED ) * col1 col0 FROM tab1 AS cor0 WHERE - 41 IS NOT NULL
----
-2125
-21385
-3570

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4152
SELECT DISTINCT 5 * + CAST ( - col0 AS INTEGER ) * col1 col0 FROM tab1 AS cor0 WHERE - 41 IS NOT NULL
----
-2125
-21385
-3570

query I rowsort
SELECT DISTINCT + col2 + - + ( - ( col0 ) ) + col0 * + 37 * col2 AS col0 FROM tab2 AS cor0
----
161083
39215
94824

query I rowsort
SELECT DISTINCT - + 37 FROM tab1 AS cor0 WHERE ( col2 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col2 * - col0 * + col1 + - col2 AS col2 FROM tab2 AS cor0 WHERE NULL <= + col1 - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4156
SELECT ALL 29 + + - CAST( - ( + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
34
43
76

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL 29 + + - CAST ( - ( + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
34
43
76

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - + col1 AND ( - col0 )
----

query I rowsort
SELECT DISTINCT - col1 - - col0 + col1 * + col2 * + col0 * + 34 AS col2 FROM tab2 AS cor0
----
1834567
6702067
9909308

query I rowsort
SELECT - col1 * 89 FROM tab1
----
-1246
-4183
-445

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT COUNT( * ) * 51 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-4160
SELECT COUNT ( * ) * 51 FROM tab2
----
153

query I rowsort
SELECT + - col0 FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75

query I rowsort
SELECT ALL 27 - - - col1 AS col0 FROM tab1
----
-20
13
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4163
SELECT - COUNT( * ) AS col0, + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-4163
SELECT - COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
-3
NULL

query I rowsort
SELECT DISTINCT col2 * - 97 + + 89 AS col0 FROM tab2 WHERE NOT + col2 * col0 = ( col1 )
----
-2142
-3791
-5537

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4165
SELECT DISTINCT - CAST( - COUNT( - col0 ) AS SIGNED ) + - - COUNT( * ) AS col1, - 16 AS col1 FROM tab0 AS cor0
----
6
-16

skipif mysql # not compatible
query II rowsort label-4165
SELECT DISTINCT - CAST ( - COUNT ( - col0 ) AS INTEGER ) + - - COUNT ( * ) AS col1, - 16 AS col1 FROM tab0 AS cor0
----
6
-16

query I rowsort
SELECT ALL - 86 * + col0 + col0 AS col0 FROM tab2 AS cor0 WHERE ( - col0 + ( - col1 ) * + 59 ) <> col2 + col0
----
-3910
-5440
-6375

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT ALL - MIN( DISTINCT - - col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL - MIN ( DISTINCT - - col1 ) AS col2 FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4168
SELECT ( + col1 ) * - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) + + col2 + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4168
SELECT ( + col1 ) * - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) + + col2 + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( col0 ) IS NOT NULL
----

query II rowsort
SELECT col2 AS col1, 90 FROM tab1 cor0
----
59
90
68
90
96
90

query I rowsort
SELECT + - col0 * + + col1 FROM tab0 WHERE NOT + + col2 <= - col2
----
-1215
-1827
-97

query I rowsort
SELECT - ( + + 30 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT DISTINCT COUNT( * ) * + 5 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
45

skipif mysql # not compatible
query I rowsort label-4173
SELECT DISTINCT COUNT ( * ) * + 5 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - - 94 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4175
SELECT col0 * 42 + col0 + + - CAST( NULL AS DECIMAL ) - 83 * 68 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4175
SELECT col0 * 42 + col0 + + - CAST ( NULL AS REAL ) - 83 * 68 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + 94 AS col2 FROM tab0 AS cor0
----
1974
7614
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT ALL 24 * + - COUNT( * ) FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL 24 * + - COUNT ( * ) FROM tab1 AS cor0
----
-72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 13 ) NOT BETWEEN ( - 2 ) AND - - col0 + + ( + 11 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 60 * + - col0 AS col1 FROM tab0 AS cor0
----
5220
5820
900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4180
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NOT + CAST( col2 AS SIGNED ) IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-4180
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NOT + CAST ( col2 AS INTEGER ) IS NOT NULL )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4181
SELECT - ( + col0 ) DIV + col1 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-4181
SELECT - ( + col0 ) / + col1 FROM tab0 AS cor0
----
-4
-97
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4182
SELECT ALL - COUNT( * ) DIV - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL - COUNT ( * ) / - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL = + 75
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 38 ) col1 FROM tab1 cor0
----
38
38
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 32 col1 FROM tab0 AS cor0
----
-32
-32
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4186
SELECT DISTINCT CAST( + 45 AS SIGNED ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT CAST ( + 45 AS INTEGER ) FROM tab1 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT - + COUNT( ALL - ( - + col2 ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4187
SELECT - + COUNT ( ALL - ( - + col2 ) ) FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT + col0 * - 85 FROM tab1
----
-4335
-7225
-7735

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT DISTINCT - SUM( - ( + - ( + 50 ) ) ) FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-4189
SELECT DISTINCT - SUM ( - ( + - ( + 50 ) ) ) FROM tab0
----
-150

query III rowsort
SELECT ALL * FROM tab0 WHERE + 0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4191
SELECT + 15 DIV col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4191
SELECT + 15 / col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4192
SELECT DISTINCT - ( - - CAST( + col2 AS SIGNED ) ) * + col0 col1 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4192
SELECT DISTINCT - ( - - CAST ( + col2 AS INTEGER ) ) * + col0 col1 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT + ( - ( + - col2 ) ) FROM tab1
----
59
68
96

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL + ( - - col0 ) * - 64 FROM tab0
----
-5568
-6208
-960

query I rowsort
SELECT + 99 + - - 74 + col0 AS col2 FROM tab0 AS cor0
----
188
260
270

query I rowsort
SELECT col0 + - col1 + - col1 + + + col1 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4198
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4198
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - 32 + + col1 AS col1 FROM tab0 AS cor0
----
113
33
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT DISTINCT COUNT( * ) - + MAX( DISTINCT - 57 ) * + COUNT( * ) * + 23 FROM tab0, tab1 AS cor0
----
11808

skipif mysql # not compatible
query I rowsort label-4200
SELECT DISTINCT COUNT ( * ) - + MAX ( DISTINCT - 57 ) * + COUNT ( * ) * + 23 FROM tab0, tab1 AS cor0
----
11808

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 3 ) IN ( - + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 + - col2 + + col2 col0 FROM tab0 AS cor0
----
5
5
5

query I rowsort
SELECT DISTINCT ( - 23 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT DISTINCT + + MIN( ( + - 18 ) ) FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-4204
SELECT DISTINCT + + MIN ( ( + - 18 ) ) FROM tab1 AS cor0
----
-18

query I rowsort
SELECT ALL + 35 + - - col0 FROM tab0 AS cor0
----
122
132
50

query I rowsort
SELECT DISTINCT col1 - 15 FROM tab2 AS cor0
----
36
52
62

query I rowsort
SELECT - - col2 + - col1 * + + col0 FROM tab0 AS cor0 WHERE 78 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4208
SELECT ALL * FROM tab1 AS cor0 WHERE 84 NOT BETWEEN CAST( - 7 AS SIGNED ) AND ( col2 * + + 90 )
----

skipif mysql # not compatible
query III rowsort label-4208
SELECT ALL * FROM tab1 AS cor0 WHERE 84 NOT BETWEEN CAST ( - 7 AS INTEGER ) AND ( col2 * + + 90 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 + + - 89 AND - 71
----

query I rowsort
SELECT 26 * col1 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 * col1 >= + col0
----

query I rowsort
SELECT + col1 + - - col1 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query II rowsort label-4214
SELECT ALL - COUNT( * ), - 80 AS col2 FROM tab0
----
-3
-80

skipif mysql # not compatible
query II rowsort label-4214
SELECT ALL - COUNT ( * ), - 80 AS col2 FROM tab0
----
-3
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 70 * - col2 + + col0 + + col1 col2 FROM tab1
----
-3981
-4554
-6559

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4216
SELECT CAST( 76 AS SIGNED ) AS col1 FROM tab0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-4216
SELECT CAST ( 76 AS INTEGER ) AS col1 FROM tab0
----
76
76
76

query III rowsort
SELECT * FROM tab0 WHERE NULL < col1 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4218
SELECT + col2 AS col2, - col2 * - ( col1 ) * - - col1 + - 2 + + CAST( NULL AS SIGNED ) * - 25 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-4218
SELECT + col2 AS col2, - col2 * - ( col1 ) * - - col1 + - 2 + + CAST ( NULL AS INTEGER ) * - 25 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 * ( - 18 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4219
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 * ( - 18 ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col0 * + + 15 AS col0 FROM tab0 AS cor0
----
1305
1455
225

query III rowsort
SELECT ALL * FROM tab1 WHERE - 67 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 86 * + + col1 * 77 FROM tab0
----
139062
536382
6622

query II rowsort
SELECT - + 37, + 5 AS col0 FROM tab1 AS cor0
----
-37
5
-37
5
-37
5

query I rowsort
SELECT DISTINCT + 8 * + 33 * 42 FROM tab1 AS cor0
----
11088

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 31 + + col0 ) NOT IN ( ( col1 ), 87 )
----

query I rowsort
SELECT - + 21 AS col1 FROM tab1 AS cor0
----
-21
-21
-21

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE NOT - col2 / - + col0 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT DISTINCT + COUNT( DISTINCT col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT + COUNT ( DISTINCT col1 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL col0 * 56 FROM tab2
----
2576
3584
4200

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IS NOT NULL AND NOT ( + - col0 - - - col2 * 57 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT DISTINCT COUNT( * ) * - 67 AS col2 FROM tab1
----
-201

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT COUNT ( * ) * - 67 AS col2 FROM tab1
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT + COUNT( * ) + - COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4232
SELECT + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT + 16 + + SUM( ALL + col0 ) col2 FROM tab2
----
201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4233
SELECT + 16 + + SUM ( ALL + col0 ) col2 FROM tab2
----
201

query I rowsort
SELECT - 71 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - 24 col1 FROM tab2 AS cor0
----
-1
16
34

query I rowsort
SELECT DISTINCT + col0 + - + 97 FROM tab2 AS cor0
----
-22
-33
-51

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 32 * + 73 > NULL
----

query I rowsort
SELECT DISTINCT col1 - + + col0 AS col0 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT - col1 * - col0 - - + col1 AS col1 FROM tab2
----
2397
5005
5092

query II rowsort
SELECT 34 * + + 4 - + col1 + - col0 AS col1, - 29 AS col0 FROM tab1
----
-2
-29
46
-29
71
-29

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN ( + 26 ) AND NULL
----

query II rowsort
SELECT - col2 - col2, + col1 AS col2 FROM tab0
----
-198
1
-20
21
-94
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4243
SELECT ALL - ( + CAST( + col0 AS SIGNED ) ) * + 7 col1, + col0 DIV col1 FROM tab2
----
-322
0
-448
0
-525
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4243
SELECT ALL - ( + CAST ( + col0 AS INTEGER ) ) * + 7 col1, + col0 / col1 FROM tab2
----
-322
0
-448
0
-525
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4244
SELECT COUNT( * ) DIV 62 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4244
SELECT COUNT ( * ) / 62 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 + - - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT ALL + COUNT( - 60 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL + COUNT ( - 60 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT - MIN( DISTINCT - 47 ) FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
47

skipif mysql # not compatible
query I rowsort label-4247
SELECT - MIN ( DISTINCT - 47 ) FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT - + COUNT( * ) * - 63 * - + 73 AS col2 FROM tab0 cor0
----
-13797

skipif mysql # not compatible
query I rowsort label-4248
SELECT - + COUNT ( * ) * - 63 * - + 73 AS col2 FROM tab0 cor0
----
-13797

query I rowsort
SELECT ALL 21 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col1 + + col1, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4251
SELECT ALL CAST( NULL AS SIGNED ), + col1 AS col0 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-4251
SELECT ALL CAST ( NULL AS INTEGER ), + col1 AS col0 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query II rowsort
SELECT DISTINCT - col1, - col2 AS col1 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

query I rowsort
SELECT + + 51 * + - col2 * - + 41 * - col1 - + + 59 FROM tab1 cor0
----
-2810363
-616904
-6682895

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 72 BETWEEN - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1 AS col1, col0 col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4256
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 IN ( ( ( - col2 ) ) * + + CAST( col2 AS SIGNED ) + - 72, - col2, - + col0 * 66 )
----

skipif mysql # not compatible
query III rowsort label-4256
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 IN ( ( ( - col2 ) ) * + + CAST ( col2 AS INTEGER ) + - 72, - col2, - + col0 * 66 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> + col1 - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT + SUM( ALL + + col1 ) col1 FROM tab1 cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4258
SELECT + SUM ( ALL + + col1 ) col1 FROM tab1 cor0
----
66

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 + - - col2 = + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4260
SELECT ALL - CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL - CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + + 88 AS col2 FROM tab1
----
147
156
184

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT ALL COUNT( - col1 ) * - 30 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL COUNT ( - col1 ) * - 30 FROM tab2
----
-90

query I rowsort
SELECT ALL col0 + + col0 + 43 AS col1 FROM tab1
----
145
213
225

onlyif mysql # DIV for integer division: 
query I rowsort label-4264
SELECT + col2 DIV - - col1 + - - col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4264
SELECT + col2 / - - col1 + - - col1 FROM tab2 AS cor0
----
51
67
77

query II rowsort
SELECT - 88, col0 AS col1 FROM tab2 AS cor0
----
-88
46
-88
64
-88
75

query II rowsort
SELECT ALL 47 * + col1 AS col2, - 41 * + + col1 + - ( + - 33 ) AS col1 FROM tab1
----
2209
-1894
235
-172
658
-541

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4267
SELECT DISTINCT - col2 / - CAST( NULL AS SIGNED ) / + - ( - ( - col0 ) ), + col0 AS col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-4267
SELECT DISTINCT - col2 / - CAST ( NULL AS INTEGER ) / + - ( - ( - col0 ) ), + col0 AS col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4268
SELECT - col1 DIV + col0 * col2 DIV - CAST( - - CAST( - 86 AS SIGNED ) AS SIGNED ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4268
SELECT - col1 / + col0 * col2 / - CAST ( - - CAST ( - 86 AS INTEGER ) AS INTEGER ) AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT DISTINCT - 27 * 26 + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-693

skipif mysql # not compatible
query I rowsort label-4269
SELECT DISTINCT - 27 * 26 + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4270
SELECT - col0 - - CAST( + - 11 AS SIGNED ) * + col1 * 48 AS col0 FROM tab2 AS cor0
----
-26974
-35451
-40720

skipif mysql # not compatible
query I rowsort label-4270
SELECT - col0 - - CAST ( + - 11 AS INTEGER ) * + col1 * 48 AS col0 FROM tab2 AS cor0
----
-26974
-35451
-40720

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE 64 NOT IN ( - - col2 )
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4272
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4272
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT + 61 + COUNT( * ) * - 83 col0 FROM tab0 AS cor0
----
-188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4273
SELECT + 61 + COUNT ( * ) * - 83 col0 FROM tab0 AS cor0
----
-188

query I rowsort
SELECT 68 FROM tab0 AS cor0 WHERE 32 = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 AND ( + - 14 )
----

query II rowsort
SELECT ALL 47 - 3 + + - col0, col2 - - - col1 AS col2 FROM tab2 AS cor0
----
-2
-28
-20
-37
-31
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= + 53
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + - col1 col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * + col0 * + - col1 * + + col2 AS col0 FROM tab2
----
-12615680
-21858750
-2482068

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT COUNT( * ) * - - COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4280
SELECT COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab1
----
9

query II rowsort
SELECT ALL 30 AS col1, col2 FROM tab2
----
30
23
30
40
30
58

query I rowsort
SELECT + 53 * col0 FROM tab0
----
4611
5141
795

onlyif mysql # aggregate syntax: 
query II rowsort label-4283
SELECT + COUNT( * ) AS col0, 57 * + - MIN( ALL col1 ) AS col1 FROM tab1
----
3
-285

skipif mysql # not compatible
query II rowsort label-4283
SELECT + COUNT ( * ) AS col0, 57 * + - MIN ( ALL col1 ) AS col1 FROM tab1
----
3
-285

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 54 * 68 AND NULL
----

query I rowsort
SELECT - ( + col2 ) AS col0 FROM tab2 cor0
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 4 < col0 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 3 * + col0 * + + 9 * - 48 > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + + col0 + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4289
SELECT + SUM( CAST( - col0 AS SIGNED ) ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4289
SELECT + SUM ( CAST ( - col0 AS INTEGER ) ) FROM tab2 AS cor0
----
-185

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 + + + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 85 / 38 >= + + col2 * 43
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 20 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4293
SELECT DISTINCT col0 * + - col2 DIV - + col2 AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT col0 * + - col2 / - + col2 AS col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL + col2 * 9 * + + col0 + + - ( - 10 ) FROM tab1 AS cor0
----
44074
45145
55702

query I rowsort
SELECT 39 * col2 * - - 32 FROM tab2
----
28704
49920
72384

query III rowsort
SELECT * FROM tab0 WHERE col2 - - col2 - - - ( + col0 ) * - col2 BETWEEN col2 * - + 3 AND - + col2
----

query II rowsort
SELECT col1, + col2 AS col1 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4298
SELECT 80 DIV col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4298
SELECT 80 / col0 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4299
SELECT DISTINCT ( - 22 ) DIV + col2 * + - 86 * col2 + - - CAST( + 97 AS SIGNED ) * + 53 + + col2 * + 50 FROM tab1
----
8091
8541
9941

skipif mysql # not compatible
query I rowsort label-4299
SELECT DISTINCT ( - 22 ) / + col2 * + - 86 * col2 + - - CAST ( + 97 AS INTEGER ) * + 53 + + col2 * + 50 FROM tab1
----
8091
8541
9941

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col2 * + + 78 + - col1 AS col2 FROM tab0 AS cor0
----
3585
759
7721

query I rowsort
SELECT 81 + - col0 * - + col1 AS col2 FROM tab1 AS cor0
----
4358
506
795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4303
SELECT col0 + - 88 + - col0 + - CAST( NULL AS SIGNED ) / + + 25 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4303
SELECT col0 + - 88 + - col0 + - CAST ( NULL AS INTEGER ) / + + 25 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - col1 ) col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4305
SELECT ( CAST( NULL AS SIGNED ) ) / ( + + 18 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4305
SELECT ( CAST ( NULL AS INTEGER ) ) / ( + + 18 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4306
SELECT - MAX( col0 ) col2, + 72 FROM tab1 AS cor0
----
-91
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4306
SELECT - MAX ( col0 ) col2, + 72 FROM tab1 AS cor0
----
-91
72

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4308
SELECT DISTINCT + 79 + + col1 * CAST( + col2 AS SIGNED ) * + 88 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4308
SELECT DISTINCT + 79 + + col1 * CAST ( + col2 AS INTEGER ) * + 88 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4309
SELECT ALL - - MAX( + col1 ) DIV + COUNT( col2 ) AS col2 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL - - MAX ( + col1 ) / + COUNT ( col2 ) AS col2 FROM tab1 AS cor0
----
15

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) IN ( ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT DISTINCT COUNT( * ) * 35 col1 FROM tab2 AS cor0
----
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4311
SELECT DISTINCT COUNT ( * ) * 35 col1 FROM tab2 AS cor0
----
105

query II rowsort
SELECT 60, col2 FROM tab0 AS cor0
----
60
10
60
47
60
99

query I rowsort
SELECT col0 AS col2 FROM tab2 cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NULL <> + ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4314
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NULL <> + ( col2 )
----
0

query I rowsort
SELECT ALL + 31 * - - col2 * col0 FROM tab0 WHERE NOT + + 88 * col0 + - col1 > NULL
----

query I rowsort
SELECT ALL - 75 * 79 FROM tab0 AS cor0
----
-5925
-5925
-5925

query I rowsort
SELECT ALL - + col0 AS col2 FROM tab0 WHERE - ( - 20 ) / col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4318
SELECT + CAST( NULL AS SIGNED ) AS col2, + col2 AS col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-4318
SELECT + CAST ( NULL AS INTEGER ) AS col2, + col2 AS col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN + col0 AND - + col0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 12 ) col1 FROM tab2 AS cor0
----
12

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT DISTINCT - ( MIN( - 61 ) ) FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT - ( MIN ( - 61 ) ) FROM tab2
----
61

query I rowsort
SELECT ALL - - col1 + + col1 + + + col1 AS col1 FROM tab0 AS cor0
----
243
3
63

query II rowsort
SELECT ( + col0 ), - 3 AS col1 FROM tab0 AS cor0
----
15
-3
87
-3
97
-3

query I rowsort
SELECT DISTINCT + col2 + + + 98 + + col2 * + 2 + 51 AS col0 FROM tab2 cor0
----
218
269
323

query I rowsort
SELECT ALL + ( + AVG ( - + 17 ) ) AS col1 FROM tab1 AS cor0 WHERE + col1 IS NULL
----
NULL

query I rowsort
SELECT 36 - + col2 AS col1 FROM tab0
----
-11
-63
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 24 * - col2 col2 FROM tab2
----
104400
25392
61440

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT ALL - COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT DISTINCT MAX( DISTINCT - col0 ) * - + 70 FROM tab1 AS cor0
----
3570

skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT MAX ( DISTINCT - col0 ) * - + 70 FROM tab1 AS cor0
----
3570

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT ALL - - 70 * - + COUNT( * ) FROM tab1 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL - - 70 * - + COUNT ( * ) FROM tab1 AS cor0
----
-210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 * + + col1 col2 FROM tab0 cor0
----
2187
27
567

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT ALL - + COUNT( - - col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL - + COUNT ( - - col1 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 68 * - col0 AS col2 FROM tab0 AS cor0
----
-1020
-5916
-6596

query I rowsort
SELECT + - 79 * - 17 AS col1 FROM tab2 AS cor0
----
1343
1343
1343

query I rowsort
SELECT DISTINCT - 44 FROM tab1 WHERE - + col1 IS NOT NULL
----
-44

query I rowsort
SELECT DISTINCT - 12 FROM tab2 WHERE NOT NULL >= + col0 / - col0
----

query I rowsort
SELECT - ( - - col1 ) FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT + SUM( 61 ) FROM tab2
----
183

skipif mysql # not compatible
query I rowsort label-4340
SELECT + SUM ( 61 ) FROM tab2
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT ALL 72 * - COUNT( * ) * - - COUNT( * ) col1 FROM tab1
----
-648

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4341
SELECT ALL 72 * - COUNT ( * ) * - - COUNT ( * ) col1 FROM tab1
----
-648

query II rowsort
SELECT + col1, + col1 FROM tab1
----
14
14
47
47
5
5

query II rowsort
SELECT col2 AS col1, + 47 FROM tab0
----
10
47
47
47
99
47

query I rowsort
SELECT ALL - + col0 * ( + + col2 ) * + col2 * col2 + + - col2 FROM tab2 AS cor0
----
-14633458
-4096040
-559705

query I rowsort
SELECT + 12 FROM tab1 AS cor0 WHERE NOT ( - - col0 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4346
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT - ( - - 52 ) * - col1 FROM tab2 AS cor0
----
2652
3484
4004

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT COUNT( * ) * 78 col0 FROM tab0
----
234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4348
SELECT COUNT ( * ) * 78 col0 FROM tab0
----
234

query II rowsort
SELECT ALL - 41 * - ( col1 ), col1 FROM tab0
----
3321
81
41
1
861
21

onlyif mysql # aggregate syntax: 
query II rowsort label-4350
SELECT - ( 62 ), + SUM( col0 ) AS col1 FROM tab2
----
-62
185

skipif mysql # not compatible
query II rowsort label-4350
SELECT - ( 62 ), + SUM ( col0 ) AS col1 FROM tab2
----
-62
185

query I rowsort
SELECT DISTINCT 81 * - + ( 99 ) FROM tab0, tab2 AS cor0
----
-8019

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - col1, - 73 )
----

query I rowsort
SELECT DISTINCT + - 40 * - 47 * - col2 + - 71 AS col1 FROM tab1 cor0
----
-110991
-127911
-180551

query I rowsort
SELECT - ( + col0 ) + - 63 FROM tab1 AS cor0 WHERE NULL = + col1 + col1 * - - 97
----

query I rowsort
SELECT ALL - - 30 + + + col1 * + col1 FROM tab0 AS cor0
----
31
471
6591

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 col2 FROM tab2 cor0
----
48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4357
SELECT ALL + COUNT( * ) * 80 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4357
SELECT ALL + COUNT ( * ) * 80 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col0 + + ( - 91 ) / - 57 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4359
SELECT ALL + ( SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL + ( SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4360
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4360
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4361
SELECT - 79 DIV + COUNT( * ) FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-4361
SELECT - 79 / + COUNT ( * ) FROM tab1 AS cor0
----
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 * + 60 col0 FROM tab1 AS cor0 WHERE 65 - - 48 * + 58 + + col0 IS NOT NULL
----
3840
3840
3840

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT DISTINCT - 92 - + + COUNT( * ) FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-4363
SELECT DISTINCT - 92 - + + COUNT ( * ) FROM tab0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4364
SELECT ALL 63 AS col0, - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
63
NULL
63
NULL
63
NULL

skipif mysql # not compatible
query II rowsort label-4364
SELECT ALL 63 AS col0, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
63
NULL
63
NULL
63
NULL

query I rowsort
SELECT - 43 * - - col2 AS col1 FROM tab0
----
-2021
-4257
-430

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT ALL SUM( - 17 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL SUM ( - 17 ) AS col1 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT + COUNT( * ) * + 26 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-4367
SELECT + COUNT ( * ) * + 26 FROM tab0
----
78

query I rowsort
SELECT DISTINCT - col2 + + 45 FROM tab0
----
-2
-54
35

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + - + col2 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * + col2 + - - col0 FROM tab1 cor0
----
3566
4715
9267

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - col0 = - + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + - + col1 + 53 + - col0 * col2 * - col0 * - col2 AS col0 FROM tab2 AS cor0
----
-1119413
-18922581
-6553701

onlyif mysql # aggregate syntax: 
query II rowsort label-4373
SELECT ALL + COUNT( * ) + + 35 + + COUNT( * ), 49 AS col2 FROM tab2 AS cor0
----
41
49

skipif mysql # not compatible
query II rowsort label-4373
SELECT ALL + COUNT ( * ) + + 35 + + COUNT ( * ), 49 AS col2 FROM tab2 AS cor0
----
41
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 83 col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT + - 43 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - + ( + col1 ) FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN + col0 AND - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT ALL + + MIN( + + col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL + + MIN ( + + col0 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT + - col2 * + 16 FROM tab0 AS cor0
----
-1584
-160
-752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4379
SELECT - + COUNT( * ) * + - ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4379
SELECT - + COUNT ( * ) * + - ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4380
SELECT - ( + col2 ) DIV - col0 * + + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4380
SELECT - ( + col2 ) / - col0 * + + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT ALL + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL <= + col2 + + 73
----
0

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL <= + col2 + + 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT - + MIN( DISTINCT + 57 ) * + - ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-4382
SELECT - + MIN ( DISTINCT + 57 ) * + - ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
171

query III rowsort
SELECT * FROM tab0 WHERE NOT + 74 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * + ( + 12 ) FROM tab1
----
-168
-564
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-4385
SELECT - 9 AS col0, COUNT( * ) AS col2 FROM tab0
----
-9
3

skipif mysql # not compatible
query II rowsort label-4385
SELECT - 9 AS col0, COUNT ( * ) AS col2 FROM tab0
----
-9
3

query I rowsort
SELECT DISTINCT + 76 * + col1 FROM tab1
----
1064
3572
380

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT 4 <= NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, col1 col1 FROM tab1 WHERE NOT + col1 + + 50 < + - 95
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT ALL - COUNT( * ) * 17 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4390
SELECT ALL - COUNT ( * ) * 17 FROM tab1 cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <= 43
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4392
SELECT - col1 + + col1 * + + CAST( + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
182
20
2162

skipif mysql # not compatible
query I rowsort label-4392
SELECT - col1 + + col1 * + + CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
182
20
2162

query I rowsort
SELECT - col1 + - col2 + - - 68 FROM tab0 AS cor0
----
-32
-60
37

query I rowsort
SELECT + + 49 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query II rowsort
SELECT DISTINCT + col2 AS col2, - col2 * + 35 FROM tab0
----
10
-350
47
-1645
99
-3465

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4397
SELECT ALL + col2 * - + CAST( - col1 AS SIGNED ) AS col2 FROM tab0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL + col2 * - + CAST ( - col1 AS INTEGER ) AS col2 FROM tab0
----
210
3807
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4399
SELECT ALL - col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL - col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4400
SELECT ALL - CAST( NULL AS SIGNED ) + - - col0 - - col1 * + - 81 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL - CAST ( NULL AS INTEGER ) + - - col0 - - col1 * + - 81 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 55 / + col2 + - col1 - - 33 * + - col1 AS col1, + col1 col2 FROM tab0 AS cor0 WHERE ( NOT + 29 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4403
SELECT DISTINCT - COUNT( * ) - 45 DIV + 36 FROM tab1 WHERE NOT + col0 * - col1 > col2
----
-4

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT - COUNT ( * ) - 45 / + 36 FROM tab1 WHERE NOT + col0 * - col1 > col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT DISTINCT + 57 * + COUNT( * ) FROM tab0
----
171

skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT + 57 * + COUNT ( * ) FROM tab0
----
171

query I rowsort
SELECT col1 + + - 30 FROM tab0
----
-29
-9
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4406
SELECT - col0 + ( - CAST( NULL AS DECIMAL ) ) + + 87 + - 39 * col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4406
SELECT - col0 + ( - CAST ( NULL AS REAL ) ) + + 87 + - 39 * col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 + - ( - + ( 34 ) ) * - 26 col0 FROM tab1
----
-850
-850
-850

query I rowsort
SELECT DISTINCT col1 * ( - + col0 ) FROM tab2
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-4409
SELECT ALL col1 + col2 + col2 + 96 + - col0 DIV + col1 FROM tab0
----
133
198
271

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL col1 + col2 + col2 + 96 + - col0 / + col1 FROM tab0
----
133
198
271

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4410
SELECT - COUNT( * ) DIV - MIN( ALL col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4410
SELECT - COUNT ( * ) / - MIN ( ALL col1 ) FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 48 - - col1 IS NOT NULL
----

query II rowsort
SELECT col1 * + 17, + col0 AS col0 FROM tab1 AS cor0
----
238
51
799
91
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT DISTINCT COUNT( + 21 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT COUNT ( + 21 ) FROM tab0
----
3

query I rowsort
SELECT 97 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT DISTINCT - 62 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT SUM( + + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4416
SELECT SUM ( + + col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-4417
SELECT + + COUNT( * ) AS col2, SUM( + col0 ) FROM tab1 AS cor0
----
3
227

skipif mysql # not compatible
query II rowsort label-4417
SELECT + + COUNT ( * ) AS col2, SUM ( + col0 ) FROM tab1 AS cor0
----
3
227

query II rowsort
SELECT DISTINCT + 18, ( - ( - col1 ) ) + - - 52 + - - col1 AS col2 FROM tab1 cor0
----
18
146
18
62
18
80

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - col1 + - col2 + + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT MAX( - ( + 83 ) ) AS col2 FROM tab1 AS cor0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4420
SELECT MAX ( - ( + 83 ) ) AS col2 FROM tab1 AS cor0 WHERE NULL >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT + ( - MIN( col0 ) ) + - COUNT( * ) AS col1 FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-4421
SELECT + ( - MIN ( col0 ) ) + - COUNT ( * ) AS col1 FROM tab2
----
-49

query I rowsort
SELECT 29 + 25 AS col0 FROM ( tab2 cor0 LEFT JOIN tab0 AS cor1 ON NULL IS NULL )
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT 9 + COUNT( col0 ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-4423
SELECT 9 + COUNT ( col0 ) FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-4424
SELECT - - COUNT( * ) AS col1, + COUNT( * ) + 35 FROM tab2 AS cor0
----
3
38

skipif mysql # not compatible
query II rowsort label-4424
SELECT - - COUNT ( * ) AS col1, + COUNT ( * ) + 35 FROM tab2 AS cor0
----
3
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT ALL - COUNT( * ) + - 55 * + 24 AS col0 FROM tab2 AS cor0
----
-1323

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL - COUNT ( * ) + - 55 * + 24 AS col0 FROM tab2 AS cor0
----
-1323

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT ALL + 70 - + - COUNT( * ) col0 FROM tab1 AS cor0
----
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4426
SELECT ALL + 70 - + - COUNT ( * ) col0 FROM tab1 AS cor0
----
73

query I rowsort
SELECT DISTINCT 40 * - - col0 * - col0 AS col0 FROM tab0 AS cor0
----
-302760
-376360
-9000

query I rowsort
SELECT - ( + - 54 ) FROM tab1 cor0
----
54
54
54

query I rowsort
SELECT ALL - 1 + + + col1 AS col1 FROM tab1 AS cor0
----
13
4
46

query I rowsort
SELECT DISTINCT - col1 - + + col1 AS col1 FROM tab2
----
-102
-134
-154

query I rowsort
SELECT ALL - col1 - - + col2 FROM tab2
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4432
SELECT ALL CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4432
SELECT ALL CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 14 * 97 FROM tab1
----
1358

onlyif mysql # DIV for integer division: 
query I rowsort label-4434
SELECT ALL + col0 DIV - col0 col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4434
SELECT ALL + col0 / - col0 col1 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - 53 + - col1 * - col0 col0 FROM tab2
----
-357
1474
847

query I rowsort
SELECT DISTINCT + 82 + + 95 FROM tab1
----
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - + 99 col2 FROM tab0 AS cor0
----
4653
9801
990

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4438
SELECT + col1 / - 7 + col1 * CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 WHERE NOT - col0 * - col2 + - CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-4438
SELECT + col1 / - 7 + col1 * CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 WHERE NOT - col0 * - col2 + - CAST ( NULL AS INTEGER ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 67 * - col0 * + col0 col0 FROM tab1 AS cor0
----
-174267
-484075
-554827

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4440
SELECT col1 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) - - col1 <= NULL
----

skipif mysql # not compatible
query I rowsort label-4440
SELECT col1 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) - - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT - COUNT( * ) * + MIN( + col2 ) AS col1 FROM tab2 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4441
SELECT - COUNT ( * ) * + MIN ( + col2 ) AS col1 FROM tab2 cor0
----
-69

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4443
SELECT + - COUNT( * ) DIV + + 51 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4443
SELECT + - COUNT ( * ) / + + 51 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4444
SELECT ALL + 42 DIV + CAST( col0 AS SIGNED ) + + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL + 42 / + CAST ( col0 AS INTEGER ) + + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4445
SELECT CAST( - col0 AS SIGNED ) * col0 AS col0, 13 AS col1 FROM tab1
----
-2601
13
-7225
13
-8281
13

skipif mysql # not compatible
query II rowsort label-4445
SELECT CAST ( - col0 AS INTEGER ) * col0 AS col0, 13 AS col1 FROM tab1
----
-2601
13
-7225
13
-8281
13

query II rowsort
SELECT ALL + 50, col0 FROM tab2
----
50
46
50
64
50
75

query I rowsort
SELECT DISTINCT ( - + col0 ) AS col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - col0 + - 57 FROM tab2
----
-103
-121
-132

query I rowsort
SELECT 2 + - col0 + + - col2 + ( col0 ) AS col2 FROM tab2
----
-21
-38
-56

query I rowsort
SELECT + col2 * - col1 * col0 + col2 FROM tab2
----
-197080
-291392
-53935

query I rowsort
SELECT ALL col0 + 28 AS col2 FROM tab1
----
113
119
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4452
SELECT ALL - - MAX( ALL CAST( + 9 AS SIGNED ) ) AS col0, COUNT( * ) AS col1 FROM tab2 AS cor0
----
9
3

skipif mysql # not compatible
query II rowsort label-4452
SELECT ALL - - MAX ( ALL CAST ( + 9 AS INTEGER ) ) AS col0, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
9
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 + + - col1 - - - col1 col0 FROM tab2 AS cor0
----
1071
2926
3752

query I rowsort
SELECT + 80 + + 59 FROM tab0 AS cor0
----
139
139
139

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4455
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN - 89 + - CAST( NULL AS DECIMAL ) AND 71
----

skipif mysql # not compatible
query III rowsort label-4455
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN - 89 + - CAST ( NULL AS REAL ) AND 71
----

query I rowsort
SELECT DISTINCT + col0 * - - 79 AS col1 FROM tab0 AS cor0
----
1185
6873
7663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 2 col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT DISTINCT - COUNT( - 42 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4458
SELECT DISTINCT - COUNT ( - 42 ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT + ( + ( + - col1 ) ) FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT - COUNT( * ) - + COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4460
SELECT - COUNT ( * ) - + COUNT ( * ) FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT ALL - 2 - - SUM( ALL col2 ) * + - MIN( - col0 ) FROM tab0 AS cor0
----
15130

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL - 2 - - SUM ( ALL col2 ) * + - MIN ( - col0 ) FROM tab0 AS cor0
----
15130

query I rowsort
SELECT col0 * 60 * + col1 + - col0 AS col2 FROM tab2
----
140714
295616
301425

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= - - col0 / - 36
----

query I rowsort
SELECT - col1 * + + 56 AS col0 FROM tab2
----
-2856
-3752
-4312

onlyif mysql # DIV for integer division: 
query I rowsort label-4465
SELECT col0 DIV + 16 FROM tab2
----
2
4
4

skipif mysql # not compatible
query I rowsort label-4465
SELECT col0 / + 16 FROM tab2
----
2
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT ALL + COUNT( * ) * 13 AS col0 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL + COUNT ( * ) * 13 AS col0 FROM tab1 AS cor0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, col2 + col2 * col0 AS col2 FROM tab2
----
-46
1081
-64
2600
-75
4408

query II rowsort
SELECT DISTINCT 85 AS col2, 26 AS col0 FROM tab2
----
85
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4469
SELECT + SUM( DISTINCT - 66 ) AS col0, 87 AS col2 FROM tab1
----
-66
87

skipif mysql # not compatible
query II rowsort label-4469
SELECT + SUM ( DISTINCT - 66 ) AS col0, 87 AS col2 FROM tab1
----
-66
87

query II rowsort
SELECT 93, + col1 FROM tab1 AS cor0
----
93
14
93
47
93
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1 AS col1, + col0 col0 FROM tab2 cor0
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4472
SELECT ALL - 61 - - col2 + - + col1 + - col0 * - CAST( NULL AS SIGNED ) + - 36 col2 FROM tab2 AS cor0 WHERE NOT 16 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4472
SELECT ALL - 61 - - col2 + - + col1 + - col0 * - CAST ( NULL AS INTEGER ) + - 36 col2 FROM tab2 AS cor0 WHERE NOT 16 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * + + col0 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT DISTINCT + + MIN( DISTINCT + + 5 ) FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4474
SELECT DISTINCT + + MIN ( DISTINCT + + 5 ) FROM tab0 AS cor0
----
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 col2, col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT ( 93 ) * + SUM( + + 10 ) * - + ( - 62 ) FROM tab2
----
172980

skipif mysql # not compatible
query I rowsort label-4477
SELECT ( 93 ) * + SUM ( + + 10 ) * - + ( - 62 ) FROM tab2
----
172980

query III rowsort
SELECT * FROM tab1 WHERE 24 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4479
SELECT - MAX( ALL 44 ) * 59 * COUNT( ALL col2 ) + + 13 + + COUNT( * ) * - SUM( ALL + CAST( - + col2 AS SIGNED ) ) * + + 84 AS col2 FROM tab0 AS cor0
----
31537

skipif mysql # not compatible
query I rowsort label-4479
SELECT - MAX ( ALL 44 ) * 59 * COUNT ( ALL col2 ) + + 13 + + COUNT ( * ) * - SUM ( ALL + CAST ( - + col2 AS INTEGER ) ) * + + 84 AS col2 FROM tab0 AS cor0
----
31537

query II rowsort
SELECT ALL col1 AS col1, - 54 FROM tab2
----
51
-54
67
-54
77
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4481
SELECT ALL + + CAST( NULL AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL + + CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( 0 + + 90 IS NOT NULL ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 74 > NULL
----

query II rowsort
SELECT ALL - col2 + + 7 * - 28, col0 AS col0 FROM tab2 cor0
----
-219
46
-236
64
-254
75

query I rowsort
SELECT ALL - 55 + 84 AS col0 FROM tab1 AS cor0
----
29
29
29

query I rowsort
SELECT ALL - 31 - + col2 AS col0 FROM tab0 AS cor0
----
-130
-41
-78

query I rowsort
SELECT ALL + 61 + 29 AS col0 FROM tab0 AS cor0
----
90
90
90

query I rowsort
SELECT ALL - - col1 + + - col0 AS col1 FROM tab0 AS cor0
----
-66
-96
66

query II rowsort
SELECT DISTINCT - col1, col1 AS col2 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4490
SELECT ALL MAX( DISTINCT + col1 ) AS col1, + 11 * 71 AS col0 FROM tab1
----
47
781

skipif mysql # not compatible
query II rowsort label-4490
SELECT ALL MAX ( DISTINCT + col1 ) AS col1, + 11 * 71 AS col0 FROM tab1
----
47
781

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + 17 AND + col0 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT + + 71 * - COUNT( ALL - col1 ) * - + 90 * - 58 * - + COUNT( * ) * - - 25 FROM tab0 AS cor0
----
83389500

skipif mysql # not compatible
query I rowsort label-4492
SELECT + + 71 * - COUNT ( ALL - col1 ) * - + 90 * - 58 * - + COUNT ( * ) * - - 25 FROM tab0 AS cor0
----
83389500

query I rowsort
SELECT + - col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 14 - 15 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4495
SELECT ALL - ( - - col2 ) + col0 col2, ( + + CAST( NULL AS DECIMAL ) ) FROM tab2
----
17
NULL
23
NULL
24
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4495
SELECT ALL - ( - - col2 ) + col0 col2, ( + + CAST ( NULL AS REAL ) ) FROM tab2
----
17
NULL
23
NULL
24
NULL

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT 88 * - 93 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4497
SELECT + + COUNT( * ) * - MIN( - col1 ), + COUNT( * ) AS col0 FROM tab0 AS cor0
----
243
3

skipif mysql # not compatible
query II rowsort label-4497
SELECT + + COUNT ( * ) * - MIN ( - col1 ), + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
243
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 94 + 33 + - col1 col0 FROM tab0 AS cor0
----
106
126
46

query III rowsort
SELECT 63, - 83 * - col0 AS col2, - col2 AS col0 FROM tab0 AS cor0
----
9 values hashing to 3090df59d0a42746672c141bc90797c0

onlyif mysql # aggregate syntax: 
query II rowsort label-4500
SELECT + ( + COUNT( ALL + - 18 ) ) AS col2, 90 AS col1 FROM tab2 AS cor0 WHERE NOT 47 * - - col0 IS NOT NULL
----
0
90

skipif mysql # not compatible
query II rowsort label-4500
SELECT + ( + COUNT ( ALL + - 18 ) ) AS col2, 90 AS col1 FROM tab2 AS cor0 WHERE NOT 47 * - - col0 IS NOT NULL
----
0
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT - MIN( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4501
SELECT - MIN ( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
81

query I rowsort
SELECT ALL 72 + - col1 FROM tab0 AS cor0
----
-9
51
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT DISTINCT MIN( + - 57 ) FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-4503
SELECT DISTINCT MIN ( + - 57 ) FROM tab1 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT COUNT( * ) * MIN( ALL ( col2 ) ) AS col2 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-4504
SELECT COUNT ( * ) * MIN ( ALL ( col2 ) ) AS col2 FROM tab0 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT - COUNT( * ) * - - 6 AS col2 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-4505
SELECT - COUNT ( * ) * - - 6 AS col2 FROM tab1 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT ALL MAX( - ( 94 ) ) AS col2 FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL MAX ( - ( 94 ) ) AS col2 FROM tab0
----
-94

query I rowsort
SELECT DISTINCT + ( - + col1 ) AS col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT + 69 + + + 2 AS col2 FROM tab2
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT DISTINCT + 92 * + COUNT( * ) FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT + 92 * + COUNT ( * ) FROM tab1
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT DISTINCT - - COUNT( * ) * - 15 AS col1 FROM tab0 WHERE - 2 - col0 + col0 > - col0 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT - - COUNT ( * ) * - 15 AS col1 FROM tab0 WHERE - 2 - col0 + col0 > - col0 * - col1
----
0

query I rowsort
SELECT - 36 + - col1 + col1 * + + 69 * - - col2 + + col2 + + col2 AS col0 FROM tab0
----
14453
262660
6992

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT ALL ( + + ( COUNT( * ) ) ) * - + ( - - 75 ) FROM tab1
----
-225

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL ( + + ( COUNT ( * ) ) ) * - + ( - - 75 ) FROM tab1
----
-225

query I rowsort
SELECT ALL col0 * - col0 + + col1 * col1 FROM tab1 AS cor0
----
-2405
-6072
-7200

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 77 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4515
SELECT + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4515
SELECT + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4516
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4517
SELECT DISTINCT + 52 DIV + 82 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4517
SELECT DISTINCT + 52 / + 82 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + - col2 - - 94 + col1 FROM tab0 AS cor0
----
-4
105
128

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT ALL MAX( ALL - + 12 ) + COUNT( * ) + - - COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL MAX ( ALL - + 12 ) + COUNT ( * ) + - - COUNT ( * ) FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT - MIN( + 35 ) + - 13 * SUM( - 98 ) AS col1 FROM tab1 cor0
----
3787

skipif mysql # not compatible
query I rowsort label-4520
SELECT - MIN ( + 35 ) + - 13 * SUM ( - 98 ) AS col1 FROM tab1 cor0
----
3787

query I rowsort
SELECT ALL - + col1 FROM tab2 AS cor0 WHERE NULL <= col2 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT DISTINCT + + ( + COUNT( + col1 ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT + + ( + COUNT ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND 62 / + col0 / - col1 - + col2 / - col2 + - 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT SUM( DISTINCT + col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-4524
SELECT SUM ( DISTINCT + col2 ) AS col1 FROM tab1
----
223

query II rowsort
SELECT DISTINCT + 41 AS col2, + col2 AS col2 FROM tab2
----
41
23
41
40
41
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT SUM( DISTINCT + + 11 ) FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-4526
SELECT SUM ( DISTINCT + + 11 ) FROM tab1
----
11

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 + + + 95 * - col0 * + - col0 IS NOT NULL
----

query I rowsort
SELECT + col0 * - + col0 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT - - 12 AS col1 FROM tab1 WHERE NOT + col2 + - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 22 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4531
SELECT - col2 * col1 AS col1 FROM tab0 WHERE col2 / - CAST( col1 / 58 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-4531
SELECT - col2 * col1 AS col1 FROM tab0 WHERE col2 / - CAST ( col1 / 58 AS INTEGER ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT COUNT( * ) + 97 AS col2 FROM tab2
----
100

skipif mysql # not compatible
query I rowsort label-4532
SELECT COUNT ( * ) + 97 AS col2 FROM tab2
----
100

query I rowsort
SELECT ALL 34 FROM tab0 WHERE NOT col2 IS NULL
----
34
34
34

query I rowsort
SELECT - col2 * 31 AS col1 FROM tab0 WHERE NULL NOT BETWEEN + 74 + col0 / + 92 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT DISTINCT + MIN( 84 ) AS col1 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-4535
SELECT DISTINCT + MIN ( 84 ) AS col1 FROM tab1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT + 47 * - 75 + 93 * + COUNT( * ) AS col1 FROM tab0
----
-3246

skipif mysql # not compatible
query I rowsort label-4536
SELECT + 47 * - 75 + 93 * + COUNT ( * ) AS col1 FROM tab0
----
-3246

query I rowsort
SELECT + 81 AS col0 FROM tab0 WHERE NOT - 94 / col2 BETWEEN ( NULL ) AND ( + col1 * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4538
SELECT ALL 74 DIV col2 + + 6 * ( col2 ) col1 FROM tab0
----
283
594
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4538
SELECT ALL 74 / col2 + + 6 * ( col2 ) col1 FROM tab0
----
283
594
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4539
SELECT ALL CAST( 45 AS SIGNED ) * - col0 - - col0 FROM tab2
----
-2024
-2816
-3300

skipif mysql # not compatible
query I rowsort label-4539
SELECT ALL CAST ( 45 AS INTEGER ) * - col0 - - col0 FROM tab2
----
-2024
-2816
-3300

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT - 60 * COUNT( ALL col0 * + col2 ) FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-4540
SELECT - 60 * COUNT ( ALL col0 * + col2 ) FROM tab1
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT 70 + + COUNT( * ) AS col0 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-4541
SELECT 70 + + COUNT ( * ) AS col0 FROM tab1
----
73

query I rowsort
SELECT ALL 22 + + col0 AS col1 FROM tab0
----
109
119
37

query III rowsort
SELECT * FROM tab2 WHERE + col1 * 83 - 0 IS NULL
----

query I rowsort
SELECT - 58 AS col2 FROM tab0 WHERE + col1 IS NOT NULL
----
-58
-58
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 62 col2 FROM tab1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-4546
SELECT col1 DIV - col1 + col0 col1 FROM tab1
----
50
84
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4546
SELECT col1 / - col1 + col0 col1 FROM tab1
----
50
84
90

query I rowsort
SELECT ALL - ( 54 ) AS col1 FROM tab2
----
-54
-54
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4548
SELECT + COUNT( * ) * MAX( ALL + CAST( col2 AS SIGNED ) ) + ( - MIN( DISTINCT 8 ) ) FROM tab0
----
289

skipif mysql # not compatible
query I rowsort label-4548
SELECT + COUNT ( * ) * MAX ( ALL + CAST ( col2 AS INTEGER ) ) + ( - MIN ( DISTINCT 8 ) ) FROM tab0
----
289

query I rowsort
SELECT - ( 92 ) - 5 FROM tab2 WHERE NULL IS NULL
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT + COUNT( * ) + - 48 AS col2 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-4550
SELECT + COUNT ( * ) + - 48 AS col2 FROM tab0
----
-45

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col1 ) BETWEEN 90 * + 33 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4552
SELECT DISTINCT 53 * CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4552
SELECT DISTINCT 53 * CAST ( CAST ( NULL AS REAL ) AS INTEGER ) col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL - ( col1 ) * col2 AS col0 FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN col2 AND ( 84 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 20 + - col2 IS NULL
----

query I rowsort
SELECT ( - col2 ) + - 81 * - 66 FROM tab0 AS cor0
----
5247
5299
5336

query I rowsort
SELECT ALL col1 - ( + col2 ) FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT - 19 + + SUM( - 61 ) FROM tab1 AS cor0
----
-202

skipif mysql # not compatible
query I rowsort label-4558
SELECT - 19 + + SUM ( - 61 ) FROM tab1 AS cor0
----
-202

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * - col0 <> ( col0 * + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + ( + ( + col0 ) ) * col1 col0 FROM tab1 AS cor0
----
4368
510
765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + 92 col2 FROM tab0 AS cor0
----
-11
-71
-91

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 WHERE ( + 90 ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4563
SELECT DISTINCT - col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT - col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 WHERE ( + 18 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT ( - COUNT( * ) ) * MAX( DISTINCT col0 ) AS col0 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-4565
SELECT ( - COUNT ( * ) ) * MAX ( DISTINCT col0 ) AS col0 FROM tab2
----
-225

query III rowsort
SELECT * FROM tab1 WHERE ( col1 * - 62 ) BETWEEN + col0 / + 61 AND ( col0 + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4567
SELECT DISTINCT 5 * + ( col1 / - 20 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + ( 55 ) ) >= CAST( NULL AS SIGNED ) * 50
----

skipif mysql # not compatible
query I rowsort label-4567
SELECT DISTINCT 5 * + ( col1 / - 20 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + ( 55 ) ) >= CAST ( NULL AS INTEGER ) * 50
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 66 col1 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL > 61
----
0

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL > 61
----
0

query I rowsort
SELECT + 88 * - 92 AS col2 FROM tab0 AS cor0 WHERE NOT - 71 > 4
----
-8096
-8096
-8096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4571
SELECT - MAX( CAST( - 44 AS SIGNED ) ) FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-4571
SELECT - MAX ( CAST ( - 44 AS INTEGER ) ) FROM tab1 AS cor0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-4572
SELECT + + col1 DIV 9 AS col1 FROM tab2 AS cor0
----
5
7
8

skipif mysql # not compatible
query I rowsort label-4572
SELECT + + col1 / 9 AS col1 FROM tab2 AS cor0
----
5
7
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4573
SELECT ALL COUNT( * ) DIV 54 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL COUNT ( * ) / 54 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT ALL - 25 * COUNT( * ) * 85 AS col2 FROM tab1
----
-6375

skipif mysql # not compatible
query I rowsort label-4574
SELECT ALL - 25 * COUNT ( * ) * 85 AS col2 FROM tab1
----
-6375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab0 WHERE NULL > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 NOT IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT MAX( col2 ) AS col2 FROM tab1 WHERE NOT - col0 NOT BETWEEN + col0 AND + col0 * + 86 + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4577
SELECT MAX ( col2 ) AS col2 FROM tab1 WHERE NOT - col0 NOT BETWEEN + col0 AND + col0 * + 86 + - col0
----
NULL

query I rowsort
SELECT - 89 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 * - - col0 * col1 FROM tab1
----
36125
36414
389207

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 53 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 31 * + col0 + ( col0 ) col1 FROM tab1 AS cor0
----
1632
2720
2912

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT - COUNT( * ) FROM tab1 cor0 WHERE NOT ( + 27 * 64 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4582
SELECT - COUNT ( * ) FROM tab1 cor0 WHERE NOT ( + 27 * 64 ) IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 59 <> ( NULL )
----

query I rowsort
SELECT + + col0 + - ( col2 ) FROM tab2 cor0
----
17
23
24

query I rowsort
SELECT - + 8 + - col2 + col0 * col1 * - 25 AS col0 FROM tab2 AS cor0
----
-123248
-125691
-58681

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4586
SELECT col0 + + col2 * + CAST( + 2 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( - col2 ) IN ( col2 )
----
203
227
243

skipif mysql # not compatible
query I rowsort label-4586
SELECT col0 + + col2 * + CAST ( + 2 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( - col2 ) IN ( col2 )
----
203
227
243

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col0 ) BETWEEN + 91 * - col2 AND NULL
----

query I rowsort
SELECT - ( 13 ) / 39 + 50 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT DISTINCT + + SUM( DISTINCT - 30 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-30

skipif mysql # not compatible
query I rowsort label-4589
SELECT DISTINCT + + SUM ( DISTINCT - 30 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4590
SELECT CAST( NULL AS DECIMAL ) * - ( ( + 25 ) ) + - ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4590
SELECT CAST ( NULL AS REAL ) * - ( ( + 25 ) ) + - ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4591
SELECT + COUNT( * ) * + COUNT( ALL - col0 ) - ( SUM( ALL + 56 ) ) DIV + 35 AS col0 FROM tab2 cor0
----
5

skipif mysql # not compatible
query I rowsort label-4591
SELECT + COUNT ( * ) * + COUNT ( ALL - col0 ) - ( SUM ( ALL + 56 ) ) / + 35 AS col0 FROM tab2 cor0
----
5

query I rowsort
SELECT DISTINCT 53 + - col0 FROM tab1 AS cor0
----
-32
-38
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT ALL 60 + COUNT( DISTINCT + - col1 ) + - 2 * 98 FROM tab0 AS cor0
----
-133

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL 60 + COUNT ( DISTINCT + - col1 ) + - 2 * 98 FROM tab0 AS cor0
----
-133

query I rowsort
SELECT - ( - ( - - col2 ) ) * - col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 >= 89 + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col0 AND ( + 1 * - col2 )
----

query I rowsort
SELECT ALL + - 50 * - - 84 + + 1 + - ( - col2 ) * 97 + col2 FROM tab2 AS cor0
----
-1945
-279
1485

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT + - COUNT( * ) + + - ( + 49 ) FROM tab1 cor0
----
-52

skipif mysql # not compatible
query I rowsort label-4599
SELECT + - COUNT ( * ) + + - ( + 49 ) FROM tab1 cor0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4600
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN col2 + col1 AND ( - CAST( - col2 AS SIGNED ) ) + - col2
----

skipif mysql # not compatible
query III rowsort label-4600
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN col2 + col1 AND ( - CAST ( - col2 AS INTEGER ) ) + - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4601
SELECT DISTINCT + COUNT( ALL col2 ) AS col2, - 0 FROM tab0
----
3
0

skipif mysql # not compatible
query II rowsort label-4601
SELECT DISTINCT + COUNT ( ALL col2 ) AS col2, - 0 FROM tab0
----
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT COUNT( * ) * 19 AS col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-4602
SELECT COUNT ( * ) * 19 AS col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4603
SELECT * FROM tab2 WHERE - 39 / + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) BETWEEN col1 + + 66 / + 36 AND + col2
----

skipif mysql # not compatible
query III rowsort label-4603
SELECT * FROM tab2 WHERE - 39 / + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) BETWEEN col1 + + 66 / + 36 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT DISTINCT - ( - SUM( ALL - 3 ) ) * 58 AS col0 FROM tab2
----
-522

skipif mysql # not compatible
query I rowsort label-4604
SELECT DISTINCT - ( - SUM ( ALL - 3 ) ) * 58 AS col0 FROM tab2
----
-522

query II rowsort
SELECT ALL - col1 + - col2, 35 + - col2 AS col1 FROM tab0
----
-100
-64
-128
-12
-31
25

onlyif mysql # DIV for integer division: 
query II rowsort label-4606
SELECT ALL + col0 DIV - col1 AS col1, - col1 AS col2 FROM tab1
----
-1
-47
-17
-5
-3
-14

skipif mysql # not compatible
query II rowsort label-4606
SELECT ALL + col0 / - col1 AS col1, - col1 AS col2 FROM tab1
----
-1
-47
-17
-5
-3
-14

query I rowsort
SELECT DISTINCT + ( - 26 ) + col2 * + - col0 FROM tab0
----
-731
-896
-9629

query I rowsort
SELECT + 62 + 97 FROM tab1
----
159
159
159

query I rowsort
SELECT - col1 * - 66 AS col2 FROM tab1 WHERE + + col2 NOT IN ( - col0 + + ( col1 ) )
----
3102
330
924

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 13 < NULL
----

query I rowsort
SELECT 32 + 16 FROM tab1
----
48
48
48

query I rowsort
SELECT DISTINCT ( - col1 ) AS col0 FROM tab1 AS cor0 WHERE 63 + - col1 + - 45 + col0 * 45 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT ALL ( + 73 ) + + + COUNT( * ) FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL ( + 73 ) + + + COUNT ( * ) FROM tab1 AS cor0
----
76

query I rowsort
SELECT + ( col0 ) AS col1 FROM tab0 cor0 WHERE ( 17 ) NOT IN ( col0 + - + 84 )
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4615
SELECT DISTINCT + COUNT( * ) * COUNT( * ) * - 30 DIV - + MIN( col2 ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-4615
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) * - 30 / - + MIN ( col2 ) FROM tab0
----
27

query I rowsort
SELECT - 28 * + + col2 * + 30 FROM tab1
----
-49560
-57120
-80640

query I rowsort
SELECT 78 * 11 FROM tab0
----
858
858
858

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > ( col1 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT - MAX( DISTINCT - col1 ) + 7 FROM tab1 AS cor0 WHERE NOT NULL >= 42 * + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4619
SELECT - MAX ( DISTINCT - col1 ) + 7 FROM tab1 AS cor0 WHERE NOT NULL >= 42 * + col0
----
NULL

query I rowsort
SELECT DISTINCT 98 * + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 * 70 IS NULL
----
4998
8330
8918

onlyif mysql # DIV for integer division: 
query I rowsort label-4621
SELECT + 67 DIV + 19 col0 FROM tab0
----
3
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4621
SELECT + 67 / + 19 col0 FROM tab0
----
3
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, 67 FROM tab1
----
-14
67
-47
67
-5
67

query II rowsort
SELECT - col1, col2 AS col1 FROM tab0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT DISTINCT MIN( 12 ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-4624
SELECT DISTINCT MIN ( 12 ) FROM tab0
----
12

query II rowsort
SELECT - col0 AS col1, + col0 AS col0 FROM tab2
----
-46
46
-64
64
-75
75

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE - 12 + - col0 > NULL
----

query II rowsort
SELECT ALL - col1 AS col2, - 87 AS col1 FROM tab2
----
-51
-87
-67
-87
-77
-87

query I rowsort
SELECT 58 * + + col1 AS col1 FROM tab1 AS cor0
----
2726
290
812

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 23 / col1 / + col0 <= NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 + - - 44 / + 61 NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 WHERE NOT - col1 IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4632
SELECT + ( col1 ) DIV + col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4632
SELECT + ( col1 ) / + col1 FROM tab1
----
1
1
1

query III rowsort
SELECT * FROM tab2 WHERE + 98 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 <= ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4635
SELECT ALL - CAST( NULL AS SIGNED ) + + - 19, 12 AS col0 FROM tab0 AS cor0
----
NULL
12
NULL
12
NULL
12

skipif mysql # not compatible
query II rowsort label-4635
SELECT ALL - CAST ( NULL AS INTEGER ) + + - 19, 12 AS col0 FROM tab0 AS cor0
----
NULL
12
NULL
12
NULL
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT MAX( + col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4636
SELECT MAX ( + col0 ) AS col1 FROM tab2 AS cor0
----
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 52 )
----

query I rowsort
SELECT DISTINCT + col1 - + - 41 + + col2 FROM tab2 AS cor0
----
115
158
166

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 + + col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, - ( - 3 ) + + ( - col0 ) FROM tab1
----
14
-48
47
-88
5
-82

query I rowsort
SELECT col2 * + 75 AS col0 FROM tab2
----
1725
3000
4350

query II rowsort
SELECT col1 - - + col0 + + 22, 31 + col0 AS col0 FROM tab2
----
119
77
163
95
164
106

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4643
SELECT ALL col0 AS col1, - col0 + ( + CAST( NULL AS SIGNED ) ) + 43 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-4643
SELECT ALL col0 AS col1, - col0 + ( + CAST ( NULL AS INTEGER ) ) + 43 FROM tab0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT col2 - + + col2 * + col1 FROM tab1
----
-1248
-236
-3128

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT DISTINCT + SUM( - 78 ) AS col2 FROM tab1
----
-234

skipif mysql # not compatible
query I rowsort label-4645
SELECT DISTINCT + SUM ( - 78 ) AS col2 FROM tab1
----
-234

query I rowsort
SELECT DISTINCT + col1 + - - 26 AS col0 FROM tab2 AS cor0
----
103
77
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4647
SELECT - col1, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----

skipif mysql # not compatible
query II rowsort label-4647
SELECT - col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT col0 + - ( col0 ) * - 8 FROM tab0 AS cor0
----
135
783
873

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT + - MIN( DISTINCT + - col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4649
SELECT + - MIN ( DISTINCT + - col0 ) AS col1 FROM tab0 AS cor0
----
97

query II rowsort
SELECT - + 8 AS col1, - col1 * + - col2 FROM tab1 AS cor0
----
-8
1344
-8
295
-8
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-4651
SELECT ALL + 12 DIV - col0 + 12 FROM tab0 AS cor0
----
12
12
12

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL + 12 / - col0 + 12 FROM tab0 AS cor0
----
12
12
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 11 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * col2 * - - 97 FROM tab1 AS cor0
----
-337657
-448528
-893952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 6 col2 FROM tab0 AS cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT - MIN( ALL 36 ) * + 35 AS col1 FROM tab2 AS cor0
----
-1260

skipif mysql # not compatible
query I rowsort label-4656
SELECT - MIN ( ALL 36 ) * + 35 AS col1 FROM tab2 AS cor0
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT COUNT( * ) * 38 FROM tab1 AS cor0 WHERE NOT - ( - + 34 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4657
SELECT COUNT ( * ) * 38 FROM tab1 AS cor0 WHERE NOT - ( - + 34 ) IS NOT NULL
----
0

query I rowsort
SELECT ALL + col2 * + - ( - 79 ) FROM tab2 AS cor0
----
1817
3160
4582

onlyif mysql # DIV for integer division: 
query I rowsort label-4659
SELECT ALL + col0 DIV - - col2 - - col1 DIV 72 + - col0 AS col0 FROM tab1 AS cor0
----
-51
-84
-90

skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL + col0 / - - col2 - - col1 / 72 + - col0 AS col0 FROM tab1 AS cor0
----
-51
-84
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-4660
SELECT ( - - 26 ) DIV + col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4660
SELECT ( - - 26 ) / + col2 FROM tab0
----
0
0
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4661
SELECT + col2 AS col0 FROM tab2 WHERE NOT + CAST( + 43 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4661
SELECT + col2 AS col0 FROM tab2 WHERE NOT + CAST ( + 43 AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 * - 21 col1 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0 AS col1, - col0 FROM tab2
----
46
-46
64
-64
75
-75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 <= col0
----
87
21
10

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 + - col2 * - col0 * 75 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 77 * + col1 FROM tab0 AS cor0
----
1617
6237
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4667
SELECT ALL 25, + CAST( + COUNT( * ) AS SIGNED ) col2 FROM tab0 AS cor0
----
25
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4667
SELECT ALL 25, + CAST ( + COUNT ( * ) AS INTEGER ) col2 FROM tab0 AS cor0
----
25
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 AND NULL
----

query I rowsort
SELECT DISTINCT + 41 AS col0 FROM tab1 WHERE NOT - + col0 IS NULL
----
41

query II rowsort
SELECT ( - col0 ), col1 AS col2 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT - COUNT( DISTINCT + - col1 ) - 18 + - 0 + - 52 FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-4671
SELECT - COUNT ( DISTINCT + - col1 ) - 18 + - 0 + - 52 FROM tab1 AS cor0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT DISTINCT COUNT( * ) * - 74 + ( - - COUNT( * ) ) - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT COUNT ( * ) * - 74 + ( - - COUNT ( * ) ) - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-216

query I rowsort
SELECT ALL - + col2 * - + col1 - + col0 AS col0 FROM tab0 AS cor0
----
123
2
3792

query I rowsort
SELECT + ( + col0 ) + 57 FROM tab2 AS cor0
----
103
121
132

query I rowsort
SELECT 75 * col0 + - col1 * ( + col1 ) AS col0 FROM tab2 WHERE ( ( NULL ) <> - col1 + - - 38 )
----

query I rowsort
SELECT DISTINCT 2 - + + col2 FROM tab0
----
-45
-8
-97

query II rowsort
SELECT ( col2 ), col1 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT DISTINCT + ( - + col2 ) + + col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT - COUNT( DISTINCT + 80 ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4679
SELECT - COUNT ( DISTINCT + 80 ) AS col1 FROM tab1 AS cor0
----
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * 97 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4681
SELECT DISTINCT - - 36 DIV - + 14 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4681
SELECT DISTINCT - - 36 / - + 14 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-2

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE ( - 32 + + + col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - - col0
----

query I rowsort
SELECT ALL - 10 * - ( + + 70 ) FROM tab1 AS cor0 WHERE NOT col2 > + col2 + + col0
----
700
700
700

query II rowsort
SELECT + col0, ( col1 ) AS col2 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4686
SELECT ALL MAX( + col0 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL MAX ( + col0 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4687
SELECT ALL col1 col2 FROM tab2 AS cor0 WHERE ( NOT ( + - CAST( - col1 AS SIGNED ) ) IS NOT NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4687
SELECT ALL col1 col2 FROM tab2 AS cor0 WHERE ( NOT ( + - CAST ( - col1 AS INTEGER ) ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - 0 * 10 + col1 * col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT - + col0 FROM tab0 AS cor0 WHERE NOT + col0 * col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 + - 72 + 3 + + 39 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 87 * + + col2, + col1 FROM tab2
----
2001
51
3480
77
5046
67

query I rowsort
SELECT DISTINCT + col2 * + col1 * - 82 * - + col0 + col2 FROM tab1
----
2056209
23848620
5620704

query II rowsort
SELECT + col2 * + - 70 AS col2, 25 FROM tab2
----
-1610
25
-2800
25
-4060
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4694
SELECT CAST( - 69 AS SIGNED ) FROM tab0
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-4694
SELECT CAST ( - 69 AS INTEGER ) FROM tab0
----
-69
-69
-69

query I rowsort
SELECT ALL + - col0 + col1 * - - col2 AS col2 FROM tab0 AS cor0
----
123
2
3792

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT - COUNT( DISTINCT - 47 ) * SUM( ALL - 38 ) + - 46 AS col0 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-4697
SELECT - COUNT ( DISTINCT - 47 ) * SUM ( ALL - 38 ) + - 46 AS col0 FROM tab0 AS cor0
----
68

query I rowsort
SELECT 12 * 93 + - 70 AS col1 FROM tab2 AS cor0
----
1046
1046
1046

query I rowsort
SELECT - 28 + col0 AS col2 FROM tab1
----
23
57
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT DISTINCT + COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18

query I rowsort
SELECT col1 + col2 * + - ( + col1 ) FROM tab1
----
-1330
-290
-3149

query I rowsort
SELECT ALL col0 + + + col0 * col1 + - 96 FROM tab2
----
2296
4896
5004

query I rowsort
SELECT ALL - col2 * - + 16 FROM tab2 AS cor0
----
368
640
928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 * col2 col2 FROM tab1 cor0
----
-1293
-210
-3105

query I rowsort
SELECT - col2 FROM tab0 cor0 WHERE col2 * - 17 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT ALL - col1 + 72 * + 11 + + + col1 FROM tab0 AS cor0
----
792
792
792

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 15 IN ( - + col2 )
----

query I rowsort
SELECT DISTINCT - + col2 + - - col1 AS col1 FROM tab0 AS cor0
----
-98
11
34

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col0, + col1 * - col0, - col0, + col0 + - col1 )
----

query I rowsort
SELECT ALL - col0 + + 28 AS col0 FROM tab2 AS cor0
----
-18
-36
-47

query I rowsort
SELECT ALL + - ( + + 60 ) + + + col1 AS col0 FROM tab0 AS cor0
----
-39
-59
21

query I rowsort
SELECT DISTINCT 71 + - 9 * 85 FROM tab2 AS cor0
----
-694

query II rowsort
SELECT - + col1, col1 AS col1 FROM tab2 cor0
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT - MAX( + 39 ) FROM tab2 AS cor0 WHERE 82 IS NOT NULL
----
-39

skipif mysql # not compatible
query I rowsort label-4714
SELECT - MAX ( + 39 ) FROM tab2 AS cor0 WHERE 82 IS NOT NULL
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4715
SELECT + COUNT( * ) - - 45 DIV 52 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4715
SELECT + COUNT ( * ) - - 45 / 52 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col0 col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT DISTINCT COUNT( * ) - - COUNT( * ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT 96 - MAX( + 88 ) AS col2 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-4718
SELECT 96 - MAX ( + 88 ) AS col2 FROM tab1
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4719
SELECT ALL col1, 6 * + col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-4719
SELECT ALL col1, 6 * + col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 / + 29 + + col0 + - - 56 / - - ( col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * + col1 + + col0 AS col2 FROM tab2 AS cor0
----
-1127
-3016
-3811

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) > - 89 + col0
----

query II rowsort
SELECT + col0 AS col1, - col2 * + ( - col2 ) AS col1 FROM tab0 AS cor0
----
15
2209
87
100
97
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT DISTINCT - COUNT( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4724
SELECT DISTINCT - COUNT ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT col2 * + + 25 AS col2 FROM tab2 AS cor0
----
1000
1450
575

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 45 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT + ( + - COUNT( * ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4727
SELECT + ( + - COUNT ( * ) ) FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT col2 * + ( - 53 ) + - 73 FROM tab2
----
-1292
-2193
-3147

query I rowsort
SELECT - 3 + - + 84 * col1 + - col0 FROM tab0
----
-184
-1854
-6822

query III rowsort
SELECT * FROM tab2 WHERE 51 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4731
SELECT - SUM( + - col0 ) + - COUNT( * ), 62 AS col2 FROM tab2 cor0
----
182
62

skipif mysql # not compatible
query II rowsort label-4731
SELECT - SUM ( + - col0 ) + - COUNT ( * ), 62 AS col2 FROM tab2 cor0
----
182
62

query I rowsort
SELECT DISTINCT ( + - col0 ) + - - col0 + - 56 + - + ( ( + col1 ) ) FROM tab1 AS cor0
----
-103
-61
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT ALL ( + - MIN( + col1 ) ) * + 78 + + 28 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL ( + - MIN ( + col1 ) ) * + 78 + + 28 FROM tab0 AS cor0
----
-50

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4735
SELECT ALL col0 * + 15 + CAST( NULL AS SIGNED ) - + 38 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL col0 * + 15 + CAST ( NULL AS INTEGER ) - + 38 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT + 44 * COUNT( * ) + 58 AS col1 FROM tab0 cor0
----
190

skipif mysql # not compatible
query I rowsort label-4736
SELECT + 44 * COUNT ( * ) + 58 AS col1 FROM tab0 cor0
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT - - COUNT( * ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4737
SELECT - - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
6

query I rowsort
SELECT DISTINCT col0 - + - col1 AS col2 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL <> - col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 = + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * - - col1 AS col2 FROM tab2
----
-2346
-4928
-5025

query II rowsort
SELECT - col0 AS col0, + col1 AS col2 FROM tab2
----
-46
51
-64
77
-75
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4743
SELECT + COUNT( * ) AS col0, + 42 + - + COUNT( * ) + - CAST( - COUNT( * ) AS SIGNED ) * - COUNT( * ) FROM tab1
----
3
30

skipif mysql # not compatible
query II rowsort label-4743
SELECT + COUNT ( * ) AS col0, + 42 + - + COUNT ( * ) + - CAST ( - COUNT ( * ) AS INTEGER ) * - COUNT ( * ) FROM tab1
----
3
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT DISTINCT + COUNT( * ) * + 91 FROM tab0 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-4744
SELECT DISTINCT + COUNT ( * ) * + 91 FROM tab0 AS cor0
----
273

query I rowsort
SELECT DISTINCT - + 92 FROM tab0 AS cor0
----
-92

query I rowsort
SELECT + col2 * - - 63 FROM tab2
----
1449
2520
3654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4747
SELECT DISTINCT CAST( + ( - AVG ( DISTINCT 47 ) ) AS SIGNED ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4747
SELECT DISTINCT CAST ( + ( - AVG ( DISTINCT 47 ) ) AS INTEGER ) FROM tab1
----
-47

query II rowsort
SELECT 24, 78 AS col0 FROM tab0
----
24
78
24
78
24
78

query I rowsort
SELECT ALL + 82 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT - ( + COUNT( * ) ) + + 77 FROM tab0, tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-4750
SELECT - ( + COUNT ( * ) ) + + 77 FROM tab0, tab0 AS cor0
----
68

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * - - 7 + 0 + - - 54 / + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 25, ( + col1 ) FROM tab1
----
25
14
25
47
25
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col0 * - - 2 + col1 + + 2 ) <> + 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 + - - 29 AS col2 FROM tab0 AS cor0
----
-18
-70
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT - 44 + - ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4755
SELECT - 44 + - ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4756
SELECT SUM( DISTINCT + - CAST( + + col0 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4756
SELECT SUM ( DISTINCT + - CAST ( + + col0 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-199

query II rowsort
SELECT ALL col0 * - col0 AS col2, col1 FROM tab0
----
-225
81
-7569
21
-9409
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4758
SELECT - col0 DIV 3 * + 56 * 5 FROM tab0
----
-1400
-8120
-8960

skipif mysql # not compatible
query I rowsort label-4758
SELECT - col0 / 3 * + 56 * 5 FROM tab0
----
-1400
-8120
-8960

onlyif mysql # aggregate syntax: 
query II rowsort label-4759
SELECT MIN( DISTINCT col1 ), SUM( - col1 ) AS col2 FROM tab1
----
5
-66

skipif mysql # not compatible
query II rowsort label-4759
SELECT MIN ( DISTINCT col1 ), SUM ( - col1 ) AS col2 FROM tab1
----
5
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT + - 12 * + 18 * COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
-648

skipif mysql # not compatible
query I rowsort label-4760
SELECT + - 12 * + 18 * COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
-648

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + col1 + + col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4762
SELECT CAST( NULL AS DECIMAL ) * col0, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-4762
SELECT CAST ( NULL AS REAL ) * col0, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT DISTINCT + 50 * - + col2 AS col1 FROM tab2
----
-1150
-2000
-2900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + + col0 col0, + col1 FROM tab2 AS cor0
----
128
77
150
67
92
51

query I rowsort
SELECT DISTINCT + + col0 - + - col1 * 0 AS col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT AVG ( + - col0 ) AS col0 FROM tab0 AS cor0 WHERE - 80 IS NULL
----
NULL

query I rowsort
SELECT - 60 + + ( + col2 ) + + col1 AS col0 FROM tab2 AS cor0
----
14
57
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT DISTINCT ( 22 ) - + COUNT( * ) FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT ( 22 ) - + COUNT ( * ) FROM tab2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL < ( NULL )
----
0

query I rowsort
SELECT DISTINCT - col0 - + 65 + col0 * - 95 FROM tab0
----
-1505
-8417
-9377

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT + MAX( - col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4771
SELECT + MAX ( - col0 ) AS col0 FROM tab1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4772
SELECT ALL 33 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL 33 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - 16 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4774
SELECT DISTINCT CAST( + 12 AS SIGNED ) * + CAST( + col2 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
-117612
-1200
-26508

skipif mysql # not compatible
query I rowsort label-4774
SELECT DISTINCT CAST ( + 12 AS INTEGER ) * + CAST ( + col2 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
-117612
-1200
-26508

onlyif mysql # DIV for integer division: 
query I rowsort label-4775
SELECT ALL + 82 DIV + col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL + 82 / + col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT + SUM( + col2 ) + 44 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 / - + col2 AND ( NULL ) AND NOT - 26 BETWEEN ( col1 ) + - 54 AND + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-4776
SELECT + SUM ( + col2 ) + 44 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 / - + col2 AND ( NULL ) AND NOT - 26 BETWEEN ( col1 ) + - 54 AND + 55
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN - - col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - + col1 * + ( + col0 ) * col2 AS col2, col0 FROM tab2 AS cor0
----
-197120
64
-291450
75
-53958
46

query II rowsort
SELECT 96 AS col0, col0 FROM tab1 cor0
----
96
51
96
85
96
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT ALL SUM( - 36 ) * + COUNT( * ) FROM tab0
----
-324

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL SUM ( - 36 ) * + COUNT ( * ) FROM tab0
----
-324

query I rowsort
SELECT + 90 AS col1 FROM tab1 WHERE NOT + + col0 IN ( + + col2, 33, + 15 )
----
90
90
90

query I rowsort
SELECT + - col1 FROM tab1 WHERE NOT + col2 NOT BETWEEN + col1 AND + col2
----
-14
-47
-5

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT + - col2 IS NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab2 WHERE NOT - col1 * + - col0 <> NULL
----

query I rowsort
SELECT DISTINCT - 82 AS col2 FROM tab0, tab1 AS cor0
----
-82

query II rowsort
SELECT - ( 68 ), - ( col1 ) AS col2 FROM tab2 cor0
----
-68
-51
-68
-67
-68
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 IS NOT NULL OR NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4788
SELECT * FROM tab1 WHERE NOT + col0 BETWEEN - col1 AND col1 * + col0 + - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4788
SELECT * FROM tab1 WHERE NOT + col0 BETWEEN - col1 AND col1 * + col0 + - - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 80 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT ALL MAX( DISTINCT - 32 ) FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL MAX ( DISTINCT - 32 ) FROM tab0
----
-32

query I rowsort
SELECT DISTINCT + 14 * + 87 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4792
SELECT + + ( + - MAX( - col0 ) ) + + AVG ( ALL + col0 ) FROM tab1 AS cor0 WHERE NULL <= CAST( NULL AS SIGNED ) + col2 * - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4792
SELECT + + ( + - MAX ( - col0 ) ) + + AVG ( ALL + col0 ) FROM tab1 AS cor0 WHERE NULL <= CAST ( NULL AS INTEGER ) + col2 * - col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4793
SELECT DISTINCT - 80 DIV + 48 + - col2 + col0 FROM tab2 AS cor0
----
16
22
23

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT - 80 / + 48 + - col2 + col0 FROM tab2 AS cor0
----
16
22
23

query I rowsort
SELECT ALL ( + + 72 ) FROM tab2 AS cor0 WHERE col2 IS NULL
----

query II rowsort
SELECT - + 92 AS col2, col2 FROM tab2 AS cor0
----
-92
23
-92
40
-92
58

query II rowsort
SELECT col2, 67 FROM tab1 AS cor0
----
59
67
68
67
96
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT + + COUNT( * ) * - - SUM( ALL + 86 ) - COUNT( * ) FROM tab2 cor0
----
771

skipif mysql # not compatible
query I rowsort label-4797
SELECT + + COUNT ( * ) * - - SUM ( ALL + 86 ) - COUNT ( * ) FROM tab2 cor0
----
771

query I rowsort
SELECT ALL - + 35 + - - col1 AS col0 FROM tab1 AS cor0
----
-21
-30
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT ALL MIN( DISTINCT 78 ) AS col0 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL MIN ( DISTINCT 78 ) AS col0 FROM tab0 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT MAX( + col1 ) + + 48 FROM tab2
----
125

skipif mysql # not compatible
query I rowsort label-4800
SELECT MAX ( + col1 ) + + 48 FROM tab2
----
125

query I rowsort
SELECT ALL col0 * + - 58 AS col1 FROM tab1
----
-2958
-4930
-5278

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT DISTINCT - ( COUNT( * ) ) FROM tab0 WHERE NOT NULL IN ( + col1, col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4802
SELECT DISTINCT - ( COUNT ( * ) ) FROM tab0 WHERE NOT NULL IN ( + col1, col1 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4803
SELECT ALL col2 DIV - col0 + + 73 + + 10, - col1 AS col1 FROM tab1
----
82
-14
83
-47
83
-5

skipif mysql # not compatible
query II rowsort label-4803
SELECT ALL col2 / - col0 + + 73 + + 10, - col1 AS col1 FROM tab1
----
82
-14
83
-47
83
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col2, + col0 * + 49 col2 FROM tab0 AS cor0
----
15
735
87
4263
97
4753

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4805
SELECT ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND col0
----
0

skipif mysql # not compatible
query I rowsort label-4805
SELECT ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND col0
----
0

query I rowsort
SELECT col0 * - ( - 34 ) FROM tab1 AS cor0
----
1734
2890
3094

query II rowsort
SELECT + 70, + col2 AS col1 FROM tab0 AS cor0
----
70
10
70
47
70
99

query I rowsort
SELECT ALL - 80 + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 27 col1, - 94 - - col2 AS col1 FROM tab2 AS cor0
----
27
-36
27
-54
27
-71

query I rowsort
SELECT DISTINCT col1 - + - col2 AS col0 FROM tab1
----
110
115
64

query I rowsort
SELECT DISTINCT + 3 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + ( + - 4 ) * + col0 col2, col2 AS col2 FROM tab2 AS cor0
----
-184
23
-256
40
-300
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT - MAX( - - col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4813
SELECT - MAX ( - - col1 ) AS col1 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT ALL - + 95 * + COUNT( * ) - COUNT( * ) col0 FROM tab0 AS cor0
----
-288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4814
SELECT ALL - + 95 * + COUNT ( * ) - COUNT ( * ) col0 FROM tab0 AS cor0
----
-288

query I rowsort
SELECT + col0 * - + ( col2 ) * col0 + + - 34 FROM tab2 AS cor0
----
-163874
-326284
-48702

query I rowsort
SELECT ALL + - ( + 41 ) * + col0 AS col0 FROM tab2 cor0
----
-1886
-2624
-3075

onlyif mysql # DIV for integer division: 
query I rowsort label-4817
SELECT - col0 DIV 76 FROM tab2 WHERE NOT - - col2 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4817
SELECT - col0 / 76 FROM tab2 WHERE NOT - - col2 IS NULL
----
0
0
0

query I rowsort
SELECT + 85 * + col0 FROM tab1
----
4335
7225
7735

query I rowsort
SELECT ( - col1 ) * col2 - col2 * col0 * 14 * 67 AS col0 FROM tab0
----
-665097
-816270
-9007713

query I rowsort
SELECT DISTINCT + col2 * + col2 * col1 - col1 - + col0 AS col1 FROM tab2 AS cor0
----
123059
225246
26882

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT ( + 56 + 39 ) <= 51 )
----

query I rowsort
SELECT DISTINCT + 5 / + - col0 - + - ( - + col0 ) + - - 48 FROM tab0 cor0 WHERE NOT ( NULL > + 5 + + col1 )
----

query I rowsort
SELECT ALL - 80 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( - col2 ) + - + 6 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + col1 + - - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 6 + + col0 + + col0 * col1 * - col1 + - - 91 AS col2 FROM tab0 AS cor0
----
-38195
-98315
85

query I rowsort
SELECT DISTINCT ( + - col0 ) AS col0 FROM tab1 cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 23 - - 25 IS NULL
----

query I rowsort
SELECT ALL + - ( + - col1 ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4830
SELECT DISTINCT - 64 DIV + + 26 + + + col0 col2 FROM tab1 AS cor0
----
49
83
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4830
SELECT DISTINCT - 64 / + + 26 + + + col0 col2 FROM tab1 AS cor0
----
49
83
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT - SUM( DISTINCT + - 14 ) FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-4831
SELECT - SUM ( DISTINCT + - 14 ) FROM tab0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4832
SELECT + col1, CAST( + col1 AS SIGNED ) AS col2, 44 AS col0 FROM tab2
----
9 values hashing to e828b7ea546856b8058c317b9f853501

skipif mysql # not compatible
query III rowsort label-4832
SELECT + col1, CAST ( + col1 AS INTEGER ) AS col2, 44 AS col0 FROM tab2
----
9 values hashing to e828b7ea546856b8058c317b9f853501

query I rowsort
SELECT ALL 41 * + - col1 * + + 78 * - col2 FROM tab1
----
10220808
4298112
943410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4834
SELECT COUNT( * ) DIV 80 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4834
SELECT COUNT ( * ) / 80 AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT ALL MIN( 49 ) * 61 FROM tab1 WHERE NOT - - 0 + - + 25 IS NULL
----
2989

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL MIN ( 49 ) * 61 FROM tab1 WHERE NOT - - 0 + - + 25 IS NULL
----
2989

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT ALL MIN( - ( - - col0 ) ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL MIN ( - ( - - col0 ) ) AS col0 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT + 46 + + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-4837
SELECT + 46 + + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT - 49 + COUNT( * ) FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4838
SELECT - 49 + COUNT ( * ) FROM tab1 AS cor0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-4839
SELECT 54 DIV col0 + - col1 AS col0 FROM tab0 cor0
----
-1
-21
-78

skipif mysql # not compatible
query I rowsort label-4839
SELECT 54 / col0 + - col1 AS col0 FROM tab0 cor0
----
-1
-21
-78

query I rowsort
SELECT - 99 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4841
SELECT + CAST( NULL AS DECIMAL ) AS col1, + col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-4841
SELECT + CAST ( NULL AS REAL ) AS col1, + col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT ALL - 14 AS col2 FROM tab2
----
-14
-14
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4843
SELECT DISTINCT - CAST( - 24 AS SIGNED ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT - CAST ( - 24 AS INTEGER ) FROM tab0 AS cor0
----
24

query I rowsort
SELECT - col1 * - col0 * - + col0 * 61 AS col0 FROM tab2 cor0
----
-19238912
-22989375
-6582876

query II rowsort
SELECT + col0 AS col2, col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * + col0 + + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 / + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT COUNT( * ) + 33 AS col0 FROM tab2 cor0
----
36

skipif mysql # not compatible
query I rowsort label-4849
SELECT COUNT ( * ) + 33 AS col0 FROM tab2 cor0
----
36

query I rowsort
SELECT DISTINCT + + 36 AS col1 FROM tab0 AS cor0
----
36

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 > - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * - - col0 + + 88 FROM tab2 AS cor0
----
1146
2648
4438

query I rowsort
SELECT - col1 + + col2 - + col1 FROM tab2 AS cor0
----
-114
-76
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4854
SELECT col1 + CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-4854
SELECT col1 + CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT + 30 * + 72 - COUNT( + + col1 ) FROM tab2 AS cor0
----
2157

skipif mysql # not compatible
query I rowsort label-4855
SELECT + 30 * + 72 - COUNT ( + + col1 ) FROM tab2 AS cor0
----
2157

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE NOT col2 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT ALL - COUNT( * ) * + 73 AS col1 FROM tab2
----
-219

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL - COUNT ( * ) * + 73 AS col1 FROM tab2
----
-219

query I rowsort
SELECT - 37 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT - ( - + 34 ) * + - COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
-306

skipif mysql # not compatible
query I rowsort label-4859
SELECT - ( - + 34 ) * + - COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
-306

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT + COUNT( DISTINCT col1 ) * - COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4860
SELECT + COUNT ( DISTINCT col1 ) * - COUNT ( * ) AS col0 FROM tab2
----
-9

query I rowsort
SELECT + 46 * + - col2 * + + col0 + - col0 AS col0 FROM tab1 WHERE ( ( col1 = - col2 * + col2 + + col2 - col0 ) )
----

query II rowsort
SELECT col0, + 59 FROM tab0 AS cor0
----
15
59
87
59
97
59

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col0 - - col1 + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - - col2 * + + 18 FROM tab0 AS cor0
----
1782
180
846

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT ALL + ( 83 ) + - SUM( col2 ) FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL + ( 83 ) + - SUM ( col2 ) FROM tab0 AS cor0
----
-73

query I rowsort
SELECT - - 2 * + col2 AS col2 FROM tab0 AS cor0 WHERE + 3 * + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT DISTINCT - + SUM( ALL 81 ) FROM tab1 AS cor0 WHERE NOT - col1 = col0
----
-243

skipif mysql # not compatible
query I rowsort label-4867
SELECT DISTINCT - + SUM ( ALL 81 ) FROM tab1 AS cor0 WHERE NOT - col1 = col0
----
-243

query I rowsort
SELECT DISTINCT + col2 + - 33 FROM tab2 AS cor0
----
-10
25
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4869
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + 22 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4869
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + 22 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT ALL COUNT( * ) - - + 43 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL COUNT ( * ) - - + 43 FROM tab1 AS cor0
----
46

query I rowsort
SELECT col1 + + - col0 + col2 AS col0 FROM tab1
----
-21
24
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4872
SELECT + MAX( - col0 ) + - - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4872
SELECT + MAX ( - col0 ) + - - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - 66 * - col2 FROM tab0
----
3102
6534
660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4874
SELECT + col2 * + CAST( NULL AS SIGNED ) * - - 9 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT + col2 * + CAST ( NULL AS INTEGER ) * - - 9 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 89 AS col1 FROM tab2 cor0
----
-89
-89
-89

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4877
SELECT 16 AS col1, - COUNT( * ) * + - 22 FROM tab0 AS cor0 WHERE NOT 32 IS NULL
----
16
66

skipif mysql # not compatible
query II rowsort label-4877
SELECT 16 AS col1, - COUNT ( * ) * + - 22 FROM tab0 AS cor0 WHERE NOT 32 IS NULL
----
16
66

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE ( + col2 ) + - col0 + + - col2 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT ALL COUNT( ALL + + ( col0 ) ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4879
SELECT ALL COUNT ( ALL + + ( col0 ) ) col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT col2 * - 38 + + col1 AS col2, col0 FROM tab0 AS cor0
----
-1705
15
-359
87
-3761
97

query I rowsort
SELECT - col2 * + + 76 FROM tab0 AS cor0
----
-3572
-7524
-760

query I rowsort
SELECT DISTINCT + - col1 * - 90 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) < + + col1
----

query I rowsort
SELECT ( + 13 ) * - 61 * col0 AS col2 FROM tab0 AS cor0
----
-11895
-68991
-76921

query I rowsort
SELECT DISTINCT + 43 FROM tab2 AS cor0 WHERE NOT - col1 >= NULL
----

query I rowsort
SELECT + 49 * + col2 AS col0 FROM tab0 cor0
----
2303
4851
490

query I rowsort
SELECT DISTINCT 33 FROM tab0, tab0 cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT ALL COUNT( col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4887
SELECT ALL COUNT ( col2 ) FROM tab2
----
3

query I rowsort
SELECT 88 * col0 FROM tab2
----
4048
5632
6600

query I rowsort
SELECT + 78 AS col0 FROM tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT - MAX( ( + col2 ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-4890
SELECT - MAX ( ( + col2 ) ) FROM tab1
----
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE 37 - - - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 22 * + 65 FROM tab1
----
1430
1430
1430

onlyif mysql # aggregate syntax: 
query II rowsort label-4893
SELECT - COUNT( * ) AS col2, + 8 * SUM( - - col1 ) FROM tab0
----
-3
824

skipif mysql # not compatible
query II rowsort label-4893
SELECT - COUNT ( * ) AS col2, + 8 * SUM ( - - col1 ) FROM tab0
----
-3
824

query I rowsort
SELECT ALL + 42 + - 40 FROM tab0 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT DISTINCT - - MAX( - col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT - - MAX ( - col2 ) FROM tab0 AS cor0
----
-10

query III rowsort
SELECT * FROM tab2 WHERE + col0 BETWEEN - col0 AND col1
----
46
51
23
64
77
40

query I rowsort
SELECT col1 * + 92 * col0 + - - col1 AS col0 FROM tab0 cor0
----
111861
168105
8925

query I rowsort
SELECT + - 92 FROM tab0 AS cor0 WHERE 49 IS NOT NULL
----
-92
-92
-92

query II rowsort
SELECT DISTINCT + 82 + - - 36, 71 AS col2 FROM tab1 cor0
----
118
71

query I rowsort
SELECT ALL - col1 * - + col2 + - + col2 * col0 + + col0 FROM tab2 AS cor0
----
-389
161
584

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col1 * col0 + + col1 * - - col2, col0 + - col2 * - col0 )
----

query I rowsort
SELECT ALL col1 * ( - col0 ) AS col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-4903
SELECT DISTINCT col0 DIV - - col0 - col2 AS col2 FROM tab2
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-4903
SELECT DISTINCT col0 / - - col0 - col2 AS col2 FROM tab2
----
-22
-39
-57

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 < - 62
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4905
SELECT ALL 47 DIV col2 AS col1 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL 47 / col2 AS col1 FROM tab0
----
0
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT DISTINCT + MAX( DISTINCT + ( + col0 ) ) - - COUNT( * ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-4906
SELECT DISTINCT + MAX ( DISTINCT + ( + col0 ) ) - - COUNT ( * ) FROM tab0
----
100

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE 42 / - col2 IS NOT NULL
----
-15
-87
-97

query II rowsort
SELECT DISTINCT + col2 * - 9 + col1 AS col1, col0 + col1 AS col0 FROM tab1
----
-526
90
-565
138
-850
65

query II rowsort
SELECT col1, + col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT ALL + COUNT( 12 ) * + + ( - COUNT( * ) ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL + COUNT ( 12 ) * + + ( - COUNT ( * ) ) AS col0 FROM tab2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4911
SELECT + 40 DIV + 90 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-4911
SELECT + 40 / + 90 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT DISTINCT - COUNT( DISTINCT - ( col2 ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4912
SELECT DISTINCT - COUNT ( DISTINCT - ( col2 ) ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT - + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4913
SELECT - + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 / - col0 IS NOT NULL
----

query I rowsort
SELECT - col2 * + 20 AS col0 FROM tab0 AS cor0
----
-1980
-200
-940

query I rowsort
SELECT + - 50 * + + 50 * + col2 * - + col0 FROM tab2 AS cor0
----
10875000
2645000
6400000

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + 8 * - col0 / + + 17 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( col2 ) * - col0 - col0 FROM tab0
----
690
783
9506

query I rowsort
SELECT ALL - 6 + col1 AS col1 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1, + col1 + col2 AS col2 FROM tab2
----
51
74
67
125
77
117

query I rowsort
SELECT col2 * 74 + - col0 * 39 - - + col2 FROM tab0
----
-2643
2940
3642

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 WHERE - col1 IS NOT NULL
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 28 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4924
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col2 FROM tab1 WHERE NOT + - 71 * + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col2 FROM tab1 WHERE NOT + - 71 * + col2 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 + + col0 col1, col2 + col2 FROM tab0 cor0
----
196
198
62
94
97
20

query I rowsort
SELECT - 27 * + 29 + - + 88 + - col1 * - col0 FROM tab0 AS cor0
----
-774
344
956

query I rowsort
SELECT - - 46 + + 45 FROM tab2 AS cor0
----
91
91
91

query I rowsort
SELECT DISTINCT + + ( + col2 ) - col1 AS col1 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT + 46 AS col1 FROM tab2 cor0 WHERE NULL IN ( - col2 * + + col0, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4930
SELECT DISTINCT + col0 - - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT + col0 - - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4931
SELECT + - CAST( NULL AS SIGNED ) + + col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4931
SELECT + - CAST ( NULL AS INTEGER ) + + col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 23 * col0 AS col0 FROM tab2
----
1058
1472
1725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4933
SELECT - col1 AS col1 FROM tab1 WHERE NOT + 48 + - col0 + col1 * - + col2 / CAST( NULL AS SIGNED ) * + col1 - + - CAST( NULL AS SIGNED ) * + + col2 - CAST( col2 AS SIGNED ) IS NOT NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4933
SELECT - col1 AS col1 FROM tab1 WHERE NOT + 48 + - col0 + col1 * - + col2 / CAST ( NULL AS INTEGER ) * + col1 - + - CAST ( NULL AS INTEGER ) * + + col2 - CAST ( col2 AS INTEGER ) IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT DISTINCT SUM( + + col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4934
SELECT DISTINCT SUM ( + + col2 ) AS col1 FROM tab0
----
156

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( - + col1, col1 )
----

query I rowsort
SELECT 71 * - ( + + 63 ) AS col0 FROM tab0
----
-4473
-4473
-4473

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT - SUM( col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4937
SELECT - SUM ( col0 ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT DISTINCT - 22 + col1 FROM tab0 AS cor0 WHERE NULL > + col1 - - 25
----

query I rowsort
SELECT ALL - - 40 + + 14 FROM tab2 AS cor0
----
54
54
54

onlyif mysql # DIV for integer division: 
query I rowsort label-4940
SELECT DISTINCT - col2 DIV + 39 AS col1 FROM tab1 cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT - col2 / + 39 AS col1 FROM tab1 cor0
----
-1
-2

query I rowsort
SELECT + col2 * - - 49 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, - col1 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT ALL SUM( DISTINCT - + col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL SUM ( DISTINCT - + col1 ) FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT - COUNT( * ) * + COUNT( * ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4944
SELECT - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT - COUNT( * ) * - - 50 FROM tab1
----
-150

skipif mysql # not compatible
query I rowsort label-4945
SELECT - COUNT ( * ) * - - 50 FROM tab1
----
-150

onlyif mysql # DIV for integer division: 
query I rowsort label-4946
SELECT col0 DIV + - 7 FROM tab0
----
-12
-13
-2

skipif mysql # not compatible
query I rowsort label-4946
SELECT col0 / + - 7 FROM tab0
----
-12
-13
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4947
SELECT ALL COUNT( * ) + + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL COUNT ( * ) + + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query II rowsort
SELECT ALL col2 AS col2, - col2 FROM tab1 WHERE - - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + + 38 + - - col0 FROM tab1 AS cor0
----
123
129
89

query I rowsort
SELECT - - 83 + col0 + 90 FROM tab0 AS cor0
----
188
260
270

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT 50 - - COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
59

skipif mysql # not compatible
query I rowsort label-4951
SELECT 50 - - COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - col0 col1 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT DISTINCT - 93 + + col0 FROM tab1 cor0
----
-2
-42
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-4954
SELECT DISTINCT - col0 DIV - col1 - + 88 FROM tab0 AS cor0
----
-84
-88
9

skipif mysql # not compatible
query I rowsort label-4954
SELECT DISTINCT - col0 / - col1 - + 88 FROM tab0 AS cor0
----
-84
-88
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT ALL - COUNT( * ) + - - 77 AS col2 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL - COUNT ( * ) + - - 77 AS col2 FROM tab0 AS cor0
----
74

query I rowsort
SELECT + col0 - + 43 FROM tab1 AS cor0
----
42
48
8

onlyif mysql # DIV for integer division: 
query II rowsort label-4957
SELECT - 97 AS col1, + 38 DIV col1 AS col0 FROM tab0
----
-97
0
-97
1
-97
38

skipif mysql # not compatible
query II rowsort label-4957
SELECT - 97 AS col1, + 38 / col1 AS col0 FROM tab0
----
-97
0
-97
1
-97
38

query II rowsort
SELECT + col0, + col0 AS col2 FROM tab2
----
46
46
64
64
75
75

query II rowsort
SELECT ALL 42 AS col1, col2 AS col2 FROM tab0
----
42
10
42
47
42
99

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 1 IS NULL
----

query I rowsort
SELECT + 33 * - + 44 * col1 FROM tab0 AS cor0
----
-117612
-1452
-30492

query I rowsort
SELECT + 43 FROM tab0 AS cor0 WHERE NOT col0 >= + 23
----
43

query I rowsort
SELECT DISTINCT 45 * col2 AS col1 FROM tab2 AS cor0
----
1035
1800
2610

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 7 = 10 + - 85
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT 40 + 23 AS col0 FROM tab2
----
63

query I rowsort
SELECT ALL + ( - + col1 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) < - col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 IN ( + col1 + - col2 * + col0, 83 )
----

query I rowsort
SELECT + ( - 12 ) * + + 56 AS col0 FROM tab1 AS cor0
----
-672
-672
-672

query I rowsort
SELECT ALL - ( + col0 ) * col0 + - col2 + + col2 AS col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT + 43 + col2 * - - col0 AS col2 FROM tab2 AS cor0 WHERE + 23 IS NOT NULL
----
1101
2603
4393

query I rowsort
SELECT + col0 * + col2 * - ( + col2 ) AS col0 FROM tab2 AS cor0
----
-102400
-24334
-252300

query I rowsort
SELECT ALL - col1 * + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT 37 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 13 * - col0 AS col1 FROM tab2
----
-598
-832
-975

query I rowsort
SELECT DISTINCT + col2 * 79 FROM tab2
----
1817
3160
4582

query I rowsort
SELECT col0 + + 17 FROM tab1
----
102
108
68

query I rowsort
SELECT - - 74 + 63 FROM tab2 AS cor0
----
137
137
137

onlyif mysql # DIV for integer division: 
query I rowsort label-4979
SELECT DISTINCT - - 64 * col0 + col1 DIV + 84 FROM tab2 AS cor0
----
2944
4096
4800

skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT - - 64 * col0 + col1 / + 84 FROM tab2 AS cor0
----
2944
4096
4800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4980
SELECT DISTINCT MAX( - 57 ) - + + CAST( NULL AS SIGNED ) / + MIN( ALL - col0 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4980
SELECT DISTINCT MAX ( - 57 ) - + + CAST ( NULL AS INTEGER ) / + MIN ( ALL - col0 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT 52 * + COUNT( col1 * ( 62 / col1 ) ) col1 FROM tab1 WHERE NOT + col2 IS NULL
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4981
SELECT 52 * + COUNT ( col1 * ( 62 / col1 ) ) col1 FROM tab1 WHERE NOT + col2 IS NULL
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-4982
SELECT ALL 33 DIV 54 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4982
SELECT ALL 33 / 54 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4983
SELECT 83 DIV - col1 FROM tab0
----
-1
-3
-83

skipif mysql # not compatible
query I rowsort label-4983
SELECT 83 / - col1 FROM tab0
----
-1
-3
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4984
SELECT 20 DIV + 12 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4984
SELECT 20 / + 12 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT col2 * - ( - 80 ) - col1 * col0 FROM tab2
----
-1728
-385
-506

query I rowsort
SELECT ALL - 71 * - 84 + - 70 FROM tab2
----
5894
5894
5894

onlyif mysql # DIV for integer division: 
query I rowsort label-4987
SELECT + ( - 7 ) DIV col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4987
SELECT + ( - 7 ) / col1 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 ) = ( - 28 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = - ( col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 63 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT ALL MAX( DISTINCT col0 ) col0 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4991
SELECT ALL MAX ( DISTINCT col0 ) col0 FROM tab1
----
91

query I rowsort
SELECT 32 * + col2 AS col2 FROM tab1
----
1888
2176
3072

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 WHERE ( NULL ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT DISTINCT COUNT( + 22 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4994
SELECT DISTINCT COUNT ( + 22 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - 44 + col1 FROM tab0
----
-23
-43
37

query I rowsort
SELECT + col0 * - 48 FROM tab1 WHERE NOT ( + 12 ) >= ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4997
SELECT ALL * FROM tab1 WHERE NOT NULL <> col2 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4997
SELECT ALL * FROM tab1 WHERE NOT NULL <> col2 * + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 + col2 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 + + 53 * col0 FROM tab0
----
4632
5142
876

query III rowsort
SELECT * FROM tab0 WHERE 44 IS NULL
----

query I rowsort
SELECT 66 + col1 * 19 AS col2 FROM tab0
----
1605
465
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5002
SELECT DISTINCT CAST( NULL AS SIGNED ) * 15 + - 30 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 15 + - 30 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT ( 76 ) FROM tab0 cor0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5004
SELECT DISTINCT AVG ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5004
SELECT DISTINCT AVG ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT - 4 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-5005
SELECT - 4 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-12

query I rowsort
SELECT ALL 41 FROM tab1 cor0 WHERE NOT NULL NOT IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5007
SELECT col0 DIV + ( - col2 ) col1 FROM tab0
----
-8
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5007
SELECT col0 / + ( - col2 ) col1 FROM tab0
----
-8
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5008
SELECT 9 DIV 41 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5008
SELECT 9 / 41 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 26 FROM tab1 AS cor0 CROSS JOIN tab1
----
26

query I rowsort
SELECT + col1 * + ( 44 ) FROM tab2 AS cor0
----
2244
2948
3388

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * 21 AS col0 FROM tab0 AS cor0
----
1701
21
441

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT ALL COUNT( * ) * 24 col1 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5013
SELECT ALL COUNT ( * ) * 24 col1 FROM tab1 AS cor0
----
72

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT 14 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT DISTINCT + ( + COUNT( * ) ) * + ( SUM( DISTINCT col2 ) ) FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT + ( + COUNT ( * ) ) * + ( SUM ( DISTINCT col2 ) ) FROM tab0
----
468

query I rowsort
SELECT col0 * + + col1 * col2 AS col2 FROM tab0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT SUM( - - 83 ) * + COUNT( * ) col0 FROM tab0
----
747

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5017
SELECT SUM ( - - 83 ) * + COUNT ( * ) col0 FROM tab0
----
747

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 / - col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE NOT NULL > - 54 * - col1
----

query I rowsort
SELECT ALL + col2 * - ( - col0 ) AS col0 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT MIN( - 36 ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-5021
SELECT MIN ( - 36 ) FROM tab0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5022
SELECT MIN( - 95 ) - - 45 FROM tab0 WHERE NOT ( col1 ) BETWEEN + CAST( NULL AS SIGNED ) / + 98 AND col0 OR NOT ( - col1 * + col0 ) <> ( 25 )
----
-50

skipif mysql # not compatible
query I rowsort label-5022
SELECT MIN ( - 95 ) - - 45 FROM tab0 WHERE NOT ( col1 ) BETWEEN + CAST ( NULL AS INTEGER ) / + 98 AND col0 OR NOT ( - col1 * + col0 ) <> ( 25 )
----
-50

query I rowsort
SELECT 35 * + col0 AS col1 FROM tab1 WHERE NULL IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5024
SELECT - CAST( 17 AS SIGNED ) - + col2 FROM tab1
----
-113
-76
-85

skipif mysql # not compatible
query I rowsort label-5024
SELECT - CAST ( 17 AS INTEGER ) - + col2 FROM tab1
----
-113
-76
-85

query I rowsort
SELECT DISTINCT - 2 + - 70 FROM tab0 cor0
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5026
SELECT ALL + + 48 - COUNT( * ) DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL + + 48 - COUNT ( * ) / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
47

query I rowsort
SELECT - - col1 + - ( + col2 ) FROM tab1 cor0
----
-21
-54
-82

query I rowsort
SELECT ALL - + 62 * col2 * + col0 - - col1 FROM tab1 AS cor0
----
-303538
-310925
-383609

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5029
SELECT ALL col0, col1 * ( CAST( + 43 AS SIGNED ) ) DIV - col1 AS col2 FROM tab1
----
51
-43
85
-43
91
-43

skipif mysql # not compatible
query II rowsort label-5029
SELECT ALL col0, col1 * ( CAST ( + 43 AS INTEGER ) ) / - col1 AS col2 FROM tab1
----
51
-43
85
-43
91
-43

query I rowsort
SELECT - 97 * col1 FROM tab0 WHERE + ( - col0 ) = ( col1 + 87 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab1 WHERE NOT ( NOT col2 * col0 NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ALL + ( + 66 ) FROM tab0 AS cor0 WHERE ( NULL ) < ( + + ( col2 ) * col2 )
----

query I rowsort
SELECT ALL + 12 AS col2 FROM tab0 cor0
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT DISTINCT - SUM( DISTINCT + - col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-5034
SELECT DISTINCT - SUM ( DISTINCT + - col1 ) AS col0 FROM tab2 AS cor0
----
195

query I rowsort
SELECT - 37 * + + col2 * 81 * 64 AS col2 FROM tab2 AS cor0
----
-11124864
-4411584
-7672320

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT COUNT( DISTINCT col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < ( + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5036
SELECT COUNT ( DISTINCT col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < ( + + col1 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> col2 / + 50
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5038
SELECT col2 DIV - 80 AS col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5038
SELECT col2 / - 80 AS col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5039
SELECT - CAST( + CAST( ( SUM( DISTINCT - 21 ) ) AS DECIMAL ) AS SIGNED ) FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-5039
SELECT - CAST ( + CAST ( ( SUM ( DISTINCT - 21 ) ) AS REAL ) AS INTEGER ) FROM tab0 AS cor0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5040
SELECT + CAST( - 65 AS SIGNED ) / 41 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 <> - 48
----

skipif mysql # not compatible
query I rowsort label-5040
SELECT + CAST ( - 65 AS INTEGER ) / 41 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 <> - 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT ALL + COUNT( ALL + - 18 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5041
SELECT ALL + COUNT ( ALL + - 18 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + col2 * - - col1 * col2 FROM tab2
----
123200
225388
26979

query I rowsort
SELECT - col1 * 27 AS col0 FROM tab0 WHERE NOT - 47 <= ( col2 ) * + col0
----

query I rowsort
SELECT + + col1 * + col2 + - col1 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5045
SELECT ALL COUNT( * ) * - 89, 57 AS col1 FROM tab1
----
-267
57

skipif mysql # not compatible
query II rowsort label-5045
SELECT ALL COUNT ( * ) * - 89, 57 AS col1 FROM tab1
----
-267
57

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col1 )
----

query II rowsort
SELECT + 63 AS col0, - 24 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to d890e996f57369f87d2e0a40905112c9

query I rowsort
SELECT DISTINCT + + col0 + col2 AS col0 FROM tab1 cor0
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5049
SELECT * FROM tab0 cor0 WHERE CAST( 24 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5049
SELECT * FROM tab0 cor0 WHERE CAST ( 24 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col0, col0 + - - col1 * - + 75 AS col0 FROM tab2 cor0
----
-46
-3779
-64
-5711
-75
-4950

query I rowsort
SELECT + col1 * - 95 * - - 51 - - 54 * col2 AS col2 FROM tab1 AS cor0
----
-21039
-224043
-62646

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT ALL + 25 + 50 + - + COUNT( * ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL + 25 + 50 + - + COUNT ( * ) FROM tab2 AS cor0
----
72

query I rowsort
SELECT 46 * col0 + 62 * col0 FROM tab2 AS cor0
----
4968
6912
8100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5054
SELECT CAST( col0 AS SIGNED ) + + + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-13
-2194
-9704

skipif mysql # not compatible
query I rowsort label-5054
SELECT CAST ( col0 AS INTEGER ) + + + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-13
-2194
-9704

query I rowsort
SELECT ALL - 71 + col2 AS col2 FROM tab2 AS cor0
----
-13
-31
-48

query I rowsort
SELECT ALL 42 * + + 40 FROM tab0 AS cor0
----
1680
1680
1680

query I rowsort
SELECT + ( ( + col1 ) ) + - 3 FROM tab2 cor0
----
48
64
74

query III rowsort
SELECT * FROM tab2 WHERE ( col1 + + - col1 * + col0 - - 23 ) <= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5059
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0, tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5060
SELECT col2 + + CAST( - col0 AS SIGNED ) AS col1 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-5060
SELECT col2 + + CAST ( - col0 AS INTEGER ) AS col1 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT ALL col1 / 75 FROM tab0 WHERE NOT + - 6 NOT IN ( col1 + - 86 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT ALL + MAX( + col2 ) + + 0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL + MAX ( + col2 ) + + 0 FROM tab1
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 18 * 51 + - col2 + - - col2 col0 FROM tab1 AS cor0
----
-918
-918
-918

query I rowsort
SELECT DISTINCT - - col2 + 87 + - col0 * + col0 AS col0 FROM tab0 AS cor0
----
-7472
-91
-9223

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= 7
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5066
SELECT - + 74 AS col0, - 34 * - CAST( - 40 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
-74
104720
-74
69360
-74
91120

skipif mysql # not compatible
query II rowsort label-5066
SELECT - + 74 AS col0, - 34 * - CAST ( - 40 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
-74
104720
-74
69360
-74
91120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5067
SELECT - 22 - ( + ( CAST( NULL AS SIGNED ) ) ) / ( + col2 * - col2 ) col0 FROM tab2 WHERE CAST( + 91 AS SIGNED ) * 36 IS NULL AND NULL IN ( + col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5067
SELECT - 22 - ( + ( CAST ( NULL AS INTEGER ) ) ) / ( + col2 * - col2 ) col0 FROM tab2 WHERE CAST ( + 91 AS INTEGER ) * 36 IS NULL AND NULL IN ( + col1 )
----

query I rowsort
SELECT ALL - - 5 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 87 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query II rowsort label-5070
SELECT DISTINCT - COUNT( * ) * COUNT( * ) AS col1, - 74 FROM tab0
----
-9
-74

skipif mysql # not compatible
query II rowsort label-5070
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col1, - 74 FROM tab0
----
-9
-74

query I rowsort
SELECT + - 77 + + col0 AS col2 FROM tab0 WHERE NOT + + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + 44 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT DISTINCT - 10 FROM tab1 WHERE NULL NOT IN ( + + col2 * + + 61 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT MIN( DISTINCT - 25 ) AS col1 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-5074
SELECT MIN ( DISTINCT - 25 ) AS col1 FROM tab1
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5075
SELECT - CAST( col0 AS SIGNED ) * + col1 * - col0 FROM tab0 AS cor0
----
158949
18225
9409

skipif mysql # not compatible
query I rowsort label-5075
SELECT - CAST ( col0 AS INTEGER ) * + col1 * - col0 FROM tab0 AS cor0
----
158949
18225
9409

query I rowsort
SELECT DISTINCT + ( + col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT DISTINCT MIN( DISTINCT + 70 ) col1 FROM tab0
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5077
SELECT DISTINCT MIN ( DISTINCT + 70 ) col1 FROM tab0
----
70

query I rowsort
SELECT DISTINCT - + col1 AS col2 FROM tab2 WHERE NULL IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5079
SELECT + CAST( NULL AS SIGNED ) + ( - 93 ) * ( - col0 * 8 ) FROM tab2 WHERE NOT ( col1 - - + col1 - - col2 + - col1 - + + col2 - + ( - 90 ) * - 64 * - col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5079
SELECT + CAST ( NULL AS INTEGER ) + ( - 93 ) * ( - col0 * 8 ) FROM tab2 WHERE NOT ( col1 - - + col1 - - col2 + - col1 - + + col2 - + ( - 90 ) * - 64 * - col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 64 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + 72 ) FROM tab1
----
-72
-72
-72

query I rowsort
SELECT col1 FROM tab2 WHERE NOT ( + ( 11 ) + + col2 - - 55 ) IS NULL
----
51
67
77

query II rowsort
SELECT - col2 AS col0, col1 FROM tab0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT DISTINCT - - 69 AS col1 FROM tab0 AS cor0
----
69

query I rowsort
SELECT ALL - col1 + + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT DISTINCT 5 FROM tab2 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( 61 + + + col2 + + 86 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 21 col2 FROM tab2 AS cor0
----
1071
1407
1617

query II rowsort
SELECT + ( col2 ) * - col0, col2 AS col1 FROM tab0 AS cor0
----
-705
47
-870
10
-9603
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT + SUM( - + 11 ) FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-5090
SELECT + SUM ( - + 11 ) FROM tab2 AS cor0
----
-33

query I rowsort
SELECT ALL - 14 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT col0 + - ( - 25 ) AS col1 FROM tab0
----
112
122
40

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 >= - + col0
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5094
SELECT DISTINCT - 46 col2 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) BETWEEN col1 AND + + 42
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5094
SELECT DISTINCT - 46 col2 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) BETWEEN col1 AND + + 42
----

query I rowsort
SELECT ALL + col0 + 33 * - - col2 * col1 + + + 67 FROM tab0 AS cor0
----
125713
3431
7084

query I rowsort
SELECT ALL - - col2 - 56 AS col0 FROM tab2 AS cor0
----
-16
-33
2

query I rowsort
SELECT DISTINCT + 84 + + ( + 94 ) FROM tab2 AS cor0
----
178

query I rowsort
SELECT + 86 * ( + col2 ) AS col1 FROM tab1 AS cor0
----
5074
5848
8256

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT + - COUNT( 62 ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5099
SELECT + - COUNT ( 62 ) AS col2 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT ALL + 40 * + COUNT( * ) AS col0 FROM tab0
----
120

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL + 40 * + COUNT ( * ) AS col0 FROM tab0
----
120

query I rowsort
SELECT DISTINCT - + 68 / col2 FROM tab0 WHERE ( + col0 ) IS NOT NULL AND NOT ( NULL ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + col1 col0 FROM tab0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5103
SELECT + ( 95 ) - + - CAST( - - 2 AS SIGNED ) * col2 AS col0 FROM tab2
----
141
175
211

skipif mysql # not compatible
query I rowsort label-5103
SELECT + ( 95 ) - + - CAST ( - - 2 AS INTEGER ) * col2 AS col0 FROM tab2
----
141
175
211

query I rowsort
SELECT 85 - + col0 FROM tab0
----
-12
-2
70

query I rowsort
SELECT - col0 * 37 * col1 - 84 * - + col1 FROM tab1
----
-15305
-154301
-25242

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT ALL - COUNT( + - col1 ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5106
SELECT ALL - COUNT ( + - col1 ) col1 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT 81 * - col2 + + col2 AS col0 FROM tab2
----
-1840
-3200
-4640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5108
SELECT - - MIN( - col0 ) FROM tab1 AS cor0 WHERE ( NOT + - ( + 50 ) * - - CAST( - col0 AS SIGNED ) IS NULL )
----
-91

skipif mysql # not compatible
query I rowsort label-5108
SELECT - - MIN ( - col0 ) FROM tab1 AS cor0 WHERE ( NOT + - ( + 50 ) * - - CAST ( - col0 AS INTEGER ) IS NULL )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT ALL COUNT( * ) * + - COUNT( * ) AS col2 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5109
SELECT ALL COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab1 cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5110
SELECT + 2 + + - CAST( NULL AS SIGNED ) col0 FROM ( tab2 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-5110
SELECT + 2 + + - CAST ( NULL AS INTEGER ) col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 col0 FROM tab1 AS cor0
----
10
10
10

query I rowsort
SELECT DISTINCT col2 * + + col1 + - ( col0 ) AS col1 FROM tab0 AS cor0
----
123
2
3792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5113
SELECT - + COUNT( * ) DIV - COUNT( ALL + 18 ) col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5113
SELECT - + COUNT ( * ) / - COUNT ( ALL + 18 ) col2 FROM tab0 cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5114
SELECT DISTINCT col0 DIV + ( - 44 ) FROM tab1 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT col0 / + ( - 44 ) FROM tab1 AS cor0
----
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT - 76 * + - COUNT( * ) FROM tab1 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-5115
SELECT - 76 * + - COUNT ( * ) FROM tab1 AS cor0
----
228

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE NOT 66 NOT IN ( - 36 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5117
SELECT ALL - col2 AS col1, col1 * CAST( - CAST( + 20 AS DECIMAL ) AS SIGNED ) FROM tab0 cor0
----
-10
-420
-47
-1620
-99
-20

skipif mysql # not compatible
query II rowsort label-5117
SELECT ALL - col2 AS col1, col1 * CAST ( - CAST ( + 20 AS REAL ) AS INTEGER ) FROM tab0 cor0
----
-10
-420
-47
-1620
-99
-20

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * 5 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5119
SELECT + 15 DIV + 13, 83 AS col1 FROM tab2
----
1
83
1
83
1
83

skipif mysql # not compatible
query II rowsort label-5119
SELECT + 15 / + 13, 83 AS col1 FROM tab2
----
1
83
1
83
1
83

query I rowsort
SELECT + 55 + col1 AS col2 FROM tab2
----
106
122
132

query I rowsort
SELECT 84 + + - col2 AS col1 FROM tab0
----
-15
37
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT + + 62 * + + MAX( ALL - col2 ) AS col2 FROM tab2 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5122
SELECT + + 62 * + + MAX ( ALL - col2 ) AS col2 FROM tab2 WHERE NOT NULL <> NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5123
SELECT - col0 + + CAST( - col1 AS SIGNED ) + - - 98 col0 FROM tab2
----
-43
-44
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5123
SELECT - col0 + + CAST ( - col1 AS INTEGER ) + - - 98 col0 FROM tab2
----
-43
-44
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT - 86 * + - COUNT( * ) FROM tab2 AS cor0 WHERE NULL >= - col1
----
0

skipif mysql # not compatible
query I rowsort label-5124
SELECT - 86 * + - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL >= - col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5125
SELECT DISTINCT + + 14 DIV ( + ( COUNT( * ) ) ) AS col1 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT + + 14 / ( + ( COUNT ( * ) ) ) AS col1 FROM tab2 AS cor0
----
4

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 66 * - 6 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 86 - - 6 + - 85 FROM tab1
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT 83 - - SUM( DISTINCT + col1 ) * 25 * + - 87 FROM tab0 AS cor0
----
-223942

skipif mysql # not compatible
query I rowsort label-5128
SELECT 83 - - SUM ( DISTINCT + col1 ) * 25 * + - 87 FROM tab0 AS cor0
----
-223942

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + + col2 + + col2 = - + col2
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( + col0 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 59 / col0 * - + col2 ) = ( NULL )
----

query I rowsort
SELECT DISTINCT - 86 + - col0 AS col0 FROM tab1 AS cor0
----
-137
-171
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT DISTINCT + + COUNT( * ) FROM tab1 AS cor0 WHERE NULL IN ( 69, - col2, col0 * - + col0 + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5133
SELECT DISTINCT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IN ( 69, - col2, col0 * - + col0 + + col0 )
----
0

query I rowsort
SELECT + + 6 + + ( - ( - + 94 ) ) FROM tab0 AS cor0
----
100
100
100

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT 66 + + COUNT( * ) FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5135
SELECT 66 + + COUNT ( * ) FROM tab1 AS cor0
----
69

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col1 * - ( + + 28 ) IS NULL
----

query I rowsort
SELECT - - col1 + + col1 + col1 FROM tab1 AS cor0
----
141
15
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5138
SELECT + CAST( NULL AS SIGNED ) + + 74 + - 84 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5138
SELECT + CAST ( NULL AS INTEGER ) + + 74 + - 84 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT ALL + - ( COUNT( * ) ) - + + MIN( + - 77 ) - - 7 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5139
SELECT ALL + - ( COUNT ( * ) ) - + + MIN ( + - 77 ) - - 7 FROM tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT - + col1 * + col0 - - col1 + + col1 AS col2 FROM tab2 AS cor0
----
-2244
-4774
-4891

query I rowsort
SELECT ALL + col0 + - 80 + - col1 AS col2 FROM tab0 AS cor0
----
-14
-146
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT ALL - COUNT( * ) AS col1 FROM tab2 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5142
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 WHERE col1 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5143
SELECT ALL + CAST( NULL AS DECIMAL ) - - CAST( + - col0 AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL + CAST ( NULL AS REAL ) - - CAST ( + - col0 AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + + col1 * - + col2 FROM tab1
----
129024
17405
217328

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT + COUNT( DISTINCT + - 5 ) * 44 AS col1 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-5145
SELECT + COUNT ( DISTINCT + - 5 ) * 44 AS col1 FROM tab2
----
44

query I rowsort
SELECT - - 26 * - col0 * - 32 FROM tab2 AS cor0
----
38272
53248
62400

query I rowsort
SELECT 28 * + + 78 AS col1 FROM tab0
----
2184
2184
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT DISTINCT - COUNT( * ) * - SUM( 59 ) AS col0 FROM tab1
----
531

skipif mysql # not compatible
query I rowsort label-5148
SELECT DISTINCT - COUNT ( * ) * - SUM ( 59 ) AS col0 FROM tab1
----
531

query I rowsort
SELECT - ( + + col2 ) AS col0 FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5150
SELECT CAST( + col0 AS SIGNED ) * - col2 * col0 FROM tab1
----
-249696
-426275
-563108

skipif mysql # not compatible
query I rowsort label-5150
SELECT CAST ( + col0 AS INTEGER ) * - col2 * col0 FROM tab1
----
-249696
-426275
-563108

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 37 BETWEEN - col1 - - 9 AND NULL
----
51
14
96
85
5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + ( col0 ) ) col1 FROM tab1 cor0
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5153
SELECT DISTINCT 70 DIV - COUNT( * ) + 10 AS col1 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-5153
SELECT DISTINCT 70 / - COUNT ( * ) + 10 AS col1 FROM tab0 AS cor0
----
-13

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 71 < + ( + 58 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5155
SELECT - col0 DIV 94 + - col2 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5155
SELECT - col0 / 94 + - col2 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5156
SELECT ALL - 68 FROM tab1 AS cor0 WHERE NOT - ( - ( + CAST( NULL AS SIGNED ) ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL - 68 FROM tab1 AS cor0 WHERE NOT - ( - ( + CAST ( NULL AS INTEGER ) ) ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 64 * - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT DISTINCT 45 + + - COUNT( ALL - 56 ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT 45 + + - COUNT ( ALL - 56 ) FROM tab2
----
42

query I rowsort
SELECT col1 * - + 13 FROM tab0
----
-1053
-13
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT DISTINCT - 47 * 78 * - - COUNT( * ) + - MAX( ALL - - col0 ) AS col0 FROM tab0
----
-11095

skipif mysql # not compatible
query I rowsort label-5160
SELECT DISTINCT - 47 * 78 * - - COUNT ( * ) + - MAX ( ALL - - col0 ) AS col0 FROM tab0
----
-11095

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1 AS col2, - ( + col1 ) + + col1 AS col0, - col1 col2 FROM tab2
----
9 values hashing to f4e779c971865624ffe17453faf91d27

query I rowsort
SELECT DISTINCT - col0 + - + col1 AS col0 FROM tab0 AS cor0
----
-108
-96
-98

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col2 + + + col1 AS col2 FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND 72 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT - COUNT( * ) AS col1 FROM tab1 cor0 WHERE + 50 * + col2 * + ( + col2 ) * - col1 NOT IN ( col2 * + col2, ( + col0 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-5165
SELECT - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE + 50 * + col2 * + ( + col2 ) * - col1 NOT IN ( col2 * + col2, ( + col0 ) )
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5167
SELECT ALL * FROM tab0 AS cor0 WHERE + 81 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5167
SELECT ALL * FROM tab0 AS cor0 WHERE + 81 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL - 78 - - col1 AS col0 FROM tab0
----
-57
-77
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5169
SELECT ALL + ( + col1 ) FROM tab2 WHERE NOT CAST( NULL AS DECIMAL ) / + 40 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL + ( + col1 ) FROM tab2 WHERE NOT CAST ( NULL AS REAL ) / + 40 IS NULL
----

query I rowsort
SELECT ALL - col2 * + + col2 - + col2 AS col2 FROM tab0
----
-110
-2256
-9900

query II rowsort
SELECT - 13 AS col1, + col2 AS col0 FROM tab0
----
-13
10
-13
47
-13
99

query I rowsort
SELECT DISTINCT - + col0 * + 92 AS col1 FROM tab1 WHERE NOT + col2 - + + col0 IS NULL
----
-4692
-7820
-8372

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + col0 >= - + ( - + 13 ) * + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 8 / - 58 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5175
SELECT ALL CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5177
SELECT + CAST( 48 AS SIGNED ) AS col1 FROM tab1 cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-5177
SELECT + CAST ( 48 AS INTEGER ) AS col1 FROM tab1 cor0
----
48
48
48

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 72 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5179
SELECT + 51 col2, + COUNT( * ) FROM tab2 AS cor0
----
51
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5179
SELECT + 51 col2, + COUNT ( * ) FROM tab2 AS cor0
----
51
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT + MIN( ALL col1 ) * - 3 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5180
SELECT + MIN ( ALL col1 ) * - 3 FROM tab1 AS cor0
----
-15

query I rowsort
SELECT - + col0 * + 65 FROM tab2 AS cor0
----
-2990
-4160
-4875

query I rowsort
SELECT ALL 69 * 36 * - 69 AS col2 FROM tab0
----
-171396
-171396
-171396

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab0 WHERE + col1 NOT IN ( + + 13 * - + col2, col1, + 0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5184
SELECT ALL ( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT SUM( ALL + 23 ) AS col1 FROM tab1 cor0
----
69

skipif mysql # not compatible
query I rowsort label-5185
SELECT SUM ( ALL + 23 ) AS col1 FROM tab1 cor0
----
69

query I rowsort
SELECT DISTINCT - 65 * - col2 AS col0 FROM tab0 cor0
----
3055
6435
650

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT COUNT( DISTINCT - - 11 ) col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5187
SELECT COUNT ( DISTINCT - - 11 ) col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT + - 57 + - col2 AS col1 FROM tab1 AS cor0
----
-116
-125
-153

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 7 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 14 - - col1 BETWEEN + col2 - - ( - + 83 ) AND ( NULL )
----

query I rowsort
SELECT ALL - 67 AS col1 FROM tab1 WHERE NOT ( - + 48 * + col1 + + + 77 ) < NULL
----

query II rowsort
SELECT DISTINCT 67 AS col1, col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 59 * + 80 + + col0 FROM tab0
----
4735
4807
4817

query I rowsort
SELECT - - col1 FROM tab1 WHERE ( - col2 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT col0 IS NULL
----
3

query II rowsort
SELECT + col1 * col1, col1 FROM tab1 WHERE NULL IN ( 21 - - + 8 + 29 + col1, - 71 * + col0 )
----

query I rowsort
SELECT DISTINCT - 36 + col2 FROM tab2
----
-13
22
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT ALL COUNT( * ) * + 6 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL COUNT ( * ) * + 6 FROM tab2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5199
SELECT DISTINCT 88 + - CAST( NULL AS SIGNED ) AS col0, - 98 FROM tab1 WHERE - col1 IS NULL
----

skipif mysql # not compatible
query II rowsort label-5199
SELECT DISTINCT 88 + - CAST ( NULL AS INTEGER ) AS col0, - 98 FROM tab1 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL 40 * - col2 AS col2 FROM tab2
----
-1600
-2320
-920

query I rowsort
SELECT + 91 * - - 53 + + col1 * col1 AS col0 FROM tab1
----
4848
5019
7032

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 + + ( + col2 ) col0 FROM tab1 AS cor0
----
127
90
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT ALL - 26 * - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL - 26 * - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( col1 )
----
0

query I rowsort
SELECT ALL + 70 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT + + 15 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5206
SELECT ALL - col2 + - - 38 * + CAST( NULL AS SIGNED ) * + + col2 * - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL - col2 + - - 38 * + CAST ( NULL AS INTEGER ) * + + col2 * - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT ALL COUNT( * ) * - + 34 * COUNT( * ) AS col0 FROM tab2
----
-306

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL COUNT ( * ) * - + 34 * COUNT ( * ) AS col0 FROM tab2
----
-306

onlyif mysql # DIV for integer division: 
query I rowsort label-5208
SELECT DISTINCT col1 DIV 17 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-5208
SELECT DISTINCT col1 / 17 FROM tab0
----
0
1
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5209
SELECT + ( - + col1 ) DIV + + 93 * + col0 + - 49 AS col2 FROM tab2 AS cor0
----
-49
-49
-49

skipif mysql # not compatible
query I rowsort label-5209
SELECT + ( - + col1 ) / + + 93 * + col0 + - 49 AS col2 FROM tab2 AS cor0
----
-49
-49
-49

query I rowsort
SELECT 81 * - - col1 + + + col2 + col1 FROM tab0 AS cor0
----
1732
181
6689

query II rowsort
SELECT + - 35 * + 10 - 30 AS col0, + col1 FROM tab2 AS cor0 WHERE 8 / 47 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5212
SELECT ALL + - MIN( DISTINCT col2 ) + COUNT( - + ( - + CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5212
SELECT ALL + - MIN ( DISTINCT col2 ) + COUNT ( - + ( - + CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
-59

query II rowsort
SELECT DISTINCT col2 AS col1, col0 * - 5 FROM tab1 AS cor0
----
59
-425
68
-455
96
-255

query I rowsort
SELECT 39 + - - 19 AS col2 FROM tab0 AS cor0
----
58
58
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - col1 * + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5216
SELECT ALL + CAST( COUNT( DISTINCT - - 26 ) AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE 41 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL + CAST ( COUNT ( DISTINCT - - 26 ) AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE 41 = NULL
----
0

query I rowsort
SELECT - ( - - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT + 51 < NULL
----

query I rowsort
SELECT col2 * + col1 * - 92 * - 83 FROM tab1
----
10262784
2252620
24404656

query I rowsort
SELECT ALL + - col0 FROM tab0 WHERE NOT + - 11 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5220
SELECT ALL col0 DIV col1 AS col2, col2 * - + 31 FROM tab1
----
1
-2108
17
-1829
3
-2976

skipif mysql # not compatible
query II rowsort label-5220
SELECT ALL col0 / col1 AS col2, col2 * - + 31 FROM tab1
----
1
-2108
17
-1829
3
-2976

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT ( - COUNT( * ) ) * - 46 AS col1 FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-5221
SELECT ( - COUNT ( * ) ) * - 46 AS col1 FROM tab2
----
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 * + - col0 col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-459
-765
-819

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT ALL + MIN( + + col1 ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-5223
SELECT ALL + MIN ( + + col1 ) AS col0 FROM tab1
----
5

query I rowsort
SELECT + 87 * + col1 AS col1 FROM tab2
----
4437
5829
6699

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT + ( + SUM( + 62 ) ) FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-5225
SELECT + ( + SUM ( + 62 ) ) FROM tab0
----
186

query I rowsort
SELECT ALL + col0 * + - col0 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT ALL - 8 + - col1 - + + 65 AS col2 FROM tab1 AS cor0
----
-120
-78
-87

query I rowsort
SELECT ALL col2 * + + col0 + - - 88 FROM tab0 AS cor0
----
793
958
9691

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT DISTINCT + COUNT( col0 ) * - - 23 AS col0 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT + COUNT ( col0 ) * - - 23 AS col0 FROM tab2 AS cor0
----
69

query I rowsort
SELECT - col1 * - + col1 * - col0 AS col2 FROM tab0
----
-38367
-97
-98415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5231
SELECT DISTINCT col0 * - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5231
SELECT DISTINCT col0 * - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT DISTINCT - COUNT( * ) * MIN( ALL col1 ) AS col2 FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT - COUNT ( * ) * MIN ( ALL col1 ) AS col2 FROM tab2
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-5233
SELECT DISTINCT 52 + + 52 DIV col0 FROM tab1
----
52
53

skipif mysql # not compatible
query I rowsort label-5233
SELECT DISTINCT 52 + + 52 / col0 FROM tab1
----
52
53

query I rowsort
SELECT DISTINCT col0 + + col0 - col0 + - - col2 * 31 FROM tab0
----
1472
3166
397

query I rowsort
SELECT DISTINCT - col0 * + ( - - col0 ) FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT DISTINCT + 1 + col0 + + 38 AS col0 FROM tab2
----
103
114
85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= col0 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT - + ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE + 81 / + 56 / + 31 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5238
SELECT - + ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE + 81 / + 56 / + 31 IS NULL
----
0

query II rowsort
SELECT + - col1 AS col1, 43 FROM tab0 AS cor0 WHERE + 97 >= - col2
----
-1
43
-21
43
-81
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT - - COUNT( + col0 ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5240
SELECT - - COUNT ( + col0 ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + - col0 + - + col2 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT DISTINCT + 62 FROM tab1 WHERE NOT + - col0 IN ( col1, - 20 * - col0 )
----
62

query I rowsort
SELECT DISTINCT col1 + + - 50 FROM tab0
----
-29
-49
31

query I rowsort
SELECT DISTINCT + + 17 AS col0 FROM tab0 cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 47 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 47 IS NULL
----
3

query I rowsort
SELECT DISTINCT + - 20 FROM tab0 cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT MAX( + 89 ) FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-5247
SELECT MAX ( + 89 ) FROM tab0 AS cor0
----
89

query I rowsort
SELECT + - col1 * - 46 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - col2 * + 59 + - + 28
----

query II rowsort
SELECT DISTINCT col0 * - col2 * + col2 AS col2, col1 AS col2 FROM tab1 cor0
----
-295885
5
-420784
47
-470016
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5250
SELECT DISTINCT + - 89 * col0 + col2 * + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = - CAST( - col0 AS SIGNED ) + - 64 + - 65 * + 24
----

skipif mysql # not compatible
query I rowsort label-5250
SELECT DISTINCT + - 89 * col0 + col2 * + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = - CAST ( - col0 AS INTEGER ) + - 64 + - 65 * + 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT ALL + SUM( ALL - 75 ) FROM tab2 cor0
----
-225

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL + SUM ( ALL - 75 ) FROM tab2 cor0
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT - MIN( + - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5252
SELECT - MIN ( + - col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5253
SELECT DISTINCT + + COUNT( * ) DIV + 96 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT + + COUNT ( * ) / + 96 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5254
SELECT 27 DIV + 54 col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5254
SELECT 27 / + 54 col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + 86 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT MIN( DISTINCT + 8 ) FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-5256
SELECT MIN ( DISTINCT + 8 ) FROM tab2
----
8

query II rowsort
SELECT 27 AS col1, - col0 FROM tab0
----
27
-15
27
-87
27
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 + + 72 + + 14 - - 71 + + + col0 + + + col0 * - col1 = ( + + 72 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 51 col1 FROM tab1
----
2397
255
714

query II rowsort
SELECT ALL - col2, - col0 AS col2 FROM tab2 AS cor0
----
-23
-46
-40
-64
-58
-75

query II rowsort
SELECT DISTINCT + col0, + col1 * col0 FROM tab1 AS cor0
----
51
714
85
425
91
4277

query II rowsort
SELECT ALL 30 AS col1, col1 + + + 37 FROM tab2 AS cor0
----
30
104
30
114
30
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT 13 * - COUNT( + ( ( 93 ) ) ) FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-5263
SELECT 13 * - COUNT ( + ( ( 93 ) ) ) FROM tab2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5264
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5264
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5265
SELECT ALL - col2 + + 15 DIV col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL - col2 + + 15 / col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + + col1 col2 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT col1 + 44 FROM tab0 AS cor0
----
125
45
65

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 <= - 88
----

query I rowsort
SELECT + col0 + 70 AS col2 FROM tab0 AS cor0
----
157
167
85

query I rowsort
SELECT ALL + + 11 * + - 68 + + col1 AS col1 FROM tab2 AS cor0
----
-671
-681
-697

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT 43 + - 66 - COUNT( * ) FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-5271
SELECT 43 + - 66 - COUNT ( * ) FROM tab2 AS cor0
----
-26

query I rowsort
SELECT ALL - - col0 + - - col1 FROM tab2 AS cor0
----
141
142
97

query II rowsort
SELECT - 63 + + - ( - + col2 ) AS col1, 59 + - col0 FROM tab1
----
-4
-26
33
8
5
-32

query I rowsort
SELECT ALL + ( 98 ) FROM tab0
----
98
98
98

query I rowsort
SELECT DISTINCT + ( + - col2 ) AS col2 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5276
SELECT + CAST( + COUNT( * ) AS SIGNED ) FROM tab0 WHERE 83 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5276
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 WHERE 83 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT COUNT( DISTINCT + 57 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5277
SELECT COUNT ( DISTINCT + 57 ) AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT COUNT( + col0 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5278
SELECT COUNT ( + col0 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

query II rowsort
SELECT - - 95 AS col1, - 94 AS col0 FROM tab1 AS cor0
----
95
-94
95
-94
95
-94

query II rowsort
SELECT DISTINCT col2 AS col2, + col0 * 56 * + col0 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT + - 33, + col2 + + + col2 AS col2 FROM tab2 AS cor0
----
-33
116
-33
46
-33
80

query I rowsort
SELECT DISTINCT - ( - 8 ) FROM tab1 AS cor0
----
8

query I rowsort
SELECT ALL 99 * + col0 * - 67 FROM tab2 AS cor0
----
-305118
-424512
-497475

query I rowsort
SELECT + 69 * + - 60 AS col0 FROM tab2 AS cor0
----
-4140
-4140
-4140

onlyif mysql # DIV for integer division: 
query II rowsort label-5285
SELECT ALL - col0 DIV + + 81 col0, col0 FROM tab1 AS cor0
----
-1
85
-1
91
0
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5285
SELECT ALL - col0 / + + 81 col0, col0 FROM tab1 AS cor0
----
-1
85
-1
91
0
51

query I rowsort
SELECT + 11 FROM tab0 WHERE NOT 83 * + col0 + + + 2 IS NULL
----
11
11
11

query I rowsort
SELECT ALL + col1 * - - 21 FROM tab0
----
1701
21
441

query I rowsort
SELECT ALL + ( + + col2 ) FROM tab2
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col2 <= + - col0
----
51
14
96

query II rowsort
SELECT - col0 AS col1, col0 * + ( - - col1 ) AS col2 FROM tab1
----
-51
714
-85
425
-91
4277

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT DISTINCT COUNT( * ) * MIN( DISTINCT - col1 ) AS col0 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT COUNT ( * ) * MIN ( DISTINCT - col1 ) AS col0 FROM tab0
----
-243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5292
SELECT ALL - + 20 * + CAST( + 41 AS SIGNED ) + - - col2 AS col2 FROM tab0 AS cor0
----
-721
-773
-810

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL - + 20 * + CAST ( + 41 AS INTEGER ) + - - col2 AS col2 FROM tab0 AS cor0
----
-721
-773
-810

query I rowsort
SELECT ALL + - 21 + - + 23 FROM tab1 cor0
----
-44
-44
-44

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 29 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 / + + col2 * + + col2 + - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-5296
SELECT ALL col1 AS col0, 29 DIV + col1 AS col0 FROM tab0
----
1
29
21
1
81
0

skipif mysql # not compatible
query II rowsort label-5296
SELECT ALL col1 AS col0, 29 / + col1 AS col0 FROM tab0
----
1
29
21
1
81
0

query I rowsort
SELECT col2 + + col0 + + + 34 AS col0 FROM tab0
----
131
230
96

query I rowsort
SELECT ( + col2 ) + + - 30 - - + col2 FROM tab0
----
-10
168
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT ALL 60 + - MAX( - col1 ) FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL 60 + - MAX ( - col1 ) FROM tab1
----
65

query I rowsort
SELECT DISTINCT - 28 + - col2 AS col0 FROM tab1
----
-124
-87
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 + col1 col1 FROM tab2 AS cor0
----
131
147
157

query I rowsort
SELECT DISTINCT + 68 + - 99 FROM tab0 AS cor0
----
-31

query I rowsort
SELECT + + 88 + + - col1 FROM tab0 AS cor0
----
67
7
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT ALL + + 18 + COUNT( * ) + - 58 FROM tab0 cor0
----
-37

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL + + 18 + COUNT ( * ) + - 58 FROM tab0 cor0
----
-37

query I rowsort
SELECT ALL - col1 + - - 32 + - col1 AS col2 FROM tab1 AS cor0
----
-62
22
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5306
SELECT - - col1 DIV - + col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5306
SELECT - - col1 / - + col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ( + col2 ) * - - col0 * - col0 * - col2 + col2 AS col2 FROM tab2
----
1119387
18922558
6553640

query I rowsort
SELECT DISTINCT + col2 * + 58 + - + 20 + - col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5309
SELECT 78 * 16 AS col1, col0 / CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0
----
1248
NULL
1248
NULL
1248
NULL

skipif mysql # not compatible
query II rowsort label-5309
SELECT 78 * 16 AS col1, col0 / CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0
----
1248
NULL
1248
NULL
1248
NULL

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE + - col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5311
SELECT ALL - col2 + + col2 col0 FROM tab2 WHERE + col1 * - 84 - - col1 * - ( col2 ) + + 33 * - + 82 NOT IN ( 9 + + CAST( col2 AS SIGNED ) * + - col0, col1 )
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5311
SELECT ALL - col2 + + col2 col0 FROM tab2 WHERE + col1 * - 84 - - col1 * - ( col2 ) + + 33 * - + 82 NOT IN ( 9 + + CAST ( col2 AS INTEGER ) * + - col0, col1 )
----
0
0
0

query II rowsort
SELECT ALL ( - - 98 ), col1 * + - col0 AS col2 FROM tab2
----
98
-2346
98
-4928
98
-5025

query I rowsort
SELECT DISTINCT + col0 + col1 * - 73 FROM tab0 cor0
----
-1446
-5898
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5314
SELECT + col0 + - + col1 + + - col0 DIV + col1 FROM tab1 AS cor0
----
34
43
63

skipif mysql # not compatible
query I rowsort label-5314
SELECT + col0 + - + col1 + + - col0 / + col1 FROM tab1 AS cor0
----
34
43
63

query I rowsort
SELECT ALL + 75 AS col1 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT - 5 + + 21 AS col1 FROM tab0 WHERE NOT col0 * + col1 <> + 10 - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5317
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT ALL - + COUNT( * ) col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5318
SELECT ALL - + COUNT ( * ) col2 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5319
SELECT - + CAST( NULL AS SIGNED ) * - - 96 + + 7 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5319
SELECT - + CAST ( NULL AS INTEGER ) * - - 96 + + 7 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 36 * - - col2 FROM tab1 cor0
----
-2124
-2448
-3456

query II rowsort
SELECT - + col1, col2 AS col1 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT - 38 * COUNT( * ) - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-5322
SELECT - 38 * COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-5323
SELECT + + col2 DIV + - col0 AS col2 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5323
SELECT + + col2 / + - col0 AS col2 FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT DISTINCT 27 * col0 FROM tab0 cor0 WHERE NOT NULL <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT DISTINCT - COUNT( DISTINCT + + 4 ) AS col0 FROM tab0 WHERE NULL BETWEEN - + col2 AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT - COUNT ( DISTINCT + + 4 ) AS col0 FROM tab0 WHERE NULL BETWEEN - + col2 AND + col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5326
SELECT ALL col1 * + 32 * - - CAST( - - col2 AS SIGNED ) AS col0 FROM tab1
----
102272
43008
9440

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL col1 * + 32 * - - CAST ( - - col2 AS INTEGER ) AS col0 FROM tab1
----
102272
43008
9440

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 + + + col2 - 50 * - + 31 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 38 + col1 AS col0 FROM tab0
----
119
39
59

query I rowsort
SELECT DISTINCT col2 * - + col0 + - col1 AS col0 FROM tab0 AS cor0
----
-786
-891
-9604

query I rowsort
SELECT col1 + col2 * 51 FROM tab0 AS cor0
----
2478
5050
531

query I rowsort
SELECT 71 * + 91 FROM tab1
----
6461
6461
6461

onlyif mysql # DIV for integer division: 
query I rowsort label-5332
SELECT ALL col2 + + col2 + + 73 DIV + col2 col0 FROM tab1 AS cor0
----
119
137
192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5332
SELECT ALL col2 + + col2 + + 73 / + col2 col0 FROM tab1 AS cor0
----
119
137
192

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT ALL COUNT( * ) + COUNT( * ) col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5333
SELECT ALL COUNT ( * ) + COUNT ( * ) col2 FROM tab1 AS cor0
----
6

query I rowsort
SELECT - + 36 * col2 + - - col2 + 89 * - col2 FROM tab2 AS cor0
----
-2852
-4960
-7192

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT - 59 + + COUNT( ALL - col1 ) FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-5335
SELECT - 59 + + COUNT ( ALL - col1 ) FROM tab2 AS cor0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-5336
SELECT col1 + col2 DIV + + col2 FROM tab2 AS cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-5336
SELECT col1 + col2 / + + col2 FROM tab2 AS cor0
----
52
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT - 99 * + 46 + - COUNT( * ) + + - 3 col2 FROM tab1 AS cor0
----
-4560

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5337
SELECT - 99 * + 46 + - COUNT ( * ) + + - 3 col2 FROM tab1 AS cor0
----
-4560

query I rowsort
SELECT ALL + 12 + ( ( col2 ) ) FROM tab0 AS cor0
----
111
22
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT ALL 52 * + 49 + 86 * - COUNT( ALL col2 ) - - 13 FROM tab2 AS cor0
----
2303

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL 52 * + 49 + 86 * - COUNT ( ALL col2 ) - - 13 FROM tab2 AS cor0
----
2303

query I rowsort
SELECT DISTINCT + 8 * + ( 75 ) FROM tab1 AS cor0
----
600

query I rowsort
SELECT DISTINCT - 68 + - - 38 FROM tab2 AS cor0
----
-30

query I rowsort
SELECT 48 * - 30 * - col0 FROM tab0
----
125280
139680
21600

query II rowsort
SELECT DISTINCT col0, + col1 AS col2 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT ALL COUNT( * ) * 2 FROM tab0 WHERE NOT ( NOT NULL >= + col0 * - col2 * - ( - 3 ) + col1 * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL COUNT ( * ) * 2 FROM tab0 WHERE NOT ( NOT NULL >= + col0 * - col2 * - ( - 3 ) + col1 * col1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5345
SELECT 88 DIV + + ( 65 ) AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5345
SELECT 88 / + + ( 65 ) AS col1 FROM tab0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5347
SELECT DISTINCT COUNT( * ) AS col0, - 94 col2 FROM tab0 AS cor0
----
3
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5347
SELECT DISTINCT COUNT ( * ) AS col0, - 94 col2 FROM tab0 AS cor0
----
3
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5348
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 * - col0 / - CAST( NULL AS SIGNED ) + - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5348
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 * - col0 / - CAST ( NULL AS INTEGER ) + - col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5349
SELECT - COUNT( * ) DIV 4 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5349
SELECT - COUNT ( * ) / 4 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 / col0 * - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + + col0 * - col0 + + 24 + col2 * + col1, - col1 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-1715
-67
-919
-51
-992
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5352
SELECT + ( - + CAST( - col0 AS SIGNED ) ) * - col0 * + col2 col0 FROM tab2 AS cor0
----
-163840
-326250
-48668

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5352
SELECT + ( - + CAST ( - col0 AS INTEGER ) ) * - col0 * + col2 col0 FROM tab2 AS cor0
----
-163840
-326250
-48668

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 IN ( - + col1 + + + ( + ( + col0 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT ALL + + MIN( ALL + - 87 ) AS col1 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL + + MIN ( ALL + - 87 ) AS col1 FROM tab0 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT ALL - + ( - - COUNT( * ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL - + ( - - COUNT ( * ) ) FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL 48 * - - col1 AS col0 FROM tab1
----
2256
240
672

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT MAX( ( - col1 ) ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-5357
SELECT MAX ( ( - col1 ) ) FROM tab2
----
-51

query I rowsort
SELECT DISTINCT col0 * + col2 * - col0 FROM tab1
----
-249696
-426275
-563108

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT DISTINCT COUNT( * ) * + 20 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-5359
SELECT DISTINCT COUNT ( * ) * + 20 FROM tab0
----
60

query II rowsort
SELECT 83, - 6 * + col2 AS col0 FROM tab2
----
83
-138
83
-240
83
-348

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col2 * + + col2 + + + ( + - col0 ) - + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT DISTINCT - COUNT( - - 73 ) + - MAX( - - 73 ) FROM tab1
----
-76

skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT - COUNT ( - - 73 ) + - MAX ( - - 73 ) FROM tab1
----
-76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 60 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 80 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT ALL + MAX( + + col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL + MAX ( + + col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 77 * - + col0 col1 FROM tab1 AS cor0
----
-3927
-6545
-7007

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT - - COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5367
SELECT - - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5368
SELECT - col1 + + + col0 DIV col1 DIV - + 16 AS col1, + col1 * CAST( NULL AS SIGNED ) FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-5368
SELECT - col1 + + + col0 / col1 / - + 16 AS col1, + col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT + COUNT( * ) * - 68 AS col2 FROM tab1, tab1 AS cor0
----
-612

skipif mysql # not compatible
query I rowsort label-5369
SELECT + COUNT ( * ) * - 68 AS col2 FROM tab1, tab1 AS cor0
----
-612

query III rowsort
SELECT * FROM tab1 WHERE + - 32 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5371
SELECT DISTINCT + CAST( + + 32 AS SIGNED ) DIV - + col1 AS col1 FROM tab0 AS cor0
----
-1
-32
0

skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT + CAST ( + + 32 AS INTEGER ) / - + col1 AS col1 FROM tab0 AS cor0
----
-1
-32
0

query I rowsort
SELECT ALL col2 + + 56 AS col1 FROM tab2 AS cor0
----
114
79
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5373
SELECT ALL + - col0 DIV 91 + col0 AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5373
SELECT ALL + - col0 / 91 + col0 AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + - 19 AS col2 FROM tab2 AS cor0
----
-19
-19
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5375
SELECT ALL CAST( NULL AS SIGNED ) + + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL CAST ( NULL AS INTEGER ) + + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + - col1 - + col1 AS col2, + col2 AS col2 FROM tab2 AS cor0
----
-102
23
-134
58
-154
40

query I rowsort
SELECT - - col1 * + + col0 - - + 1 AS col2 FROM tab0 cor0
----
1216
1828
98

query I rowsort
SELECT ALL - 82 - + col2 AS col2 FROM tab2 AS cor0
----
-105
-122
-140

query I rowsort
SELECT 37 - - + ( - - 33 ) - col0 AS col1 FROM tab2
----
-5
24
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5380
SELECT DISTINCT CAST( NULL AS DECIMAL ) / + 51 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT CAST ( NULL AS REAL ) / + 51 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT 78 - - col2 FROM tab2
----
101
118
136

query I rowsort
SELECT ALL 5 - + col2 FROM tab0
----
-42
-5
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-5383
SELECT DISTINCT - col1 DIV col0 * col0 * + + col1 FROM tab2
----
-2346
-4928
0

skipif mysql # not compatible
query I rowsort label-5383
SELECT DISTINCT - col1 / col0 * col0 * + + col1 FROM tab2
----
-2346
-4928
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5384
SELECT ALL + CAST( - + col2 AS SIGNED ) + col1 AS col2, col1 + + + col2 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-98
100
11
31
34
128

skipif mysql # not compatible
query II rowsort label-5384
SELECT ALL + CAST ( - + col2 AS INTEGER ) + col1 AS col2, col1 + + + col2 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-98
100
11
31
34
128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 33 col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT 25 * + COUNT( * ) - 61 AS col1 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-5386
SELECT 25 * + COUNT ( * ) - 61 AS col1 FROM tab0 AS cor0
----
14

query I rowsort
SELECT - - col0 * - - ( + - col2 ) AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

query II rowsort
SELECT ALL - + col2 AS col2, - 46 AS col0 FROM tab2 AS cor0
----
-23
-46
-40
-46
-58
-46

query I rowsort
SELECT DISTINCT - col2 * - + 71 AS col1 FROM tab0 AS cor0
----
3337
7029
710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5390
SELECT + CAST( 5 AS SIGNED ) FROM tab0 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-5390
SELECT + CAST ( 5 AS INTEGER ) FROM tab0 AS cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT - - COUNT( * ) * - - 88 AS col2 FROM tab2 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-5391
SELECT - - COUNT ( * ) * - - 88 AS col2 FROM tab2 AS cor0
----
264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5392
SELECT ALL COUNT( * ) DIV + + COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL COUNT ( * ) / + + COUNT ( * ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT - SUM( ALL - 81 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
729

skipif mysql # not compatible
query I rowsort label-5393
SELECT - SUM ( ALL - 81 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
729

query III rowsort
SELECT * FROM tab0 WHERE NOT - 45 + - col1 BETWEEN ( 50 * - 74 / - + col1 - 68 + - - col1 - - col0 ) AND - 22 / col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5395
SELECT + - 97 + - COUNT( * ) + - + CAST( NULL AS DECIMAL ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5395
SELECT + - 97 + - COUNT ( * ) + - + CAST ( NULL AS REAL ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT - COUNT( * ) * - + SUM( ALL + - col2 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5396
SELECT - COUNT ( * ) * - + SUM ( ALL + - col2 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE NOT - 92 IS NULL
----
-51
-85
-91

query II rowsort
SELECT + col0, + col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query II rowsort
SELECT + - 98, col0 + + ( col1 ) AS col2 FROM tab1 cor0
----
-98
138
-98
65
-98
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT 34 * + COUNT( * ) * - COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
-918

skipif mysql # not compatible
query I rowsort label-5400
SELECT 34 * + COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
-918

query II rowsort
SELECT col1, - 61 AS col1 FROM tab0 AS cor0
----
1
-61
21
-61
81
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5402
SELECT + col2 * + CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-5402
SELECT + col2 * + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT DISTINCT ( - - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5403
SELECT DISTINCT ( - - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - ( + 14 ) * - 31 AS col1 FROM tab0
----
434

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT DISTINCT COUNT( * ) + - 69 - + COUNT( * ) + COUNT( * ) + ( - COUNT( * ) ) AS col1 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT COUNT ( * ) + - 69 - + COUNT ( * ) + COUNT ( * ) + ( - COUNT ( * ) ) AS col1 FROM tab1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT ALL + SUM( + col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL + SUM ( + col2 ) AS col1 FROM tab1
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5407
SELECT col2 + - CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5407
SELECT col2 + - CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - col2 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 * + 86 + - col2 * - + col0 FROM tab2
----
10800
5014
8064

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5410
SELECT + + 36 + - + CAST( NULL AS SIGNED ) AS col0, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5410
SELECT + + 36 + - + CAST ( NULL AS INTEGER ) AS col0, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT DISTINCT 39 + - COUNT( * ) * 51 FROM tab1 cor0
----
-114

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT 39 + - COUNT ( * ) * 51 FROM tab1 cor0
----
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5412
SELECT - 26 + + COUNT( * ) - + 89 AS col2, + 75 FROM tab2 AS cor0 WHERE + 48 NOT BETWEEN + 5 AND + + CAST( NULL AS SIGNED ) * col2 * + 71 + + col1
----
-115
75

skipif mysql # not compatible
query II rowsort label-5412
SELECT - 26 + + COUNT ( * ) - + 89 AS col2, + 75 FROM tab2 AS cor0 WHERE + 48 NOT BETWEEN + 5 AND + + CAST ( NULL AS INTEGER ) * col2 * + 71 + + col1
----
-115
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT DISTINCT - 74 + - COUNT( - col2 ) FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT - 74 + - COUNT ( - col2 ) FROM tab0 AS cor0
----
-77

query III rowsort
SELECT * FROM tab1 WHERE + 14 IS NULL
----

query I rowsort
SELECT col1 + + 44 AS col1 FROM tab0 AS cor0
----
125
45
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT DISTINCT + + COUNT( * ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5416
SELECT DISTINCT + + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5417
SELECT ALL - - col0 * col1 * col0 col0 FROM tab2 AS cor0 WHERE col1 BETWEEN - col0 AND + + 30 - col2 + col2 + - - CAST( NULL AS SIGNED ) * ( + - col1 ) * + 94
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5417
SELECT ALL - - col0 * col1 * col0 col0 FROM tab2 AS cor0 WHERE col1 BETWEEN - col0 AND + + 30 - col2 + col2 + - - CAST ( NULL AS INTEGER ) * ( + - col1 ) * + 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT - + COUNT( * ) + - - SUM( DISTINCT ( - - col0 ) ) FROM tab2 AS cor0
----
182

skipif mysql # not compatible
query I rowsort label-5418
SELECT - + COUNT ( * ) + - - SUM ( DISTINCT ( - - col0 ) ) FROM tab2 AS cor0
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT DISTINCT + 73 + + 58 * + COUNT( * ) FROM tab0 AS cor0
----
247

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT + 73 + + 58 * + COUNT ( * ) FROM tab0 AS cor0
----
247

query I rowsort
SELECT - 98 + - 99 + - + col0 + - col2 AS col0 FROM tab1 AS cor0
----
-341
-344
-356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5421
SELECT ALL + MIN( - CAST( NULL AS SIGNED ) ) + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5421
SELECT ALL + MIN ( - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - col2 * - + col1 * - col2 FROM tab1 AS cor0 WHERE ( NOT - 7 + col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT COUNT( * ) + - - ( + COUNT( + 20 ) ) col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5423
SELECT COUNT ( * ) + - - ( + COUNT ( + 20 ) ) col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT col2 - - col2 + + 85 FROM tab1 AS cor0
----
203
221
277

query I rowsort
SELECT col1 + - - 3 FROM tab2 AS cor0
----
54
70
80

query I rowsort
SELECT ALL + - col1 - + + col2 FROM tab1 cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT + COUNT( * ) + + 4 AS col1 FROM tab1 cor0
----
7

skipif mysql # not compatible
query I rowsort label-5427
SELECT + COUNT ( * ) + + 4 AS col1 FROM tab1 cor0
----
7

query I rowsort
SELECT DISTINCT + + col1 * 37 - + ( 2 ) AS col0 FROM tab0 AS cor0
----
2995
35
775

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 >= col1
----
46
51
23
64
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 col1 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 - + ( col1 ) + + 76 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * 37 * + 8 FROM tab1
----
13912
1480
4144

query I rowsort
SELECT - col1 * - col2 * 62 FROM tab2
----
190960
240932
72726

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * + 18 >= + - col1 * - col0 + + + 1
----
91
47
68

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> - - 26 + - + col0 * + col2
----

query I rowsort
SELECT + - col1 * ( 29 ) AS col0 FROM tab2 cor0
----
-1479
-1943
-2233

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT + MAX( - col0 ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5437
SELECT + MAX ( - col0 ) FROM tab0 cor0
----
-15

query III rowsort
SELECT * FROM tab0 WHERE NOT - 79 NOT IN ( col0, ( 59 ), - 26 - - - 55 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 35 > - col1 + - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE - col0 * - - col1 + - col2 >= 86 + + col2
----

query I rowsort
SELECT - col0 / - col0 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * + 76 * col1 BETWEEN NULL AND - 1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col2 AS col1, 27 + + - col0 FROM tab0 AS cor0
----
-10
-60
-47
12
-99
-70

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 32 + col0 NOT IN ( 33 * - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5445
SELECT ALL 56, + 99 * COUNT( * ) AS col1 FROM tab1
----
56
297

skipif mysql # not compatible
query II rowsort label-5445
SELECT ALL 56, + 99 * COUNT ( * ) AS col1 FROM tab1
----
56
297

query II rowsort
SELECT + col2, 51 AS col0 FROM tab1
----
59
51
68
51
96
51

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
51
85
91

query II rowsort
SELECT + 90 AS col1, + 31 AS col0 FROM tab1
----
90
31
90
31
90
31

query III rowsort
SELECT * FROM tab0 WHERE 42 * col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col0 ) col0 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5451
SELECT + COUNT( - - col1 ) FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + col0 > - ( 28 )
----
0

skipif mysql # not compatible
query I rowsort label-5451
SELECT + COUNT ( - - col1 ) FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + col0 > - ( 28 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) - + col1 col1 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT - - 90 - 26 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT - - 1 - 33 AS col2 FROM tab1 cor0 WHERE col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5455
SELECT SUM( DISTINCT - 41 ) AS col1, + COUNT( - 33 ) FROM tab1 AS cor0
----
-41
3

skipif mysql # not compatible
query II rowsort label-5455
SELECT SUM ( DISTINCT - 41 ) AS col1, + COUNT ( - 33 ) FROM tab1 AS cor0
----
-41
3

query I rowsort
SELECT + 67 - + col1 * - - 13 * + col2 FROM tab0 AS cor0
----
-1220
-2663
-49424

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 62 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5458
SELECT DISTINCT - + CAST( + SUM( CAST( NULL AS DECIMAL ) ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5458
SELECT DISTINCT - + CAST ( + SUM ( CAST ( NULL AS REAL ) ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT - SUM( 73 ) AS col2 FROM tab2
----
-219

skipif mysql # not compatible
query I rowsort label-5459
SELECT - SUM ( 73 ) AS col2 FROM tab2
----
-219

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 97 * + col0 + - col1 * - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5461
SELECT DISTINCT COUNT( * ), COUNT( * ) col1 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5461
SELECT DISTINCT COUNT ( * ), COUNT ( * ) col1 FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT + col0 + + 45 AS col2 FROM tab0
----
132
142
60

query I rowsort
SELECT DISTINCT + col2 + + 30 FROM tab0
----
129
40
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT 6 + COUNT( DISTINCT + 1 ) * ( + 34 ) FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-5464
SELECT 6 + COUNT ( DISTINCT + 1 ) * ( + 34 ) FROM tab1
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5465
SELECT * FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) ) = ( - 49 )
----

skipif mysql # not compatible
query III rowsort label-5465
SELECT * FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) ) = ( - 49 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5466
SELECT ( ( + CAST( - 63 AS SIGNED ) ) ) FROM tab1
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-5466
SELECT ( ( + CAST ( - 63 AS INTEGER ) ) ) FROM tab1
----
-63
-63
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5467
SELECT CAST( + ( col1 ) AS SIGNED ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5467
SELECT CAST ( + ( col1 ) AS INTEGER ) FROM tab2
----
51
67
77

query III rowsort
SELECT * FROM tab2 WHERE + 67 NOT IN ( - col1 * + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT COUNT( * ) + 34 FROM tab0 WHERE + 57 IS NOT NULL
----
37

skipif mysql # not compatible
query I rowsort label-5469
SELECT COUNT ( * ) + 34 FROM tab0 WHERE + 57 IS NOT NULL
----
37

query III rowsort
SELECT * FROM tab0 WHERE NOT + 17 NOT BETWEEN ( NULL ) AND ( + col0 )
----

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( 64 ) AND + col2 - + col1 * col0
----

query I rowsort
SELECT ALL 35 * col2 AS col2 FROM tab2
----
1400
2030
805

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT ALL + MIN( 12 ) * + 41 FROM tab1
----
492

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL + MIN ( 12 ) * + 41 FROM tab1
----
492

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5474
SELECT DISTINCT 59 DIV - 47 + + COUNT( * ) * MIN( DISTINCT 0 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5474
SELECT DISTINCT 59 / - 47 + + COUNT ( * ) * MIN ( DISTINCT 0 ) FROM tab1
----
-1

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT col0 NOT IN ( + col1 + 56 )
----

query I rowsort
SELECT ALL - 18 + 51 * 46 AS col1 FROM tab0
----
2328
2328
2328

onlyif mysql # DIV for integer division: 
query I rowsort label-5477
SELECT - 30 * col1 + 22 DIV col1 FROM tab1
----
-1410
-146
-419

skipif mysql # not compatible
query I rowsort label-5477
SELECT - 30 * col1 + 22 / col1 FROM tab1
----
-1410
-146
-419

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5478
SELECT - COUNT( col0 ) * COUNT( * ) + + CAST( AVG ( ALL 49 ) AS SIGNED ) * COUNT( * ) FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-5478
SELECT - COUNT ( col0 ) * COUNT ( * ) + + CAST ( AVG ( ALL 49 ) AS INTEGER ) * COUNT ( * ) FROM tab1
----
138

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> ( + 70 )
----

query I rowsort
SELECT ALL 14 AS col0 FROM tab2 WHERE + col1 IS NOT NULL
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT ALL + MIN( - col1 ) FROM tab1 WHERE NULL <> ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL + MIN ( - col1 ) FROM tab1 WHERE NULL <> ( col2 )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE 70 * col0 >= + col1 * - 46
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 78 * col0 + col1 * - col0 FROM tab1 WHERE 71 * col0 BETWEEN col2 * col0 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT 14 * MAX( - col2 ) FROM tab2
----
-322

skipif mysql # not compatible
query I rowsort label-5484
SELECT 14 * MAX ( - col2 ) FROM tab2
----
-322

query I rowsort
SELECT DISTINCT + col1 * + 63 FROM tab2
----
3213
4221
4851

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT COUNT( * ) * 54 AS col2 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-5486
SELECT COUNT ( * ) * 54 AS col2 FROM tab1
----
162

query I rowsort
SELECT ALL col2 + 9 AS col0 FROM tab0
----
108
19
56

query I rowsort
SELECT ALL ( + col0 ) * + ( + col1 ) FROM tab1
----
425
4277
714

query I rowsort
SELECT ALL col1 * col2 + 73 AS col2 FROM tab2 AS cor0
----
1246
3153
3959

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5490
SELECT ALL col2 + 46 AS col1 FROM tab2 cor0 WHERE NOT + col1 BETWEEN ( - CAST( + col0 AS SIGNED ) ) AND 95 * + 54 + + 75 * - 73
----
104
69
86

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL col2 + 46 AS col1 FROM tab2 cor0 WHERE NOT + col1 BETWEEN ( - CAST ( + col0 AS INTEGER ) ) AND 95 * + 54 + + 75 * - 73
----
104
69
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5491
SELECT ALL MAX( + 97 ) DIV 75 + 19 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL MAX ( + 97 ) / 75 + 19 FROM tab2 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT ALL - COUNT( DISTINCT + col2 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL - COUNT ( DISTINCT + col2 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL + 37 - + col1 FROM tab1
----
-10
23
32

query III rowsort
SELECT * FROM tab2 WHERE ( ( - col1 ) / - col2 ) BETWEEN ( 47 ) AND + ( ( - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT - COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 )
----
-9

skipif mysql # not compatible
query I rowsort label-5495
SELECT - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 )
----
-9

query I rowsort
SELECT ALL - 30 + ( - ( - col1 ) ) * col0 FROM tab0
----
1185
1797
67

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 41 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5498
SELECT - col2 DIV 94 AS col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5498
SELECT - col2 / 94 AS col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5499
SELECT + COUNT( * ) DIV - 91 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5499
SELECT + COUNT ( * ) / - 91 AS col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - col1 ) * + ( col2 ) col0 FROM tab2 AS cor0
----
1173
3080
3886

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 - - col1 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT MIN( col1 ) AS col1 FROM tab0 WHERE NOT NULL >= - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-5502
SELECT MIN ( col1 ) AS col1 FROM tab0 WHERE NOT NULL >= - 26
----
NULL

query I rowsort
SELECT DISTINCT + col2 * - col0 * ( + col1 ) FROM tab0
----
-18270
-57105
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - - 92 col1 FROM tab2
----
4232
5888
6900

onlyif mysql # DIV for integer division: 
query I rowsort label-5505
SELECT ALL 43 * ( 6 ) DIV col2 FROM tab1
----
2
3
4

skipif mysql # not compatible
query I rowsort label-5505
SELECT ALL 43 * ( 6 ) / col2 FROM tab1
----
2
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT COUNT( * ) * - MAX( ALL col1 ) col1 FROM tab1
----
-141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5506
SELECT COUNT ( * ) * - MAX ( ALL col1 ) col1 FROM tab1
----
-141

query I rowsort
SELECT - col1 * - - 56 FROM tab1
----
-2632
-280
-784

onlyif mysql # DIV for integer division: 
query I rowsort label-5508
SELECT + - col2 DIV + - 87 + col2 AS col1 FROM tab0 cor0
----
10
100
47

skipif mysql # not compatible
query I rowsort label-5508
SELECT + - col2 / + - 87 + col2 AS col1 FROM tab0 cor0
----
10
100
47

query I rowsort
SELECT ALL + + ( - + 23 ) AS col2 FROM tab0 AS cor0
----
-23
-23
-23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * 84 NOT IN ( 61 * - col1 )
----

query I rowsort
SELECT ( - col0 ) * col0 AS col1 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT DISTINCT - COUNT( * ) col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5512
SELECT DISTINCT - COUNT ( * ) col0 FROM tab1 cor0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT 76 NOT BETWEEN - col2 AND ( + 79 / col1 - - col2 * + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND ( 19 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( 48 ) <= ( NULL ) ) OR NOT - 16 <> + col0 + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5516
SELECT + + ( + COUNT( * ) ) + + - CAST( - COUNT( ALL - 56 ) AS SIGNED ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5516
SELECT + + ( + COUNT ( * ) ) + + - CAST ( - COUNT ( ALL - 56 ) AS INTEGER ) FROM tab0 AS cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 89 / col1 ) IS NULL
----

query I rowsort
SELECT ALL - col0 * - col2 FROM tab1 AS cor0 WHERE NOT ( 14 ) IS NULL OR NOT 11 IS NULL
----
4896
5015
6188

query I rowsort
SELECT ALL - + 57 + + + col0 + - col0 * 45 AS col2 FROM tab1 AS cor0
----
-2301
-3797
-4061

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT DISTINCT + 91 + SUM( ALL 69 ) col1 FROM tab0 AS cor0
----
298

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5520
SELECT DISTINCT + 91 + SUM ( ALL 69 ) col1 FROM tab0 AS cor0
----
298

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 86 * - col2 IS NULL
----

query I rowsort
SELECT ALL + ( col0 ) + + col0 AS col1 FROM tab2 AS cor0 WHERE col1 < NULL
----

query I rowsort
SELECT ALL + ( + col0 ) FROM tab1 AS cor0 WHERE NOT col1 * 8 > + col2
----
85

query I rowsort
SELECT ALL - - col0 + + + col1 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT ALL - + 21 AS col1 FROM tab1 cor0
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT + + COUNT( - col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5526
SELECT + + COUNT ( - col1 ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 88 <> + col1 / + col2
----

query I rowsort
SELECT - col1 * + 25 FROM tab0
----
-2025
-25
-525

query I rowsort
SELECT + ( col2 ) * - col2 AS col0 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT 10 - + col0 * + 62 * - col1 FROM tab2
----
145462
305546
311560

query III rowsort
SELECT * FROM tab1 WHERE + col1 / + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT + MIN( 71 ) * COUNT( * ) - + 92 AS col0 FROM tab2 WHERE - col0 IS NOT NULL
----
121

skipif mysql # not compatible
query I rowsort label-5532
SELECT + MIN ( 71 ) * COUNT ( * ) - + 92 AS col0 FROM tab2 WHERE - col0 IS NOT NULL
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5533
SELECT ALL * FROM tab0 WHERE 17 / - CAST( NULL AS SIGNED ) NOT IN ( 74 / col0 ) AND NOT + col2 NOT IN ( col0 )
----

skipif mysql # not compatible
query III rowsort label-5533
SELECT ALL * FROM tab0 WHERE 17 / - CAST ( NULL AS INTEGER ) NOT IN ( 74 / col0 ) AND NOT + col2 NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5534
SELECT ALL COUNT( * ) * - COUNT( * ) AS col2, COUNT( * ) AS col1 FROM tab1
----
-9
3

skipif mysql # not compatible
query II rowsort label-5534
SELECT ALL COUNT ( * ) * - COUNT ( * ) AS col2, COUNT ( * ) AS col1 FROM tab1
----
-9
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 - 55 + + col2 * - 16 * col0 col1 FROM tab0
----
-11273
-13878
-153507

query I rowsort
SELECT DISTINCT + col1 * + col0 + + col1 FROM tab1 AS cor0
----
430
4324
728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5537
SELECT ALL - MAX( - col1 ) * - COUNT( ALL - col0 ) AS col1 FROM tab0 cor0 WHERE NULL = col1 + col2 + + CAST( - col0 AS SIGNED ) + col0 / + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-5537
SELECT ALL - MAX ( - col1 ) * - COUNT ( ALL - col0 ) AS col1 FROM tab0 cor0 WHERE NULL = col1 + col2 + + CAST ( - col0 AS INTEGER ) + col0 / + 55
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5538
SELECT DISTINCT - CAST( + col2 AS DECIMAL ) col1 FROM tab2 AS cor0 WHERE NOT - 59 <> NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5538
SELECT DISTINCT - CAST ( + col2 AS REAL ) col1 FROM tab2 AS cor0 WHERE NOT - 59 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 + - 5 + + 93 col2 FROM tab0 AS cor0
----
172
172
172

query I rowsort
SELECT ALL ( - col2 ) - - - 49 + col1 FROM tab2 AS cor0
----
-12
-21
-40

query I rowsort
SELECT DISTINCT - col2 - - 11 - + + 51 * - ( - col0 ) * - 5 FROM tab1
----
12920
21627
23148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5542
SELECT - ( - COUNT( * ) ) * - CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5542
SELECT - ( - COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 + col0 IN ( + col1 )
----

query I rowsort
SELECT + 13 FROM tab0 WHERE NOT ( + 59 ) IS NULL
----
13
13
13

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + col2 * - col0 * - - 17 + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * + + col1 + - + col2 NOT BETWEEN ( + ( 31 ) ) + - col0 * col2 AND ( 3 )
----
85
5
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5547
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 + 9 + - - col2 + - CAST( NULL AS SIGNED ) * + col1 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5547
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 + 9 + - - col2 + - CAST ( NULL AS INTEGER ) * + col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT + + MAX( ALL - col0 ) * COUNT( * ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-5549
SELECT + + MAX ( ALL - col0 ) * COUNT ( * ) FROM tab0 AS cor0
----
-45

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT DISTINCT - + COUNT( DISTINCT - 47 ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT - + COUNT ( DISTINCT - 47 ) AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5552
SELECT - COUNT( * ) AS col0, - MIN( ALL col1 ) FROM tab0 AS cor0
----
-3
-1

skipif mysql # not compatible
query II rowsort label-5552
SELECT - COUNT ( * ) AS col0, - MIN ( ALL col1 ) FROM tab0 AS cor0
----
-3
-1

query I rowsort
SELECT col0 * + 75 AS col0 FROM tab1 AS cor0
----
3825
6375
6825

query II rowsort
SELECT - + col1, 84 AS col0 FROM tab2 AS cor0
----
-51
84
-67
84
-77
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5555
SELECT + + CAST( - 30 AS SIGNED ) col1 FROM tab1 cor0
----
-30
-30
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5555
SELECT + + CAST ( - 30 AS INTEGER ) col1 FROM tab1 cor0
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT DISTINCT + + 62 * - 73 * - COUNT( * ) FROM tab1 WHERE NOT + col1 < - - 57
----
0

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT + + 62 * - 73 * - COUNT ( * ) FROM tab1 WHERE NOT + col1 < - - 57
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + + col0 / - ( + col1 ) + + col2 * + 49 )
----

query I rowsort
SELECT ALL - ( 62 ) FROM tab2 WHERE col1 <= + + col1
----
-62
-62
-62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5559
SELECT CAST( NULL AS SIGNED ) AS col2, - 79 FROM tab1
----
NULL
-79
NULL
-79
NULL
-79

skipif mysql # not compatible
query II rowsort label-5559
SELECT CAST ( NULL AS INTEGER ) AS col2, - 79 FROM tab1
----
NULL
-79
NULL
-79
NULL
-79

query I rowsort
SELECT - AVG ( - 1 ) / - 64 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN - 35 AND col1 + - col2
----
NULL

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT col1 + - - 30 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - - col1 * - col1 * - col0 + + ( 72 ) * - col0 FROM tab1 WHERE NULL IN ( - + 67, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT ALL + - COUNT( * ) + COUNT( * ) AS col0 FROM tab2 WHERE NOT col2 + + - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL + - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 WHERE NOT col2 + + - col1 IS NULL
----
0

query I rowsort
SELECT - 28 * - 69 * ( + col1 ) AS col2 FROM tab1 WHERE NOT - col1 + col0 IS NULL
----
27048
90804
9660

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5565
SELECT + 18 * - ( + 33 ) + - CAST( NULL AS DECIMAL ) + + + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5565
SELECT + 18 * - ( + 33 ) + - CAST ( NULL AS REAL ) + + + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 47 IS NOT NULL
----

query I rowsort
SELECT - 74 + + col0 + + + col1 * 77 + + 14 + - col2 FROM tab2 AS cor0
----
3890
5116
5893

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 26 NOT IN ( ( + col1 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 28 * - col0 FROM tab0 AS cor0
----
-2436
-2716
-420

query IIII rowsort
SELECT col1, - col0, + + col2 + - col2 AS col0, ( - col1 ) AS col1 FROM tab2 AS cor0
----
12 values hashing to 3b24d7d5973affafa8b0ce73c1fc4e2d

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5572
SELECT - 63 + 62 / + col2 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN ( NULL ) AND ( col0 )
----

skipif mysql # not compatible
query I rowsort label-5572
SELECT - 63 + 62 / + col2 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN ( NULL ) AND ( col0 )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 22 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * - + 35 FROM tab2
----
-1785
-2345
-2695

query I rowsort
SELECT + - 38 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT ALL MIN( col1 ) + + 12 col1 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5576
SELECT ALL MIN ( col1 ) + + 12 col1 FROM tab2 AS cor0
----
63

query I rowsort
SELECT col1 * - col2 + - col2 AS col1 FROM tab0 AS cor0
----
-198
-220
-3854

query I rowsort
SELECT ALL - col2 * + col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5579
SELECT + col1 * + - 85 + + 18 DIV col0 FROM tab1 AS cor0
----
-1190
-3995
-425

skipif mysql # not compatible
query I rowsort label-5579
SELECT + col1 * + - 85 + + 18 / col0 FROM tab1 AS cor0
----
-1190
-3995
-425

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 10 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * - col0 + - 74 + - col0 AS col2 FROM tab0 AS cor0
----
-1304
-1988
-268

query I rowsort
SELECT col2 + - ( + + 31 ) AS col2 FROM tab1 AS cor0
----
28
37
65

query I rowsort
SELECT DISTINCT - col1 - + ( - ( - 21 ) ) AS col1 FROM tab2
----
-72
-88
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-5584
SELECT DISTINCT - 59 DIV + col0 AS col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-5584
SELECT DISTINCT - 59 / + col0 AS col0 FROM tab1
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col1 = - col2 * + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5586
SELECT DISTINCT 11 DIV - + col1 AS col0 FROM tab1
----
-2
0

skipif mysql # not compatible
query I rowsort label-5586
SELECT DISTINCT 11 / - + col1 AS col0 FROM tab1
----
-2
0

query I rowsort
SELECT ALL - ( col0 ) * col2 AS col1 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT - col1 + - ( + 9 ) FROM tab2
----
-60
-76
-86

query I rowsort
SELECT ALL - col0 * + + col0 AS col0 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT - - col1 / + col2 + col0 AS col2 FROM tab0 WHERE + + col1 IS NULL
----

query I rowsort
SELECT + 31 * 21 AS col1 FROM tab0 WHERE NULL IS NULL
----
651
651
651

query I rowsort
SELECT DISTINCT 63 FROM tab2 AS cor0 WHERE NOT 22 IS NULL AND NOT ( + col2 * col0 ) = - 24
----
63

query I rowsort
SELECT ALL - - 1 - col1 AS col1 FROM tab1 AS cor0
----
-13
-4
-46

query I rowsort
SELECT DISTINCT 57 * col1 FROM tab2
----
2907
3819
4389

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT ALL + ( + - COUNT( - 71 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL + ( + - COUNT ( - 71 ) ) FROM tab0
----
-3

query I rowsort
SELECT - 77 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT - col0 * col0 - - + 78 AS col0 FROM tab0 AS cor0
----
-147
-7491
-9331

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5598
SELECT ALL + 79 * + + CAST( NULL AS DECIMAL ) * + + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL + 79 * + + CAST ( NULL AS REAL ) * + + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + col2 * - 27 * - 40 * col1 AS col0 FROM tab2 AS cor0
----
-1266840
-3326400
-4196880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 * + - col1 + - + 94 col2 FROM tab1 AS cor0
----
-139
-220
-517

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 9 - - col0 * - 28 <= ( + col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < - 63
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + - 4
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT col0 * + 37 AS col0 FROM tab0
----
3219
3589
555

onlyif mysql # DIV for integer division: 
query I rowsort label-5606
SELECT DISTINCT col1 DIV 37 + - + col2 col0 FROM tab1
----
-59
-67
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5606
SELECT DISTINCT col1 / 37 + - + col2 col0 FROM tab1
----
-59
-67
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT DISTINCT + COUNT( - 6 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5607
SELECT DISTINCT + COUNT ( - 6 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT 33 * col0 AS col1 FROM tab1 AS cor0
----
1683
2805
3003

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 31 < + 61
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5610
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( NULL ) NOT IN ( col2 * - CAST( + col1 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-5610
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( NULL ) NOT IN ( col2 * - CAST ( + col1 AS INTEGER ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, - 73 FROM tab2
----
-51
-73
-67
-73
-77
-73

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( - col0 * + 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT ALL - 66 + - COUNT( * ) + + 41 AS col1 FROM tab0 cor0
----
-28

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL - 66 + - COUNT ( * ) + + 41 AS col1 FROM tab0 cor0
----
-28

query I rowsort
SELECT DISTINCT 46 AS col0 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + + 61 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5616
SELECT * FROM tab1 AS cor0 WHERE 69 + - 88 * - + col0 * - - col2 * + ( 27 ) * - col2 NOT IN ( + + CAST( NULL AS SIGNED ) * + 34 + CAST( NULL AS SIGNED ) - - 42 )
----

skipif mysql # not compatible
query III rowsort label-5616
SELECT * FROM tab1 AS cor0 WHERE 69 + - 88 * - + col0 * - - col2 * + ( 27 ) * - col2 NOT IN ( + + CAST ( NULL AS INTEGER ) * + 34 + CAST ( NULL AS INTEGER ) - - 42 )
----

query I rowsort
SELECT ALL + col1 - + + col0 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-5618
SELECT 2, COUNT( * ) col2 FROM tab2 cor0
----
2
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5618
SELECT 2, COUNT ( * ) col2 FROM tab2 cor0
----
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT ALL + SUM( col0 ) + + ( + COUNT( * ) ) FROM tab1 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL + SUM ( col0 ) + + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT + COUNT( * ) * + COUNT( * ) - + 88 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-5620
SELECT + COUNT ( * ) * + COUNT ( * ) - + 88 FROM tab0
----
-79

query I rowsort
SELECT col1 - + 10 FROM tab2
----
41
57
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5622
SELECT DISTINCT ( col0 ) AS col2, CAST( + col0 AS SIGNED ) FROM tab1
----
51
51
85
85
91
91

skipif mysql # not compatible
query II rowsort label-5622
SELECT DISTINCT ( col0 ) AS col2, CAST ( + col0 AS INTEGER ) FROM tab1
----
51
51
85
85
91
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5623
SELECT - - col2 DIV - col1 AS col0 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-5623
SELECT - - col2 / - col1 AS col0 FROM tab1 AS cor0
----
-1
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE 49 + - ( + + 55 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5624
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE 49 + - ( + + 55 ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 61 col0 FROM tab1 cor0
----
-61
-61
-61

query II rowsort
SELECT DISTINCT + col2, 49 FROM tab2 AS cor0 WHERE NOT 50 IS NULL
----
23
49
40
49
58
49

onlyif mysql # DIV for integer division: 
query I rowsort label-5627
SELECT - 97 DIV + ( - + 15 ) FROM tab2 AS cor0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-5627
SELECT - 97 / + ( - + 15 ) FROM tab2 AS cor0
----
6
6
6

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT - ( + col0 ) IS NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( 10 ) > ( ( col1 ) * + col2 / - 40 - + ( + - col1 ) + - - col0 + 57 + - 11 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5630
SELECT + - 67 + col1 + + + col2 + - col2 * + CAST( - - 39 AS SIGNED ) + + 62 FROM tab1 AS cor0 WHERE NOT NULL <= col1
----

skipif mysql # not compatible
query I rowsort label-5630
SELECT + - 67 + col1 + + + col2 + - col2 * + CAST ( - - 39 AS INTEGER ) + + 62 FROM tab1 AS cor0 WHERE NOT NULL <= col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col0 * + col1 IS NOT NULL
----

query I rowsort
SELECT + + 19 * - - 70 * + col2 * col1 + - + col0 FROM tab0 AS cor0
----
131573
279213
5063295

query I rowsort
SELECT + - col0 FROM tab1 AS cor0 WHERE NOT + col0 * - col2 * - col0 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT DISTINCT + MIN( DISTINCT - + col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-5634
SELECT DISTINCT + MIN ( DISTINCT - + col1 ) FROM tab1
----
-47

query I rowsort
SELECT ALL - - col2 FROM tab0 WHERE NOT NULL > + col1 OR NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT - MIN( DISTINCT + 58 ) + - 7 AS col1 FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-5636
SELECT - MIN ( DISTINCT + 58 ) + - 7 AS col1 FROM tab0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT - + COUNT( * ) FROM tab0 cor0 WHERE 40 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5637
SELECT - + COUNT ( * ) FROM tab0 cor0 WHERE 40 IS NOT NULL
----
-3

query I rowsort
SELECT ALL 99 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT ALL MAX( DISTINCT + 21 ) AS col2 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL MAX ( DISTINCT + 21 ) AS col2 FROM tab0
----
21

query I rowsort
SELECT ALL + 91 + + col1 FROM tab0
----
112
172
92

query I rowsort
SELECT DISTINCT ( - + 47 ) + col1 FROM tab2 AS cor0
----
20
30
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5642
SELECT + 55 + + col1 + + col1 DIV + col0 * col1 + - 47 * - - ( - col1 ) DIV - col1 FROM tab1 AS cor0
----
13
22
55

skipif mysql # not compatible
query I rowsort label-5642
SELECT + 55 + + col1 + + col1 / + col0 * col1 + - 47 * - - ( - col1 ) / - col1 FROM tab1 AS cor0
----
13
22
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5643
SELECT col1 + col2 * + CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5643
SELECT col1 + col2 * + CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 87 - col0 FROM tab0 AS cor0
----
-10
0
72

query I rowsort
SELECT - col0 + - 94 FROM tab1 cor0
----
-145
-179
-185

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - - col1 ) IS NULL
----

query I rowsort
SELECT col1 + 70 + + 3 FROM tab0 cor0
----
154
74
94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5648
SELECT - - COUNT( * ) + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5648
SELECT - - COUNT ( * ) + + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5649
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE col2 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5650
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( col1 + + col0 + + + 63 * + ( + 9 ) - + - 23 + + 41, CAST( - col2 AS SIGNED ), - 92 )
----

skipif mysql # not compatible
query III rowsort label-5650
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( col1 + + col0 + + + 63 * + ( + 9 ) - + - 23 + + 41, CAST ( - col2 AS INTEGER ), - 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT DISTINCT COUNT( * ) * ( 90 ) - - - 93 FROM tab2
----
177

skipif mysql # not compatible
query I rowsort label-5651
SELECT DISTINCT COUNT ( * ) * ( 90 ) - - - 93 FROM tab2
----
177

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND ( - 94 ) / - col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 65 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5654
SELECT + 52 * + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5654
SELECT + 52 * + + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 WHERE NOT 99 + - col0 + + + col0 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT ALL + COUNT( * ) col0 FROM tab1 WHERE NOT - + 26 > + - 54 * - ( col0 ) * + 65 + + 8
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5656
SELECT ALL + COUNT ( * ) col0 FROM tab1 WHERE NOT - + 26 > + - 54 * - ( col0 ) * + 65 + + 8
----
3

query I rowsort
SELECT col0 * - col1 FROM tab1 WHERE NOT col1 * col1 <= - 79
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5658
SELECT ALL + col0 DIV + ( + + 92 ) - - col0 AS col1 FROM tab1 WHERE NOT - col1 * + CAST( + - col0 AS SIGNED ) IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL + col0 / + ( + + 92 ) - - col0 AS col1 FROM tab1 WHERE NOT - col1 * + CAST ( + - col0 AS INTEGER ) IS NULL
----
51
85
91

query I rowsort
SELECT 79 * + col1 * + - ( + - col2 ) AS col0 FROM tab1
----
106176
23305
252484

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 59 >= NULL )
----

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT col0 * - col1 * - 29 <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( col0 / + 78, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5663
SELECT 10, + CAST( - col0 AS SIGNED ) FROM tab2 cor0 WHERE NOT ( NOT ( NOT ( ( ( - col0 * - - col2 ) > 85 * - col0 ) ) ) )
----

skipif mysql # not compatible
query II rowsort label-5663
SELECT 10, + CAST ( - col0 AS INTEGER ) FROM tab2 cor0 WHERE NOT ( NOT ( NOT ( ( ( - col0 * - - col2 ) > 85 * - col0 ) ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5664
SELECT DISTINCT + col0 DIV + - col1 AS col0 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-5664
SELECT DISTINCT + col0 / + - col1 AS col0 FROM tab0 AS cor0
----
-4
-97
0

query I rowsort
SELECT DISTINCT ( + 76 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
76

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = ( - 9 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5667
SELECT ALL CAST( + - COUNT( * ) AS SIGNED ) * - - 35 AS col0 FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL CAST ( + - COUNT ( * ) AS INTEGER ) * - - 35 AS col0 FROM tab1 AS cor0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT DISTINCT + - MIN( ALL - - col2 ) - - MAX( DISTINCT + - 78 ) FROM tab1 AS cor0 WHERE NOT 34 IS NULL
----
-137

skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT + - MIN ( ALL - - col2 ) - - MAX ( DISTINCT + - 78 ) FROM tab1 AS cor0 WHERE NOT 34 IS NULL
----
-137

query I rowsort
SELECT DISTINCT + 96 AS col0 FROM tab0 AS cor0 WHERE col2 + - - 96 BETWEEN col0 AND + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5670
SELECT + 22 DIV 79 * - + 71 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5670
SELECT + 22 / 79 * - + 71 AS col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 NOT BETWEEN - + ( 20 ) + + col2 + + + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 23 FROM tab0 WHERE + + 4 >= + col1
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5673
SELECT col1 AS col1, CAST( NULL AS SIGNED ) col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5673
SELECT col1 AS col1, CAST ( NULL AS INTEGER ) col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE - 61 IS NULL
----

query I rowsort
SELECT ( 53 ) AS col2 FROM tab0
----
53
53
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5676
SELECT ALL - 34 * CAST( NULL AS SIGNED ) * + 71 + - 91 + 99 * + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5676
SELECT ALL - 34 * CAST ( NULL AS INTEGER ) * + 71 + - 91 + 99 * + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT DISTINCT + MAX( - col2 ) col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5677
SELECT DISTINCT + MAX ( - col2 ) col1 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT DISTINCT - - 2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
2

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NULL > + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5680
SELECT DISTINCT - SUM( + + 21 ) + - + 18 DIV - 59 AS col2, 80 AS col0 FROM tab2 AS cor0
----
-63
80

skipif mysql # not compatible
query II rowsort label-5680
SELECT DISTINCT - SUM ( + + 21 ) + - + 18 / - 59 AS col2, 80 AS col0 FROM tab2 AS cor0
----
-63
80

query I rowsort
SELECT - 46 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5682
SELECT ALL 43 + + CAST( NULL AS SIGNED ) * + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5682
SELECT ALL 43 + + CAST ( NULL AS INTEGER ) * + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 - - + col1 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT ALL - 38 - - - 31 FROM tab0 AS cor0
----
-69
-69
-69

query I rowsort
SELECT + + col2 - + ( + col0 ) * - + col2 FROM tab1 AS cor0
----
4992
5074
6256

query I rowsort
SELECT col2 / col0 FROM tab0 WHERE NOT - - col1 NOT BETWEEN + 12 AND NULL
----

query II rowsort
SELECT col2 AS col2, col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT col1 * - + col2 * + - ( + 12 ) + col0 + + - 63 - col2 AS col2 FROM tab0 AS cor0
----
1123
2534
45589

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( + 50 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5690
SELECT + COUNT( * ) - + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5690
SELECT + COUNT ( * ) - + CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT 6 * - - col2 FROM tab1 AS cor0
----
354
408
576

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN 84 AND + col2 * + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT MAX( - col0 ) FROM tab1 AS cor0 WHERE NOT + col2 - + col2 NOT IN ( - 35 * - - col2 * - col1 + - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5693
SELECT MAX ( - col0 ) FROM tab1 AS cor0 WHERE NOT + col2 - + col2 NOT IN ( - 35 * - - col2 * - col1 + - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT ALL COUNT( ALL + - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5694
SELECT ALL COUNT ( ALL + - col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + + ( - col2 ) + col1 FROM