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 tab2 AS cor0
----
28
37
9

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

query II rowsort
SELECT DISTINCT 27, col2 FROM tab0 AS cor0
----
27
10
27
47
27
99

query I rowsort
SELECT 57 * col0 AS col0 FROM tab0 cor0
----
4959
5529
855

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> - 53
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 24 AS col1, - col1 * - col0 * - col1 * - - 57 + + ( + + col2 ) + + - col1 * - - col0 col2 FROM tab1 AS cor0
----
24
-11462292
24
-121491
24
-570390

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

skipif mysql # not compatible
query I rowsort label-5701
SELECT 73 * - CAST ( NULL AS INTEGER ) / + 85 * + + col2 * + + col0 / + col2 * - + col2 + col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5702
SELECT - 46 + + + col1 * + - CAST( col0 AS SIGNED ) FROM tab0
----
-1261
-143
-1873

skipif mysql # not compatible
query I rowsort label-5702
SELECT - 46 + + + col1 * + - CAST ( col0 AS INTEGER ) FROM tab0
----
-1261
-143
-1873

query I rowsort
SELECT ALL 34 * + 72 * 51 * - - col0 AS col2 FROM tab1
----
10612080
11361168
6367248

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

query I rowsort
SELECT DISTINCT 32 * + col1 FROM tab2
----
1632
2144
2464

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5707
SELECT ALL + 65 * + ( - + CAST( NULL AS SIGNED ) ) col0 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5707
SELECT ALL + 65 * + ( - + CAST ( NULL AS INTEGER ) ) col0 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5708
SELECT DISTINCT 20 + + CAST( + + col2 AS SIGNED ) * - col2 - 46 * + + col2 FROM tab0
----
-14335
-4351
-540

skipif mysql # not compatible
query I rowsort label-5708
SELECT DISTINCT 20 + + CAST ( + + col2 AS INTEGER ) * - col2 - 46 * + + col2 FROM tab0
----
-14335
-4351
-540

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col0 + - 77 + - 38 * col2 col1 FROM tab0 AS cor0
----
-1833
-283
-3645

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( - col2 * + col0 ) <= - col1
----

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

skipif mysql # not compatible
query I rowsort label-5712
SELECT DISTINCT + col0 * + + 68 + - CAST ( NULL AS INTEGER ) / 59 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - + col2 * + + 50 FROM tab2 AS cor0
----
-1150
-2000
-2900

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

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

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

query II rowsort
SELECT - col0 * + col0 + + 62, + 72 AS col1 FROM tab0
----
-163
72
-7507
72
-9347
72

query I rowsort
SELECT - - 29 + + - col0 FROM tab1 AS cor0
----
-22
-56
-62

query I rowsort
SELECT + 23 * 15 * + col0 + + 58 + - - 40 AS col0 FROM tab1 AS cor0
----
17693
29423
31493

query I rowsort
SELECT - + col2 * col0 + + + col2 AS col1 FROM tab0 cor0
----
-658
-860
-9504

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

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

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

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

query I rowsort
SELECT - 29 + - col1 FROM tab0 AS cor0
----
-110
-30
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 / col1 * - 99 col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5724
SELECT - 33 * + CAST( NULL AS DECIMAL ) * + - 90 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5724
SELECT - 33 * + CAST ( NULL AS REAL ) * + - 90 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 62 / col2 * + col0 + col0 * + - col0 AS col0 FROM tab2 AS cor0 WHERE ( - 63 * + col1 ) = - col0
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5727
SELECT - CAST( NULL AS SIGNED ) * + col1 col2, - 25 FROM tab2
----
NULL
-25
NULL
-25
NULL
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5727
SELECT - CAST ( NULL AS INTEGER ) * + col1 col2, - 25 FROM tab2
----
NULL
-25
NULL
-25
NULL
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT + SUM( DISTINCT + 48 ) * + - MAX( - - 41 ) AS col1 FROM tab0
----
-1968

skipif mysql # not compatible
query I rowsort label-5728
SELECT + SUM ( DISTINCT + 48 ) * + - MAX ( - - 41 ) AS col1 FROM tab0
----
-1968

query III rowsort
SELECT * FROM tab1 WHERE NOT - 39 + ( col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5730
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - col1 FROM tab0 WHERE NOT + 19 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5730
SELECT DISTINCT - CAST ( NULL AS REAL ) + - col1 FROM tab0 WHERE NOT + 19 IS NULL
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5732
SELECT + col2 DIV + 5 AS col1 FROM tab0 AS cor0
----
19
2
9

skipif mysql # not compatible
query I rowsort label-5732
SELECT + col2 / + 5 AS col1 FROM tab0 AS cor0
----
19
2
9

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE 14 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> 33
----

query I rowsort
SELECT DISTINCT col0 * + - 56 AS col0 FROM tab2
----
-2576
-3584
-4200

query I rowsort
SELECT + 33 * - + col2 + + 36 + + col2 - 7 * - + col0 * - col0 FROM tab1
----
-21243
-52427
-60107

query I rowsort
SELECT ALL 43 + + 64 FROM tab2
----
107
107
107

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

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

query I rowsort
SELECT col1 * 84 + - col1 FROM tab0
----
1743
6723
83

query I rowsort
SELECT DISTINCT - 70 * 83 + - 12 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT ALL - + 74 * + 46 + + COUNT( ALL - col0 ) + 58 col1 FROM tab2 cor0
----
-3343

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5744
SELECT ALL - + 74 * + 46 + + COUNT ( ALL - col0 ) + 58 col1 FROM tab2 cor0
----
-3343

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 - - col2 <= NULL
----

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

query I rowsort
SELECT DISTINCT col1 * - - 38 FROM tab0
----
3078
38
798

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5749
SELECT * FROM tab2 WHERE + + CAST( + col2 AS SIGNED ) NOT BETWEEN - - col2 * 97 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5749
SELECT * FROM tab2 WHERE + + CAST ( + col2 AS INTEGER ) NOT BETWEEN - - col2 * 97 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 21 * - col2 FROM tab0
----
-2079
-210
-987

query II rowsort
SELECT col1, - 50 AS col2 FROM tab0
----
1
-50
21
-50
81
-50

query I rowsort
SELECT ALL - 64 * + + 52 FROM tab0
----
-3328
-3328
-3328

query I rowsort
SELECT DISTINCT col1 + ( + + col0 ) + col2 + + col1 FROM tab2
----
171
258
267

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5755
SELECT DISTINCT + COUNT( ALL + + col1 ) DIV - MIN( ALL 91 ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5755
SELECT DISTINCT + COUNT ( ALL + + col1 ) / - MIN ( ALL 91 ) col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5756
SELECT ALL - 54 DIV 63 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5756
SELECT ALL - 54 / 63 FROM tab2
----
0
0
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 BETWEEN NULL AND 32
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5759
SELECT ALL col1 * + col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL col1 * + col2 / + col2 AS col2 FROM tab1 AS cor0
----
14
47
5

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) < 1
----

query II rowsort
SELECT col0 AS col2, col0 * ( + 85 ) + 20 AS col0 FROM tab2
----
46
3930
64
5460
75
6395

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5764
SELECT DISTINCT col1 DIV + - col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT col1 / + - col1 FROM tab1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5765
SELECT ALL - MAX( - - col1 ) DIV + COUNT( * ) AS col2, COUNT( * ) AS col0 FROM tab0
----
-27
3

skipif mysql # not compatible
query II rowsort label-5765
SELECT ALL - MAX ( - - col1 ) / + COUNT ( * ) AS col2, COUNT ( * ) AS col0 FROM tab0
----
-27
3

query II rowsort
SELECT ALL 4, + 51 * + 68 AS col1 FROM tab1
----
4
3468
4
3468
4
3468

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5769
SELECT - + 8 * - CAST( + 15 AS SIGNED ) FROM tab2 AS cor0
----
120
120
120

skipif mysql # not compatible
query I rowsort label-5769
SELECT - + 8 * - CAST ( + 15 AS INTEGER ) FROM tab2 AS cor0
----
120
120
120

query I rowsort
SELECT + - col1 * + + 41 AS col0 FROM tab2 AS cor0
----
-2091
-2747
-3157

onlyif mysql # DIV for integer division: 
query I rowsort label-5771
SELECT DISTINCT 23 DIV + + 86 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT 23 / + + 86 AS col0 FROM tab1 AS cor0
----
0

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

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

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

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

query II rowsort
SELECT - col0 AS col2, col1 FROM tab2 cor0
----
-46
51
-64
77
-75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT - + ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0 WHERE - ( - - 52 ) < 75
----
3

skipif mysql # not compatible
query I rowsort label-5776
SELECT - + ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0 WHERE - ( - - 52 ) < 75
----
3

query I rowsort
SELECT ALL - - 64 + - + 10 FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT DISTINCT - + 74 + - col0 + col1 * - 96 FROM tab0 AS cor0
----
-2177
-267
-7865

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5779
SELECT COUNT( * ) + + 50 DIV + + 20 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5779
SELECT COUNT ( * ) + + 50 / + + 20 FROM tab0 AS cor0
----
5

query II rowsort
SELECT col1 AS col0, col2 FROM tab1 WHERE - col1 * col2 / + - 80 IS NOT NULL
----
14
96
47
68
5
59

query I rowsort
SELECT ALL + - 65 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT - 6 * + + 12 + - col1 * - 63 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT - 6 * + + 12 + - col1 * - 63 IS NOT NULL
----
0

query I rowsort
SELECT 83 + + + 25 FROM tab2
----
108
108
108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5784
SELECT - col1 AS col1, CAST( - col0 AS SIGNED ) AS col2 FROM tab2
----
-51
-46
-67
-75
-77
-64

skipif mysql # not compatible
query II rowsort label-5784
SELECT - col1 AS col1, CAST ( - col0 AS INTEGER ) AS col2 FROM tab2
----
-51
-46
-67
-75
-77
-64

query I rowsort
SELECT 57 * - 82 + col2 FROM tab0 AS cor0
----
-4575
-4627
-4664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5786
SELECT - CAST( - - col1 AS SIGNED ) AS col2 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5786
SELECT - CAST ( - - col1 AS INTEGER ) AS col2 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT ALL + - 32 + col1 AS col2 FROM tab1 AS cor0
----
-18
-27
15

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5789
SELECT - col1 * + col1 col0, + col0 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * - 22 IN ( - 30 * - col2 + - col1 + - col1 * - - 62 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5789
SELECT - col1 * + col1 col0, + col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - 22 IN ( - 30 * - col2 + - col1 + - col1 * - - 62 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT ALL - + COUNT( * ) * + - 16 * + ( + 81 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
11664

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL - + COUNT ( * ) * + - 16 * + ( + 81 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
11664

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5791
SELECT DISTINCT - col2 AS col0, + CAST( NULL AS SIGNED ) + - + col1 + - - 73 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-5791
SELECT DISTINCT - col2 AS col0, + CAST ( NULL AS INTEGER ) + - + col1 + - - 73 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

query II rowsort
SELECT DISTINCT col0, 51 FROM tab2
----
46
51
64
51
75
51

query I rowsort
SELECT col2 * + - 38 AS col2 FROM tab1
----
-2242
-2584
-3648

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5795
SELECT DISTINCT + ( 0 ) DIV col1 DIV + 30 DIV 6 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5795
SELECT DISTINCT + ( 0 ) / col1 / + 30 / 6 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 82 ) > col0
----

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 >= - col1 + + ( 54 ) * + col1
----
15
81
47
87
21
10

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 / col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5802
SELECT + 19 DIV - ( + 27 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5802
SELECT + 19 / - ( + 27 ) FROM tab0 AS cor0
----
0
0
0

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

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE + 3 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5805
SELECT + col2 DIV + col2 + - col0 + 3 * + col0 * + 22, - col1 AS col0 FROM tab2
----
2991
-51
4161
-77
4876
-67

skipif mysql # not compatible
query II rowsort label-5805
SELECT + col2 / + col2 + - col0 + 3 * + col0 * + 22, - col1 AS col0 FROM tab2
----
2991
-51
4161
-77
4876
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5806
SELECT ALL - - ( MAX( ALL + - CAST( NULL AS SIGNED ) ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5806
SELECT ALL - - ( MAX ( ALL + - CAST ( NULL AS INTEGER ) ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
NULL

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

query I rowsort
SELECT DISTINCT - - col1 - + - col1 * - ( - + 34 ) AS col0 FROM tab0 AS cor0
----
2835
35
735

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - 76 col1 FROM tab1
----
-29
-62
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT ALL MAX( + - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-5811
SELECT ALL MAX ( + - col2 ) FROM tab0
----
-10

query III rowsort
SELECT * FROM tab1 WHERE - 55 > - - 87
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5813
SELECT 8 DIV col2 - col0 AS col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5813
SELECT 8 / col2 - col0 AS col2 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT + 17 + - COUNT( * ) col2 FROM tab0
----
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5814
SELECT + 17 + - COUNT ( * ) col2 FROM tab0
----
14

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

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

query I rowsort
SELECT - + col2 * - 42 + col0 AS col2 FROM tab0 AS cor0
----
1989
4255
507

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT - + ( MIN( ALL 27 ) ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5817
SELECT - + ( MIN ( ALL 27 ) ) FROM tab0 AS cor0
----
-27

query I rowsort
SELECT - + ( - 75 ) FROM tab2 cor0
----
75
75
75

query I rowsort
SELECT ALL - 12 FROM tab0 cor0 WHERE NULL NOT BETWEEN - col0 AND - 12 - 2 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT ALL COUNT( DISTINCT - - 60 ) * - COUNT( * ) + + 44 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
35

skipif mysql # not compatible
query I rowsort label-5820
SELECT ALL COUNT ( DISTINCT - - 60 ) * - COUNT ( * ) + + 44 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
35

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 96 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT + + 46 AS col0 FROM tab0 AS cor0 WHERE NOT col0 * col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL ( + - col1 ) * 8 + - col1 FROM tab0 AS cor0
----
-189
-729
-9

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

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

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

query I rowsort
SELECT col2 * + col0 * + col2 AS col0 FROM tab0 AS cor0
----
33135
8700
950697

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

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

query I rowsort
SELECT ( + ( - + col2 ) ) * - - 21 + + col0 - + 94 + + 44 FROM tab0 AS cor0
----
-1022
-173
-2032

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

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

query II rowsort
SELECT DISTINCT - col2 AS col0, + col2 * 8 * - - 62 FROM tab0
----
-10
4960
-47
23312
-99
49104

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT + 84 + MAX( 46 ) AS col2 FROM tab1 WHERE NOT NULL < + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5832
SELECT + 84 + MAX ( 46 ) AS col2 FROM tab1 WHERE NOT NULL < + 96
----
NULL

query I rowsort
SELECT + 68 * - + 14 FROM tab1, tab2 AS cor0
----
9 values hashing to f9c49aca262c2d0248b2b1156b8dc2e2

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5837
SELECT CAST( NULL AS DECIMAL ) * - 88 * - 56 + - COUNT( + 65 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5837
SELECT CAST ( NULL AS REAL ) * - 88 * - 56 + - COUNT ( + 65 ) FROM tab2 AS cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5839
SELECT col2 * col1 DIV - 8 + - - col2 FROM tab0 AS cor0
----
-16
-428
87

skipif mysql # not compatible
query I rowsort label-5839
SELECT col2 * col1 / - 8 + - - col2 FROM tab0 AS cor0
----
-16
-428
87

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * col2 + col2 col0 FROM tab0 AS cor0
----
-200
-3760
0

query II rowsort
SELECT DISTINCT col1 * - - col2 - + + 96, col0 AS col0 FROM tab0 AS cor0 WHERE + col1 >= - - 28 / + col0
----
114
87
3
97
3711
15

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT ( - - 64 ) + - MIN( DISTINCT 8 ) FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-5846
SELECT ( - - 64 ) + - MIN ( DISTINCT 8 ) FROM tab0 AS cor0
----
56

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

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

query I rowsort
SELECT - col0 * col2 + - - 52 AS col0 FROM tab0 AS cor0
----
-653
-818
-9551

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT DISTINCT - MIN( + col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5849
SELECT DISTINCT - MIN ( + col0 ) AS col1 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NOT - ( 84 ) + - - col1 BETWEEN + 59 AND NULL
----
-23
-40
-58

query I rowsort
SELECT ALL 33 - + + col0 FROM tab2
----
-13
-31
-42

query I rowsort
SELECT DISTINCT 46 * 19 FROM tab1
----
874

query I rowsort
SELECT ALL ( - ( + col0 ) ) + - col0 * + + col2 - + - 12 + + + ( + col2 ) FROM tab0
----
-661
-935
-9589

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT DISTINCT COUNT( ALL + col2 ) * - 28 + COUNT( * ) * COUNT( * ) AS col0 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-5854
SELECT DISTINCT COUNT ( ALL + col2 ) * - 28 + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 * - col2 col2 FROM tab1
----
3894
4488
6336

onlyif mysql # DIV for integer division: 
query II rowsort label-5856
SELECT col2 AS col0, col0 DIV + col1 FROM tab1
----
59
17
68
1
96
3

skipif mysql # not compatible
query II rowsort label-5856
SELECT col2 AS col0, col0 / + col1 FROM tab1
----
59
17
68
1
96
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT + COUNT( * ) * - + 95 AS col1 FROM tab0 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-5858
SELECT + COUNT ( * ) * - + 95 AS col1 FROM tab0 AS cor0
----
-285

query I rowsort
SELECT - 39 AS col2 FROM tab1 cor0
----
-39
-39
-39

query I rowsort
SELECT + col2 * + col2 * - col0 FROM tab0 AS cor0
----
-33135
-8700
-950697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 42 col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 47 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
47

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

skipif mysql # not compatible
query I rowsort label-5863
SELECT DISTINCT + - SUM ( + col1 ) FROM tab2 cor0
----
-195

query I rowsort
SELECT 54 * 38 FROM tab0 AS cor0
----
2052
2052
2052

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 15 * + + 4 IN ( col1, + col2 + - + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5866
SELECT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) <> + 11 * - + col1
----

skipif mysql # not compatible
query III rowsort label-5866
SELECT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) <> + 11 * - + col1
----

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

skipif mysql # not compatible
query I rowsort label-5867
SELECT DISTINCT 6 * + + COUNT ( * ) FROM tab1
----
18

query II rowsort
SELECT ALL - col2 + 54 + - col2, col0 FROM tab0
----
-144
97
-40
15
34
87

query II rowsort
SELECT DISTINCT col2 * - col2 + col0 AS col1, - col2 + + col2 AS col2 FROM tab0
----
-13
0
-2194
0
-9704
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5870
SELECT MAX ( DISTINCT - - col1 ) col0 FROM tab1
----
47

query I rowsort
SELECT ALL + col0 * - - col1 + - col0 * col0 + 43 AS col0 FROM tab2
----
-557
273
875

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT DISTINCT COUNT( * ) * + SUM( + col2 ) FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-5872
SELECT DISTINCT COUNT ( * ) * + SUM ( + col2 ) FROM tab2
----
363

query I rowsort
SELECT DISTINCT + 87 + - col1 * 21 AS col1 FROM tab1
----
-18
-207
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT ALL + MAX( 85 ) FROM tab1 cor0
----
85

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL + MAX ( 85 ) FROM tab1 cor0
----
85

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

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

query I rowsort
SELECT DISTINCT + col1 + - + col1 FROM tab0 cor0
----
0

query II rowsort
SELECT ALL 89 AS col0, + col0 * + - col1 AS col1 FROM tab1 AS cor0
----
89
-425
89
-4277
89
-714

query I rowsort
SELECT ALL + ( - col0 ) - + col0 AS col2 FROM tab1
----
-102
-170
-182

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5879
SELECT DISTINCT * FROM tab1 WHERE + + ( + + CAST( + - col1 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5879
SELECT DISTINCT * FROM tab1 WHERE + + ( + + CAST ( + - col1 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-5880
SELECT - 43 DIV - + col2 AS col1, + col0 AS col2 FROM tab1
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-5880
SELECT - 43 / - + col2 AS col1, + col0 AS col2 FROM tab1
----
0
51
0
85
0
91

query I rowsort
SELECT DISTINCT + col2 * - + 97 * col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-20370
-369279
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT DISTINCT - MIN( DISTINCT + col2 ) * + COUNT( * ) * + 66 AS col0 FROM tab0 AS cor0
----
-1980

skipif mysql # not compatible
query I rowsort label-5882
SELECT DISTINCT - MIN ( DISTINCT + col2 ) * + COUNT ( * ) * + 66 AS col0 FROM tab0 AS cor0
----
-1980

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 51 * + 41 - + col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5884
SELECT DISTINCT col2, - CAST( NULL AS SIGNED ) / - 33 / + ( - CAST( NULL AS SIGNED ) ) + col0 + + col1 * col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-5884
SELECT DISTINCT col2, - CAST ( NULL AS INTEGER ) / - 33 / + ( - CAST ( NULL AS INTEGER ) ) + col0 + + col1 * col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ALL - - col1 AS col2 FROM tab0 WHERE NULL = - col0 * + 16 + col0 + + - ( + 85 ) * - + 37 + + - col2 + col0 + - ( - col0 ) / - + col2 * + + ( col2 ) / + + ( col2 )
----

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

query II rowsort
SELECT DISTINCT + col1, col0 * - 11 FROM tab0 cor0
----
1
-1067
21
-957
81
-165

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

query I rowsort
SELECT ALL + ( + 10 ) AS col2 FROM tab2 AS cor0
----
10
10
10

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

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

skipif mysql # not compatible
query I rowsort label-5892
SELECT + COUNT ( 39 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5893
SELECT - + SUM( DISTINCT - col1 ) * - CAST( - + 81 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
8343

skipif mysql # not compatible
query I rowsort label-5893
SELECT - + SUM ( DISTINCT - col1 ) * - CAST ( - + 81 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
8343

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT + + 31 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-5895
SELECT + + 31 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-93

query I rowsort
SELECT DISTINCT + col1 * + - col1 FROM tab0 cor0
----
-1
-441
-6561

query I rowsort
SELECT ALL 16 FROM tab1 WHERE - + col0 <= - 14
----
16
16
16

query I rowsort
SELECT col2 + + 95 * col1 AS col1 FROM tab1
----
1426
4533
534

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

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

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

query I rowsort
SELECT - + 35 + + 6 FROM tab0 AS cor0
----
-29
-29
-29

query I rowsort
SELECT ALL + 46 + - - col2 FROM tab2 AS cor0
----
104
69
86

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL >= 16 * 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT ALL COUNT( * ) - COUNT( - + col0 ) + + + 57 + - COUNT( * ) + + - 8 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL COUNT ( * ) - COUNT ( - + col0 ) + + + 57 + - COUNT ( * ) + + - 8 FROM tab1 AS cor0
----
46

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) - - col2 col0 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5907
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * - + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5907
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * - + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query III rowsort label-5908
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN + + col0 * + + 6 - CAST ( NULL AS INTEGER ) AND - - col2
----

query I rowsort
SELECT ALL ( col0 ) * + + col1 FROM tab2
----
2346
4928
5025

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

query I rowsort
SELECT DISTINCT 41 * + - 90 FROM tab2
----
-3690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5912
SELECT COUNT( * ) * + CAST( - 3 AS SIGNED ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5912
SELECT COUNT ( * ) * + CAST ( - 3 AS INTEGER ) AS col0 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT DISTINCT MIN( ALL - col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-5913
SELECT DISTINCT MIN ( ALL - col0 ) AS col1 FROM tab0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5914
SELECT DISTINCT - 66 DIV + 57 AS col1, COUNT( * ) * COUNT( * ) AS col1 FROM tab0
----
-1
9

skipif mysql # not compatible
query II rowsort label-5914
SELECT DISTINCT - 66 / + 57 AS col1, COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0
----
-1
9

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5919
SELECT - CAST( NULL AS SIGNED ) AS col2, + 47 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 8d0dbf58273e9062fd002af1d4551b6e

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5919
SELECT - CAST ( NULL AS INTEGER ) AS col2, + 47 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 8d0dbf58273e9062fd002af1d4551b6e

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL OR - 58 * col1 <= NULL
----
51
67
77

query I rowsort
SELECT 41 + + 87 AS col0 FROM tab2
----
128
128
128

query I rowsort
SELECT - 39 + + col2 + 6 * + + col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT DISTINCT MIN( - + 15 ) * + ( - 99 ) + + 6 col0 FROM tab2 AS cor0
----
1491

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5923
SELECT DISTINCT MIN ( - + 15 ) * + ( - 99 ) + + 6 col0 FROM tab2 AS cor0
----
1491

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT - + SUM( ALL + + col0 ) + ( + 51 ) + 87 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-5924
SELECT - + SUM ( ALL + + col0 ) + ( + 51 ) + 87 FROM tab0 AS cor0
----
-61

query I rowsort
SELECT - - col2 + + + 77 * - 33 FROM tab1 AS cor0
----
-2445
-2473
-2482

query I rowsort
SELECT DISTINCT col2 + + + col1 * + 5 AS col1 FROM tab1 AS cor0 WHERE NOT - ( + - col0 ) IS NULL
----
166
303
84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT DISTINCT - COUNT( * ) + 77 * + 73 * - 93 AS col2 FROM tab0 AS cor0
----
-522756

skipif mysql # not compatible
query I rowsort label-5928
SELECT DISTINCT - COUNT ( * ) + 77 * + 73 * - 93 AS col2 FROM tab0 AS cor0
----
-522756

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

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

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

query I rowsort
SELECT ALL - col2 + - 52 FROM tab2
----
-110
-75
-92

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

query I rowsort
SELECT DISTINCT col0 + + - col1 FROM tab1
----
37
44
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5934
SELECT MAX( col2 ) DIV - 64 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5934
SELECT MAX ( col2 ) / - 64 FROM tab1
----
-1

query I rowsort
SELECT ALL - - col0 + + + 72 FROM tab0 cor0
----
159
169
87

query I rowsort
SELECT ALL 41 * - 41 - + ( - 48 ) FROM tab1 cor0
----
-1633
-1633
-1633

query I rowsort
SELECT + col2 + + 25 AS col2 FROM tab2 AS cor0
----
48
65
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5938
SELECT 19 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5938
SELECT 19 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > col1 + - col0
----

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col0 - 47 / 79 AS col2 FROM tab1 WHERE NOT NULL <= ( col2 * - col0 )
----

query I rowsort
SELECT ( - 92 ) - + col1 FROM tab2 WHERE NOT - col2 < 23
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE ( col2 + 80 * - col1 ) IN ( 28 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( 2 / ( + 62 ) )
----

query I rowsort
SELECT - 45 + - col2 FROM tab1
----
-104
-113
-141

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5950
SELECT + col0 AS col2 FROM tab2 WHERE + 61 NOT BETWEEN CAST( NULL AS DECIMAL ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5950
SELECT + col0 AS col2 FROM tab2 WHERE + 61 NOT BETWEEN CAST ( NULL AS REAL ) AND ( NULL )
----

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

query I rowsort
SELECT ALL + 3 + ( - ( col0 ) ) AS col2 FROM tab1
----
-48
-82
-88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT - COUNT( * ) + + MIN( + col1 ) col2 FROM tab1
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5955
SELECT - COUNT ( * ) + + MIN ( + col1 ) col2 FROM tab1
----
2

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

query I rowsort
SELECT DISTINCT col0 * col1 AS col2 FROM tab0 WHERE NOT 33 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 51 * + col2 FROM tab2 cor0
----
1173
2040
2958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 64 col0 FROM tab1 AS cor0
----
3776
4352
6144

query I rowsort
SELECT DISTINCT + ( + 25 ) * col1 FROM tab1 AS cor0
----
1175
125
350

query I rowsort
SELECT ALL 35 * - 17 FROM tab1 cor0
----
-595
-595
-595

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT DISTINCT MIN( DISTINCT 56 ) * + 67 AS col0 FROM tab0 AS cor0
----
3752

skipif mysql # not compatible
query I rowsort label-5962
SELECT DISTINCT MIN ( DISTINCT 56 ) * + 67 AS col0 FROM tab0 AS cor0
----
3752

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5964
SELECT DISTINCT * FROM tab1 WHERE NOT + 86 IN ( + col0 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5964
SELECT DISTINCT * FROM tab1 WHERE NOT + 86 IN ( + col0 * CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT 14 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT 80 * COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
720

skipif mysql # not compatible
query I rowsort label-5966
SELECT 80 * COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT DISTINCT 8 * - COUNT( * ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-5967
SELECT DISTINCT 8 * - COUNT ( * ) FROM tab1
----
-24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT + SUM( ALL 83 ) AS col2 FROM tab2 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-5969
SELECT + SUM ( ALL 83 ) AS col2 FROM tab2 AS cor0
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE + col2 IN ( col2 )
----
3

skipif mysql # not compatible
query I rowsort label-5970
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE + col2 IN ( col2 )
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT SUM( + col0 ) + 5 AS col0 FROM tab0 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-5972
SELECT SUM ( + col0 ) + 5 AS col0 FROM tab0 AS cor0
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT + 40 + MIN( - col1 ) AS col2 FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-5973
SELECT + 40 + MIN ( - col1 ) AS col2 FROM tab1 AS cor0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-5974
SELECT ALL - + col1 DIV + 29 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5974
SELECT ALL - + col1 / + 29 AS col1 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT - col2 + - ( - col2 - - col2 ) * - col1 AS col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT COUNT( DISTINCT 71 ) + + MAX( col1 ) AS col0 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-5976
SELECT COUNT ( DISTINCT 71 ) + + MAX ( col1 ) AS col0 FROM tab2 AS cor0
----
78

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

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

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

query I rowsort
SELECT 55 + - col0 * - col2 FROM tab0
----
760
925
9658

query I rowsort
SELECT DISTINCT ( + + col2 ) + - 21 * col2 AS col2 FROM tab2
----
-1160
-460
-800

query III rowsort
SELECT * FROM tab0 WHERE + col2 / - col1 <> 19
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 60 + - 16 AS col2 FROM tab1 AS cor0
----
-76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5983
SELECT ALL CAST( - col2 AS SIGNED ) DIV col2 AS col1 FROM tab0 AS cor0 WHERE 42 + - 81 <> - col0 * - col2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL CAST ( - col2 AS INTEGER ) / col2 AS col1 FROM tab0 AS cor0 WHERE 42 + - 81 <> - col0 * - col2
----
-1
-1
-1

query I rowsort
SELECT + - col2 * + 51 AS col0 FROM tab2 cor0
----
-1173
-2040
-2958

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5985
SELECT ALL + COUNT( DISTINCT 96 ) DIV 4 AS col0 FROM tab0 AS cor0 WHERE NOT + 6 = - col1 AND NOT NULL BETWEEN - ( col2 ) + col1 AND ( - 73 * col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5985
SELECT ALL + COUNT ( DISTINCT 96 ) / 4 AS col0 FROM tab0 AS cor0 WHERE NOT + 6 = - col1 AND NOT NULL BETWEEN - ( col2 ) + col1 AND ( - 73 * col2 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 57 * - col1 IS NOT NULL
----

query I rowsort
SELECT - 82 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

onlyif mysql # DIV for integer division: 
query I rowsort label-5988
SELECT - - 41 * + 24 * - col1 * col1 + col2 DIV - col2 AS col2 FROM tab2 AS cor0
----
-2559385
-4417177
-5834137

skipif mysql # not compatible
query I rowsort label-5988
SELECT - - 41 * + 24 * - col1 * col1 + col2 / - col2 AS col2 FROM tab2 AS cor0
----
-2559385
-4417177
-5834137

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5993
SELECT ALL - SUM( ALL + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT - MIN( DISTINCT 46 ) FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-5995
SELECT - MIN ( DISTINCT 46 ) FROM tab0
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-5996
SELECT DISTINCT MIN( DISTINCT col0 ), COUNT( * ) AS col0 FROM tab0
----
15
3

skipif mysql # not compatible
query II rowsort label-5996
SELECT DISTINCT MIN ( DISTINCT col0 ), COUNT ( * ) AS col0 FROM tab0
----
15
3

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

query II rowsort
SELECT DISTINCT col0 * col2 AS col2, col0 FROM tab1
----
4896
51
5015
85
6188
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 * col2 * - ( - col1 ) col1 FROM tab0
----
125631
3267
6930

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6002
SELECT COUNT( DISTINCT 18 ) + - 63 + + COUNT( * ) * + COUNT( * ) DIV - 33 FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-6002
SELECT COUNT ( DISTINCT 18 ) + - 63 + + COUNT ( * ) * + COUNT ( * ) / - 33 FROM tab0
----
-62

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 NOT IN ( + 79 + - 72 + - + col1 * - 27 * + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + + col1 * - - col1 * - col2 FROM tab2 AS cor0
----
-237096
-260287
-59777

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

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

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

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

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

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

query I rowsort
SELECT ALL - col1 + + 46 * + + 41 * - col2 FROM tab0 cor0
----
-186715
-18881
-88723

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 / col0 IS NULL
----

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

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

query I rowsort
SELECT ALL - col0 + - + 24 FROM tab2 cor0
----
-70
-88
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT ALL + COUNT( DISTINCT + - 2 ) AS col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6014
SELECT ALL + COUNT ( DISTINCT + - 2 ) AS col1 FROM tab1 cor0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT COUNT( * ) * + + 80 AS col2 FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-6017
SELECT COUNT ( * ) * + + 80 AS col2 FROM tab0
----
240

query I rowsort
SELECT col2 * - - 44 * - - col2 AS col0 FROM tab0
----
431244
4400
97196

query III rowsort
SELECT * FROM tab0 WHERE 86 + + col2 >= + - col0 + - - 43
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT + COUNT( * ) - + 3 * 54 AS col0 FROM tab0
----
-159

skipif mysql # not compatible
query I rowsort label-6020
SELECT + COUNT ( * ) - + 3 * 54 AS col0 FROM tab0
----
-159

query I rowsort
SELECT + col2 - - 11 * - 93 FROM tab2
----
-1000
-965
-983

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

skipif mysql # not compatible
query I rowsort label-6022
SELECT - 67 + COUNT ( * ) FROM tab1
----
-64

query I rowsort
SELECT - 67 + - ( col0 ) AS col1 FROM tab1 AS cor0
----
-118
-152
-158

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

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

query I rowsort
SELECT DISTINCT + 79 * - col0 - + - col0 FROM tab2 AS cor0
----
-3588
-4992
-5850

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

query I rowsort
SELECT - - 21 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

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

query I rowsort
SELECT ALL 97 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = 85 * - + col2 * - - col1
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6031
SELECT ( MIN( - 53 ) ) - CAST( NULL AS SIGNED ) * - 46 FROM tab2 AS cor0 WHERE NOT ( + - 4 BETWEEN - + col0 - - ( col0 ) AND - col0 * col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6031
SELECT ( MIN ( - 53 ) ) - CAST ( NULL AS INTEGER ) * - 46 FROM tab2 AS cor0 WHERE NOT ( + - 4 BETWEEN - + col0 - - ( col0 ) AND - col0 * col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6032
SELECT ALL col1 * + 5 AS col2 FROM tab1 cor0 WHERE NOT + col1 BETWEEN col0 AND - + col0 * + CAST( NULL AS SIGNED ) * + col0
----
235
25
70

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL col1 * + 5 AS col2 FROM tab1 cor0 WHERE NOT + col1 BETWEEN col0 AND - + col0 * + CAST ( NULL AS INTEGER ) * + col0
----
235
25
70

query I rowsort
SELECT + 90 * - 39 * 16 AS col0 FROM tab0
----
-56160
-56160
-56160

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6035
SELECT ALL * FROM tab1 WHERE - CAST( NULL AS SIGNED ) * + 52 <> - + col2 + + col1
----

skipif mysql # not compatible
query III rowsort label-6035
SELECT ALL * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) * + 52 <> - + col2 + + col1
----

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 BETWEEN ( col2 ) AND + col2 / + 2 + - + 68 * + 88 * col0 + - 72
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6039
SELECT DISTINCT col0 * - CAST( - col2 AS SIGNED ) FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT col0 * - CAST ( - col2 AS INTEGER ) FROM tab2
----
1058
2560
4350

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

query I rowsort
SELECT ALL - col0 * - col1 * col1 AS col2 FROM tab2 AS cor0
----
119646
336675
379456

query I rowsort
SELECT DISTINCT + col2 + - - col1 AS col0 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query II rowsort label-6043
SELECT DISTINCT - + COUNT( * ) AS col2, + 35 AS col0 FROM tab0 AS cor0
----
-3
35

skipif mysql # not compatible
query II rowsort label-6043
SELECT DISTINCT - + COUNT ( * ) AS col2, + 35 AS col0 FROM tab0 AS cor0
----
-3
35

onlyif mysql # DIV for integer division: 
query I rowsort label-6044
SELECT 44 DIV col2 * - - col0 * + 0 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-6044
SELECT 44 / col2 * - - col0 * + 0 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + 4 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # DIV for integer division: 
query I rowsort label-6046
SELECT 11 DIV + col1 + - - 1 col0 FROM tab0 cor0
----
1
1
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6046
SELECT 11 / + col1 + - - 1 col0 FROM tab0 cor0
----
1
1
12

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

query I rowsort
SELECT ALL - col0 * - 83 AS col2 FROM tab0 AS cor0
----
1245
7221
8051

query II rowsort
SELECT - 11 * col2 * col0 + - + 68 AS col2, - col0 - 0 AS col2 FROM tab2 AS cor0
----
-11706
-46
-28228
-64
-47918
-75

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

query I rowsort
SELECT col1 * col1 + + - 61 AS col0 FROM tab2 AS cor0
----
2540
4428
5868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 + + - 90 col0 FROM tab0
----
5
5
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT DISTINCT - - COUNT( DISTINCT + ( + col0 ) ) col0 FROM tab1 WHERE NOT + 11 + - col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6054
SELECT DISTINCT - - COUNT ( DISTINCT + ( + col0 ) ) col0 FROM tab1 WHERE NOT + 11 + - col0 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6055
SELECT col0 DIV + 6 AS col2 FROM tab1
----
14
15
8

skipif mysql # not compatible
query I rowsort label-6055
SELECT col0 / + 6 AS col2 FROM tab1
----
14
15
8

query I rowsort
SELECT ALL + + col1 + - col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6057
SELECT + COUNT( * ) DIV SUM( DISTINCT + 97 ) DIV 19 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6057
SELECT + COUNT ( * ) / SUM ( DISTINCT + 97 ) / 19 FROM tab1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6058
SELECT - CAST( NULL AS DECIMAL ) / + + 67 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6058
SELECT - CAST ( NULL AS REAL ) / + + 67 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT + 16 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-6059
SELECT + 16 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
48

query I rowsort
SELECT DISTINCT - - 96 AS col0 FROM tab1 AS cor0
----
96

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

skipif mysql # not compatible
query I rowsort label-6061
SELECT ALL + - COUNT ( DISTINCT + 75 ) AS col2 FROM tab0 AS cor0
----
-1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT + COUNT( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT 78 BETWEEN col1 AND - col1
----
3

skipif mysql # not compatible
query I rowsort label-6064
SELECT + COUNT ( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT 78 BETWEEN col1 AND - col1
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT ALL + COUNT( + ( + - col1 ) ) * + - MAX( ALL col1 ) * + 58 + - AVG ( ALL + 23 ) FROM tab0 AS cor0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6067
SELECT ALL + COUNT ( + ( + - col1 ) ) * + - MAX ( ALL col1 ) * + 58 + - AVG ( ALL + 23 ) FROM tab0 AS cor0 WHERE NULL >= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6068
SELECT DISTINCT 7 DIV col0 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6068
SELECT DISTINCT 7 / col0 AS col0 FROM tab0
----
0

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6073
SELECT DISTINCT - col2 + col0 DIV - 83 FROM tab0
----
-100
-11
-47

skipif mysql # not compatible
query I rowsort label-6073
SELECT DISTINCT - col2 + col0 / - 83 FROM tab0
----
-100
-11
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6074
SELECT DISTINCT CAST( - SUM( DISTINCT - - col0 ) AS SIGNED ), ( + 30 ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-199
90

skipif mysql # not compatible
query II rowsort label-6074
SELECT DISTINCT CAST ( - SUM ( DISTINCT - - col0 ) AS INTEGER ), ( + 30 ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-199
90

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

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

query I rowsort
SELECT - 39 + - col1 + - 97 + col0 + col0 AS col2 FROM tab1
----
-1
-48
29

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

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

query I rowsort
SELECT DISTINCT - - 21 + + 44 AS col2 FROM tab1 AS cor0
----
65

query I rowsort
SELECT ALL + - col1 * col1 + + col0 FROM tab0 cor0
----
-354
-6546
96

query I rowsort
SELECT ALL 69 + col2 FROM tab2 AS cor0
----
109
127
92

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 50 NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT ALL + col0 * col1 + - col1 + - ( + 98 ) * - 9 FROM tab1 AS cor0
----
1302
1582
5112

onlyif mysql # DIV for integer division: 
query I rowsort label-6083
SELECT 12 - 46 DIV + - col1 FROM tab1
----
12
15
21

skipif mysql # not compatible
query I rowsort label-6083
SELECT 12 - 46 / + - col1 FROM tab1
----
12
15
21

query I rowsort
SELECT ALL 47 - col2 + + col0 * col1 * col1 FROM tab0
----
38404
45
98415

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6086
SELECT ALL + MIN( - col1 ) AS col1, - CAST( NULL AS SIGNED ) * + 98 AS col2 FROM tab1 WHERE NOT NULL <= + - col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6086
SELECT ALL + MIN ( - col1 ) AS col1, - CAST ( NULL AS INTEGER ) * + 98 AS col2 FROM tab1 WHERE NOT NULL <= + - col1
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6087
SELECT * FROM tab0 WHERE NULL IN ( - CAST( NULL AS SIGNED ) + - ( col0 ), col2 + + ( - - col2 ) / + - col1 / 19 * 11 )
----

skipif mysql # not compatible
query III rowsort label-6087
SELECT * FROM tab0 WHERE NULL IN ( - CAST ( NULL AS INTEGER ) + - ( col0 ), col2 + + ( - - col2 ) / + - col1 / 19 * 11 )
----

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

query I rowsort
SELECT + 41 * - - col2 + - col1 FROM tab0
----
1846
389
4058

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN col1 AND + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6092
SELECT DISTINCT COUNT( * ) AS col0, + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-6092
SELECT DISTINCT COUNT ( * ) AS col0, + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

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

query I rowsort
SELECT - col0 * col1 * - 32 AS col1 FROM tab1 cor0
----
13600
136864
22848

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6096
SELECT ( - col2 ) DIV + - col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6096
SELECT ( - col2 ) / + - col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6097
SELECT + 53 DIV + 59 + col1 AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6097
SELECT + 53 / + 59 + col1 AS col1 FROM tab1 AS cor0
----
14
47
5

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

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

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

query I rowsort
SELECT + col2 * - col2 + + col2 FROM tab2
----
-1560
-3306
-506

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT COUNT( ALL - - 5 ) + SUM( ALL - + col0 ) FROM tab0
----
-196

skipif mysql # not compatible
query I rowsort label-6101
SELECT COUNT ( ALL - - 5 ) + SUM ( ALL - + col0 ) FROM tab0
----
-196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6102
SELECT DISTINCT - 45 + + + CAST( - - ( - 14 ) AS SIGNED ) + + 66 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-6102
SELECT DISTINCT - 45 + + + CAST ( - - ( - 14 ) AS INTEGER ) + + 66 FROM tab1
----
7

query I rowsort
SELECT + 36 * - col2 * + 10 + - - 59 AS col2 FROM tab2
----
-14341
-20821
-8221

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

query I rowsort
SELECT ALL + - 14 FROM tab1 WHERE 39 * - col2 IS NOT NULL
----
-14
-14
-14

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

query I rowsort
SELECT col2 * - ( - 15 ) AS col1 FROM tab1 AS cor0
----
1020
1440
885

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * + col2 * + - col0 <> col0 + + 93 * + ( + - 56 ) + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-2

query I rowsort
SELECT + + ( + 87 ) + + col1 AS col0 FROM tab2 AS cor0
----
138
154
164

query I rowsort
SELECT ALL - - col0 + - 12 FROM tab0 AS cor0
----
3
75
85

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6115
SELECT DISTINCT + COUNT ( * ) * 26 FROM tab1
----
78

query II rowsort
SELECT + col1 AS col0, 24 + - col0 * + 11 AS col2 FROM tab0
----
1
-1043
21
-933
81
-141

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, - 25 FROM tab0
----
-1
-25
-21
-25
-81
-25

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

skipif mysql # not compatible
query III rowsort label-6119
SELECT ALL * FROM tab1 WHERE NOT + + col1 / + + CAST ( NULL AS INTEGER ) + - - 68 * - col2 >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT ALL + + COUNT( * ) * - ( SUM( DISTINCT - col1 ) ) AS col2 FROM tab2 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-6120
SELECT ALL + + COUNT ( * ) * - ( SUM ( DISTINCT - col1 ) ) AS col2 FROM tab2 AS cor0
----
585

query II rowsort
SELECT - + 24 - - + col2 AS col2, + col0 * + - col2 + - col2 AS col0 FROM tab2 AS cor0 WHERE NOT col0 * - col2 < 5
----

query II rowsort
SELECT DISTINCT - + 13 * + col1 * col0, + col0 AS col0 FROM tab1 AS cor0
----
-5525
85
-55601
91
-9282
51

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT - COUNT( * ) * + 55 + 79 FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-6126
SELECT - COUNT ( * ) * + 55 + 79 FROM tab0 AS cor0
----
-86

query I rowsort
SELECT ALL + 18 + 63 + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> + col2 * - col2
----

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 28 > - col0
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6133
SELECT ALL + col0 + CAST( - 25 AS SIGNED ) * + col2 FROM tab0
----
-1160
-163
-2378

skipif mysql # not compatible
query I rowsort label-6133
SELECT ALL + col0 + CAST ( - 25 AS INTEGER ) * + col2 FROM tab0
----
-1160
-163
-2378

onlyif mysql # DIV for integer division: 
query I rowsort label-6134
SELECT ( col2 ) DIV 41 - + - ( col2 ) + + col2 col0 FROM tab0
----
20
200
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6134
SELECT ( col2 ) / 41 - + - ( col2 ) + + col2 col0 FROM tab0
----
20
200
95

query I rowsort
SELECT ALL - 49 * - + col0 FROM tab0
----
4263
4753
735

query I rowsort
SELECT DISTINCT + 11 + col0 FROM tab1
----
102
62
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT + COUNT( * ) + + 64 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-6137
SELECT + COUNT ( * ) + + 64 FROM tab0 AS cor0
----
67

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

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

query III rowsort
SELECT * FROM tab2 WHERE + 92 >= - col0 / 34
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * + - col2 * - + col2 * ( col1 ) AS col2 FROM tab1
----
1479425
19776848
6580224

query I rowsort
SELECT + 80 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 59 + 97 col1, + col0 * + + col0 FROM tab2 AS cor0
----
38
2116
38
4096
38
5625

query I rowsort
SELECT - ( + - 36 ) FROM tab2 AS cor0 WHERE 29 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6144
SELECT + CAST( NULL AS SIGNED ) - + 35 + - - 53 * + 11 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6144
SELECT + CAST ( NULL AS INTEGER ) - + 35 + - - 53 * + 11 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT DISTINCT + + COUNT( * ) * - ( + COUNT( ALL ( + 59 ) ) ) col2 FROM tab0 AS cor0
----
-9

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab1 WHERE NOT 56 IS NULL
----
14
47
5

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

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

query I rowsort
SELECT DISTINCT + ( + - col1 ) * + col0 * 47 FROM tab1 cor0
----
-19975
-201019
-33558

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 81 * + col2 NOT BETWEEN NULL AND + col2 * - col0 + + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT + col1 + col0 FROM tab2 cor0 WHERE NOT + col0 IS NULL
----
141
142
97

query I rowsort
SELECT ALL - 46 + 2 * + 6 * - + 11 FROM tab1 AS cor0
----
-178
-178
-178

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6156
SELECT DISTINCT col2, CAST( NULL AS SIGNED ) * col0 + 90 AS col2 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-6156
SELECT DISTINCT col2, CAST ( NULL AS INTEGER ) * col0 + 90 AS col2 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6157
SELECT 87 DIV + 1 + - + col0 * - - col1 + col1 AS col2 FROM tab1 AS cor0
----
-333
-4143
-613

skipif mysql # not compatible
query I rowsort label-6157
SELECT 87 / + 1 + - + col0 * - - col1 + col1 AS col2 FROM tab1 AS cor0
----
-333
-4143
-613

query I rowsort
SELECT - col0 * - + col2 + col1 + + col2 AS col2 FROM tab2
----
1132
2677
4475

query I rowsort
SELECT + 20 * + 15 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 051dd47c7027701e5db0a6b5c203cbc7

query I rowsort
SELECT ALL + 50 + 59 * + - col1 AS col0 FROM tab1
----
-245
-2723
-776

query I rowsort
SELECT DISTINCT 96 + - 56 AS col1 FROM tab0
----
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT COUNT( ALL col2 ) * + 67 AS col1 FROM tab1 AS cor0 WHERE ( + 48 ) IS NOT NULL
----
201

skipif mysql # not compatible
query I rowsort label-6163
SELECT COUNT ( ALL col2 ) * + 67 AS col1 FROM tab1 AS cor0 WHERE ( + 48 ) IS NOT NULL
----
201

query I rowsort
SELECT DISTINCT 42 * + col0 AS col1 FROM tab1
----
2142
3570
3822

query II rowsort
SELECT col2 + - col1 * + col1 + + col2 * 79, + col0 FROM tab2
----
-2729
64
-761
46
151
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT ALL 15 * - MIN( + - col0 ) FROM tab2
----
1125

skipif mysql # not compatible
query I rowsort label-6166
SELECT ALL 15 * - MIN ( + - col0 ) FROM tab2
----
1125

onlyif mysql # DIV for integer division: 
query I rowsort label-6167
SELECT DISTINCT - col2 + - - col0 DIV 42 - + - col0 AS col2 FROM tab1
----
-44
25
28

skipif mysql # not compatible
query I rowsort label-6167
SELECT DISTINCT - col2 + - - col0 / 42 - + - col0 AS col2 FROM tab1
----
-44
25
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6168
SELECT col2 * col1 + + - col2 FROM tab2 WHERE + + 8 * col0 / CAST( NULL AS SIGNED ) + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6168
SELECT col2 * col1 + + - col2 FROM tab2 WHERE + + 8 * col0 / CAST ( NULL AS INTEGER ) + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6169
SELECT + ( + + CAST( - + COUNT( * ) AS SIGNED ) ) + - MIN( DISTINCT - 12 ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-6169
SELECT + ( + + CAST ( - + COUNT ( * ) AS INTEGER ) ) + - MIN ( DISTINCT - 12 ) FROM tab1 cor0
----
9

query I rowsort
SELECT ALL - 2 + - - 28 FROM tab0 AS cor0
----
26
26
26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT - 96 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-6172
SELECT - 96 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-288

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + col0 ) col0, col0 + + col2 AS col2 FROM tab1
----
51
147
85
144
91
159

query I rowsort
SELECT DISTINCT - 82 * col1 AS col2 FROM tab0
----
-1722
-6642
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-6178
SELECT DISTINCT 48 DIV - col2 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6178
SELECT DISTINCT 48 / - col2 FROM tab2
----
-1
-2
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6180
SELECT 0 AS col1, - COUNT( * ) FROM tab2
----
0
-3

skipif mysql # not compatible
query II rowsort label-6180
SELECT 0 AS col1, - COUNT ( * ) FROM tab2
----
0
-3

query II rowsort
SELECT ALL col0, + 33 FROM tab1
----
51
33
85
33
91
33

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6184
SELECT DISTINCT - CAST( + 74 AS SIGNED ) AS col2 FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-6184
SELECT DISTINCT - CAST ( + 74 AS INTEGER ) AS col2 FROM tab0
----
-74

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6187
SELECT ALL * FROM tab1 WHERE + CAST( + - col1 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6187
SELECT ALL * FROM tab1 WHERE + CAST ( + - col1 AS REAL ) IS NULL
----

query I rowsort
SELECT 29 * - 28 FROM tab1
----
-812
-812
-812

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

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

query I rowsort
SELECT DISTINCT 35 * + col0 AS col0 FROM tab0
----
3045
3395
525

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

skipif mysql # not compatible
query II rowsort label-6191
SELECT DISTINCT COUNT ( * ) AS col0, + 98 AS col2 FROM tab1 AS cor0
----
3
98

query I rowsort
SELECT 67 * - - 28 AS col0 FROM tab0
----
1876
1876
1876

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT - COUNT( * ) + - COUNT( * ) * + - 64 AS col0 FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-6193
SELECT - COUNT ( * ) + - COUNT ( * ) * + - 64 AS col0 FROM tab2
----
189

onlyif mysql # DIV for integer division: 
query I rowsort label-6194
SELECT DISTINCT 23 DIV - 89 + + col0 col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6194
SELECT DISTINCT 23 / - 89 + + col0 col2 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6195
SELECT ALL - + col0 + - col0 DIV - col2 FROM tab0 AS cor0
----
-15
-79
-97

skipif mysql # not compatible
query I rowsort label-6195
SELECT ALL - + col0 + - col0 / - col2 FROM tab0 AS cor0
----
-15
-79
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 50 AND NULL
----

query I rowsort
SELECT ALL + col0 + + 3 FROM tab0 AS cor0
----
100
18
90

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE col2 * + col0 * + col2 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6199
SELECT + + SUM( ALL col1 ), - 51 AS col2 FROM tab0 AS cor0
----
103
-51

skipif mysql # not compatible
query II rowsort label-6199
SELECT + + SUM ( ALL col1 ), - 51 AS col2 FROM tab0 AS cor0
----
103
-51

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * - col1 NOT BETWEEN NULL AND - - col2 + + 26
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT - 77 >= + col0 * col1
----
46
64
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > + 71
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6205
SELECT - col0 DIV + 67 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6205
SELECT - col0 / + 67 FROM tab2
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6206
SELECT col2 AS col0, + CAST( - - 65 AS SIGNED ) FROM tab1
----
59
65
68
65
96
65

skipif mysql # not compatible
query II rowsort label-6206
SELECT col2 AS col0, + CAST ( - - 65 AS INTEGER ) FROM tab1
----
59
65
68
65
96
65

query I rowsort
SELECT DISTINCT + 79 FROM tab1 WHERE NOT col2 IN ( + ( + ( - col0 ) ) )
----
79

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

skipif mysql # not compatible
query I rowsort label-6208
SELECT DISTINCT + 34 + - COUNT ( * ) FROM tab0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT ALL + COUNT( * ) * + 14 AS col1 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-6209
SELECT ALL + COUNT ( * ) * + 14 AS col1 FROM tab1
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-6210
SELECT DISTINCT col2 DIV - col1 DIV col1 * 81 + - col2 + col2 AS col1, - col2 AS col1 FROM tab2
----
0
-23
0
-40
0
-58

skipif mysql # not compatible
query II rowsort label-6210
SELECT DISTINCT col2 / - col1 / col1 * 81 + - col2 + col2 AS col1, - col2 AS col1 FROM tab2
----
0
-23
0
-40
0
-58

query I rowsort
SELECT DISTINCT col0 * - + 0 + col2 AS col1 FROM tab2
----
23
40
58

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN + col0 * - col0 AND + 91
----

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

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

query I rowsort
SELECT DISTINCT + ( - 70 ) AS col2 FROM tab1 AS cor0
----
-70

query I rowsort
SELECT DISTINCT + 96 AS col0 FROM tab0 AS cor0 WHERE NOT col2 + 78 + - - 87 * + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * - 31 + + - 60 FROM tab2 AS cor0
----
-1486
-2044
-2385

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT DISTINCT - MIN( ALL - - col1 ) FROM tab1 cor0 WHERE NULL NOT BETWEEN + col1 + - - col2 AND + 68 * - + 21 + 98 * ( col1 ) + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6219
SELECT DISTINCT - MIN ( ALL - - col1 ) FROM tab1 cor0 WHERE NULL NOT BETWEEN + col1 + - - col2 AND + 68 * - + 21 + 98 * ( col1 ) + - col2
----
NULL

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

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

query I rowsort
SELECT + col1 * + - col1 - - 77 + + col2 * col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1351
-2772
-526

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

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

query I rowsort
SELECT 94 * - - col0 - - - col0 * - + col2 AS col0 FROM tab2 AS cor0
----
11400
5382
8576

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

skipif mysql # not compatible
query II rowsort label-6224
SELECT - COUNT ( * ) AS col1, + COUNT ( * ) * + 38 AS col2 FROM tab2 cor0
----
-3
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6225
SELECT DISTINCT MAX( + col2 ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6225
SELECT DISTINCT MAX ( + col2 ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col0 + - col0 + + 64 AS col0 FROM tab1 AS cor0
----
64
64
64

query I rowsort
SELECT + col2 + - 6 AS col0 FROM tab1 AS cor0
----
53
62
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6228
SELECT ALL - col0, + col1 + - 21 + - CAST( col2 AS SIGNED ) * + col0 + + + 15 AS col2 FROM tab1 AS cor0
----
-51
-4888
-85
-5016
-91
-6147

skipif mysql # not compatible
query II rowsort label-6228
SELECT ALL - col0, + col1 + - 21 + - CAST ( col2 AS INTEGER ) * + col0 + + + 15 AS col2 FROM tab1 AS cor0
----
-51
-4888
-85
-5016
-91
-6147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6229
SELECT - MIN( DISTINCT - + CAST( - col2 AS SIGNED ) ) + 21 FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-6229
SELECT - MIN ( DISTINCT - + CAST ( - col2 AS INTEGER ) ) + 21 FROM tab1
----
-38

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

query I rowsort
SELECT ALL 45 * + col0 * - - col1 FROM tab2
----
105570
221760
226125

query I rowsort
SELECT + col1 + - ( + - 76 ) FROM tab1 WHERE - col2 IS NOT NULL
----
123
81
90

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6234
SELECT DISTINCT 30 * - COUNT( * ), 56 col2 FROM tab1
----
-90
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6234
SELECT DISTINCT 30 * - COUNT ( * ), 56 col2 FROM tab1
----
-90
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6235
SELECT + SUM( - + 80 ) * - CAST( + 41 AS SIGNED ) AS col0 FROM tab1
----
9840

skipif mysql # not compatible
query I rowsort label-6235
SELECT + SUM ( - + 80 ) * - CAST ( + 41 AS INTEGER ) AS col0 FROM tab1
----
9840

query III rowsort
SELECT * FROM tab1 WHERE + - 78 * + 81 * + ( + + 26 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT - COUNT( * ) * - COUNT( DISTINCT - 70 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6237
SELECT - COUNT ( * ) * - COUNT ( DISTINCT - 70 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6238
SELECT DISTINCT + 55 * 59 DIV + col1 + col1 * 38 FROM tab0
----
3118
3283
952

skipif mysql # not compatible
query I rowsort label-6238
SELECT DISTINCT + 55 * 59 / + col1 + col1 * 38 FROM tab0
----
3118
3283
952

onlyif mysql # DIV for integer division: 
query II rowsort label-6239
SELECT + col1 DIV + ( + 91 ) * - 28 * col0 col0, - col1 FROM tab1
----
0
-14
0
-47
0
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6239
SELECT + col1 / + ( + 91 ) * - 28 * col0 col0, - col1 FROM tab1
----
0
-14
0
-47
0
-5

query I rowsort
SELECT - 19 - + col1 + + - col2 * 98 + + col2 + - col0 AS col1 FROM tab2 AS cor0
----
-2347
-4040
-5787

query I rowsort
SELECT ALL - col2 + ( - - 19 ) + - 43 FROM tab2 cor0
----
-47
-64
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT ( - COUNT( * ) ) - - - MIN( ALL 6 ) AS col2 FROM tab0, tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6242
SELECT ( - COUNT ( * ) ) - - - MIN ( ALL 6 ) AS col2 FROM tab0, tab2 AS cor0
----
-15

query II rowsort
SELECT - col2, + col2 AS col1 FROM tab0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT ALL - 98 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT MAX( ALL - + 8 ) AS col1 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-6245
SELECT MAX ( ALL - + 8 ) AS col1 FROM tab0
----
-8

query II rowsort
SELECT + 56, - col1 AS col1 FROM tab0
----
56
-1
56
-21
56
-81

query II rowsort
SELECT + + col2 * - ( + + 55 ), - col0 * + col2 * + - col2 AS col1 FROM tab1 AS cor0
----
-3245
295885
-3740
420784
-5280
470016

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL = + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6249
SELECT - col2 DIV + 19 AS col1 FROM tab1 AS cor0
----
-3
-3
-5

skipif mysql # not compatible
query I rowsort label-6249
SELECT - col2 / + 19 AS col1 FROM tab1 AS cor0
----
-3
-3
-5

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

query I rowsort
SELECT ALL col1 * + + ( 6 ) AS col0 FROM tab2 AS cor0
----
306
402
462

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6252
SELECT - + col2 * - + col0 + - col2 + - CAST( NULL AS SIGNED ) + - 73 + + + col1 AS col0, - col1 AS col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-6252
SELECT - + col2 * - + col0 + - col2 + - CAST ( NULL AS INTEGER ) + - 73 + + + col1 AS col0, - col1 AS col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT + 41 * + - COUNT( * ) FROM tab0 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-6253
SELECT + 41 * + - COUNT ( * ) FROM tab0 AS cor0
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-6254
SELECT DISTINCT + 55 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
2
55

skipif mysql # not compatible
query I rowsort label-6254
SELECT DISTINCT + 55 / + col1 AS col2 FROM tab0 AS cor0
----
0
2
55

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6256
SELECT ALL + ( + + COUNT( * ) ) DIV + + COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6256
SELECT ALL + ( + + COUNT ( * ) ) / + + COUNT ( * ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT DISTINCT - SUM( DISTINCT + - 77 ) FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-6257
SELECT DISTINCT - SUM ( DISTINCT + - 77 ) FROM tab0
----
77

query I rowsort
SELECT ALL col2 + - + 48 - - + col0 + - col1 AS col2 FROM tab2
----
-21
-30
18

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

query I rowsort
SELECT DISTINCT - 61 + - - 41 + + 2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

query I rowsort
SELECT DISTINCT - 20 - + col1 AS col2 FROM tab0 AS cor0
----
-101
-21
-41

query I rowsort
SELECT DISTINCT - 80 + + col0 AS col0 FROM tab1 AS cor0
----
-29
11
5

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

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL - COUNT ( * ) * + 22 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( col2 * + 73 ) AND NULL
----
0

query I rowsort
SELECT ALL - + col2 * col2 + - 93 FROM tab1 cor0
----
-3574
-4717
-9309

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6266
SELECT + COUNT( * ) AS col0, + ( COUNT( + + col1 ) ) - - + 70 AS col2 FROM tab0 AS cor0
----
3
73

skipif mysql # not compatible
query II rowsort label-6266
SELECT + COUNT ( * ) AS col0, + ( COUNT ( + + col1 ) ) - - + 70 AS col2 FROM tab0 AS cor0
----
3
73

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

query I rowsort
SELECT col1 * + col1 - - 83 AS col1 FROM tab0
----
524
6644
84

query I rowsort
SELECT - col2 - + - 15 AS col1 FROM tab0
----
-32
-84
5

query I rowsort
SELECT col1 * - 28 * + col2 - col1 * + 40 AS col2 FROM tab1
----
-38192
-8460
-91368

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

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

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

skipif mysql # not compatible
query I rowsort label-6272
SELECT COUNT ( ALL + col0 ) + COUNT ( * ) FROM tab1
----
6

query I rowsort
SELECT DISTINCT col1 + + 82 AS col2 FROM tab1
----
129
87
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - + col1 col2 FROM tab1
----
37
44
80

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 79 = + col1
----

query II rowsort
SELECT - col1 * col0, + ( col2 ) AS col1 FROM tab0 AS cor0
----
-1215
47
-1827
10
-97
99

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

skipif mysql # not compatible
query I rowsort label-6277
SELECT - - COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab2 cor0
----
1

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

query I rowsort
SELECT ALL - 36 * + col0 FROM tab0 AS cor0
----
-3132
-3492
-540

query I rowsort
SELECT DISTINCT - 7 * - col0 AS col2 FROM tab2 AS cor0
----
322
448
525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6281
SELECT ( col1 ) * + - CAST( - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-6281
SELECT ( col1 ) * + - CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
425
4277
714

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

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

query I rowsort
SELECT - 10 * ( - 76 ) + - col1 FROM tab1 AS cor0
----
713
746
755

query I rowsort
SELECT + + col2 * - - 51 FROM tab0 AS cor0
----
2397
5049
510

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT - SUM( ALL - - col0 ) * - - MAX( - - col0 ) AS col1 FROM tab2
----
-13875

skipif mysql # not compatible
query I rowsort label-6285
SELECT - SUM ( ALL - - col0 ) * - - MAX ( - - col0 ) AS col1 FROM tab2
----
-13875

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT DISTINCT + MAX( DISTINCT + - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-6287
SELECT DISTINCT + MAX ( DISTINCT + - col2 ) FROM tab0
----
-10

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE + col0 IS NOT NULL
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, - ( + col1 ) FROM tab2
----
46
-51
64
-77
75
-67

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

query I rowsort
SELECT col0 + + col1 * + col1 + + 68 AS col2 FROM tab0
----
166
596
6644

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6292
SELECT DISTINCT - - MAX( - - col2 ) DIV - + 6 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT - - MAX ( - - col2 ) / - + 6 FROM tab1 AS cor0
----
-16

query I rowsort
SELECT DISTINCT + col1 * - col0 + + col1 + - ( 6 ) FROM tab0 AS cor0
----
-102
-1140
-1812

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

skipif mysql # not compatible
query I rowsort label-6294
SELECT 2 / + col1 FROM tab0 AS cor0
----
0
0
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6295
SELECT ( CAST( NULL AS SIGNED ) ) + 46 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6295
SELECT ( CAST ( NULL AS INTEGER ) ) + 46 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 + col1 AS col2 FROM tab0 AS cor0 WHERE col1 + - + ( - col1 ) + - col2 IS NOT NULL
----
-98
11
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6297
SELECT - - 62 + - ( + - 10 ) + - COUNT( + - CAST( - - col2 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-6297
SELECT - - 62 + - ( + - 10 ) + - COUNT ( + - CAST ( - - col2 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + + 56, + 29 + + ( + 33 ) col2 FROM tab1 AS cor0
----
103
62
61
62
70
62

query I rowsort
SELECT + col0 + + + col1 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6300
SELECT ALL COUNT( * ) - ( + - CAST( NULL AS DECIMAL ) ) + - 20, SUM( DISTINCT 62 ) AS col1 FROM tab1 AS cor0
----
NULL
62

skipif mysql # not compatible
query II rowsort label-6300
SELECT ALL COUNT ( * ) - ( + - CAST ( NULL AS REAL ) ) + - 20, SUM ( DISTINCT 62 ) AS col1 FROM tab1 AS cor0
----
NULL
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT - + MIN( DISTINCT - col2 ) + 91 FROM tab0 AS cor0
----
190

skipif mysql # not compatible
query I rowsort label-6301
SELECT - + MIN ( DISTINCT - col2 ) + 91 FROM tab0 AS cor0
----
190

query I rowsort
SELECT ALL + 93 + + + col2 * 4 AS col0 FROM tab1 AS cor0
----
329
365
477

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

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

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

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

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

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

query I rowsort
SELECT ALL + 11 - - + 61 FROM tab2
----
72
72
72

query I rowsort
SELECT ALL + 5 * 3 FROM tab1
----
15
15
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6308
SELECT - 44 * - col0, col0 FROM tab0 WHERE NULL BETWEEN - CAST( 32 AS SIGNED ) * + col1 + - + col2 * - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query II rowsort label-6308
SELECT - 44 * - col0, col0 FROM tab0 WHERE NULL BETWEEN - CAST ( 32 AS INTEGER ) * + col1 + - + col2 * - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT DISTINCT SUM( ALL col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-6309
SELECT DISTINCT SUM ( ALL col2 ) AS col1 FROM tab0
----
156

query I rowsort
SELECT DISTINCT - + 67 FROM tab2 AS cor0
----
-67

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

query I rowsort
SELECT ALL col2 * - - 55 FROM tab1 AS cor0
----
3245
3740
5280

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

skipif mysql # not compatible
query I rowsort label-6313
SELECT + COUNT ( - 22 ) FROM tab1 cor0
----
3

query I rowsort
SELECT + 47 * - 76 AS col0 FROM tab2 AS cor0
----
-3572
-3572
-3572

query II rowsort
SELECT DISTINCT + - ( + ( - col0 ) ), - 82 * col0 AS col1 FROM tab1 AS cor0
----
51
-4182
85
-6970
91
-7462

query III rowsort
SELECT ALL * FROM tab0 WHERE - 71 NOT BETWEEN - + col1 AND + - 20 * - col1
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT + - 80 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 83 IS NOT NULL
----

query I rowsort
SELECT ALL - - ( + 57 ) AS col1 FROM tab2 WHERE NOT col1 < - col1
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT + 21 * - COUNT( * ) * + 98 AS col0 FROM tab2 AS cor0
----
-6174

skipif mysql # not compatible
query I rowsort label-6319
SELECT + 21 * - COUNT ( * ) * + 98 AS col0 FROM tab2 AS cor0
----
-6174

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT 34 * + MAX( ALL - - col2 ) AS col2 FROM tab0 AS cor0
----
3366

skipif mysql # not compatible
query I rowsort label-6322
SELECT 34 * + MAX ( ALL - - col2 ) AS col2 FROM tab0 AS cor0
----
3366

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6325
SELECT ALL + COUNT( ALL col0 ) + + MIN( DISTINCT col0 ) DIV + + COUNT( * ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL + COUNT ( ALL col0 ) + + MIN ( DISTINCT col0 ) / + + COUNT ( * ) FROM tab2
----
18

query I rowsort
SELECT DISTINCT col0 * - - col0 AS col1 FROM tab0
----
225
7569
9409

query I rowsort
SELECT DISTINCT + col2 + 77 AS col2 FROM tab1
----
136
145
173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col0 * + + 45 col0 FROM tab1
----
19125
192465
32130

query I rowsort
SELECT DISTINCT - 29 + 72 FROM tab0 AS cor0
----
43

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6332
SELECT ALL 50 DIV + col1 AS col0 FROM tab1
----
1
10
3

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL 50 / + col1 AS col0 FROM tab1
----
1
10
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT ALL + MIN( DISTINCT col2 ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-6333
SELECT ALL + MIN ( DISTINCT col2 ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
56

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 <> + col1
----

query I rowsort
SELECT ALL - + col2 - - - col1 AS col2 FROM tab2 AS cor0
----
-117
-125
-74

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6336
SELECT - COUNT ( * ) - - COUNT ( * ) col2 FROM tab2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT + MAX( + + col1 ) - COUNT( * ) - + 73 * SUM( - - ( col0 ) ) * COUNT( * ) AS col2 FROM tab2
----
-40441

skipif mysql # not compatible
query I rowsort label-6338
SELECT + MAX ( + + col1 ) - COUNT ( * ) - + 73 * SUM ( - - ( col0 ) ) * COUNT ( * ) AS col2 FROM tab2
----
-40441

query I rowsort
SELECT - col1 + - col0 + + 19 + + - col0 AS col0 FROM tab2
----
-124
-186
-198

query I rowsort
SELECT DISTINCT + ( 80 ) - + col2 AS col2 FROM tab0
----
-19
33
70

onlyif mysql # DIV for integer division: 
query I rowsort label-6341
SELECT DISTINCT col1 DIV - 3 FROM tab2
----
-17
-22
-25

skipif mysql # not compatible
query I rowsort label-6341
SELECT DISTINCT col1 / - 3 FROM tab2
----
-17
-22
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 * col2 col0 FROM tab0
----
-3149
-6633
-670

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6344
SELECT DISTINCT CAST( - - 69 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT CAST ( - - 69 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
69

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6346
SELECT ALL - 45, SUM( - - col2 ) + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( col1 ) IS NULL
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-6346
SELECT ALL - 45, SUM ( - - col2 ) + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( col1 ) IS NULL
----
-45
NULL

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

skipif mysql # not compatible
query I rowsort label-6347
SELECT + COUNT ( * ) / - COUNT ( * ) FROM tab1, tab1 AS cor0
----
-1

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

query I rowsort
SELECT + 67 + - - 82 + + 57 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2481ed4939c646a45fec7d49411597df

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6350
SELECT ALL CAST( + + 6 AS SIGNED ) col2 FROM tab2 AS cor0
----
6
6
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6350
SELECT ALL CAST ( + + 6 AS INTEGER ) col2 FROM tab2 AS cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT DISTINCT + COUNT( * ) * - 80 - - 58 FROM tab1 AS cor0
----
-182

skipif mysql # not compatible
query I rowsort label-6351
SELECT DISTINCT + COUNT ( * ) * - 80 - - 58 FROM tab1 AS cor0
----
-182

query I rowsort
SELECT + ( + col2 ) * - + 44 * + col0 AS col0 FROM tab1 cor0
----
-215424
-220660
-272272

query I rowsort
SELECT DISTINCT + - 76 AS col1 FROM tab1 AS cor0
----
-76

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6355
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, 86 * col2 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6355
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, 86 * col2 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL

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

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

query I rowsort
SELECT - ( - - col2 ) FROM tab1 WHERE + col2 * col2 * + 50 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + + + col0 AS col0 FROM tab0 WHERE NOT - col2 IS NULL
----
-66
66
96

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

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

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

skipif mysql # not compatible
query I rowsort label-6361
SELECT + SUM ( DISTINCT - - col1 ) FROM tab2 cor0
----
195

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

query I rowsort
SELECT + 96 * 59 + + - 99 + + col0 FROM tab1 AS cor0
----
5616
5650
5656

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT MIN( 24 ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-6365
SELECT MIN ( 24 ) FROM tab0 AS cor0
----
24

query I rowsort
SELECT DISTINCT - 49 * col2 - + col0 FROM tab1
----
-2976
-3423
-4755

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

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

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

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

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

query I rowsort
SELECT - 67 + + 77 * + col0 FROM tab0 AS cor0
----
1088
6632
7402

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6371
SELECT DISTINCT 91 * CAST( NULL AS DECIMAL ) * 37 * + ( + + 63 ) + + ( + col2 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6371
SELECT DISTINCT 91 * CAST ( NULL AS REAL ) * 37 * + ( + + 63 ) + + ( + col2 ) AS col2 FROM tab1 AS cor0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6372
SELECT + COUNT ( ALL 64 ) FROM tab1 cor0
----
3

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

skipif mysql # not compatible
query I rowsort label-6373
SELECT ALL - MIN ( col0 ) * - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0 cor0
----
42

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6375
SELECT + - col1 FROM tab1 AS cor0 WHERE NOT 36 + - CAST( + col0 AS SIGNED ) BETWEEN - 16 AND NULL
----
-47
-5

skipif mysql # not compatible
query I rowsort label-6375
SELECT + - col1 FROM tab1 AS cor0 WHERE NOT 36 + - CAST ( + col0 AS INTEGER ) BETWEEN - 16 AND NULL
----
-47
-5

query II rowsort
SELECT ALL col0 * + - ( 14 ) AS col1, col2 FROM tab1
----
-1190
59
-1274
68
-714
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE NOT - col1 * - 21 + + col2 * 89 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6378
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col1 * - 21 + + col2 * 89 IS NOT NULL
----
0

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

query I rowsort
SELECT col0 * + 73 AS col0 FROM tab2
----
3358
4672
5475

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT + MAX( DISTINCT col2 ) * + 63 * - 43 FROM tab2
----
-157122

skipif mysql # not compatible
query I rowsort label-6381
SELECT + MAX ( DISTINCT col2 ) * + 63 * - 43 FROM tab2
----
-157122

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 25 col1, - col1 * col2 * + 17 AS col1 FROM tab0 AS cor0
----
25
-1683
25
-3570
25
-64719

query II rowsort
SELECT col1, - col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

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

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

query I rowsort
SELECT ALL ( - col1 ) FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT - COUNT( * ) FROM tab1 WHERE NOT 61 NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6388
SELECT - COUNT ( * ) FROM tab1 WHERE NOT 61 NOT BETWEEN ( NULL ) AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6389
SELECT DISTINCT + col1 DIV col1 FROM tab1 WHERE NULL IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-6389
SELECT DISTINCT + col1 / col1 FROM tab1 WHERE NULL IS NULL
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 <> col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT NULL IN ( + 35 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6392
SELECT DISTINCT col0 - - 29 DIV - col1 FROM tab0
----
15
68
86

skipif mysql # not compatible
query I rowsort label-6392
SELECT DISTINCT col0 - - 29 / - col1 FROM tab0
----
15
68
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6393
SELECT + ( COUNT( * ) ) + - COUNT( * ) DIV 23 AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6393
SELECT + ( COUNT ( * ) ) + - COUNT ( * ) / 23 AS col0 FROM tab2
----
3

query I rowsort
SELECT col2 / 52 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( col0 )
----

query I rowsort
SELECT + 0 * 34 FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT ( 85 ) * - 20 + - col0 FROM tab1
----
-1751
-1785
-1791

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT + MIN( - col2 ) + + COUNT( * ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-6399
SELECT + MIN ( - col2 ) + + COUNT ( * ) FROM tab0
----
-96

query I rowsort
SELECT DISTINCT - 4 * + col1 FROM tab0
----
-324
-4
-84

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

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

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

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NOT - col1 IS NULL
----
46
64
75

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT col0 * + col2 <= + col1
----
-23
-40
-58

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6407
SELECT + 22 + - 30 DIV + col1 FROM tab2
----
22
22
22

skipif mysql # not compatible
query I rowsort label-6407
SELECT + 22 + - 30 / + col1 FROM tab2
----
22
22
22

query I rowsort
SELECT DISTINCT - col0 * + 64 FROM tab1
----
-3264
-5440
-5824

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 2 - + 42 ) >= 39
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 * - col2 + col1 AS col0 FROM tab2
----
1109
2637
4417

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

query I rowsort
SELECT ALL col0 - - ( col0 ) FROM tab1 cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT DISTINCT 42 * COUNT( ALL - col2 * - col1 ) FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-6414
SELECT DISTINCT 42 * COUNT ( ALL - col2 * - col1 ) FROM tab0 AS cor0
----
126

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6416
SELECT DISTINCT col1 DIV - 76 FROM tab0 AS cor0 WHERE ( col2 ) * col1 NOT BETWEEN NULL AND + 65
----
-1
0

skipif mysql # not compatible
query I rowsort label-6416
SELECT DISTINCT col1 / - 76 FROM tab0 AS cor0 WHERE ( col2 ) * col1 NOT BETWEEN NULL AND + 65
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6417
SELECT DISTINCT 8 - 55 * - CAST( 28 + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1603
2703
6003

skipif mysql # not compatible
query I rowsort label-6417
SELECT DISTINCT 8 - 55 * - CAST ( 28 + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1603
2703
6003

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT COUNT( * ) * 69 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-6418
SELECT COUNT ( * ) * 69 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
210

query I rowsort
SELECT DISTINCT + col2 * col2 - + col0 AS col2 FROM tab2
----
1536
3289
483

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IN ( - 17 * 99 )
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 WHERE ( 67 ) NOT IN ( 22 )
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT - 2 FROM tab1 AS cor0 WHERE NOT - col1 < col2
----

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT col1 + + 26 >= 29
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + + 78 NOT IN ( 62 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + + 45 BETWEEN ( NULL ) AND + col1 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 51 + col1 BETWEEN ( - 68 ) AND ( 64 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 98 * + col2 FROM tab0 AS cor0
----
-4606
-9702
-980

query I rowsort
SELECT + col1 * + col0 + 25 FROM tab2 WHERE NOT ( col2 - col2 * - col1 ) IS NULL OR 91 NOT BETWEEN NULL AND 29
----
2371
4953
5050

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

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

query I rowsort
SELECT DISTINCT 41 FROM tab2 WHERE NOT ( NULL ) > 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT DISTINCT - + SUM( + col2 ) * - 5 AS col1 FROM tab1 AS cor0
----
1115

skipif mysql # not compatible
query I rowsort label-6432
SELECT DISTINCT - + SUM ( + col2 ) * - 5 AS col1 FROM tab1 AS cor0
----
1115

onlyif mysql # DIV for integer division: 
query I rowsort label-6433
SELECT ALL - ( + col2 ) DIV col1 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL - ( + col2 ) / col1 FROM tab0 AS cor0
----
-99
0
0

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

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

query I rowsort
SELECT + 66 * - + col2 FROM tab0 AS cor0
----
-3102
-6534
-660

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

query I rowsort
SELECT 58 + + 57 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8ea29c11e2d920a09e8656cafe5a9642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6439
SELECT - col2 DIV - CAST( - 59 AS SIGNED ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6439
SELECT - col2 / - CAST ( - 59 AS INTEGER ) FROM tab1
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 70 ) >= + col1
----
87
21
10
97
1
99

query II rowsort
SELECT + 35, col2 * + col2 AS col1 FROM tab1 AS cor0
----
35
3481
35
4624
35
9216

query I rowsort
SELECT ALL - col2 FROM tab1 cor0 WHERE NOT NULL >= col2 / + ( - col1 )
----

query I rowsort
SELECT + - col1 * ( + col0 ) + + ( + 95 ) FROM tab0 AS cor0
----
-1120
-1732
-2

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT 79 + 79 + + SUM( ALL 18 ) FROM tab2 AS cor0
----
212

skipif mysql # not compatible
query I rowsort label-6445
SELECT 79 + 79 + + SUM ( ALL 18 ) FROM tab2 AS cor0
----
212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6446
SELECT - col1 + - - CAST( col1 AS SIGNED ) FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6446
SELECT - col1 + - - CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT DISTINCT 8 + COUNT( - col0 ) AS col2 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-6447
SELECT DISTINCT 8 + COUNT ( - col0 ) AS col2 FROM tab1 AS cor0
----
11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN + ( + 71 ) AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN + ( + 71 ) AND - col2
----
0

query I rowsort
SELECT DISTINCT col0 + + + col1 FROM tab0 AS cor0
----
108
96
98

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

query I rowsort
SELECT - 44 * col2 + + 94 + col0 * col1 FROM tab0
----
-4165
-759
1481

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT DISTINCT SUM( DISTINCT 41 ) FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-6455
SELECT DISTINCT SUM ( DISTINCT 41 ) FROM tab0
----
41

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

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

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

query I rowsort
SELECT ALL 56 - col1 + - 96 AS col2 FROM tab1 AS cor0
----
-45
-54
-87

query I rowsort
SELECT ALL col2 + - + col0 + - col1 FROM tab2 cor0
----
-101
-74
-84

query I rowsort
SELECT - - 77 * - - col2 - - col0 AS col2 FROM tab0 AS cor0
----
3634
7720
857

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6461
SELECT - ( + + CAST( - 23 AS SIGNED ) ) + + 87 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ebfbd032a0a7b9ce9f54a2516c43134d

skipif mysql # not compatible
query I rowsort label-6461
SELECT - ( + + CAST ( - 23 AS INTEGER ) ) + + 87 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ebfbd032a0a7b9ce9f54a2516c43134d

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT + + 0 NOT BETWEEN NULL AND - col1 - + 9
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6463
SELECT - ( - MAX( DISTINCT 87 ) ) DIV SUM( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6463
SELECT - ( - MAX ( DISTINCT 87 ) ) / SUM ( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6464
SELECT MIN( - CAST( - col1 AS SIGNED ) ) col2 FROM tab2 cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6464
SELECT MIN ( - CAST ( - col1 AS INTEGER ) ) col2 FROM tab2 cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * - col2 - - - 92, 41 col0 FROM tab0 AS cor0
----
-797
41
-962
41
-9695
41

query I rowsort
SELECT + col2 / col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 IN ( - + col1, 75 * + + col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT MAX( - col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-59

skipif mysql # not compatible
query I rowsort label-6468
SELECT MAX ( - col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-59

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 51 * + col2 AND + 5 + + - col1 * - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 * col2 + - col2 + + col0 / 28 * - ( 19 - - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + ( + 11 ) - + ( - col1 ) + - col0 * 44 ) <> NULL
----

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

skipif mysql # not compatible
query I rowsort label-6472
SELECT DISTINCT + 40 * + COUNT ( * ) FROM tab0
----
120

onlyif mysql # DIV for integer division: 
query II rowsort label-6473
SELECT - - 48, + 20 DIV + 82 * ( + - 45 ) AS col1 FROM tab0 AS cor0
----
48
0
48
0
48
0

skipif mysql # not compatible
query II rowsort label-6473
SELECT - - 48, + 20 / + 82 * ( + - 45 ) AS col1 FROM tab0 AS cor0
----
48
0
48
0
48
0

query I rowsort
SELECT + + ( + - 6 ) FROM tab0 cor0 WHERE NOT col2 / + col2 IS NULL
----
-6
-6
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6475
SELECT + + col2 AS col2 FROM tab1 WHERE - CAST( + - CAST( + - col1 AS SIGNED ) AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-6475
SELECT + + col2 AS col2 FROM tab1 WHERE - CAST ( + - CAST ( + - col1 AS INTEGER ) AS INTEGER ) = NULL
----

query I rowsort
SELECT - 61 - col0 AS col2 FROM tab2 AS cor0 WHERE 40 BETWEEN ( - + col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT - - 40 * col2 * + col1 FROM tab1 cor0
----
11800
127840
53760

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

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

skipif mysql # not compatible
query I rowsort label-6479
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE - col2 > + col2
----
0

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

query I rowsort
SELECT - col0 - + col2 * - + 75 FROM tab2
----
1679
2936
4275

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

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

query I rowsort
SELECT DISTINCT + 40 * 19 AS col0 FROM tab2
----
760

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6484
SELECT 34 DIV col2 * - - CAST( 4 AS SIGNED ) - col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-6484
SELECT 34 / col2 * - - CAST ( 4 AS INTEGER ) - col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT - 17 * - 76 - - + 55 FROM tab0
----
1347
1347
1347

query III rowsort
SELECT * FROM tab1 WHERE NULL <> + col0 * - col0 + - - 35 - col2
----

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE - col0 / - col1 + - 98 < NULL
----

query I rowsort
SELECT + + 49 * + + col2 * col1 AS col1 FROM tab0 WHERE col2 + - - 13 + - 70 NOT BETWEEN + 9 AND NULL
----
10290
186543

query I rowsort
SELECT col1 + - col2 * - + col1 AS col0 FROM tab1
----
1358
300
3243

query I rowsort
SELECT - col1 + 9 AS col0 FROM tab0 AS cor0
----
-12
-72
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT ALL - + 6 + + + COUNT( * ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL - + 6 + + + COUNT ( * ) FROM tab0 cor0
----
-3

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

query II rowsort
SELECT + + col0, col1 AS col2 FROM tab2 AS cor0
----
46
51
64
77
75
67

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

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

query I rowsort
SELECT DISTINCT - - 0 AS col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 50 + + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT ALL + 12 * - ( ( COUNT( * ) ) ) + - MAX( - col1 ) col1 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6498
SELECT ALL + 12 * - ( ( COUNT ( * ) ) ) + - MAX ( - col1 ) col1 FROM tab2 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT - MIN( DISTINCT 67 ) AS col0 FROM tab1 cor0
----
-67

skipif mysql # not compatible
query I rowsort label-6499
SELECT - MIN ( DISTINCT 67 ) AS col0 FROM tab1 cor0
----
-67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT 30 * - COUNT( * ) FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-6501
SELECT 30 * - COUNT ( * ) FROM tab1 AS cor0
----
-90

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6503
SELECT DISTINCT - ( + COUNT( + - col1 ) ) AS col2, CAST( - 97 AS SIGNED ) AS col1 FROM tab2
----
-3
-97

skipif mysql # not compatible
query II rowsort label-6503
SELECT DISTINCT - ( + COUNT ( + - col1 ) ) AS col2, CAST ( - 97 AS INTEGER ) AS col1 FROM tab2
----
-3
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 >= + - col2
----
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND - col0
----

query I rowsort
SELECT col2 * + 45 * + 62 FROM tab1 WHERE NOT ( - - col2 + + - col1 ) BETWEEN col1 AND + col0
----
189720
267840

query I rowsort
SELECT DISTINCT - 80 * + col2 AS col1 FROM tab2
----
-1840
-3200
-4640

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 92 + - col0 * col0 - - ( - col1 ) + + + col1 NOT BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6509
SELECT - + CAST( + + col0 AS SIGNED ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6509
SELECT - + CAST ( + + col0 AS INTEGER ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - col2 * - 63 + - 70 col0 FROM tab0 AS cor0
----
-13300
-239911
-6307

query II rowsort
SELECT DISTINCT + col1 AS col1, - col0 AS col1 FROM tab0
----
1
-97
21
-87
81
-15

query I rowsort
SELECT + 76 FROM tab2 WHERE + col0 + + col1 + + - col1 * + col0 NOT BETWEEN + col2 AND - 2
----
76
76
76

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

skipif mysql # not compatible
query I rowsort label-6513
SELECT DISTINCT MIN ( ALL + + 24 ) + 51 AS col1 FROM tab2 AS cor0
----
75

query I rowsort
SELECT - col0 + + - col2 * + + col1 FROM tab0 AS cor0
----
-196
-297
-3822

query I rowsort
SELECT DISTINCT 95 + + + 36 * col1 + - col0 AS col1 FROM tab1 AS cor0
----
1696
190
548

onlyif mysql # DIV for integer division: 
query I rowsort label-6516
SELECT - 70 + - col0 DIV - - col2 FROM tab1 AS cor0
----
-70
-71
-71

skipif mysql # not compatible
query I rowsort label-6516
SELECT - 70 + - col0 / - - col2 FROM tab1 AS cor0
----
-70
-71
-71

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

query I rowsort
SELECT DISTINCT - 94 * col2 - - col1 + + col2 + 89 AS col2 FROM tab2 AS cor0
----
-1999
-3554
-5238

query I rowsort
SELECT ALL - col2 * + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 96 * - col0 > NULL
----

query I rowsort
SELECT ALL ( 44 ) * + 26 * - 27 - - 49 FROM tab1
----
-30839
-30839
-30839

query II rowsort
SELECT ALL + 74 * col0 AS col1, - col2 AS col0 FROM tab0
----
1110
-47
6438
-10
7178
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL > NULL )
----

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

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

query I rowsort
SELECT ALL 40 + + col2 FROM tab0
----
139
50
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + ( - col0 ) * col1 col2, col0 AS col0 FROM tab0 AS cor0
----
1215
15
1827
87
97
97

query I rowsort
SELECT - 76 * col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( - ( col0 ) * 49 * 9 - + col2 + + ( - col2 ) ) BETWEEN - 40 + - + 38 AND NULL
----
-4484
-5168
-7296

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6528
SELECT DISTINCT + CAST( + - col0 AS DECIMAL ) FROM tab0 WHERE NOT 74 * - 88 + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6528
SELECT DISTINCT + CAST ( + - col0 AS REAL ) FROM tab0 WHERE NOT 74 * - 88 + col1 IS NOT NULL
----

query I rowsort
SELECT - col0 * - 70 FROM tab0
----
1050
6090
6790

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

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

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

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

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

query I rowsort
SELECT + + 19 FROM tab1 cor0
----
19
19
19

query I rowsort
SELECT DISTINCT ( 27 ) AS col0 FROM tab0 AS cor0
----
27

query II rowsort
SELECT - 76 AS col1, - col2 AS col1 FROM tab0 AS cor0
----
-76
-10
-76
-47
-76
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-6536
SELECT - 42 DIV + col0 * - + col1 * - col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6536
SELECT - 42 / + col0 * - + col1 * - col1 FROM tab1 AS cor0
----
0
0
0

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6541
SELECT * FROM tab1 WHERE NOT - + col0 + CAST( - 86 AS SIGNED ) - - col1 * 56 BETWEEN - col1 + + 70 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6541
SELECT * FROM tab1 WHERE NOT - + col0 + CAST ( - 86 AS INTEGER ) - - col1 * 56 BETWEEN - col1 + + 70 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

query I rowsort
SELECT ALL - 71 + - 67 FROM tab2 AS cor0
----
-138
-138
-138

onlyif mysql # DIV for integer division: 
query II rowsort label-6547
SELECT ALL - - 50 - + ( - + 96 ) AS col0, col0 DIV col1 + - col0 FROM tab1 cor0
----
146
-48
146
-68
146
-90

skipif mysql # not compatible
query II rowsort label-6547
SELECT ALL - - 50 - + ( - + 96 ) AS col0, col0 / col1 + - col0 FROM tab1 cor0
----
146
-48
146
-68
146
-90

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

query II rowsort
SELECT + col2 * col1 AS col0, col1 + - ( + ( 95 ) ) - col1 AS col0 FROM tab2 cor0 WHERE NULL NOT BETWEEN - 48 AND - col2
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6552
SELECT ALL col0 - - CAST( + col2 AS SIGNED ) FROM tab0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-6552
SELECT ALL col0 - - CAST ( + col2 AS INTEGER ) FROM tab0
----
196
62
97

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

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

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

skipif mysql # not compatible
query I rowsort label-6554
SELECT DISTINCT 23 - ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - 36 - 46 FROM tab2
----
-82

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6559
SELECT DISTINCT - col0 + - - 7 + 74 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

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

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

query I rowsort
SELECT DISTINCT - col2 * - 72 AS col1 FROM tab0 cor0
----
3384
7128
720

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

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

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

query I rowsort
SELECT ALL + ( 40 ) FROM tab1
----
40
40
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 / 38 NOT BETWEEN + 19 AND NULL
----

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

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

query I rowsort
SELECT ALL + - 13 * - - col1 + col0 + + + 76 FROM tab0 AS cor0
----
-110
-962
160

onlyif mysql # DIV for integer division: 
query I rowsort label-6568
SELECT + col2 DIV 30 AS col1 FROM tab1 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6568
SELECT + col2 / 30 AS col1 FROM tab1 AS cor0
----
1
2
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6569
SELECT DISTINCT + 33 DIV 3 * + + 5 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-6569
SELECT DISTINCT + 33 / 3 * + + 5 FROM tab0 AS cor0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6570
SELECT + 11 / - - MAX( DISTINCT - + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6570
SELECT + 11 / - - MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

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

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

query II rowsort
SELECT + + col0 * - - col0 AS col2, + col0 AS col1 FROM tab1 AS cor0
----
2601
51
7225
85
8281
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6573
SELECT 7 + 40 DIV + col1 + - + ( col1 ) AS col2 FROM tab2
----
-44
-60
-70

skipif mysql # not compatible
query I rowsort label-6573
SELECT 7 + 40 / + col1 + - + ( col1 ) AS col2 FROM tab2
----
-44
-60
-70

onlyif mysql # DIV for integer division: 
query II rowsort label-6574
SELECT 15 + + + 97 + - col1 DIV + 93, col2 col0 FROM tab0
----
112
10
112
47
112
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6574
SELECT 15 + + + 97 + - col1 / + 93, col2 col0 FROM tab0
----
112
10
112
47
112
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( 96, col2, - 26, + col1 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT DISTINCT - COUNT( * ) * - + COUNT( * ) FROM tab1, tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6576
SELECT DISTINCT - COUNT ( * ) * - + COUNT ( * ) FROM tab1, tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT ALL + 35 + - 47 * 12 * + COUNT( * ) AS col0 FROM tab0
----
-1657

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL + 35 + - 47 * 12 * + COUNT ( * ) AS col0 FROM tab0
----
-1657

query I rowsort
SELECT ALL - col2 + + + col2 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6579
SELECT + - 28 * + 95 - + + COUNT( * ) col0, - 24 + - 56 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-2663
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6579
SELECT + - 28 * + 95 - + + COUNT ( * ) col0, - 24 + - 56 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-2663
-83

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6582
SELECT ALL COUNT( * ) DIV - - 9 - - COUNT( * ) + + 41 FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL COUNT ( * ) / - - 9 - - COUNT ( * ) + + 41 FROM tab2 AS cor0
----
44

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 28 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6587
SELECT + col0 + - col1 DIV - 14 FROM tab1 AS cor0
----
52
85
94

skipif mysql # not compatible
query I rowsort label-6587
SELECT + col0 + - col1 / - 14 FROM tab1 AS cor0
----
52
85
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6588
SELECT DISTINCT + + 70 + + col0 AS col2, + col0 + + CAST( NULL AS SIGNED ) + - 88 FROM tab0 AS cor0
----
157
NULL
167
NULL
85
NULL

skipif mysql # not compatible
query II rowsort label-6588
SELECT DISTINCT + + 70 + + col0 AS col2, + col0 + + CAST ( NULL AS INTEGER ) + - 88 FROM tab0 AS cor0
----
157
NULL
167
NULL
85
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT - 32 + ( - - COUNT( - col2 ) ) + + - MIN( ALL + + 4 ) * ( 78 ) AS col1 FROM tab1 AS cor0
----
-341

skipif mysql # not compatible
query I rowsort label-6589
SELECT - 32 + ( - - COUNT ( - col2 ) ) + + - MIN ( ALL + + 4 ) * ( 78 ) AS col1 FROM tab1 AS cor0
----
-341

query I rowsort
SELECT - 79 FROM tab0 AS cor0 WHERE NULL <> + 48
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6592
SELECT ALL - ( - col2 ) * - CAST( col2 AS SIGNED ) - col1 AS col0 FROM tab2 AS cor0
----
-1677
-3431
-580

skipif mysql # not compatible
query I rowsort label-6592
SELECT ALL - ( - col2 ) * - CAST ( col2 AS INTEGER ) - col1 AS col0 FROM tab2 AS cor0
----
-1677
-3431
-580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 45 col0 FROM tab1 AS cor0
----
-14
-23
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6594
SELECT ALL + COUNT( * ) DIV 29 + - 93 FROM tab2 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL + COUNT ( * ) / 29 + - 93 FROM tab2 cor0
----
-93

query II rowsort
SELECT DISTINCT ( - - col0 ) AS col0, - col2 + - col1 + + col1 * + col0 AS col2 FROM tab1 AS cor0
----
51
604
85
361
91
4162

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

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

skipif mysql # not compatible
query I rowsort label-6597
SELECT COUNT ( ALL col1 ) FROM tab0 AS cor0
----
3

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 > NULL
----

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6605
SELECT ALL + ( + col1 ) DIV - - col2 AS col1 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL + ( + col1 ) / - - col2 AS col1 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6606
SELECT - + ( - + 10 ) * - COUNT( - 80 ) + + AVG ( DISTINCT - + 91 ) + COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN - CAST( NULL AS SIGNED ) AND 34
----
NULL

skipif mysql # not compatible
query I rowsort label-6606
SELECT - + ( - + 10 ) * - COUNT ( - 80 ) + + AVG ( DISTINCT - + 91 ) + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN - CAST ( NULL AS INTEGER ) AND 34
----
NULL

query I rowsort
SELECT DISTINCT 86 - - + 71 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT + 13 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT ALL col0 + 52 FROM tab1
----
103
137
143

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

query II rowsort
SELECT 64 AS col0, col2 * + col2 FROM tab0 AS cor0
----
64
100
64
2209
64
9801

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 - + col1 * - - 57 * + - 85 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT + MIN( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NOT - 8 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6614
SELECT + MIN ( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NOT - 8 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + - col0 + + col2 - - - 12 + 21 * - col0 + - col1 * - 55 + - col2 * + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT 35 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-6616
SELECT ALL - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 cor0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6619
SELECT * FROM tab1 WHERE col0 <= - 14 + - CAST( - col0 AS SIGNED ) + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6619
SELECT * FROM tab1 WHERE col0 <= - 14 + - CAST ( - col0 AS INTEGER ) + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + 86 * + 74 AS col1 FROM tab0
----
299108
630036
63640

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT + MAX( + 22 ) AS col1 FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-6621
SELECT + MAX ( + 22 ) AS col1 FROM tab2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT DISTINCT - 74 * - MIN( + col1 ) AS col2 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-6622
SELECT DISTINCT - 74 * - MIN ( + col1 ) AS col2 FROM tab0
----
74

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

query I rowsort
SELECT - ( + - col1 ) * - col0 + - 41 + + 87 + + col0 + - - 99 FROM tab0
----
-1055
-1595
145

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

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NULL BETWEEN col1 AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL > + 7 OR NULL IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6628
SELECT ALL 19 + + col1 + - 25 * - col0 * - CAST( - + col1 AS SIGNED ) * - - col0 AS col0 FROM tab2 AS cor0
----
2697970
7884896
9421961

skipif mysql # not compatible
query I rowsort label-6628
SELECT ALL 19 + + col1 + - 25 * - col0 * - CAST ( - + col1 AS INTEGER ) * - - col0 AS col0 FROM tab2 AS cor0
----
2697970
7884896
9421961

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

query II rowsort
SELECT + 96, 7 AS col2 FROM tab2 AS cor0
----
96
7
96
7
96
7

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

query I rowsort
SELECT + col2 * + 29 * - col1 AS col0 FROM tab2
----
-112694
-34017
-89320

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 + + 54 NOT BETWEEN NULL AND + + 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT ( + SUM( ALL 5 ) ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-6634
SELECT ( + SUM ( ALL 5 ) ) AS col2 FROM tab0
----
15

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

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

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

query I rowsort
SELECT DISTINCT + 31 * - col2 AS col0 FROM tab1
----
-1829
-2108
-2976

query II rowsort
SELECT DISTINCT col1, + ( - col0 ) + col2 + col0 FROM tab0
----
1
99
21
10
81
47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT - + COUNT( * ) * + 89 AS col2 FROM tab2 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-6640
SELECT - + COUNT ( * ) * + 89 AS col2 FROM tab2 AS cor0
----
-267

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT + - ( 23 ) * MAX( DISTINCT + col1 ) FROM tab2 cor0
----
-1771

skipif mysql # not compatible
query I rowsort label-6642
SELECT + - ( 23 ) * MAX ( DISTINCT + col1 ) FROM tab2 cor0
----
-1771

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE ( + col2 * + col1 + - 8 + col2 BETWEEN + 83 AND - - col0 - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 49 + - - 30 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6645
SELECT - col2 DIV 91 + - - col0 + + - ( + col0 ) AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6645
SELECT - col2 / 91 + - - col0 + + - ( + col0 ) AS col2 FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6647
SELECT ALL * FROM tab0 cor0 WHERE NOT - 22 / CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6647
SELECT ALL * FROM tab0 cor0 WHERE NOT - 22 / CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 99 + - col1 AS col1, col2 * 99 FROM tab1
----
52
6732
85
9504
94
5841

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

skipif mysql # not compatible
query III rowsort label-6649
SELECT ALL * FROM tab0 WHERE - CAST ( + - 15 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL col1 * - 56 AS col2 FROM tab1
----
-2632
-280
-784

query I rowsort
SELECT DISTINCT + col2 * + + col0 + 90 AS col1 FROM tab0
----
795
960
9693

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

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

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

query I rowsort
SELECT DISTINCT + col0 + 58 + + col0 FROM tab1 AS cor0
----
160
228
240

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT ALL + 15 + 94 - - 89 * - MAX( DISTINCT - 3 ) AS col0 FROM tab0 AS cor0
----
376

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL + 15 + 94 - - 89 * - MAX ( DISTINCT - 3 ) AS col0 FROM tab0 AS cor0
----
376

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6657
SELECT COUNT( - col2 ) DIV + 98 - - + MIN( ALL 72 ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-6657
SELECT COUNT ( - col2 ) / + 98 - - + MIN ( ALL 72 ) FROM tab1 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT ALL - - COUNT( * ) + 36 * - 10 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
-351

skipif mysql # not compatible
query I rowsort label-6658
SELECT ALL - - COUNT ( * ) + 36 * - 10 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
-351

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT ( + + MIN( - 44 ) ) * - MAX( + - col0 ) + - + 35 FROM tab0
----
-695

skipif mysql # not compatible
query I rowsort label-6659
SELECT ( + + MIN ( - 44 ) ) * - MAX ( + - col0 ) + - + 35 FROM tab0
----
-695

query I rowsort
SELECT ALL ( + 28 ) AS col0 FROM tab0 AS cor0
----
28
28
28

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6663
SELECT + COUNT ( - 70 ) AS col0 FROM tab0 AS cor0
----
3

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

query I rowsort
SELECT - - 1 FROM tab0 AS cor0 WHERE NOT col2 > NULL
----

query I rowsort
SELECT + + ( - col1 ) * + + 67 FROM tab0 AS cor0 WHERE NOT 91 * + 58 * - - col2 >= NULL
----

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

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

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

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

query I rowsort
SELECT ( + 53 ) * + col2 + 73 FROM tab0
----
2564
5320
603

query I rowsort
SELECT ALL 54 * - col0 FROM tab2
----
-2484
-3456
-4050

query I rowsort
SELECT - col2 * - + 95 * - col0 * + + col1 * - col1 FROM tab0
----
36448650
439422975
912285

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 * - ( 6 ) col0 FROM tab2
----
18480
23316
7038

query I rowsort
SELECT ( + 21 ) FROM tab0 AS cor0 WHERE NOT ( NOT ( - 53 + + col2 IS NOT NULL ) )
----
21
21
21

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6676
SELECT - ( + 49 ) + + - col1 * - col1 AS col0, ( + col0 ) DIV 76 * - col0 FROM tab0
----
-48
-97
392
-87
6512
0

skipif mysql # not compatible
query II rowsort label-6676
SELECT - ( + 49 ) + + - col1 * - col1 AS col0, ( + col0 ) / 76 * - col0 FROM tab0
----
-48
-97
392
-87
6512
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6677
SELECT + col0 + - ( - col2 ) DIV - + col0, + col0 FROM tab1
----
50
51
85
85
91
91

skipif mysql # not compatible
query II rowsort label-6677
SELECT + col0 + - ( - col2 ) / - + col0, + col0 FROM tab1
----
50
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT + SUM( ALL - 80 ) FROM tab1 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-6678
SELECT + SUM ( ALL - 80 ) FROM tab1 AS cor0
----
-240

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

query I rowsort
SELECT DISTINCT 98 * - col1 * + - col1 FROM tab1
----
19208
216482
2450

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6681
SELECT SUM ( DISTINCT - col0 ) col2 FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT DISTINCT - SUM( DISTINCT - 79 ) * + - 9 FROM tab1
----
-711

skipif mysql # not compatible
query I rowsort label-6682
SELECT DISTINCT - SUM ( DISTINCT - 79 ) * + - 9 FROM tab1
----
-711

query I rowsort
SELECT ALL - 47 * - col1 AS col0 FROM tab0
----
3807
47
987

query I rowsort
SELECT + col2 * - - 16 - - 87 - - - 39 * + col1 FROM tab0
----
-2320
-572
1632

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

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

query I rowsort
SELECT + col1 + - 27 AS col1 FROM tab0
----
-26
-6
54

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6688
SELECT ALL CAST( 56 AS SIGNED ) + + col0 FROM tab1
----
107
141
147

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL CAST ( 56 AS INTEGER ) + + col0 FROM tab1
----
107
141
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6689
SELECT ALL - CAST( NULL AS SIGNED ) * - 48 AS col1 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + 54 * 56 * + - col0 + + col0 AS col2 FROM tab1 AS cor0
----
-154173
-256955
-275093

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( 88, 34 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT ALL + 68 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-6692
SELECT ALL + 68 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
71

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 * col0 col2 FROM tab1
----
3723
6205
6643

query I rowsort
SELECT + 57 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6697
SELECT DISTINCT col1 DIV 72 AS col1 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-6697
SELECT DISTINCT col1 / 72 AS col1 FROM tab0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT + - 83 * + - COUNT( * ) AS col1 FROM tab2 cor0
----
249

skipif mysql # not compatible
query I rowsort label-6698
SELECT + - 83 * + - COUNT ( * ) AS col1 FROM tab2 cor0
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT DISTINCT COUNT( * ) * - ( - 46 ) FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-6699
SELECT DISTINCT COUNT ( * ) * - ( - 46 ) FROM tab2 AS cor0
----
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6700
SELECT DISTINCT - - 9 DIV - - SUM( - col1 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6700
SELECT DISTINCT - - 9 / - - SUM ( - col1 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT 4 FROM tab0 AS cor0 WHERE NOT NULL >= - 23
----

query I rowsort
SELECT - col0 * ( + - 16 ) AS col2 FROM tab2
----
1024
1200
736

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT - + MAX( ALL - - 84 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6703
SELECT - + MAX ( ALL - - 84 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 93 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT DISTINCT - - COUNT( ALL - 42 ) + - COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6707
SELECT DISTINCT - - COUNT ( ALL - 42 ) + - COUNT ( * ) FROM tab2 cor0
----
0

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

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

query II rowsort
SELECT + col0 * + col1 AS col0, col1 FROM tab1 AS cor0
----
425
5
4277
47
714
14

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6711
SELECT CAST( - col1 AS SIGNED ) + + col1 AS col0, col0 AS col2 FROM tab1 AS cor0
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-6711
SELECT CAST ( - col1 AS INTEGER ) + + col1 AS col0, col0 AS col2 FROM tab1 AS cor0
----
0
51
0
85
0
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT - 41 + + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-6713
SELECT - 41 + + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-44

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

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

query I rowsort
SELECT col2 + 85 * + + col0 AS col0 FROM tab1 cor0
----
4431
7284
7803

query II rowsort
SELECT ALL - col0 - + col0 - + col2 * + + col2 - - - 24 * + - col1 AS col2, - col1 + 20 AS col2 FROM tab1 AS cor0
----
-3531
15
-3678
-27
-8982
6

query II rowsort
SELECT DISTINCT - 91 * + + col1 + + + col1, - col0 AS col2 FROM tab0 AS cor0
----
-1890
-87
-7290
-15
-90
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6718
SELECT DISTINCT + 58 DIV + col1 + - col2 FROM tab1
----
-48
-67
-92

skipif mysql # not compatible
query I rowsort label-6718
SELECT DISTINCT + 58 / + col1 + - col2 FROM tab1
----
-48
-67
-92

query III rowsort
SELECT * FROM tab0 WHERE 72 * - 15 IS NULL
----

query I rowsort
SELECT col1 * - - 96 * col2 AS col0 FROM tab0
----
20160
365472
9504

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( col0 * 78 ) IN ( col2 + + 60, 2, + col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + col1 * + - col2 col1 FROM tab0 AS cor0
----
198
220
3854

query I rowsort
SELECT - 83 - col0 AS col0 FROM tab0 AS cor0
----
-170
-180
-98

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

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

query I rowsort
SELECT - - col1 - - col2 - col1 * - col1 * - 6 * - 38 AS col0 FROM tab0 AS cor0
----
100579
1496036
328

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT ALL + SUM( - col0 ) + - 32 AS col0 FROM tab2 cor0
----
-217

skipif mysql # not compatible
query I rowsort label-6726
SELECT ALL + SUM ( - col0 ) + - 32 AS col0 FROM tab2 cor0
----
-217

query I rowsort
SELECT ALL - col2 - - 49 FROM tab2 AS cor0
----
-9
26
9

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6729
SELECT ALL CAST( + 86 AS SIGNED ) - col1 FROM tab1 cor0 WHERE NULL <> col1 + + - 24 * + col1 + + col1
----

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL CAST ( + 86 AS INTEGER ) - col1 FROM tab1 cor0 WHERE NULL <> col1 + + - 24 * + col1 + + col1
----

query I rowsort
SELECT col0 * + 46 FROM tab1 AS cor0
----
2346
3910
4186

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

query I rowsort
SELECT ALL - 36 * - col0 FROM tab0 AS cor0
----
3132
3492
540

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6733
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( + 77 AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6733
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( + 77 AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * + 87 * + 9 FROM tab2 cor0
----
-39933
-52461
-60291

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT + MIN( ALL 50 ) col2 FROM tab0
----
50

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

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

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

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

query II rowsort
SELECT DISTINCT 55, - 14 AS col0 FROM tab0
----
55
-14

query II rowsort
SELECT + 0, col2 + - - 51 AS col0 FROM tab1
----
0
110
0
119
0
147

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT ALL 47 + + MAX( + 0 ) * SUM( + + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6741
SELECT ALL 47 + + MAX ( + 0 ) * SUM ( + + col1 ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-6742
SELECT + COUNT( * ) AS col0, + 82 * + + COUNT( * ) FROM tab0 AS cor0
----
3
246

skipif mysql # not compatible
query II rowsort label-6742
SELECT + COUNT ( * ) AS col0, + 82 * + + COUNT ( * ) FROM tab0 AS cor0
----
3
246

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT DISTINCT - MAX( - col1 ) + + + 32 AS col0 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-6743
SELECT DISTINCT - MAX ( - col1 ) + + + 32 AS col0 FROM tab0 AS cor0
----
33

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

query I rowsort
SELECT 5 + col0 AS col2 FROM tab2
----
51
69
80

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + - col1 col2 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT - - COUNT( * ) + 75 FROM tab0 cor0 WHERE NULL NOT BETWEEN + col2 / + col2 AND - - col0
----
75

skipif mysql # not compatible
query I rowsort label-6748
SELECT - - COUNT ( * ) + 75 FROM tab0 cor0 WHERE NULL NOT BETWEEN + col2 / + col2 AND - - col0
----
75

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

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

query I rowsort
SELECT ALL - col1 + - - col0 AS col0 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6752
SELECT DISTINCT MIN( ALL + + col0 ) + - + SUM( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6752
SELECT DISTINCT MIN ( ALL + + col0 ) + - + SUM ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ( + 84 ) - + ( + 0 ) FROM tab2 AS cor0
----
84
84
84

query I rowsort
SELECT + 1 * + 19 - ( + - col2 ) + 60 * - col1 FROM tab1
----
-222
-2733
-725

query I rowsort
SELECT col0 - + 49 + + - 64 FROM tab2
----
-38
-49
-67

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

query I rowsort
SELECT 91 * + - ( + col1 ) + + 77 AS col1 FROM tab0
----
-14
-1834
-7294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6758
SELECT ALL col1 + ( - - CAST( + - col1 AS SIGNED ) ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6758
SELECT ALL col1 + ( - - CAST ( + - col1 AS INTEGER ) ) AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + col2 + + + col0 FROM tab2
----
104
133
69

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

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

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

query I rowsort
SELECT ALL col2 - + - col1 FROM tab2 AS cor0
----
117
125
74

query II rowsort
SELECT DISTINCT + ( - col2 ) AS col2, - 3 FROM tab1
----
-59
-3
-68
-3
-96
-3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6766
SELECT ALL + col2 DIV 8 FROM tab2 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-6766
SELECT ALL + col2 / 8 FROM tab2 AS cor0
----
2
5
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT DISTINCT - + 49 * - MIN( 77 ) col2 FROM tab2 cor0
----
3773

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6767
SELECT DISTINCT - + 49 * - MIN ( 77 ) col2 FROM tab2 cor0
----
3773

onlyif mysql # DIV for integer division: 
query I rowsort label-6768
SELECT ALL col1 DIV 44 * - - 51 AS col2 FROM tab2 AS cor0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-6768
SELECT ALL col1 / 44 * - - 51 AS col2 FROM tab2 AS cor0
----
51
51
51

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6770
SELECT DISTINCT + COUNT( * ) DIV - - 63 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6770
SELECT DISTINCT + COUNT ( * ) / - - 63 AS col2 FROM tab1 AS cor0
----
0

query II rowsort
SELECT - - col0 * 27 AS col2, col2 FROM tab1 AS cor0
----
1377
96
2295
59
2457
68

onlyif mysql # DIV for integer division: 
query II rowsort label-6772
SELECT + col0 DIV - col2, + col0 * + 54 col1 FROM tab2 cor0
----
-1
3456
-1
4050
-2
2484

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6772
SELECT + col0 / - col2, + col0 * + 54 col1 FROM tab2 cor0
----
-1
3456
-1
4050
-2
2484

query I rowsort
SELECT DISTINCT - 2 * - + col2 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT DISTINCT MAX( DISTINCT + col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-6774
SELECT DISTINCT MAX ( DISTINCT + col0 ) FROM tab2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6775
SELECT 16 DIV - - 17 * + - col0 + + - col2 AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6775
SELECT 16 / - - 17 * + - col0 + + - col2 AS col0 FROM tab1
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 59 + 12 * 64 col2 FROM tab2
----
3777
4721
5311

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6777
SELECT ALL * FROM tab0 WHERE CAST( col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6777
SELECT ALL * FROM tab0 WHERE CAST ( col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6778
SELECT ALL col0 + CAST( + + 96 AS SIGNED ) AS col1, col1 AS col1 FROM tab0
----
111
81
183
21
193
1

skipif mysql # not compatible
query II rowsort label-6778
SELECT ALL col0 + CAST ( + + 96 AS INTEGER ) AS col1, col1 AS col1 FROM tab0
----
111
81
183
21
193
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6779
SELECT ALL - ( - + col0 ) + - 1 * + col0 * - + CAST( col0 AS SIGNED ) * - col2 AS col2 FROM tab0
----
-10560
-75603
-931394

skipif mysql # not compatible
query I rowsort label-6779
SELECT ALL - ( - + col0 ) + - 1 * + col0 * - + CAST ( col0 AS INTEGER ) * - col2 AS col2 FROM tab0
----
-10560
-75603
-931394

query I rowsort
SELECT - 31 * - AVG ( col2 ) FROM tab1 AS cor0 WHERE ( NOT NULL NOT BETWEEN - - 91 AND NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6781
SELECT DISTINCT 28 DIV - 79 - - 1 * + col0 AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6781
SELECT DISTINCT 28 / - 79 - - 1 * + col0 AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL + + 33 AS col0 FROM tab2 AS cor0
----
33
33
33

query I rowsort
SELECT ALL + + 35 AS col0 FROM tab1 AS cor0
----
35
35
35

onlyif mysql # DIV for integer division: 
query I rowsort label-6784
SELECT + + col0 DIV + col1 col1 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6784
SELECT + + col0 / + col1 col1 FROM tab1 AS cor0
----
1
17
3

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT col0 / + 59 + 44 + + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 40 > - + 51
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6787
SELECT DISTINCT - 27 DIV - col0 + + 31 FROM tab0
----
31
32

skipif mysql # not compatible
query I rowsort label-6787
SELECT DISTINCT - 27 / - col0 + + 31 FROM tab0
----
31
32

onlyif mysql # DIV for integer division: 
query I rowsort label-6788
SELECT 66 DIV ( - col2 ) + + col1 FROM tab0
----
1
15
80

skipif mysql # not compatible
query I rowsort label-6788
SELECT 66 / ( - col2 ) + + col1 FROM tab0
----
1
15
80

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

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

query I rowsort
SELECT ALL - 75 + ( col2 ) AS col1 FROM tab2 AS cor0
----
-17
-35
-52

query I rowsort
SELECT 16 + col1 + + 5 FROM tab1 AS cor0
----
26
35
68

query I rowsort
SELECT DISTINCT 7 + + col2 FROM tab1 AS cor0
----
103
66
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6793
SELECT - - col1 * - - col0 DIV + col0 + + + col2 FROM tab1 AS cor0
----
110
115
64

skipif mysql # not compatible
query I rowsort label-6793
SELECT - - col1 * - - col0 / + col0 + + + col2 FROM tab1 AS cor0
----
110
115
64

query II rowsort
SELECT + 68, - 5 AS col0 FROM tab2 AS cor0
----
68
-5
68
-5
68
-5

query I rowsort
SELECT DISTINCT - - col0 - - + 76 FROM tab0 AS cor0
----
163
173
91

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + 3 < NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT DISTINCT COUNT( * ) + - - 68 * - MAX( + 37 ) AS col1 FROM tab1, tab0 AS cor0
----
-2507

skipif mysql # not compatible
query I rowsort label-6800
SELECT DISTINCT COUNT ( * ) + - - 68 * - MAX ( + 37 ) AS col1 FROM tab1, tab0 AS cor0
----
-2507

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6802
SELECT + col1 FROM tab0 WHERE NOT ( NULL >= + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-6802
SELECT + col1 FROM tab0 WHERE NOT ( NULL >= + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT DISTINCT ( - - 14 ) FROM tab0 AS cor0
----
14

query II rowsort
SELECT 66 AS col1, col2 * + - col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
66
-1058
66
-2560
66
-4350

query III rowsort
SELECT * FROM tab2 WHERE NOT 97 + + col1 = 24
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query II rowsort
SELECT DISTINCT col0, - col0 * ( col2 ) AS col0 FROM tab0
----
15
-705
87
-870
97
-9603

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 73 <> NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6810
SELECT col2 DIV col1 * + 65 * - col2 * + + 77 AS col0 FROM tab0 AS cor0
----
-49054005
0
0

skipif mysql # not compatible
query I rowsort label-6810
SELECT col2 / col1 * + 65 * - col2 * + + 77 AS col0 FROM tab0 AS cor0
----
-49054005
0
0

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 22 <= col2
----

query II rowsort
SELECT DISTINCT - col1, col2 FROM tab0 cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT ALL + + 63 * + col2 FROM tab1 WHERE NOT + 20 BETWEEN - col2 * + col0 AND NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6816
SELECT DISTINCT - CAST( + + COUNT( * ) AS SIGNED ) + - + 2 col1 FROM tab2
----
-5

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

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

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

query I rowsort
SELECT ALL - 43 * + - col0 * + col0 AS col2 FROM tab2
----
176128
241875
90988

query III rowsort
SELECT * FROM tab2 WHERE + 9 >= NULL
----

query I rowsort
SELECT ALL col0 * - - ( - ( 84 ) ) AS col0 FROM tab2
----
-3864
-5376
-6300

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT ALL - 67 + COUNT( * ) + 33 AS col1 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-6821
SELECT ALL - 67 + COUNT ( * ) + 33 AS col1 FROM tab0 AS cor0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6822
SELECT DISTINCT - + CAST( MIN( - + col2 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6822
SELECT DISTINCT - + CAST ( MIN ( - + col2 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
96

query I rowsort
SELECT - col1 + + - 45 * + col1 * + col1 AS col1 FROM tab2 AS cor0
----
-117096
-202072
-266882

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

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

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

query I rowsort
SELECT ALL + col1 * + - col1 AS col1 FROM tab0
----
-1
-441
-6561

onlyif mysql # DIV for integer division: 
query I rowsort label-6827
SELECT DISTINCT col0 DIV - 95 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6827
SELECT DISTINCT col0 / - 95 AS col2 FROM tab2
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 + - + col1 col1 FROM tab0 AS cor0
----
-15
45
65

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

skipif mysql # not compatible
query I rowsort label-6830
SELECT ALL COUNT ( * ) - + 87 AS col0 FROM tab2 AS cor0
----
-84

query I rowsort
SELECT ALL - - col1 * col0 + - 83 FROM tab0 cor0
----
1132
14
1744

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT DISTINCT - MAX( - 99 ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-6833
SELECT DISTINCT - MAX ( - 99 ) FROM tab2
----
99

query I rowsort
SELECT + ( - 37 ) AS col2 FROM tab2
----
-37
-37
-37

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 79 col1, 13 * col2 col0 FROM tab1
----
79
1248
79
767
79
884

query I rowsort
SELECT DISTINCT - + 56 / + - 72 AS col2 FROM tab1 WHERE NOT ( + col1 ) * - 22 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT - COUNT( * ) * - - 38 FROM tab1
----
-114

skipif mysql # not compatible
query I rowsort label-6839
SELECT - COUNT ( * ) * - - 38 FROM tab1
----
-114

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6841
SELECT ALL COUNT( * ) DIV COUNT( * ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6841
SELECT ALL COUNT ( * ) / COUNT ( * ) AS col0 FROM tab2
----
1

query I rowsort
SELECT col1 * + - ( + col0 ) FROM tab2
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - + 91 ) col2, - 76 FROM tab0 cor0
----
-91
-76
-91
-76
-91
-76

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE ( - - 59 ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL - col1 * - col0 * - + col2 + - + ( + col2 ) FROM tab1 AS cor0
----
-25134
-290904
-68640

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6848
SELECT ALL - 39 DIV - + col0 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6848
SELECT ALL - 39 / - + col0 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT + - 75 * - + 30 AS col0, - col1 FROM tab2 AS cor0
----
2250
-51
2250
-67
2250
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col0, + col1 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + col2 * + - 32 FROM tab1 cor0
----
-1888
-2176
-3072

query I rowsort
SELECT - col0 * + ( + + 67 ) AS col1 FROM tab2 AS cor0
----
-3082
-4288
-5025

query I rowsort
SELECT - + col1 + - col2 + + col0 * + col2 AS col1 FROM tab1 AS cor0
----
4786
4951
6073

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

skipif mysql # not compatible
query I rowsort label-6854
SELECT + COUNT ( * ) + + 50 FROM tab1 cor0
----
53

query II rowsort
SELECT + 22 + + col0 AS col1, - col2 + col0 - - + col0 * col2 FROM tab0 AS cor0
----
109
947
119
9601
37
673

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 > - col0
----

query I rowsort
SELECT + col0 + ( col1 ) * + 12 + - 34 AS col2 FROM tab2
----
624
845
954

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

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

query I rowsort
SELECT col2 FROM tab2 WHERE ( ( - - col2 * - 51 NOT BETWEEN NULL AND col1 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 = NULL )
----

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

query I rowsort
SELECT - - col2 - - col0 FROM tab2 WHERE NULL IS NULL
----
104
133
69

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6864
SELECT + + ( + SUM( - CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

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

query II rowsort
SELECT + col1 AS col0, col0 + 62 FROM tab0 AS cor0
----
1
159
21
149
81
77

query I rowsort
SELECT - col2 * + 96 FROM tab0 AS cor0
----
-4512
-9504
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT ALL - COUNT( * ) AS col2 FROM tab0 WHERE col2 <= col0
----
-1

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 WHERE col2 <= col0
----
-1

query I rowsort
SELECT 9 * - ( - col0 ) FROM tab2
----
414
576
675

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN ( - col1 ) AND col0 + + 67
----

query I rowsort
SELECT + ( + col1 ) * - 86 AS col0 FROM tab0
----
-1806
-6966
-86

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6871
SELECT * FROM tab2 WHERE NOT - 46 * + col1 BETWEEN ( 86 ) AND - ( + ( CAST( NULL AS DECIMAL ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6871
SELECT * FROM tab2 WHERE NOT - 46 * + col1 BETWEEN ( 86 ) AND - ( + ( CAST ( NULL AS REAL ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 5 + - ( + 97 + col1 ) AS col1 FROM tab1
----
-106
-139
-97

query I rowsort
SELECT ALL + col2 * 41 FROM tab1
----
2419
2788
3936

query I rowsort
SELECT ALL col2 * 74 FROM tab1
----
4366
5032
7104

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= 32 * - 6
----

query I rowsort
SELECT - col2 + col1 * 62 AS col2 FROM tab0 WHERE + 66 * 97 NOT BETWEEN col2 AND + col0
----
-37
1292
4975

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

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL - MIN ( ALL - col1 ) FROM tab0
----
81

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

query I rowsort
SELECT col2 + col2 * 94 FROM tab0
----
4465
9405
950

query I rowsort
SELECT DISTINCT - col0 * - col2 + + col1 AS col2 FROM tab2
----
1109
2637
4417

query III rowsort
SELECT * FROM tab2 WHERE col0 * 35 IN ( col0 - - col0 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT - ( + SUM( - 0 ) ) + - 79 * 51 AS col0 FROM tab1 WHERE NULL NOT BETWEEN + col1 * 22 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6882
SELECT - ( + SUM ( - 0 ) ) + - 79 * 51 AS col0 FROM tab1 WHERE NULL NOT BETWEEN + col1 * 22 AND NULL
----
NULL

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

query I rowsort
SELECT - 26 + - col1 AS col0 FROM tab0
----
-107
-27
-47

query I rowsort
SELECT + 15 + - col1 * col2 FROM tab2
----
-1158
-3065
-3871

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 NOT BETWEEN - 29 + 83 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6888
SELECT - col2 * - col0 FROM tab2 WHERE ( CAST( + col1 AS SIGNED ) + - col2 * + col1 ) IS NOT NULL
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-6888
SELECT - col2 * - col0 FROM tab2 WHERE ( CAST ( + col1 AS INTEGER ) + - col2 * + col1 ) IS NOT NULL
----
1058
2560
4350

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

query I rowsort
SELECT 74 + - col2 * col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col2 - - 2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6891
SELECT DISTINCT + ( CAST( + ( col2 ) AS SIGNED ) ) col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6891
SELECT DISTINCT + ( CAST ( + ( col2 ) AS INTEGER ) ) col0 FROM tab1
----
59
68
96

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 99 <> NULL
----

query I rowsort
SELECT ALL + + 61 + - col0 FROM tab1 AS cor0
----
-24
-30
10

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

query I rowsort
SELECT DISTINCT - col1 + + col2 * 18 AS col1 FROM tab0 AS cor0
----
159
1781
765

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

skipif mysql # not compatible
query I rowsort label-6897
SELECT DISTINCT MIN ( 66 ) AS col2 FROM tab1 AS cor0
----
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 78 + - col0 * col2 > col1
----

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

query I rowsort
SELECT DISTINCT + col1 * - ( ( + col2 ) ) AS col1 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT 54 * + 18 FROM tab0
----
972
972
972

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT ALL 28 - COUNT( * ) AS col0 FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND ( NULL )
----
28

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL 28 - COUNT ( * ) AS col0 FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND ( NULL )
----
28

query I rowsort
SELECT ALL + ( + col2 ) * - col0 + 53 * - 20 AS col0 FROM tab1
----
-5956
-6075
-7248

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

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

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

query I rowsort
SELECT DISTINCT 74 FROM tab0 WHERE NULL <= + col1 * col0
----

query III rowsort
SELECT * FROM tab2 WHERE + 11 >= NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 20 / col0 NOT BETWEEN + col1 AND 42
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6910
SELECT ALL col2 + + ( col0 ) * - col1 FROM tab0 AS cor0 WHERE ( NULL ) = + CAST( + 37 AS SIGNED ) - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6910
SELECT ALL col2 + + ( col0 ) * - col1 FROM tab0 AS cor0 WHERE ( NULL ) = + CAST ( + 37 AS INTEGER ) - CAST ( NULL AS INTEGER )
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6912
SELECT DISTINCT SUM( - - ( - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6912
SELECT DISTINCT SUM ( - - ( - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6913
SELECT ALL + col1 DIV col2 * col2 - - col2 FROM tab2 AS cor0
----
116
69
80

skipif mysql # not compatible
query I rowsort label-6913
SELECT ALL + col1 / col2 * col2 - - col2 FROM tab2 AS cor0
----
116
69
80

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( 75 ) NOT IN ( - 55 )
----

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

query I rowsort
SELECT 74 / - 49 + - col2 * - 67 FROM tab0 AS cor0 WHERE NOT + col1 = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6918
SELECT ALL - - 26 * - + col1 DIV col1 * 10 FROM tab2 AS cor0
----
-260
-260
-260

skipif mysql # not compatible
query I rowsort label-6918
SELECT ALL - - 26 * - + col1 / col1 * 10 FROM tab2 AS cor0
----
-260
-260
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT ALL - SUM( - - col2 ) FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL - SUM ( - - col2 ) FROM tab0 cor0
----
-156

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 63 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN - - col2 AND 41 * + col2
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6925
SELECT COUNT ( * ) + - 48 col0 FROM tab0 AS cor0 WHERE NOT col1 / - col1 BETWEEN ( NULL ) AND NULL
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-6926
SELECT ALL col2 DIV col0 FROM tab0 AS cor0 WHERE ( + 76 ) NOT BETWEEN ( - 15 ) AND - col0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-6926
SELECT ALL col2 / col0 FROM tab0 AS cor0 WHERE ( + 76 ) NOT BETWEEN ( - 15 ) AND - col0
----
0
1
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6927
SELECT ALL - - 45 DIV - col2 + 40 + + col1 FROM tab0 AS cor0
----
121
41
57

skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL - - 45 / - col2 + 40 + + col1 FROM tab0 AS cor0
----
121
41
57

onlyif mysql # DIV for integer division: 
query I rowsort label-6928
SELECT + 87 DIV - 86 + - + 35 col2 FROM tab1 cor0
----
-36
-36
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6928
SELECT + 87 / - 86 + - + 35 col2 FROM tab1 cor0
----
-36
-36
-36

query I rowsort
SELECT 50 / - col2 FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN 54 * - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT MIN( DISTINCT - 80 ) AS col0 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-6930
SELECT MIN ( DISTINCT - 80 ) AS col0 FROM tab0
----
-80

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

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

query I rowsort
SELECT col0 + - col1 AS col0 FROM tab0 WHERE NOT ( col2 ) IS NULL
----
-66
66
96

query I rowsort
SELECT 9 * + - col2 FROM tab1
----
-531
-612
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 31 * col0 col2, col1 FROM tab2
----
1426
51
1984
77
2325
67

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 + 89 ) <> NULL
----

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

query I rowsort
SELECT - col1 + + 16 + col1 AS col0 FROM tab0 AS cor0
----
16
16
16

query I rowsort
SELECT col0 + - + col2 FROM tab0 cor0
----
-2
-32
77

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

query I rowsort
SELECT + - col1 + + + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT - 10 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-6942
SELECT - 10 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-13

query I rowsort
SELECT - - 74 * - col0 + - col0 + + + col2 FROM tab1 AS cor0
----
-3729
-6316
-6757

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

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

query II rowsort
SELECT ALL + col2 AS col2, 39 FROM tab2 AS cor0
----
23
39
40
39
58
39

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 = col0
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6947
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 col0 FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN NULL AND - col2 * + col0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 - + - 10 FROM tab2 AS cor0
----
-13
-30
-48

query II rowsort
SELECT DISTINCT col1, ( - col1 ) AS col1 FROM tab1
----
14
-14
47
-47
5
-5

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE ( + - col1 ) > NULL
----

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

query III rowsort
SELECT * FROM tab1 WHERE NULL < + + 31
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6954
SELECT ( + CAST( + SUM( ALL - col2 ) AS SIGNED ) ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-6954
SELECT ( + CAST ( + SUM ( ALL - col2 ) AS INTEGER ) ) AS col0 FROM tab0
----
-156

query II rowsort
SELECT col1 AS col0, 27 * ( + + col0 ) * + col2 FROM tab2 AS cor0
----
51
28566
67
117450
77
69120

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT - - COUNT( DISTINCT + col0 ) - + 45 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-6956
SELECT - - COUNT ( DISTINCT + col0 ) - + 45 FROM tab0 AS cor0
----
-42

query I rowsort
SELECT + col0 - + + col1 AS col0 FROM tab1 AS cor0
----
37
44
80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT + - 2 - - COUNT( * ) FROM tab0 AS cor0
----
1

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

query II rowsort
SELECT col1 * col0, - col0 * ( - + 90 ) AS col2 FROM tab0
----
1215
1350
1827
7830
97
8730

query I rowsort
SELECT - 99 * + col1 FROM tab1 cor0
----
-1386
-4653
-495

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6963
SELECT * FROM tab0 cor0 WHERE NOT ( ( NOT NULL NOT BETWEEN ( - 57 ) AND 6 * - CAST( NULL AS SIGNED ) - col1 / + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-6963
SELECT * FROM tab0 cor0 WHERE NOT ( ( NOT NULL NOT BETWEEN ( - 57 ) AND 6 * - CAST ( NULL AS INTEGER ) - col1 / + col0 ) )
----

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE 73 NOT BETWEEN NULL AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-6967
SELECT + MIN ( DISTINCT + ( + col2 ) ) FROM tab1
----
59

query I rowsort
SELECT - col1 * + col0 FROM tab2 WHERE NOT NULL < + col0 + - col0 * 99 + - 91 * + + ( 71 ) / col1
----

query I rowsort
SELECT DISTINCT + col0 * 61 AS col2 FROM tab0
----
5307
5917
915

query I rowsort
SELECT ALL + + col1 * 89 AS col0 FROM tab0 AS cor0
----
1869
7209
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6971
SELECT - + col1 col0, - CAST( + col1 AS SIGNED ) * 54 + - + 39 + + col0 FROM tab2 AS cor0
----
-51
-2747
-67
-3582
-77
-4133

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6971
SELECT - + col1 col0, - CAST ( + col1 AS INTEGER ) * 54 + - + 39 + + col0 FROM tab2 AS cor0
----
-51
-2747
-67
-3582
-77
-4133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-67
-77

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

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

skipif mysql # not compatible
query I rowsort label-6974
SELECT - COUNT ( * ) FROM tab1 WHERE + - col1 * + col0 + + col2 * - col0 >= + + ( col2 )
----
0

query I rowsort
SELECT ALL col1 * - - col0 AS col1 FROM tab2
----
2346
4928
5025

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT - COUNT( * ) - - - 77 * - ( + 17 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
1309

skipif mysql # not compatible
query I rowsort label-6979
SELECT - COUNT ( * ) - - - 77 * - ( + 17 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
1309

onlyif mysql # aggregate syntax: 
query II rowsort label-6980
SELECT DISTINCT + + ( + 57 ) AS col1, - 98 * + COUNT( * ) FROM tab0 cor0
----
57
-294

skipif mysql # not compatible
query II rowsort label-6980
SELECT DISTINCT + + ( + 57 ) AS col1, - 98 * + COUNT ( * ) FROM tab0 cor0
----
57
-294

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6981
SELECT * FROM tab1 AS cor0 WHERE ( 23 + - - col1 ) IN ( + CAST( - CAST( + + col0 AS SIGNED ) AS SIGNED ), ( 5 ) )
----

skipif mysql # not compatible
query III rowsort label-6981
SELECT * FROM tab1 AS cor0 WHERE ( 23 + - - col1 ) IN ( + CAST ( - CAST ( + + col0 AS INTEGER ) AS INTEGER ), ( 5 ) )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6983
SELECT - 68 + - + CAST( 65 AS SIGNED ) AS col1, - 32 AS col2 FROM tab0
----
-133
-32
-133
-32
-133
-32

skipif mysql # not compatible
query II rowsort label-6983
SELECT - 68 + - + CAST ( 65 AS INTEGER ) AS col1, - 32 AS col2 FROM tab0
----
-133
-32
-133
-32
-133
-32

query I rowsort
SELECT ALL col2 + - + 64 FROM tab0
----
-17
-54
35

query I rowsort
SELECT 33 + - + col2 + - 53 AS col1 FROM tab1
----
-116
-79
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6986
SELECT ALL + CAST( - 31 AS SIGNED ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-31
-31
-31

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL + CAST ( - 31 AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-31
-31
-31

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

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

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

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE - 81 IN ( + ( + ( - col1 ) ) * + - 60 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6990
SELECT + 48 + CAST( - + col0 AS SIGNED ) / + ( - 61 ) / - col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6990
SELECT + 48 + CAST ( - + col0 AS INTEGER ) / + ( - 61 ) / - col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + + 83 AND + col2
----

query I rowsort
SELECT col1 + + col2 + + + col1 / col0 AS col1 FROM tab0 WHERE NOT NULL IN ( + + col0 + + 60, - col2 * - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6995
SELECT ALL 95 * + col1 + + col2 - - col0 * + col2 + - - CAST( + 0 AS SIGNED ) * - col2 AS col2 FROM tab2 cor0
----
10773
5926
9915

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL 95 * + col1 + + col2 - - col0 * + col2 + - - CAST ( + 0 AS INTEGER ) * - col2 AS col2 FROM tab2 cor0
----
10773
5926
9915

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

query II rowsort
SELECT ALL - col0, + col2 + + - col1 + + + 41 AS col2 FROM tab1 AS cor0
----
-51
123
-85
95
-91
62

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 79 + - col2 ) <> NULL
----

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

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

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

query I rowsort
SELECT col1 * - + 29 FROM tab1
----
-1363
-145
-406

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT ( + + MIN( DISTINCT + 31 ) ) FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-7002
SELECT ( + + MIN ( DISTINCT + 31 ) ) FROM tab2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT ALL - COUNT( + - 70 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7003
SELECT ALL - COUNT ( + - 70 ) FROM tab0
----
-3

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 99 / + col2 - - + 34 BETWEEN - + 41 * - 77 AND NULL
----

query II rowsort
SELECT - + col0 * col0, - col2 + + col1 * + ( + col0 ) * - 23 + + 63 * + - col1 AS col0 FROM tab1 cor0
----
-2601
-17400
-7225
-10149
-8281
-101400

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT DISTINCT - - MIN( - col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7008
SELECT DISTINCT - - MIN ( - col1 ) AS col2 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT + + MIN( - 96 ) * + 64 AS col2 FROM tab1 AS cor0
----
-6144

skipif mysql # not compatible
query I rowsort label-7009
SELECT + + MIN ( - 96 ) * + 64 AS col2 FROM tab1 AS cor0
----
-6144

query I rowsort
SELECT ALL - + ( - - 73 ) AS col0 FROM tab0 AS cor0
----
-73
-73
-73

query I rowsort
SELECT - - col2 * - col1 * 32 FROM tab2 AS cor0
----
-124352
-37536
-98560

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

query III rowsort
SELECT * FROM tab2 WHERE NULL > - col0
----

query I rowsort
SELECT DISTINCT col1 + + col0 * + + 61 * - col2 AS col0 FROM tab1
----
-298642
-305910
-377421

onlyif mysql # DIV for integer division: 
query I rowsort label-7015
SELECT col1 + + 64 DIV - 80 * 57 AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7015
SELECT col1 + + 64 / - 80 * 57 AS col1 FROM tab2
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT DISTINCT - col0 + - - col1 AS col1 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT DISTINCT - col0 + - - 18 AS col0 FROM tab1 AS cor0
----
-33
-67
-73

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

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

skipif mysql # not compatible
query I rowsort label-7020
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE + col2 * + CAST ( + + 43 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT ALL - - 97 - COUNT( * ) FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL - - 97 - COUNT ( * ) FROM tab2 AS cor0
----
94

query I rowsort
SELECT - col0 * + 54 * + col0 + - - ( + + ( - col1 ) ) * col2 AS col2 FROM tab2 AS cor0
----
-115437
-224264
-307636

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7023
SELECT ALL - col1 * col1 + 62 + 83 * CAST( - + CAST( - col1 AS DECIMAL ) AS SIGNED ) + col0, 63 AS col1 FROM tab2 AS cor0
----
1209
63
1740
63
588
63

skipif mysql # not compatible
query II rowsort label-7023
SELECT ALL - col1 * col1 + 62 + 83 * CAST ( - + CAST ( - col1 AS REAL ) AS INTEGER ) + col0, 63 AS col1 FROM tab2 AS cor0
----
1209
63
1740
63
588
63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT + + 7 * - SUM( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-1295

skipif mysql # not compatible
query I rowsort label-7025
SELECT + + 7 * - SUM ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-1295

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

query I rowsort
SELECT ALL - + col0 * - + ( - 23 ) + 36 AS col2 FROM tab1 AS cor0
----
-1137
-1919
-2057

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7028
SELECT * FROM tab2 WHERE - CAST( NULL AS DECIMAL ) + ( + + col2 ) > - - 47 * + - 25 * 30
----

skipif mysql # not compatible
query III rowsort label-7028
SELECT * FROM tab2 WHERE - CAST ( NULL AS REAL ) + ( + + col2 ) > - - 47 * + - 25 * 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT COUNT( * ) col1 FROM tab1 WHERE NULL >= ( - - 60 )
----
0

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

query I rowsort
SELECT DISTINCT + 3 AS col0 FROM tab2 WHERE NOT 79 <> 6 * + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 21 col1, 12 AS col0 FROM tab1 WHERE ( - col0 ) IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7033
SELECT ALL + ( 80 ) * 91 + - CAST( NULL AS SIGNED ) * + AVG ( + + col2 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL + ( 80 ) * 91 + - CAST ( NULL AS INTEGER ) * + AVG ( + + col2 ) AS col1 FROM tab2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7034
SELECT ALL COUNT ( * ) / + - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-1

query I rowsort
SELECT 63 * - - col0 - ( + 68 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
5413
6043
877

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7038
SELECT DISTINCT + col2 AS col1 FROM tab2 cor0 WHERE NOT - col1 / - + CAST( + 19 AS SIGNED ) + - 45 + + 10 * col1 NOT BETWEEN + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-7038
SELECT DISTINCT + col2 AS col1 FROM tab2 cor0 WHERE NOT - col1 / - + CAST ( + 19 AS INTEGER ) + - 45 + + 10 * col1 NOT BETWEEN + col2 AND NULL
----

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= 88
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL <> col1 / - 80 )
----

query I rowsort
SELECT DISTINCT 46 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
46

query I rowsort
SELECT col2 * 40 FROM tab2
----
1600
2320
920

onlyif mysql # DIV for integer division: 
query II rowsort label-7044
SELECT ( col1 ) DIV + 83 + - col0 + - col2 * - 59 AS col0, - col2 * + col0 * + col2 * col1 AS col2 FROM tab2 AS cor0
----
1311
-1241034
2296
-7884800
3347
-16904100

skipif mysql # not compatible
query II rowsort label-7044
SELECT ( col1 ) / + 83 + - col0 + - col2 * - 59 AS col0, - col2 * + col0 * + col2 * col1 AS col2 FROM tab2 AS cor0
----
1311
-1241034
2296
-7884800
3347
-16904100

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

query I rowsort
SELECT - col2 * 83 AS col1 FROM tab1 AS cor0
----
-4897
-5644
-7968

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT + MAX( + 33 ) AS col1 FROM tab0 AS cor0
----
33

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7048
SELECT ALL + 14 col2, CAST( + - 75 AS SIGNED ) + + 29 AS col0 FROM tab0 AS cor0
----
14
-46
14
-46
14
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7048
SELECT ALL + 14 col2, CAST ( + - 75 AS INTEGER ) + + 29 AS col0 FROM tab0 AS cor0
----
14
-46
14
-46
14
-46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 <= NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7051
SELECT * FROM tab2 WHERE NOT + 86 * col2 NOT BETWEEN - + 37 AND + col2 / col0 + + - col2 + - + 3 + - - 23 / - col0 * + - 20 + + CAST( - 18 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7051
SELECT * FROM tab2 WHERE NOT + 86 * col2 NOT BETWEEN - + 37 AND + col2 / col0 + + - col2 + - + 3 + - - 23 / - col0 * + - 20 + + CAST ( - 18 AS INTEGER )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT - MIN( ( - + col1 ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7053
SELECT - MIN ( ( - + col1 ) ) FROM tab1
----
47

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

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

query I rowsort
SELECT ALL - - 34 + - col0 AS col0 FROM tab2 WHERE NOT + - col1 IS NULL
----
-12
-30
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7056
SELECT col0, - CAST( - + col1 AS SIGNED ) * - + col0 FROM tab2
----
46
-2346
64
-4928
75
-5025

skipif mysql # not compatible
query II rowsort label-7056
SELECT col0, - CAST ( - + col1 AS INTEGER ) * - + col0 FROM tab2
----
46
-2346
64
-4928
75
-5025

query I rowsort
SELECT ALL + + 59 + - 81 FROM tab1 AS cor0
----
-22
-22
-22

query I rowsort
SELECT ALL + + col1 * - - col1 AS col2 FROM tab2 cor0
----
2601
4489
5929

query II rowsort
SELECT DISTINCT - col0 AS col2, 61 FROM tab1 AS cor0
----
-51
61
-85
61
-91
61

query I rowsort
SELECT + col1 + + col1 + 57 AS col2 FROM tab1 cor0
----
151
67
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT + 74 + - ( + SUM( DISTINCT - col0 ) ) FROM tab2
----
259

skipif mysql # not compatible
query I rowsort label-7061
SELECT + 74 + - ( + SUM ( DISTINCT - col0 ) ) FROM tab2
----
259

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + + col0 * - col2 col0 FROM tab0
----
-10575
-75690
-931491

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

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

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

query I rowsort
SELECT ALL + - col0 + - 70 FROM tab2 AS cor0
----
-116
-134
-145

query I rowsort
SELECT DISTINCT - col1 + - 63 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - 9 + col2 FROM tab2 cor0
----
14
31
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + ( + + 23 ) col1 FROM tab1 AS cor0
----
28
37
70

onlyif mysql # DIV for integer division: 
query I rowsort label-7069
SELECT ALL + col0 DIV + col2 + + + ( + 65 ) FROM tab1 AS cor0
----
65
66
66

skipif mysql # not compatible
query I rowsort label-7069
SELECT ALL + col0 / + col2 + + + ( + 65 ) FROM tab1 AS cor0
----
65
66
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 + col0 col2 FROM tab2 AS cor0 WHERE - 97 < NULL
----

query I rowsort
SELECT ALL + 58 * + col0 - + col2 FROM tab0 cor0
----
5036
5527
823

query I rowsort
SELECT - 21 - - - col2 FROM tab0 AS cor0
----
-120
-31
-68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7073
SELECT - + col2 DIV col0 + CAST( - CAST( + - col0 AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
50
85
91

skipif mysql # not compatible
query I rowsort label-7073
SELECT - + col2 / col0 + CAST ( - CAST ( + - col0 AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
50
85
91

query I rowsort
SELECT 31 * 59 + + - col0 FROM tab2 AS cor0
----
1754
1765
1783

query I rowsort
SELECT ALL 41 - - + col0 + + + col2 * - col1 AS col2 FROM tab1
----
-1252
-169
-3064

onlyif mysql # DIV for integer division: 
query I rowsort label-7076
SELECT DISTINCT 60 DIV 97 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT 60 / 97 FROM tab1
----
0

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

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

query I rowsort
SELECT + col0 FROM tab0 WHERE - 10 * + 7 + - 54 NOT IN ( col2, 59 * col1, + - col0 )
----
15
87
97

query II rowsort
SELECT ALL col1 AS col1, col0 FROM tab2
----
51
46
67
75
77
64

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT DISTINCT COUNT( * ) * - 40 * + COUNT( ALL + col0 ) AS col1 FROM tab0
----
-360

skipif mysql # not compatible
query I rowsort label-7082
SELECT DISTINCT COUNT ( * ) * - 40 * + COUNT ( ALL + col0 ) AS col1 FROM tab0
----
-360

query I rowsort
SELECT ALL + 49 * + col0 FROM tab0 AS cor0
----
4263
4753
735

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7084
SELECT ALL COUNT( + CAST( - col2 AS SIGNED ) ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL COUNT ( + CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7086
SELECT + CAST( + + SUM( DISTINCT + + col2 ) AS SIGNED ) * + COUNT( * ) AS col1 FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-7086
SELECT + CAST ( + + SUM ( DISTINCT + + col2 ) AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab1
----
669

query I rowsort
SELECT DISTINCT + 5 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
5

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

query I rowsort
SELECT + 13 * - - 49 AS col2 FROM tab1 AS cor0
----
637
637
637

onlyif mysql # aggregate syntax: 
query II rowsort label-7090
SELECT DISTINCT COUNT( DISTINCT col2 ) AS col2, - 43 FROM tab2 AS cor0 WHERE NOT - 79 IS NULL
----
3
-43

skipif mysql # not compatible
query II rowsort label-7090
SELECT DISTINCT COUNT ( DISTINCT col2 ) AS col2, - 43 FROM tab2 AS cor0 WHERE NOT - 79 IS NULL
----
3
-43

query I rowsort
SELECT ALL - 77 FROM tab1 WHERE NOT + - 62 * + 79 + - 34 * + 6 + + col1 / col0 IS NULL
----
-77
-77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 * - 30 + + col0 col2 FROM tab0
----
-1673
-1683
-1755

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 94 NOT BETWEEN NULL AND NULL OR NOT - 93 * - 12 + - 21 + - 22 NOT IN ( - - col0, col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7095
SELECT - - col2 FROM tab2 WHERE + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7095
SELECT - - col2 FROM tab2 WHERE + CAST ( NULL AS REAL ) IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-7096
SELECT - CAST ( NULL AS INTEGER ) * col1 * col2 AS col2 FROM tab0 WHERE - col2 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 29 * + 34 + - + ( 77 ) + + - col1 + - - col1 FROM tab2 AS cor0
----
909

query I rowsort
SELECT ALL - 6 * - + 23 AS col1 FROM tab1 AS cor0
----
138
138
138

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

query II rowsort
SELECT DISTINCT col2 AS col2, 4 * + col2 + - - col0 FROM tab1
----
59
321
68
363
96
435

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

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

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

skipif mysql # not compatible
query I rowsort label-7102
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE ( - 73 ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7103
SELECT - 28 + - - ( + 81 ) - + CAST( - + 82 AS SIGNED ) FROM tab0 cor0
----
135
135
135

skipif mysql # not compatible
query I rowsort label-7103
SELECT - 28 + - - ( + 81 ) - + CAST ( - + 82 AS INTEGER ) FROM tab0 cor0
----
135
135
135

query I rowsort
SELECT DISTINCT 95 + col2 FROM tab0 AS cor0
----
105
142
194

query I rowsort
SELECT + - 22 + + + 5 FROM tab2 AS cor0
----
-17
-17
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7106
SELECT ALL + col1 + - + col2 * + col0 * 77 * ( CAST( + 30 AS SIGNED ) ) FROM tab2 AS cor0
----
-10048433
-2443929
-5913523

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL + col1 + - + col2 * + col0 * 77 * ( CAST ( + 30 AS INTEGER ) ) FROM tab2 AS cor0
----
-10048433
-2443929
-5913523

query I rowsort
SELECT - col2 * - - col0 + - col1 FROM tab0 AS cor0
----
-786
-891
-9604

query I rowsort
SELECT ALL 8 + - + 98 + 48 AS col2 FROM tab2 AS cor0
----
-42
-42
-42

query I rowsort
SELECT ALL col1 + 50 + + col0 FROM tab1 AS cor0
----
115
140
188

query I rowsort
SELECT ALL - 92 * col2 * - + col0 FROM tab0
----
64860
80040
883476

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

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

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

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

query II rowsort
SELECT ALL - 40, + ( 92 ) AS col1 FROM tab1
----
-40
92
-40
92
-40
92

query II rowsort
SELECT - col1, - ( - col1 ) + 43 AS col0 FROM tab0
----
-1
44
-21
64
-81
124

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT + MIN( ALL + - col1 ) * - COUNT( * ) col0 FROM tab2
----
231

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

query I rowsort
SELECT DISTINCT - + 97 + - 90 AS col2 FROM tab0 AS cor0
----
-187

onlyif mysql # DIV for integer division: 
query I rowsort label-7117
SELECT DISTINCT - 68 DIV - + 46 AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7117
SELECT DISTINCT - 68 / - + 46 AS col2 FROM tab2 AS cor0
----
1

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT + MIN( DISTINCT 2 ) AS col1 FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7122
SELECT + MIN ( DISTINCT 2 ) AS col1 FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT - + col1 FROM tab0 cor0 WHERE NULL BETWEEN + col0 AND + col2 + col2 / - col0
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7125
SELECT DISTINCT + 32 DIV - col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7125
SELECT DISTINCT + 32 / - col0 FROM tab2
----
0

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT + col1 BETWEEN NULL AND + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 80 NOT BETWEEN - 25 AND + - 54
----

query I rowsort
SELECT ALL - col0 * + - 37 + + col2 FROM tab1
----
1983
3204
3435

query I rowsort
SELECT 1 + - + col0 FROM tab2
----
-45
-63
-74

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

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

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

skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL + - col0 + + 52 + - + 46 + 31 * - 31 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - ( - + 77 ) col0 FROM tab2 AS cor0
----
100
117
135

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

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

query I rowsort
SELECT + col1 * 69 AS col2 FROM tab1
----
3243
345
966

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7135
SELECT DISTINCT SUM( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7137
SELECT * FROM tab2 AS cor0 WHERE CAST( - - 17 AS SIGNED ) NOT BETWEEN ( NULL ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7137
SELECT * FROM tab2 AS cor0 WHERE CAST ( - - 17 AS INTEGER ) NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT - 79 * + col1 * + + col1 * + 86 + col0 / + - 17 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( + + 71 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 64 * - 6 >= 10
----

query II rowsort
SELECT DISTINCT - 33, + col0 FROM tab1
----
-33
51
-33
85
-33
91

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN + 62 AND 57 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7145
SELECT CAST( + 31 AS SIGNED ) + - 79 + - col2 * + 8 + + 6 + col0, col2 AS col0 FROM tab1 WHERE NOT NULL > 72 * - + col1
----

skipif mysql # not compatible
query II rowsort label-7145
SELECT CAST ( + 31 AS INTEGER ) + - 79 + - col2 * + 8 + + 6 + col0, col2 AS col0 FROM tab1 WHERE NOT NULL > 72 * - + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 53 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7147
SELECT DISTINCT CAST( + + col2 AS SIGNED ) * + col1 * - col0 * + + 78 FROM tab0
----
-1425060
-4454190
-749034

skipif mysql # not compatible
query I rowsort label-7147
SELECT DISTINCT CAST ( + + col2 AS INTEGER ) * + col1 * - col0 * + + 78 FROM tab0
----
-1425060
-4454190
-749034

query II rowsort
SELECT + + col0 AS col0, col1 * 59 FROM tab0 AS cor0
----
15
4779
87
1239
97
59

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

query I rowsort
SELECT + 20 * + - 0 AS col1 FROM tab0
----
0
0
0

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

query I rowsort
SELECT ALL + 81 + - + 49 AS col1 FROM tab1 AS cor0
----
32
32
32

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

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

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

query I rowsort
SELECT 9 + + 37 AS col2 FROM tab0 AS cor0
----
46
46
46

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7159
SELECT - CAST( + + col0 AS SIGNED ) * - + col2 * col0 FROM tab0
----
10575
75690
931491

skipif mysql # not compatible
query I rowsort label-7159
SELECT - CAST ( + + col0 AS INTEGER ) * - + col2 * col0 FROM tab0
----
10575
75690
931491

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

query I rowsort
SELECT DISTINCT + 65 + + col1 AS col2 FROM tab2
----
116
132
142

query I rowsort
SELECT DISTINCT + col2 + - 27 + - + col2 * - - 9 AS col0 FROM tab2 AS cor0
----
-211
-347
-491

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7163
SELECT - col0 AS col2, + CAST( NULL AS SIGNED ) + + 80 AS col0 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-7163
SELECT - col0 AS col2, + CAST ( NULL AS INTEGER ) + + 80 AS col0 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT ALL + COUNT( * ) + + 32 AS col0 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-7164
SELECT ALL + COUNT ( * ) + + 32 AS col0 FROM tab0 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT DISTINCT MAX( DISTINCT col0 ) + + + 8 + 17 FROM tab0 AS cor0
----
122

skipif mysql # not compatible
query I rowsort label-7165
SELECT DISTINCT MAX ( DISTINCT col0 ) + + + 8 + 17 FROM tab0 AS cor0
----
122

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

query II rowsort
SELECT 89 * + + col1, - 95 AS col2 FROM tab2 AS cor0
----
4539
-95
5963
-95
6853
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT - SUM( - 99 ) AS col1 FROM tab2 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-7168
SELECT - SUM ( - 99 ) AS col1 FROM tab2 AS cor0
----
297

onlyif mysql # DIV for integer division: 
query I rowsort label-7169
SELECT ALL - 53 DIV col2 AS col0 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL - 53 / col2 AS col0 FROM tab2 AS cor0
----
-1
-2
0

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7172
SELECT - - MAX ( DISTINCT - - col2 ) col1 FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7173
SELECT ALL + col2 AS col1, CAST( NULL AS SIGNED ) * - col2 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-7173
SELECT ALL + col2 AS col1, CAST ( NULL AS INTEGER ) * - col2 FROM tab2
----
23
NULL
40
NULL
58
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - 55 / col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 42 NOT BETWEEN - col1 AND ( - col0 )
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 cor0 WHERE NOT col1 * + + col1 / - + 42 >= + ( col1 ) * + 36
----
51
67
77

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

skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT + COUNT ( + + col1 ) FROM tab1 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7178
SELECT - col1 DIV + col1 + col1 - - 47 AS col2 FROM tab0 cor0 WHERE NOT + col2 <= + - col1
----
127
47
67

skipif mysql # not compatible
query I rowsort label-7178
SELECT - col1 / + col1 + col1 - - 47 AS col2 FROM tab0 cor0 WHERE NOT + col2 <= + - col1
----
127
47
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7179
SELECT DISTINCT + CAST( + col1 AS SIGNED ) AS col2, + col0 FROM tab0
----
1
97
21
87
81
15

skipif mysql # not compatible
query II rowsort label-7179
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) AS col2, + col0 FROM tab0
----
1
97
21
87
81
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 31 col2 FROM tab0
----
112
32
52

onlyif mysql # DIV for integer division: 
query I rowsort label-7181
SELECT DISTINCT 37 + + col0 DIV - col2 FROM tab2
----
35
36

skipif mysql # not compatible
query I rowsort label-7181
SELECT DISTINCT 37 + + col0 / - col2 FROM tab2
----
35
36

query I rowsort
SELECT ALL + 14 AS col0 FROM tab1 AS cor0
----
14
14
14

query II rowsort
SELECT + col0, 85 * - - ( + + 90 ) AS col1 FROM tab0 AS cor0
----
15
7650
87
7650
97
7650

query I rowsort
SELECT DISTINCT - + col0 + - col1 AS col2 FROM tab1 AS cor0
----
-138
-65
-90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT DISTINCT 50 + - 24 + - - COUNT( * ) AS col2 FROM tab0 cor0
----
29

skipif mysql # not compatible
query I rowsort label-7186
SELECT DISTINCT 50 + - 24 + - - COUNT ( * ) AS col2 FROM tab0 cor0
----
29

query I rowsort
SELECT - col0 - + + col0 FROM tab2
----
-128
-150
-92

onlyif mysql # DIV for integer division: 
query II rowsort label-7188
SELECT ALL + col1 DIV 45 col2, - ( - - col2 ) AS col1 FROM tab0
----
0
-10
0
-99
1
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7188
SELECT ALL + col1 / 45 col2, - ( - - col2 ) AS col1 FROM tab0
----
0
-10
0
-99
1
-47

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

skipif mysql # not compatible
query I rowsort label-7189
SELECT DISTINCT - COUNT ( * ) * - ( - 50 ) FROM tab2
----
-150

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

query I rowsort
SELECT DISTINCT + col0 * + col0 - 98 FROM tab2 AS cor0
----
2018
3998
5527

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

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

query I rowsort
SELECT 59 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT DISTINCT - + 69 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-7195
SELECT DISTINCT - + 69 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
207

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7196
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, 23 + - ( - col1 ) FROM tab0 AS cor0
----
NULL
104
NULL
24
NULL
44

skipif mysql # not compatible
query II rowsort label-7196
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, 23 + - ( - col1 ) FROM tab0 AS cor0
----
NULL
104
NULL
24
NULL
44

query II rowsort
SELECT 93 AS col0, - col1 * + 91 AS col1 FROM tab2 cor0
----
93
-4641
93
-6097
93
-7007

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7199
SELECT CAST( + ( col1 ) AS SIGNED ), col2 + + ( - + col1 ) AS col0 FROM tab1 AS cor0
----
14
82
47
21
5
54

skipif mysql # not compatible
query II rowsort label-7199
SELECT CAST ( + ( col1 ) AS INTEGER ), col2 + + ( - + col1 ) AS col0 FROM tab1 AS cor0
----
14
82
47
21
5
54

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

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

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

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

query I rowsort
SELECT ( + + 72 ) AS col1 FROM tab1
----
72
72
72

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7207
SELECT 45 / + - col1 * + col1 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT 43 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT DISTINCT 47 * + ( + 26 ) AS col2 FROM tab0
----
1222

onlyif mysql # DIV for integer division: 
query I rowsort label-7210
SELECT DISTINCT + 80 DIV col1 + - col0 * - 28 FROM tab0 AS cor0
----
2439
2796
420

skipif mysql # not compatible
query I rowsort label-7210
SELECT DISTINCT + 80 / col1 + - col0 * - 28 FROM tab0 AS cor0
----
2439
2796
420

query I rowsort
SELECT + - col0 + - - 86 - + ( + col2 ) FROM tab2 AS cor0
----
-18
-47
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT - COUNT( * ) + + SUM( ALL col2 ) FROM tab2 AS cor0
----
118

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

query I rowsort
SELECT - - col2 + - 38 FROM tab1 cor0
----
21
30
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7214
SELECT + col1 + - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-7214
SELECT + col1 + - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT col0 + col1 - - col1 FROM tab1 AS cor0
----
185
79
95

query I rowsort
SELECT col0 + + - 57 FROM tab1 cor0
----
-6
28
34

query I rowsort
SELECT - 18 + col0 - + col2 * - + 63 AS col2 FROM tab0 AS cor0
----
2958
6316
699

query III rowsort
SELECT * FROM tab0 WHERE - 85 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 * + col0 col1 FROM tab1
----
2295
3825
4095

query I rowsort
SELECT ( + col1 ) * ( col2 ) FROM tab1
----
1344
295
3196

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

skipif mysql # not compatible
query I rowsort label-7221
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE ( NOT NULL > col0 )
----
0

query I rowsort
SELECT ALL + col0 + + col0 - + ( col1 ) FROM tab1 AS cor0
----
135
165
88

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

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

query I rowsort
SELECT DISTINCT - + col1 + 28 * + 52 AS col1 FROM tab0 AS cor0
----
1375
1435
1455

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT DISTINCT - MIN( DISTINCT col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-7226
SELECT DISTINCT - MIN ( DISTINCT col1 ) AS col2 FROM tab2
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-7227
SELECT ALL 5 DIV col2 * - 15 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL 5 / col2 * - 15 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE - ( - ( + 15 ) ) * - - ( - - 42 ) + col2 <= NULL
----

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

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

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

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

query I rowsort
SELECT + 85 * + 89 AS col1 FROM tab2
----
7565
7565
7565

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT - 51 * COUNT( * ) col1 FROM tab2
----
-153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7232
SELECT - 51 * COUNT ( * ) col1 FROM tab2
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7233
SELECT - + CAST( col0 AS SIGNED ), + 97 AS col2 FROM tab0 AS cor0
----
-15
97
-87
97
-97
97

skipif mysql # not compatible
query II rowsort label-7233
SELECT - + CAST ( col0 AS INTEGER ), + 97 AS col2 FROM tab0 AS cor0
----
-15
97
-87
97
-97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7234
SELECT + - 78 DIV + 94 * - - 27 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7234
SELECT + - 78 / + 94 * - - 27 FROM tab1 AS cor0
----
0
0
0

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7236
SELECT DISTINCT - col0 - col2 * - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7237
SELECT ALL + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 WHERE NOT col2 + + ( + 67 ) IS NULL
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT ALL - ( + 57 ) * + ( col0 ) FROM tab1 AS cor0
----
-2907
-4845
-5187

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

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

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

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL COUNT ( * ) FROM tab1 WHERE NULL = + col0
----
0

query II rowsort
SELECT ALL + + col1, - col1 + + - col2 FROM tab1 WHERE NULL IS NULL
----
14
-110
47
-115
5
-64

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + ( + col0 ) + + - 55 col1, col2 AS col0 FROM tab2
----
42
23
86
40
87
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < ( + - 71 ) / + col2 - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col0 + - 41 * col2 col0 FROM tab1
----
-2275
-2629
-3789

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7248
SELECT - 33 AS col0, - CAST( + SUM( DISTINCT col1 ) AS SIGNED ) FROM tab2
----
-33
-195

skipif mysql # not compatible
query II rowsort label-7248
SELECT - 33 AS col0, - CAST ( + SUM ( DISTINCT col1 ) AS INTEGER ) FROM tab2
----
-33
-195

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 51 > NULL
----

query I rowsort
SELECT DISTINCT + col0 + - 94 + - col1 * - - col1 + + col0 * col2 AS col2 FROM tab1 AS cor0
----
3976
4657
4981

query II rowsort
SELECT DISTINCT + col2 AS col2, 89 FROM tab0 AS cor0
----
10
89
47
89
99
89

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 73 - + + 35
----

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE + 32 + 33 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( col0 <> + 48 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-7256
SELECT DISTINCT + - col2 * + CAST ( NULL AS REAL ) + 7 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7257
SELECT ALL - + 99 DIV - - col1 + + + col1 + + col0 * + + col0 - + + 91 - - - col0 FROM tab1 AS cor0
----
2466
7035
8144

skipif mysql # not compatible
query I rowsort label-7257
SELECT ALL - + 99 / - - col1 + + + col1 + + col0 * + + col0 - + + 91 - - - col0 FROM tab1 AS cor0
----
2466
7035
8144

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7259
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 > + CAST( ( + col2 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7259
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 > + CAST ( ( + col2 ) AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 35 + col1 col2, col1 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN col1 * - col2 + 18 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT COUNT( - col1 ) - 5 AS col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
-5

skipif mysql # not compatible
query I rowsort label-7261
SELECT COUNT ( - col1 ) - 5 AS col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
-5

query I rowsort
SELECT ALL + + 66 - col0 + - - col2 - - + col2 + col1 * + col1 + - col0 FROM tab1 cor0
----
2229
352
39

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + col1 + + col1 + - ( - col0 ) col2 FROM tab0
----
108
96
98

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

query I rowsort
SELECT col2 + - col0 - + col1 FROM tab0
----
-49
-98
1

query I rowsort
SELECT 33 * - + col2 + 47 AS col1 FROM tab1
----
-1900
-2197
-3121

query I rowsort
SELECT col2 + + col2 - + col0 + 31 + - + col1 + 90 + 67 * + - col2 * + col2 * - 6 AS col0 FROM tab2
----
1352423
212728
643260

query I rowsort
SELECT col1 * col0 * + col1 + - - col2 FROM tab1
----
10092
201087
2184

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 + - + col1 col0 FROM tab2 cor0
----
-6
20
4

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

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

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

query I rowsort
SELECT DISTINCT + 81 * - col0 FROM tab1 AS cor0
----
-4131
-6885
-7371

onlyif mysql # DIV for integer division: 
query I rowsort label-7275
SELECT ALL col1 * - col0 DIV + + col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7275
SELECT ALL col1 * - col0 / + + col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7276
SELECT DISTINCT - - ( - + col0 ) DIV + col2 AS col0 FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT - - ( - + col0 ) / + col2 AS col0 FROM tab2 AS cor0
----
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-7277
SELECT DISTINCT col0 DIV + 92 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7277
SELECT DISTINCT col0 / + 92 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT + 82 * COUNT( ALL + ( - - 63 ) ) FROM tab1 cor0
----
246

skipif mysql # not compatible
query I rowsort label-7278
SELECT + 82 * COUNT ( ALL + ( - - 63 ) ) FROM tab1 cor0
----
246

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7280
SELECT ALL + 18 * - col1 - - ( col2 ) * col1 DIV 16 AS col2 FROM tab0 AS cor0
----
-12
-1221
-365

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL + 18 * - col1 - - ( col2 ) * col1 / 16 AS col2 FROM tab0 AS cor0
----
-12
-1221
-365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 78 + + 33 * + col0 * + col1 + - + 44 + - - col1 * - 95 col0 FROM tab0 AS cor0
----
3140
32434
58330

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

query I rowsort
SELECT col1 + - - ( + - col0 ) AS col1 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT - 88 = NULL
----

query I rowsort
SELECT DISTINCT + + 71 AS col2 FROM tab1 WHERE NULL <> - col2 * + 16
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < - col1 + + col2 * + 52 * - - col1
----

query II rowsort
SELECT ALL + col1 AS col1, col0 AS col0 FROM tab0 AS cor0 WHERE col2 + + 61 * + 94 <= + + ( - col0 )
----

query I rowsort
SELECT - 18 * + - col0 AS col2 FROM tab0 AS cor0
----
1566
1746
270

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT ALL + 37 + - 48 + + COUNT( * ) FROM tab0 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL + 37 + - 48 + + COUNT ( * ) FROM tab0 cor0
----
-8

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

query II rowsort
SELECT - col2 + + col0 - + col1 AS col0, 42 AS col0 FROM tab0 cor0
----
-113
42
-3
42
56
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT DISTINCT 69 - - 23 * + COUNT( * ) FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-7294
SELECT DISTINCT 69 - - 23 * + COUNT ( * ) FROM tab1 AS cor0
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-7295
SELECT DISTINCT 73 - - - ( 62 ) + - 87 DIV + 8 col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7295
SELECT DISTINCT 73 - - - ( 62 ) + - 87 / + 8 col2 FROM tab0 AS cor0
----
1

query II rowsort
SELECT - col2, + col0 + + col1 AS col2 FROM tab0 AS cor0
----
-10
108
-47
96
-99
98

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7297
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( + col0 * + col1, + ( - col0 ), + - CAST( - col0 AS SIGNED ) - + col2, + col0 / + + CAST( - col0 AS DECIMAL ) / + - col0 * 21 + + col1 )
----

skipif mysql # not compatible
query III rowsort label-7297
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( + col0 * + col1, + ( - col0 ), + - CAST ( - col0 AS INTEGER ) - + col2, + col0 / + + CAST ( - col0 AS REAL ) / + - col0 * 21 + + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7298
SELECT DISTINCT SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) col0 FROM tab0
----
NULL

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

query I rowsort
SELECT DISTINCT - ( - + 67 ) FROM tab2
----
67

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 BETWEEN - - 89 + - + 43 AND + col1 * col1 + - col2 / - + col0
----
85
5
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7301
SELECT - + COUNT( * ) FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) <= col2
----
0

skipif mysql # not compatible
query I rowsort label-7301
SELECT - + COUNT ( * ) FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) <= col2
----
0

query I rowsort
SELECT col2 * + + 30 FROM tab1
----
1770
2040
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT - 60 + 77 - SUM( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7303
SELECT - 60 + 77 - SUM ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7304
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( col1 AS SIGNED ) >= - 66 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7304
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( col1 AS INTEGER ) >= - 66 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7305
SELECT DISTINCT - 27 * + col0 * + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE + CAST( NULL AS DECIMAL ) IN ( 14 )
----

skipif mysql # not compatible
query I rowsort label-7305
SELECT DISTINCT - 27 * + col0 * + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE + CAST ( NULL AS REAL ) IN ( 14 )
----

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

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

skipif mysql # not compatible
query I rowsort label-7307
SELECT + SUM ( DISTINCT - - col1 ) FROM tab1
----
66

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

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

query I rowsort
SELECT ALL col0 * - ( col2 ) * 34 + - + col0 + - col2 * - + col0 AS col0 FROM tab1
----
-161619
-165580
-204295

query I rowsort
SELECT col2 * - + col2 * - col1 FROM tab2 AS cor0
----
123200
225388
26979

query I rowsort
SELECT ALL + + 32 * - col2 * col1 FROM tab1 AS cor0
----
-102272
-43008
-9440

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7313
SELECT + 60 DIV - col2 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7313
SELECT + 60 / - col2 AS col1 FROM tab1 AS cor0
----
-1
0
0

query II rowsort
SELECT + - col1, - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

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

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

query I rowsort
SELECT DISTINCT + + ( - 34 ) AS col2 FROM tab1 AS cor0
----
-34

query III rowsort
SELECT 89 AS col0, - 40, col2 FROM tab1
----
9 values hashing to e447d465e5619ead0c68d7cf1db7f592

query I rowsort
SELECT ALL + col0 * - col1 + + 77 FROM tab2 WHERE NULL IS NULL
----
-2269
-4851
-4948

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7320
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * + 96 * - col0 + - col2 < - CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7320
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * + 96 * - col0 + - col2 < - CAST ( - col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT DISTINCT ( - COUNT( * ) ) + + ( - + MAX( ALL 96 ) ) AS col0 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-7321
SELECT DISTINCT ( - COUNT ( * ) ) + + ( - + MAX ( ALL 96 ) ) AS col0 FROM tab1
----
-99

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

skipif mysql # not compatible
query I rowsort label-7322
SELECT ALL + MIN ( col1 ) + 18 FROM tab0
----
19

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

query I rowsort
SELECT DISTINCT 31 + + col2 - + col1 FROM tab1
----
113
52
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT + 10 + SUM( ALL + 66 ) FROM tab1
----
208

skipif mysql # not compatible
query I rowsort label-7325
SELECT + 10 + SUM ( ALL + 66 ) FROM tab1
----
208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7326
SELECT - - CAST( - 92 AS SIGNED ) + MIN( ALL + 97 ) FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7326
SELECT - - CAST ( - 92 AS INTEGER ) + MIN ( ALL + 97 ) FROM tab0 AS cor0
----
5

query I rowsort
SELECT DISTINCT + 63 * + - col2 + col2 AS col0 FROM tab1 AS cor0
----
-3658
-4216
-5952

query I rowsort
SELECT ALL + + 0 + 22 FROM tab1 AS cor0
----
22
22
22

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - ( col2 ) + + col2 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - col1 + - + col0 AS col0 FROM tab2 cor0
----
-8
13
5

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

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

query I rowsort
SELECT 20 * + 73 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 181755e648027b77522e781451148a5f

onlyif mysql # aggregate syntax: 
query II rowsort label-7337
SELECT DISTINCT 28 AS col0, - COUNT( * ) FROM tab0
----
28
-3

skipif mysql # not compatible
query II rowsort label-7337
SELECT DISTINCT 28 AS col0, - COUNT ( * ) FROM tab0
----
28
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7338
SELECT DISTINCT + COUNT( * ) AS col1, - 73 AS col1 FROM tab0
----
3
-73

skipif mysql # not compatible
query II rowsort label-7338
SELECT DISTINCT + COUNT ( * ) AS col1, - 73 AS col1 FROM tab0
----
3
-73

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

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

query I rowsort
SELECT ALL - - 77 AS col1 FROM tab1 AS cor0
----
77
77
77

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 <= + col0
----
15
81
47

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 BETWEEN + col1 AND ( + 43 )
----

query I rowsort
SELECT 43 AS col2 FROM tab1 WHERE NOT 54 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7346
SELECT ALL 36 DIV COUNT( col2 ) + COUNT( * ) AS col2 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-7346
SELECT ALL 36 / COUNT ( col2 ) + COUNT ( * ) AS col2 FROM tab2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT ALL COUNT( - 14 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7347
SELECT ALL COUNT ( - 14 ) FROM tab1
----
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7349
SELECT ALL CAST( - 88 AS SIGNED ) * - ( + ( col0 ) ) AS col2 FROM tab1
----
4488
7480
8008

skipif mysql # not compatible
query I rowsort label-7349
SELECT ALL CAST ( - 88 AS INTEGER ) * - ( + ( col0 ) ) AS col2 FROM tab1
----
4488
7480
8008

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 <= - ( + 82 )
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL AVG ( DISTINCT - col1 ) col2 FROM tab2 WHERE NOT + col2 * - 75 <> ( + 89 )
----
NULL

query I rowsort
SELECT + 31 FROM tab0 WHERE NOT + col0 IS NULL
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT - SUM( 9 ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-7353
SELECT - SUM ( 9 ) FROM tab0
----
-27

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 WHERE NOT NULL BETWEEN + 71 AND ( - col0 * 85 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT DISTINCT + 25 - COUNT( * ) AS col2 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-7355
SELECT DISTINCT + 25 - COUNT ( * ) AS col2 FROM tab1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT + 54 * - COUNT( * ) AS col1 FROM tab1
----
-162

skipif mysql # not compatible
query I rowsort label-7356
SELECT + 54 * - COUNT ( * ) AS col1 FROM tab1
----
-162

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

query I rowsort
SELECT + 8 / - col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 99 + 11 FROM tab0
----
110

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE + 34 * col1 >= + 45
----
3

skipif mysql # not compatible
query I rowsort label-7361
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE + 34 * col1 >= + 45
----
3

query I rowsort
SELECT DISTINCT + ( ( - 3 ) ) FROM tab1
----
-3

query I rowsort
SELECT + 51 * - col0 FROM tab0
----
-4437
-4947
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT ( + 36 ) + + COUNT( * ) AS col2 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-7364
SELECT ( + 36 ) + + COUNT ( * ) AS col2 FROM tab1
----
39

query I rowsort
SELECT ALL + 63 * - 80 AS col0 FROM tab2
----
-5040
-5040
-5040

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT MIN( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7367
SELECT MIN ( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL - col0 * + 33 FROM tab1 AS cor0
----
-1683
-2805
-3003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7369
SELECT 37 - 29 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7369
SELECT 37 - 29 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT ( NULL ) = + col1
----
0

skipif mysql # not compatible
query I rowsort label-7370
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) = + col1
----
0

query I rowsort
SELECT 42 + + col0 AS col1 FROM tab1
----
127
133
93

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 72 * 74 col1 FROM tab1 AS cor0
----
5333
5342
5375

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 16 - 81 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7376
SELECT DISTINCT - 28 DIV + 29 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7376
SELECT DISTINCT - 28 / + 29 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col0 * 22 col0 FROM tab1 AS cor0
----
-1108
-1865
-1955

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7379
SELECT * FROM tab1 cor0 WHERE NOT 68 * CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7379
SELECT * FROM tab1 cor0 WHERE NOT 68 * CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7380
SELECT + col2 DIV ( - 40 ) FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7380
SELECT + col2 / ( - 40 ) FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT SUM( col2 ) * COUNT( * ) col1 FROM tab2 AS cor0
----
363

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7381
SELECT SUM ( col2 ) * COUNT ( * ) col1 FROM tab2 AS cor0
----
363

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

query I rowsort
SELECT ALL + col1 * + 38 FROM tab0 AS cor0
----
3078
38
798

onlyif mysql # DIV for integer division: 
query I rowsort label-7384
SELECT + + ( - col1 ) DIV - col1 col1 FROM tab1 AS cor0
----
1
1
1

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * col0 > + col0 / col0 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT DISTINCT COUNT( * ) * + - SUM( ALL col2 ) FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-7388
SELECT DISTINCT COUNT ( * ) * + - SUM ( ALL col2 ) FROM tab0
----
-468

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7391
SELECT DISTINCT COUNT( * ) DIV MIN( ALL - col0 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7391
SELECT DISTINCT COUNT ( * ) / MIN ( ALL - col0 ) AS col0 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 ) IN ( + ( col2 ) + 61 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7393
SELECT ALL - col0 AS col1 FROM tab1 WHERE ( col0 DIV col2 ) = + col0 DIV col0
----
-85
-91

skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL - col0 AS col1 FROM tab1 WHERE ( col0 / col2 ) = + col0 / col0
----
-85
-91

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

query I rowsort
SELECT - ( + + 51 ) * col2 FROM tab2
----
-1173
-2040
-2958

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT - 33 * - MAX( col2 ) col2 FROM tab1
----
3168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7397
SELECT - 33 * - MAX ( col2 ) col2 FROM tab1
----
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT ALL SUM( + 52 ) AS col0 FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL SUM ( + 52 ) AS col0 FROM tab2 AS cor0
----
156

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

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

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

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

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

query I rowsort
SELECT - + 93 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 BETWEEN col1 - ( col0 ) AND 47
----
51
14
96
91
47
68

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7407
SELECT + CAST( col2 AS SIGNED ) AS col1 FROM tab2 WHERE NOT 41 IN ( - col1 )
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7407
SELECT + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 WHERE NOT 41 IN ( - col1 )
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 87 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-87

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

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

query I rowsort
SELECT - + ( - + 44 ) FROM tab1 cor0
----
44
44
44

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT ALL + SUM( - 38 ) col2 FROM tab2 AS cor0
----
-114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7413
SELECT ALL + SUM ( - 38 ) col2 FROM tab2 AS cor0
----
-114

query I rowsort
SELECT - - 50 * - 17 FROM tab0 AS cor0
----
-850
-850
-850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7415
SELECT DISTINCT + CAST( col2 AS SIGNED ) * 85 FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN col1 AND - 88
----

skipif mysql # not compatible
query I rowsort label-7415
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * 85 FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN col1 AND - 88
----

query I rowsort
SELECT ALL - col0 * col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( col0 + + - col0 + + col0 * 13 ) IS NULL
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query II rowsort label-7417
SELECT - ( - + COUNT( * ) ) AS col0, + 55 AS col0 FROM tab0
----
3
55

skipif mysql # not compatible
query II rowsort label-7417
SELECT - ( - + COUNT ( * ) ) AS col0, + 55 AS col0 FROM tab0
----
3
55

query I rowsort
SELECT DISTINCT col1 + col0 FROM tab2 WHERE NOT ( col0 ) IS NULL
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT ALL MIN( DISTINCT + 68 ) FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-7419
SELECT ALL MIN ( DISTINCT + 68 ) FROM tab0
----
68

query I rowsort
SELECT - 38 + - + col1 AS col1 FROM tab0
----
-119
-39
-59

query I rowsort
SELECT + 56 + col2 AS col2 FROM tab0
----
103
155
66

query I rowsort
SELECT - col0 + + col0 * - col1 FROM tab0
----
-1230
-1914
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT + COUNT( * ) * - 7 + - - MAX( + 52 ) AS col2 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-7423
SELECT + COUNT ( * ) * - 7 + - - MAX ( + 52 ) AS col2 FROM tab0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7424
SELECT DISTINCT col0 + CAST( + col1 AS SIGNED ) col0 FROM tab1
----
138
65
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7424
SELECT DISTINCT col0 + CAST ( + col1 AS INTEGER ) col0 FROM tab1
----
138
65
90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT DISTINCT + COUNT( - col1 ) AS col0 FROM tab0 WHERE NOT + 50 <> + - col0
----
0

skipif mysql # not compatible
query I rowsort label-7427
SELECT DISTINCT + COUNT ( - col1 ) AS col0 FROM tab0 WHERE NOT + 50 <> + - col0
----
0

query I rowsort
SELECT 55 * - col0 FROM tab1
----
-2805
-4675
-5005

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

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

query I rowsort
SELECT ALL - + 99 * - - col2 FROM tab1 cor0
----
-5841
-6732
-9504

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT ALL + COUNT( * ) * - COUNT( * ) + + 66 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-7433
SELECT ALL + COUNT ( * ) * - COUNT ( * ) + + 66 FROM tab1 AS cor0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7434
SELECT DISTINCT - 52 DIV + SUM( 33 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7434
SELECT DISTINCT - 52 / + SUM ( 33 ) FROM tab0 cor0
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7436
SELECT DISTINCT + CAST( NULL AS SIGNED ) * ( - COUNT( * ) ) * - SUM( DISTINCT col0 ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7436
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * ( - COUNT ( * ) ) * - SUM ( DISTINCT col0 ) col1 FROM tab1 AS cor0
----
NULL

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col1 / + - 67 * 27 ) <= 57
----

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

query I rowsort
SELECT ALL col2 * + - col0 FROM tab2
----
-1058
-2560
-4350

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE 87 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7444
SELECT ALL + 90 * + COUNT( * ) AS col2, 97 AS col0 FROM tab2
----
270
97

skipif mysql # not compatible
query II rowsort label-7444
SELECT ALL + 90 * + COUNT ( * ) AS col2, 97 AS col0 FROM tab2
----
270
97

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

query I rowsort
SELECT col0 * - 17 * col1 FROM tab0
----
-1649
-20655
-31059

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7448
SELECT DISTINCT - MIN ( DISTINCT + - col2 ) col2 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT DISTINCT + SUM( DISTINCT col0 ) * - COUNT( * ) FROM tab2 AS cor0
----
-555

skipif mysql # not compatible
query I rowsort label-7449
SELECT DISTINCT + SUM ( DISTINCT col0 ) * - COUNT ( * ) FROM tab2 AS cor0
----
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT + 34 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-7450
SELECT + 34 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-102

query II rowsort
SELECT col2, + col0 + - - 67 AS col0 FROM tab2 cor0
----
23
113
40
131
58
142

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7453
SELECT ALL - ( + AVG ( col0 ) ) FROM tab1 AS cor0 WHERE NOT NULL <= - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL - ( + AVG ( col0 ) ) FROM tab1 AS cor0 WHERE NOT NULL <= - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL col0 + + 48 * + col0 FROM tab1 AS cor0
----
2499
4165
4459

query I rowsort
SELECT - - col0 + - - 94 + + col0 AS col1 FROM tab2 cor0
----
186
222
244

query I rowsort
SELECT - 73 + + col0 FROM tab1 AS cor0
----
-22
12
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT DISTINCT + - 71 * - + ( - + COUNT( * ) ) FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-7457
SELECT DISTINCT + - 71 * - + ( - + COUNT ( * ) ) FROM tab2 AS cor0
----
-213

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7458
SELECT DISTINCT - 64 AS col1, CAST( NULL AS SIGNED ) * - col1 + - + col0 * ( - col0 ) + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-7458
SELECT DISTINCT - 64 AS col1, CAST ( NULL AS INTEGER ) * - col1 + - + col0 * ( - col0 ) + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - 74 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7460
SELECT - 58 + 50 DIV - 40 AS col0 FROM tab2 AS cor0
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-7460
SELECT - 58 + 50 / - 40 AS col0 FROM tab2 AS cor0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT - COUNT( * ) * + 13 col0 FROM tab2
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7461
SELECT - COUNT ( * ) * + 13 col0 FROM tab2
----
-39

query II rowsort
SELECT ALL - + col0 / + col1 + + col0 AS col2, 31 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 20 + + - 1 * - + col1 col1, - 53 AS col0 FROM tab1
----
25
-53
34
-53
67
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7465
SELECT DISTINCT + CAST( 20 AS SIGNED ) AS col2 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-7465
SELECT DISTINCT + CAST ( 20 AS INTEGER ) AS col2 FROM tab1
----
20

query I rowsort
SELECT DISTINCT col1 + - col0 + - - 62 FROM tab0
----
-34
-4
128

query I rowsort
SELECT DISTINCT col0 + 46 FROM tab2 AS cor0
----
110
121
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7468
SELECT 25 - + ( + 83 ) DIV 2 FROM tab1 AS cor0
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-7468
SELECT 25 - + ( + 83 ) / 2 FROM tab1 AS cor0
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT DISTINCT + 14 - - - COUNT( DISTINCT 14 ) col2 FROM tab0 AS cor0
----
13

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

query I rowsort
SELECT DISTINCT + 31 * - col1 + - col0 FROM tab1 AS cor0
----
-1548
-240
-485

query I rowsort
SELECT + - col0 * + + col0 + col1 FROM tab0 AS cor0
----
-144
-7548
-9408

query I rowsort
SELECT col1 + + 32 - - 52 FROM tab1
----
131
89
98

query I rowsort
SELECT ALL - + 9 AS col1 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + 44 col0 FROM tab2 AS cor0
----
-2024
-2816
-3300

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 36 >= + col0
----
87
21
10
97
1
99

query I rowsort
SELECT 47 * + 77 FROM tab1 AS cor0
----
3619
3619
3619

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

query II rowsort
SELECT DISTINCT col0 * 11, - col1 - 31 AS col1 FROM tab1 AS cor0 WHERE col2 / col0 / + - col0 NOT IN ( + col1 )
----
1001
-78
561
-45
935
-36

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 71 ) NOT IN ( 89, 61, col2 )
----

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

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

query I rowsort
SELECT DISTINCT 20 * ( + + 50 ) AS col2 FROM tab0
----
1000

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 44 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT DISTINCT COUNT( * ) * - 75 FROM tab0 WHERE NOT NULL IN ( 12 )
----
0

skipif mysql # not compatible
query I rowsort label-7487
SELECT DISTINCT COUNT ( * ) * - 75 FROM tab0 WHERE NOT NULL IN ( 12 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7488
SELECT DISTINCT - 46 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7488
SELECT DISTINCT - 46 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT + - 44 FROM tab1 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 26 * + col2 * col1 AS col2 FROM tab2
----
101036
30498
80080

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 93 * + col1 <= - 25
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7492
SELECT DISTINCT - col0 DIV + - 63 AS col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7492
SELECT DISTINCT - col0 / + - 63 AS col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT - col0 * + ( + - col2 ) + + 94 FROM tab0 AS cor0
----
799
964
9697

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

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

query I rowsort
SELECT DISTINCT 72 + - col1 + - 51 + 3 AS col1 FROM tab2
----
-27
-43
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7496
SELECT DISTINCT AVG ( ALL CAST( NULL AS SIGNED ) ) + + - SUM( ALL 49 ) + - - 63 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7496
SELECT DISTINCT AVG ( ALL CAST ( NULL AS INTEGER ) ) + + - SUM ( ALL 49 ) + - - 63 FROM tab2 AS cor0
----
NULL

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

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

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

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

query II rowsort
SELECT col0 AS col1, - col1 + + col1 FROM tab2 AS cor0
----
46
0
64
0
75
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7501
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7501
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 >= - 2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT - - col0 FROM tab2 WHERE - - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7505
SELECT ALL CAST( 94 AS SIGNED ) AS col2 FROM tab1
----
94
94
94

skipif mysql # not compatible
query I rowsort label-7505
SELECT ALL CAST ( 94 AS INTEGER ) AS col2 FROM tab1
----
94
94
94

query I rowsort
SELECT + 24 + + ( + 15 ) - - - col0 AS col1 FROM tab0
----
-48
-58
24

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7508
SELECT col1 + - CAST( - - col2 AS SIGNED ) * - 16 * - col0 AS col2, + 71 AS col1 FROM tab2
----
-16877
71
-40883
71
-69533
71

skipif mysql # not compatible
query II rowsort label-7508
SELECT col1 + - CAST ( - - col2 AS INTEGER ) * - 16 * - col0 AS col2, + 71 AS col1 FROM tab2
----
-16877
71
-40883
71
-69533
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT DISTINCT + + COUNT( * ) + 80 - + - COUNT( * ) AS col2 FROM tab1 cor0
----
86

skipif mysql # not compatible
query I rowsort label-7509
SELECT DISTINCT + + COUNT ( * ) + 80 - + - COUNT ( * ) AS col2 FROM tab1 cor0
----
86

query I rowsort
SELECT DISTINCT + - 81 * + 55 * - col2 + col1 AS col2 FROM tab0 AS cor0
----
209466
441046
44571

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

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

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

query I rowsort
SELECT - 62 * + + 11 FROM tab2
----
-682
-682
-682

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT + MIN( ALL - + 67 ) AS col1 FROM tab1 WHERE NOT NULL > col2 + - - col1 / col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7514
SELECT + MIN ( ALL - + 67 ) AS col1 FROM tab1 WHERE NOT NULL > col2 + - - col1 / col0
----
NULL

query I rowsort
SELECT - 92 - + 39 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e9fc6b8f48d9b7b1ab7d24aa342273b9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * - col0 + + col0 col1 FROM tab2 cor0
----
2392
4992
5100

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

query I rowsort
SELECT DISTINCT + col0 * - 70 FROM tab0 cor0
----
-1050
-6090
-6790

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7520
SELECT + 48 DIV + MIN( ALL + col1 ), COUNT( * ) AS col2 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-7520
SELECT + 48 / + MIN ( ALL + col1 ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0
3

query II rowsort
SELECT - 18 AS col0, - col2 AS col1 FROM tab0 AS cor0
----
-18
-10
-18
-47
-18
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT COUNT( * ) + COUNT( * ) + - COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7523
SELECT COUNT ( * ) + COUNT ( * ) + - COUNT ( * ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7524
SELECT col0 DIV + ( - + 29 ) + + 31, + 35 * 40 AS col1 FROM tab2
----
29
1400
29
1400
30
1400

skipif mysql # not compatible
query II rowsort label-7524
SELECT col0 / + ( - + 29 ) + + 31, + 35 * 40 AS col1 FROM tab2
----
29
1400
29
1400
30
1400

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT - COUNT( * ) FROM tab1 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7526
SELECT - COUNT ( * ) FROM tab1 WHERE NOT NULL >= NULL
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + + col1 AND NULL
----

query I rowsort
SELECT ALL col1 * 65 + col1 * + 2 FROM tab1
----
3149
335
938

query I rowsort
SELECT + + 52 * col2 AS col2 FROM tab2 AS cor0
----
1196
2080
3016

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE - 84 * - col0 NOT IN ( + col1, 74 * + col1 * - 46 )
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 6 + col0 + + col1 col2 FROM tab0 AS cor0
----
102
104
114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) * + col1 col0 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE + 84 IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 <= + - 49
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 * + col2 FROM tab2 AS cor0 WHERE NOT 63 NOT IN ( - + col2 * + + 17 + col0 )
----

query I rowsort
SELECT + 19 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query II rowsort
SELECT ALL - 39 - - col0 * - col1 AS col2, col0 AS col1 FROM tab0 AS cor0
----
-1254
15
-136
97
-1866
87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + - col2 * - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7540
SELECT ALL - CAST( NULL AS SIGNED ) * + 55 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL - CAST ( NULL AS INTEGER ) * + 55 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col1 + - + col0 + - col2, + 19 AS col0 FROM tab0 cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT - + MIN( col1 ) AS col1 FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7542
SELECT - + MIN ( col1 ) AS col1 FROM tab2 cor0
----
-51

query II rowsort
SELECT - - col0 AS col1, + 83 * - 79 * col0 + col2 AS col1 FROM tab2 AS cor0
----
46
-301599
64
-419608
75
-491717

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 ) = - 30
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 NOT BETWEEN NULL AND 36 + - ( + - col1 )
----

query I rowsort
SELECT ( + + 47 ) * - 21 FROM tab1
----
-987
-987
-987

onlyif mysql # DIV for integer division: 
query I rowsort label-7547
SELECT DISTINCT + col0 * 83 * + + 45 DIV 15 FROM tab1
----
12699
21165
22659

skipif mysql # not compatible
query I rowsort label-7547
SELECT DISTINCT + col0 * 83 * + + 45 / 15 FROM tab1
----
12699
21165
22659

query I rowsort
SELECT - + col0 + - - col2 * + col1 AS col2 FROM tab0 WHERE - - 73 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 * + col1 + + col0 AS col0 FROM tab2 AS cor0 WHERE ( 39 ) IS NOT NULL
----
2647
4564
5993

onlyif mysql # DIV for integer division: 
query I rowsort label-7550
SELECT + + 75 DIV + col2 AS col1 FROM tab2 cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-7550
SELECT + + 75 / + col2 AS col1 FROM tab2 cor0
----
1
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT MAX( DISTINCT - - col2 ) * MIN( 40 ) FROM tab0 AS cor0
----
3960

skipif mysql # not compatible
query I rowsort label-7551
SELECT MAX ( DISTINCT - - col2 ) * MIN ( 40 ) FROM tab0 AS cor0
----
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT - - COUNT( * ) * + 70 FROM tab2 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-7552
SELECT - - COUNT ( * ) * + 70 FROM tab2 AS cor0
----
210

onlyif mysql # aggregate syntax: 
query II rowsort label-7553
SELECT DISTINCT - - MAX( + - col2 ), - 41 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 * + col1 IS NULL
----
-59
-41

skipif mysql # not compatible
query II rowsort label-7553
SELECT DISTINCT - - MAX ( + - col2 ), - 41 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 * + col1 IS NULL
----
-59
-41

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 < + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7555
SELECT ALL - CAST( 51 AS SIGNED ) FROM tab1
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL - CAST ( 51 AS INTEGER ) FROM tab1
----
-51
-51
-51

query II rowsort
SELECT ALL col2 AS col1, 33 AS col2 FROM tab0
----
10
33
47
33
99
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT SUM( DISTINCT - ( ( - col0 ) ) ) col0 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7557
SELECT SUM ( DISTINCT - ( ( - col0 ) ) ) col0 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT MAX( + col2 ) col0 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7558
SELECT MAX ( + col2 ) col0 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7559
SELECT DISTINCT COUNT( * ) + - MAX( ALL + - col2 ) + + - 99 AS col2, - 49 col0 FROM tab1
----
-37
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7559
SELECT DISTINCT COUNT ( * ) + - MAX ( ALL + - col2 ) + + - 99 AS col2, - 49 col0 FROM tab1
----
-37
-49

query I rowsort
SELECT - + 70 + + + 45 * col2 FROM tab1 AS cor0
----
2585
2990
4250

query II rowsort
SELECT DISTINCT + col0, - col2 AS col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query I rowsort
SELECT - 25 - - 40 AS col2 FROM tab1 AS cor0
----
15
15
15

query I rowsort
SELECT ALL + 91 + 99 FROM tab1 AS cor0
----
190
190
190

query I rowsort
SELECT ALL - 13 FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col0 FROM tab0 AS cor0 WHERE NULL <> col0
----

query I rowsort
SELECT - col0 + + col2 - col1 AS col2 FROM tab1 AS cor0
----
-31
-70
31

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 IN ( + - col0, ( col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT DISTINCT + 78 * - + MIN( ALL + + 82 ) AS col2 FROM tab0
----
-6396

skipif mysql # not compatible
query I rowsort label-7568
SELECT DISTINCT + 78 * - + MIN ( ALL + + 82 ) AS col2 FROM tab0
----
-6396

query I rowsort
SELECT ALL + col1 - + + col1 - + 33 * col0 FROM tab0
----
-2871
-3201
-495

query I rowsort
SELECT ( + col1 ) * + + col1 * + col2 FROM tab2
----
237160
260362
59823

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab2 WHERE NOT col1 * + 88 * + - col1 > + 88
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7572
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT col1 <> col2 / + CAST( NULL AS SIGNED ) * - - col2
----
0

skipif mysql # not compatible
query I rowsort label-7572
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT col1 <> col2 / + CAST ( NULL AS INTEGER ) * - - col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7573
SELECT - COUNT( col0 ) DIV - 39 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7573
SELECT - COUNT ( col0 ) / - 39 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT + ( - ( + COUNT( * ) ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7574
SELECT + ( - ( + COUNT ( * ) ) ) AS col1 FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7575
SELECT DISTINCT - SUM( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7575
SELECT DISTINCT - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 51 * - col1 col1 FROM tab1 cor0
----
-2397
-255
-714

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7577
SELECT ALL - col0 * - col1 * - col0, ( + CAST( NULL AS SIGNED ) ) FROM tab1 WHERE ( col2 * col2 * + col0 * - 11 BETWEEN NULL AND + col2 )
----

skipif mysql # not compatible
query II rowsort label-7577
SELECT ALL - col0 * - col1 * - col0, ( + CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE ( col2 * col2 * + col0 * - 11 BETWEEN NULL AND + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7578
SELECT DISTINCT * FROM tab2 WHERE NOT - - CAST( col0 AS SIGNED ) * - + 74 = - col2 - - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7578
SELECT DISTINCT * FROM tab2 WHERE NOT - - CAST ( col0 AS INTEGER ) * - + 74 = - col2 - - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * - - col0 + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
752
880
9702

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7580
SELECT - - col1, - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-7580
SELECT - - col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7581
SELECT - 70 AS col1, + COUNT( * ) col1 FROM tab0 AS cor0
----
-70
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7581
SELECT - 70 AS col1, + COUNT ( * ) col1 FROM tab0 AS cor0
----
-70
3

query I rowsort
SELECT - - col0 + + ( - + col1 ) FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT + 83 + COUNT( - col1 ) AS col2 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-7583
SELECT + 83 + COUNT ( - col1 ) AS col2 FROM tab0 AS cor0
----
86

query I rowsort
SELECT ALL + col1 * col2 + 91 FROM tab1 AS cor0
----
1435
3287
386

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT DISTINCT - + MIN( + - 34 ) AS col2 FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-7585
SELECT DISTINCT - + MIN ( + - 34 ) AS col2 FROM tab1 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT + MIN( - 7 ) + COUNT( * ) + - 46 * + 99 AS col0 FROM tab0
----
-4558

skipif mysql # not compatible
query I rowsort label-7586
SELECT + MIN ( - 7 ) + COUNT ( * ) + - 46 * + 99 AS col0 FROM tab0
----
-4558

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT + SUM( + 83 ) + 20 FROM tab1
----
269

skipif mysql # not compatible
query I rowsort label-7587
SELECT + SUM ( + 83 ) + 20 FROM tab1
----
269

query II rowsort
SELECT - 57 + + col1 AS col1, col1 AS col0 FROM tab0
----
-36
21
-56
1
24
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT DISTINCT ( - COUNT( DISTINCT col0 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT ( - COUNT ( DISTINCT col0 ) ) FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7590
SELECT DISTINCT ( + 62 ) + + + ( + + col0 ) DIV col2 FROM tab1
----
62
63

skipif mysql # not compatible
query I rowsort label-7590
SELECT DISTINCT ( + 62 ) + + + ( + + col0 ) / col2 FROM tab1
----
62
63

query I rowsort
SELECT + + 69 FROM tab1 WHERE - - col2 IS NOT NULL
----
69
69
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7592
SELECT ALL 43 + + CAST( MAX( - col2 ) AS SIGNED ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL 43 + + CAST ( MAX ( - col2 ) AS INTEGER ) FROM tab0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT DISTINCT - - COUNT( * ) + - MAX( + - col0 ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7593
SELECT DISTINCT - - COUNT ( * ) + - MAX ( + - col0 ) FROM tab1 AS cor0
----
54

query I rowsort
SELECT DISTINCT - 75 + + + ( 85 ) AS col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT col2 + col1 + + + 12 * + col0 * - 66 AS col1 FROM tab2
----
-36358
-50571
-59275

query I rowsort
SELECT 91 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT - + 84 * col1 FROM tab1 AS cor0
----
-1176
-3948
-420

onlyif mysql # DIV for integer division: 
query I rowsort label-7598
SELECT 19 DIV 74 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7598
SELECT 19 / 74 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 - - col2 + + - col2 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT ALL - COUNT( DISTINCT + 39 ) FROM tab0 cor0 WHERE NULL IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL - COUNT ( DISTINCT + 39 ) FROM tab0 cor0 WHERE NULL IS NULL
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT + 55 * - + COUNT( * ) + - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-7601
SELECT + 55 * - + COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7602
SELECT ALL * FROM tab1 WHERE NOT CAST( + 58 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7602
SELECT ALL * FROM tab1 WHERE NOT CAST ( + 58 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT MIN( DISTINCT 75 ) AS col1 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-7603
SELECT MIN ( DISTINCT 75 ) AS col1 FROM tab1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7604
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7604
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT + ( COUNT( DISTINCT col0 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7605
SELECT + ( COUNT ( DISTINCT col0 ) ) FROM tab2
----
3

query I rowsort
SELECT + 20 * - 86 * - - col2 FROM tab1 AS cor0
----
-101480
-116960
-165120

query III rowsort
SELECT ALL * FROM tab0 WHERE 23 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7608
SELECT ALL - 57, + COUNT( * ) AS col1 FROM tab1
----
-57
3

skipif mysql # not compatible
query II rowsort label-7608
SELECT ALL - 57, + COUNT ( * ) AS col1 FROM tab1
----
-57
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 94 * - col1 IS NULL
----

query II rowsort
SELECT - 10, + col1 + - 61 AS col0 FROM tab0 AS cor0 WHERE NOT 71 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7611
SELECT MAX( ( + + col0 ) ), + 85 * - - 51 AS col0 FROM tab0 cor0
----
97
4335

skipif mysql # not compatible
query II rowsort label-7611
SELECT MAX ( ( + + col0 ) ), + 85 * - - 51 AS col0 FROM tab0 cor0
----
97
4335

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7612
SELECT * FROM tab2 AS cor0 WHERE NULL <= - CAST( + 72 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7612
SELECT * FROM tab2 AS cor0 WHERE NULL <= - CAST ( + 72 AS REAL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7613
SELECT ALL 80 DIV - 54 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7613
SELECT ALL 80 / - 54 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7614
SELECT ALL + col0 DIV 65 AS col2 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL + col0 / 65 AS col2 FROM tab0 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7615
SELECT + 57 DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-7615
SELECT + 57 / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-19

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7616
SELECT ALL col1 col2, + CAST( NULL AS DECIMAL ), + + col1 AS col2 FROM tab1
----
9 values hashing to 4f7a1076af834345e33c3fada57fe521

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-7616
SELECT ALL col1 col2, + CAST ( NULL AS REAL ), + + col1 AS col2 FROM tab1
----
9 values hashing to 4f7a1076af834345e33c3fada57fe521

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7617
SELECT ALL CAST( NULL AS SIGNED ) + + + SUM( col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7617
SELECT ALL CAST ( NULL AS INTEGER ) + + + SUM ( col1 ) FROM tab1
----
NULL

query I rowsort
SELECT col0 + + 15 FROM tab0
----
102
112
30

onlyif mysql # aggregate syntax: 
query III rowsort label-7619
SELECT ALL COUNT( * ) AS col2, 86 * + + ( + + 46 ) AS col1, - 77 AS col2 FROM tab2
----
3
3956
-77

skipif mysql # not compatible
query III rowsort label-7619
SELECT ALL COUNT ( * ) AS col2, 86 * + + ( + + 46 ) AS col1, - 77 AS col2 FROM tab2
----
3
3956
-77

query II rowsort
SELECT ALL + col2 + + - col1 AS col2, - col2 FROM tab2
----
-28
-23
-37
-40
-9
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( - col1 ) + - col1 * - - col1 * - col1 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT col0 + + 69, + col1 AS col0 FROM tab1
----
120
14
154
5
160
47

query I rowsort
SELECT DISTINCT + - 23 + - - 91 + + col2 AS col2 FROM tab1 AS cor0
----
127
136
164

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 63 IS NULL
----

query I rowsort
SELECT ALL col2 * col2 FROM tab0 WHERE NOT - col0 IN ( 77, + col2, - + col1 )
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT + - MAX( + - ( + col0 ) ) - 93 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-7626
SELECT + - MAX ( + - ( + col0 ) ) - 93 FROM tab0 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT ALL - COUNT( * ) + - 10 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL - COUNT ( * ) + - 10 FROM tab0 AS cor0
----
-13

query I rowsort
SELECT DISTINCT + col2 * 99 AS col2 FROM tab1 AS cor0
----
5841
6732
9504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 * + ( + - col0 ) * - col2 col2 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT - - ( + col0 ) * col2 AS col0 FROM tab1 cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT ALL + SUM( DISTINCT 63 ) AS col0 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL + SUM ( DISTINCT 63 ) AS col0 FROM tab0
----
63

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col2 * - - 62 NOT BETWEEN + + col1 AND + 40
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col1 col0 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT + SUM( DISTINCT - col2 ) * - COUNT( * ) * - COUNT( * ) * - + COUNT( * ) + 6 FROM tab2
----
3273

skipif mysql # not compatible
query I rowsort label-7634
SELECT + SUM ( DISTINCT - col2 ) * - COUNT ( * ) * - COUNT ( * ) * - + COUNT ( * ) + 6 FROM tab2
----
3273

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 2 * + col0 <> + col2
----

query I rowsort
SELECT DISTINCT - 73 * - col0 * 71 AS col1 FROM tab2
----
238418
331712
388725

query I rowsort
SELECT ALL - col2 * + - 86 FROM tab2 cor0
----
1978
3440
4988

query I rowsort
SELECT DISTINCT ( - 25 ) AS col2 FROM tab1
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7639
SELECT ALL + + ( + ( - - CAST( col2 AS SIGNED ) ) ) + + col2 AS col2 FROM tab1 AS cor0
----
118
136
192

skipif mysql # not compatible
query I rowsort label-7639
SELECT ALL + + ( + ( - - CAST ( col2 AS INTEGER ) ) ) + + col2 AS col2 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT ALL + + 47 * - col1 * col1 * + 62 + - col1 FROM tab0 AS cor0
----
-1285095
-19118835
-2915

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT + COUNT( * ) + 21 col0 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7641
SELECT + COUNT ( * ) + 21 col0 FROM tab1 AS cor0
----
24

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > - col0 + col1
----

query I rowsort
SELECT 11 * + + col0 + 2 FROM tab2 AS cor0
----
508
706
827

query I rowsort
SELECT 13 * 10 AS col0 FROM tab1
----
130
130
130

query I rowsort
SELECT AVG ( DISTINCT col1 ) FROM tab2 WHERE ( ( NULL ) <= - col0 + col1 )
----
NULL

query I rowsort
SELECT ALL - col1 + - - col1 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT DISTINCT 36 + COUNT( * ) AS col0 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-7647
SELECT DISTINCT 36 + COUNT ( * ) AS col0 FROM tab0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7648
SELECT DISTINCT 98 FROM tab2 WHERE ( ( NULL ) < - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT 98 FROM tab2 WHERE ( ( NULL ) < - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - + 71 - - + col2 * col1 - + 42 FROM tab1 AS cor0
----
1231
182
3083

query I rowsort
SELECT DISTINCT + col0 - + + col2 AS col1 FROM tab2 AS cor0
----
17
23
24

query III rowsort
SELECT * FROM tab0 WHERE 69 + + 78 <= NULL
----

query II rowsort
SELECT ALL col0 AS col1, col1 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7653
SELECT - COUNT( * ) * - - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7653
SELECT - COUNT ( * ) * - - CAST ( NULL AS REAL ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 / + ( - col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT DISTINCT - - MIN( + + col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7655
SELECT DISTINCT - - MIN ( + + col2 ) AS col0 FROM tab2 AS cor0
----
23

query I rowsort
SELECT col2 * + col0 * col2 AS col1 FROM tab2 AS cor0
----
102400
24334
252300

onlyif mysql # DIV for integer division: 
query II rowsort label-7657
SELECT + - col1, 24 DIV - + 51 col2 FROM tab0 cor0
----
-1
0
-21
0
-81
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7657
SELECT + - col1, 24 / - + 51 col2 FROM tab0 cor0
----
-1
0
-21
0
-81
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7658
SELECT + - COUNT( * ) AS col1, 16 AS col0 FROM tab0 cor0
----
-3
16

skipif mysql # not compatible
query II rowsort label-7658
SELECT + - COUNT ( * ) AS col1, 16 AS col0 FROM tab0 cor0
----
-3
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT - SUM( DISTINCT - 90 ) FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-7659
SELECT - SUM ( DISTINCT - 90 ) FROM tab1 AS cor0
----
90

query I rowsort
SELECT ALL ( col0 ) AS col1 FROM tab1 WHERE ( 29 * - - col0 + + 9 ) = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + col2 - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 col1 FROM tab1
----
95
95
95

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 - col1 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + col1 - - + 97 FROM tab2 cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT - col0 * - + 91 AS col2 FROM tab2 AS cor0
----
4186
5824
6825

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT ALL 81 * MAX( + col1 ) AS col2 FROM tab0 AS cor0
----
6561

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL 81 * MAX ( + col1 ) AS col2 FROM tab0 AS cor0
----
6561

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - 53
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + + 18 col1 FROM tab2
----
1152
1350
828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 85 col1, - 1 FROM tab2
----
85
-1
85
-1
85
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT DISTINCT COUNT( * ) + - 72 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-7670
SELECT DISTINCT COUNT ( * ) + - 72 FROM tab2
----
-69

query I rowsort
SELECT - 39 + - + 92 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e9fc6b8f48d9b7b1ab7d24aa342273b9

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT ALL + COUNT( * ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 + - col0 + 67 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7674
SELECT ALL - 82 + + CAST( - + col2 AS SIGNED ) FROM tab0 AS cor0
----
-129
-181
-92

skipif mysql # not compatible
query I rowsort label-7674
SELECT ALL - 82 + + CAST ( - + col2 AS INTEGER ) FROM tab0 AS cor0
----
-129
-181
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-7675
SELECT ALL - col0 * col0 DIV + 3 + - col1 * col2 + + 25 FROM tab0 AS cor0
----
-2708
-3210
-3857

skipif mysql # not compatible
query I rowsort label-7675
SELECT ALL - col0 * col0 / + 3 + - col1 * col2 + + 25 FROM tab0 AS cor0
----
-2708
-3210
-3857

query I rowsort
SELECT DISTINCT + + 80 * 72 FROM tab2 AS cor0
----
5760

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 13 <> NULL
----

query II rowsort
SELECT DISTINCT - + 20 AS col0, + 45 FROM tab2 cor0
----
-20
45

query I rowsort
SELECT - + col2 FROM tab2 AS cor0 WHERE NULL <= col0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7680
SELECT CAST( col0 AS SIGNED ) - CAST( NULL AS DECIMAL ) / + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7680
SELECT CAST ( col0 AS INTEGER ) - CAST ( NULL AS REAL ) / + col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - col0 * - col2 FROM tab0
----
752
880
9702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 + - col2 col1 FROM tab1
----
-14
14
23

query I rowsort
SELECT ALL - 62 * + col2 AS col1 FROM tab2
----
-1426
-2480
-3596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7684
SELECT ALL + COUNT( * ) * + ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7684
SELECT ALL + COUNT ( * ) * + ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7685
SELECT - 74 + + CAST( - 23 AS SIGNED ) AS col1 FROM tab1
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-7685
SELECT - 74 + + CAST ( - 23 AS INTEGER ) AS col1 FROM tab1
----
-97
-97
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 15 col1 FROM tab0
----
16
36
96

query III rowsort
SELECT * FROM tab0 WHERE + col1 - - 61 * - col0 BETWEEN 66 AND ( 77 + + 25 )
----

query I rowsort
SELECT DISTINCT - - 39 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + - + 99 FROM tab0 AS cor0
----
-109
-146
-198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 + col1 col2 FROM tab1 AS cor0
----
-29
-62
-71

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 86 NOT BETWEEN NULL AND - - ( + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( - - col1 ) + - col0 + - + col2 * col1 * - col0 * + + col1 * 27 AS col0 FROM tab1 AS cor0
----
25909567
3385035
369070746

onlyif mysql # aggregate syntax: 
query II rowsort label-7693
SELECT DISTINCT - 21 AS col2, COUNT( * ) FROM tab2 AS cor0
----
-21
3

skipif mysql # not compatible
query II rowsort label-7693
SELECT DISTINCT - 21 AS col2, COUNT ( * ) FROM tab2 AS cor0
----
-21
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT ALL + COUNT( + + 62 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL + COUNT ( + + 62 ) AS col2 FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - col2 ) col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT col0 * 24 FROM tab0 AS cor0
----
2088
2328
360

query II rowsort
SELECT col2, 55 + - col2 FROM tab2
----
23
32
40
15
58
-3

query I rowsort
SELECT DISTINCT + ( 22 ) AS col2 FROM tab1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7699
SELECT + ( + CAST( - - MIN( + - col0 ) AS SIGNED ) ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-7699
SELECT + ( + CAST ( - - MIN ( + - col0 ) AS INTEGER ) ) FROM tab1
----
-91

query II rowsort
SELECT ALL - col0 AS col0, col2 + col1 * + col2 AS col1 FROM tab0
----
-15
3854
-87
220
-97
198

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7701
SELECT DISTINCT col1 AS col0, col1 - - - CAST( NULL AS SIGNED ) + + col0 * + - 29 FROM tab2 WHERE + col0 IS NULL
----

skipif mysql # not compatible
query II rowsort label-7701
SELECT DISTINCT col1 AS col0, col1 - - - CAST ( NULL AS INTEGER ) + + col0 * + - 29 FROM tab2 WHERE + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + col0 * + + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 43 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> - col0 - col2 * + 1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - - col2 ) col2 FROM tab1 cor0
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - col2 ) col1, - col2 col2 FROM tab2
----
-23
-23
-40
-40
-58
-58

query I rowsort
SELECT DISTINCT + 64 + + col2 * + 57 FROM tab0 AS cor0
----
2743
5707
634

query I rowsort
SELECT - AVG ( + - 49 ) FROM tab1 cor0 WHERE ( + 19 ) < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT ALL - ( MIN( DISTINCT 68 ) ) + + + 40 FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-7709
SELECT ALL - ( MIN ( DISTINCT 68 ) ) + + + 40 FROM tab1 AS cor0
----
-28

query I rowsort
SELECT - - col0 + + ( col2 ) - col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + - col0 * - 80 * + - col0 * - col1 + - 77 + - + 43 * - - 70 * - col2 + + - 42 AS col0 FROM tab0 AS cor0
----
1050591
12745901
1599351

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7712
SELECT - - col2 * 12 + CAST( NULL AS SIGNED ) - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7712
SELECT - - col2 * 12 + CAST ( NULL AS INTEGER ) - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 2 * + col1 AS col0 FROM tab0
----
162
2
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7714
SELECT DISTINCT - ( - + MIN( DISTINCT - CAST( col1 AS SIGNED ) ) ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7714
SELECT DISTINCT - ( - + MIN ( DISTINCT - CAST ( col1 AS INTEGER ) ) ) AS col0 FROM tab0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7715
SELECT ALL * FROM tab0 WHERE NOT ( - + 38 ) < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7715
SELECT ALL * FROM tab0 WHERE NOT ( - + 38 ) < + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 * + col1 - - 6 - - col2 col1 FROM tab0
----
1822
191
7019

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT ALL 94 * - - 50 + COUNT( * ) AS col0 FROM tab1
----
4703

skipif mysql # not compatible
query I rowsort label-7717
SELECT ALL 94 * - - 50 + COUNT ( * ) AS col0 FROM tab1
----
4703

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT + 40 - MAX( ALL + - 70 ) AS col0 FROM tab2 AS cor0
----
110

skipif mysql # not compatible
query I rowsort label-7718
SELECT + 40 - MAX ( ALL + - 70 ) AS col0 FROM tab2 AS cor0
----
110

query I rowsort
SELECT ALL + col0 + + 48 FROM tab0 AS cor0
----
135
145
63

query I rowsort
SELECT - col2 - ( + col1 ) FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-7721
SELECT ALL col1 + col1 - + - col0 + - + 88 DIV + col2 col2 FROM tab0 AS cor0
----
121
176
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7721
SELECT ALL col1 + col1 - + - col0 + - + 88 / + col2 col2 FROM tab0 AS cor0
----
121
176
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col1 col1 FROM tab1 AS cor0
----
-196
-2209
-25

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 92 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7724
SELECT - + 26 * CAST( - 76 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1976
1976
1976

skipif mysql # not compatible
query I rowsort label-7724
SELECT - + 26 * CAST ( - 76 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1976
1976
1976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7725
SELECT + col2 * - + col2 + CAST( NULL AS SIGNED ) / 25 * - 63 * - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7725
SELECT + col2 * - + col2 + CAST ( NULL AS INTEGER ) / 25 * - 63 * - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7726
SELECT CAST( - + 4 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-7726
SELECT CAST ( - + 4 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT ALL + MIN( 61 ) AS col1 FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-7727
SELECT ALL + MIN ( 61 ) AS col1 FROM tab0 AS cor0
----
61

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7728
SELECT CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ) * col0 / - - col0 + col1 + + col2 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7728
SELECT CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ) * col0 / - - col0 + col1 + + col2 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
23
40
58

query II rowsort
SELECT ALL + col1, + 2 AS col2 FROM tab0
----
1
2
21
2
81
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT DISTINCT - COUNT( DISTINCT + col2 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT - COUNT ( DISTINCT + col2 ) AS col0 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7732
SELECT * FROM tab1 WHERE NOT - 14 NOT BETWEEN + + 67 AND + col2 * + ( CAST( NULL AS SIGNED ) ) / + col0 / + + col2
----

skipif mysql # not compatible
query III rowsort label-7732
SELECT * FROM tab1 WHERE NOT - 14 NOT BETWEEN + + 67 AND + col2 * + ( CAST ( NULL AS INTEGER ) ) / + col0 / + + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 78 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT ALL + SUM( ALL - - col1 ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL + SUM ( ALL - - col1 ) AS col1 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT DISTINCT 2 * + 84 + SUM( 16 ) AS col0 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-7735
SELECT DISTINCT 2 * + 84 + SUM ( 16 ) AS col0 FROM tab1
----
216

onlyif mysql # aggregate syntax: 
query II rowsort label-7736
SELECT - 65 AS col0, - COUNT( * ) * + SUM( + col2 ) FROM tab2
----
-65
-363

skipif mysql # not compatible
query II rowsort label-7736
SELECT - 65 AS col0, - COUNT ( * ) * + SUM ( + col2 ) FROM tab2
----
-65
-363

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7737
SELECT CAST( + col0 AS SIGNED ) * + col1 * - col0 FROM tab0
----
-158949
-18225
-9409

skipif mysql # not compatible
query I rowsort label-7737
SELECT CAST ( + col0 AS INTEGER ) * + col1 * - col0 FROM tab0
----
-158949
-18225
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7738
SELECT + CAST( NULL AS SIGNED ) AS col0, - col2 * + col1 AS col1, col0 FROM tab2
----
9 values hashing to b41e7c207197c8d2cbcf89f1529d2a77

skipif mysql # not compatible
query III rowsort label-7738
SELECT + CAST ( NULL AS INTEGER ) AS col0, - col2 * + col1 AS col1, col0 FROM tab2
----
9 values hashing to b41e7c207197c8d2cbcf89f1529d2a77

query I rowsort
SELECT - ( + + 9 ) FROM tab0
----
-9
-9
-9

query II rowsort
SELECT + col2, ( - + col1 ) * - - 61 * - + col2 FROM tab1
----
59
17995
68
194956
96
81984

query I rowsort
SELECT DISTINCT + 85 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
85

query I rowsort
SELECT ALL + - 15 + - col0 * - col0 - col0 FROM tab1 AS cor0
----
2535
7125
8175

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT ALL + COUNT( * ) + - - MIN( 5 ) AS col2 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL + COUNT ( * ) + - - MIN ( 5 ) AS col2 FROM tab0 AS cor0
----
8

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE ( NULL ) <> - 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT - COUNT( * ) - - - 29 FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-7745
SELECT - COUNT ( * ) - - - 29 FROM tab2 AS cor0
----
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - + col0 col2 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7747
SELECT col0 AS col1 FROM tab2 cor0 WHERE CAST( col2 AS SIGNED ) * + ( + col1 ) NOT IN ( col0, col2 )
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7747
SELECT col0 AS col1 FROM tab2 cor0 WHERE CAST ( col2 AS INTEGER ) * + ( + col1 ) NOT IN ( col0, col2 )
----
46
64
75

query I rowsort
SELECT ALL + 54 - - - col2 AS col0 FROM tab1 AS cor0
----
-14
-42
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT COUNT( * ) * + 23 FROM tab0, tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-7749
SELECT COUNT ( * ) * + 23 FROM tab0, tab0 AS cor0
----
207

onlyif mysql # DIV for integer division: 
query II rowsort label-7750
SELECT - 20 + - col0, - col2 + - col1 + + col0 DIV + col0 AS col1 FROM tab0
----
-107
-30
-117
-99
-35
-127

skipif mysql # not compatible
query II rowsort label-7750
SELECT - 20 + - col0, - col2 + - col1 + + col0 / + col0 AS col1 FROM tab0
----
-107
-30
-117
-99
-35
-127

query II rowsort
SELECT 82 + - 12, - col2 + + - col1 AS col1 FROM tab0
----
70
-100
70
-128
70
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT + 27 * + COUNT( * ) + - COUNT( * ) col1 FROM tab1
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7752
SELECT + 27 * + COUNT ( * ) + - COUNT ( * ) col1 FROM tab1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT DISTINCT + COUNT( + 38 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT + COUNT ( + 38 ) FROM tab2
----
3

query I rowsort
SELECT ALL - col2 * - - col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7755
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 NOT IN ( + 67, CAST( + + col2 AS SIGNED ), col0 * col1 + + + col2 )
----

skipif mysql # not compatible
query I rowsort label-7755
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 NOT IN ( + 67, CAST ( + + col2 AS INTEGER ), col0 * col1 + + + col2 )
----

query I rowsort
SELECT - 47 - - + 11 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7757
SELECT - 9 * + + MAX( + CAST( NULL AS SIGNED ) ) - - - 20 + + 57 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7757
SELECT - 9 * + + MAX ( + CAST ( NULL AS INTEGER ) ) - - - 20 + + 57 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = - - 21 * - ( - col2 ) + col1 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab1 WHERE NOT col0 IS NULL
----
-59
-68
-96

query I rowsort
SELECT + col1 + col2 * - 84 * - + col0 AS col1 FROM tab2 WHERE NOT NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - - col1 col2 FROM tab0
----
1215
1827
97

query II rowsort
SELECT DISTINCT col1 * ( + col1 ), col0 FROM tab0
----
1
97
441
87
6561
15

query I rowsort
SELECT + 18 * 63 FROM tab2
----
1134
1134
1134

query I rowsort
SELECT ALL + - 64 FROM tab2 cor0
----
-64
-64
-64

query I rowsort
SELECT + ( + col2 ) + - - col2 * + col0 FROM tab1 AS cor0
----
4992
5074
6256

query I rowsort
SELECT + col1 + - + 57 AS col0 FROM tab2 AS cor0
----
-6
10
20

onlyif mysql # DIV for integer division: 
query I rowsort label-7767
SELECT DISTINCT col0 DIV - - col1 col1 FROM tab2
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7767
SELECT DISTINCT col0 / - - col1 col1 FROM tab2
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7768
SELECT ALL - col1 + - col2 + + - 18 DIV + - 40 * ( + col2 ) * - col2 + + col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL - col1 + - col2 + + - 18 / + - 40 * ( + col2 ) * - col2 + + col2 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT + col2 + 95 FROM tab2
----
118
135
153

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE + col2 * col1 + - + col1 <= - col2 * + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT DISTINCT - MIN( - col2 ) + 22 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-7771
SELECT DISTINCT - MIN ( - col2 ) + 22 FROM tab2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT DISTINCT - - 32 + - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-7772
SELECT DISTINCT - - 32 + - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
35

query I rowsort
SELECT 54 * - + ( - + col1 ) FROM tab0 AS cor0
----
1134
4374
54

onlyif mysql # DIV for integer division: 
query I rowsort label-7774
SELECT - col1 DIV ( - 68 ) * col0 * - - 52 FROM tab2 AS cor0
----
0
0
3328

skipif mysql # not compatible
query I rowsort label-7774
SELECT - col1 / ( - 68 ) * col0 * - - 52 FROM tab2 AS cor0
----
0
0
3328

query I rowsort
SELECT - col1 * + col0 - ( 4 ) FROM tab0 AS cor0
----
-101
-1219
-1831

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 39 * - 11 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7777
SELECT DISTINCT ( 33 ) DIV + + 17 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7777
SELECT DISTINCT ( 33 ) / + + 17 AS col1 FROM tab0
----
1

query II rowsort
SELECT ALL - col0 AS col0, col0 + + - 77 AS col2 FROM tab1
----
-51
-26
-85
8
-91
14

query I rowsort
SELECT ALL - + col1 + - 98 FROM tab2 AS cor0
----
-149
-165
-175

query I rowsort
SELECT ALL + col1 + - + col0 AS col1 FROM tab2 cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT SUM( DISTINCT + + 40 ) FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-7781
SELECT SUM ( DISTINCT + + 40 ) FROM tab1 AS cor0
----
40

query I rowsort
SELECT DISTINCT - - AVG ( DISTINCT + 92 ) FROM tab0 AS cor0 WHERE 33 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + + col0 + - 83 FROM tab0 AS cor0
----
-68
14
4

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
10
47
99

query I rowsort
SELECT + 22 AS col0 FROM tab0 cor0
----
22
22
22

query I rowsort
SELECT DISTINCT - + col1 * col0 - col0 FROM tab2 AS cor0
----
-2392
-4992
-5100

query I rowsort
SELECT ALL + col0 + - col1 + + col0 - + + 26 AS col2 FROM tab2 AS cor0
----
15
25
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT DISTINCT - - 13 - COUNT( * ) AS col1 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7788
SELECT DISTINCT - - 13 - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
10

query I rowsort
SELECT DISTINCT + 10 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT ALL 16 - COUNT( * ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-7790
SELECT ALL 16 - COUNT ( * ) FROM tab1
----
13

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 28 BETWEEN NULL AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT DISTINCT ( + - SUM( + 16 ) ) AS col1 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-7792
SELECT DISTINCT ( + - SUM ( + 16 ) ) AS col1 FROM tab1
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-7793
SELECT 62, + SUM( ALL + + col2 ) AS col1 FROM tab1
----
62
223

skipif mysql # not compatible
query II rowsort label-7793
SELECT 62, + SUM ( ALL + + col2 ) AS col1 FROM tab1
----
62
223

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT COUNT( * ) * ( + COUNT( * ) ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7794
SELECT COUNT ( * ) * ( + COUNT ( * ) ) FROM tab0
----
9

query II rowsort
SELECT ALL - col2, ( - - ( 93 ) ) AS col0 FROM tab0 AS cor0
----
-10
93
-47
93
-99
93

query I rowsort
SELECT DISTINCT - col2 * + 95 FROM tab2 AS cor0
----
-2185
-3800
-5510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7797
SELECT + - col0 * + CAST( NULL AS SIGNED ) * - + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7797
SELECT + - col0 * + CAST ( NULL AS INTEGER ) * - + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT + col1 * + - col2 FROM tab1 cor0
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 82 * + - col0 col1 FROM tab0 AS cor0
----
1230
7134
7954

query I rowsort
SELECT 63 * - col0 * - 40 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT - col2 * + 71 FROM tab0 AS cor0
----
-3337
-7029
-710

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT + COUNT( * ) * + + 1 AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7803
SELECT + COUNT ( * ) * + + 1 AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT DISTINCT + ( COUNT( * ) ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7804
SELECT DISTINCT + ( COUNT ( * ) ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 15 col2 FROM tab2 cor0
----
15
15
15

query I rowsort
SELECT ALL 85 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 5, + col2 * + col2 + 20 + + 0 col0 FROM tab2
----
5
1620
5
3384
5
549

query II rowsort
SELECT - col2, col2 * + ( + col1 ) AS col1 FROM tab0
----
-10
210
-47
3807
-99
99

query I rowsort
SELECT DISTINCT + 57 + + - col1 + - - col1 FROM tab0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT ALL ( + - COUNT( DISTINCT + - 98 ) ) + + 81 - - COUNT( * ) * + - COUNT( * ) FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL ( + - COUNT ( DISTINCT + - 98 ) ) + + 81 - - COUNT ( * ) * + - COUNT ( * ) FROM tab0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT DISTINCT 7 * - - COUNT( + - 49 ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-7811
SELECT DISTINCT 7 * - - COUNT ( + - 49 ) FROM tab0
----
21

query I rowsort
SELECT ALL 67 - 31 FROM tab0 AS cor0
----
36
36
36

onlyif mysql # aggregate syntax: 
query II rowsort label-7813
SELECT DISTINCT + 73 AS col2, 38 + - COUNT( - + 73 ) * + 55 AS col2 FROM tab2 cor0
----
73
-127

skipif mysql # not compatible
query II rowsort label-7813
SELECT DISTINCT + 73 AS col2, 38 + - COUNT ( - + 73 ) * + 55 AS col2 FROM tab2 cor0
----
73
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT + ( MIN( - 31 ) ) AS col2 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-7814
SELECT + ( MIN ( - 31 ) ) AS col2 FROM tab2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE NOT ( + 98 + 55 ) <= ( col2 * - col2 )
----
3

skipif mysql # not compatible
query I rowsort label-7815
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( + 98 + 55 ) <= ( col2 * - col2 )
----
3

query I rowsort
SELECT DISTINCT + 1 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT + ( - 28 ) FROM tab1 WHERE 47 / + col0 IS NULL
----

query I rowsort
SELECT DISTINCT 71 * - col0 AS col0 FROM tab1
----
-3621
-6035
-6461

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT ALL + MAX( DISTINCT col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL + MAX ( DISTINCT col0 ) AS col1 FROM tab2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7820
SELECT ALL * FROM tab0 WHERE 22 + + col0 BETWEEN ( NULL ) AND ( - 54 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7820
SELECT ALL * FROM tab0 WHERE 22 + + col0 BETWEEN ( NULL ) AND ( - 54 + + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 ) = ( - 73 + + col1 * - 64 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7822
SELECT + MIN( DISTINCT col1 ) DIV - COUNT( * ) FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-7822
SELECT + MIN ( DISTINCT col1 ) / - COUNT ( * ) FROM tab2
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7823
SELECT DISTINCT + COUNT( ALL 52 ) + + 32 DIV 15 AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7823
SELECT DISTINCT + COUNT ( ALL 52 ) + + 32 / 15 AS col2 FROM tab1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7824
SELECT DISTINCT - 58 DIV - 46 FROM tab1 WHERE col0 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-7824
SELECT DISTINCT - 58 / - 46 FROM tab1 WHERE col0 IS NOT NULL
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > + 18
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7826
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) col2 FROM tab1 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7826
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) col2 FROM tab1 WHERE NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7827
SELECT 84 * col1 + col2 DIV col0 AS col2 FROM tab1
----
1177
3948
420

skipif mysql # not compatible
query I rowsort label-7827
SELECT 84 * col1 + col2 / col0 AS col2 FROM tab1
----
1177
3948
420

query I rowsort
SELECT ( - col1 ) + 34 FROM tab2
----
-17
-33
-43

query I rowsort
SELECT - col1 + - col1 * 3 FROM tab1
----
-188
-20
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT - SUM( ALL col1 ) + COUNT( * ) * - 79 FROM tab2
----
-432

skipif mysql # not compatible
query I rowsort label-7830
SELECT - SUM ( ALL col1 ) + COUNT ( * ) * - 79 FROM tab2
----
-432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 col0 FROM tab2
----
-72

query I rowsort
SELECT + 89 FROM tab0 WHERE col1 IS NOT NULL
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT COUNT( * ) FROM tab1 WHERE ( - 23 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7833
SELECT COUNT ( * ) FROM tab1 WHERE ( - 23 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT COUNT( * ) FROM tab2 WHERE NOT ( col2 ) IN ( col1 )
----
3

skipif mysql # not compatible
query I rowsort label-7834
SELECT COUNT ( * ) FROM tab2 WHERE NOT ( col2 ) IN ( col1 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT DISTINCT 76 * + COUNT( ALL - col1 * + 34 ) AS col2 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7835
SELECT DISTINCT 76 * + COUNT ( ALL - col1 * + 34 ) AS col2 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT - MAX( DISTINCT - col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-7836
SELECT - MAX ( DISTINCT - col2 ) FROM tab0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7837
SELECT CAST( NULL AS SIGNED ) * + col1 + + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7837
SELECT CAST ( NULL AS INTEGER ) * + col1 + + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 2 NOT BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT DISTINCT - MIN( - 50 ) FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-7840
SELECT DISTINCT - MIN ( - 50 ) FROM tab2 AS cor0
----
50

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <= ( - col1 - + 81 * ( + 99 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7842
SELECT - CAST( COUNT( * ) AS SIGNED ) DIV + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7842
SELECT - CAST ( COUNT ( * ) AS INTEGER ) / + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT 14 FROM tab2 WHERE NOT NULL BETWEEN 88 AND NULL
----

query I rowsort
SELECT DISTINCT + col1 + ( + 13 ) * col2 AS col1 FROM tab2 AS cor0
----
350
597
821

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT DISTINCT + MIN( DISTINCT + 45 ) AS col2 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-7845
SELECT DISTINCT + MIN ( DISTINCT + 45 ) AS col2 FROM tab1 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + col0 + - ( + ( col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + col0 + - ( + ( col1 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7847
SELECT DISTINCT + 74 AS col2 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * 25 IS NOT NULL
----
74

skipif mysql # not compatible
query I rowsort label-7847
SELECT DISTINCT + 74 AS col2 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * 25 IS NOT NULL
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7848
SELECT + - 55 + - col0 / CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7848
SELECT + - 55 + - col0 / CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 + 65 ) <> ( NULL )
----

query I rowsort
SELECT col1 + 94 AS col0 FROM tab0 AS cor0
----
115
175
95

query I rowsort
SELECT ALL ( 48 ) + + 81 * col0 AS col2 FROM tab0 AS cor0
----
1263
7095
7905

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7852
SELECT 70 + - 81 * - ( col0 * ( CAST( NULL AS SIGNED ) ) ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7852
SELECT 70 + - 81 * - ( col0 * ( CAST ( NULL AS INTEGER ) ) ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7853
SELECT + 99 + - 14 DIV + MAX( DISTINCT + col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7853
SELECT + 99 + - 14 / + MAX ( DISTINCT + col2 ) AS col1 FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7854
SELECT col2 col1 FROM tab2 WHERE ( col1 ) IN ( - CAST( NULL AS SIGNED ) - col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7854
SELECT col2 col1 FROM tab2 WHERE ( col1 ) IN ( - CAST ( NULL AS INTEGER ) - col2 )
----

query I rowsort
SELECT ALL - col0 + - 53 * - col1 FROM tab2
----
2657
3476
4017

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7857
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) * + col0 + - 85 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7857
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ) * + col0 + - 85 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7858
SELECT + COUNT( CAST( col2 AS SIGNED ) ) FROM tab1 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7858
SELECT + COUNT ( CAST ( col2 AS INTEGER ) ) FROM tab1 WHERE + col0 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT COUNT( * ) AS col0 FROM tab0 WHERE ( + 97 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7860
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE ( + 97 ) IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7861
SELECT DISTINCT 11 * 87 DIV - col0 + - col1 * 39 AS col0 FROM tab0
----
-3222
-48
-830

skipif mysql # not compatible
query I rowsort label-7861
SELECT DISTINCT 11 * 87 / - col0 + - col1 * 39 AS col0 FROM tab0
----
-3222
-48
-830

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT DISTINCT + SUM( + 80 ) FROM tab0 cor0 WHERE - col1 IN ( col0 * col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7862
SELECT DISTINCT + SUM ( + 80 ) FROM tab0 cor0 WHERE - col1 IN ( col0 * col2 )
----
NULL

query I rowsort
SELECT DISTINCT + + col2 + - 81 * col2 FROM tab0 AS cor0
----
-3760
-7920
-800

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 <> col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col2 - + 61 * col0 FROM tab2 AS cor0
----
-2783
-3864
-4517

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7866
SELECT CAST( + col2 AS SIGNED ) + col2 AS col0 FROM tab1 AS cor0
----
118
136
192

skipif mysql # not compatible
query I rowsort label-7866
SELECT CAST ( + col2 AS INTEGER ) + col2 AS col0 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT - + ( + col2 ) + - 45 FROM tab0 AS cor0
----
-144
-55
-92

query I rowsort
SELECT 45 FROM tab1 AS cor0 WHERE ( + 35 ) = NULL
----

query I rowsort
SELECT + col0 * col1 + - col2 AS col0 FROM tab1 cor0
----
366
4209
618

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( col0 )
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 col1 FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT + 30 * col0 + - 37 AS col2 FROM tab1 cor0
----
1493
2513
2693

onlyif mysql # aggregate syntax: 
query II rowsort label-7874
SELECT COUNT( * ) AS col0, + 40 FROM tab1 AS cor0
----
3
40

skipif mysql # not compatible
query II rowsort label-7874
SELECT COUNT ( * ) AS col0, + 40 FROM tab1 AS cor0
----
3
40

query I rowsort
SELECT - col0 * - ( 25 ) + + 10 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col0 AND + col0 OR + col0 <= NULL
----

query I rowsort
SELECT col1 * 37 - - + col2 + 15 * col1 AS col1 FROM tab1 AS cor0
----
2512
319
824

query I rowsort
SELECT + ( + 7 ) AS col1 FROM tab2 AS cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT DISTINCT + COUNT( - - 75 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7878
SELECT DISTINCT + COUNT ( - - 75 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT 56 <> + col2
----

query I rowsort
SELECT ALL 45 / - 53 AS col0 FROM tab2 AS cor0 WHERE + col2 - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > ( - ( - col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7882
SELECT ALL 69 DIV 62 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7882
SELECT ALL 69 / 62 AS col2 FROM tab0
----
1
1
1

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + - 92 IN ( - 95 * - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 49 < ( ( col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7885
SELECT * FROM tab1 WHERE NOT + CAST( + col1 AS SIGNED ) / col1 NOT BETWEEN col1 AND 35
----

skipif mysql # not compatible
query III rowsort label-7885
SELECT * FROM tab1 WHERE NOT + CAST ( + col1 AS INTEGER ) / col1 NOT BETWEEN col1 AND 35
----

query I rowsort
SELECT + ( + col1 ) * - - col2 FROM tab0
----
210
3807
99

query I rowsort
SELECT 43 * + - col1 * + col1 AS col0 FROM tab2
----
-111843
-193027
-254947

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + 0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7889
SELECT ALL - col2 * 69 FROM tab2 AS cor0 WHERE NOT ( CAST( + - CAST( + - 31 AS SIGNED ) AS SIGNED ) ) IS NULL
----
-1587
-2760
-4002

skipif mysql # not compatible
query I rowsort label-7889
SELECT ALL - col2 * 69 FROM tab2 AS cor0 WHERE NOT ( CAST ( + - CAST ( + - 31 AS INTEGER ) AS INTEGER ) ) IS NULL
----
-1587
-2760
-4002

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 41 NOT IN ( + 22 * + col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 < + col2 + + col2
----
46
51
23

query I rowsort
SELECT DISTINCT + col0 * col1 + - + 96 + - + col1 * - col0 AS col0 FROM tab2
----
4596
9760
9954

query I rowsort
SELECT - + 15 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + + 72 FROM tab1
----
119
77
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT - SUM( DISTINCT + 37 ) AS col2 FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-7895
SELECT - SUM ( DISTINCT + 37 ) AS col2 FROM tab1
----
-37

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( - 74 )
----

query I rowsort
SELECT DISTINCT + col1 + + 88 FROM tab0 AS cor0
----
109
169
89

onlyif mysql # aggregate syntax: 
query II rowsort label-7898
SELECT DISTINCT COUNT( * ) AS col0, 56 FROM tab2 AS cor0
----
3
56

skipif mysql # not compatible
query II rowsort label-7898
SELECT DISTINCT COUNT ( * ) AS col0, 56 FROM tab2 AS cor0
----
3
56

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE col0 > + col2
----
21

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col0 ) + + 32 + + - col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0 AS col2, 41 FROM tab1 AS cor0
----
51
41
85
41
91
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT + 75 + + COUNT( * ) * AVG ( col0 ) FROM tab1 AS cor0 WHERE col0 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7902
SELECT + 75 + + COUNT ( * ) * AVG ( col0 ) FROM tab1 AS cor0 WHERE col0 <= NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7903
SELECT ( - - COUNT( * ) ) FROM tab0 WHERE NULL NOT BETWEEN + + 73 / - - CAST( NULL AS SIGNED ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7903
SELECT ( - - COUNT ( * ) ) FROM tab0 WHERE NULL NOT BETWEEN + + 73 / - - CAST ( NULL AS INTEGER ) AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7904
SELECT - CAST( col1 AS SIGNED ) col0 FROM tab1 WHERE col2 IS NOT NULL
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7904
SELECT - CAST ( col1 AS INTEGER ) col0 FROM tab1 WHERE col2 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL ( - col0 ) * 1 AS col1 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT 27 + - 69 + - ( col1 ) AS col1 FROM tab1
----
-47
-56
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT + + COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7907
SELECT + + COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
3

query II rowsort
SELECT ALL + col1 * + col1 AS col1, col2 AS col1 FROM tab1
----
196
96
2209
68
25
59

query I rowsort
SELECT ALL 47 + 22 + col0 + - col0 FROM tab2
----
69
69
69

query I rowsort
SELECT + ( - col2 ) + + col2 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT ALL - - 65 + COUNT( * ) col2 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7911
SELECT ALL - - 65 + COUNT ( * ) col2 FROM tab0 AS cor0
----
68

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 61 + col0 + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + + 88 * + col2 AS col2 FROM tab2 cor0
----
2047
3560
5162

query II rowsort
SELECT ALL 82, 38 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7915
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) / - + col0 < ( + + CAST( + col0 AS SIGNED ) * - - col2 )
----

skipif mysql # not compatible
query III rowsort label-7915
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) / - + col0 < ( + + CAST ( + col0 AS INTEGER ) * - - col2 )
----

query II rowsort
SELECT - col0 * + + 32, col2 AS col2 FROM tab0
----
-2784
10
-3104
99
-480
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT + MAX( ALL + col0 ) - - 48 AS col0 FROM tab1
----
139

skipif mysql # not compatible
query I rowsort label-7917
SELECT + MAX ( ALL + col0 ) - - 48 AS col0 FROM tab1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT COUNT( * ) - - 31 AS col0 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-7918
SELECT COUNT ( * ) - - 31 AS col0 FROM tab2
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 * + 50 col1 FROM tab1
----
-2400
-2400
-2400

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7920
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 / col0 * + col0 * col1 + + CAST( + - col0 AS DECIMAL ) BETWEEN 39 AND ( 61 )
----

skipif mysql # not compatible
query III rowsort label-7920
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 / col0 * + col0 * col1 + + CAST ( + - col0 AS REAL ) BETWEEN 39 AND ( 61 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT DISTINCT COUNT( + - col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7921
SELECT DISTINCT COUNT ( + - col1 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7922
SELECT DISTINCT - CAST( + 49 AS SIGNED ) * + MIN( ALL col1 ) * + - COUNT( * ), COUNT( - col2 ) + 19 AS col2 FROM tab1 cor0
----
735
22

skipif mysql # not compatible
query II rowsort label-7922
SELECT DISTINCT - CAST ( + 49 AS INTEGER ) * + MIN ( ALL col1 ) * + - COUNT ( * ), COUNT ( - col2 ) + 19 AS col2 FROM tab1 cor0
----
735
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT + + COUNT( * ) FROM tab1 cor0 WHERE NOT NULL BETWEEN - col2 * - + col0 + - 97 * - + 59 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7923
SELECT + + COUNT ( * ) FROM tab1 cor0 WHERE NOT NULL BETWEEN - col2 * - + col0 + - 97 * - + 59 AND NULL
----
0

query I rowsort
SELECT DISTINCT - + 51 FROM tab0 AS cor0 WHERE + col2 * - 16 IS NULL
----

query I rowsort
SELECT ALL + col2 * col2 AS col1 FROM tab2 AS cor0 WHERE ( ( NOT NULL IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7926
SELECT + col1 / - CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7926
SELECT + col1 / - CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7927
SELECT - CAST( NULL AS SIGNED ) * - MIN( + 91 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7927
SELECT - CAST ( NULL AS INTEGER ) * - MIN ( + 91 ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * - + col2 NOT IN ( - + col1 )
----

query I rowsort
SELECT ALL - col1 * + col0 AS col0 FROM tab0 WHERE col0 IS NULL
----

query II rowsort
SELECT col2 AS col2, - col0 AS col0 FROM tab0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE - col1 BETWEEN + - col0 AND NULL OR NOT NULL IS NOT NULL
----
59
68
96

query II rowsort
SELECT col0, col1 + - 89 FROM tab2
----
46
-38
64
-12
75
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT DISTINCT COUNT( * ) * 95 col2 FROM tab0 AS cor0
----
285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7933
SELECT DISTINCT COUNT ( * ) * 95 col2 FROM tab0 AS cor0
----
285

query I rowsort
SELECT ALL - ( + + 74 ) FROM tab1 cor0
----
-74
-74
-74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 2 + col0 < - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( 84 ) AS col0 FROM tab2 AS cor0
----
84
84
84

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) IN ( - col0 + + - 72 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 68 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT + - 90 IN ( + + col1, col0, + 2 + ( col0 ) )
----
14
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7940
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7940
SELECT DISTINCT + CAST ( NULL AS REAL ) / col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL + 52 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT DISTINCT + col1 + 33 * col0 * - + 47 AS col0 FROM tab0
----
-134916
-150446
-23184

query I rowsort
SELECT ALL 52 FROM tab1 AS cor0 WHERE ( NULL ) IN ( 0, col1 )
----

query I rowsort
SELECT ALL col0 * - - col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7945
SELECT ALL - col0 * - col0, - col1 * + + col2 FROM tab0 AS cor0 WHERE NOT 83 < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-7945
SELECT ALL - col0 * - col0, - col1 * + + col2 FROM tab0 AS cor0 WHERE NOT 83 < + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7946
SELECT + 70 + + - col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-7946
SELECT + 70 + + - col1 / - col0 AS col2 FROM tab1 AS cor0
----
70
70
70

query I rowsort
SELECT ALL + - 50 AS col1 FROM tab2 AS cor0
----
-50
-50
-50

query I rowsort
SELECT - ( + - 29 ) * - col2 FROM tab1 AS cor0
----
-1711
-1972
-2784

onlyif mysql # aggregate syntax: 
query II rowsort label-7949
SELECT + COUNT( * ), + COUNT( * ) AS col1 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-7949
SELECT + COUNT ( * ), + COUNT ( * ) AS col1 FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT DISTINCT + COUNT( DISTINCT 16 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7950
SELECT DISTINCT + COUNT ( DISTINCT 16 ) AS col2 FROM tab2
----
1

query I rowsort
SELECT col2 / + 94 FROM tab2 AS cor0 WHERE - 66 * ( - - col2 ) BETWEEN col0 + + 75 AND - ( - col1 ) + col0 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7952
SELECT - CAST( NULL AS SIGNED ) - - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7952
SELECT - CAST ( NULL AS INTEGER ) - - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 <= 43
----
75
67
58

query I rowsort
SELECT DISTINCT + 77 + + 14 + col2 * - col2 FROM tab1 AS cor0
----
-3390
-4533
-9125

query I rowsort
SELECT 70 + + col1 - + + 51 FROM tab1 AS cor0
----
24
33
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT + MAX( ALL - col0 ) + 48 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-7956
SELECT + MAX ( ALL - col0 ) + 48 FROM tab2 AS cor0
----
2

query I rowsort
SELECT - 1 + - 37 AS col0 FROM tab0 AS cor0
----
-38
-38
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7958
SELECT - col2 AS col0 FROM tab1 WHERE NOT ( + col2 * - CAST( 57 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7958
SELECT - col2 AS col0 FROM tab1 WHERE NOT ( + col2 * - CAST ( 57 AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7959
SELECT ALL - 82 AS col1, col1 / - CAST( NULL AS SIGNED ) FROM tab1
----
-82
NULL
-82
NULL
-82
NULL

skipif mysql # not compatible
query II rowsort label-7959
SELECT ALL - 82 AS col1, col1 / - CAST ( NULL AS INTEGER ) FROM tab1
----
-82
NULL
-82
NULL
-82
NULL

query II rowsort
SELECT col0 AS col1, 60 AS col0 FROM tab1
----
51
60
85
60
91
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT DISTINCT MIN( ALL col0 ) * - - 52 AS col0 FROM tab0 AS cor0
----
780

skipif mysql # not compatible
query I rowsort label-7961
SELECT DISTINCT MIN ( ALL col0 ) * - - 52 AS col0 FROM tab0 AS cor0
----
780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7962
SELECT - COUNT( * ) DIV 17 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7962
SELECT - COUNT ( * ) / 17 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 * ( + col0 ) + col0 * 86 AS col0 FROM tab2 AS cor0
----
10432
11475
6302

query I rowsort
SELECT 26 * + - col1 FROM tab1 AS cor0
----
-1222
-130
-364

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT MIN( 58 ) AS col2 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7965
SELECT MIN ( 58 ) AS col2 FROM tab0 AS cor0
----
58

query I rowsort
SELECT ALL - 73 * - + col2 AS col1 FROM tab1 AS cor0
----
4307
4964
7008

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( + col2, + ( col2 ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7968
SELECT ALL col1 DIV + 27 AS col1, col2 + col0 col1 FROM tab0 AS cor0
----
0
196
0
97
3
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7968
SELECT ALL col1 / + 27 AS col1, col2 + col0 col1 FROM tab0 AS cor0
----
0
196
0
97
3
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT DISTINCT + MIN( + - 90 ) AS col0 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-7969
SELECT DISTINCT + MIN ( + - 90 ) AS col0 FROM tab2
----
-90

query I rowsort
SELECT - ( ( + + ( ( - col1 ) ) ) ) FROM tab0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 21 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT 71 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT col1 * - 91 AS col2 FROM tab0
----
-1911
-7371
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-7974
SELECT MIN( 57 ) AS col1, COUNT( DISTINCT + col2 ) FROM tab1
----
57
3

skipif mysql # not compatible
query II rowsort label-7974
SELECT MIN ( 57 ) AS col1, COUNT ( DISTINCT + col2 ) FROM tab1
----
57
3

query I rowsort
SELECT - col0 * col0 + + 68 FROM tab2 cor0
----
-2048
-4028
-5557

query I rowsort
SELECT ALL - col1 - - - col0 - + 31 FROM tab2 cor0 WHERE NOT ( NULL ) >= col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7977
SELECT ALL - col1 DIV + CAST( + col2 AS SIGNED ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7977
SELECT ALL - col1 / + CAST ( + col2 AS INTEGER ) AS col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - col2, - col1 / - + col2 + - col0, - col0 * + col0 * - 86 col1 FROM tab2 WHERE NULL NOT BETWEEN - col1 / - + 55 * + 57 AND col0 - + + 33
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7979
SELECT 80 AS col0, COUNT( * ) FROM tab2
----
80
3

skipif mysql # not compatible
query II rowsort label-7979
SELECT 80 AS col0, COUNT ( * ) FROM tab2
----
80
3

query I rowsort
SELECT DISTINCT - 82 + col2 FROM tab0
----
-35
-72
17

query I rowsort
SELECT ALL col0 + col2 * - 8 - col2 FROM tab0
----
-3
-408
-794

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7982
SELECT ALL * FROM tab2 AS cor0 WHERE ( - CAST( - col0 AS SIGNED ) NOT IN ( - - ( col1 ) * - col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7982
SELECT ALL * FROM tab2 AS cor0 WHERE ( - CAST ( - col0 AS INTEGER ) NOT IN ( - - ( col1 ) * - col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + ( - + col2 ) * - col0 AS col2 FROM tab0 cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT DISTINCT + COUNT( * ) + + COUNT( ( - - col0 ) ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT + COUNT ( * ) + + COUNT ( ( - - col0 ) ) FROM tab1 AS cor0
----
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 25 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7986
SELECT ALL SUM( ALL + col1 ) * 7 FROM tab0 AS cor0 WHERE ( NOT - col2 + + col1 + + + 48 / - ( - CAST( NULL AS SIGNED ) ) IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL SUM ( ALL + col1 ) * 7 FROM tab0 AS cor0 WHERE ( NOT - col2 + + col1 + + + 48 / - ( - CAST ( NULL AS INTEGER ) ) IS NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7987
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + 27 IS NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7987
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + 27 IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - 28 * + + 29, col0 + - ( + - 25 ) * + col2, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT ALL + MAX( DISTINCT 82 ) AS col0 FROM tab0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL + MAX ( DISTINCT 82 ) AS col0 FROM tab0 WHERE NOT + col1 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - col1 + + 42 + - 34 <> - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + - 47 AS col0 FROM tab0
----
-26
-46
34

onlyif mysql # DIV for integer division: 
query I rowsort label-7992
SELECT + col2 + - ( - col0 ) DIV + col2 FROM tab2
----
25
41
59

skipif mysql # not compatible
query I rowsort label-7992
SELECT + col2 + - ( - col0 ) / + col2 FROM tab2
----
25
41
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7993
SELECT CAST( NULL AS SIGNED ) + - col0, - col0 AS col0 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-7993
SELECT CAST ( NULL AS INTEGER ) + - col0, - col0 AS col0 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7994
SELECT - MAX( + ( + + 11 ) ) + CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7994
SELECT - MAX ( + ( + + 11 ) ) + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 + col2 * 50 AS col1 FROM tab2
----
1196
2064
2975

onlyif mysql # DIV for integer division: 
query I rowsort label-7997
SELECT + 11 DIV col1 + + - col1 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7997
SELECT + 11 / col1 + + - col1 FROM tab2 cor0
----
-51
-67
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 76 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 + col0 + - col1 AS col0 FROM tab2 AS cor0
----
18
27
66

query I rowsort
SELECT ALL + 43 AS col1 FROM tab1 cor0
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8001
SELECT ALL + CAST( NULL AS SIGNED ) * + col2 + col1 + - col2 / ( + - col1 ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL + CAST ( NULL AS INTEGER ) * + col2 + col1 + - col2 / ( + - col1 ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT + SUM( 3 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
27

skipif mysql # not compatible
query I rowsort label-8002
SELECT + SUM ( 3 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-8003
SELECT DISTINCT + 30, - COUNT( * ) col0 FROM tab1 cor0
----
30
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8003
SELECT DISTINCT + 30, - COUNT ( * ) col0 FROM tab1 cor0
----
30
-3

query I rowsort
SELECT DISTINCT col2 * + ( 71 ) AS col1 FROM tab1 AS cor0
----
4189
4828
6816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 15 col1 FROM tab2 AS cor0
----
-15
-15
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8006
SELECT + + col2 DIV - 10 + col0 FROM tab2 AS cor0
----
44
60
70

skipif mysql # not compatible
query I rowsort label-8006
SELECT + + col2 / - 10 + col0 FROM tab2 AS cor0
----
44
60
70

query I rowsort
SELECT col1 * - - 23 AS col2 FROM tab1
----
1081
115
322

onlyif mysql # DIV for integer division: 
query I rowsort label-8008
SELECT + col2 DIV + + col2 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8008
SELECT + col2 / + + col2 AS col2 FROM tab1
----
1
1
1

query II rowsort
SELECT + col1, + 75 FROM tab0
----
1
75
21
75
81
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT SUM( DISTINCT - - 19 ) FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-8010
SELECT SUM ( DISTINCT - - 19 ) FROM tab2
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 15 AS col2, + 7 + + - 48 col2 FROM tab2
----
15
-41
15
-41
15
-41

query I rowsort
SELECT DISTINCT ( + - 55 ) + + col0 FROM tab1
----
-4
30
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 0 AS col1, - 21 * - + 57 col1 FROM tab2
----
0
1197

query I rowsort
SELECT DISTINCT - 15 + + + ( + - col2 ) AS col1 FROM tab2 AS cor0
----
-38
-55
-73

onlyif mysql # DIV for integer division: 
query II rowsort label-8015
SELECT + + col0, 43 + - - col0 DIV + col1 AS col1 FROM tab1 AS cor0
----
51
46
85
60
91
44

skipif mysql # not compatible
query II rowsort label-8015
SELECT + + col0, 43 + - - col0 / + col1 AS col1 FROM tab1 AS cor0
----
51
46
85
60
91
44

query I rowsort
SELECT ALL col2 * col0 * - - col1 FROM tab1 AS cor0
----
25075
290836
68544

query II rowsort
SELECT - 72, 60 AS col1 FROM tab1 AS cor0
----
-72
60
-72
60
-72
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab0 WHERE 71 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab0 WHERE 71 IS NOT NULL
----
3

query I rowsort
SELECT - - 13 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT ALL + - ( - 83 ) * 58 * col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE - 7 + - - col1 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT 30 + 51 FROM tab0 AS cor0
----
81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col2 ) IS NULL
----

query I rowsort
SELECT - ( ( col0 ) ) FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE + col2 * col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8026
SELECT DISTINCT - ( + - COUNT( * ) ) - - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT - ( + - COUNT ( * ) ) - - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8027
SELECT - - 88 * 25 + - 31 * + col1 + + col0 * + + CAST( - - col0 AS SIGNED ) * - + 73 AS col2 FROM tab2 AS cor0
----
-153849
-299195
-410502

skipif mysql # not compatible
query I rowsort label-8027
SELECT - - 88 * 25 + - 31 * + col1 + + col0 * + + CAST ( - - col0 AS INTEGER ) * - + 73 AS col2 FROM tab2 AS cor0
----
-153849
-299195
-410502

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8028
SELECT ALL col1 AS col1 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) > - col2 + - col0 + - + 43
----

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL col1 AS col1 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) > - col2 + - col0 + - + 43
----

query I rowsort
SELECT DISTINCT col1 + - - col0 AS col1 FROM tab0
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 89 ) col2 FROM tab0
----
-89

query I rowsort
SELECT + col2 * - 99 * col0 + + ( 72 ) FROM tab0 AS cor0
----
-69723
-86058
-950625

query II rowsort
SELECT - - ( + col1 ) * col1, col2 AS col1 FROM tab1 AS cor0
----
196
96
2209
68
25
59

query II rowsort
SELECT DISTINCT + 42 AS col2, - 25 + + + col2 * - 50 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8034
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE + col0 + - col2 / - - col2 + col0 * - ( - col0 ) IN ( + - CAST( NULL AS SIGNED ) - - col1 + - + 25 )
----
0

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE + col0 + - col2 / - - col2 + col0 * - ( - col0 ) IN ( + - CAST ( NULL AS INTEGER ) - - col1 + - + 25 )
----
0

query I rowsort
SELECT DISTINCT 27 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
27

query I rowsort
SELECT - 3 * - col0 FROM tab0
----
261
291
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT COUNT( DISTINCT + 34 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8037
SELECT COUNT ( DISTINCT + 34 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT ( + col2 ) * col0 AS col1 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8039
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * + - col0 - + + CAST( NULL AS SIGNED ) + - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8039
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * + - col0 - + + CAST ( NULL AS INTEGER ) + - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8040
SELECT col2 * 27 - - 89 + ( - col0 ) DIV 32 * + col2 * + - col1 FROM tab0 cor0
----
1358
3059
779

skipif mysql # not compatible
query I rowsort label-8040
SELECT col2 * 27 - - 89 + ( - col0 ) / 32 * + col2 * + - col1 FROM tab0 cor0
----
1358
3059
779

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8041
SELECT + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8041
SELECT + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( + - col1 ) AS col2 FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT DISTINCT + + COUNT( + 64 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8043
SELECT DISTINCT + + COUNT ( + 64 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT DISTINCT - MIN( DISTINCT + - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8044
SELECT DISTINCT - MIN ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8045
SELECT CAST( - 60 AS SIGNED ) DIV - + MIN( + col2 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8045
SELECT CAST ( - 60 AS INTEGER ) / - + MIN ( + col2 ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col0 >= NULL
----

query I rowsort
SELECT ALL + col0 + - col2 + - 49 * + - col0 * - - 70 * - + col0 AS col0 FROM tab2
----
-14049256
-19293733
-7257857

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 11 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT col1 * + col2 * + - col1 FROM tab0
----
-308367
-4410
-99

query I rowsort
SELECT + col1 * 70 + + + col2 AS col0 FROM tab0
----
1480
169
5717

query I rowsort
SELECT col2 * + col0 + - col0 + - + 22 + + + col2 * - 59 AS col0 FROM tab1
----
-841
1427
2063

query I rowsort
SELECT ALL col2 + 59 AS col0 FROM tab0 AS cor0
----
106
158
69

query I rowsort
SELECT - - 83 * 4 * - col2 + + col0 AS col1 FROM tab0 AS cor0
----
-15589
-3233
-32771

query I rowsort
SELECT DISTINCT + + 62 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
62

query I rowsort
SELECT ALL - - col1 + - + col1 + col1 AS col1 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8057
SELECT - 29 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8057
SELECT - 29 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 19 * - + 97 + + + 69 AS col2 FROM tab0 WHERE NULL >= + + col0
----

query I rowsort
SELECT - 56 * - col2 AS col2 FROM tab1
----
3304
3808
5376

query I rowsort
SELECT ALL + - 87 - col2 FROM tab1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT + - 81 + col2 AS col0 FROM tab2 AS cor0
----
-23
-41
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-8062
SELECT - 73 DIV + col0 - - col2 + + ( - col2 ) + col0 FROM tab1 AS cor0
----
50
85
91

skipif mysql # not compatible
query I rowsort label-8062
SELECT - 73 / + col0 - - col2 + + ( - col2 ) + col0 FROM tab1 AS cor0
----
50
85
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = 74 * - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 49 * - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT DISTINCT MAX( ALL + 92 ) + - + 95 + + 4 AS col1 FROM tab2 WHERE NOT ( NOT 57 <= - + 50 * col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8065
SELECT DISTINCT MAX ( ALL + 92 ) + - + 95 + + 4 AS col1 FROM tab2 WHERE NOT ( NOT 57 <= - + 50 * col0 )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 38 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8067
SELECT DISTINCT - col2 + - col1 DIV + col0 FROM tab2
----
-24
-41
-58

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT - col2 + - col1 / + col0 FROM tab2
----
-24
-41
-58

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 * + col0 - col0 * + col1 * + + 27 <> + + col1 + col1 * + 49 * 19 * col1 + - col0 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT NULL = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT + 34 - - COUNT( * ) FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-8070
SELECT + 34 - - COUNT ( * ) FROM tab1 AS cor0
----
37

query I rowsort
SELECT + + 24 FROM tab0 WHERE NULL IS NULL
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT ALL - + COUNT( DISTINCT col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8072
SELECT ALL - + COUNT ( DISTINCT col1 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT DISTINCT - + col2 - col1 * ( - - col1 ) * col2 + - ( - col0 ) FROM tab1 AS cor0
----
-1449
-150189
-18861

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 16 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT DISTINCT + + COUNT( * ) - + + 75 + - 41 FROM tab1 AS cor0
----
-113

skipif mysql # not compatible
query I rowsort label-8076
SELECT DISTINCT + + COUNT ( * ) - + + 75 + - 41 FROM tab1 AS cor0
----
-113

query II rowsort
SELECT + col0 AS col2, - 88 AS col1 FROM tab1 AS cor0
----
51
-88
85
-88
91
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 70 AS col1, + col0 + + col1 col1 FROM tab2 AS cor0
----
70
141
70
142
70
97

query I rowsort
SELECT ( - + col2 ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT 29 * + COUNT( * ) AS col0 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-8080
SELECT 29 * + COUNT ( * ) AS col0 FROM tab0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT DISTINCT - MAX( col0 ) * - MAX( ALL - - 28 ) FROM tab2
----
2100

skipif mysql # not compatible
query I rowsort label-8081
SELECT DISTINCT - MAX ( col0 ) * - MAX ( ALL - - 28 ) FROM tab2
----
2100

query III rowsort
SELECT * FROM tab1 WHERE NOT + 2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8083
SELECT ALL col1 DIV + + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8083
SELECT ALL col1 / + + col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, - col0 col0 FROM tab0
----
-1
-97
-21
-87
-81
-15

query I rowsort
SELECT 61 * col0 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8086
SELECT DISTINCT + MAX( - 64 ) DIV + COUNT( * ) FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-8086
SELECT DISTINCT + MAX ( - 64 ) / + COUNT ( * ) FROM tab0
----
-21

query II rowsort
SELECT - col1 AS col1, + col2 + + col2 FROM tab1 WHERE NOT 69 IS NOT NULL
----

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT 89 * + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT + 72 * - COUNT( * ) FROM tab2
----
-216

skipif mysql # not compatible
query I rowsort label-8089
SELECT + 72 * - COUNT ( * ) FROM tab2
----
-216

query II rowsort
SELECT ALL - col0, - 31 AS col0 FROM tab1
----
-51
-31
-85
-31
-91
-31

query II rowsort
SELECT + col0, + 88 FROM tab1 AS cor0
----
51
88
85
88
91
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 * - col2 col0 FROM tab0 cor0
----
-2079
-210
-987

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8093
SELECT - CAST( NULL AS SIGNED ) * + MIN( + col1 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8093
SELECT - CAST ( NULL AS INTEGER ) * + MIN ( + col1 ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8094
SELECT DISTINCT + 19 DIV + - 53 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT + 19 / + - 53 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8095
SELECT * FROM tab1 WHERE NOT ( - CAST( NULL AS SIGNED ) ) + + - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8095
SELECT * FROM tab1 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) + + - col2 IS NULL
----

query I rowsort
SELECT ALL - + col1 + + 69 AS col1 FROM tab2 AS cor0
----
-8
18
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT ALL + COUNT( ALL - + 80 ) * - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8097
SELECT ALL + COUNT ( ALL - + 80 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-9

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 * + - col2 NOT BETWEEN NULL AND 23 + - col0
----

query I rowsort
SELECT ALL - - 1 + - - col1 AS col1 FROM tab0 AS cor0
----
2
22
82

query I rowsort
SELECT DISTINCT + + 2 * + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 18 * col2 AND + col1
----

query I rowsort
SELECT DISTINCT + 64 + - - 81 FROM tab1 AS cor0 WHERE NOT - 1 IS NULL
----
145

onlyif mysql # DIV for integer division: 
query II rowsort label-8102
SELECT DISTINCT + 10 AS col2, + col2 DIV + + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
0
10
1

skipif mysql # not compatible
query II rowsort label-8102
SELECT DISTINCT + 10 AS col2, + col2 / + + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
0
10
1

query III rowsort
SELECT * FROM tab2 WHERE + - 33 IN ( 40, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT COUNT( 62 ) FROM tab1 WHERE + col0 * - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8104
SELECT COUNT ( 62 ) FROM tab1 WHERE + col0 * - col2 IS NULL
----
0

query II rowsort
SELECT ALL - 27, col1 + + + 89 AS col2 FROM tab0
----
-27
110
-27
170
-27
90

onlyif mysql # DIV for integer division: 
query II rowsort label-8106
SELECT - 51 DIV + ( - + 75 ) + + col1 AS col2, ( + + col1 ) - + col0 + col1 FROM tab1
----
14
-23
47
3
5
-75

skipif mysql # not compatible
query II rowsort label-8106
SELECT - 51 / + ( - + 75 ) + + col1 AS col2, ( + + col1 ) - + col0 + col1 FROM tab1
----
14
-23
47
3
5
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT + COUNT( * ) col1 FROM tab1 WHERE - - 59 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8107
SELECT + COUNT ( * ) col1 FROM tab1 WHERE - - 59 IS NULL
----
0

query I rowsort
SELECT 7 + 6 FROM tab0
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT - COUNT( * ) + - 52 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-8109
SELECT - COUNT ( * ) + - 52 FROM tab2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT - COUNT( ALL - ( - col2 ) ) + - + COUNT( * ) col2 FROM tab0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8110
SELECT - COUNT ( ALL - ( - col2 ) ) + - + COUNT ( * ) col2 FROM tab0
----
-6

query II rowsort
SELECT ALL - 76 AS col1, - col2 AS col0 FROM tab1
----
-76
-59
-76
-68
-76
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8112
SELECT DISTINCT COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8112
SELECT DISTINCT COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8113
SELECT + CAST( NULL AS SIGNED ) + 5 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8113
SELECT + CAST ( NULL AS INTEGER ) + 5 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 + - 55 col1 FROM tab0 AS cor0
----
-46
-46
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8115
SELECT + CAST( 71 AS SIGNED ) FROM tab1 AS cor0
----
71
71
71

skipif mysql # not compatible
query I rowsort label-8115
SELECT + CAST ( 71 AS INTEGER ) FROM tab1 AS cor0
----
71
71
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8116
SELECT DISTINCT - 20 DIV + COUNT( * ) - MAX( + - ( - - 61 ) ) * - 75 + - + ( + COUNT( * ) ) - - + MIN( - col0 ) AS col1 FROM tab2
----
-4659

skipif mysql # not compatible
query I rowsort label-8116
SELECT DISTINCT - 20 / + COUNT ( * ) - MAX ( + - ( - - 61 ) ) * - 75 + - + ( + COUNT ( * ) ) - - + MIN ( - col0 ) AS col1 FROM tab2
----
-4659

query I rowsort
SELECT - col0 AS col1 FROM tab1 cor0 WHERE NOT + 78 * + col1 NOT BETWEEN NULL AND + 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT ALL 49 * + + COUNT( * ) FROM tab1 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL 49 * + + COUNT ( * ) FROM tab1 AS cor0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT DISTINCT COUNT( ALL - ( - 9 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8119
SELECT DISTINCT COUNT ( ALL - ( - 9 ) ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8120
SELECT ALL - - CAST( + + 29 AS SIGNED ) AS col0 FROM tab0 cor0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-8120
SELECT ALL - - CAST ( + + 29 AS INTEGER ) AS col0 FROM tab0 cor0
----
29
29
29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8121
SELECT DISTINCT SUM( ALL - 6 ) * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8121
SELECT DISTINCT SUM ( ALL - 6 ) * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT COUNT( DISTINCT + - 66 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8122
SELECT COUNT ( DISTINCT + - 66 ) AS col2 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT + + COUNT( * ) + - COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8123
SELECT + + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8124
SELECT - CAST( - - COUNT( col1 ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8124
SELECT - CAST ( - - COUNT ( col1 ) AS INTEGER ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT MAX( + 32 ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-8125
SELECT MAX ( + 32 ) FROM tab1
----
32

query I rowsort
SELECT ALL - col0 * 71 AS col1 FROM tab2
----
-3266
-4544
-5325

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8127
SELECT * FROM tab0 WHERE NOT ( NOT + col2 + col1 * + CAST( NULL AS SIGNED ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8127
SELECT * FROM tab0 WHERE NOT ( NOT + col2 + col1 * + CAST ( NULL AS INTEGER ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN NULL AND ( + ( + col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col0 ) * - col1 * 53 * col1 col2 FROM tab0 AS cor0
----
2033451
5141
5215995

query I rowsort
SELECT DISTINCT + + col0 * col1 + col2 FROM tab2 AS cor0
----
2369
4968
5083

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8131
SELECT DISTINCT + ( + 74 ) * CAST( NULL AS SIGNED ) * + 4 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8131
SELECT DISTINCT + ( + 74 ) * CAST ( NULL AS INTEGER ) * + 4 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - col2 AS col1, col0 AS col2 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 col1 FROM tab1
----
93
93
93

query II rowsort
SELECT DISTINCT - 52 AS col0, col0 - col0 AS col2 FROM tab1 AS cor0
----
-52
0

query I rowsort
SELECT ALL + col1 + + - col0 AS col0 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8136
SELECT DISTINCT - - col0 DIV - - col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8136
SELECT DISTINCT - - col0 / - - col2 FROM tab1 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT + + COUNT( * ) + COUNT( * ) + + ( - + COUNT( ALL + col1 ) ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8137
SELECT + + COUNT ( * ) + COUNT ( * ) + + ( - + COUNT ( ALL + col1 ) ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT - 96 * + MIN( ALL col2 ) FROM tab2 AS cor0
----
-2208

skipif mysql # not compatible
query I rowsort label-8138
SELECT - 96 * + MIN ( ALL col2 ) FROM tab2 AS cor0
----
-2208

query I rowsort
SELECT + col0 * ( 41 ) FROM tab2
----
1886
2624
3075

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8140
SELECT DISTINCT + MIN( DISTINCT - col2 ) DIV COUNT( * ) + - COUNT( * ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT + MIN ( DISTINCT - col2 ) / COUNT ( * ) + - COUNT ( * ) FROM tab0
----
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 * - 97 col2 FROM tab0
----
-2619
-2619
-2619

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 - + col2 AS col0, - 51 col1 FROM tab0 AS cor0
----
-98
-51
11
-51
34
-51

query I rowsort
SELECT DISTINCT + + col0 - + - col0 AS col2 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT - 27 * - + 47 + col1 - - 31 AS col1 FROM tab2 AS cor0
----
1351
1367
1377

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 < - col2 * - + col0 / - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT 92 * + col0 <= col2
----
15
87
97

query II rowsort
SELECT + col1 AS col2, 47 FROM tab1 AS cor0
----
14
47
47
47
5
47

query I rowsort
SELECT + + ( - - col1 ) - col0 + + + col1 * + 6 * - 0 * col2 * + col1 * ( - 20 ) AS col0 FROM tab1 AS cor0 WHERE NOT - 94 BETWEEN NULL AND NULL
----

query II rowsort
SELECT col2 * col2 * col0 AS col0, 92 FROM tab2 AS cor0
----
102400
92
24334
92
252300
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8151
SELECT COUNT( * ) DIV + 91 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8151
SELECT COUNT ( * ) / + 91 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL - col1 * + ( - + 69 ) FROM tab1 AS cor0
----
3243
345
966

query II rowsort
SELECT - + ( + ( - col2 ) ) AS col2, - 55 FROM tab2 AS cor0
----
23
-55
40
-55
58
-55

query II rowsort
SELECT - + col1, col2 AS col0 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query II rowsort
SELECT ALL - - col2 * 93 + - 7, col0 AS col2 FROM tab0 AS cor0
----
4364
15
9200
97
923
87

onlyif mysql # DIV for integer division: 
query II rowsort label-8156
SELECT DISTINCT + 29, col1 DIV - 18 AS col1 FROM tab2 AS cor0
----
29
-2
29
-3
29
-4

skipif mysql # not compatible
query II rowsort label-8156
SELECT DISTINCT + 29, col1 / - 18 AS col1 FROM tab2 AS cor0
----
29
-2
29
-3
29
-4

query II rowsort
SELECT ALL + 63, - col0 AS col1 FROM tab1 AS cor0
----
63
-51
63
-85
63
-91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 48 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT + - COUNT( ALL + + col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8159
SELECT + - COUNT ( ALL + + col0 ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8161
SELECT DISTINCT * FROM tab2 WHERE + CAST( + - 42 AS SIGNED ) * col1 - - col2 NOT BETWEEN col1 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8161
SELECT DISTINCT * FROM tab2 WHERE + CAST ( + - 42 AS INTEGER ) * col1 - - col2 NOT BETWEEN col1 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( 56 ) AS col2 FROM tab0
----
56

query I rowsort
SELECT 45 * + - col2 * - 97 AS col2 FROM tab2 AS cor0
----
100395
174600
253170

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 82 ) BETWEEN 38 AND col0
----

query I rowsort
SELECT ALL col0 * 61 FROM tab1
----
3111
5185
5551

query I rowsort
SELECT - col1 * - + col2 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT ALL - - COUNT( * ) col2 FROM tab0 AS cor0 WHERE ( - 82 ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8167
SELECT ALL - - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE ( - 82 ) IS NULL
----
0

query I rowsort
SELECT - col2 * - + col1 - - 22 * + col0 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
2185
4488
5536

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8169
SELECT ALL col0 + - - ( - + 4 ), 19 * + col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
42
NULL
60
NULL
71
NULL

skipif mysql # not compatible
query II rowsort label-8169
SELECT ALL col0 + - - ( - + 4 ), 19 * + col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
42
NULL
60
NULL
71
NULL

query I rowsort
SELECT ALL - - col2 FROM tab2 WHERE NOT ( NOT ( NOT - col0 / - - 32 BETWEEN NULL AND NULL ) )
----

query I rowsort
SELECT + 70 + - 24 FROM tab0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT + MAX( ALL + col2 ) + + COUNT( * ) col0 FROM tab2
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8172
SELECT + MAX ( ALL + col2 ) + + COUNT ( * ) col0 FROM tab2
----
61

query II rowsort
SELECT ALL + col0, 1 AS col2 FROM tab2 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT DISTINCT col2 * 63 FROM tab1
----
3717
4284
6048

query I rowsort
SELECT DISTINCT - col0 * + + col2 * col0 + - col2 * + col2 AS col2 FROM tab0
----
-12784
-75790
-941292

query I rowsort
SELECT - col0 + + ( 6 ) AS col2 FROM tab2
----
-40
-58
-69

query I rowsort
SELECT - col0 + + + 38 AS col2 FROM tab0
----
-49
-59
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8178
SELECT DISTINCT col0 * + + CAST( NULL AS SIGNED ) + + 4 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8178
SELECT DISTINCT col0 * + + CAST ( NULL AS INTEGER ) + + 4 AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT ALL + - SUM( ALL col2 ) AS col1 FROM tab1 cor0 WHERE - col0 * + col2 IS NOT NULL
----
-223

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL + - SUM ( ALL col2 ) AS col1 FROM tab1 cor0 WHERE - col0 * + col2 IS NOT NULL
----
-223

query I rowsort
SELECT ALL - + col2 - 61 * + 21 FROM tab0 cor0
----
-1291
-1328
-1380

onlyif mysql # DIV for integer division: 
query I rowsort label-8181
SELECT ALL + 21 - + col1 + col0 DIV + + col2 col2 FROM tab2 AS cor0
----
-28
-45
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8181
SELECT ALL + 21 - + col1 + col0 / + + col2 col2 FROM tab2 AS cor0
----
-28
-45
-55

query I rowsort
SELECT col2 FROM tab1 cor0 WHERE NOT col2 >= + 36 * + 61
----
59
68
96

query I rowsort
SELECT + - 65 AS col1 FROM tab1 cor0
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT - 14 * MAX( DISTINCT + col1 ) * + COUNT( * ) FROM tab1 AS cor0
----
-1974

skipif mysql # not compatible
query I rowsort label-8184
SELECT - 14 * MAX ( DISTINCT + col1 ) * + COUNT ( * ) FROM tab1 AS cor0
----
-1974

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 >= + col2 * + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8186
SELECT CAST( - 15 AS SIGNED ) AS col0 FROM tab0
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-8186
SELECT CAST ( - 15 AS INTEGER ) AS col0 FROM tab0
----
-15
-15
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8187
SELECT ALL + CAST( NULL AS SIGNED ) * + + col0 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8187
SELECT ALL + CAST ( NULL AS INTEGER ) * + + col0 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + - ( - 17 ) FROM tab0 WHERE NOT col1 IS NULL
----
1683
170
799

query II rowsort
SELECT col0, + col2 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT - col0 + + col0 + - 3 AS col2 FROM tab2 WHERE + col0 - 54 IS NOT NULL
----
-3

query I rowsort
SELECT - col1 * col0 * - 20 * - - col0 FROM tab0 AS cor0
----
188180
3178980
364500

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 76 > + col0
----
85
5
59
91
47
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < - 82
----

query I rowsort
SELECT DISTINCT - + ( - 13 ) FROM tab1 AS cor0
----
13

query I rowsort
SELECT ALL ( + + col2 ) * - + col1 AS col0 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT ALL COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8196
SELECT ALL COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT SUM( DISTINCT + + 91 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
91

skipif mysql # not compatible
query I rowsort label-8197
SELECT SUM ( DISTINCT + + 91 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
91

query I rowsort
SELECT DISTINCT + + 38 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
38

query I rowsort
SELECT - 6 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT ALL - col0 + - + col0 AS col1 FROM tab2
----
-128
-150
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8202
SELECT DISTINCT + + 11 + + + ( 42 ), + CAST( NULL AS SIGNED ) * - col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 28 AND + 14 - 16
----

skipif mysql # not compatible
query II rowsort label-8202
SELECT DISTINCT + + 11 + + + ( 42 ), + CAST ( NULL AS INTEGER ) * - col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 28 AND + 14 - 16
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 57 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT - - MIN( ALL + 12 ) + - 87 AS col1 FROM tab0 AS cor0 WHERE NULL <> col2 - + - ( - col0 ) * + 1 / - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-8204
SELECT - - MIN ( ALL + 12 ) + - 87 AS col1 FROM tab0 AS cor0 WHERE NULL <> col2 - + - ( - col0 ) * + 1 / - 83
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8205
SELECT - + CAST( + 92 AS SIGNED ) col2 FROM tab0 AS cor0
----
-92
-92
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8205
SELECT - + CAST ( + 92 AS INTEGER ) col2 FROM tab0 AS cor0
----
-92
-92
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8206
SELECT MIN( + col0 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8206
SELECT MIN ( + col0 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT DISTINCT + ( - MIN( ALL - - col1 ) ) * + SUM( ALL 66 ) + 58 AS col2 FROM tab0
----
-140

skipif mysql # not compatible
query I rowsort label-8207
SELECT DISTINCT + ( - MIN ( ALL - - col1 ) ) * + SUM ( ALL 66 ) + 58 AS col2 FROM tab0
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT ALL + ( - 38 ) + + - ( + + SUM( ALL + col1 ) ) AS col0 FROM tab1
----
-104

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL + ( - 38 ) + + - ( + + SUM ( ALL + col1 ) ) AS col0 FROM tab1
----
-104

query II rowsort
SELECT col1 * - col0 - - col1 AS col0, - 84 FROM tab2
----
-2295
-84
-4851
-84
-4958
-84

query I rowsort
SELECT DISTINCT + 12 + col2 FROM tab0 AS cor0
----
111
22
59

query I rowsort
SELECT + - 49 AS col2 FROM tab2 AS cor0
----
-49
-49
-49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8212
SELECT * FROM tab1 AS cor0 WHERE NOT ( + CAST( + 79 AS SIGNED ) * col2 <> NULL )
----

skipif mysql # not compatible
query III rowsort label-8212
SELECT * FROM tab1 AS cor0 WHERE NOT ( + CAST ( + 79 AS INTEGER ) * col2 <> NULL )
----

query I rowsort
SELECT + col1 * - - col2 * - col1 * 3 FROM tab0 AS cor0
----
-13230
-297
-925101

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT MAX( 8 ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-8214
SELECT MAX ( 8 ) FROM tab2 AS cor0
----
8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = ( + 64 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT ALL 20 * + COUNT( * ) * + ( - 7 ) col0 FROM tab2
----
-420

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8216
SELECT ALL 20 * + COUNT ( * ) * + ( - 7 ) col0 FROM tab2
----
-420

onlyif mysql # aggregate syntax: 
query II rowsort label-8217
SELECT ALL + COUNT( col0 ) * + ( - 11 ), + ( 25 ) * + SUM( ALL + 35 ) AS col2 FROM tab1
----
-33
2625

skipif mysql # not compatible
query II rowsort label-8217
SELECT ALL + COUNT ( col0 ) * + ( - 11 ), + ( 25 ) * + SUM ( ALL + 35 ) AS col2 FROM tab1
----
-33
2625

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT + + MAX( ALL - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8218
SELECT + + MAX ( ALL - col1 ) FROM tab1 AS cor0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8219
SELECT + - col2 DIV - + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8219
SELECT + - col2 / - + col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8220
SELECT - - ( - col1 ) DIV col0 - - col0 FROM tab2 AS cor0
----
45
63
75

skipif mysql # not compatible
query I rowsort label-8220
SELECT - - ( - col1 ) / col0 - - col0 FROM tab2 AS cor0
----
45
63
75

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 35 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8222
SELECT - - CAST( + col2 AS SIGNED ) AS col2, + col0 FROM tab2 WHERE NOT - 50 IS NULL
----
23
46
40
64
58
75

skipif mysql # not compatible
query II rowsort label-8222
SELECT - - CAST ( + col2 AS INTEGER ) AS col2, + col0 FROM tab2 WHERE NOT - 50 IS NULL
----
23
46
40
64
58
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 col1 FROM tab1
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT DISTINCT COUNT( * ) + + 27 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-8224
SELECT DISTINCT COUNT ( * ) + + 27 FROM tab0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT ( + - 87 ) * + 52 + - COUNT( * ) AS col2 FROM tab1
----
-4527

skipif mysql # not compatible
query I rowsort label-8225
SELECT ( + - 87 ) * + 52 + - COUNT ( * ) AS col2 FROM tab1
----
-4527

query I rowsort
SELECT DISTINCT col0 * 73 + + + 59 * + + 59 FROM tab0
----
10562
4576
9832

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT + SUM( - col0 ) FROM tab2 AS cor0 WHERE - col1 + 46 + + 36 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8227
SELECT + SUM ( - col0 ) FROM tab2 AS cor0 WHERE - col1 + 46 + + 36 <= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 22 + col0 col2, - col2 FROM tab2 cor0
----
68
-23
86
-40
97
-58

query II rowsort
SELECT - col1 + - 7 AS col2, 84 * col1 FROM tab0 AS cor0
----
-28
1764
-8
84
-88
6804

query I rowsort
SELECT ALL 15 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8231
SELECT DISTINCT - CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8231
SELECT DISTINCT - CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8232
SELECT col1 DIV - 79 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8232
SELECT col1 / - 79 AS col2 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 * 63 col1 FROM tab2
----
4473
4473
4473

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT DISTINCT - COUNT( + - col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT - COUNT ( + - col2 ) FROM tab2
----
-3

query I rowsort
SELECT + 91 - + - col1 * col1 FROM tab0 cor0
----
532
6652
92

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( + 71 ) = NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - - ( - 74 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * 47 + - - col0 + col2 <> + col0 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + col1 + + + 39 AS col1 FROM tab2 AS cor0
----
-12
-28
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8240
SELECT DISTINCT - + col1 - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8240
SELECT DISTINCT - + col1 - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT 43 - col0 FROM tab0
----
-44
-54
28

onlyif mysql # DIV for integer division: 
query II rowsort label-8242
SELECT DISTINCT - 83 - 8 + + col0 * + col1 + - 50 + - col1 * 0 + col1 DIV - + 99 AS col1, ( - col2 ) AS col2 FROM tab2
----
2205
-23
4787
-40
4884
-58

skipif mysql # not compatible
query II rowsort label-8242
SELECT DISTINCT - 83 - 8 + + col0 * + col1 + - 50 + - col1 * 0 + col1 / - + 99 AS col1, ( - col2 ) AS col2 FROM tab2
----
2205
-23
4787
-40
4884
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT ALL - COUNT( ALL + 5 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8243
SELECT ALL - COUNT ( ALL + 5 ) AS col2 FROM tab1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8244
SELECT 84 + - CAST( - MIN( DISTINCT + col2 ) AS SIGNED ) * - - ( + 17 ) * 3 FROM tab1
----
3093

skipif mysql # not compatible
query I rowsort label-8244
SELECT 84 + - CAST ( - MIN ( DISTINCT + col2 ) AS INTEGER ) * - - ( + 17 ) * 3 FROM tab1
----
3093

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8245
SELECT CAST( NULL AS DECIMAL ) * - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8245
SELECT CAST ( NULL AS REAL ) * - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT MAX( ALL + - col0 ) * + + 34 AS col0 FROM tab1
----
-1734

skipif mysql # not compatible
query I rowsort label-8246
SELECT MAX ( ALL + - col0 ) * + + 34 AS col0 FROM tab1
----
-1734

onlyif mysql # DIV for integer division: 
query II rowsort label-8247
SELECT DISTINCT - col0 * - col1 AS col1, 87 DIV + 36 AS col0 FROM tab1 AS cor0
----
425
2
4277
2
714
2

skipif mysql # not compatible
query II rowsort label-8247
SELECT DISTINCT - col0 * - col1 AS col1, 87 / + 36 AS col0 FROM tab1 AS cor0
----
425
2
4277
2
714
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8248
SELECT + col0 / - 48 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND - + CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8248
SELECT + col0 / - 48 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND - + CAST ( col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT + SUM( DISTINCT + 0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8249
SELECT + SUM ( DISTINCT + 0 ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8250
SELECT ALL col1 DIV 73 * col0 * 24 AS col2 FROM tab0
----
0
0
360

skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL col1 / 73 * col0 * 24 AS col2 FROM tab0
----
0
0
360

query I rowsort
SELECT ALL - + 25 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT ALL - MIN( DISTINCT + col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL - MIN ( DISTINCT + col2 ) FROM tab0
----
-10

query I rowsort
SELECT ALL + 2 + + col2 FROM tab0 WHERE - col1 + ( - col2 ) * col0 <= NULL
----

query I rowsort
SELECT DISTINCT 29 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + - + 24 * + 26 NOT BETWEEN + - col2 AND - 62
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8258
SELECT 59 + 74 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8258
SELECT 59 + 74 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8259
SELECT ALL col2 DIV col0 * - 69 AS col0, 87 + - + 5 AS col2 FROM tab0 AS cor0
----
-207
82
-69
82
0
82

skipif mysql # not compatible
query II rowsort label-8259
SELECT ALL col2 / col0 * - 69 AS col0, 87 + - + 5 AS col2 FROM tab0 AS cor0
----
-207
82
-69
82
0
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8260
SELECT col2 + - 29 + - - col0 + + col1 DIV - col0 FROM tab0 AS cor0
----
167
28
68

skipif mysql # not compatible
query I rowsort label-8260
SELECT col2 + - 29 + - - col0 + + col1 / - col0 FROM tab0 AS cor0
----
167
28
68

query I rowsort
SELECT - - 3 + + - col0 FROM tab0 AS cor0
----
-12
-84
-94

query I rowsort
SELECT DISTINCT - ( + - col1 ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL 3 + + col0 AS col2 FROM tab1 WHERE NOT ( + 79 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8264
SELECT DISTINCT CAST( - 90 AS SIGNED ) AS col0, 77 AS col2 FROM tab1
----
-90
77

skipif mysql # not compatible
query II rowsort label-8264
SELECT DISTINCT CAST ( - 90 AS INTEGER ) AS col0, 77 AS col2 FROM tab1
----
-90
77

query II rowsort
SELECT 48 * 6 - - - col0 AS col1, - ( + + ( + ( - col0 ) ) ) AS col1 FROM tab0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8266
SELECT ALL col1, 65 DIV col1 FROM tab0
----
1
65
21
3
81
0

skipif mysql # not compatible
query II rowsort label-8266
SELECT ALL col1, 65 / col1 FROM tab0
----
1
65
21
3
81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT + - COUNT( * ) AS col1 FROM tab0 WHERE col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8267
SELECT + - COUNT ( * ) AS col1 FROM tab0 WHERE col1 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8268
SELECT + + col1 / - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8268
SELECT + + col1 / - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT - + SUM( - 13 ) + + 12 FROM tab0 cor0
----
51

skipif mysql # not compatible
query I rowsort label-8269
SELECT - + SUM ( - 13 ) + + 12 FROM tab0 cor0
----
51

query I rowsort
SELECT col2 + 23 AS col1 FROM tab2
----
46
63
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT COUNT( DISTINCT - 3 ) * + - 71 + - 39 FROM tab1
----
-110

skipif mysql # not compatible
query I rowsort label-8271
SELECT COUNT ( DISTINCT - 3 ) * + - 71 + - 39 FROM tab1
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT ALL - 44 + + COUNT( * ) + + + MIN( ALL - - ( + + 13 ) ) FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL - 44 + + COUNT ( * ) + + + MIN ( ALL - - ( + + 13 ) ) FROM tab0
----
-28

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = - - col1 + - - 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT COUNT( * ) FROM tab1 WHERE + 60 <> + - col1
----
3

skipif mysql # not compatible
query I rowsort label-8274
SELECT COUNT ( * ) FROM tab1 WHERE + 60 <> + - col1
----
3

query I rowsort
SELECT - col1 FROM tab1 cor0 WHERE NULL <> ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8276
SELECT + CAST( + 40 AS SIGNED ) AS col2, + MIN( + - col1 ) AS col1 FROM tab2 AS cor0
----
40
-77

skipif mysql # not compatible
query II rowsort label-8276
SELECT + CAST ( + 40 AS INTEGER ) AS col2, + MIN ( + - col1 ) AS col1 FROM tab2 AS cor0
----
40
-77

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 - 63 + ( - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - col1 - - ( - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT + - MAX( + col0 ) FROM tab2 WHERE NOT ( NOT col0 * col0 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8279
SELECT + - MAX ( + col0 ) FROM tab2 WHERE NOT ( NOT col0 * col0 IS NULL )
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 70 < 79
----

query I rowsort
SELECT DISTINCT 53 * 40 AS col2 FROM tab0
----
2120

query II rowsort
SELECT + col2 AS col2, col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query II rowsort
SELECT + 55, 87 * - 83 AS col2 FROM tab0 cor0
----
55
-7221
55
-7221
55
-7221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8284
SELECT ALL 34 - - CAST( - col1 AS SIGNED ) AS col1 FROM tab1
----
-13
20
29

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL 34 - - CAST ( - col1 AS INTEGER ) AS col1 FROM tab1
----
-13
20
29

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN ( col1 ) AND ( + 96 + + col1 )
----

query I rowsort
SELECT DISTINCT 24 + + col0 FROM tab0
----
111
121
39

query I rowsort
SELECT ALL col0 FROM tab1 WHERE col0 + - col0 IN ( + 48 / - 9 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT DISTINCT 59 + SUM( ALL + col1 ) * + 79 FROM tab1
----
5273

skipif mysql # not compatible
query I rowsort label-8288
SELECT DISTINCT 59 + SUM ( ALL + col1 ) * + 79 FROM tab1
----
5273

query I rowsort
SELECT col0 * - 44 - + 10 FROM tab0 WHERE 16 * 85 IS NOT NULL
----
-3838
-4278
-670

query I rowsort
SELECT ALL col2 * - 59 AS col0 FROM tab1
----
-3481
-4012
-5664

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE - col2 IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 / + 89 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col0 * + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( col1 * - 54 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8295
SELECT DISTINCT MIN( DISTINCT 97 ) DIV 16 col2 FROM tab0 WHERE + 91 + col1 <= - col0 * - 77
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8295
SELECT DISTINCT MIN ( DISTINCT 97 ) / 16 col2 FROM tab0 WHERE + 91 + col1 <= - col0 * - 77
----
6

query I rowsort
SELECT - 38 + + col0 FROM tab0
----
-23
49
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8297
SELECT CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8297
SELECT CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT DISTINCT - ( SUM( DISTINCT + col0 ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-8298
SELECT DISTINCT - ( SUM ( DISTINCT + col0 ) ) FROM tab0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8299
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * - col1 <= ( + CAST( 27 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8299
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * - col1 <= ( + CAST ( 27 AS INTEGER ) )
----

query I rowsort
SELECT ( ( 48 ) ) AS col0 FROM tab0
----
48
48
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8301
SELECT - 25 + CAST( NULL AS SIGNED ) / - 79 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8301
SELECT - 25 + CAST ( NULL AS INTEGER ) / - 79 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NULL BETWEEN NULL AND 15
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 = ( col0 - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT ALL ( + 64 ) - + MIN( ALL col2 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL ( + 64 ) - + MIN ( ALL col2 ) AS col1 FROM tab1
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8305
SELECT COUNT( * ) DIV COUNT( * ) AS col2 FROM tab2 WHERE NOT 90 >= 92
----
1

skipif mysql # not compatible
query I rowsort label-8305
SELECT COUNT ( * ) / COUNT ( * ) AS col2 FROM tab2 WHERE NOT 90 >= 92
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > - col2 / - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8307
SELECT MAX( DISTINCT + col0 ) + + CAST( NULL AS SIGNED ) * 52 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8307
SELECT MAX ( DISTINCT + col0 ) + + CAST ( NULL AS INTEGER ) * 52 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col0 <= - 60
----
85
5
59
91
47
68

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 4 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT SUM( ALL 86 ) * + 5 AS col1 FROM tab0
----
1290

skipif mysql # not compatible
query I rowsort label-8310
SELECT SUM ( ALL 86 ) * + 5 AS col1 FROM tab0
----
1290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab1 AS cor0 WHERE + ( + 32 ) IN ( + 85 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( 62 )
----

query I rowsort
SELECT ALL 33 + - 83 AS col1 FROM tab1 cor0
----
-50
-50
-50

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 9 * - col2 NOT BETWEEN NULL AND col1 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT 79 * COUNT( * ) FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-8315
SELECT 79 * COUNT ( * ) FROM tab0
----
237

query I rowsort
SELECT ( 61 ) * - 66 FROM tab0
----
-4026
-4026
-4026

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + ( + 4 ) col0 FROM tab2
----
-50
-68
-79

query I rowsort
SELECT 28 - + ( + col1 ) AS col1 FROM tab1
----
-19
14
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8319
SELECT DISTINCT CAST( NULL AS SIGNED ) + MAX( col2 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8319
SELECT DISTINCT CAST ( NULL AS INTEGER ) + MAX ( col2 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT + 12 - col2 AS col0 FROM tab0
----
-35
-87
2

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 96 - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * + 23 + - col2 * - col1 AS col0 FROM tab2 AS cor0
----
1702
4000
5220

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 * - col0 - col1 col0 FROM tab2 AS cor0
----
-4007
-5581
-6517

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8324
SELECT ALL col2 + + CAST( NULL AS SIGNED ) / col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8324
SELECT ALL col2 + + CAST ( NULL AS INTEGER ) / col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 52 FROM tab1 cor0 WHERE NULL >= ( - col0 * col1 )
----

query I rowsort
SELECT DISTINCT - + col2 - 5 FROM tab1 AS cor0
----
-101
-64
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-8327
SELECT DISTINCT + col1 + col1 DIV + 47 FROM tab2 cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT + col1 + col1 / + 47 FROM tab2 cor0
----
52
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT DISTINCT + COUNT( * ) * MAX( - col1 ) + COUNT( * ) * - 91 col1 FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8328
SELECT DISTINCT + COUNT ( * ) * MAX ( - col1 ) + COUNT ( * ) * - 91 col1 FROM tab1 AS cor0
----
-288

query I rowsort
SELECT DISTINCT + 62 * col1 FROM tab0 AS cor0
----
1302
5022
62

query I rowsort
SELECT DISTINCT - col2 * - 21 AS col1 FROM tab2 AS cor0
----
1218
483
840

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT ALL + 88 - COUNT( * ) col1 FROM tab2 AS cor0 WHERE NULL > NULL
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8331
SELECT ALL + 88 - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NULL > NULL
----
88

query I rowsort
SELECT DISTINCT - ( + + col2 ) AS col0 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT + 16 * - 66 AS col1 FROM tab0
----
-1056
-1056
-1056

query I rowsort
SELECT - col1 * col1 AS col0 FROM tab1 WHERE NOT + 93 / - col1 NOT BETWEEN ( - ( + col2 ) ) AND NULL
----

query I rowsort
SELECT ALL + ( - + col1 ) FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT + MAX( DISTINCT - - col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-8336
SELECT + MAX ( DISTINCT - - col2 ) FROM tab2
----
58

query I rowsort
SELECT - col1 * col0 * col1 AS col1 FROM tab1
----
-201019
-2125
-9996

query I rowsort
SELECT DISTINCT 87 * col2 AS col0 FROM tab1 WHERE NOT 92 IS NULL
----
5133
5916
8352

query I rowsort
SELECT DISTINCT + 11 * + col2 * + col1 AS col0 FROM tab2
----
12903
33880
42746

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 / + ( 33 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT ALL - MIN( - col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8341
SELECT ALL - MIN ( - col1 ) AS col0 FROM tab0 AS cor0
----
81

query I rowsort
SELECT - 87 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT DISTINCT - MIN( DISTINCT + ( + - col0 ) ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8343
SELECT DISTINCT - MIN ( DISTINCT + ( + - col0 ) ) AS col0 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT DISTINCT - SUM( DISTINCT + + 24 ) col2 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8344
SELECT DISTINCT - SUM ( DISTINCT + + 24 ) col2 FROM tab0 AS cor0
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col2 * - col0 )
----

query II rowsort
SELECT DISTINCT - + 14, col2 AS col1 FROM tab0 cor0
----
-14
10
-14
47
-14
99

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) < - + 9 + - 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT ALL - + ( MIN( DISTINCT col0 ) ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL - + ( MIN ( DISTINCT col0 ) ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT - + col2 * - - col2 + - - col0 + + col1 + - 44 FROM tab2 AS cor0
----
-1503
-3266
-476

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab1 WHERE NOT NULL IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT ALL MAX( DISTINCT col0 ) * + 40 * - 3 AS col1 FROM tab0
----
-11640

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL MAX ( DISTINCT col0 ) * + 40 * - 3 AS col1 FROM tab0
----
-11640

query I rowsort
SELECT DISTINCT + col1 + + 87 FROM tab0 WHERE NOT ( + - col0 ) <> ( + 80 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( - - col2 ) NOT IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8354
SELECT ALL 8 + - CAST( - + col2 AS SIGNED ) + col0 FROM tab1
----
152
155
167

skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL 8 + - CAST ( - + col2 AS INTEGER ) + col0 FROM tab1
----
152
155
167

query I rowsort
SELECT ALL col1 * - 67 AS col2 FROM tab1
----
-3149
-335
-938

query I rowsort
SELECT DISTINCT col0 + + - col1 - 91 AS col1 FROM tab0
----
-157
-25
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( + ( + ( - - 82 ) ) - - 39 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8358
SELECT ALL + + 11 + + col1 AS col2, CAST( + col0 AS SIGNED ) DIV + col1 AS col1 FROM tab2 AS cor0
----
62
0
78
1
88
0

skipif mysql # not compatible
query II rowsort label-8358
SELECT ALL + + 11 + + col1 AS col2, CAST ( + col0 AS INTEGER ) / + col1 AS col1 FROM tab2 AS cor0
----
62
0
78
1
88
0

query I rowsort
SELECT + col0 * - - 61 + + col1 FROM tab2 AS cor0
----
2857
3981
4642

onlyif mysql # aggregate syntax: 
query II rowsort label-8360
SELECT - COUNT( * ) col1, 2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8360
SELECT - COUNT ( * ) col1, 2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8361
SELECT DISTINCT + col2 + + + CAST( NULL AS DECIMAL ) + 63 * col0 * + 69 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8361
SELECT DISTINCT + col2 + + + CAST ( NULL AS REAL ) + 63 * col0 * + 69 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8362
SELECT - COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8362
SELECT - COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8363
SELECT ALL COUNT( * ) AS col0, 22 * + - 73 FROM tab1 AS cor0
----
3
-1606

skipif mysql # not compatible
query II rowsort label-8363
SELECT ALL COUNT ( * ) AS col0, 22 * + - 73 FROM tab1 AS cor0
----
3
-1606

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT DISTINCT - SUM( - - col0 ) FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-8364
SELECT DISTINCT - SUM ( - - col0 ) FROM tab1 cor0
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - + col2 col2 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8366
SELECT DISTINCT - MAX( - CAST( - ( - 35 ) AS SIGNED ) ) FROM tab1 cor0
----
35

skipif mysql # not compatible
query I rowsort label-8366
SELECT DISTINCT - MAX ( - CAST ( - ( - 35 ) AS INTEGER ) ) FROM tab1 cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE - ( col1 ) - col0 + col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE - ( col1 ) - col0 + col0 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT - MIN( ALL - col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT + 5 = + col0 * - - col2
----
81

skipif mysql # not compatible
query I rowsort label-8368
SELECT - MIN ( ALL - col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT + 5 = + col0 * - - col2
----
81

query I rowsort
SELECT + ( col2 ) AS col1 FROM tab0 WHERE NOT - 31 = ( - - col0 / - 34 + 98 + col0 )
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8370
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL NOT IN ( - col1 / CAST( NULL AS DECIMAL ) + - + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8370
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL NOT IN ( - col1 / CAST ( NULL AS REAL ) + - + col0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8371
SELECT - MAX( CAST( 87 AS SIGNED ) ) * + COUNT( * ) FROM tab2 WHERE NOT col0 + - col2 BETWEEN + col0 AND NULL
----
-261

skipif mysql # not compatible
query I rowsort label-8371
SELECT - MAX ( CAST ( 87 AS INTEGER ) ) * + COUNT ( * ) FROM tab2 WHERE NOT col0 + - col2 BETWEEN + col0 AND NULL
----
-261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8372
SELECT DISTINCT 76 + - + col2 * - + 2 * - CAST( - col1 AS SIGNED ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8372
SELECT DISTINCT 76 + - + col2 * - + 2 * - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 NOT BETWEEN NULL AND + ( - col0 ) + + col0
----

query I rowsort
SELECT - 9 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8375
SELECT + ( + COUNT( * ) ) AS col0, CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-8375
SELECT + ( + COUNT ( * ) ) AS col0, CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
3
-3

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT ( ( - 51 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT - SUM( ALL - 31 ) AS col0 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-8377
SELECT - SUM ( ALL - 31 ) AS col0 FROM tab2 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT - MIN( + 51 ) AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN - 56 AND + col2 / col2 * col1 / 56 - - col0 * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8378
SELECT - MIN ( + 51 ) AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN - 56 AND + col2 / col2 * col1 / 56 - - col0 * 60
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8379
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 82 / 96 / - 44 BETWEEN NULL AND ( + - CAST( - col1 AS SIGNED ) + - col2 )
----

skipif mysql # not compatible
query III rowsort label-8379
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 82 / 96 / - 44 BETWEEN NULL AND ( + - CAST ( - col1 AS INTEGER ) + - col2 )
----

query I rowsort
SELECT ALL - - col2 + - + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - 63 * - 43 + 0 AS col0 FROM tab0 AS cor0
----
2709
2709
2709

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 ) / + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8383
SELECT ALL * FROM tab1 cor0 WHERE NOT ( ( + ( col0 ) ) - + CAST( col2 AS SIGNED ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8383
SELECT ALL * FROM tab1 cor0 WHERE NOT ( ( + ( col0 ) ) - + CAST ( col2 AS INTEGER ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL < - col0
----

query I rowsort
SELECT ALL + 44 * - col0 FROM tab2
----
-2024
-2816
-3300

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT ALL - COUNT( * ) + COUNT( ALL - col1 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8386
SELECT ALL - COUNT ( * ) + COUNT ( ALL - col1 ) AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + col0 * + + col0 AS col0 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT DISTINCT col2 * ( 64 ) + + ( + col1 ) FROM tab0
----
3089
6337
661

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE + col0 IN ( - - col0 * + col0 + + + col1 )
----

query I rowsort
SELECT col2 * 30 + - col0 AS col1 FROM tab1
----
1685
1949
2829

onlyif mysql # DIV for integer division: 
query I rowsort label-8391
SELECT DISTINCT 52 + + col0 DIV 11 DIV + 83 AS col1 FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-8391
SELECT DISTINCT 52 + + col0 / 11 / + 83 AS col1 FROM tab2
----
52

query I rowsort
SELECT ALL - col1 + + - col1 AS col1 FROM tab1
----
-10
-28
-94

query III rowsort
SELECT * FROM tab0 WHERE + col1 + - col1 + - 63 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + - 15 + + - 47 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT DISTINCT 19 * - COUNT( * ) AS col2 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-8395
SELECT DISTINCT 19 * - COUNT ( * ) AS col2 FROM tab2
----
-57

query I rowsort
SELECT DISTINCT + col2 * + + 7 + + col2 AS col0 FROM tab1
----
472
544
768

query I rowsort
SELECT DISTINCT - col2 - + + 14 FROM tab1 AS cor0
----
-110
-73
-82

query I rowsort
SELECT + 18 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 19 - - col2 <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * + col1 + 47 + - 94 <= NULL
----

query I rowsort
SELECT DISTINCT + 23 * - col0 FROM tab0 AS cor0
----
-2001
-2231
-345

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8402
SELECT ALL + - COUNT( * ) DIV + + 75 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL + - COUNT ( * ) / + + 75 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8403
SELECT DISTINCT 60 DIV - + col1 FROM tab1 AS cor0
----
-1
-12
-4

skipif mysql # not compatible
query I rowsort label-8403
SELECT DISTINCT 60 / - + col1 FROM tab1 AS cor0
----
-1
-12
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT ALL - COUNT( - - ( - - 81 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8404
SELECT ALL - COUNT ( - - ( - - 81 ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT col1 * + 96 FROM tab0
----
2016
7776
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8406
SELECT - CAST( - SUM( ALL - CAST( NULL AS DECIMAL ) ) AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8406
SELECT - CAST ( - SUM ( ALL - CAST ( NULL AS REAL ) ) AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8407
SELECT ALL - 43 DIV 37 * + + col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL - 43 / 37 * + + col0 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8408
SELECT ALL - + 77, MIN( + CAST( col0 AS SIGNED ) ) / + + SUM( 34 ) AS col2 FROM tab2 WHERE NULL >= - 30 * - col1 + - col1
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-8408
SELECT ALL - + 77, MIN ( + CAST ( col0 AS INTEGER ) ) / + + SUM ( 34 ) AS col2 FROM tab2 WHERE NULL >= - 30 * - col1 + - col1
----
-77
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = + 5
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > + col2 + col0
----

query I rowsort
SELECT ALL - 35 FROM tab0 cor0
----
-35
-35
-35

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NULL NOT BETWEEN - 3 AND NULL
----

query I rowsort
SELECT + ( + ( 88 ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT - col2 * + 5 * col1 * + col1 FROM tab2
----
-1185800
-1301810
-299115

query I rowsort
SELECT ALL 65 * 73 + + + 17 FROM tab0
----
4762
4762
4762

query I rowsort
SELECT DISTINCT ( + col1 ) + + ( - col1 ) + - + col1 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT ALL - + 49 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL - + 49 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-52

query I rowsort
SELECT + col1 + - ( - + col2 ) FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query II rowsort label-8419
SELECT - COUNT( * ), 61 AS col2 FROM tab1 AS cor0
----
-3
61

skipif mysql # not compatible
query II rowsort label-8419
SELECT - COUNT ( * ), 61 AS col2 FROM tab1 AS cor0
----
-3
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT + COUNT( DISTINCT + 52 ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8420
SELECT + COUNT ( DISTINCT + 52 ) AS col2 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT - ( + + COUNT( DISTINCT - col1 ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8421
SELECT - ( + + COUNT ( DISTINCT - col1 ) ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT + + COUNT( * ) * - + 77 FROM tab1 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-8422
SELECT + + COUNT ( * ) * - + 77 FROM tab1 AS cor0
----
-231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8423
SELECT + 83 + col0 AS col0 FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8423
SELECT + 83 + col0 AS col0 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT ALL - col0 AS col2, col0 FROM tab2 WHERE NOT - col0 BETWEEN + col1 AND NULL
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT - MIN( DISTINCT 53 ) FROM tab2 WHERE col0 / + 15 + + + 4 / - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8425
SELECT - MIN ( DISTINCT 53 ) FROM tab2 WHERE col0 / + 15 + + + 4 / - col1 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8426
SELECT - col2 * + 44 - - col0 DIV 52 FROM tab0
----
-2068
-4355
-439

skipif mysql # not compatible
query I rowsort label-8426
SELECT - col2 * + 44 - - col0 / 52 FROM tab0
----
-2068
-4355
-439

onlyif mysql # DIV for integer division: 
query I rowsort label-8427
SELECT DISTINCT - + col0 DIV - col2 + - - 17 AS col0 FROM tab1 cor0
----
17
18

skipif mysql # not compatible
query I rowsort label-8427
SELECT DISTINCT - + col0 / - col2 + - - 17 AS col0 FROM tab1 cor0
----
17
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT DISTINCT + MAX( ALL - + col1 ) * - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8428
SELECT DISTINCT + MAX ( ALL - + col1 ) * - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( + 36 * + col1 - - col1 )
----

query I rowsort
SELECT ALL - 41 * + - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
2419
2788
3936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8431
SELECT - ( + - CAST( - - 27 AS SIGNED ) ) AS col2, - SUM( ALL - col2 ) - - + COUNT( * ) FROM tab1 AS cor0
----
27
226

skipif mysql # not compatible
query II rowsort label-8431
SELECT - ( + - CAST ( - - 27 AS INTEGER ) ) AS col2, - SUM ( ALL - col2 ) - - + COUNT ( * ) FROM tab1 AS cor0
----
27
226

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT ALL MAX( DISTINCT col2 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL MAX ( DISTINCT col2 ) AS col2 FROM tab0
----
99

query III rowsort
SELECT * FROM tab2 WHERE NOT 17 = + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT SUM( ALL + 45 ) FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-8434
SELECT SUM ( ALL + 45 ) FROM tab2 AS cor0
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-8435
SELECT COUNT( * ) * + - MIN( ALL + - col2 ) AS col1, + 0 AS col2 FROM tab0 AS cor0
----
297
0

skipif mysql # not compatible
query II rowsort label-8435
SELECT COUNT ( * ) * + - MIN ( ALL + - col2 ) AS col1, + 0 AS col2 FROM tab0 AS cor0
----
297
0

query I rowsort
SELECT - col0 * col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8437
SELECT DISTINCT 24 DIV col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8437
SELECT DISTINCT 24 / col0 FROM tab0 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8438
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) NOT IN ( + - col1, CAST( NULL AS SIGNED ) * 27 * + 16 )
----

skipif mysql # not compatible
query III rowsort label-8438
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) NOT IN ( + - col1, CAST ( NULL AS INTEGER ) * 27 * + 16 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - ( - col1 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT ALL 20 * COUNT( * ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL 20 * COUNT ( * ) FROM tab2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT ALL 0 * - MIN( - col1 ) * - 40 + + 18 FROM tab1 WHERE + + col0 + - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL 0 * - MIN ( - col1 ) * - 40 + + 18 FROM tab1 WHERE + + col0 + - col0 IS NULL
----
NULL

query I rowsort
SELECT + + col0 * 50 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
4350
4850
750

query I rowsort
SELECT col2 * 40 * - col0 FROM tab0
----
-28200
-34800
-384120

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND 14 - + - 39
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8445
SELECT ALL col1 * col2 + - + col2 * col2 DIV col1 AS col1 FROM tab1
----
-401
3098
686

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL col1 * col2 + - + col2 * col2 / col1 AS col1 FROM tab1
----
-401
3098
686

query I rowsort
SELECT ALL - col2 + - 36 AS col2 FROM tab1 AS cor0
----
-104
-132
-95

query I rowsort
SELECT DISTINCT + + col1 * - col2 * + + col0 + - col2 FROM tab0 AS cor0
----
-18280
-57152
-9702

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT + + 26 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8448
SELECT + + 26 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
23

query I rowsort
SELECT ALL col2 * + - col0 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8450
SELECT * FROM tab0 AS cor0 WHERE + 52 NOT BETWEEN col2 + - ( - - 57 ) + - col2 + + - 20 + + + 60 + - CAST( NULL AS SIGNED ) * + col2 + col1 * col1 * + - 18 * - col0 * col2 * col0 AND 41 / col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8450
SELECT * FROM tab0 AS cor0 WHERE + 52 NOT BETWEEN col2 + - ( - - 57 ) + - col2 + + - 20 + + + 60 + - CAST ( NULL AS INTEGER ) * + col2 + col1 * col1 * + - 18 * - col0 * col2 * col0 AND 41 / col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8452
SELECT - CAST( + col1 AS SIGNED ) col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8452
SELECT - CAST ( + col1 AS INTEGER ) col1 FROM tab2
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8453
SELECT - col1 DIV - - 28 col0 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8453
SELECT - col1 / - - 28 col0 FROM tab2
----
-1
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT COUNT( + ( - 56 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8454
SELECT COUNT ( + ( - 56 ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8455
SELECT ALL + ( - + CAST( NULL AS SIGNED ) ) / + + 79 * - 42 + - 69 * - col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL + ( - + CAST ( NULL AS INTEGER ) ) / + + 79 * - 42 + - 69 * - col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + ( 75 ) ) + - 75 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 11 * + + col0 * + col1 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8458
SELECT DISTINCT 66 col2, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
66
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8458
SELECT DISTINCT 66 col2, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
66
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 2 col1 FROM tab1 cor0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8460
SELECT + + CAST( NULL AS SIGNED ) col0 FROM tab2 WHERE + col1 + - 7 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8460
SELECT + + CAST ( NULL AS INTEGER ) col0 FROM tab2 WHERE + col1 + - 7 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT + - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8462
SELECT + 49 AS col1, COUNT( * ) FROM tab1
----
49
3

skipif mysql # not compatible
query II rowsort label-8462
SELECT + 49 AS col1, COUNT ( * ) FROM tab1
----
49
3

query I rowsort
SELECT + 24 * + + 2 * 63 FROM tab0
----
3024
3024
3024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8464
SELECT - ( + - COUNT( * ) ) DIV - + MIN( ALL - col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8464
SELECT - ( + - COUNT ( * ) ) / - + MIN ( ALL - col1 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8465
SELECT - 9 AS col0, COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL BETWEEN col0 * - col1 AND NULL )
----
-9
0

skipif mysql # not compatible
query II rowsort label-8465
SELECT - 9 AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL BETWEEN col0 * - col1 AND NULL )
----
-9
0

query II rowsort
SELECT + 27 AS col2, + ( + col1 ) FROM tab0 AS cor0
----
27
1
27
21
27
81

query I rowsort
SELECT col1 + - col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
28
37
9

query I rowsort
SELECT - ( + - 55 ) FROM tab2
----
55
55
55

query II rowsort
SELECT - 46 * + + 59 AS col2, + col1 * + col2 AS col1 FROM tab0
----
-2714
210
-2714
3807
-2714
99

query I rowsort
SELECT ALL - 37 * - col0 AS col1 FROM tab1 AS cor0
----
1887
3145
3367

onlyif mysql # DIV for integer division: 
query I rowsort label-8471
SELECT col2 DIV 17 * - col2 + col0 FROM tab0 AS cor0
----
-398
-79
87

skipif mysql # not compatible
query I rowsort label-8471
SELECT col2 / 17 * - col2 + col0 FROM tab0 AS cor0
----
-398
-79
87

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 85 <> + col2 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8473
SELECT col0, - col1 * col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( - CAST( - col0 AS DECIMAL ) + CAST( - col2 AS SIGNED ) + - + col0 ) IS NULL
----
46
-2601
64
-5929
75
-4489

skipif mysql # not compatible
query II rowsort label-8473
SELECT col0, - col1 * col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( - CAST ( - col0 AS REAL ) + CAST ( - col2 AS INTEGER ) + - + col0 ) IS NULL
----
46
-2601
64
-5929
75
-4489

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8474
SELECT DISTINCT MIN( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8474
SELECT DISTINCT MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT - ( - MAX( DISTINCT - col0 ) ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-8475
SELECT - ( - MAX ( DISTINCT - col0 ) ) AS col1 FROM tab0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8476
SELECT DISTINCT CAST( ( col1 ) AS SIGNED ) AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8476
SELECT DISTINCT CAST ( ( col1 ) AS INTEGER ) AS col1 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT ALL + 53 + + COUNT( * ) FROM tab2 WHERE col0 * + col2 BETWEEN NULL AND + 44
----
53

skipif mysql # not compatible
query I rowsort label-8477
SELECT ALL + 53 + + COUNT ( * ) FROM tab2 WHERE col0 * + col2 BETWEEN NULL AND + 44
----
53

query II rowsort
SELECT + col1, + col2 * + 88 FROM tab0
----
1
8712
21
880
81
4136

query I rowsort
SELECT DISTINCT - col1 * + - ( + + col0 ) + col0 AS col0 FROM tab1
----
4368
510
765

query III rowsort
SELECT * FROM tab0 WHERE NOT - 83 < ( - 25 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT NULL <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT ALL + - COUNT( + - col0 ) FROM tab0 WHERE ( + col1 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8482
SELECT ALL + - COUNT ( + - col0 ) FROM tab0 WHERE ( + col1 IS NULL )
----
0

query I rowsort
SELECT ALL - 7 + - col1 FROM tab0
----
-28
-8
-88

query II rowsort
SELECT 39, col1 FROM tab1 AS cor0
----
39
14
39
47
39
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 63 * - 29 + - 97 col2, - 69 + + - col2 + + - 99 + - col0 - + 47 * - col1 AS col2 FROM tab1 AS cor0
----
1730
-77
1730
1882
1730
343

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE ( col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8487
SELECT - col2 * col1 + col0 + + CAST( NULL AS SIGNED ) / + col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8487
SELECT - col2 * col1 + col0 + + CAST ( NULL AS INTEGER ) / + col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8488
SELECT DISTINCT + 24 + col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
-73
20
24

skipif mysql # not compatible
query I rowsort label-8488
SELECT DISTINCT + 24 + col0 / - col1 AS col2 FROM tab0 AS cor0
----
-73
20
24

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 <> + 75 + 91
----

query I rowsort
SELECT ALL - + 61 - - + 0 AS col2 FROM tab1 AS cor0
----
-61
-61
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8491
SELECT DISTINCT + COUNT( * ) * - 99, + CAST( + ( - ( - CAST( NULL AS SIGNED ) ) ) AS SIGNED ) col2 FROM tab0 AS cor0
----
-297
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8491
SELECT DISTINCT + COUNT ( * ) * - 99, + CAST ( + ( - ( - CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) col2 FROM tab0 AS cor0
----
-297
NULL

query I rowsort
SELECT + ( + col0 ) * 19 FROM tab1 AS cor0
----
1615
1729
969

query I rowsort
SELECT DISTINCT - col0 * + + 98 + col1 FROM tab2 AS cor0
----
-4457
-6195
-7283

query I rowsort
SELECT col0 * - 87 * - col0 AS col1 FROM tab0 AS cor0
----
19575
658503
818583

query III rowsort
SELECT * FROM tab1 WHERE col0 NOT BETWEEN col0 AND + col2
----
85
5
59
91
47
68

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 NOT IN ( - + 8 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8497
SELECT - 42 DIV col1 FROM tab0
----
-2
-42
0

skipif mysql # not compatible
query I rowsort label-8497
SELECT - 42 / col1 FROM tab0
----
-2
-42
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8498
SELECT + CAST( - + ( 98 ) AS SIGNED ) DIV - 43 - - col2 FROM tab1
----
61
70
98

skipif mysql # not compatible
query I rowsort label-8498
SELECT + CAST ( - + ( 98 ) AS INTEGER ) / - 43 - - col2 FROM tab1
----
61
70
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT + MIN( DISTINCT - ( col1 ) ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-8499
SELECT + MIN ( DISTINCT - ( col1 ) ) AS col1 FROM tab2
----
-77

query I rowsort
SELECT - ( - 39 ) AS col1 FROM tab0 AS cor0
----
39
39
39

query I rowsort
SELECT - - 8 AS col1 FROM tab0 AS cor0
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8502
SELECT - CAST( NULL AS SIGNED ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8502
SELECT - CAST ( NULL AS INTEGER ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT + col0, col1 AS col1 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT ALL - COUNT( ALL + col1 ) col1 FROM tab0 WHERE NOT - 89 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8504
SELECT ALL - COUNT ( ALL + col1 ) col1 FROM tab0 WHERE NOT - 89 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8505
SELECT DISTINCT - 68 AS col0 FROM tab2 WHERE NOT NULL BETWEEN col2 * + - col1 * - CAST( NULL AS SIGNED ) * col1 AND + + col0
----

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT - 68 AS col0 FROM tab2 WHERE NOT NULL BETWEEN col2 * + - col1 * - CAST ( NULL AS INTEGER ) * col1 AND + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 48 col1, + col2 AS col1 FROM tab2 AS cor0
----
48
23
48
40
48
58

query I rowsort
SELECT + ( - col0 ) AS col2 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8508
SELECT - 87 DIV col2 * + - 66 * - col1 + - col2 AS col1 FROM tab2 AS cor0
----
-10121
-10204
-4480

skipif mysql # not compatible
query I rowsort label-8508
SELECT - 87 / col2 * + - 66 * - col1 + - col2 AS col1 FROM tab2 AS cor0
----
-10121
-10204
-4480

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT ALL + MIN( + col0 ) AS col0 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL + MIN ( + col0 ) AS col0 FROM tab2 cor0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8510
SELECT + col0 DIV - 60 AS col2 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8510
SELECT + col0 / - 60 AS col2 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL col1 * - ( + col0 ) FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT + ( - 11 ) + col2 FROM tab0
----
-1
36
88

onlyif mysql # aggregate syntax: 
query II rowsort label-8513
SELECT 16 + - COUNT( * ), - COUNT( * ) AS col1 FROM tab1
----
13
-3

skipif mysql # not compatible
query II rowsort label-8513
SELECT 16 + - COUNT ( * ), - COUNT ( * ) AS col1 FROM tab1
----
13
-3

query II rowsort
SELECT ALL + col2 + - - col2, col2 AS col0 FROM tab1
----
118
59
136
68
192
96

query I rowsort
SELECT + col1 + + + col0 - col0 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL 60 + + 83 + - col1 + col0 FROM tab1
----
180
187
223

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT - COUNT( * ) col1 FROM tab2 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8517
SELECT - COUNT ( * ) col1 FROM tab2 WHERE - col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT - 47 + col0 FROM tab2 AS cor0
----
-1
17
28

query II rowsort
SELECT ALL col2 * - col2 AS col0, 46 FROM tab0 AS cor0
----
-100
46
-2209
46
-9801
46

query I rowsort
SELECT - - 13 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT DISTINCT + 71 * + 63 * + col2 AS col0 FROM tab1
----
263907
304164
429408

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8522
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 86 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-8523
SELECT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 86 IS NULL
----
9

query I rowsort
SELECT + 52 - - 90 + - ( - col2 ) FROM tab0
----
152
189
241

query I rowsort
SELECT DISTINCT - - col2 - 22 FROM tab1 AS cor0
----
37
46
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8526
SELECT DISTINCT + CAST( - SUM( CAST( + 21 AS SIGNED ) ) AS SIGNED ) FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-8526
SELECT DISTINCT + CAST ( - SUM ( CAST ( + 21 AS INTEGER ) ) AS INTEGER ) FROM tab2
----
-63

query I rowsort
SELECT + col2 * + + col0 AS col2 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT - col1 * + + ( col1 ) AS col0 FROM tab2
----
-2601
-4489
-5929

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 36 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8530
SELECT DISTINCT 33 DIV + 65 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8530
SELECT DISTINCT 33 / + 65 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8531
SELECT ALL col1 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN NULL AND + col2
----

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL col1 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8532
SELECT ALL + CAST( + 97 AS SIGNED ) AS col0, 0 col1 FROM tab2
----
97
0
97
0
97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8532
SELECT ALL + CAST ( + 97 AS INTEGER ) AS col0, 0 col1 FROM tab2
----
97
0
97
0
97
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8533
SELECT - COUNT( * ) DIV + 79 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8533
SELECT - COUNT ( * ) / + 79 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8534
SELECT DISTINCT 11 DIV - 89 + + MAX( + + 46 ) col1 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8534
SELECT DISTINCT 11 / - 89 + + MAX ( + + 46 ) col1 FROM tab1 AS cor0
----
46

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE NULL > - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8536
SELECT DISTINCT - MAX( + CAST( + col2 AS SIGNED ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8536
SELECT DISTINCT - MAX ( + CAST ( + col2 AS INTEGER ) ) FROM tab1
----
-96

query I rowsort
SELECT ALL + - 82 + - col1 AS col0 FROM tab1 AS cor0
----
-129
-87
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8538
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - + CAST( + + CAST( + ( + 98 ) AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8538
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - + CAST ( + + CAST ( + ( + 98 ) AS INTEGER ) AS INTEGER )
----

query I rowsort
SELECT ALL - ( + col1 ) + - + col1 + + + col2 * col0 AS col1 FROM tab0 AS cor0
----
543
828
9601

query II rowsort
SELECT - ( + col2 ) + - 93, col1 FROM tab1 AS cor0
----
-152
5
-161
47
-189
14

query II rowsort
SELECT - + col0 + + col2 * + col0, - 8 * + col2 AS col0 FROM tab0 AS cor0
----
690
-376
783
-80
9506
-792

onlyif mysql # DIV for integer division: 
query I rowsort label-8542
SELECT + col1 DIV 42 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8542
SELECT + col1 / 42 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8543
SELECT - col0 DIV + 59 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8543
SELECT - col0 / + 59 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT MAX( + ( - - 73 ) ) AS col2 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-8544
SELECT MAX ( + ( - - 73 ) ) AS col2 FROM tab0
----
73

query III rowsort
SELECT * FROM tab1 WHERE + + 41 IN ( + col1, col1, 89, - + 68 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IS NULL OR col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8547
SELECT CAST( 98 AS SIGNED ) * - - col2 AS col2 FROM tab2
----
2254
3920
5684

skipif mysql # not compatible
query I rowsort label-8547
SELECT CAST ( 98 AS INTEGER ) * - - col2 AS col2 FROM tab2
----
2254
3920
5684

query I rowsort
SELECT DISTINCT col0 * - - ( 24 ) FROM tab1
----
1224
2040
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT + 5 * + + COUNT( * ) AS col1 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-8549
SELECT + 5 * + + COUNT ( * ) AS col1 FROM tab1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8550
SELECT ALL + ( + CAST( - - 20 AS SIGNED ) ) * COUNT( * ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL + ( + CAST ( - - 20 AS INTEGER ) ) * COUNT ( * ) FROM tab2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT ALL 58 + + - COUNT( * ) * + 99 FROM tab0
----
-239

skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL 58 + + - COUNT ( * ) * + 99 FROM tab0
----
-239

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - 94 / - 49 AND NULL
----

query I rowsort
SELECT - ( + col0 ) + + 11 FROM tab2 AS cor0
----
-35
-53
-64

query I rowsort
SELECT - col1 + 7 AS col0 FROM tab2 cor0
----
-44
-60
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT + COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8555
SELECT + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8556
SELECT DISTINCT - COUNT( DISTINCT + CAST( ( + col2 ) AS SIGNED ) ) * COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8556
SELECT DISTINCT - COUNT ( DISTINCT + CAST ( ( + col2 ) AS INTEGER ) ) * COUNT ( * ) AS col2 FROM tab2
----
-9

query I rowsort
SELECT DISTINCT + 73 AS col0 FROM tab1, tab2 AS cor0
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + - 4 * + + col2 col2, - col0, - col1 AS col1 FROM tab2 AS cor0
----
9 values hashing to dd2e36b0e5ddb6fe18e97fe91c2d8a4e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8559
SELECT - ( - 12 ) * col1 - + 44 + CAST( 32 AS SIGNED ) FROM tab2 AS cor0
----
600
792
912

skipif mysql # not compatible
query I rowsort label-8559
SELECT - ( - 12 ) * col1 - + 44 + CAST ( 32 AS INTEGER ) FROM tab2 AS cor0
----
600
792
912

query I rowsort
SELECT ALL - col1 + - ( - + col0 ) FROM tab1 AS cor0
----
37
44
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + 16 ) col2 FROM tab0 AS cor0
----
-16
-16
-16

query I rowsort
SELECT ALL + + 14 * 62 FROM tab2 AS cor0
----
868
868
868

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT DISTINCT + + COUNT( * ) FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT + + COUNT ( * ) FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
3

query I rowsort
SELECT + col0 * - 10 FROM tab0 AS cor0
----
-150
-870
-970

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8565
SELECT 43 * ( + + COUNT( * ) ) DIV - - 50 FROM tab0 WHERE NOT NULL IS NOT NULL
----
2

skipif mysql # not compatible
query I rowsort label-8565
SELECT 43 * ( + + COUNT ( * ) ) / - - 50 FROM tab0 WHERE NOT NULL IS NOT NULL
----
2

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 96 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 13 * + col0 - + - 0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 74 AS col2 FROM tab0 WHERE + col1 / + col1 IS NOT NULL
----
74

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( - col0 ) >= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col1 AS col2, 27 FROM tab2
----
51
27
67
27
77
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8571
SELECT DISTINCT + COUNT( * ) DIV + 74 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8571
SELECT DISTINCT + COUNT ( * ) / + 74 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8572
SELECT - 96, + 49 * - 78 * + MAX( - 78 ) AS col1 FROM tab0 cor0
----
-96
298116

skipif mysql # not compatible
query II rowsort label-8572
SELECT - 96, + 49 * - 78 * + MAX ( - 78 ) AS col1 FROM tab0 cor0
----
-96
298116

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + col0 AS col1, col2 - - col0 * 78 FROM tab2 AS cor0
----
46
3611
64
5032
75
5908

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8575
SELECT - COUNT( * ) DIV COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8575
SELECT - COUNT ( * ) / COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8576
SELECT DISTINCT + col2 DIV - ( 29 ) + - ( + ( - + 33 ) ) FROM tab0 AS cor0
----
30
32
33

skipif mysql # not compatible
query I rowsort label-8576
SELECT DISTINCT + col2 / - ( 29 ) + - ( + ( - + 33 ) ) FROM tab0 AS cor0
----
30
32
33

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8578
SELECT - 28 DIV + + col1 FROM tab1 AS cor0
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-8578
SELECT - 28 / + + col1 FROM tab1 AS cor0
----
-2
-5
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL >= + 45
----

query I rowsort
SELECT ALL col1 * - - col0 FROM tab0 AS cor0 WHERE 97 NOT IN ( + 97 / + - 15, - col2, - 56 * + 70 )
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT MIN( + col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8581
SELECT MIN ( + col1 ) AS col2 FROM tab1 AS cor0
----
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 < col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT ALL + - ( - MIN( - - col1 ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL + - ( - MIN ( - - col1 ) ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + 72 + - - 42 AS col1 FROM tab2
----
114
114
114

query III rowsort
SELECT * FROM tab1 WHERE 62 + + col2 IS NULL
----

query I rowsort
SELECT col0 - - 86 FROM tab0
----
101
173
183

query I rowsort
SELECT ALL col0 + + - col1 AS col0 FROM tab2
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT + COUNT( * ) - - MAX( col0 ) AS col2 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-8588
SELECT + COUNT ( * ) - - MAX ( col0 ) AS col2 FROM tab2
----
78

query II rowsort
SELECT ALL + 12 AS col2, 57 FROM tab1 AS cor0
----
12
57
12
57
12
57

query I rowsort
SELECT ALL - 1 AS col0 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8591
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN CAST( + - col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8591
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN CAST ( + - col2 AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT ALL COUNT( * ) * - 22 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8592
SELECT ALL COUNT ( * ) * - 22 FROM tab1 AS cor0
----
-66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col2 + - 21 * + 26 AND + + col1
----

query I rowsort
SELECT ALL - 89 * col1 AS col2 FROM tab1 AS cor0
----
-1246
-4183
-445

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 81 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * - - col2 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
4896
5015
6188

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT - - 28 IS NULL
----
1
21
81

query I rowsort
SELECT ( + col1 ) * - + ( - 33 ) AS col2 FROM tab2
----
1683
2211
2541

query I rowsort
SELECT ALL ( 74 ) AS col0 FROM tab1
----
74
74
74

onlyif mysql # aggregate syntax: 
query II rowsort label-8600
SELECT - MAX( - col1 ) AS col0, + MAX( DISTINCT - + 12 ) FROM tab2
----
51
-12

skipif mysql # not compatible
query II rowsort label-8600
SELECT - MAX ( - col1 ) AS col0, + MAX ( DISTINCT - + 12 ) FROM tab2
----
51
-12

query II rowsort
SELECT - col0 AS col1, 7 AS col0 FROM tab0
----
-15
7
-87
7
-97
7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 98 + col0 * col0 = NULL
----

query I rowsort
SELECT col1 + + + col0 + + + col2 * - col0 FROM tab1 cor0
----
-4831
-4925
-6050

query I rowsort
SELECT ALL + - col2 + - 79 FROM tab1 AS cor0
----
-138
-147
-175

query II rowsort
SELECT + col0, - col0 FROM tab0 cor0
----
15
-15
87
-87
97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8606
SELECT CAST( + - col2 AS SIGNED ) * - col2 AS col2, + 84 FROM tab0 AS cor0
----
100
84
2209
84
9801
84

skipif mysql # not compatible
query II rowsort label-8606
SELECT CAST ( + - col2 AS INTEGER ) * - col2 AS col2, + 84 FROM tab0 AS cor0
----
100
84
2209
84
9801
84

query I rowsort
SELECT DISTINCT - 61 - - col1 AS col1 FROM tab2 AS cor0
----
-10
16
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8608
SELECT DISTINCT col0 * - col2 + + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8608
SELECT DISTINCT col0 * - col2 + + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT 63 - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-8609
SELECT 63 - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
60

query I rowsort
SELECT DISTINCT - + 22 * 80 - col2 AS col0 FROM tab1 AS cor0
----
-1819
-1828
-1856

query I rowsort
SELECT - + 56 + 74 AS col0 FROM tab1 AS cor0
----
18
18
18

onlyif mysql # DIV for integer division: 
query I rowsort label-8612
SELECT - 55 * col0 * - col1 + - 21 DIV - - col1 AS col0 FROM tab2 cor0
----
129030
271040
276375

skipif mysql # not compatible
query I rowsort label-8612
SELECT - 55 * col0 * - col1 + - 21 / - - col1 AS col0 FROM tab2 cor0
----
129030
271040
276375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8613
SELECT + + CAST( NULL AS SIGNED ) + - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8613
SELECT + + CAST ( NULL AS INTEGER ) + - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT ALL 46 * - COUNT( ( 89 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-414

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL 46 * - COUNT ( ( 89 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-414

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8615
SELECT - MIN( ALL col0 ) DIV COUNT( * ) AS col1 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8615
SELECT - MIN ( ALL col0 ) / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT ALL SUM( - ( - col0 ) ) * + MIN( col2 ) FROM tab1 AS cor0
----
13393

skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL SUM ( - ( - col0 ) ) * + MIN ( col2 ) FROM tab1 AS cor0
----
13393

query I rowsort
SELECT + col0 * - 72 + + col1 AS col0 FROM tab1 AS cor0
----
-3658
-6115
-6505

query I rowsort
SELECT + ( - + 1 ) * 48 AS col0 FROM tab1 AS cor0
----
-48
-48
-48

query I rowsort
SELECT ALL 49 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT DISTINCT - ( + - SUM( ALL col1 ) ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-8620
SELECT DISTINCT - ( + - SUM ( ALL col1 ) ) FROM tab2
----
195

query I rowsort
SELECT DISTINCT col0 * col1 * col2 AS col2 FROM tab1
----
25075
290836
68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col2 ) * - 49 + + - col0 + 95 - - + 2 - - - 51 + - 71 col2 FROM tab1 AS cor0
----
2781
3216
4628

query I rowsort
SELECT + + col1 + - + 2 AS col2 FROM tab1 AS cor0
----
12
3
45

query I rowsort
SELECT - + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col2 * + - ( col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 61 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-8626
SELECT DISTINCT 55 + + + col2 DIV col0 * + ( + col0 ) - + col0 + + + 37 AS col0 FROM tab0
----
122
5
92

skipif mysql # not compatible
query I rowsort label-8626
SELECT DISTINCT 55 + + + col2 / col0 * + ( + col0 ) - + col0 + + + 37 AS col0 FROM tab0
----
122
5
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT ALL + 4 * + - 25 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL + 4 * + - 25 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 + col2 + col1 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 92 col2 FROM tab0 AS cor0
----
-92
-92
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8630
SELECT - 60 DIV MAX( + + 11 ) * + MIN( ( - col1 ) ) + + - COUNT( * ) AS col1 FROM tab1
----
232

skipif mysql # not compatible
query I rowsort label-8630
SELECT - 60 / MAX ( + + 11 ) * + MIN ( ( - col1 ) ) + + - COUNT ( * ) AS col1 FROM tab1
----
232

query I rowsort
SELECT DISTINCT 40 * + 77 FROM tab2
----
3080

onlyif mysql # DIV for integer division: 
query I rowsort label-8632
SELECT DISTINCT - col2 DIV + col1 col2 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8632
SELECT DISTINCT - col2 / + col1 col2 FROM tab1
----
-1
-11
-6

query I rowsort
SELECT ( 0 ) AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - col2 + - col0 + - - 87 * - 83 AS col2 FROM tab1 AS cor0
----
-7365
-7368
-7380

query I rowsort
SELECT - 70 AS col2 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT col0 * + - col2 * - - col1 FROM tab0 AS cor0
----
-18270
-57105
-9603

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 * - - col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8638
SELECT DISTINCT - 45 - - col2 FROM tab2 AS cor0 WHERE ( NULL ) > + + ( + CAST( NULL AS SIGNED ) ) * 11
----

skipif mysql # not compatible
query I rowsort label-8638
SELECT DISTINCT - 45 - - col2 FROM tab2 AS cor0 WHERE ( NULL ) > + + ( + CAST ( NULL AS INTEGER ) ) * 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT DISTINCT - COUNT( DISTINCT + col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8639
SELECT DISTINCT - COUNT ( DISTINCT + col0 ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < col0 * col1
----

query II rowsort
SELECT DISTINCT - col1, + 34 AS col1 FROM tab1
----
-14
34
-47
34
-5
34

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab0 WHERE ( - 14 + 91 ) > ( NULL )
----

query I rowsort
SELECT DISTINCT + - 76 - - col2 - + col0 AS col0 FROM tab1 WHERE + + ( 84 ) IS NOT NULL
----
-102
-31
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - - ( 77 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT - ( SUM( ALL col2 ) ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8645
SELECT - ( SUM ( ALL col2 ) ) AS col0 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT ALL + + col0 + + - ( - + 80 ) AS col2 FROM tab1 cor0
----
131
165
171

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8647
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + + col2 - 69 AS col1 FROM tab0 cor0
----
-22
-59
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT + COUNT( * ) * + + 90 AS col1 FROM tab2 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-8649
SELECT + COUNT ( * ) * + + 90 AS col1 FROM tab2 AS cor0
----
270

query I rowsort
SELECT DISTINCT + col2 * + col0 + + 9 FROM tab2 AS cor0
----
1067
2569
4359

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 < + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8652
SELECT DISTINCT ( + - 56 ) DIV col0 FROM tab0
----
-3
0

skipif mysql # not compatible
query I rowsort label-8652
SELECT DISTINCT ( + - 56 ) / col0 FROM tab0
----
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT DISTINCT + 66 * - MAX( ALL - col2 ) FROM tab2
----
1518

skipif mysql # not compatible
query I rowsort label-8653
SELECT DISTINCT + 66 * - MAX ( ALL - col2 ) FROM tab2
----
1518

query I rowsort
SELECT DISTINCT + col2 - ( + - 68 ) - - 84 FROM tab2 WHERE + 19 + + - col1 / - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - - 15 ), - 15 * + + col2 col1 FROM tab2 AS cor0
----
15
-345
15
-600
15
-870

query I rowsort
SELECT + - 31 * + 82 FROM tab1 AS cor0
----
-2542
-2542
-2542

query I rowsort
SELECT DISTINCT - - 97 AS col0 FROM tab0 AS cor0
----
97

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 99 + + 24 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 52, + 59 / - + 67 + + col2 + - - 43 * - col0 col0 FROM tab2 WHERE NOT - col2 + + col2 <= - 58 * + col0 * - col1
----

query I rowsort
SELECT DISTINCT - ( 99 ) AS col2 FROM tab1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT MIN( DISTINCT - - 12 ) * + MIN( - col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1164

skipif mysql # not compatible
query I rowsort label-8661
SELECT MIN ( DISTINCT - - 12 ) * + MIN ( - col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8662
SELECT + ( ( + 58 ) ) * + CAST( + + 96 AS SIGNED ) FROM tab1 AS cor0
----
5568
5568
5568

skipif mysql # not compatible
query I rowsort label-8662
SELECT + ( ( + 58 ) ) * + CAST ( + + 96 AS INTEGER ) FROM tab1 AS cor0
----
5568
5568
5568

query I rowsort
SELECT ALL + col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT - COUNT( * ) * - 90 AS col0 FROM tab0 cor0
----
270

skipif mysql # not compatible
query I rowsort label-8664
SELECT - COUNT ( * ) * - 90 AS col0 FROM tab0 cor0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT - COUNT( * ) * + 54 FROM tab2 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-8665
SELECT - COUNT ( * ) * + 54 FROM tab2 AS cor0
----
-162

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > + 97 / + + col1 * - col2 / + col2 + - col0
----

query II rowsort
SELECT DISTINCT + col0, 37 * + 38 FROM tab1 AS cor0
----
51
1406
85
1406
91
1406

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT DISTINCT - SUM( - 33 ) AS col2 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8668
SELECT DISTINCT - SUM ( - 33 ) AS col2 FROM tab1 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT - ( - ( + - COUNT( * ) ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8669
SELECT - ( - ( + - COUNT ( * ) ) ) FROM tab0
----
-3

query I rowsort
SELECT + col2 * - col0 + - 15 AS col1 FROM tab1
----
-4911
-5030
-6203

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT DISTINCT + COUNT( - col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8671
SELECT DISTINCT + COUNT ( - col2 ) AS col1 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8672
SELECT ALL col0 DIV + col2 + + col1 AS col2 FROM tab0
----
1
29
81

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL col0 / + col2 + + col1 AS col2 FROM tab0
----
1
29
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8673
SELECT + col2 + - + CAST( NULL AS SIGNED ) AS col0, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-8673
SELECT + col2 + - + CAST ( NULL AS INTEGER ) AS col0, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8674
SELECT DISTINCT + - 85 * ( MIN( + - 34 ) ) + 24 DIV COUNT( * ) AS col1 FROM tab2 AS cor0
----
2898

skipif mysql # not compatible
query I rowsort label-8674
SELECT DISTINCT + - 85 * ( MIN ( + - 34 ) ) + 24 / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
2898

query I rowsort
SELECT 22 * + - col0 AS col0 FROM tab2
----
-1012
-1408
-1650

query II rowsort
SELECT DISTINCT col0 * + col2 + col0 AS col2, + 68 AS col0 FROM tab2
----
1104
68
2624
68
4425
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT 45 * COUNT( * ) * 5 AS col0 FROM tab1
----
675

skipif mysql # not compatible
query I rowsort label-8677
SELECT 45 * COUNT ( * ) * 5 AS col0 FROM tab1
----
675

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT + MAX( - 0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8678
SELECT + MAX ( - 0 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT + COUNT( * ) col1 FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8679
SELECT + COUNT ( * ) col1 FROM tab2, tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT - 58 - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-8680
SELECT - 58 - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT ALL COUNT( * ) + + + 17 AS col1 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL COUNT ( * ) + + + 17 AS col1 FROM tab2 AS cor0
----
20

query I rowsort
SELECT DISTINCT + - col0 * col1 + 1 FROM tab0 AS cor0
----
-1214
-1826
-96

query I rowsort
SELECT DISTINCT - 48 - col1 AS col0 FROM tab2 AS cor0
----
-115
-125
-99

query I rowsort
SELECT ALL + col0 - - + 26 AS col1 FROM tab1 AS cor0
----
111
117
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT + - 79 + SUM( ALL - col1 ) FROM tab0 cor0
----
-182

skipif mysql # not compatible
query I rowsort label-8685
SELECT + - 79 + SUM ( ALL - col1 ) FROM tab0 cor0
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT ALL - + 23 * - + COUNT( ALL + col1 ) AS col2 FROM tab0 cor0
----
69

skipif mysql # not compatible
query I rowsort label-8686
SELECT ALL - + 23 * - + COUNT ( ALL + col1 ) AS col2 FROM tab0 cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT DISTINCT - 1 * + COUNT( * ) - COUNT( * ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8687
SELECT DISTINCT - 1 * + COUNT ( * ) - COUNT ( * ) FROM tab0 cor0
----
-6

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( col2, + col1, - 74 * + + col0 / - - col2 * + 8 - col0 )
----

query I rowsort
SELECT ALL + - 30 - + col0 FROM tab2 AS cor0
----
-105
-76
-94

query I rowsort
SELECT + 2 + + col1 AS col2 FROM tab1
----
16
49
7

query I rowsort
SELECT 80 * + col0 FROM tab2
----
3680
5120
6000

query II rowsort
SELECT ALL ( 2 ) AS col1, - col2 FROM tab0
----
2
-10
2
-47
2
-99

query I rowsort
SELECT - col0 * + 61 FROM tab2
----
-2806
-3904
-4575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8694
SELECT - CAST( NULL AS SIGNED ) * ( COUNT( * ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8694
SELECT - CAST ( NULL AS INTEGER ) * ( COUNT ( * ) ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, + 68 - 57 col0 FROM tab2
----
-46
11
-64
11
-75
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT DISTINCT - + COUNT( * ) * + 51 FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-8696
SELECT DISTINCT - + COUNT ( * ) * + 51 FROM tab0 AS cor0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT DISTINCT MIN( ALL + col2 ) * - + 87 FROM tab2 cor0
----
-2001

skipif mysql # not compatible
query I rowsort label-8697
SELECT DISTINCT MIN ( ALL + col2 ) * - + 87 FROM tab2 cor0
----
-2001

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT COUNT( - 95 ) * - 26 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8698
SELECT COUNT ( - 95 ) * - 26 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----
0

query I rowsort
SELECT ALL + ( 48 ) * + col2 FROM tab0 AS cor0
----
2256
4752
480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8700
SELECT ALL + col0 / - ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8700
SELECT ALL + col0 / - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT ALL + COUNT( * ) * MAX( DISTINCT - 47 ) FROM tab0 WHERE 50 * + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8701
SELECT ALL + COUNT ( * ) * MAX ( DISTINCT - 47 ) FROM tab0 WHERE 50 * + col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT - MAX( ALL + col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8702
SELECT - MAX ( ALL + col0 ) FROM tab1
----
-91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 17 <= + 59
----

query I rowsort
SELECT DISTINCT - 34 * + 84 * col0 * - ( + 17 ) * + col2 AS col1 FROM tab1 AS cor0
----
237710592
243488280
300439776

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8705
SELECT * FROM tab2 cor0 WHERE NOT + + col1 + CAST( NULL AS SIGNED ) BETWEEN col1 + - 3 * col0 AND NULL AND NOT ( NULL ) NOT BETWEEN + 16 * - col1 * + - ( - - col0 ) + - + 86 AND col0 + 93 * - - col2 * ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-8705
SELECT * FROM tab2 cor0 WHERE NOT + + col1 + CAST ( NULL AS INTEGER ) BETWEEN col1 + - 3 * col0 AND NULL AND NOT ( NULL ) NOT BETWEEN + 16 * - col1 * + - ( - - col0 ) + - + 86 AND col0 + 93 * - - col2 * ( - CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT - 12 + + 29 FROM tab2 AS cor0
----
17
17
17

query I rowsort
SELECT - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN NULL AND - col2
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 + + col2 col0, + col1 FROM tab2 AS cor0
----
104
77
133
67
69
51

query I rowsort
SELECT ALL + 54 AS col0 FROM tab1 AS cor0
----
54
54
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8710
SELECT ALL COUNT( * ) / - CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8710
SELECT ALL COUNT ( * ) / - CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 94 + - 47 FROM tab0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT + SUM( ALL + + 3 ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8712
SELECT + SUM ( ALL + + 3 ) FROM tab1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, col1 AS col2 FROM tab1
----
-14
14
-47
47
-5
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 31 * 30 < + - col2
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8715
SELECT - 81 FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND col2 + + CAST( col0 AS SIGNED ) + CAST( col2 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-8715
SELECT - 81 FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND col2 + + CAST ( col0 AS INTEGER ) + CAST ( col2 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT - COUNT( * ) + - - 22 FROM tab2 cor0
----
19

skipif mysql # not compatible
query I rowsort label-8716
SELECT - COUNT ( * ) + - - 22 FROM tab2 cor0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-8717
SELECT DISTINCT + col1 DIV - col0 + + col1 AS col1 FROM tab2
----
50
67
76

skipif mysql # not compatible
query I rowsort label-8717
SELECT DISTINCT + col1 / - col0 + + col1 AS col1 FROM tab2
----
50
67
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT - ( - COUNT( ALL - 51 ) ) * MAX( DISTINCT 25 ) AS col1 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-8718
SELECT - ( - COUNT ( ALL - 51 ) ) * MAX ( DISTINCT 25 ) AS col1 FROM tab0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT ALL MIN( ALL 80 ) * COUNT( * ) AS col0 FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-8719
SELECT ALL MIN ( ALL 80 ) * COUNT ( * ) AS col0 FROM tab1
----
240

query III rowsort
SELECT ALL * FROM tab1 WHERE + 56 IN ( 15 + + col0 * 37 )
----

query I rowsort
SELECT DISTINCT col1 + 94 FROM tab0
----
115
175
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT ALL + 90 - COUNT( * ) FROM tab2 WHERE NOT - col0 = NULL
----
90

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL + 90 - COUNT ( * ) FROM tab2 WHERE NOT - col0 = NULL
----
90

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 WHERE NOT col2 - - col2 IS NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 * - 50 BETWEEN ( - col2 ) AND col0 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT DISTINCT 19 * COUNT( * ) AS col0 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT 19 * COUNT ( * ) AS col0 FROM tab1
----
57

query III rowsort
SELECT * FROM tab1 WHERE - 75 NOT BETWEEN + col2 + - col0 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT ALL 25 * - COUNT( - 52 ) AS col0 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL 25 * - COUNT ( - 52 ) AS col0 FROM tab1
----
-75

query I rowsort
SELECT 17 FROM tab1 WHERE NULL = ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 - col1 <= 43 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT ALL + COUNT( DISTINCT 33 ) * 55 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-8730
SELECT ALL + COUNT ( DISTINCT 33 ) * 55 FROM tab0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-8731
SELECT DISTINCT 59 DIV - col2 AS col1 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-8731
SELECT DISTINCT 59 / - col2 AS col1 FROM tab2
----
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 33 col1 FROM tab1
----
38
47
80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN col2 + col1 * col2 AND ( - col1 * + 47 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8734
SELECT DISTINCT - COUNT( * ) / - CAST( NULL AS SIGNED ) - - 45 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8734
SELECT DISTINCT - COUNT ( * ) / - CAST ( NULL AS INTEGER ) - - 45 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT 29 * col0 + + col0 AS col2 FROM tab1
----
1530
2550
2730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8736
SELECT - CAST( 87 AS SIGNED ) FROM tab0
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-8736
SELECT - CAST ( 87 AS INTEGER ) FROM tab0
----
-87
-87
-87

query I rowsort
SELECT 73 * + col2 + col0 AS col1 FROM tab2 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT ALL col0 * - col0 + ( ( col0 ) ) FROM tab2
----
-2070
-4032
-5550

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <> - 70 + + col1
----

query I rowsort
SELECT ALL + 9 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8741
SELECT + CAST( NULL AS SIGNED ) * col0 FROM tab0 cor0 WHERE NOT 97 BETWEEN - ( - ( - col0 ) ) AND ( col1 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8741
SELECT + CAST ( NULL AS INTEGER ) * col0 FROM tab0 cor0 WHERE NOT 97 BETWEEN - ( - ( - col0 ) ) AND ( col1 )
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8742
SELECT DISTINCT - CAST( - 79 AS SIGNED ) * col1 FROM tab0 AS cor0
----
1659
6399
79

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT - CAST ( - 79 AS INTEGER ) * col1 FROM tab0 AS cor0
----
1659
6399
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-86
-86
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-8744
SELECT ALL - col0 DIV - 88 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8744
SELECT ALL - col0 / - 88 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 28 AS col0 FROM tab2 AS cor0 WHERE + col0 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8746
SELECT - 78 DIV COUNT( * ) AS col2 FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-8746
SELECT - 78 / COUNT ( * ) AS col2 FROM tab2
----
-26

query I rowsort
SELECT 29 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8748
SELECT DISTINCT + + COUNT( ALL + col0 ) DIV - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT + + COUNT ( ALL + col0 ) / - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8749
SELECT ALL + 57 DIV + MIN( ( 66 ) ) AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8749
SELECT ALL + 57 / + MIN ( ( 66 ) ) AS col0 FROM tab2 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8750
SELECT ALL - col0 + col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL - col0 + col0 / - col0 AS col1 FROM tab0 AS cor0
----
-16
-88
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT DISTINCT SUM( ALL - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-8751
SELECT DISTINCT SUM ( ALL - col2 ) FROM tab2 AS cor0
----
-121

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - 62 - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 71 col0 FROM tab2 AS cor0
----
3621
4757
5467

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8754
SELECT ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8755
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col2 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8755
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col2 * + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL + 8 + - col0 AS col0 FROM tab1 cor0
----
-43
-77
-83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8757
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 47 >= CAST( + col2 AS SIGNED ) + 75 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8757
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 47 >= CAST ( + col2 AS INTEGER ) + 75 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT DISTINCT ( COUNT( ALL col1 ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8758
SELECT DISTINCT ( COUNT ( ALL col1 ) ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col2 + ( + 72 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * col0 IS NULL
----

query I rowsort
SELECT col0 + - 71 + - 75 * 55 FROM tab0
----
-4099
-4109
-4181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 col1 FROM tab2 WHERE ( + col0 ) <> - col1
----
-1058
-2560
-4350

query I rowsort
SELECT col2 + col0 + col1 * + col2 AS col0 FROM tab2
----
1242
3184
4019

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 72 + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 + 33 col1 FROM tab2
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8766
SELECT ALL COUNT( - CAST( + 4 AS SIGNED ) ) + - 64 AS col1 FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL COUNT ( - CAST ( + 4 AS INTEGER ) ) + - 64 AS col1 FROM tab2
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8767
SELECT - 24 + - CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8767
SELECT - 24 + - CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8768
SELECT ALL col2 + + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8768
SELECT ALL col2 + + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + 43 FROM tab1
----
102
111
139

query I rowsort
SELECT DISTINCT 14 * + - col0 + 50 FROM tab2
----
-1000
-594
-846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8771
SELECT CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) / + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8771
SELECT CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) / + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8772
SELECT ALL CAST( NULL AS SIGNED ) * + col2 + + col0 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-8772
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 + + col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT + 45 + + MAX( 16 ) AS col0 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-8773
SELECT + 45 + + MAX ( 16 ) AS col0 FROM tab2 AS cor0
----
61

query I rowsort
SELECT col2 * ( col1 * col2 ) AS col0 FROM tab2 AS cor0 WHERE col0 / - col2 IS NOT NULL
----
123200
225388
26979

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab2 AS cor0 WHERE NOT - col0 + + col2 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT ALL - 84 + - + MAX( col1 ) + 99 AS col1 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-8776
SELECT ALL - 84 + - + MAX ( col1 ) + 99 AS col1 FROM tab2 AS cor0
----
-62

query I rowsort
SELECT DISTINCT - 47 * + col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) > - col0
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT - 15 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) >= 13 + 25 * col0
----

query I rowsort
SELECT DISTINCT - col2 + + 8 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + ( 21 ) * + 31 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to a7a7dcef10cb84e6ce3962443bea9380

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE ( col1 + + + col1 * col2 ) NOT IN ( - col0 * col1 - + col2 )
----
46
64
75

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE 90 - + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT DISTINCT + MIN( ALL - col2 ) + - ( - 67 ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8784
SELECT DISTINCT + MIN ( ALL - col2 ) + - ( - 67 ) AS col2 FROM tab2 AS cor0
----
9

query I rowsort
SELECT + + 93 + + 44 AS col0 FROM tab0 AS cor0
----
137
137
137

query I rowsort
SELECT + ( + 21 ) + - + col2 AS col2 FROM tab2 AS cor0
----
-19
-2
-37

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE col1 + - col2 + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8788
SELECT + CAST( NULL AS SIGNED ) + 24 / col1 FROM tab1 AS cor0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8788
SELECT + CAST ( NULL AS INTEGER ) + 24 / col1 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT DISTINCT + + MAX( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8789
SELECT DISTINCT + + MAX ( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 14 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( + 76 ) NOT BETWEEN col2 + - 88 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT 80 * COUNT( * ) AS col0 FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-8792
SELECT 80 * COUNT ( * ) AS col0 FROM tab1
----
240

query I rowsort
SELECT ALL 28 FROM tab2 WHERE NOT + col2 * - + col1 + col0 * - col2 BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8794
SELECT ALL 27 * - 7 * - ( + ( + 45 ) ) DIV - COUNT( * ) FROM tab1
----
-2835

skipif mysql # not compatible
query I rowsort label-8794
SELECT ALL 27 * - 7 * - ( + ( + 45 ) ) / - COUNT ( * ) FROM tab1
----
-2835

query I rowsort
SELECT + col0 * + col1 * + col2 AS col0 FROM tab0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT MAX( - - col0 ) * + 69 FROM tab2
----
5175

skipif mysql # not compatible
query I rowsort label-8796
SELECT MAX ( - - col0 ) * + 69 FROM tab2
----
5175

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT DISTINCT MIN( - 24 ) AS col2 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-8797
SELECT DISTINCT MIN ( - 24 ) AS col2 FROM tab1
----
-24

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT 10 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 35 IS NULL
----
10

query III rowsort
SELECT * FROM tab2 WHERE NOT 30 IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * + + col1 + + col0 + - 52 FROM tab1 cor0
----
4316
458
713

query I rowsort
SELECT ALL - + ( + + col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NOT 60 > - col1
----
0

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 60 > - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT ALL - + MAX( DISTINCT - - 22 ) AS col0 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL - + MAX ( DISTINCT - - 22 ) AS col0 FROM tab0 AS cor0
----
-22

query I rowsort
SELECT 97 + + + col0 AS col1 FROM tab2 AS cor0
----
143
161
172

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT ( + col2 ) NOT IN ( col2 )
----
23
40
58

query I rowsort
SELECT ALL + + 94 * 34 FROM tab1 AS cor0 WHERE NOT + col2 + col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8809
SELECT * FROM tab2 WHERE ( CAST( NULL AS SIGNED ) + + - CAST( + + col0 AS DECIMAL ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8809
SELECT * FROM tab2 WHERE ( CAST ( NULL AS INTEGER ) + + - CAST ( + + col0 AS REAL ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * + ( 50 ) - + 21 AS col0 FROM tab0 AS cor0
----
4329
4829
729

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT DISTINCT - COUNT( * ) + + 62 FROM tab1 AS cor0 WHERE NULL > NULL
----
62

skipif mysql # not compatible
query I rowsort label-8811
SELECT DISTINCT - COUNT ( * ) + + 62 FROM tab1 AS cor0 WHERE NULL > NULL
----
62

query I rowsort
SELECT DISTINCT + col2 + - col2 - + - col0 AS col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT col1 - col2 * - 19 FROM tab0 AS cor0
----
1882
211
974

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT ALL 4 - COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL 4 - COUNT ( * ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT - COUNT( * ) * SUM( ALL - 29 ) + + MIN( + 10 + + col0 ) AS col2 FROM tab2 AS cor0 WHERE - col2 + + 0 > col1 * + col1 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8815
SELECT - COUNT ( * ) * SUM ( ALL - 29 ) + + MIN ( + 10 + + col0 ) AS col2 FROM tab2 AS cor0 WHERE - col2 + + 0 > col1 * + col1 * col2
----
NULL

query I rowsort
SELECT + col2 + - 63 AS col0 FROM tab2
----
-23
-40
-5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( ( 98 ) ) / - col0 ) >= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT + 48 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8819
SELECT - CAST( NULL AS SIGNED ) / COUNT( ALL - + col0 ) + COUNT( * ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8819
SELECT - CAST ( NULL AS INTEGER ) / COUNT ( ALL - + col0 ) + COUNT ( * ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8820
SELECT 21 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
1
21

skipif mysql # not compatible
query I rowsort label-8820
SELECT 21 / + col1 AS col0 FROM tab0 AS cor0
----
0
1
21

query I rowsort
SELECT + 55 AS col1 FROM tab2 cor0
----
55
55
55

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8823
SELECT ALL * FROM tab0 WHERE NULL >= - CAST( - 76 AS SIGNED ) + + col0
----

skipif mysql # not compatible
query III rowsort label-8823
SELECT ALL * FROM tab0 WHERE NULL >= - CAST ( - 76 AS INTEGER ) + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT DISTINCT + MAX( DISTINCT col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT + MAX ( DISTINCT col0 ) FROM tab2
----
75

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT NULL NOT IN ( + + 26 * - 12 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 18 + - - ( 61 ) * - + 89 NOT IN ( + + col1 * - + 78 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8827
SELECT DISTINCT * FROM tab1 WHERE NULL < - CAST( NULL AS SIGNED ) * - col0
----

skipif mysql # not compatible
query III rowsort label-8827
SELECT DISTINCT * FROM tab1 WHERE NULL < - CAST ( NULL AS INTEGER ) * - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 / - col1 < NULL
----

query I rowsort
SELECT + 90 * + - 67 FROM tab0
----
-6030
-6030
-6030

query I rowsort
SELECT - col2 * 46 FROM tab1 AS cor0
----
-2714
-3128
-4416

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT + COUNT( - col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8831
SELECT + COUNT ( - col0 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT DISTINCT - + MIN( - 80 ) FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-8832
SELECT DISTINCT - + MIN ( - 80 ) FROM tab1 AS cor0
----
80

query I rowsort
SELECT + 22 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN NULL AND ( - 69 + - - col2 * - col1 * 63 * 26 )
----
22
22
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8834
SELECT ALL - 23, 9 / + SUM( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0 WHERE NULL < - col2
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-8834
SELECT ALL - 23, 9 / + SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 WHERE NULL < - col2
----
-23
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8835
SELECT ALL 71 + + 98 * - COUNT( * ) * - COUNT( * ) col1, - SUM( ALL col0 ) FROM tab2
----
953
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8835
SELECT ALL 71 + + 98 * - COUNT ( * ) * - COUNT ( * ) col1, - SUM ( ALL col0 ) FROM tab2
----
953
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT ( - AVG ( DISTINCT + col2 ) ) + - MIN( ALL - + 55 ) FROM tab0 WHERE NOT - 19 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8836
SELECT ( - AVG ( DISTINCT + col2 ) ) + - MIN ( ALL - + 55 ) FROM tab0 WHERE NOT - 19 < NULL
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 4 BETWEEN + - 34 AND NULL
----

query I rowsort
SELECT DISTINCT + 20 * col2 + + 25 FROM tab1
----
1205
1385
1945

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT + + COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8839
SELECT + + COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT + ( + + MIN( + col0 ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8840
SELECT + ( + + MIN ( + col0 ) ) FROM tab0
----
15

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col0 * + 39 IS NOT NULL
----

query I rowsort
SELECT ALL - - 2 + - + 54 + 35 AS col1 FROM tab1 AS cor0
----
-17
-17
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8843
SELECT 17 + - CAST( NULL AS SIGNED ) col1, + col0 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8843
SELECT 17 + - CAST ( NULL AS INTEGER ) col1, + col0 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT DISTINCT 59 * + ( - ( - col1 ) ) * - 80 + 94 AS col2 FROM tab2 cor0
----
-240626
-316146
-363346

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 + 6 + + ( - 60 ) col2 FROM tab2 AS cor0 WHERE NULL = + 27
----

query I rowsort
SELECT DISTINCT - col2 * 91 AS col1 FROM tab1
----
-5369
-6188
-8736

query I rowsort
SELECT ALL ( - + col0 ) * + col1 + + col1 + - - col0 * + ( 81 ) * col2 AS col0 FROM tab2
----
202509
347392
83403

query I rowsort
SELECT - col1 + + col2 / + 5 AS col1 FROM tab2 WHERE + + col1 * col0 IS NULL
----

query I rowsort
SELECT - ( + 57 ) + col1 FROM tab2
----
-6
10
20

query I rowsort
SELECT + ( - 0 ) AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT DISTINCT - 38 + + - MAX( ALL ( + - col1 ) ) AS col1 FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-8851
SELECT DISTINCT - 38 + + - MAX ( ALL ( + - col1 ) ) AS col1 FROM tab0 AS cor0
----
-37

query I rowsort
SELECT DISTINCT + col2 + - 19 * - 66 + + 14 AS col2 FROM tab1 AS cor0
----
1327
1336
1364

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT - MIN( DISTINCT + + col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8853
SELECT - MIN ( DISTINCT + + col1 ) AS col0 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 ) <> - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 69 - col0 + - + 71 + - - col2 AS col0 FROM tab0 AS cor0
----
-79
0
30

query I rowsort
SELECT + 1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, col1 col2 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8858
SELECT DISTINCT + + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8858
SELECT DISTINCT + + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT ALL MAX( ALL 72 ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL MAX ( ALL 72 ) FROM tab2 AS cor0
----
72

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT NULL <> - 22
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 25 col1, col2 AS col2 FROM tab0 AS cor0
----
-25
10
-25
47
-25
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8862
SELECT DISTINCT + ( - CAST( - + ( + + 50 ) AS SIGNED ) ) * - MIN( col2 ) + - 35 AS col2 FROM tab0
----
-535

skipif mysql # not compatible
query I rowsort label-8862
SELECT DISTINCT + ( - CAST ( - + ( + + 50 ) AS INTEGER ) ) * - MIN ( col2 ) + - 35 AS col2 FROM tab0
----
-535

query I rowsort
SELECT + 86 FROM tab0 WHERE NOT col2 + - + col1 IS NULL
----
86
86
86

query I rowsort
SELECT ALL 48 * col2 AS col1 FROM tab0
----
2256
4752
480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8865
SELECT DISTINCT AVG ( ALL + 35 ) / - + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8865
SELECT DISTINCT AVG ( ALL + 35 ) / - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - 72 AND NULL
----

query I rowsort
SELECT DISTINCT ( + 70 ) + - col2 AS col0 FROM tab0
----
-29
23
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8868
SELECT ALL - CAST( NULL AS SIGNED ) / + - MAX( ALL + + col0 ) FROM tab2 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL - CAST ( NULL AS INTEGER ) / + - MAX ( ALL + + col0 ) FROM tab2 WHERE NOT col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT DISTINCT + 31 * - MIN( ALL 97 ) AS col0 FROM tab1 AS cor0
----
-3007

skipif mysql # not compatible
query I rowsort label-8869
SELECT DISTINCT + 31 * - MIN ( ALL 97 ) AS col0 FROM tab1 AS cor0
----
-3007

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= 72
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 NOT IN ( col0 * + col2 + - - col1, + 77 + + + 86 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 + + col2 <= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - 13 ) + col0 <> + col1 + - ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 18 - col2 FROM tab1 AS cor0
----
-41
-50
-78

query I rowsort
SELECT + col1 * col1 * + + ( - 95 ) FROM tab2 AS cor0
----
-247095
-426455
-563255

query I rowsort
SELECT DISTINCT - - 35 * + - col0 - + - col1 - + col0 * col2 FROM tab0 AS cor0
----
-1149
-12997
-3894

query I rowsort
SELECT DISTINCT - 53 * - 8 AS col0 FROM tab0 AS cor0
----
424

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 WHERE NOT + + 23 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8879
SELECT - ( - 75 ) AS col0, COUNT( * ) FROM tab1
----
75
3

skipif mysql # not compatible
query II rowsort label-8879
SELECT - ( - 75 ) AS col0, COUNT ( * ) FROM tab1
----
75
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 34 + col2 + col1 * + 61 * - 61 * + col1 * + 17 NOT IN ( + 66 / - col2, + col1 )
----

query I rowsort
SELECT DISTINCT col1 * - 85 FROM tab1
----
-1190
-3995
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT - 85 * + + 88 - + - MIN( DISTINCT + col0 ) + 92 AS col0 FROM tab2
----
-7342

skipif mysql # not compatible
query I rowsort label-8882
SELECT - 85 * + + 88 - + - MIN ( DISTINCT + col0 ) + 92 AS col0 FROM tab2
----
-7342

query I rowsort
SELECT + col1 + col0 + col2 * - col0 FROM tab2
----
-2419
-4208
-961

query I rowsort
SELECT col2 * - + 10 * 64 FROM tab0
----
-30080
-63360
-6400

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT ALL COUNT( ALL 78 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL COUNT ( ALL 78 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT col2 FROM tab0 WHERE NOT col1 * - col1 * ( + + 31 ) - + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL NOT IN ( col0, col2 * ( - col0 ), 77, + ( - col1 ) ) )
----

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE NOT + 14 > - - 88
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - - 28 IS NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8890
SELECT + SUM( ALL + col2 ) DIV MAX( DISTINCT + + col0 ) DIV - 25 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8890
SELECT + SUM ( ALL + col2 ) / MAX ( DISTINCT + + col0 ) / - 25 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8891
SELECT DISTINCT + + ( + col0 ) * + - CAST( NULL AS SIGNED ) * + - col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8891
SELECT DISTINCT + + ( + col0 ) * + - CAST ( NULL AS INTEGER ) * + - col0 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8892
SELECT - + col1 DIV + col2 col0 FROM tab0 cor0
----
-1
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8892
SELECT - + col1 / + col2 col0 FROM tab0 cor0
----
-1
-2
0

query I rowsort
SELECT ALL - col2 * + col0 * + ( - col1 ) + ( col2 ) FROM tab1 AS cor0
----
25134
290904
68640

query I rowsort
SELECT - col1 * + - ( 38 ) AS col1 FROM tab1 AS cor0
----
1786
190
532

onlyif mysql # DIV for integer division: 
query I rowsort label-8895
SELECT + + col2 DIV + - col2 col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8895
SELECT + + col2 / + - col2 col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + - 47 * + - col0 + + col2 + col1 FROM tab0 AS cor0
----
4120
4659
833

query II rowsort
SELECT DISTINCT - 20 AS col0, + 28 * + col1 AS col0 FROM tab2 AS cor0
----
-20
1428
-20
1876
-20
2156

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT + 98 * + - COUNT( * ) col1 FROM tab2 AS cor0
----
-294

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8898
SELECT + 98 * + - COUNT ( * ) col1 FROM tab2 AS cor0
----
-294

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8899
SELECT DISTINCT + 52 + + CAST( + - col2 AS SIGNED ) + - - col2 * col2 - + col2 - - + col1, - col1 AS col2 FROM tab2
----
1649
-77
3367
-67
586
-51

skipif mysql # not compatible
query II rowsort label-8899
SELECT DISTINCT + 52 + + CAST ( + - col2 AS INTEGER ) + - - col2 * col2 - + col2 - - + col1, - col1 AS col2 FROM tab2
----
1649
-77
3367
-67
586
-51

query I rowsort
SELECT 34 * - + col2 FROM tab2
----
-1360
-1972
-782

query I rowsort
SELECT - - 24 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 17 * col2 * col0 AS col2, col1 col2 FROM tab1 cor0 WHERE col1 * col1 IS NOT NULL
----
-105196
47
-83232
14
-85255
5

query II rowsort
SELECT ALL - col2 AS col1, ( + 51 ) * + ( ( - - 64 ) ) - + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT + + 43 - - ( + + col2 ) * + col1 > col1 )
----
-23
3213
-40
3187
-58
3197

query I rowsort
SELECT DISTINCT 97 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8905
SELECT ALL + col2 + + col0 * - + ( - + CAST( - col1 AS SIGNED ) ) AS col2 FROM tab2
----
-2323
-4888
-4967

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL + col2 + + col0 * - + ( - + CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab2
----
-2323
-4888
-4967

query II rowsort
SELECT ALL - 73 + - col2, - 91 AS col2 FROM tab2 AS cor0
----
-113
-91
-131
-91
-96
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8907
SELECT DISTINCT + + 42 + - 15 DIV col1 * - + col2 FROM tab1 AS cor0
----
138
219
42

skipif mysql # not compatible
query I rowsort label-8907
SELECT DISTINCT + + 42 + - 15 / col1 * - + col2 FROM tab1 AS cor0
----
138
219
42

query I rowsort
SELECT DISTINCT col1 * col2 + - + 56 FROM tab0 cor0
----
154
3751
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT - COUNT( * ) / - SUM( ALL + 80 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2 * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8909
SELECT - COUNT ( * ) / - SUM ( ALL + 80 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2 * + col1
----
NULL

query I rowsort
SELECT DISTINCT + - 7 - - col1 FROM tab2 AS cor0
----
44
60
70

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 34 / + - 74 IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( 25 - + col2 + + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8913
SELECT - 2 DIV - 27 + - col2 - - col1 FROM tab2
----
28
37
9

skipif mysql # not compatible
query I rowsort label-8913
SELECT - 2 / - 27 + - col2 - - col1 FROM tab2
----
28
37
9

query II rowsort
SELECT ALL - ( + 51 ) + - col0 AS col2, ( + col2 ) AS col0 FROM tab0
----
-138
10
-148
99
-66
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8915
SELECT ALL CAST( + - col2 AS SIGNED ) * + 10 + + + col1 FROM tab0
----
-389
-79
-989

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL CAST ( + - col2 AS INTEGER ) * + 10 + + + col1 FROM tab0
----
-389
-79
-989

query III rowsort
SELECT * FROM tab1 WHERE - col2 / - col2 <> NULL
----

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN + - col0 AND + 92
----
47

query I rowsort
SELECT ALL - 90 * 81 AS col1 FROM tab1 AS cor0
----
-7290
-7290
-7290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8919
SELECT ALL + CAST( + 43 AS SIGNED ) AS col0 FROM tab2
----
43
43
43

skipif mysql # not compatible
query I rowsort label-8919
SELECT ALL + CAST ( + 43 AS INTEGER ) AS col0 FROM tab2
----
43
43
43

query I rowsort
SELECT ALL 14 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT - col1 * ( 78 ) FROM tab2
----
-3978
-5226
-6006

query I rowsort
SELECT DISTINCT col1 * - 5 * - col0 * 97 * - 70 FROM tab1
----
-14428750
-145204150
-24240300

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT DISTINCT - 60 * - 70 + - COUNT( * ) FROM tab1 cor0
----
4197

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT - 60 * - 70 + - COUNT ( * ) FROM tab1 cor0
----
4197

query I rowsort
SELECT DISTINCT - col0 * + col1 AS col1 FROM tab2 cor0
----
-2346
-4928
-5025

query I rowsort
SELECT - col2 * - col2 + col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3540
4692
9312

onlyif mysql # DIV for integer division: 
query I rowsort label-8926
SELECT ( col0 ) DIV + 65 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8926
SELECT ( col0 ) / + 65 FROM tab1 AS cor0
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 + ( - - col2 ) / - col0 * 47 BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT - ( - 44 ) FROM tab2
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8929
SELECT DISTINCT CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8929
SELECT DISTINCT CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - ( + col1 ) + - 52 AS col1 FROM tab0
----
-133
-53
-73

query II rowsort
SELECT col1 AS col2, 40 FROM tab1
----
14
40
47
40
5
40

query I rowsort
SELECT DISTINCT col1 + + 23 FROM tab2
----
100
74
90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 36 AND col1 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT ALL - - SUM( ALL col2 ) * COUNT( * ) + + + 10 + - 17 FROM tab2 AS cor0
----
356

skipif mysql # not compatible
query I rowsort label-8934
SELECT ALL - - SUM ( ALL col2 ) * COUNT ( * ) + + + 10 + - 17 FROM tab2 AS cor0
----
356

query II rowsort
SELECT DISTINCT - col2 AS col1, col1 + + - col2 FROM tab0
----
-10
11
-47
34
-99
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8936
SELECT DISTINCT 99 * - col0 + + 49 + ( - + CAST( NULL AS SIGNED ) ) - - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8936
SELECT DISTINCT 99 * - col0 + + 49 + ( - + CAST ( NULL AS INTEGER ) ) - - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8937
SELECT ALL + COUNT( * ) AS col2, - 94 + + 49 AS col2 FROM tab0
----
3
-45

skipif mysql # not compatible
query II rowsort label-8937
SELECT ALL + COUNT ( * ) AS col2, - 94 + + 49 AS col2 FROM tab0
----
3
-45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 20 IS NULL
----

query I rowsort
SELECT ALL col0 * - + 55 + - col1 * + - col0 AS col1 FROM tab2 AS cor0
----
-184
1408
900

query I rowsort
SELECT + + 64 AS col0 FROM tab1 AS cor0
----
64
64
64

query I rowsort
SELECT ( + col1 ) * - + 88 * - + 98 - col0 AS col0 FROM tab0 AS cor0
----
181017
698529
8527

query I rowsort
SELECT 94 - + + col0 FROM tab1
----
3
43
9

query I rowsort
SELECT - 13 - col1 FROM tab2
----
-64
-80
-90

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 BETWEEN - - 4 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT + SUM( 31 ) / + 82 AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8945
SELECT + SUM ( 31 ) / + 82 AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8946
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 >= + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8946
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 >= + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT 34 IS NULL
----
46
64
75

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 75 IS NOT NULL
----

query I rowsort
SELECT + 8 * - col2 * + 67 + - col2 * - col1 AS col0 FROM tab1 cor0
----
-31329
-33252
-50112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 * + 35 col2 FROM tab2
----
152250
37030
89600

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT ALL - - COUNT( * ) * COUNT( * ) + - 72 + 71 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-8951
SELECT ALL - - COUNT ( * ) * COUNT ( * ) + - 72 + 71 FROM tab2 AS cor0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col0 ) col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-8953
SELECT ALL - + COUNT( * ), 6 AS col0 FROM tab0 AS cor0
----
-3
6

skipif mysql # not compatible
query II rowsort label-8953
SELECT ALL - + COUNT ( * ), 6 AS col0 FROM tab0 AS cor0
----
-3
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8954
SELECT - + CAST( - ( - 60 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-8954
SELECT - + CAST ( - ( - 60 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-60
-60
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 * + col1 AND 18
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8956
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE - col0 - + - ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8956
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE - col0 - + - ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT 66 * COUNT( * ) col2 FROM tab0 cor0
----
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8957
SELECT 66 * COUNT ( * ) col2 FROM tab0 cor0
----
198

query I rowsort
SELECT DISTINCT - + 55 - + + col0 AS col0 FROM tab0 AS cor0
----
-142
-152
-70

query I rowsort
SELECT - col1 * - + col0 FROM tab0
----
1215
1827
97

query I rowsort
SELECT + - 0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IS NOT NULL AND NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8962
SELECT + col1 * - col0 * + CAST( NULL AS SIGNED ) - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8962
SELECT + col1 * - col0 * + CAST ( NULL AS INTEGER ) - col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8963
SELECT col0 AS col1, col1 * + - col0 + col2 + + - 33 DIV - + 11 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
-615
85
-363
91
-4206

skipif mysql # not compatible
query II rowsort label-8963
SELECT col0 AS col1, col1 * + - col0 + col2 + + - 33 / - + 11 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
-615
85
-363
91
-4206

query I rowsort
SELECT ALL 2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
2
2
2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 ) NOT BETWEEN - col0 + 73 AND 36
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 77 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT DISTINCT ( COUNT( * ) ) - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8967
SELECT DISTINCT ( COUNT ( * ) ) - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT DISTINCT MAX( DISTINCT - col2 ) FROM tab1 AS cor0 WHERE - 73 + - col1 BETWEEN - - col0 * - 27 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8968
SELECT DISTINCT MAX ( DISTINCT - col2 ) FROM tab1 AS cor0 WHERE - 73 + - col1 BETWEEN - - col0 * - 27 AND NULL
----
NULL

query II rowsort
SELECT 86, + col1 FROM tab2
----
86
51
86
67
86
77

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + ( 77 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8971
SELECT DISTINCT CAST( - 18 AS SIGNED ) DIV + col1 - - 86 FROM tab1
----
83
85
86

skipif mysql # not compatible
query I rowsort label-8971
SELECT DISTINCT CAST ( - 18 AS INTEGER ) / + col1 - - 86 FROM tab1
----
83
85
86

query I rowsort
SELECT col0 * 51 FROM tab0
----
4437
4947
765

query I rowsort
SELECT ALL + 41 * col1 AS col1 FROM tab2 AS cor0
----
2091
2747
3157

query II rowsort
SELECT DISTINCT + ( + col2 ) AS col1, - col2 FROM tab1
----
59
-59
68
-68
96
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8975
SELECT COUNT( CAST( NULL AS SIGNED ) ) * MAX( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8975
SELECT COUNT ( CAST ( NULL AS INTEGER ) ) * MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query II rowsort
SELECT ALL + ( + 44 ) AS col1, 29 * + col0 * col0 * 12 FROM tab1
----
44
2514300
44
2881788
44
905148

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN + 11 AND NULL
----

query I rowsort
SELECT + 78 AS col0 FROM tab0 AS cor0 WHERE NOT 54 IS NULL
----
78
78
78

query I rowsort
SELECT + col0 * + 95 AS col2 FROM tab1 AS cor0 WHERE NOT NULL < + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8980
SELECT ALL + + ( + 3 ) AS col0, COUNT( * ) FROM tab1 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8980
SELECT ALL + + ( + 3 ) AS col0, COUNT ( * ) FROM tab1 cor0
----
3
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8981
SELECT + COUNT( * ) DIV COUNT( * ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-8981
SELECT + COUNT ( * ) / COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT + - 63 * - col0 FROM tab0 AS cor0
----
5481
6111
945

query I rowsort
SELECT col1 * - + ( - col2 ) * - + col0 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NULL < - col2 - - 80
----
0

skipif mysql # not compatible
query I rowsort label-8984
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NULL < - col2 - - 80
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8985
SELECT ALL CAST( + col0 AS SIGNED ) + - + col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL CAST ( + col0 AS INTEGER ) + - + col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT MAX( ALL 23 ) AS col0 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-8986
SELECT MAX ( ALL 23 ) AS col0 FROM tab1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8987
SELECT col0 DIV - - col0 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8987
SELECT col0 / - - col0 AS col0 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8988
SELECT + 95 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8988
SELECT + 95 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8989
SELECT - col2 AS col2, ( - ( - col0 ) ) DIV + col1 + + - 29 FROM tab2
----
-23
-29
-40
-29
-58
-28

skipif mysql # not compatible
query II rowsort label-8989
SELECT - col2 AS col2, ( - ( - col0 ) ) / + col1 + + - 29 FROM tab2
----
-23
-29
-40
-29
-58
-28

query I rowsort
SELECT DISTINCT 34 + + - col2 FROM tab2
----
-24
-6
11

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 31 <= NULL
----

query I rowsort
SELECT DISTINCT - col2 * + + col0 AS col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-8993
SELECT + + col0 + + 29 DIV + + col1 + + ( + 60 ) + + 48 * col0 FROM tab2 AS cor0
----
2314
3196
3735

skipif mysql # not compatible
query I rowsort label-8993
SELECT + + col0 + + 29 / + + col1 + + ( + 60 ) + + 48 * col0 FROM tab2 AS cor0
----
2314
3196
3735

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8994
SELECT DISTINCT + - CAST( + - MAX( DISTINCT + 76 ) AS SIGNED ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-8994
SELECT DISTINCT + - CAST ( + - MAX ( DISTINCT + 76 ) AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-228

onlyif mysql # DIV for integer division: 
query I rowsort label-8995
SELECT - col0 + + col0 DIV - col1 col2 FROM tab0
----
-15
-194
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8995
SELECT - col0 + + col0 / - col1 col2 FROM tab0
----
-15
-194
-91

query I rowsort
SELECT + - 35 * + - 20 * + 71 AS col2 FROM tab1 WHERE col0 * + + 72 IS NULL
----

query I rowsort
SELECT DISTINCT + + 33 AS col1 FROM tab2 cor0
----
33

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( - ( + col2 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8999
SELECT col2 AS col0, - 9 + ( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-8999
SELECT col2 AS col0, - 9 + ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT + 40 AS col2 FROM tab1 WHERE NOT - 6 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9002
SELECT DISTINCT 49 AS col1 FROM tab2 WHERE NOT - col2 + + col0 NOT IN ( + + CAST( 32 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9002
SELECT DISTINCT 49 AS col1 FROM tab2 WHERE NOT - col2 + + col0 NOT IN ( + + CAST ( 32 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9003
SELECT 65 * + CAST( ( col0 ) AS SIGNED ) FROM tab1 AS cor0
----
3315
5525
5915

skipif mysql # not compatible
query I rowsort label-9003
SELECT 65 * + CAST ( ( col0 ) AS INTEGER ) FROM tab1 AS cor0
----
3315
5525
5915

query I rowsort
SELECT 31 AS col1 FROM tab1 cor0 WHERE NOT col2 * + + 24 = col2
----
31
31
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9005
SELECT DISTINCT COUNT( * ) DIV - 23 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9005
SELECT DISTINCT COUNT ( * ) / - 23 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT 70 * - col0 + + col2 * col2 FROM tab1 cor0
----
-1746
-2469
5646

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT DISTINCT + MAX( - col1 ) + + COUNT( * ) + 53 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9007
SELECT DISTINCT + MAX ( - col1 ) + + COUNT ( * ) + 53 FROM tab1 AS cor0
----
51

query II rowsort
SELECT DISTINCT + + col1 AS col0, 20 AS col0 FROM tab0 AS cor0
----
1
20
21
20
81
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT - + SUM( - - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9009
SELECT - + SUM ( - - col2 ) FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9010
SELECT col1 AS col1, 61 + + + 77 * + 93 - + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-9010
SELECT col1 AS col1, 61 + + + 77 * + 93 - + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT DISTINCT - + 40 + + col1 FROM tab2 AS cor0
----
11
27
37

onlyif mysql # DIV for integer division: 
query II rowsort label-9012
SELECT ALL + 16 AS col2, + col1 DIV col0 AS col0 FROM tab2 cor0
----
16
0
16
1
16
1

skipif mysql # not compatible
query II rowsort label-9012
SELECT ALL + 16 AS col2, + col1 / col0 AS col0 FROM tab2 cor0
----
16
0
16
1
16
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9013
SELECT ( 3 ) + - - ( + col0 ) DIV + col2 AS col2 FROM tab0 cor0
----
11
3
3

skipif mysql # not compatible
query I rowsort label-9013
SELECT ( 3 ) + - - ( + col0 ) / + col2 AS col2 FROM tab0 cor0
----
11
3
3

query III rowsort
SELECT * FROM tab2 WHERE - col2 * - ( - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( - + col0 ) AS col0 FROM tab2
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - + col2 col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 + - 59 col1 FROM tab0
----
1156
1768
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - + col1 col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT - + MIN( 5 ) AS col2 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9019
SELECT - + MIN ( 5 ) AS col2 FROM tab0 AS cor0
----
-5

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9021
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) AS col0, + 3 + 69 * 14 FROM tab2 cor0
----
0
969

skipif mysql # not compatible
query II rowsort label-9021
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) AS col0, + 3 + 69 * 14 FROM tab2 cor0
----
0
969

onlyif mysql # DIV for integer division: 
query II rowsort label-9022
SELECT DISTINCT ( - + 17 ) * 48 * ( - - 52 ) * - col1, + col0 DIV - 19 AS col2 FROM tab2 AS cor0
----
2164032
-2
2842944
-3
3267264
-3

skipif mysql # not compatible
query II rowsort label-9022
SELECT DISTINCT ( - + 17 ) * 48 * ( - - 52 ) * - col1, + col0 / - 19 AS col2 FROM tab2 AS cor0
----
2164032
-2
2842944
-3
3267264
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > - col1 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT - COUNT( * ) + + 61 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
61

skipif mysql # not compatible
query I rowsort label-9024
SELECT - COUNT ( * ) + + 61 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
61

query II rowsort
SELECT ALL + col2, col2 FROM tab1 cor0
----
59
59
68
68
96
96

query II rowsort
SELECT + - col2 AS col2, 75 FROM tab2 AS cor0
----
-23
75
-40
75
-58
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9027
SELECT ALL col0 * col2 * + + col1 AS col2, - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
18270
-10
57105
-47
9603
-99

skipif mysql # not compatible
query II rowsort label-9027
SELECT ALL col0 * col2 * + + col1 AS col2, - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
18270
-10
57105
-47
9603
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT DISTINCT - MAX( 1 ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9028
SELECT DISTINCT - MAX ( 1 ) FROM tab2 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT + MIN( - 33 ) * - - 38 AS col0 FROM tab0
----
-1254

skipif mysql # not compatible
query I rowsort label-9029
SELECT + MIN ( - 33 ) * - - 38 AS col0 FROM tab0
----
-1254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9030
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * + + 85 col1 FROM tab2
----
4335
5695
6545

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9030
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * + + 85 col1 FROM tab2
----
4335
5695
6545

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT DISTINCT COUNT( ALL - - col0 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9031
SELECT DISTINCT COUNT ( ALL - - col0 ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9032
SELECT + + SUM( - + 34 ) DIV + COUNT( * ) FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-9032
SELECT + + SUM ( - + 34 ) / + COUNT ( * ) FROM tab0 AS cor0
----
-34

query I rowsort
SELECT ( - 68 ) * + ( col0 ) FROM tab2 AS cor0
----
-3128
-4352
-5100

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT 70 IS NOT NULL
----

query II rowsort
SELECT ALL - 49, col0 AS col0 FROM tab2
----
-49
46
-49
64
-49
75

onlyif mysql # DIV for integer division: 
query II rowsort label-9036
SELECT - ( col1 ) DIV - col0 AS col2, + 29 AS col1 FROM tab1
----
0
29
0
29
0
29

skipif mysql # not compatible
query II rowsort label-9036
SELECT - ( col1 ) / - col0 AS col2, + 29 AS col1 FROM tab1
----
0
29
0
29
0
29

query I rowsort
SELECT col0 * + - col2 + + - col2 AS col0 FROM tab0
----
-752
-880
-9702

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT - 89 / 22 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9038
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 89 / 22 > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9039
SELECT ALL AVG ( DISTINCT + - 86 ) * - + 68 FROM tab2 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) * + - 54 / + + col0 ) BETWEEN 0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9039
SELECT ALL AVG ( DISTINCT + - 86 ) * - + 68 FROM tab2 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) * + - 54 / + + col0 ) BETWEEN 0 AND NULL
----
NULL

query I rowsort
SELECT 92 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT 70 * - ( + 47 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3290
-3290
-3290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9042
SELECT DISTINCT MIN( ALL - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9042
SELECT DISTINCT MIN ( ALL - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 19 + + col2 AS col1 FROM tab0 AS cor0
----
118
29
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE 71 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9044
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE 71 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT - 37 * - SUM( ALL - 12 ) * 21 AS col0 FROM tab2
----
-27972

skipif mysql # not compatible
query I rowsort label-9045
SELECT - 37 * - SUM ( ALL - 12 ) * 21 AS col0 FROM tab2
----
-27972

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT - 55 * + COUNT( * ) * 34 FROM tab2
----
-5610

skipif mysql # not compatible
query I rowsort label-9046
SELECT - 55 * + COUNT ( * ) * 34 FROM tab2
----
-5610

query I rowsort
SELECT ALL 98 * col0 AS col1 FROM tab2 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT + - COUNT( * ) + 58 AS col0 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-9048
SELECT + - COUNT ( * ) + 58 AS col0 FROM tab0 AS cor0
----
55

query I rowsort
SELECT col1 + + col0 - - 95 * + 88 FROM tab2 AS cor0
----
8457
8501
8502

query I rowsort
SELECT ALL ( - 82 ) * + 62 - + col0 - - - col0 * - - col2 FROM tab0 AS cor0
----
-14784
-5804
-6041

query I rowsort
SELECT DISTINCT col2 + + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT - 0 * 82 + col0 * - - col1 IS NULL
----
-17
-23
-24

query I rowsort
SELECT ALL - + 12 * - - col2 * + col1 - - col1 AS col2 FROM tab1 AS cor0
----
-16114
-3535
-38305

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 0 col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 75 col0 FROM tab0 AS cor0
----
-75
-75
-75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL BETWEEN NULL AND NULL )
----

query I rowsort
SELECT DISTINCT - col1 * + - 89 + + + ( col1 ) FROM tab1 cor0 WHERE NULL IS NULL
----
1260
4230
450

onlyif mysql # DIV for integer division: 
query I rowsort label-9057
SELECT ALL - col0 DIV + 88 AS col1 FROM tab1 WHERE NULL IS NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9057
SELECT ALL - col0 / + 88 AS col1 FROM tab1 WHERE NULL IS NULL
----
-1
0
0

query II rowsort
SELECT DISTINCT col2 AS col1, - col2 + - - 58 FROM tab1
----
59
-1
68
-10
96
-38

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col2 BETWEEN NULL AND + - col2 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT DISTINCT + SUM( DISTINCT + - 52 ) AS col1 FROM tab2 cor0
----
-52

skipif mysql # not compatible
query I rowsort label-9060
SELECT DISTINCT + SUM ( DISTINCT + - 52 ) AS col1 FROM tab2 cor0
----
-52

query I rowsort
SELECT - 64 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 53 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9063
SELECT - 65 DIV + 6, ( + CAST( + 85 AS SIGNED ) ) AS col1 FROM tab0
----
-10
85
-10
85
-10
85

skipif mysql # not compatible
query II rowsort label-9063
SELECT - 65 / + 6, ( + CAST ( + 85 AS INTEGER ) ) AS col1 FROM tab0
----
-10
85
-10
85
-10
85

query I rowsort
SELECT ( 55 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 76 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 - col0 col1 FROM tab1 cor0
----
-20
-26
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT - - COUNT( ALL col1 ) + - 85 AS col2 FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-9067
SELECT - - COUNT ( ALL col1 ) + - 85 AS col2 FROM tab2 AS cor0
----
-82

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 70 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE 44 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9070
SELECT * FROM tab2 WHERE - - col2 * CAST( - col2 AS DECIMAL ) - - col2 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9070
SELECT * FROM tab2 WHERE - - col2 * CAST ( - col2 AS REAL ) - - col2 = - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - ( + 88 ) FROM tab1
----
-88
-88
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT ALL COUNT( * ) + 13 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-9073
SELECT ALL COUNT ( * ) + 13 FROM tab2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9074
SELECT + col1 / + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9074
SELECT + col1 / + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT COUNT( * ) * + 4 AS col2 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-9075
SELECT COUNT ( * ) * + 4 AS col2 FROM tab1
----
12

query I rowsort
SELECT DISTINCT + - 83 AS col1 FROM tab0 AS cor0
----
-83

query I rowsort
SELECT ( - ( - - 97 ) ) AS col2 FROM tab2
----
-97
-97
-97

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * - col0 BETWEEN + 27 + 13 + col0 / + 34 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9079
SELECT + 3 * - + col2 * CAST( - col1 AS SIGNED ) FROM tab0
----
11421
297
630

skipif mysql # not compatible
query I rowsort label-9079
SELECT + 3 * - + col2 * CAST ( - col1 AS INTEGER ) FROM tab0
----
11421
297
630

query I rowsort
SELECT col0 + - col1 FROM tab1 WHERE NOT - col2 + - 40 > ( 20 )
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9081
SELECT - 70 * CAST( col1 AS SIGNED ) AS col0 FROM tab1
----
-3290
-350
-980

skipif mysql # not compatible
query I rowsort label-9081
SELECT - 70 * CAST ( col1 AS INTEGER ) AS col0 FROM tab1
----
-3290
-350
-980

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 44 IS NOT NULL
----

query II rowsort
SELECT ALL + - col0 AS col2, + col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT DISTINCT + + 51 AS col0 FROM tab0 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col2 col1 FROM tab0 WHERE + col0 * + col0 + 99 <= + 38
----

query I rowsort
SELECT + ( + + col1 ) * col1 AS col0 FROM tab0
----
1
441
6561

query III rowsort
SELECT ALL * FROM tab1 WHERE 80 IS NULL
----

query I rowsort
SELECT DISTINCT + - 4 + + - col2 * + + col0 AS col2 FROM tab2 AS cor0
----
-1062
-2564
-4354

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT DISTINCT - COUNT( DISTINCT - 89 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9089
SELECT DISTINCT - COUNT ( DISTINCT - 89 ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT 57 * + col1 FROM tab2
----
2907
3819
4389

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT + COUNT( ALL - 0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9091
SELECT + COUNT ( ALL - 0 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9092
SELECT ALL 92 AS col1, ( + CAST( - 64 AS SIGNED ) ) AS col2 FROM tab0 AS cor0 WHERE ( col2 + - col0 ) IS NOT NULL
----
92
-64
92
-64
92
-64

skipif mysql # not compatible
query II rowsort label-9092
SELECT ALL 92 AS col1, ( + CAST ( - 64 AS INTEGER ) ) AS col2 FROM tab0 AS cor0 WHERE ( col2 + - col0 ) IS NOT NULL
----
92
-64
92
-64
92
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-9093
SELECT ALL - + col1 - - col1 DIV 49 AS col2 FROM tab0 AS cor0
----
-1
-21
-80

skipif mysql # not compatible
query I rowsort label-9093
SELECT ALL - + col1 - - col1 / 49 AS col2 FROM tab0 AS cor0
----
-1
-21
-80

query I rowsort
SELECT DISTINCT - 19 - + 96 FROM tab2 AS cor0
----
-115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + - col0 col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + 17 col0 FROM tab0 AS cor0 WHERE + col0 <> - - col2
----
-30
-82
7

query III rowsort
SELECT ALL + col1 * col0 AS col2, - col2 - - 75 * ( - 13 ) * - col1, col2 FROM tab2
----
9 values hashing to 5aa5f57089d417051999b3d405446625

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 <= ( - 95 * + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT 36 - - COUNT( * ) * - COUNT( DISTINCT + col1 ) AS col1 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-9099
SELECT 36 - - COUNT ( * ) * - COUNT ( DISTINCT + col1 ) AS col1 FROM tab2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9100
SELECT ALL CAST( NULL AS SIGNED ) * + - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL CAST ( NULL AS INTEGER ) * + - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 - col2 + + col1 FROM tab2
----
101
74
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9102
SELECT ALL - ( CAST( + 17 AS SIGNED ) ) * + + COUNT( * ) AS col0, 38 FROM tab2
----
-51
38

skipif mysql # not compatible
query II rowsort label-9102
SELECT ALL - ( CAST ( + 17 AS INTEGER ) ) * + + COUNT ( * ) AS col0, 38 FROM tab2
----
-51
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT DISTINCT + SUM( col0 ) + - 82 FROM tab0
----
117

skipif mysql # not compatible
query I rowsort label-9103
SELECT DISTINCT + SUM ( col0 ) + - 82 FROM tab0
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9104
SELECT ALL COUNT( * ) DIV - 46 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL COUNT ( * ) / - 46 AS col2 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + + col0 ) col1 FROM tab2 AS cor0 WHERE NOT NULL <> col1 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT DISTINCT - - COUNT( * ) * + + COUNT( DISTINCT + col0 ) col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9106
SELECT DISTINCT - - COUNT ( * ) * + + COUNT ( DISTINCT + col0 ) col2 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT ( + - COUNT( - 81 ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9107
SELECT ( + - COUNT ( - 81 ) ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT DISTINCT - ( + + MAX( ALL col2 ) ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9108
SELECT DISTINCT - ( + + MAX ( ALL col2 ) ) AS col2 FROM tab2 AS cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - 64 ) col0 FROM tab1
----
-64

query II rowsort
SELECT - 47, + col2 AS col0 FROM tab1 WHERE NOT col0 * + - col2 IS NULL
----
-47
59
-47
68
-47
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 > - + col1 OR - - col2 NOT BETWEEN 68 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9112
SELECT ALL + CAST( 20 AS SIGNED ) col1 FROM tab1 AS cor0
----
20
20
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9112
SELECT ALL + CAST ( 20 AS INTEGER ) col1 FROM tab1 AS cor0
----
20
20
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9113
SELECT - col1 * - ( - col2 ) * - col2 DIV - - col2 + + col1 FROM tab2 AS cor0
----
1224
3157
3953

skipif mysql # not compatible
query I rowsort label-9113
SELECT - col1 * - ( - col2 ) * - col2 / - - col2 + + col1 FROM tab2 AS cor0
----
1224
3157
3953

onlyif mysql # aggregate syntax: 
query II rowsort label-9114
SELECT DISTINCT + COUNT( * ) AS col2, - ( - 9 ) AS col2 FROM tab2
----
3
9

skipif mysql # not compatible
query II rowsort label-9114
SELECT DISTINCT + COUNT ( * ) AS col2, - ( - 9 ) AS col2 FROM tab2
----
3
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT DISTINCT COUNT( * ) + 35 col1 FROM tab0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9115
SELECT DISTINCT COUNT ( * ) + 35 col1 FROM tab0
----
38

onlyif mysql # aggregate syntax: 
query III rowsort label-9116
SELECT ALL COUNT( * ) col0, + 25 AS col0, + 91 FROM tab1
----
3
25
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-9116
SELECT ALL COUNT ( * ) col0, + 25 AS col0, + 91 FROM tab1
----
3
25
91

query I rowsort
SELECT - 21 + - ( + col2 ) * - 17 + + - 29 FROM tab1
----
1106
1582
953

onlyif mysql # DIV for integer division: 
query I rowsort label-9118
SELECT col0 + col2 DIV + - col2 AS col0 FROM tab2 AS cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-9118
SELECT col0 + col2 / + - col2 AS col0 FROM tab2 AS cor0
----
45
63
74

query II rowsort
SELECT DISTINCT + 12, 17 AS col2 FROM tab2 AS cor0
----
12
17

onlyif mysql # DIV for integer division: 
query II rowsort label-9120
SELECT DISTINCT - 10 + - col1 + - col0 - + 53 + - + col1 * col0 DIV col0 AS col0, col1 * ( + 21 ) col1 FROM tab0 AS cor0
----
-162
21
-192
441
-240
1701

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9120
SELECT DISTINCT - 10 + - col1 + - col0 - + 53 + - + col1 * col0 / col0 AS col0, col1 * ( + 21 ) col1 FROM tab0 AS cor0
----
-162
21
-192
441
-240
1701

onlyif mysql # DIV for integer division: 
query I rowsort label-9121
SELECT ALL 76 DIV + - col0 + + col2 + 66 AS col2 FROM tab2 AS cor0
----
105
123
88

skipif mysql # not compatible
query I rowsort label-9121
SELECT ALL 76 / + - col0 + + col2 + 66 AS col2 FROM tab2 AS cor0
----
105
123
88

onlyif mysql # DIV for integer division: 
query I rowsort label-9122
SELECT ( + 16 ) + + col2 DIV col2 * col1 FROM tab0 AS cor0
----
17
37
97

skipif mysql # not compatible
query I rowsort label-9122
SELECT ( + 16 ) + + col2 / col2 * col1 FROM tab0 AS cor0
----
17
37
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9123
SELECT DISTINCT - 71 + 38 * + + col0 + + CAST( - col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
1853
3154
3340

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9123
SELECT DISTINCT - 71 + 38 * + + col0 + + CAST ( - col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
1853
3154
3340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9124
SELECT DISTINCT - - 82 * + + 24 + - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9124
SELECT DISTINCT - - 82 * + + 24 + - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * 99 + + col2 * + col0 FROM tab0 AS cor0 WHERE 85 BETWEEN - - 75 AND NULL AND 42 IN ( col0 )
----

query I rowsort
SELECT - col0 + col0 + 82 * - - 97 AS col2 FROM tab2 AS cor0
----
7954
7954
7954

query I rowsort
SELECT DISTINCT + - 48 * - 36 AS col0 FROM tab2 AS cor0
----
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT COUNT( - 54 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9128
SELECT COUNT ( - 54 ) FROM tab2
----
3

query I rowsort
SELECT + 91 * + 4 * - - col0 AS col2 FROM tab1
----
18564
30940
33124

query I rowsort
SELECT ALL - 98 * - 56 AS col2 FROM tab1
----
5488
5488
5488

query I rowsort
SELECT 5 * + col1 FROM tab2
----
255
335
385

query II rowsort
SELECT ALL col2, 23 FROM tab2
----
23
23
40
23
58
23

query I rowsort
SELECT ALL col1 * + col2 * + ( - 66 ) AS col0 FROM tab1
----
-19470
-210936
-88704

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 37 * 14 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT - ( - COUNT( * ) ) - - COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9136
SELECT - ( - COUNT ( * ) ) - - COUNT ( * ) FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT 32 * - COUNT( * ) AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9137
SELECT 32 * - COUNT ( * ) AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9139
SELECT ALL COUNT( * ) * COUNT( * ) FROM tab1 WHERE + CAST( NULL AS SIGNED ) * + 21 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-9139
SELECT ALL COUNT ( * ) * COUNT ( * ) FROM tab1 WHERE + CAST ( NULL AS INTEGER ) * + 21 IS NULL
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9141
SELECT + col2 * CAST( ( col1 ) AS SIGNED ) col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9141
SELECT + col2 * CAST ( ( col1 ) AS INTEGER ) col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 49 NOT BETWEEN NULL AND 88
----

query I rowsort
SELECT 44 + + col1 AS col0 FROM tab0
----
125
45
65

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col1 ) IN ( - col2 )
----

query I rowsort
SELECT ALL 63 * 19 + 24 * - col0 FROM tab1
----
-27
-843
-987

query I rowsort
SELECT ALL 19 FROM tab1 WHERE ( + col1 ) IS NOT NULL
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT SUM( - 72 ) FROM tab2
----
-216

skipif mysql # not compatible
query I rowsort label-9147
SELECT SUM ( - 72 ) FROM tab2
----
-216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9148
SELECT + ( CAST( - col2 AS SIGNED ) ) + - col1 * + col2 AS col2 FROM tab0
----
-198
-220
-3854

skipif mysql # not compatible
query I rowsort label-9148
SELECT + ( CAST ( - col2 AS INTEGER ) ) + - col1 * + col2 AS col2 FROM tab0
----
-198
-220
-3854

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + 51 col0 FROM tab1
----
-2397
-255
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT COUNT( * ) + SUM( - col2 ) FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-9150
SELECT COUNT ( * ) + SUM ( - col2 ) FROM tab2
----
-118

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 73 * col1 ) IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9152
SELECT col2 + - col2 DIV 46 col1 FROM tab0
----
10
46
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9152
SELECT col2 + - col2 / 46 col1 FROM tab0
----
10
46
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9153
SELECT 81 DIV col2 + 11 FROM tab0 AS cor0
----
11
12
19

skipif mysql # not compatible
query I rowsort label-9153
SELECT 81 / col2 + 11 FROM tab0 AS cor0
----
11
12
19

query I rowsort
SELECT col0 + 63 AS col1 FROM tab1 AS cor0
----
114
148
154

query I rowsort
SELECT - 3 + col0 FROM tab2 cor0
----
43
61
72

query I rowsort
SELECT ( col0 ) + - col0 * - 54 FROM tab0
----
4785
5335
825

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT + ( 26 ) * - 41 + + COUNT( * ) FROM tab2
----
-1063

skipif mysql # not compatible
query I rowsort label-9157
SELECT + ( 26 ) * - 41 + + COUNT ( * ) FROM tab2
----
-1063

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT ALL COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-9158
SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( + 1 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9160
SELECT + col1 AS col0 FROM tab2 WHERE CAST( - col2 AS SIGNED ) NOT BETWEEN 70 AND col0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9160
SELECT + col1 AS col0 FROM tab2 WHERE CAST ( - col2 AS INTEGER ) NOT BETWEEN 70 AND col0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT DISTINCT - MAX( col1 ) - + 27 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9161
SELECT DISTINCT - MAX ( col1 ) - + 27 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9162
SELECT + CAST( + 19 AS SIGNED ) FROM tab1 cor0
----
19
19
19

skipif mysql # not compatible
query I rowsort label-9162
SELECT + CAST ( + 19 AS INTEGER ) FROM tab1 cor0
----
19
19
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col1 FROM tab1 AS cor0 WHERE NULL BETWEEN - col1 AND NULL
----

query I rowsort
SELECT DISTINCT - - col0 - col0 * - col0 FROM tab2 cor0
----
2162
4160
5700

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9165
SELECT * FROM tab0 AS cor0 WHERE col1 * 71 + CAST( NULL AS SIGNED ) BETWEEN ( - col1 ) AND ( col0 + + col0 )
----

skipif mysql # not compatible
query III rowsort label-9165
SELECT * FROM tab0 AS cor0 WHERE col1 * 71 + CAST ( NULL AS INTEGER ) BETWEEN ( - col1 ) AND ( col0 + + col0 )
----

query I rowsort
SELECT - 96 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-96
-96
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9167
SELECT DISTINCT CAST( NULL AS SIGNED ) - COUNT( * ) * + 81 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9167
SELECT DISTINCT CAST ( NULL AS INTEGER ) - COUNT ( * ) * + 81 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 * col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT DISTINCT - MAX( DISTINCT col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9169
SELECT DISTINCT - MAX ( DISTINCT col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT DISTINCT - MIN( - 88 ) AS col0 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-9170
SELECT DISTINCT - MIN ( - 88 ) AS col0 FROM tab1 AS cor0
----
88

query I rowsort
SELECT ALL col2 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( + col1 * + 1 ) IS NOT NULL
----

query I rowsort
SELECT - col1 + + col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT col1 AS col1 FROM tab0 cor0 WHERE NOT ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT ( - ( col0 ) ) AS col1 FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT ALL MAX( + + 76 ) FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL MAX ( + + 76 ) FROM tab2
----
76

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE NOT ( + col2 ) IS NULL
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN 76 AND ( + col2 * 8 )
----

query I rowsort
SELECT DISTINCT 21 * col1 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN 12 * + 74 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT ALL 10 * COUNT( * ) AS col0 FROM tab1 WHERE ( - col1 * - col0 ) IS NOT NULL
----
30

skipif mysql # not compatible
query I rowsort label-9179
SELECT ALL 10 * COUNT ( * ) AS col0 FROM tab1 WHERE ( - col1 * - col0 ) IS NOT NULL
----
30

query I rowsort
SELECT DISTINCT - col1 * - - col2 * - col0 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT 46 / 56 FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT DISTINCT + 70 * - COUNT( * ) FROM tab0 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-9182
SELECT DISTINCT + 70 * - COUNT ( * ) FROM tab0 AS cor0
----
-210

query I rowsort
SELECT ( - - 37 ) * + 29 AS col0 FROM tab2 AS cor0
----
1073
1073
1073

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT DISTINCT MIN( DISTINCT + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9184
SELECT DISTINCT MIN ( DISTINCT + col2 ) FROM tab2 AS cor0
----
23

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( + ( - 71 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT ( + + MAX( DISTINCT col0 ) ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9186
SELECT ( + + MAX ( DISTINCT col0 ) ) AS col0 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9187
SELECT DISTINCT ( CAST( - - 74 AS SIGNED ) ) + col0 * col1 FROM tab1
----
4351
499
788

skipif mysql # not compatible
query I rowsort label-9187
SELECT DISTINCT ( CAST ( - - 74 AS INTEGER ) ) + col0 * col1 FROM tab1
----
4351
499
788

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT 58 * - COUNT( * ) AS col1 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9188
SELECT 58 * - COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

query I rowsort
SELECT ( col2 ) + + ( - col0 ) * col1 FROM tab0 AS cor0 WHERE NOT col1 <= - + col0
----
-1168
-1817
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT + - COUNT( * ) * + COUNT( DISTINCT - - col1 ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9190
SELECT + - COUNT ( * ) * + COUNT ( DISTINCT - - col1 ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - ( col2 ) col2 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT ALL + col0 * + ( col0 ) AS col2 FROM tab1 AS cor0
----
2601
7225
8281

query I rowsort
SELECT + - col0 * - 97 AS col0 FROM tab1 AS cor0
----
4947
8245
8827

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9194
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 * col2 IN ( ( CAST( NULL AS DECIMAL ) ) / col2 + - col0 )
----

skipif mysql # not compatible
query III rowsort label-9194
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 * col2 IN ( ( CAST ( NULL AS REAL ) ) / col2 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT - 93 + + ( + 5 ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-9195
SELECT - 93 + + ( + 5 ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 42 col1 FROM tab2 cor0 WHERE NOT ( + col0 ) IS NULL
----
42

query I rowsort
SELECT - col0 + + + ( 39 ) FROM tab0
----
-48
-58
24

query I rowsort
SELECT DISTINCT 28 + - - col1 * 41 * + 86 * col0 + col0 FROM tab0
----
342147
4284133
6442117

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 * + 33 + - 30 + - col1 = - col0
----

query III rowsort
SELECT * FROM tab0 WHERE + 2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9201
SELECT DISTINCT - col1 + col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9201
SELECT DISTINCT - col1 + col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT - 47 + - COUNT( * ) AS col1 FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-9202
SELECT - 47 + - COUNT ( * ) AS col1 FROM tab2
----
-50

query I rowsort
SELECT ALL + col0 + - + col1 AS col2 FROM tab1
----
37
44
80

query I rowsort
SELECT ( - 77 ) * col2 + + col1 AS col1 FROM tab0
----
-3538
-749
-7622

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col0 + + col1 * col0 col2 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT - 13 + 0 * - COUNT( * ) * 14 AS col0 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-9206
SELECT - 13 + 0 * - COUNT ( * ) * 14 AS col0 FROM tab2
----
-13

query I rowsort
SELECT DISTINCT + col0 * - col2 - - - 88 FROM tab2 AS cor0
----
-1146
-2648
-4438

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9208
SELECT DISTINCT + CAST( - ( - col0 ) AS SIGNED ) + + + col0 FROM tab2 AS cor0
----
128
150
92

skipif mysql # not compatible
query I rowsort label-9208
SELECT DISTINCT + CAST ( - ( - col0 ) AS INTEGER ) + + + col0 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT NULL >= ( - col2 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col2 + col1 * - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9211
SELECT ALL CAST( NULL AS SIGNED ) + + 53 + - 2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL CAST ( NULL AS INTEGER ) + + 53 + - 2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9212
SELECT DISTINCT CAST( 19 AS SIGNED ) + 83 + - col2 AS col0 FROM tab2
----
44
62
79

skipif mysql # not compatible
query I rowsort label-9212
SELECT DISTINCT CAST ( 19 AS INTEGER ) + 83 + - col2 AS col0 FROM tab2
----
44
62
79

query I rowsort
SELECT - - 92 + - col2 FROM tab2 WHERE 92 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col0 * - 77 + - + col2 AS col2 FROM tab2
----
3519
4888
5717

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9215
SELECT - - CAST( + COUNT( + col2 ) AS SIGNED ) + - ( + + 93 ) FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-9215
SELECT - - CAST ( + COUNT ( + col2 ) AS INTEGER ) + - ( + + 93 ) FROM tab0 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT ALL + SUM( - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL + SUM ( - col2 ) FROM tab2 AS cor0
----
-121

query II rowsort
SELECT DISTINCT col0, - 83 FROM tab1 AS cor0
----
51
-83
85
-83
91
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9218
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 / + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9218
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 / + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT DISTINCT MIN( + col1 ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-9219
SELECT DISTINCT MIN ( + col1 ) FROM tab2 cor0
----
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( - col0 ) ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, + col0 col2 FROM tab0
----
-15
15
-87
87
-97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9222
SELECT DISTINCT 19 * + CAST( + - col0 AS SIGNED ) AS col2 FROM tab2
----
-1216
-1425
-874

skipif mysql # not compatible
query I rowsort label-9222
SELECT DISTINCT 19 * + CAST ( + - col0 AS INTEGER ) AS col2 FROM tab2
----
-1216
-1425
-874

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9223
SELECT CAST( NULL AS SIGNED ) * MIN( ALL col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9223
SELECT CAST ( NULL AS INTEGER ) * MIN ( ALL col1 ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) > col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9225
SELECT ALL - COUNT( * ) AS col0, 52 + + 70 AS col2 FROM tab2
----
-3
122

skipif mysql # not compatible
query II rowsort label-9225
SELECT ALL - COUNT ( * ) AS col0, 52 + + 70 AS col2 FROM tab2
----
-3
122

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col0, 72 AS col1 FROM tab1
----
51
72
85
72
91
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9228
SELECT CAST( + col1 AS SIGNED ) * + col2 + + col2 AS col1 FROM tab1
----
1440
3264
354

skipif mysql # not compatible
query I rowsort label-9228
SELECT CAST ( + col1 AS INTEGER ) * + col2 + + col2 AS col1 FROM tab1
----
1440
3264
354

query I rowsort
SELECT - - 48 - - - 92 * col1 AS col0 FROM tab1 WHERE NOT col1 BETWEEN + + 9 AND NULL
----
-412

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9230
SELECT DISTINCT + - MIN( DISTINCT + col2 ) * + CAST( NULL AS SIGNED ) * - 34 + + + 75 + - AVG ( ALL col2 ) + - 76 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9230
SELECT DISTINCT + - MIN ( DISTINCT + col2 ) * + CAST ( NULL AS INTEGER ) * - 34 + + + 75 + - AVG ( ALL col2 ) + - 76 AS col0 FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * + col1 NOT BETWEEN 40 - - 29 * ( col2 ) / col2 AND + col0 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9232
SELECT + + MIN( ALL + - ( + CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9232
SELECT + + MIN ( ALL + - ( + CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT - COUNT( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9233
SELECT - COUNT ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 - - 11 * + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT DISTINCT MIN( ( + col2 ) ) + - + 57 AS col0 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT MIN ( ( + col2 ) ) + - + 57 AS col0 FROM tab0
----
-47

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 / + 52 + + col2 + ( - col2 ) + - col2 = col0 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 93 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT col1 - - 63 + 38 + - 75 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT - - col0 * col0 AS col1, - col1 FROM tab1 AS cor0
----
2601
-14
7225
-5
8281
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9241
SELECT col0 - + CAST( - - col0 AS SIGNED ) * + - col0 FROM tab2 AS cor0 WHERE ( col1 ) IS NOT NULL
----
2162
4160
5700

skipif mysql # not compatible
query I rowsort label-9241
SELECT col0 - + CAST ( - - col0 AS INTEGER ) * + - col0 FROM tab2 AS cor0 WHERE ( col1 ) IS NOT NULL
----
2162
4160
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT - COUNT( * ) * + MAX( + col2 ) AS col1 FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-9242
SELECT - COUNT ( * ) * + MAX ( + col2 ) AS col1 FROM tab0 AS cor0
----
-297

query I rowsort
SELECT + col0 * + col0 + + ( - + col0 ) AS col1 FROM tab0 AS cor0
----
210
7482
9312

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col2 * + - 70 - + ( - - ( + col1 ) ) + + col1 AS col1 FROM tab0 AS cor0
----
-3290
-6930
-700

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( NOT 40 >= NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9248
SELECT - CAST( + 13 AS SIGNED ) * - 68 AS col2 FROM tab2 AS cor0
----
884
884
884

skipif mysql # not compatible
query I rowsort label-9248
SELECT - CAST ( + 13 AS INTEGER ) * - 68 AS col2 FROM tab2 AS cor0
----
884
884
884

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT ALL SUM( - 38 ) col2 FROM tab0
----
-114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9249
SELECT ALL SUM ( - 38 ) col2 FROM tab0
----
-114

query I rowsort
SELECT DISTINCT + col1 + - - 87 FROM tab2
----
138
154
164

query I rowsort
SELECT ALL - 20 * col1 FROM tab1
----
-100
-280
-940

query III rowsort
SELECT * FROM tab0 WHERE + col0 NOT IN ( - ( - + col0 ) / col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 29 - - col2 AS col2 FROM tab1
----
125
88
97

query I rowsort
SELECT ALL col0 + + 12 + - 36 FROM tab2
----
22
40
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9255
SELECT DISTINCT - 93 + + 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-9255
SELECT DISTINCT - 93 + + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL

query I rowsort
SELECT - col0 + - + 25 AS col1 FROM tab0 AS cor0
----
-112
-122
-40

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT + 86 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9258
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 97 AS col2 FROM tab2 AS cor0 WHERE + CAST( NULL AS DECIMAL ) / ( 67 ) + - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 97 AS col2 FROM tab2 AS cor0 WHERE + CAST ( NULL AS REAL ) / ( 67 ) + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT + MAX( DISTINCT col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9259
SELECT + MAX ( DISTINCT col1 ) FROM tab2 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 * col1 col0 FROM tab0 AS cor0
----
1386
5346
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT ALL + + COUNT( col1 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9261
SELECT ALL + + COUNT ( col1 ) col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9262
SELECT * FROM tab0 WHERE NOT - + CAST( NULL AS SIGNED ) BETWEEN CAST( NULL AS SIGNED ) * - - 95 AND 32
----

skipif mysql # not compatible
query III rowsort label-9262
SELECT * FROM tab0 WHERE NOT - + CAST ( NULL AS INTEGER ) BETWEEN CAST ( NULL AS INTEGER ) * - - 95 AND 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT COUNT( * ) FROM tab0 WHERE NOT + + col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9263
SELECT COUNT ( * ) FROM tab0 WHERE NOT + + col1 = NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + col2 / + - col1 AND NULL
----

query I rowsort
SELECT DISTINCT + + 21 FROM tab2 WHERE NOT - 40 IS NOT NULL
----

query I rowsort
SELECT ALL - - col0 FROM tab1 WHERE NOT col0 * - + 66 IS NULL
----
51
85
91

query I rowsort
SELECT + - 99 * + + col1 * - + col1 + + 17 FROM tab1 AS cor0
----
19421
218708
2492

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 + - 20 < NULL
----

query I rowsort
SELECT DISTINCT - col1 + 55 FROM tab2
----
-12
-22
4

query II rowsort
SELECT - - col2, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query II rowsort
SELECT - + col0, + 78 + - col2 AS col2 FROM tab0 cor0
----
-15
31
-87
68
-97
-21

query I rowsort
SELECT - 45 + + col2 AS col0 FROM tab2 AS cor0
----
-22
-5
13

query I rowsort
SELECT ALL - 12 * + ( ( - ( + + col2 ) ) ) AS col0 FROM tab2 AS cor0
----
276
480
696

query I rowsort
SELECT + 78 * - 14 + - - 28 + + 40 AS col2 FROM tab0 AS cor0
----
-1024
-1024
-1024

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT ALL + + 82 * - - COUNT( col1 ) AS col0 FROM tab2 cor0
----
246

skipif mysql # not compatible
query I rowsort label-9275
SELECT ALL + + 82 * - - COUNT ( col1 ) AS col0 FROM tab2 cor0
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT ( COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE + + ( + - 55 ) IN ( + - col2, 50 ) AND col0 / col2 - + + ( - - 89 ) <= + - 35
----
0

skipif mysql # not compatible
query I rowsort label-9276
SELECT ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE + + ( + - 55 ) IN ( + - col2, 50 ) AND col0 / col2 - + + ( - - 89 ) <= + - 35
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * col1 col1, col0 AS col0 FROM tab0
----
1215
15
1827
87
97
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9278
SELECT DISTINCT COUNT( * ) DIV - - ( - MIN( DISTINCT col2 ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9278
SELECT DISTINCT COUNT ( * ) / - - ( - MIN ( DISTINCT col2 ) ) AS col2 FROM tab1
----
0

query I rowsort
SELECT ALL 60 * + 72 * - col2 + 68 AS col1 FROM tab0
----
-202972
-427612
-43132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9280
SELECT + COUNT( * ) * - + CAST( NULL AS SIGNED ) col0, COUNT( * ) FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9280
SELECT + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) col0, COUNT ( * ) FROM tab2 AS cor0
----
NULL
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 77 * - col1 >= - col0 * - - 75 + - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * - 81 FROM tab0
----
1215
7047
7857

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9283
SELECT 85, CAST( - + ( - MAX( 70 ) ) AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
85
70

skipif mysql # not compatible
query II rowsort label-9283
SELECT 85, CAST ( - + ( - MAX ( 70 ) ) AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
85
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9284
SELECT CAST( NULL AS SIGNED ) * 0 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9284
SELECT CAST ( NULL AS INTEGER ) * 0 col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 * - 81 + + 51 > NULL
----

query I rowsort
SELECT DISTINCT + - 34 FROM tab2 WHERE NOT + - col2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 85 col2, ( 83 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 03d3105121cf3f000effbeca52e75067

query II rowsort
SELECT DISTINCT 76 AS col0, - 53 AS col0 FROM tab0 AS cor0
----
76
-53

query I rowsort
SELECT ALL - - 8 AS col0 FROM tab0 AS cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT ALL - - COUNT( 17 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL - - COUNT ( 17 ) AS col1 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9291
SELECT DISTINCT + col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN NULL AND ( + - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9291
SELECT DISTINCT + col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN NULL AND ( + - col2 )
----
NULL

query II rowsort
SELECT ALL - - col2 AS col0, - col1 AS col0 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

query I rowsort
SELECT DISTINCT - + 94 * col1 AS col0 FROM tab0 AS cor0
----
-1974
-7614
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-9294
SELECT ALL + col1 DIV + + col2 col1 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9294
SELECT ALL + col1 / + + col2 col1 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT col1 * 26 AS col1 FROM tab2
----
1326
1742
2002

query I rowsort
SELECT + + col2 FROM tab0 WHERE NOT + col2 * + + 80 IS NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 17 ) col1 FROM tab1
----
17
17
17

query I rowsort
SELECT col1 * + col1 * 88 FROM tab1
----
17248
194392
2200

onlyif mysql # DIV for integer division: 
query I rowsort label-9299
SELECT ALL + col1 + - - col2 DIV + - 17 + 3 FROM tab0
----
-1
24
82

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL + col1 + - - col2 / + - 17 + 3 FROM tab0
----
-1
24
82

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 / - + 9 AS col2 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 = col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE 10 NOT IN ( - - col0 - + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT - COUNT( * ) + + 80 AS col0 FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-9304
SELECT - COUNT ( * ) + + 80 AS col0 FROM tab1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9305
SELECT 32 + - CAST( MIN( + 24 ) AS SIGNED ) AS col2 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-9305
SELECT 32 + - CAST ( MIN ( + 24 ) AS INTEGER ) AS col2 FROM tab2
----
8

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( ( NULL ) IS NULL )
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-9307
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9308
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE ( + ( + ( - + CAST( NULL AS SIGNED ) ) ) ) = CAST( NULL AS SIGNED ) + + - col1
----

skipif mysql # not compatible
query I rowsort label-9308
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE ( + ( + ( - + CAST ( NULL AS INTEGER ) ) ) ) = CAST ( NULL AS INTEGER ) + + - col1
----

query I rowsort
SELECT DISTINCT - + 88 + - - col1 FROM tab0 AS cor0
----
-67
-7
-87

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 + - + 12 + + col1 < + col0 + - + ( col2 )
----
87
21
10
97
1
99

query I rowsort
SELECT col2 * + 73 + + + col1 + - + col2 FROM tab0 AS cor0
----
3465
7129
741

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9312
SELECT col2 AS col1, col0 + - 38 FROM tab0 cor0 WHERE - col0 >= - col2 * - - col0 / + - 73 / + CAST( NULL AS DECIMAL ) - + - col2
----

skipif mysql # not compatible
query II rowsort label-9312
SELECT col2 AS col1, col0 + - 38 FROM tab0 cor0 WHERE - col0 >= - col2 * - - col0 / + - 73 / + CAST ( NULL AS REAL ) - + - col2
----

query I rowsort
SELECT ALL + 78 * + col1 + - - col2 + + col1 AS col2 FROM tab1 AS cor0
----
1202
3781
454

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT ALL - COUNT( DISTINCT 27 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9314
SELECT ALL - COUNT ( DISTINCT 27 ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT + SUM( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9315
SELECT + SUM ( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL - col2 - - + col2 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT ALL - SUM( - - col0 ) * SUM( + 16 ) FROM tab2
----
-8880

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL - SUM ( - - col0 ) * SUM ( + 16 ) FROM tab2
----
-8880

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT - - MIN( + 79 ) FROM tab1 WHERE + + col1 * - + col1 BETWEEN NULL AND - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-9318
SELECT - - MIN ( + 79 ) FROM tab1 WHERE + + col1 * - + col1 BETWEEN NULL AND - 73
----
NULL

query I rowsort
SELECT 19 - + col0 FROM tab2
----
-27
-45
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT DISTINCT - MAX( ALL col1 ) * - + 20 col0 FROM tab1
----
940

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9320
SELECT DISTINCT - MAX ( ALL col1 ) * - + 20 col0 FROM tab1
----
940

query II rowsort
SELECT 25, col1 AS col2 FROM tab0 AS cor0
----
25
1
25
21
25
81

query I rowsort
SELECT DISTINCT - col1 * - col1 + - + col0 AS col1 FROM tab1 AS cor0
----
-60
145
2118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9323
SELECT - MIN( - + col0 ) DIV 28 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9323
SELECT - MIN ( - + col0 ) / 28 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9324
SELECT + + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND + - 87
----

skipif mysql # not compatible
query I rowsort label-9324
SELECT + + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND + - 87
----

query I rowsort
SELECT + 8 * - - col0 FROM tab0 cor0
----
120
696
776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9326
SELECT ALL - CAST( - - 96 AS SIGNED ) * - + 16 * - col1 * + 5 col0 FROM tab0 AS cor0
----
-161280
-622080
-7680

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9326
SELECT ALL - CAST ( - - 96 AS INTEGER ) * - + 16 * - col1 * + 5 col0 FROM tab0 AS cor0
----
-161280
-622080
-7680

query II rowsort
SELECT DISTINCT + + col0 * + col2, ( + col1 ) AS col0 FROM tab2 AS cor0
----
1058
51
2560
77
4350
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9328
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN + col0 * + col0 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9328
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN + col0 * + col0 AND + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= ( col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + - col0 < NULL
----

query I rowsort
SELECT + - 10 FROM tab0 cor0
----
-10
-10
-10

query I rowsort
SELECT DISTINCT - 77 * 79 AS col0 FROM tab2 AS cor0
----
-6083

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9333
SELECT ALL COUNT( * ) DIV - 20 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL COUNT ( * ) / - 20 AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT + 6 * SUM( - 15 ) FROM tab0 WHERE NOT + - col2 IS NULL
----
-270

skipif mysql # not compatible
query I rowsort label-9334
SELECT + 6 * SUM ( - 15 ) FROM tab0 WHERE NOT + - col2 IS NULL
----
-270

query I rowsort
SELECT + - ( col2 ) AS col1 FROM tab0 WHERE NOT 61 IS NOT NULL
----

query I rowsort
SELECT + 70 + + - ( + 77 ) FROM tab2
----
-7
-7
-7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9337
SELECT ALL * FROM tab1 WHERE - + col1 + + CAST( - 53 AS SIGNED ) NOT IN ( - col1 - col1, CAST( NULL AS SIGNED ), + - col0 )
----

skipif mysql # not compatible
query III rowsort label-9337
SELECT ALL * FROM tab1 WHERE - + col1 + + CAST ( - 53 AS INTEGER ) NOT IN ( - col1 - col1, CAST ( NULL AS INTEGER ), + - col0 )
----

query I rowsort
SELECT - 18 FROM tab2 WHERE NOT - col2 + - col2 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9339
SELECT 80 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9339
SELECT 80 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT - 49 + - COUNT( * ) FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-9340
SELECT - 49 + - COUNT ( * ) FROM tab1 AS cor0
----
-52

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE ( - col0 / - col2 ) IS NOT NULL
----
1
21
81

query III rowsort
SELECT * FROM tab2 WHERE - col1 >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT DISTINCT - COUNT( * ) + - 74 FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9343
SELECT DISTINCT - COUNT ( * ) + - 74 FROM tab1 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9344
SELECT CAST( NULL AS SIGNED ) + - col0 * + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9344
SELECT CAST ( NULL AS INTEGER ) + - col0 * + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT - MAX( ALL - - col0 ) + + 51 AS col0 FROM tab2 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-9345
SELECT - MAX ( ALL - - col0 ) + + 51 AS col0 FROM tab2 cor0
----
-24

query I rowsort
SELECT - 80 + - col0 AS col0 FROM tab0 AS cor0
----
-167
-177
-95

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 * + col2 AND + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9348
SELECT ALL - + COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL - + COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL ( - col0 ) * + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
-225
-7569
-9409

query I rowsort
SELECT col0 / - col1 * - col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN + - col1 * + 98 AND - 31
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT col2 * ( 20 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE + - 90 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 81 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT DISTINCT - MIN( - 85 ) col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9355
SELECT DISTINCT - MIN ( - 85 ) col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT ALL SUM( ALL + col0 ) * MIN( DISTINCT col2 ) + COUNT( + + col2 ) - 15 AS col0 FROM tab1
----
13381

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL SUM ( ALL + col0 ) * MIN ( DISTINCT col2 ) + COUNT ( + + col2 ) - 15 AS col0 FROM tab1
----
13381

query I rowsort
SELECT col1 * + ( + col0 ) AS col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT 29 * - col0 FROM tab0
----
-2523
-2813
-435

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT ALL MAX( + 47 ) AS col2 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL MAX ( + 47 ) AS col2 FROM tab0
----
47

query I rowsort
SELECT + col0 * + 88 FROM tab0
----
1320
7656
8536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, 6 col1 FROM tab2
----
23
6
40
6
58
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9362
SELECT - + col1 DIV 6 FROM tab2 AS cor0
----
-11
-12
-8

skipif mysql # not compatible
query I rowsort label-9362
SELECT - + col1 / 6 FROM tab2 AS cor0
----
-11
-12
-8

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 NOT IN ( + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 37 AS col2 FROM tab2 AS cor0
----
37
37
37

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 75 * - col0 + - + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( 38 * - col1, col1, + ( + 59 ) )
----

query I rowsort
SELECT ALL + + col0 * + - col2 + + col2 FROM tab2 AS cor0
----
-1035
-2520
-4292

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 64 col1 FROM tab1 AS cor0
----
3776
4352
6144

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN - + col1 + col2 AND - col0 + + col0 - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 - + + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9371
SELECT DISTINCT col1 DIV - - 77 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9371
SELECT DISTINCT col1 / - - 77 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT - - col0 * - 65 AS col0 FROM tab0 AS cor0
----
-5655
-6305
-975

onlyif mysql # aggregate syntax: 
query II rowsort label-9373
SELECT - COUNT( * ), 77 AS col0 FROM tab2 AS cor0
----
-3
77

skipif mysql # not compatible
query II rowsort label-9373
SELECT - COUNT ( * ), 77 AS col0 FROM tab2 AS cor0
----
-3
77

query I rowsort
SELECT - col0 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 33 + - col2 + - ( col2 ) FROM tab1
----
-103
-159
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT DISTINCT - COUNT( * ) + 28 FROM tab1 WHERE NOT NULL <= NULL
----
28

skipif mysql # not compatible
query I rowsort label-9376
SELECT DISTINCT - COUNT ( * ) + 28 FROM tab1 WHERE NOT NULL <= NULL
----
28

query II rowsort
SELECT + ( - 95 ), - col1 - - 29 - col1 * + 42 AS col1 FROM tab0
----
-95
-14
-95
-3454
-95
-874

query I rowsort
SELECT DISTINCT + col0 + + 21 * - - 56 * + col0 * - col1 AS col2 FROM tab1
----
-499715
-5029661
-839613

onlyif mysql # DIV for integer division: 
query I rowsort label-9379
SELECT ALL + 58 DIV - col2 FROM tab0 cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL + 58 / - col2 FROM tab0 cor0
----
-1
-5
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9380
SELECT DISTINCT - col1 DIV + col2 + - col2 AS col1 FROM tab2 AS cor0
----
-25
-41
-59

skipif mysql # not compatible
query I rowsort label-9380
SELECT DISTINCT - col1 / + col2 + - col2 AS col1 FROM tab2 AS cor0
----
-25
-41
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 col1 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT ALL ( 49 ) * + - col1 * + 77 + + col1 + - 40 + - ( + 27 ) + 71 AS col1 FROM tab0 WHERE NOT + - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + - col2 AS col0 FROM tab1 cor0
----
-118
-136
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT ALL - COUNT( * ) - 9 * + COUNT( DISTINCT - col2 ) * + MIN( DISTINCT ( col0 ) ) FROM tab0 AS cor0
----
-408

skipif mysql # not compatible
query I rowsort label-9384
SELECT ALL - COUNT ( * ) - 9 * + COUNT ( DISTINCT - col2 ) * + MIN ( DISTINCT ( col0 ) ) FROM tab0 AS cor0
----
-408

query I rowsort
SELECT DISTINCT - + col0 - - col1 FROM tab2 AS cor0
----
-8
13
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 - 0 + - col2 * - 96, 19 col2 FROM tab2 AS cor0
----
2259
19
3917
19
5635
19

query I rowsort
SELECT DISTINCT - + col2 * + - col2 - - + 13 * 92 AS col0 FROM tab2 AS cor0
----
1725
2796
4560

query I rowsort
SELECT ALL col1 - - col0 + + col2 + + col2 * - 51 AS col2 FROM tab1
----
-2860
-3262
-4735

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT ALL COUNT( DISTINCT + col0 ) * + 35 AS col2 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL COUNT ( DISTINCT + col0 ) * + 35 AS col2 FROM tab0
----
105

query I rowsort
SELECT + ( + AVG ( + col1 ) ) FROM tab0 WHERE NOT col1 + + + 12 NOT BETWEEN - col1 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT + - SUM( + col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9391
SELECT + - SUM ( + col1 ) FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9392
SELECT ALL + CAST( - + col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL + CAST ( - + col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
-14
-47
-5

query II rowsort
SELECT - col1 AS col0, col1 FROM tab0
----
-1
1
-21
21
-81
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9394
SELECT DISTINCT * FROM tab1 WHERE + - ( - CAST( + - 50 AS SIGNED ) ) < - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9394
SELECT DISTINCT * FROM tab1 WHERE + - ( - CAST ( + - 50 AS INTEGER ) ) < - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 88 col1, col0 AS col2 FROM tab2 AS cor0
----
-88
46
-88
64
-88
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9397
SELECT DISTINCT + + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT + + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9398
SELECT + + COUNT( * ), + COUNT( ALL - + col0 ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9398
SELECT + + COUNT ( * ), + COUNT ( ALL - + col0 ) FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT + 2 AS col1 FROM tab2 AS cor0 WHERE NOT 62 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT DISTINCT - MAX( DISTINCT - 39 ) FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-9401
SELECT DISTINCT - MAX ( DISTINCT - 39 ) FROM tab2 AS cor0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-9402
SELECT - + col0 DIV - ( - col1 ) FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9402
SELECT - + col0 / - ( - col1 ) FROM tab2 AS cor0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL = col1 / + + col2
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT + COUNT( * ) + 69 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-9405
SELECT + COUNT ( * ) + 69 FROM tab2
----
72

query I rowsort
SELECT ALL + col2 + + - 77 FROM tab1
----
-18
-9
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT DISTINCT COUNT( * ) + + + MAX( DISTINCT col0 ) AS col1 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-9407
SELECT DISTINCT COUNT ( * ) + + + MAX ( DISTINCT col0 ) AS col1 FROM tab1
----
94

query I rowsort
SELECT ALL - ( - + 41 ) + col0 FROM tab1
----
126
132
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - ( 30 ) col2 FROM tab2
----
-105
-76
-94

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 NOT BETWEEN + - col1 * - col1 AND - 82 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 + + col1 - - 41 * - 75 * col0 FROM tab0
----
-267494
-298175
-45997

query I rowsort
SELECT DISTINCT - - 15 AS col2 FROM tab1 AS cor0
----
15

query I rowsort
SELECT ALL + + 57 + 57 * - + 59 AS col1 FROM tab1 AS cor0
----
-3306
-3306
-3306

query I rowsort
SELECT + 91 * - - col0 AS col0 FROM tab2 AS cor0
----
4186
5824
6825

query I rowsort
SELECT DISTINCT - ( - + col2 ) * col0 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT DISTINCT + col0 - + 16 FROM tab0 AS cor0
----
-1
71
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9417
SELECT CAST( - + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9417
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9418
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 61 * - 96 FROM tab0
----
-5856

query I rowsort
SELECT col1 - - col2 + 90 AS col1 FROM tab1
----
154
200
205

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 52 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT + ( + 18 ) + - + COUNT( * ) AS col0 FROM tab2 cor0
----
15

skipif mysql # not compatible
query I rowsort label-9422
SELECT + ( + 18 ) + - + COUNT ( * ) AS col0 FROM tab2 cor0
----
15

query I rowsort
SELECT + + col2 * - + col2 * - col0 * - - col0 + + - col0 + + 43 AS col2 FROM tab0 AS cor0
----
497053
756856
92217555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9424
SELECT - CAST( + col2 AS SIGNED ) + - ( col2 ) * - - col0 FROM tab0 AS cor0
----
-752
-880
-9702

skipif mysql # not compatible
query I rowsort label-9424
SELECT - CAST ( + col2 AS INTEGER ) + - ( col2 ) * - - col0 FROM tab0 AS cor0
----
-752
-880
-9702

query I rowsort
SELECT DISTINCT col2 + - 43 FROM tab2 AS cor0
----
-20
-3
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9426
SELECT ALL + col2 - - 10 + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL + col2 - - 10 + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9427
SELECT ALL - COUNT( * ) + - + COUNT( * ) AS col2, COUNT( ALL - col0 ) FROM tab2 AS cor0
----
-6
3

skipif mysql # not compatible
query II rowsort label-9427
SELECT ALL - COUNT ( * ) + - + COUNT ( * ) AS col2, COUNT ( ALL - col0 ) FROM tab2 AS cor0
----
-6
3

query I rowsort
SELECT DISTINCT 47 - + col2 + + - col1 AS col1 FROM tab1 cor0
----
-17
-63
-68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 83 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT ALL - COUNT( - 6 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL - COUNT ( - 6 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9431
SELECT DISTINCT col1 * CAST( ( col1 ) AS SIGNED ) AS col2, - 71 + - 98 FROM tab2
----
2601
-169
4489
-169
5929
-169

skipif mysql # not compatible
query II rowsort label-9431
SELECT DISTINCT col1 * CAST ( ( col1 ) AS INTEGER ) AS col2, - 71 + - 98 FROM tab2
----
2601
-169
4489
-169
5929
-169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9432
SELECT - CAST( NULL AS SIGNED ) * MIN( ALL - + col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9432
SELECT - CAST ( NULL AS INTEGER ) * MIN ( ALL - + col1 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9433
SELECT - CAST( - - col1 AS SIGNED ) AS col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9433
SELECT - CAST ( - - col1 AS INTEGER ) AS col1 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT ALL - + ( COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL - + ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + 20 AS col1, 62 FROM tab0 AS cor0
----
20
62

query I rowsort
SELECT DISTINCT - 43 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT ALL - - COUNT( DISTINCT - + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL - - COUNT ( DISTINCT - + col1 ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 - + 82 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 38 + + - 13 FROM tab2 AS cor0
----
25
25
25

query I rowsort
SELECT ( - + ( + col1 ) ) * - col2 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT + 28 * + - col0 AS col2 FROM tab0 AS cor0
----
-2436
-2716
-420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9442
SELECT DISTINCT COUNT( + CAST( - col0 AS SIGNED ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT COUNT ( + CAST ( - col0 AS INTEGER ) ) AS col2 FROM tab1
----
3

query II rowsort
SELECT + col0, col1 * + col0 FROM tab0
----
15
1215
87
1827
97
97

query I rowsort
SELECT DISTINCT + ( + col2 ) * + col1 AS col0 FROM tab0
----
210
3807
99

query I rowsort
SELECT ALL 53 + + col1 FROM tab2
----
104
120
130

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT ALL + COUNT( * ) * + 79 FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL + COUNT ( * ) * + 79 FROM tab0
----
237

query I rowsort
SELECT - + 81 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 + - + 49 - - col2 FROM tab0 AS cor0
----
-18
51
79

query I rowsort
SELECT + 50 + - 46 * 4 FROM tab1 AS cor0
----
-134
-134
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT - 57 + - 70 + + COUNT( * ) AS col0 FROM tab0
----
-124

skipif mysql # not compatible
query I rowsort label-9450
SELECT - 57 + - 70 + + COUNT ( * ) AS col0 FROM tab0
----
-124

query I rowsort
SELECT DISTINCT col1 * + col0 + - - col0 FROM tab0
----
1230
1914
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 55 AS col1, + 66 col2 FROM tab2
----
-55
66
-55
66
-55
66

query I rowsort
SELECT - ( - - col0 ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9454
SELECT DISTINCT CAST( - 80 AS SIGNED ) col1, 93 FROM tab0 AS cor0
----
-80
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9454
SELECT DISTINCT CAST ( - 80 AS INTEGER ) col1, 93 FROM tab0 AS cor0
----
-80
93

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT - + 38 * - col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT + MIN( ALL + + 95 ) FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-9456
SELECT + MIN ( ALL + + 95 ) FROM tab2 AS cor0
----
95

query I rowsort
SELECT - - col2 FROM tab2 WHERE NOT + col2 IS NULL
----
23
40
58

query I rowsort
SELECT ALL col1 * + 46 AS col0 FROM tab0
----
3726
46
966

onlyif mysql # aggregate syntax: 
query II rowsort label-9459
SELECT - COUNT( * ) * + + COUNT( * ) AS col0, COUNT( * ) col0 FROM tab1
----
-9
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9459
SELECT - COUNT ( * ) * + + COUNT ( * ) AS col0, COUNT ( * ) col0 FROM tab1
----
-9
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9460
SELECT - col0 DIV - col2 + - - 89 * + col2 FROM tab0 AS cor0
----
4183
8811
898

skipif mysql # not compatible
query I rowsort label-9460
SELECT - col0 / - col2 + - - 89 * + col2 FROM tab0 AS cor0
----
4183
8811
898

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * + + col0, + 32 + + 6 col2 FROM tab0 cor0
----
225
38
7569
38
9409
38

query II rowsort
SELECT + + ( - 91 ), col2 * - col1 + + + 40 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL AND NOT ( NOT ( NOT ( NOT ( NOT col0 + col1 > NULL ) ) ) )
----

query I rowsort
SELECT ALL + 43 AS col0 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT + 81 AS col0 FROM tab2 AS cor0 WHERE col1 >= 31
----
81
81
81

query I rowsort
SELECT - - 81 + - col1 FROM tab0 AS cor0 WHERE NULL <= col0 * 45 - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9466
SELECT + col0 AS col0, - ( - + 93 ) - + + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-9466
SELECT + col0 AS col0, - ( - + 93 ) - + + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT + 85 + - - col0 AS col1 FROM tab2 AS cor0
----
131
149
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9468
SELECT col2 + + + CAST( - col0 AS SIGNED ) - ( + + col2 ) AS col1 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9468
SELECT col2 + + + CAST ( - col0 AS INTEGER ) - ( + + col2 ) AS col1 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT DISTINCT + + MAX( DISTINCT - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9469
SELECT DISTINCT + + MAX ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 84 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 22 + - - 51 AS col1 FROM tab2
----
73
73
73

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 NOT BETWEEN - col0 AND + - 67
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 81 + col1 FROM tab2
----
132
148
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 9 / - + ( col0 ), - 82 col2 FROM tab2 WHERE - col0 = col1
----

query I rowsort
SELECT - + ( + 50 ) AS col1 FROM tab0 AS cor0
----
-50
-50
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9476
SELECT ALL + 89 - CAST( + col2 AS SIGNED ) col1 FROM tab1 cor0
----
-7
21
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9476
SELECT ALL + 89 - CAST ( + col2 AS INTEGER ) col1 FROM tab1 cor0
----
-7
21
30

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col1 + + - 84 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 57 * + col1 * - - 50 FROM tab0
----
230850
2850
59850

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9481
SELECT DISTINCT + 53 DIV + - COUNT( * ) FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT + 53 / + - COUNT ( * ) FROM tab1 AS cor0
----
-17

query I rowsort
SELECT DISTINCT + ( - + 80 ) FROM tab2 AS cor0 WHERE NOT - col1 IN ( col0, col0 - - col2 + - col0 * 12 / 33 - - col1 * + col1 + + col2 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT DISTINCT + + COUNT( 50 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9483
SELECT DISTINCT + + COUNT ( 50 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col1 * + 6 AS col1 FROM tab1 AS cor0
----
-282
-30
-84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9485
SELECT ALL 79 * - - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL 79 * - - CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9486
SELECT ALL + CAST( NULL AS SIGNED ) * + AVG ( DISTINCT + - CAST( NULL AS DECIMAL ) ) * + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9486
SELECT ALL + CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT + - CAST ( NULL AS REAL ) ) * + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 * 92 + 13 AS col1 FROM tab0 AS cor0
----
4337
9121
933

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT DISTINCT + MIN( 24 ) FROM tab1 AS cor0 WHERE - col1 - 77 IS NOT NULL
----
24

skipif mysql # not compatible
query I rowsort label-9488
SELECT DISTINCT + MIN ( 24 ) FROM tab1 AS cor0 WHERE - col1 - 77 IS NOT NULL
----
24

onlyif mysql # DIV for integer division: 
query II rowsort label-9489
SELECT ALL + col0 DIV + - col0 AS col1, - col1 col2 FROM tab1
----
-1
-14
-1
-47
-1
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9489
SELECT ALL + col0 / + - col0 AS col1, - col1 col2 FROM tab1
----
-1
-14
-1
-47
-1
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-9490
SELECT + 15 col2, COUNT( * ) FROM tab0
----
15
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9490
SELECT + 15 col2, COUNT ( * ) FROM tab0
----
15
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT ALL + + COUNT( * ) + + 65 * + 68 AS col0 FROM tab1 WHERE NOT - - 16 * + col0 IS NULL
----
4423

skipif mysql # not compatible
query I rowsort label-9491
SELECT ALL + + COUNT ( * ) + + 65 * + 68 AS col0 FROM tab1 WHERE NOT - - 16 * + col0 IS NULL
----
4423

onlyif mysql # aggregate syntax: 
query II rowsort label-9492
SELECT MAX( ALL + - 46 ) AS col2, 49 AS col2 FROM tab1
----
-46
49

skipif mysql # not compatible
query II rowsort label-9492
SELECT MAX ( ALL + - 46 ) AS col2, 49 AS col2 FROM tab1
----
-46
49

query II rowsort
SELECT DISTINCT 44, - col2 AS col0 FROM tab1 WHERE NOT NULL >= - - col0 / - - col0 + + + 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT ALL + COUNT( * ) * + + 38 AS col0 FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL + COUNT ( * ) * + + 38 AS col0 FROM tab1
----
114

query I rowsort
SELECT ALL + ( + - 74 ) + - + 2 AS col2 FROM tab1
----
-76
-76
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9496
SELECT DISTINCT - 89 + - CAST( NULL AS DECIMAL ) * - col0 AS col1, ( - col0 ) AS col2 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-9496
SELECT DISTINCT - 89 + - CAST ( NULL AS REAL ) * - col0 AS col1, ( - col0 ) AS col2 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 + - col1 < + 52
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9498
SELECT DISTINCT 74 + + + 38 + - col2 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9498
SELECT DISTINCT 74 + + + 38 + - col2 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9499
SELECT DISTINCT + + CAST( - 46 AS DECIMAL ) * - 80 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9499
SELECT DISTINCT + + CAST ( - 46 AS REAL ) * - 80 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT SUM( + 83 ) col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9500
SELECT SUM ( + 83 ) col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + col2 * + col0 + col1 * + col1 FROM tab1 AS cor0
----
5040
5092
8397

query I rowsort
SELECT DISTINCT + col1 * - col2 - - + col0 AS col1 FROM tab2 AS cor0
----
-1127
-3016
-3811

onlyif mysql # aggregate syntax: 
query II rowsort label-9503
SELECT ALL - COUNT( DISTINCT - 88 ) AS col1, - COUNT( ALL - col1 ) AS col2 FROM tab1
----
-1
-3

skipif mysql # not compatible
query II rowsort label-9503
SELECT ALL - COUNT ( DISTINCT - 88 ) AS col1, - COUNT ( ALL - col1 ) AS col2 FROM tab1
----
-1
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9504
SELECT - 66 DIV col2 * 1 AS col1 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-9504
SELECT - 66 / col2 * 1 AS col1 FROM tab0 AS cor0
----
-1
-6
0

query I rowsort
SELECT - 70 * - col0 FROM tab2 AS cor0
----
3220
4480
5250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9506
SELECT + ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9506
SELECT + ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 <> col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * - col2 * - - 14 AS col1 FROM tab1 AS cor0
----
-129024
-48734
-64736

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + - col2 * + ( - + 62 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 BETWEEN + ( + + col2 ) + + col1 AND - - col1 * - 28 * col0 + + - ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9511
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 AND - CAST( - col0 AS SIGNED ) - - col1
----

skipif mysql # not compatible
query III rowsort label-9511
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 AND - CAST ( - col0 AS INTEGER ) - - col1
----

query I rowsort
SELECT - - col2 * + col2 + - col1 AS col2 FROM tab2 AS cor0
----
1523
3297
478

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT ALL MIN( ALL + 11 ) FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL MIN ( ALL + 11 ) FROM tab2 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-9514
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 66 <> + ( - ( col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 + col0, + 51 col0 FROM tab1
----
-45
51
23
51
26
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9517
SELECT DISTINCT - COUNT( * ) + + - 51 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9517
SELECT DISTINCT - COUNT ( * ) + + - 51 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 * - col1 + + col2 AS col0 FROM tab2 AS cor0
----
-2323
-4888
-4967

query I rowsort
SELECT col0 + col1 + + col1 AS col1 FROM tab2 AS cor0
----
148
209
218

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9520
SELECT 40 + - 42 + - + SUM( ALL + ( - + ( - + col1 ) ) ) + - COUNT( DISTINCT - col2 ) DIV - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-104

skipif mysql # not compatible
query I rowsort label-9520
SELECT 40 + - 42 + - + SUM ( ALL + ( - + ( - + col1 ) ) ) + - COUNT ( DISTINCT - col2 ) / - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-104

query I rowsort
SELECT DISTINCT + - col0 + + + 21 * - col1 FROM tab1 AS cor0
----
-1078
-190
-345

query I rowsort
SELECT ALL 56 - 28 AS col0 FROM tab0 cor0
----
28
28
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9523
SELECT DISTINCT + + CAST( - - MIN( - + 48 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-9523
SELECT DISTINCT + + CAST ( - - MIN ( - + 48 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT DISTINCT - COUNT( * ) * + - 21 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-9524
SELECT DISTINCT - COUNT ( * ) * + - 21 FROM tab1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT ( - col1 IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT ( - col1 IS NULL )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9526
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9527
SELECT DISTINCT - + col0 FROM tab1 WHERE NOT - + CAST( 91 AS SIGNED ) IS NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9527
SELECT DISTINCT - + col0 FROM tab1 WHERE NOT - + CAST ( 91 AS INTEGER ) IS NULL
----
-51
-85
-91

query II rowsort
SELECT - col2 AS col1, col1 AS col1 FROM tab1
----
-59
5
-68
47
-96
14

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 4 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9530
SELECT CAST( + AVG ( DISTINCT - col2 ) AS SIGNED ) FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-9530
SELECT CAST ( + AVG ( DISTINCT - col2 ) AS INTEGER ) FROM tab2
----
-40

query II rowsort
SELECT ALL col1, 58 + + - 49 FROM tab2
----
51
9
67
9
77
9

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9533
SELECT DISTINCT - col2 * + - CAST( NULL AS SIGNED ) * - col0 / + ( + col0 ) + - 59 / + 9 * col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9533
SELECT DISTINCT - col2 * + - CAST ( NULL AS INTEGER ) * - col0 / + ( + col0 ) + - 59 / + 9 * col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + ( 92 ) AS col1 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT + 87 FROM tab2 AS cor0 WHERE NOT + 31 - 79 IS NULL
----
87
87
87

onlyif mysql # aggregate syntax: 
query II rowsort label-9536
SELECT DISTINCT 37 AS col2, + COUNT( * ) col1 FROM tab2 AS cor0
----
37
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9536
SELECT DISTINCT 37 AS col2, + COUNT ( * ) col1 FROM tab2 AS cor0
----
37
3

query I rowsort
SELECT DISTINCT - + AVG ( + col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - col2 + + col2 AND NULL
----
NULL

query II rowsort
SELECT ALL + + col0, + 86 AS col1 FROM tab2 AS cor0
----
46
86
64
86
75
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 54 ) col2 FROM tab1 AS cor0
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + - col2 ) col1 FROM tab1
----
59
68
96

query I rowsort
SELECT 21 * + + col2 AS col1 FROM tab1
----
1239
1428
2016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9542
SELECT CAST( - + MAX( + 81 ) AS SIGNED ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-9542
SELECT CAST ( - + MAX ( + 81 ) AS INTEGER ) FROM tab0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9543
SELECT DISTINCT - col0 FROM tab0 WHERE col2 < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9543
SELECT DISTINCT - col0 FROM tab0 WHERE col2 < - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 34 * + + ( col2 ) FROM tab2
----
1360
1972
782

query I rowsort
SELECT ( + ( - col1 ) ) AS col2 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9546
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 47 + - ( 90 ) + - + 1 + col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9546
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 47 + - ( 90 ) + - + 1 + col1 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9547
SELECT ALL + ( col2 ) + CAST( NULL AS SIGNED ) - + col2 * - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9547
SELECT ALL + ( col2 ) + CAST ( NULL AS INTEGER ) - + col2 * - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + 82 - col1 AS col1 FROM tab1
----
119
126
162

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT 43 - + + COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9549
SELECT 43 - + + COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
34

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 27 * - 99 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT - COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-9551
SELECT - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

query II rowsort
SELECT + + col0 AS col1, - 20 AS col2 FROM tab2 cor0
----
46
-20
64
-20
75
-20

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( - 22 ) < col2 + + 50
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 + 58 + - col1 FROM tab2 AS cor0
----
58
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9555
SELECT DISTINCT col0 + + + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0 WHERE 69 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9555
SELECT DISTINCT col0 + + + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0 WHERE 69 IS NULL
----

query I rowsort
SELECT ALL 23 - + col0 * + - col2 FROM tab1 AS cor0
----
4919
5038
6211

onlyif mysql # aggregate syntax: 
query II rowsort label-9557
SELECT DISTINCT + 27 * + MAX( DISTINCT col1 ) - + SUM( - 46 ) AS col0, - COUNT( ALL - + 10 ) FROM tab1 AS cor0
----
1407
-3

skipif mysql # not compatible
query II rowsort label-9557
SELECT DISTINCT + 27 * + MAX ( DISTINCT col1 ) - + SUM ( - 46 ) AS col0, - COUNT ( ALL - + 10 ) FROM tab1 AS cor0
----
1407
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9558
SELECT col2 - col1 AS col0, CAST( 73 AS SIGNED ) FROM tab1
----
21
73
54
73
82
73

skipif mysql # not compatible
query II rowsort label-9558
SELECT col2 - col1 AS col0, CAST ( 73 AS INTEGER ) FROM tab1
----
21
73
54
73
82
73

query I rowsort
SELECT ALL - 22 - + - col1 AS col1 FROM tab0
----
-1
-21
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9560
SELECT DISTINCT + 83 DIV - - col2 AS col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-9560
SELECT DISTINCT + 83 / - - col2 AS col1 FROM tab1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT ALL 67 + + COUNT( * ) AS col2 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL 67 + + COUNT ( * ) AS col2 FROM tab1
----
70

query III rowsort
SELECT * FROM tab0 WHERE - - col0 NOT BETWEEN NULL AND col2 * + 60 + - 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT + 85 + MIN( + 21 ) col0 FROM tab1
----
106

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9563
SELECT + 85 + MIN ( + 21 ) col0 FROM tab1
----
106

query II rowsort
SELECT DISTINCT 17 AS col2, + 65 FROM tab0
----
17
65

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * - col1 IS NOT NULL
----

query I rowsort
SELECT - 84 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9567
SELECT - col1 * - 45 * + CAST( - col2 AS SIGNED ) - + - col1 col0 FROM tab0 AS cor0
----
-171234
-4454
-9429

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9567
SELECT - col1 * - 45 * + CAST ( - col2 AS INTEGER ) - + - col1 col0 FROM tab0 AS cor0
----
-171234
-4454
-9429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 * + 59 col0 FROM tab1 AS cor0
----
-118
-118
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-9569
SELECT - 12 DIV ( - ( + 30 ) ) AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9569
SELECT - 12 / ( - ( + 30 ) ) AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 15 * + + col2 FROM tab2 AS cor0
----
345
600
870

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT ALL - COUNT( DISTINCT + col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL - COUNT ( DISTINCT + col0 ) FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT ( + col1 IS NOT NULL ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * + + 62 <> NULL
----

query II rowsort
SELECT ALL + + col0, - 39 FROM tab0 WHERE ( + col0 - + col2 IS NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9575
SELECT + col2 + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9575
SELECT + col2 + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT - 31 + COUNT( * ) col0 FROM tab1
----
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9576
SELECT - 31 + COUNT ( * ) col0 FROM tab1
----
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - - 69 col0 FROM tab0
----
150
70
90

query I rowsort
SELECT - col2 * + + col2 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT ALL - + 61 * + MIN( + col1 ) AS col0 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL - + 61 * + MIN ( + col1 ) AS col0 FROM tab0 AS cor0
----
-61

query I rowsort
SELECT 54 + - col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-4
14
31

query I rowsort
SELECT + 79 + + 48 FROM tab0 WHERE col2 IS NOT NULL
----
127
127
127

onlyif mysql # DIV for integer division: 
query I rowsort label-9582
SELECT DISTINCT col1 DIV + ( 91 ) - col2 AS col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9582
SELECT DISTINCT col1 / + ( 91 ) - col2 AS col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col1 + - 6 AS col0 FROM tab1
----
-11
-20
-53

query III rowsort
SELECT ALL * FROM tab0 WHERE 17 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 14 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT COUNT( * ) * ( COUNT( * ) ) FROM tab2 WHERE + col2 >= ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9586
SELECT COUNT ( * ) * ( COUNT ( * ) ) FROM tab2 WHERE + col2 >= ( col0 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9587
SELECT DISTINCT COUNT( * ) + - 36 DIV 46 AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9587
SELECT DISTINCT COUNT ( * ) + - 36 / 46 AS col0 FROM tab0
----
3

query I rowsort
SELECT + 64 * - 6 AS col1 FROM tab2
----
-384
-384
-384

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT + MAX( ALL col1 ) * + 47 FROM tab0
----
3807

skipif mysql # not compatible
query I rowsort label-9589
SELECT + MAX ( ALL col1 ) * + 47 FROM tab0
----
3807

query I rowsort
SELECT + 53 * col2 FROM tab1
----
3127
3604
5088

query I rowsort
SELECT DISTINCT + 43 * col2 FROM tab1
----
2537
2924
4128

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT ALL + COUNT( DISTINCT col0 ) + COUNT( * ) col0 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9592
SELECT ALL + COUNT ( DISTINCT col0 ) + COUNT ( * ) col0 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT ALL COUNT( DISTINCT + ( - 52 ) ) * - COUNT( * ) AS col1 FROM tab1 WHERE col0 * col2 IN ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9593
SELECT ALL COUNT ( DISTINCT + ( - 52 ) ) * - COUNT ( * ) AS col1 FROM tab1 WHERE col0 * col2 IN ( - col0 )
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( + 85 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 col2 FROM tab2 WHERE NOT ( + 13 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9596
SELECT col2 + + 55 DIV - 26 FROM tab0
----
45
8
97

skipif mysql # not compatible
query I rowsort label-9596
SELECT col2 + + 55 / - 26 FROM tab0
----
45
8
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9598
SELECT ALL - 63 DIV + 51 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL - 63 / + 51 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT - COUNT( * ) + - COUNT( * ) AS col1 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-9599
SELECT - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0
----
-6

query I rowsort
SELECT DISTINCT + 51 * + col2 FROM tab1 WHERE NULL IS NULL
----
3009
3468
4896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9601
SELECT col1 + CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-9601
SELECT col1 + CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT 3 + + 42 * SUM( - col1 ) AS col2 FROM tab1
----
-2769

skipif mysql # not compatible
query I rowsort label-9602
SELECT 3 + + 42 * SUM ( - col1 ) AS col2 FROM tab1
----
-2769

query I rowsort
SELECT ALL - 4 - col2 AS col2 FROM tab1
----
-100
-63
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT - SUM( - col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9604
SELECT - SUM ( - col0 ) FROM tab1
----
227

query I rowsort
SELECT DISTINCT + col2 + - col0 AS col0 FROM tab1
----
-23
-26
45

query I rowsort
SELECT - col0 * - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) < + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 26 + - col1 / - col0 ) NOT BETWEEN col1 + 39 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9608
SELECT ALL SUM( - col2 ) DIV + COUNT( * ) FROM tab0 cor0
----
-52

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL SUM ( - col2 ) / + COUNT ( * ) FROM tab0 cor0
----
-52

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 BETWEEN 28 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT ALL MIN( - 81 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL MIN ( - 81 ) FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT SUM( DISTINCT 88 ) FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-9611
SELECT SUM ( DISTINCT 88 ) FROM tab2 AS cor0
----
88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 / - col2 AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9615
SELECT DISTINCT + COUNT( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9615
SELECT DISTINCT + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT - COUNT( DISTINCT col1 ) + - COUNT( * ) AS col1 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-9616
SELECT - COUNT ( DISTINCT col1 ) + - COUNT ( * ) AS col1 FROM tab2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9617
SELECT ALL + CAST( col2 AS SIGNED ) + ( col0 ) FROM tab1 AS cor0
----
144
147
159

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL + CAST ( col2 AS INTEGER ) + ( col0 ) FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT + col0 NOT IN ( - col2 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 40 > col0 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - col1 * + col1 FROM tab0 cor0
----
1
441
6561

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN col0 AND 34
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9622
SELECT ALL CAST( NULL AS SIGNED ) / 92 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL CAST ( NULL AS INTEGER ) / 92 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> col0 * col2 + col1
----

query I rowsort
SELECT ALL - col1 * - 37 AS col1 FROM tab2 cor0
----
1887
2479
2849

query I rowsort
SELECT DISTINCT - 66 * + col1 + - col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( ( + 21 ) ) NOT BETWEEN col0 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 82 * 23 + - 92 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9626
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 82 * 23 + - 92 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT ALL + - MIN( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL + - MIN ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9629
SELECT - col0 + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 WHERE ( NULL ) > + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9629
SELECT - col0 + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 WHERE ( NULL ) > + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + col1 * 90 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 42 col1 FROM tab0 cor0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT ALL SUM( - 5 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL SUM ( - 5 ) FROM tab0
----
-15

query I rowsort
SELECT DISTINCT - 52 AS col2 FROM tab1 WHERE NULL NOT BETWEEN ( + 71 + col0 ) AND col1 + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9634
SELECT 85 DIV - 36 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-9634
SELECT 85 / - 36 FROM tab0
----
-2
-2
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9635
SELECT 65 - - SUM( ALL + CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9635
SELECT 65 - - SUM ( ALL + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT ALL + col1 + 26 FROM tab2
----
103
77
93

query I rowsort
SELECT DISTINCT + 27 + + - 22 + + col2 * col0 AS col0 FROM tab0
----
710
875
9608

query I rowsort
SELECT DISTINCT + 45 + - col2 FROM tab2 AS cor0
----
-13
22
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 74 + - 67 col2 FROM tab1 cor0
----
-141
-141
-141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9640
SELECT + 74 * - CAST( - col1 AS SIGNED ) AS col0 FROM tab1
----
1036
3478
370

skipif mysql # not compatible
query I rowsort label-9640
SELECT + 74 * - CAST ( - col1 AS INTEGER ) AS col0 FROM tab1
----
1036
3478
370

query I rowsort
SELECT + ( + ( + col1 ) ) + col0 FROM tab2 AS cor0 WHERE ( col0 ) >= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9642
SELECT DISTINCT 79 - + CAST( - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-9642
SELECT DISTINCT 79 - + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT + COUNT( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9643
SELECT + COUNT ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9644
SELECT 59, COUNT( * ) AS col1 FROM tab0 AS cor0
----
59
3

skipif mysql # not compatible
query II rowsort label-9644
SELECT 59, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
59
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT ALL + + 39 * COUNT( - 36 ) AS col2 FROM tab0 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-9645
SELECT ALL + + 39 * COUNT ( - 36 ) AS col2 FROM tab0 AS cor0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT ALL + + 40 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL + + 40 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
120

query I rowsort
SELECT DISTINCT 64 * + col0 AS col2 FROM tab0 AS cor0
----
5568
6208
960

query II rowsort
SELECT - col1, 79 AS col1 FROM tab0 AS cor0
----
-1
79
-21
79
-81
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT DISTINCT + COUNT( * ) col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9649
SELECT DISTINCT + COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT 69 * COUNT( * ) AS col1 FROM tab0 WHERE NOT ( col2 ) IS NULL
----
207

skipif mysql # not compatible
query I rowsort label-9650
SELECT 69 * COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( col2 ) IS NULL
----
207

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( col0 * col2 )
----

query I rowsort
SELECT col1 * + 76 FROM tab0
----
1596
6156
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT ALL + COUNT( * ) + COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL + COUNT ( * ) + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
6

query I rowsort
SELECT col0 FROM tab2 WHERE NOT col0 <> ( - - col0 )
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 <= - col0 / col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9656
SELECT DISTINCT + + MIN( 51 ) AS col1, + 45 AS col1 FROM tab1 cor0
----
51
45

skipif mysql # not compatible
query II rowsort label-9656
SELECT DISTINCT + + MIN ( 51 ) AS col1, + 45 AS col1 FROM tab1 cor0
----
51
45

onlyif mysql # DIV for integer division: 
query I rowsort label-9657
SELECT ALL col1 DIV - col0 + - col0 AS col2 FROM tab2 AS cor0
----
-47
-65
-75

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL col1 / - col0 + - col0 AS col2 FROM tab2 AS cor0
----
-47
-65
-75

query I rowsort
SELECT - col0 * + + col2 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9659
SELECT col2 * - - col2 + + CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3540
4692
9312

skipif mysql # not compatible
query I rowsort label-9659
SELECT col2 * - - col2 + + CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3540
4692
9312

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT DISTINCT - COUNT( * ) col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9661
SELECT DISTINCT - COUNT ( * ) col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9662
SELECT ALL + COUNT( * ) + 73 + - CAST( NULL AS SIGNED ) / 52 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9662
SELECT ALL + COUNT ( * ) + 73 + - CAST ( NULL AS INTEGER ) / 52 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - ( - + col0 ) ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col2 * + 81 AS col0 FROM tab0 AS cor0
----
-3807
-8019
-810

onlyif mysql # DIV for integer division: 
query I rowsort label-9666
SELECT + ( + ( col2 ) ) DIV + col1 - + col0 + col1 col2 FROM tab0 cor0
----
-66
3
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9666
SELECT + ( + ( col2 ) ) / + col1 - + col0 + col1 col2 FROM tab0 cor0
----
-66
3
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9667
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( + 31 AS SIGNED ) > - col0
----

skipif mysql # not compatible
query III rowsort label-9667
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( + 31 AS INTEGER ) > - col0
----

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN ( NULL ) AND ( 21 )
----
15
97

query I rowsort
SELECT - - col2 * - 19 AS col1 FROM tab1 AS cor0
----
-1121
-1292
-1824

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - - 75 * - col2 + - 92 - col2 < NULL AND NOT + col2 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 3 IS NULL
----

query II rowsort
SELECT - col2 + - + col1 * - 85, 20 AS col0 FROM tab0 AS cor0
----
-14
20
1775
20
6838
20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9673
SELECT ALL * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) IN ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-9673
SELECT ALL * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) IN ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 63 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 17 AS col2, 25 AS col2 FROM tab0
----
17
25
17
25
17
25

query I rowsort
SELECT ALL col1 + - - col2 FROM tab0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9677
SELECT + col2 AS col0 FROM tab0 WHERE ( + - ( + - 11 ) + col0 ) BETWEEN CAST( NULL AS SIGNED ) AND + col1
----

skipif mysql # not compatible
query I rowsort label-9677
SELECT + col2 AS col0 FROM tab0 WHERE ( + - ( + - 11 ) + col0 ) BETWEEN CAST ( NULL AS INTEGER ) AND + col1
----

query I rowsort
SELECT col1 * - 17 + - col0 AS col1 FROM tab0
----
-114
-1392
-444

onlyif mysql # DIV for integer division: 
query I rowsort label-9679
SELECT ALL - col1 - col0 DIV + 52 FROM tab2 AS cor0
----
-51
-68
-78

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL - col1 - col0 / + 52 FROM tab2 AS cor0
----
-51
-68
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT ALL - + MIN( 46 ) + + 4 AS col0 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL - + MIN ( 46 ) + + 4 AS col0 FROM tab2 AS cor0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9681
SELECT + + ( + col0 ) FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) * - ( - col0 ) - 32 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9681
SELECT + + ( + col0 ) FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - ( - col0 ) - 32 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 * + 94 NOT IN ( - col2 + - - col0 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( 53 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9684
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IN ( + col2 - - + ( CAST( NULL AS SIGNED ) ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-9684
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IN ( + col2 - - + ( CAST ( NULL AS INTEGER ) ) ) )
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 * 33 + col0, col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NOT - 56 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - col1 ) * col2 FROM tab2 AS cor0 WHERE NOT ( 52 + - col1 / - ( + col2 ) ) IS NOT NULL
----

query II rowsort
SELECT ALL - ( + + col0 ) AS col0, col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( - 62, + col0 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 55 * - col0 * - + col1 + + 55 col1 FROM tab2 AS cor0
----
-128975
-270985
-276320

query I rowsort
SELECT + ( + ( - 4 ) ) FROM tab2 cor0
----
-4
-4
-4

query I rowsort
SELECT ALL + col1 * + col2 - + 77 AS col2 FROM tab1 cor0
----
1267
218
3119

query I rowsort
SELECT DISTINCT 73 FROM tab0 AS cor0 WHERE 41 - 3 IS NOT NULL
----
73

query II rowsort
SELECT ALL - + col0 AS col1, + col0 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT + COUNT( + - ( - 4 ) ) * + - COUNT( - 56 ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9695
SELECT + COUNT ( + - ( - 4 ) ) * + - COUNT ( - 56 ) AS col1 FROM tab2
----
-9

query I rowsort
SELECT col1 * + + col0 AS col0 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9697
SELECT ALL CAST( NULL AS DECIMAL ) * col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL CAST ( NULL AS REAL ) * col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 23 * - col0 FROM tab0
----
-2001
-2231
-345

query I rowsort
SELECT DISTINCT - col1 * 28 AS col1 FROM tab0
----
-2268
-28
-588

query I rowsort
SELECT 22 * 47 AS col1 FROM tab2
----
1034
1034
1034

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9701
SELECT DISTINCT - + 89 DIV - - CAST( + - col0 AS SIGNED ) FROM tab1 AS cor0 WHERE + 49 IS NOT NULL
----
0
1

skipif mysql # not compatible
query I rowsort label-9701
SELECT DISTINCT - + 89 / - - CAST ( + - col0 AS INTEGER ) FROM tab1 AS cor0 WHERE + 49 IS NOT NULL
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 col0 FROM tab1, tab1 cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT COUNT( DISTINCT - + 41 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9703
SELECT COUNT ( DISTINCT - + 41 ) AS col1 FROM tab1
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col1 AND ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 * 26 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 51 + 77 + - + col1 + - 83 * - col2 FROM tab2 cor0
----
1884
3269
4773

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9707
SELECT + col2 * ( - - col1 ) DIV - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9707
SELECT + col2 * ( - - col1 ) / - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 82 + 27 IS NULL
----

query I rowsort
SELECT + ( - + col0 ) * 85 AS col1 FROM tab0 cor0
----
-1275
-7395
-8245

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + + col1 col2, - col1 AS col1 FROM tab2 AS cor0
----
2346
-51
4928
-77
5025
-67

query I rowsort
SELECT DISTINCT + + 7 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 * + 8 NOT IN ( - col0, - 95 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 60 + col2 * 78 IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( + 87 ) FROM tab0 AS cor0
----
87
87
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9714
SELECT ALL + 38 + - col0 / col2 + - col2 - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL + 38 + - col0 / col2 + - col2 - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9715
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) + - 54 col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9715
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) + - 54 col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 col1 FROM tab1
----
82
82
82

query III rowsort
SELECT * FROM tab1 WHERE NULL <= - - col1
----

query II rowsort
SELECT + 9 AS col0, col0 FROM tab2
----
9
46
9
64
9
75

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND 20
----

query I rowsort
SELECT DISTINCT col1 * - - ( - - 39 ) * - + col2 AS col2 FROM tab0
----
-148473
-3861
-8190

query I rowsort
SELECT DISTINCT col0 + - 83 AS col0 FROM tab2
----
-19
-37
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-9722
SELECT DISTINCT 35 DIV 7 + - col1 + - + col2 FROM tab2
----
-112
-120
-69

skipif mysql # not compatible
query I rowsort label-9722
SELECT DISTINCT 35 / 7 + - col1 + - + col2 FROM tab2
----
-112
-120
-69

query I rowsort
SELECT DISTINCT - col2 + ( - ( - ( - 71 ) ) ) FROM tab1
----
-130
-139
-167

query I rowsort
SELECT DISTINCT + 7 * - - col2 * - + col1 + + ( + - col0 ) + - col1 + - - 17 AS col1 FROM tab2
----
-21684
-27327
-8291

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9725
SELECT ALL + col1 / + col0 * CAST( - col2 AS SIGNED ) + + + CAST( NULL AS SIGNED ), col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-9725
SELECT ALL + col1 / + col0 * CAST ( - col2 AS INTEGER ) + + + CAST ( NULL AS INTEGER ), col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 + - col2 + - col1 NOT BETWEEN ( - 99 + + 79 * + col2 * + + col0 ) AND 47 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9727
SELECT + col0 * - CAST( - col0 AS DECIMAL ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9727
SELECT + col0 * - CAST ( - col0 AS REAL ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) * - + col0 - - 26 col1 FROM tab0 AS cor0
----
-679
-844
-9577

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9729
SELECT - + 34 * - - 24 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9729
SELECT - + 34 * - - 24 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
14
47
5

query I rowsort
SELECT 78 + + col0 AS col2 FROM tab0 AS cor0
----
165
175
93

query I rowsort
SELECT 12 * + 24 FROM tab1
----
288
288
288

onlyif mysql # aggregate syntax: 
query II rowsort label-9733
SELECT DISTINCT SUM( - 25 ) AS col0, + MAX( DISTINCT - 1 ) col1 FROM tab2
----
-75
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9733
SELECT DISTINCT SUM ( - 25 ) AS col0, + MAX ( DISTINCT - 1 ) col1 FROM tab2
----
-75
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + ( 98 )
----

query I rowsort
SELECT - + 81 AS col2 FROM tab1 WHERE NOT + col2 > + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 BETWEEN - col0 AND ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 18 * - - 2 AS col1 FROM tab2 AS cor0
----
36
36
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9738
SELECT + CAST( + - 46 AS SIGNED ) AS col2, 90 * - - col0 FROM tab1 AS cor0
----
-46
4590
-46
7650
-46
8190

skipif mysql # not compatible
query II rowsort label-9738
SELECT + CAST ( + - 46 AS INTEGER ) AS col2, 90 * - - col0 FROM tab1 AS cor0
----
-46
4590
-46
7650
-46
8190

query I rowsort
SELECT ALL + ( + ( - - col1 ) ) FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT DISTINCT + COUNT( * ) * + 83 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-9740
SELECT DISTINCT + COUNT ( * ) * + 83 FROM tab2
----
249

query I rowsort
SELECT col2 + col0 + - col1 FROM tab2
----
18
27
66

query I rowsort
SELECT ALL + 64 * col0 AS col0 FROM tab1 cor0 WHERE NOT ( + col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9743
SELECT col2 DIV - + col2 + - col1 * col0 + + + col1 AS col1 FROM tab0 AS cor0
----
-1135
-1807
-97

skipif mysql # not compatible
query I rowsort label-9743
SELECT col2 / - + col2 + - col1 * col0 + + + col1 AS col1 FROM tab0 AS cor0
----
-1135
-1807
-97

query II rowsort
SELECT ALL + 55 AS col2, col1 FROM tab2
----
55
51
55
67
55
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - + col0 col2 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT + 54 * + + 20 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4852c8ab374dbd8e2669c30ca30e2f80

query I rowsort
SELECT DISTINCT ( 50 ) + - - col2 AS col0 FROM tab0
----
149
60
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9748
SELECT ALL - CAST( COUNT( * ) AS SIGNED ), 7 AS col2 FROM tab1 WHERE + ( + col2 ) IS NOT NULL
----
-3
7

skipif mysql # not compatible
query II rowsort label-9748
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ), 7 AS col2 FROM tab1 WHERE + ( + col2 ) IS NOT NULL
----
-3
7

query I rowsort
SELECT DISTINCT + col0 + 73 AS col2 FROM tab1 AS cor0
----
124
158
164

onlyif mysql # aggregate syntax: 
query II rowsort label-9750
SELECT DISTINCT + 23 AS col0, - MIN( DISTINCT + ( + col1 ) ) FROM tab0 AS cor0
----
23
-1

skipif mysql # not compatible
query II rowsort label-9750
SELECT DISTINCT + 23 AS col0, - MIN ( DISTINCT + ( + col1 ) ) FROM tab0 AS cor0
----
23
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9751
SELECT - 41 / + CAST( NULL AS SIGNED ) * 43 * COUNT( * ) + + 31 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9751
SELECT - 41 / + CAST ( NULL AS INTEGER ) * 43 * COUNT ( * ) + + 31 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 + + col2 AS col1 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
118
136
192

query II rowsort
SELECT ALL - 40, + col0 FROM tab2 AS cor0
----
-40
46
-40
64
-40
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT DISTINCT 12 * - COUNT( 15 ) col1 FROM tab2
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9754
SELECT DISTINCT 12 * - COUNT ( 15 ) col1 FROM tab2
----
-36

query I rowsort
SELECT + ( - 42 ) + + 4 FROM tab0
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9756
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL 57 + + 24 * ( + col2 ) AS col1 FROM tab1
----
1473
1689
2361

onlyif mysql # DIV for integer division: 
query I rowsort label-9758
SELECT ALL col2 DIV + 7 AS col1 FROM tab1
----
13
8
9

skipif mysql # not compatible
query I rowsort label-9758
SELECT ALL col2 / + 7 AS col1 FROM tab1
----
13
8
9

query III rowsort
SELECT * FROM tab1 WHERE - col1 * + ( - 70 ) / + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 + - col0 IS NOT NULL
----

query II rowsort
SELECT ALL col1 + col0 AS col2, col1 FROM tab0
----
108
21
96
81
98
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 * + col0 * + - 20 col2 FROM tab2
----
-42320
-58880
-69000

onlyif mysql # DIV for integer division: 
query I rowsort label-9763
SELECT ALL - col1 + - col2 DIV col2 * + - ( - + col0 ) FROM tab2 AS cor0
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-9763
SELECT ALL - col1 + - col2 / col2 * + - ( - + col0 ) FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9764
SELECT ALL - 11 DIV + 50 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL - 11 / + 50 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT + SUM( + col1 ) col1 FROM tab1
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9765
SELECT + SUM ( + col1 ) col1 FROM tab1
----
66

query I rowsort
SELECT - col2 FROM tab2 cor0 WHERE NOT - col1 * + col0 IS NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col0 + + - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 < 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT - MIN( ALL - ( + - col2 ) ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9769
SELECT - MIN ( ALL - ( + - col2 ) ) FROM tab1 cor0
----
-59

query I rowsort
SELECT ALL + 83 AS col0 FROM tab0 cor0
----
83
83
83

query II rowsort
SELECT - col1 AS col1, + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9772
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 78 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9772
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 78 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT ALL COUNT( DISTINCT + col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9773
SELECT ALL COUNT ( DISTINCT + col2 ) AS col2 FROM tab2
----
3

query II rowsort
SELECT ALL - col2 AS col0, col1 FROM tab1
----
-59
5
-68
47
-96
14

onlyif mysql # DIV for integer division: 
query II rowsort label-9775
SELECT + 3 AS col2, col1 DIV - - col1 + - + col1 - - 85 * col0 * + col1 AS col0 FROM tab2
----
3
199360
3
418804
3
427059

skipif mysql # not compatible
query II rowsort label-9775
SELECT + 3 AS col2, col1 / - - col1 + - + col1 - - 85 * col0 * + col1 AS col0 FROM tab2
----
3
199360
3
418804
3
427059

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, 52 col2 FROM tab0
----
15
52
87
52
97
52

query I rowsort
SELECT - col0 * + 71 AS col2 FROM tab1
----
-3621
-6035
-6461

query I rowsort
SELECT - 50 * col2 AS col2 FROM tab1
----
-2950
-3400
-4800

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9779
SELECT - ( - CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9779
SELECT - ( - CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT ALL MIN( DISTINCT - col1 ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-9780
SELECT ALL MIN ( DISTINCT - col1 ) AS col1 FROM tab0
----
-81

query II rowsort
SELECT DISTINCT col0, 44 FROM tab1
----
51
44
85
44
91
44

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= + 73 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT ALL MAX( ALL col0 ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-9783
SELECT ALL MAX ( ALL col0 ) AS col2 FROM tab0
----
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 * + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <> + col1 * + ( col1 ) * 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT DISTINCT - MIN( ALL + 97 ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9786
SELECT DISTINCT - MIN ( ALL + 97 ) AS col0 FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9787
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT ( + 38 - + col0 * - col2 + + + col2 * - CAST( NULL AS SIGNED ) * col1 ) IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9787
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT ( + 38 - + col0 * - col2 + + + col2 * - CAST ( NULL AS INTEGER ) * col1 ) IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9788
SELECT ALL col2 - - CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL col2 - - CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT + ( + 4 ) AS col1, - col2 FROM tab0 AS cor0
----
4
-10
4
-47
4
-99

query I rowsort
SELECT DISTINCT + + 90 AS col0 FROM tab0 AS cor0
----
90

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT + 69 - COUNT( * ) * + 23 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9792
SELECT + 69 - COUNT ( * ) * + 23 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col0 - + - col2 + - col1 FROM tab2
----
18
27
66

query I rowsort
SELECT col1 - - 8 FROM tab2
----
59
75
85

query I rowsort
SELECT DISTINCT col1 * - 41 FROM tab1
----
-1927
-205
-574

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT - 21 - COUNT( * ) AS col0 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-9796
SELECT - 21 - COUNT ( * ) AS col0 FROM tab0
----
-24

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 34 BETWEEN NULL AND - + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 + - + 71 AS col2 FROM tab0
----
-24
-61
28

query I rowsort
SELECT DISTINCT + 70 AS col2 FROM tab0, tab1 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT - + COUNT( * ) AS col1 FROM tab0 WHERE + ( + 71 ) * - 57 + + - col0 / ( - col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9800
SELECT - + COUNT ( * ) AS col1 FROM tab0 WHERE + ( + 71 ) * - 57 + + - col0 / ( - col2 ) IS NULL
----
0

query I rowsort
SELECT + 46 + - + col2 FROM tab2 AS cor0
----
-12
23
6

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 AS cor0 WHERE NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= + col1 * col2
----

query I rowsort
SELECT ALL + + col1 FROM tab2 AS cor0 WHERE - 29 IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL - col1 * - - 35 * - - col0 AS col0 FROM tab0
----
-3395
-42525
-63945

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT DISTINCT MIN( DISTINCT 68 ) FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT MIN ( DISTINCT 68 ) FROM tab1 AS cor0
----
68

query I rowsort
SELECT - + ( - + 5 ) AS col2 FROM tab2 AS cor0
----
5
5
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 32 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * + - 98 * + - 20 + + + ( col0 ) AS col2 FROM tab0 AS cor0
----
158775
2057
41247

query I rowsort
SELECT - col0 * + - col1 + + col1 + - - col0 * - + col2 FROM tab1 AS cor0
----
-1864
-4168
-4585

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 42 ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9812
SELECT + + 79 DIV - - col0 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-9812
SELECT + + 79 / - - col0 FROM tab0 AS cor0
----
0
0
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9813
SELECT ALL + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 71 AS col2 FROM tab0 WHERE NULL IS NULL
----
71

query II rowsort
SELECT ALL 5 AS col1, + 67 + + - ( - + col0 ) AS col2 FROM tab0
----
5
154
5
164
5
82

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 / + + col1 * + 28 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 75 + - col2 - - - col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9819
SELECT DISTINCT 14 DIV - - SUM( - - col0 ) col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9819
SELECT DISTINCT 14 / - - SUM ( - - col0 ) col2 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9820
SELECT - 12 DIV + - col1 * - + col1 * 88 + + + ( - col2 ) AS col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9820
SELECT - 12 / + - col1 * - + col1 * 88 + + + ( - col2 ) AS col0 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 - ( + - col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 = - 6 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT ALL - MAX( + col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL - MAX ( + col0 ) AS col2 FROM tab1 AS cor0
----
-91

query II rowsort
SELECT ALL + col0 * + 57 AS col0, col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT - COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-9825
SELECT - COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 <> - - col1 * - + 22
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + - 44 + - + col2, col0 AS col0 FROM tab0 AS cor0
----
-143
97
-54
87
-91
15

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9828
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) > - ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9828
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) > - ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + 74 - 72 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT ALL - ( - - COUNT( * ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL - ( - - COUNT ( * ) ) AS col1 FROM tab2
----
-3

query II rowsort
SELECT - 38 * - col2 AS col1, + col0 FROM tab2
----
1520
64
2204
75
874
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT ALL COUNT( * ) * SUM( - - col0 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9832
SELECT ALL COUNT ( * ) * SUM ( - - col0 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9833
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2, - 80 AS col0 FROM tab1 AS cor0
----
NULL
-80

skipif mysql # not compatible
query II rowsort label-9833
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2, - 80 AS col0 FROM tab1 AS cor0
----
NULL
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-9834
SELECT - ( + 23 ) DIV - col1 * + + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9834
SELECT - ( + 23 ) / - col1 * + + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 * - 74 FROM tab0 cor0
----
-1554
-5994
-74

query I rowsort
SELECT ALL - + col0 * + + col1 + - col0 AS col1 FROM tab2 cor0
----
-2392
-4992
-5100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9837
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NULL < + ( CAST( - - 24 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9837
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL < + ( CAST ( - - 24 AS INTEGER ) )
----
0

query I rowsort
SELECT 10 * - col0 FROM tab1
----
-510
-850
-910

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT DISTINCT COUNT( * ) * 17 col1 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9839
SELECT DISTINCT COUNT ( * ) * 17 col1 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-9840
SELECT DISTINCT 86 col0, COUNT( * ) FROM tab2
----
86
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9840
SELECT DISTINCT 86 col0, COUNT ( * ) FROM tab2
----
86
3

query I rowsort
SELECT ALL 52 * + 84 FROM tab1
----
4368
4368
4368

query I rowsort
SELECT ALL + col0 * - - col1 AS col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9843
SELECT + - CAST( ( + - col1 ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL <= + col1
----

skipif mysql # not compatible
query I rowsort label-9843
SELECT + - CAST ( ( + - col1 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL <= + col1
----

query I rowsort
SELECT ALL col0 + - col2 * - 60 FROM tab2 AS cor0
----
1426
2464
3555

onlyif mysql # DIV for integer division: 
query I rowsort label-9845
SELECT DISTINCT - ( - - ( + 0 ) ) DIV 66 DIV + + col1 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9845
SELECT DISTINCT - ( - - ( + 0 ) ) / 66 / + + col1 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9846
SELECT DISTINCT + 58 AS col0 FROM tab2 cor0 WHERE NOT + 11 * CAST( col2 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-9846
SELECT DISTINCT + 58 AS col0 FROM tab2 cor0 WHERE NOT + 11 * CAST ( col2 AS INTEGER ) > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9847
SELECT DISTINCT + col0 + - - col0 * + CAST( + - col1 AS DECIMAL ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= - col0
----

skipif mysql # not compatible
query I rowsort label-9847
SELECT DISTINCT + col0 + - - col0 * + CAST ( + - col1 AS REAL ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9848
SELECT + + 71 DIV col1 + col2 FROM tab0 AS cor0
----
13
170
47

skipif mysql # not compatible
query I rowsort label-9848
SELECT + + 71 / col1 + col2 FROM tab0 AS cor0
----
13
170
47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 64 * + 66 * + 43 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9850
SELECT ALL + - CAST( - - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL + - CAST ( - - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT col1 + col1 * - - col0 FROM tab1
----
430
4324
728

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT + SUM( + 9 ) AS col0 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-9852
SELECT + SUM ( + 9 ) AS col0 FROM tab2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9853
SELECT DISTINCT * FROM tab0 WHERE - + col0 + + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9853
SELECT DISTINCT * FROM tab0 WHERE - + col0 + + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + - + col2 - - 98 + + col0 * 33 * + 60 FROM tab2
----
126855
148607
91206

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT COUNT( * ) + + + MAX( - 64 ) FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-9855
SELECT COUNT ( * ) + + + MAX ( - 64 ) FROM tab2 AS cor0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT DISTINCT + - MIN( DISTINCT col0 ) col0 FROM tab2 cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9856
SELECT DISTINCT + - MIN ( DISTINCT col0 ) col0 FROM tab2 cor0
----
-46

query I rowsort
SELECT DISTINCT col1 - col2 + - + col1 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT + 24 + - col1 + col1 + + + col0 + - col0 * - col1 FROM tab2
----
2416
5016
5124

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT - SUM( DISTINCT + 29 ) * - COUNT( - 32 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
261

skipif mysql # not compatible
query I rowsort label-9859
SELECT - SUM ( DISTINCT + 29 ) * - COUNT ( - 32 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
261

query I rowsort
SELECT DISTINCT + 56 + col2 * col2 FROM tab2
----
1656
3420
585

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT MIN( ALL 69 ) AS col0 FROM tab0 cor0
----
69

skipif mysql # not compatible
query I rowsort label-9861
SELECT MIN ( ALL 69 ) AS col0 FROM tab0 cor0
----
69

query I rowsort
SELECT DISTINCT - + 70 + - - col1 FROM tab0 AS cor0
----
-49
-69
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9863
SELECT DISTINCT + CAST( - MIN( + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9863
SELECT DISTINCT + CAST ( - MIN ( + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT + 12 FROM tab0 AS cor0 WHERE NULL IS NULL
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT COUNT( + 73 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9865
SELECT COUNT ( + 73 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT - col0 * + - col2 * - col1 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9867
SELECT ALL col0 + + CAST( + - col0 AS SIGNED ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL col0 + + CAST ( + - col0 AS INTEGER ) FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col1, 7 * + col0 FROM tab1
----
51
357
85
595
91
637

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9869
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 68 * + col0 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9869
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 68 * + col0 AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9870
SELECT 29 DIV 39 + - col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-9870
SELECT 29 / 39 + - col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT - 19 * - COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
171

skipif mysql # not compatible
query I rowsort label-9872
SELECT - 19 * - COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-9873
SELECT + 74 DIV - + 5 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

skipif mysql # not compatible
query I rowsort label-9873
SELECT + 74 / - + 5 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT + + MAX( ALL 89 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
89

skipif mysql # not compatible
query I rowsort label-9874
SELECT + + MAX ( ALL 89 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9875
SELECT CAST( - col1 AS SIGNED ) AS col0, ( + 94 ) AS col2 FROM tab0 cor0
----
-1
94
-21
94
-81
94

skipif mysql # not compatible
query II rowsort label-9875
SELECT CAST ( - col1 AS INTEGER ) AS col0, ( + 94 ) AS col2 FROM tab0 cor0
----
-1
94
-21
94
-81
94

query I rowsort
SELECT DISTINCT + col2 + + - col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + col1 * - 21 + - col2 AS col0 FROM tab1 AS cor0
----
-1055
-164
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT ALL SUM( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL SUM ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
121

query I rowsort
SELECT - - 75 * - 11 FROM tab1 AS cor0
----
-825
-825
-825

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT 47 + - COUNT( * ) col2 FROM tab1
----
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9880
SELECT 47 + - COUNT ( * ) col2 FROM tab1
----
44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9881
SELECT ALL col1 * - - CAST( NULL AS DECIMAL ) * - - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9881
SELECT ALL col1 * - - CAST ( NULL AS REAL ) * - - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 93 AS col0 FROM tab1 WHERE + - 50 IS NOT NULL
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT DISTINCT COUNT( * ) * + COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9883
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9884
SELECT ALL - col1 + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9884
SELECT ALL - col1 + + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 86 + col0 AS col2 FROM tab0
----
101
173
183

query I rowsort
SELECT ALL - col1 + 49 FROM tab0
----
-32
28
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9887
SELECT 49 AS col0, CAST( NULL AS SIGNED ) FROM tab2
----
49
NULL
49
NULL
49
NULL

skipif mysql # not compatible
query II rowsort label-9887
SELECT 49 AS col0, CAST ( NULL AS INTEGER ) FROM tab2
----
49
NULL
49
NULL
49
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, - 45 col0 FROM tab2 AS cor0
----
51
-45
67
-45
77
-45

query I rowsort
SELECT - col1 * + + 39 FROM tab0 cor0
----
-3159
-39
-819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9890
SELECT DISTINCT + SUM( - col0 ) + CAST( NULL AS SIGNED ) * - SUM( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9890
SELECT DISTINCT + SUM ( - col0 ) + CAST ( NULL AS INTEGER ) * - SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 95 AS col2 FROM tab1 WHERE + + col2 + + col0 <= + col1 * - 28
----

query I rowsort
SELECT ALL - col0 * + col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + 29 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col1 * - + 85 * + + 50 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 + col2 * + col2 col0 FROM tab0 AS cor0
----
2139
30
9731

query I rowsort
SELECT + 23 / + col0 * - 52 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - col0
----

query I rowsort
SELECT ALL 84 * + ( + 29 ) + col2 FROM tab2 AS cor0
----
2459
2476
2494

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 94 <> - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col1 * 39 + col0 AS col1 FROM tab0 AS cor0
----
136
3174
906

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 7 * + col1 + col0 col0 FROM tab2 AS cor0
----
403
544
603

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 > + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col2, - ( col0 ) AS col2 FROM tab1
----
-59
-85
-68
-91
-96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT SUM( DISTINCT 41 ) AS col2 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-9904
SELECT SUM ( DISTINCT 41 ) AS col2 FROM tab2
----
41

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT col1 IS NULL )
----

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT DISTINCT + COUNT( ALL + + col0 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9907
SELECT DISTINCT + COUNT ( ALL + + col0 ) col2 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9908
SELECT - col2 DIV - 97 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9908
SELECT - col2 / - 97 AS col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9909
SELECT + 91 DIV + 7 AS col0 FROM tab0
----
13
13
13

skipif mysql # not compatible
query I rowsort label-9909
SELECT + 91 / + 7 AS col0 FROM tab0
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT + + MIN( - - 14 ) FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-9910
SELECT + + MIN ( - - 14 ) FROM tab1 AS cor0
----
14

query I rowsort
SELECT 38 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT 81 + 39 AS col1 FROM tab0
----
120
120
120

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9913
SELECT DISTINCT - - 24 DIV + - col1 * 83 + + CAST( 41 AS SIGNED ) * + + 7 FROM tab2 cor0
----
287

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT - - 24 / + - col1 * 83 + + CAST ( 41 AS INTEGER ) * + + 7 FROM tab2 cor0
----
287

query II rowsort
SELECT ALL 1 + col1 + + col2 + - + 65, + 12 AS col1 FROM tab1 AS cor0
----
0
12
46
12
51
12

query II rowsort
SELECT ALL - 69, + col0 AS col1 FROM tab1 cor0
----
-69
51
-69
85
-69
91

query II rowsort
SELECT + - col2 AS col2, 79 * 55 * col2 FROM tab0 AS cor0
----
-10
43450
-47
204215
-99
430155

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9917
SELECT * FROM tab0 AS cor0 WHERE ( NULL > - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9917
SELECT * FROM tab0 AS cor0 WHERE ( NULL > - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9918
SELECT - COUNT( * ) AS col0, 66 FROM tab2 AS cor0
----
-3
66

skipif mysql # not compatible
query II rowsort label-9918
SELECT - COUNT ( * ) AS col0, 66 FROM tab2 AS cor0
----
-3
66

query I rowsort
SELECT ALL col0 * col0 * 11 FROM tab0
----
103499
2475
83259

onlyif mysql # aggregate syntax: 
query II rowsort label-9920
SELECT DISTINCT - SUM( col2 ) AS col0, - 68 FROM tab1
----
-223
-68

skipif mysql # not compatible
query II rowsort label-9920
SELECT DISTINCT - SUM ( col2 ) AS col0, - 68 FROM tab1
----
-223
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 * col0 col0 FROM tab2
----
163840
326250
48668

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT - 63 * + + COUNT( * ) * - + COUNT( * ) * - 80 FROM tab0
----
-45360

skipif mysql # not compatible
query I rowsort label-9922
SELECT - 63 * + + COUNT ( * ) * - + COUNT ( * ) * - 80 FROM tab0
----
-45360

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT COUNT( + 76 ) * - COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9923
SELECT COUNT ( + 76 ) * - COUNT ( * ) AS col2 FROM tab2
----
-9

query I rowsort
SELECT + + ( + col2 ) + col1 AS col1 FROM tab1 WHERE NULL IS NULL
----
110
115
64

query I rowsort
SELECT ALL col2 * + ( col2 ) + col1 FROM tab1
----
3486
4671
9230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab0 WHERE + 51 + - - col1 + + - ( + - 9 ) IS NULL
----

query I rowsort
SELECT ALL - + 9 * - col2 * + col1 * 70 AS col1 FROM tab0 AS cor0
----
132300
2398410
62370

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + + col2 col0, col0 AS col0 FROM tab0 AS cor0
----
100
97
128
15
31
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT ALL 40 - ( + COUNT( * ) ) FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-9929
SELECT ALL 40 - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9930
SELECT DISTINCT COUNT( DISTINCT + 51 ) DIV + - 87 AS col2 FROM tab1 WHERE NOT + - col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT COUNT ( DISTINCT + 51 ) / + - 87 AS col2 FROM tab1 WHERE NOT + - col2 = NULL
----
0

query II rowsort
SELECT DISTINCT col2, col1 * - 85 FROM tab0 AS cor0
----
10
-1785
47
-6885
99
-85

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9932
SELECT DISTINCT - col2, + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query II rowsort label-9932
SELECT DISTINCT - col2, + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT ALL - SUM( 93 ) FROM tab2 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL - SUM ( 93 ) FROM tab2 AS cor0
----
-279

onlyif mysql # aggregate syntax: 
query II rowsort label-9934
SELECT COUNT( * ) AS col0, COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9934
SELECT COUNT ( * ) AS col0, COUNT ( * ) FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT + MIN( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9935
SELECT + MIN ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT MAX( + col2 ) AS col2 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-9936
SELECT MAX ( + col2 ) AS col2 FROM tab1 cor0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9937
SELECT 9 AS col0, + MAX( 51 ) FROM tab2 cor0
----
9
51

skipif mysql # not compatible
query II rowsort label-9937
SELECT 9 AS col0, + MAX ( 51 ) FROM tab2 cor0
----
9
51

query I rowsort
SELECT ALL 67 * + col1 AS col0 FROM tab0 AS cor0
----
1407
5427
67

query I rowsort
SELECT DISTINCT ( 70 ) AS col0 FROM tab2
----
70

query III rowsort
SELECT * FROM tab0 WHERE NOT - 16 IS NOT NULL
----

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT - col1 + + col2 * col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9942
SELECT + col1 DIV - - col1, + col0 FROM tab1
----
1
51
1
85
1
91

skipif mysql # not compatible
query II rowsort label-9942
SELECT + col1 / - - col1, + col0 FROM tab1
----
1
51
1
85
1
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT ALL COUNT( ALL ( - + col2 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9943
SELECT ALL COUNT ( ALL ( - + col2 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9944
SELECT - - COUNT( * ) DIV - 82 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9944
SELECT - - COUNT ( * ) / - 82 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT ALL MAX( col0 ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL MAX ( col0 ) FROM tab0 cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT DISTINCT - MAX( - col2 ) + MIN( ALL + 45 ) FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT - MAX ( - col2 ) + MIN ( ALL + 45 ) FROM tab2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT ALL + ( + 71 ) + - COUNT( * ) FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL + ( + 71 ) + - COUNT ( * ) FROM tab2
----
68

query I rowsort
SELECT DISTINCT + col2 + + 49 * 6 + + - col2 FROM tab0
----
294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 86 + + + 60 + 10 col0 FROM tab1
----
156

query II rowsort
SELECT ALL + col1 + - col0 + - 60 AS col1, + col0 FROM tab0 AS cor0
----
-126
87
-156
97
6
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT ALL + MAX( ALL - + 38 ) FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL + MAX ( ALL - + 38 ) FROM tab1 AS cor0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT DISTINCT + COUNT( * ) + + 82 AS col2 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-9952
SELECT DISTINCT + COUNT ( * ) + + 82 AS col2 FROM tab2 AS cor0
----
85

query I rowsort
SELECT + + 35 + 76 AS col2 FROM tab2 AS cor0
----
111
111
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT DISTINCT + MAX( - col0 ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9954
SELECT DISTINCT + MAX ( - col0 ) FROM tab0 cor0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 * + + col0 * + + col2 * + 38 * + ( + col1 ) + col0 + + 14 <> - 45 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 13 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9957
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - col1, - col0 * - CAST( NULL AS SIGNED ), 74 )
----

skipif mysql # not compatible
query III rowsort label-9957
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - col1, - col0 * - CAST ( NULL AS INTEGER ), 74 )
----

query II rowsort
SELECT + col1 + + 1, ( + col0 ) AS col0 FROM tab0
----
2
97
22
87
82
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9959
SELECT ALL + col2 + + CAST( + col0 AS SIGNED ) FROM tab0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL + col2 + + CAST ( + col0 AS INTEGER ) FROM tab0
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9960
SELECT DISTINCT CAST( + - col1 AS SIGNED ) AS col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9960
SELECT DISTINCT CAST ( + - col1 AS INTEGER ) AS col2 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9961
SELECT - 18 AS col1, 14 DIV + COUNT( * ) FROM tab1
----
-18
4

skipif mysql # not compatible
query II rowsort label-9961
SELECT - 18 AS col1, 14 / + COUNT ( * ) FROM tab1
----
-18
4

query I rowsort
SELECT + ( - + 92 ) FROM tab1 WHERE col2 IS NOT NULL
----
-92
-92
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9963
SELECT + col1 * + CAST( NULL AS SIGNED ) * 26 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9963
SELECT + col1 * + CAST ( NULL AS INTEGER ) * 26 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + col1 * - - col0 FROM tab1
----
366
4209
618

query III rowsort
SELECT ALL * FROM tab1 WHERE 63 >= NULL
----

query I rowsort
SELECT DISTINCT + - col1 * - - col2 + + - col0 FROM tab0 AS cor0
----
-196
-297
-3822

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 >= + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > ( 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT - 97 * + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-9969
SELECT - 97 * + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
291

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 56 - col2 = NULL )
----

query I rowsort
SELECT DISTINCT + + 87 * + - col0 AS col1 FROM tab0 AS cor0
----
-1305
-7569
-8439

query I rowsort
SELECT ALL + - 88 * - 68 AS col2 FROM tab1 cor0
----
5984
5984
5984

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9973
SELECT DISTINCT 49 DIV COUNT( * ) + 46 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-9973
SELECT DISTINCT 49 / COUNT ( * ) + 46 FROM tab2 AS cor0
----
62

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 col2 FROM tab1
----
40
40
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9976
SELECT ALL CAST( - + col2 AS SIGNED ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9976
SELECT ALL CAST ( - + col2 AS INTEGER ) FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL 19 * + - 8 AS col0 FROM tab0
----
-152
-152
-152

onlyif mysql # aggregate syntax: 
query II rowsort label-9978
SELECT COUNT( * ) AS col0, - 71 AS col1 FROM tab0
----
3
-71

skipif mysql # not compatible
query II rowsort label-9978
SELECT COUNT ( * ) AS col0, - 71 AS col1 FROM tab0
----
3
-71

query II rowsort
SELECT + 86 * + 2 * + col1, col0 - col2 AS col2 FROM tab0
----
13932
-32
172
-2
3612
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT DISTINCT - 74 * + COUNT( * ) col2 FROM tab0
----
-222

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9980
SELECT DISTINCT - 74 * + COUNT ( * ) col2 FROM tab0
----
-222

onlyif mysql # DIV for integer division: 
query I rowsort label-9981
SELECT ALL - 58 DIV + col1 FROM tab0 AS cor0
----
-2
-58
0

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL - 58 / + col1 FROM tab0 AS cor0
----
-2
-58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT 21 * 17 + - COUNT( * ) AS col2 FROM tab1 cor0
----
354

skipif mysql # not compatible
query I rowsort label-9982
SELECT 21 * 17 + - COUNT ( * ) AS col2 FROM tab1 cor0
----
354

onlyif mysql # DIV for integer division: 
query I rowsort label-9983
SELECT ALL - - col1 DIV col2 - - 0 + + col1 + + - 97 AS col1 FROM tab0 AS cor0
----
-15
-74
-96

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL - - col1 / col2 - - 0 + + col1 + + - 97 AS col1 FROM tab0 AS cor0
----
-15
-74
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT 87 + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
87

skipif mysql # not compatible
query I rowsort label-9984
SELECT 87 + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
87

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 35 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT 33 * - col0 + + col2 FROM tab2
----
-1495
-2072
-2417

query II rowsort
SELECT col2 + col2 * col1 + col2 AS col1, + col0 FROM tab0
----
230
87
297
97
3901
15

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9988
SELECT DISTINCT - 3 * + + col0 + - col0 + + col1 * + CAST( - - col0 AS DECIMAL ) / CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9988
SELECT DISTINCT - 3 * + + col0 + - col0 + + col1 * + CAST ( - - col0 AS REAL ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 + col0 + + - col1 col2 FROM tab2
----
24
32
45

query III rowsort
SELECT * FROM tab1 WHERE - + 35 + + 87 >= NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL BETWEEN + 25 AND NULL
----

query I rowsort
SELECT ALL col2 - + 12 * - 76 + - + 45 FROM tab2 cor0
----
890
907
925

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 18 * - 74 NOT IN ( + col2, 88, - + 67 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - - ( - + col1 ) col0 FROM tab2 cor0
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-9995
SELECT - + 4 DIV + ( - col0 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9995
SELECT - + 4 / + ( - col0 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9996
SELECT ALL - CAST( 90 AS SIGNED ) AS col0 FROM tab0
----
-90
-90
-90

skipif mysql # not compatible
query I rowsort label-9996
SELECT ALL - CAST ( 90 AS INTEGER ) AS col0 FROM tab0
----
-90
-90
-90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9997
SELECT 56 / + 4 * - COUNT( * ) * - COUNT( * ) / - CAST( NULL AS DECIMAL ) - 38 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9997
SELECT 56 / + 4 * - COUNT ( * ) * - COUNT ( * ) / - CAST ( NULL AS REAL ) - 38 FROM tab0
----
NULL

query I rowsort
SELECT 49 + + + col1 FROM tab1
----
54
63
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9999
SELECT DISTINCT - 41 + - col0 * CAST( - col1 AS SIGNED ) AS col1 FROM tab2
----
2305
4887
4984

skipif mysql # not compatible
query I rowsort label-9999
SELECT DISTINCT - 41 + - col0 * CAST ( - col1 AS INTEGER ) AS col1 FROM tab2
----
2305
4887
4984

