sqllogictest
Artifact Content
Not logged in

Artifact 23b6e41bef353c3fcf734c4ba7411efd87a61ab5:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-0
SELECT DISTINCT col1 DIV col2 - CAST( 95 AS SIGNED ) FROM tab0
----
-93
-94
-95

skipif mysql # not compatible
query I rowsort label-0
SELECT DISTINCT col1 / col2 - CAST ( 95 AS INTEGER ) FROM tab0
----
-93
-94
-95

query I rowsort
SELECT + col2 + - ( + col2 + + col1 ) FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT ALL + COUNT( * ) + 17 * ( - SUM( DISTINCT + 97 ) ) FROM tab1
----
-1646

skipif mysql # not compatible
query I rowsort label-2
SELECT ALL + COUNT ( * ) + 17 * ( - SUM ( DISTINCT + 97 ) ) FROM tab1
----
-1646

onlyif mysql # DIV for integer division: 
query I rowsort label-3
SELECT DISTINCT + 91 + 69 DIV 53 AS col0 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-3
SELECT DISTINCT + 91 + 69 / 53 AS col0 FROM tab1
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4
SELECT + col1 * - 88 + + CAST( col1 AS SIGNED ) FROM tab1
----
-1218
-4089
-435

skipif mysql # not compatible
query I rowsort label-4
SELECT + col1 * - 88 + + CAST ( col1 AS INTEGER ) FROM tab1
----
-1218
-4089
-435

onlyif mysql # DIV for integer division: 
query I rowsort label-5
SELECT ALL 19 DIV - col2 + 56 * col0 col0 FROM tab0 WHERE - 71 IS NOT NULL
----
4871
5432
840

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5
SELECT ALL 19 / - col2 + 56 * col0 col0 FROM tab0 WHERE - 71 IS NOT NULL
----
4871
5432
840

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

query I rowsort
SELECT - 22 * col1 AS col1 FROM tab2
----
-1122
-1474
-1694

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( + 29 ) AND ( NULL )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-10
SELECT ALL + 34 + CAST( col0 AS SIGNED ) col1 FROM tab0 AS cor0
----
121
131
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-10
SELECT ALL + 34 + CAST ( col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
121
131
49

onlyif mysql # DIV for integer division: 
query I rowsort label-11
SELECT ALL 53 DIV col0 + col0 FROM tab2 AS cor0
----
47
64
75

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL 53 / col0 + col0 FROM tab2 AS cor0
----
47
64
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE NOT col2 < col1
----
1

skipif mysql # not compatible
query I rowsort label-13
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE NOT col2 < col1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - 70 col2 FROM tab1
----
-23
-56
-65

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col1 ) >= ( 87 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col0 + + 58 AS col2 FROM tab0 AS cor0
----
-29
-39
43

query I rowsort
SELECT DISTINCT + col0 * 59 AS col2 FROM tab1 AS cor0
----
3009
5015
5369

query I rowsort
SELECT 92 + + col2 * 31 FROM tab2 AS cor0
----
1332
1890
805

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT 82 * COUNT( ALL - col2 + col2 ) + - COUNT( ALL + 66 ) FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-19
SELECT 82 * COUNT ( ALL - col2 + col2 ) + - COUNT ( ALL + 66 ) FROM tab1 AS cor0
----
243

query I rowsort
SELECT ALL 14 * col0 AS col1 FROM tab1 AS cor0
----
1190
1274
714

query I rowsort
SELECT - 82 * col0 AS col0 FROM tab1 AS cor0
----
-4182
-6970
-7462

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

query I rowsort
SELECT - 89 * col1 AS col1 FROM tab2 AS cor0
----
-4539
-5963
-6853

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

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT - MIN( DISTINCT + + 62 ) col1 FROM tab2
----
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-25
SELECT - MIN ( DISTINCT + + 62 ) col1 FROM tab2
----
-62

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

query I rowsort
SELECT ALL 68 * 76 FROM tab2
----
5168
5168
5168

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

query I rowsort
SELECT - + col0 * 7 FROM tab0 cor0
----
-105
-609
-679

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 56 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT DISTINCT ( COUNT( ALL + col1 ) ) * 16 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-31
SELECT DISTINCT ( COUNT ( ALL + col1 ) ) * 16 FROM tab2 AS cor0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-32
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( + CAST( - col1 AS SIGNED ) * - 65 ) IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-32
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( + CAST ( - col1 AS INTEGER ) * - 65 ) IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - 28 * - - 83 AS col1 FROM tab2 AS cor0
----
-2324

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT DISTINCT COUNT( * ) - 48 * + 88 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-4215

skipif mysql # not compatible
query I rowsort label-34
SELECT DISTINCT COUNT ( * ) - 48 * + 88 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-4215

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-35
SELECT DISTINCT MAX ( - + col2 ) col0 FROM tab1
----
-59

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-37
SELECT ALL * FROM tab1 WHERE NOT - col1 NOT IN ( + CAST( - col0 AS SIGNED ) * 10 )
----

skipif mysql # not compatible
query III rowsort label-37
SELECT ALL * FROM tab1 WHERE NOT - col1 NOT IN ( + CAST ( - col0 AS INTEGER ) * 10 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT DISTINCT - - 55 * - - MIN( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
2530

skipif mysql # not compatible
query I rowsort label-38
SELECT DISTINCT - - 55 * - - MIN ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
2530

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

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL + + col1 / + ( col0 ) FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 20 <= ( + - col2 - ( col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + + 0 FROM tab1 AS cor0
----
-59
-68
-96

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

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

query I rowsort
SELECT col1 * - - col2 + + - col0 AS col1 FROM tab0 AS cor0
----
123
2
3792

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT DISTINCT + - SUM( DISTINCT - col1 ) FROM tab1 AS cor0 WHERE NOT NULL < col0
----
NULL

skipif mysql # not compatible
query I rowsort label-44
SELECT DISTINCT + - SUM ( DISTINCT - col1 ) FROM tab1 AS cor0 WHERE NOT NULL < col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT col0 * + col2 FROM tab2 AS cor0 WHERE ( 19 ) IS NOT NULL
----
1058
2560
4350

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

onlyif mysql # DIV for integer division: 
query I rowsort label-48
SELECT ALL 87 + - col2 + + + 58 - col1 + ( - col1 ) DIV 71 FROM tab1
----
30
35
81

skipif mysql # not compatible
query I rowsort label-48
SELECT ALL 87 + - col2 + + + 58 - col1 + ( - col1 ) / 71 FROM tab1
----
30
35
81

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

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

query I rowsort
SELECT + col0 * + col0 * 7 FROM tab2
----
14812
28672
39375

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

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT ALL COUNT( * ) - - + MIN( ALL + 63 ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-52
SELECT ALL COUNT ( * ) - - + MIN ( ALL + 63 ) FROM tab2
----
66

query II rowsort
SELECT DISTINCT + 0 * - + 42, 88 AS col0 FROM tab0
----
0
88

onlyif mysql # DIV for integer division: 
query I rowsort label-54
SELECT - - col0 - - col1 * col1 * + col0 + col0 DIV col2 FROM tab1 cor0
----
10047
201111
2211

skipif mysql # not compatible
query I rowsort label-54
SELECT - - col0 - - col1 * col1 * + col0 + col0 / col2 FROM tab1 cor0
----
10047
201111
2211

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

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

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

skipif mysql # not compatible
query I rowsort label-56
SELECT + COUNT ( * ) FROM tab0 cor0 WHERE 18 IS NOT NULL
----
3

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT MIN( ALL + 25 ) FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-60
SELECT MIN ( ALL + 25 ) FROM tab1
----
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT - + 5 * ( + + COUNT( * ) ) + + MIN( ALL col0 ) + 81 FROM tab2 cor0
----
112

skipif mysql # not compatible
query I rowsort label-63
SELECT - + 5 * ( + + COUNT ( * ) ) + + MIN ( ALL col0 ) + 81 FROM tab2 cor0
----
112

query I rowsort
SELECT - col1 * + col0 AS col0 FROM tab1 cor0 WHERE NOT 38 IS NULL
----
-425
-4277
-714

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * + + col1 = - 89
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 AND + 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT SUM( + col2 ) * + 64 FROM tab1
----
14272

skipif mysql # not compatible
query I rowsort label-68
SELECT SUM ( + col2 ) * + 64 FROM tab1
----
14272

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-69
SELECT - CAST( + + 94 AS SIGNED ) AS col1 FROM tab1, tab1 cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

skipif mysql # not compatible
query I rowsort label-69
SELECT - CAST ( + + 94 AS INTEGER ) AS col1 FROM tab1, tab1 cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-70
SELECT CAST( NULL AS SIGNED ), 98 AS col1 FROM tab0
----
NULL
98
NULL
98
NULL
98

skipif mysql # not compatible
query II rowsort label-70
SELECT CAST ( NULL AS INTEGER ), 98 AS col1 FROM tab0
----
NULL
98
NULL
98
NULL
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 92 col0, - col0 AS col1 FROM tab1
----
92
-51
92
-85
92
-91

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

query I rowsort
SELECT DISTINCT col0 * col2 + - + col1 FROM tab1 AS cor0
----
4882
5010
6141

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 53 * - col2 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-77
SELECT DISTINCT + - COUNT( * ) col1, - MIN( DISTINCT ( - col1 ) ) DIV - 71 FROM tab0 cor0
----
-3
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-77
SELECT DISTINCT + - COUNT ( * ) col1, - MIN ( DISTINCT ( - col1 ) ) / - 71 FROM tab0 cor0
----
-3
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-78
SELECT - 11 DIV + + 18 * + ( col2 ) AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-78
SELECT - 11 / + + 18 * + ( col2 ) AS col1 FROM tab0
----
0
0
0

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

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

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL + COUNT ( * ) + - + 40 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-31

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

query II rowsort
SELECT ALL - col2 + - col0, col1 + - ( + col2 ) - col1 AS col2 FROM tab1 AS cor0
----
-144
-59
-147
-96
-159
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT DISTINCT - COUNT( * ) + - + MIN( DISTINCT - + col1 ) col1 FROM tab2 cor0
----
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-83
SELECT DISTINCT - COUNT ( * ) + - + MIN ( DISTINCT - + col1 ) col1 FROM tab2 cor0
----
74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT col2 < ( col0 + - col1 + + 96 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-85
SELECT col1 DIV - 57 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-85
SELECT col1 / - 57 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - - col2 + + 38 col2 FROM tab2 cor0
----
1638
3402
567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-87
SELECT - MAX( - - col1 ) DIV + + 72 * - - SUM( DISTINCT col0 ) + 66 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-87
SELECT - MAX ( - - col1 ) / + + 72 * - - SUM ( DISTINCT col0 ) + 66 FROM tab1 cor0
----
66

query I rowsort
SELECT ALL - - col2 * - 15 + + 30 AS col0 FROM tab1 AS cor0
----
-1410
-855
-990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-89
SELECT + 49 * 65 + - 86 + col0 * - 78 * + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-89
SELECT + 49 * 65 + - 86 + col0 * - 78 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 + 56 < - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 67 + + - col2 col2, col2 * - + col2 AS col2 FROM tab1 AS cor0
----
-1
-4624
-29
-9216
8
-3481

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT DISTINCT - COUNT( - 78 ) * ( - 10 ) AS col2 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-94
SELECT DISTINCT - COUNT ( - 78 ) * ( - 10 ) AS col2 FROM tab1
----
30

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-95
SELECT DISTINCT - col0 / - + CAST( NULL AS DECIMAL ) * + + 58 + - 69 AS col0, col0 AS col2 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-95
SELECT DISTINCT - col0 / - + CAST ( NULL AS REAL ) * + + 58 + - 69 AS col0, col0 AS col2 FROM tab1
----
NULL
51
NULL
85
NULL
91

query III rowsort
SELECT * FROM tab0 WHERE - + 16 * + + col1 * + col1 * - 97 - + + col1 > col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-97
SELECT DISTINCT * FROM tab0 WHERE NOT + - CAST( NULL AS SIGNED ) / col2 - col0 + 70 BETWEEN + ( - - 45 ) AND ( col1 ) * ( col2 )
----

skipif mysql # not compatible
query III rowsort label-97
SELECT DISTINCT * FROM tab0 WHERE NOT + - CAST ( NULL AS INTEGER ) / col2 - col0 + 70 BETWEEN + ( - - 45 ) AND ( col1 ) * ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT ALL 3 * - ( + - 84 ) * - COUNT( * ) * + ( 69 ) FROM tab2
----
-52164

skipif mysql # not compatible
query I rowsort label-98
SELECT ALL 3 * - ( + - 84 ) * - COUNT ( * ) * + ( 69 ) FROM tab2
----
-52164

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT DISTINCT COUNT( * ) * - 40 AS col1 FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-99
SELECT DISTINCT COUNT ( * ) * - 40 AS col1 FROM tab2
----
-120

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 44 = 40 - - 57
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-101
SELECT + col1 DIV - 23 + - - col2 + + 57 * + - col0 col2 FROM tab2 AS cor0
----
-2601
-3611
-4219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-101
SELECT + col1 / - 23 + - - col2 + + 57 * + - col0 col2 FROM tab2 AS cor0
----
-2601
-3611
-4219

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

skipif mysql # not compatible
query I rowsort label-102
SELECT COUNT ( * ) / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 87 + 46 + + 68 AS col2 FROM tab2 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT ALL - - 50 + - COUNT( col0 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-104
SELECT ALL - - 50 + - COUNT ( col0 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT + + col2 - - 72 FROM tab2 AS cor0
----
112
130
95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT + 82 - + ( - + COUNT( * ) ) col0 FROM tab1
----
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-107
SELECT + 82 - + ( - + COUNT ( * ) ) col0 FROM tab1
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-108
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-108
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT COUNT( - col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-109
SELECT COUNT ( - col0 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT ALL + - COUNT( * ) AS col1 FROM tab2 WHERE NOT + + col2 BETWEEN ( - col2 ) AND - col1
----
-3

skipif mysql # not compatible
query I rowsort label-110
SELECT ALL + - COUNT ( * ) AS col1 FROM tab2 WHERE NOT + + col2 BETWEEN ( - col2 ) AND - col1
----
-3

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

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

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

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

query I rowsort
SELECT - 73 * - col2 FROM tab1 cor0
----
4307
4964
7008

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT + 80 * + 34 + - 78 - - MIN( DISTINCT - - col0 ) FROM tab1 AS cor0
----
2693

skipif mysql # not compatible
query I rowsort label-115
SELECT + 80 * + 34 + - 78 - - MIN ( DISTINCT - - col0 ) FROM tab1 AS cor0
----
2693

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-116
SELECT + + CAST ( col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
51
67
77

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

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

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

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

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

query I rowsort
SELECT + + col0 / - 35 * 67 + col0 FROM tab1 WHERE NOT ( + col2 ) = + col2
----

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

query I rowsort
SELECT DISTINCT + ( + 47 ) FROM tab1
----
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) <= col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 + - - 15 < - + col2 - 72 * + 19 * - 56
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-125
SELECT ALL - + CAST( + 98 AS SIGNED ) + - col0 * - - 70 col1 FROM tab0 AS cor0
----
-1148
-6188
-6888

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-125
SELECT ALL - + CAST ( + 98 AS INTEGER ) + - col0 * - - 70 col1 FROM tab0 AS cor0
----
-1148
-6188
-6888

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

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

query I rowsort
SELECT col0 + + ( - - 69 ) AS col1 FROM tab0
----
156
166
84

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-131
SELECT ALL + 19 + - 20 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL + 19 + - 20 * + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + + ( + col0 ) FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT + col0 + - 59 AS col2 FROM tab1 AS cor0
----
-8
26
32

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 < + ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-135
SELECT ALL - col2 * - col2 DIV - - col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-135
SELECT ALL - col2 * - col2 / - - col2 FROM tab1
----
59
68
96

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 30 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT ALL COUNT( * ) - - - 9 AS col2 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-138
SELECT ALL COUNT ( * ) - - - 9 AS col2 FROM tab1
----
-6

query I rowsort
SELECT - col1 * + + ( + - 71 ) - col1 + + - 85 + - col1 * 80 * 51 + col2 FROM tab1 WHERE - col2 NOT IN ( 26 * col1 / - 27, 53 )
----
-188487
-20076
-56129

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT + ( - COUNT( * ) ) * - 57 - 40 + + COUNT( * ) * - COUNT( * ) FROM tab2
----
122

skipif mysql # not compatible
query I rowsort label-140
SELECT + ( - COUNT ( * ) ) * - 57 - 40 + + COUNT ( * ) * - COUNT ( * ) FROM tab2
----
122

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-143
SELECT DISTINCT col1 FROM tab1 cor0 WHERE NOT + 39 * col0 + - - col2 + - + CAST( NULL AS SIGNED ) - + col1 IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-143
SELECT DISTINCT col1 FROM tab1 cor0 WHERE NOT + 39 * col0 + - - col2 + - + CAST ( NULL AS INTEGER ) - + col1 IS NOT NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-144
SELECT DISTINCT col0 DIV - + 10 + + col1 FROM tab2 cor0
----
47
60
71

skipif mysql # not compatible
query I rowsort label-144
SELECT DISTINCT col0 / - + 10 + + col1 FROM tab2 cor0
----
47
60
71

query I rowsort
SELECT ALL - col2 * + 2 AS col2 FROM tab1 AS cor0
----
-118
-136
-192

query II rowsort
SELECT - col1 * col0, col1 FROM tab0 cor0 WHERE NOT ( col2 ) >= NULL
----

query I rowsort
SELECT - ( col2 ) * - ( - col0 ) + col1 + - 87 * - + col0 + - col0 AS col0 FROM tab2 AS cor0
----
2167
2949
3021

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 62 NOT BETWEEN + 88 AND col2
----

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

skipif mysql # not compatible
query II rowsort label-150
SELECT DISTINCT 31 / + + col2, col0 AS col0 FROM tab1
----
0
51
0
85
0
91

query I rowsort
SELECT ALL 71 * + - 39 FROM tab2
----
-2769
-2769
-2769

onlyif mysql # DIV for integer division: 
query II rowsort label-152
SELECT col1 DIV col0 AS col0, col2 * col2 FROM tab2
----
0
3364
1
1600
1
529

skipif mysql # not compatible
query II rowsort label-152
SELECT col1 / col0 AS col0, col2 * col2 FROM tab2
----
0
3364
1
1600
1
529

query I rowsort
SELECT + col2 * - col1 * + col1 AS col1 FROM tab2
----
-237160
-260362
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT DISTINCT - COUNT( * ) + - 66 + + 66 AS col2 FROM tab0 WHERE NOT + - 37 = - 83
----
-3

skipif mysql # not compatible
query I rowsort label-154
SELECT DISTINCT - COUNT ( * ) + - 66 + + 66 AS col2 FROM tab0 WHERE NOT + - 37 = - 83
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT ALL - COUNT( 72 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-155
SELECT ALL - COUNT ( 72 ) FROM tab0
----
-3

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

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

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

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

query I rowsort
SELECT ALL + 27 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

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

query I rowsort
SELECT + col1 - col0 * col1 AS col0 FROM tab1 AS cor0
----
-420
-4230
-700

query I rowsort
SELECT col1 + + 95 * col2 FROM tab0 cor0
----
4546
9406
971

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

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

query I rowsort
SELECT 84 + - + col1 FROM tab1 AS cor0
----
37
70
79

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT - MAX( DISTINCT 3 ) FROM tab0 cor0 WHERE ( NULL ) >= + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-165
SELECT - MAX ( DISTINCT 3 ) FROM tab0 cor0 WHERE ( NULL ) >= + 61
----
NULL

query II rowsort
SELECT DISTINCT - col2 AS col1, + 27 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - - col1 + + 94 + + col2 - - 61 FROM tab1 AS cor0
----
219
265
270

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

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT - SUM( DISTINCT - col1 ) + + 31 + + COUNT( * ) FROM tab2 AS cor0
----
229

skipif mysql # not compatible
query I rowsort label-169
SELECT - SUM ( DISTINCT - col1 ) + + 31 + + COUNT ( * ) FROM tab2 AS cor0
----
229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 + - + col1 col1 FROM tab1
----
-41
-50
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT - COUNT( * ) * 38 col2 FROM tab1 WHERE col1 IS NULL
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-172
SELECT MIN( CAST( NULL AS SIGNED ) ) + - + 40 AS col0 FROM tab1
----
NULL

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

query I rowsort
SELECT DISTINCT + ( + 84 ) - + ( + + col2 ) FROM tab2
----
26
44
61

query I rowsort
SELECT DISTINCT + + col2 / col0 FROM tab0 WHERE NOT NULL <> + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-175
SELECT DISTINCT 76, AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
76
NULL

skipif mysql # not compatible
query II rowsort label-175
SELECT DISTINCT 76, AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
76
NULL

query I rowsort
SELECT 54 * - col0 FROM tab2 WHERE NOT ( - - 64 ) IS NOT NULL
----

query II rowsort
SELECT - ( + + col0 ), + col0 * - 80 AS col0 FROM tab0 AS cor0
----
-15
-1200
-87
-6960
-97
-7760

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

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

query I rowsort
SELECT + + ( 37 ) * col2 * - + col0 FROM tab0 cor0
----
-26085
-32190
-355311

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col0 + - + 70 - + + 25 * + col1 * - ( + + 1 ) * - col0 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT - - MAX( col0 ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
97

skipif mysql # not compatible
query I rowsort label-181
SELECT - - MAX ( col0 ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
97

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-182
SELECT ALL 0 / col2 * + + col1 col2 FROM tab0 cor0
----
0
0
0

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

query I rowsort
SELECT - col2 * + - 84 AS col1 FROM tab2
----
1932
3360
4872

onlyif mysql # aggregate syntax: 
query II rowsort label-185
SELECT DISTINCT COUNT( * ), + 29 col1 FROM tab1
----
3
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-185
SELECT DISTINCT COUNT ( * ), + 29 col1 FROM tab1
----
3
29

query I rowsort
SELECT + col1 * + - col0 AS col1 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-187
SELECT ALL CAST( NULL AS DECIMAL ) / + col2 FROM tab0 WHERE NOT + col2 * + col2 + 63 NOT IN ( + - 30 * + col1 * - 57 * + - CAST( + + 47 AS DECIMAL ) + - col0 )
----

skipif mysql # not compatible
query I rowsort label-187
SELECT ALL CAST ( NULL AS REAL ) / + col2 FROM tab0 WHERE NOT + col2 * + col2 + 63 NOT IN ( + - 30 * + col1 * - 57 * + - CAST ( + + 47 AS REAL ) + - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-188
SELECT - ( + - COUNT( ALL - CAST( NULL AS SIGNED ) ) ), - ( COUNT( * ) ) AS col1 FROM tab0
----
0
-3

skipif mysql # not compatible
query II rowsort label-188
SELECT - ( + - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) ), - ( COUNT ( * ) ) AS col1 FROM tab0
----
0
-3

query I rowsort
SELECT col0 * - + 40 AS col1 FROM tab1
----
-2040
-3400
-3640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-190
SELECT - col2 * + CAST( - 9 AS SIGNED ) FROM tab0 AS cor0
----
423
891
90

skipif mysql # not compatible
query I rowsort label-190
SELECT - col2 * + CAST ( - 9 AS INTEGER ) FROM tab0 AS cor0
----
423
891
90

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

query I rowsort
SELECT 6 + - 24 FROM tab0
----
-18
-18
-18

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

skipif mysql # not compatible
query I rowsort label-193
SELECT col2 / + 63 AS col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT - col2 * + - col0 AS col2 FROM tab2 cor0
----
1058
2560
4350

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

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

query I rowsort
SELECT DISTINCT + - col2 + - col2 + - - col2 + 60 AS col0 FROM tab0 AS cor0
----
-39
13
50

query I rowsort
SELECT ALL + ( + 91 ) - 32 * 71 FROM tab2 AS cor0
----
-2181
-2181
-2181

query I rowsort
SELECT ALL - col2 * - + col0 + - 96 AS col0 FROM tab2
----
2464
4254
962

query I rowsort
SELECT - ( - col0 ) - + 95 AS col0 FROM tab2
----
-20
-31
-49

query I rowsort
SELECT - col2 * - col2 - - - col0 FROM tab0
----
13
2194
9704

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

skipif mysql # not compatible
query I rowsort label-202
SELECT COUNT ( * ) + + + 1 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 50 + + + 67 > - col1
----

query I rowsort
SELECT DISTINCT 69 AS col2 FROM tab1 WHERE NOT NULL <= + - 27
----

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

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

query I rowsort
SELECT + 97 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 69 col2, 14 FROM tab0
----
69
14
69
14
69
14

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-211
SELECT - col2 - - + col0 + CAST( - 13 AS SIGNED ) AS col1 FROM tab1 WHERE NOT - - 5 * - col2 <> - + 71
----

skipif mysql # not compatible
query I rowsort label-211
SELECT - col2 - - + col0 + CAST ( - 13 AS INTEGER ) AS col1 FROM tab1 WHERE NOT - - 5 * - col2 <> - + 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT - MAX( + + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 * - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-212
SELECT - MAX ( + + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 * - col0 IS NOT NULL
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-214
SELECT ALL CAST( NULL AS SIGNED ) AS col0, - 68 AS col2 FROM tab2 AS cor0
----
NULL
-68
NULL
-68
NULL
-68

skipif mysql # not compatible
query II rowsort label-214
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, - 68 AS col2 FROM tab2 AS cor0
----
NULL
-68
NULL
-68
NULL
-68

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

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

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

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

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

query I rowsort
SELECT - col0 * - 44 - + + 46 AS col0 FROM tab0 AS cor0
----
3782
4222
614

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-219
SELECT + 59 + CAST( - 99 AS SIGNED ) FROM tab2
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-219
SELECT + 59 + CAST ( - 99 AS INTEGER ) FROM tab2
----
-40
-40
-40

query I rowsort
SELECT DISTINCT + 36 * col1 * col1 FROM tab0
----
15876
236196
36

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

query I rowsort
SELECT ALL 77 + + ( col2 ) FROM tab1
----
136
145
173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 + - ( + col2 ) col1 FROM tab1
----
-107
-135
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT + 57 + SUM( - + col0 ) FROM tab0
----
-142

skipif mysql # not compatible
query I rowsort label-224
SELECT + 57 + SUM ( - + col0 ) FROM tab0
----
-142

onlyif mysql # DIV for integer division: 
query I rowsort label-225
SELECT - col2 DIV + + col0 + col2 * + - 66 + + col0 FROM tab1
----
-3809
-4397
-6286

skipif mysql # not compatible
query I rowsort label-225
SELECT - col2 / + + col0 + col2 * + - 66 + + col0 FROM tab1
----
-3809
-4397
-6286

onlyif mysql # aggregate syntax: 
query II rowsort label-226
SELECT ALL - COUNT( * ) * 21, COUNT( * ) AS col1 FROM tab0
----
-63
3

skipif mysql # not compatible
query II rowsort label-226
SELECT ALL - COUNT ( * ) * 21, COUNT ( * ) AS col1 FROM tab0
----
-63
3

query I rowsort
SELECT DISTINCT col0 * + col0 * - col1 * - 42 AS col0 FROM tab1
----
1517250
1529388
16346694

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

onlyif mysql # DIV for integer division: 
query I rowsort label-229
SELECT DISTINCT - 16 DIV 46 + + col1 AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-229
SELECT DISTINCT - 16 / 46 + + col1 AS col1 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 BETWEEN + - 61 + col2 * - + col0 AND ( NULL )
----

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

query I rowsort
SELECT + col0 * 24 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL - col0 * - + col0 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-234
SELECT DISTINCT - - ( COUNT( + col0 ) ) DIV COUNT( * ) * + + 55 FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-234
SELECT DISTINCT - - ( COUNT ( + col0 ) ) / COUNT ( * ) * + + 55 FROM tab1 AS cor0
----
55

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-235
SELECT ALL + 78 col1, COUNT ( * ) FROM tab0 AS cor0
----
78
3

onlyif mysql # DIV for integer division: 
query I rowsort label-236
SELECT DISTINCT col0 DIV col0 + + + col2 FROM tab0 AS cor0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT col0 / col0 + + + col2 FROM tab0 AS cor0
----
100
11
48

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT + ( + + SUM( DISTINCT - + 17 ) ) FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-240
SELECT + ( + + SUM ( DISTINCT - + 17 ) ) FROM tab1
----
-17

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

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

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

query I rowsort
SELECT DISTINCT + ( - + col1 ) AS col0 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT col0 * - - col2 AS col2 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE ( - col0 ) <= + col0
----
-51
-85
-91

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

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

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

query I rowsort
SELECT DISTINCT + 3 * - 54 FROM tab2
----
-162

onlyif mysql # aggregate syntax: 
query II rowsort label-249
SELECT - COUNT( * ) AS col2, - 72 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-249
SELECT - COUNT ( * ) AS col2, - 72 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
-72

query I rowsort
SELECT + col2 + col0 - + - col1 * + col0 FROM tab0
----
1277
1924
293

query I rowsort
SELECT + 65 + + 38 FROM tab2 AS cor0
----
103
103
103

onlyif mysql # aggregate syntax: 
query I rowsort label-252
SELECT ALL - COUNT( DISTINCT col0 ) FROM tab0 AS cor0 WHERE ( NOT NULL >= 59 * - 52 )
----
0

skipif mysql # not compatible
query I rowsort label-252
SELECT ALL - COUNT ( DISTINCT col0 ) FROM tab0 AS cor0 WHERE ( NOT NULL >= 59 * - 52 )
----
0

query I rowsort
SELECT DISTINCT - ( - col2 ) + - 24 * + col1 * + + col0 AS col0 FROM tab2 AS cor0
----
-118232
-120542
-56281

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT ALL + - COUNT( - + 24 ) + + 63 AS col2 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-254
SELECT ALL + - COUNT ( - + 24 ) + + 63 AS col2 FROM tab1 AS cor0
----
60

query I rowsort
SELECT ALL - 70 + + + col1 AS col2 FROM tab1 cor0
----
-23
-56
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-256
SELECT DISTINCT 45 * - 60 + - col0 - + 16 DIV + 30 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2746
-2764
-2775

skipif mysql # not compatible
query I rowsort label-256
SELECT DISTINCT 45 * - 60 + - col0 - + 16 / + 30 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2746
-2764
-2775

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT 53 * + COUNT( ALL + col1 ) FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-257
SELECT 53 * + COUNT ( ALL + col1 ) FROM tab1
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-258
SELECT 61 * + - CAST( - ( + 23 ) AS SIGNED ) col2, - col2 FROM tab2
----
1403
-23
1403
-40
1403
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-258
SELECT 61 * + - CAST ( - ( + 23 ) AS INTEGER ) col2, - col2 FROM tab2
----
1403
-23
1403
-40
1403
-58

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

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

query I rowsort
SELECT ( + - 16 ) * + col1 FROM tab2
----
-1072
-1232
-816

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

onlyif mysql # DIV for integer division: 
query II rowsort label-262
SELECT 92, col1 DIV - col0 AS col2 FROM tab1
----
92
0
92
0
92
0

skipif mysql # not compatible
query II rowsort label-262
SELECT 92, col1 / - col0 AS col2 FROM tab1
----
92
0
92
0
92
0

query I rowsort
SELECT + col1 * + col0 - - col1 FROM tab2
----
2397
5005
5092

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT DISTINCT COUNT( DISTINCT 94 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-264
SELECT DISTINCT COUNT ( DISTINCT 94 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - col0 * + 24 + - col1 AS col0 FROM tab0 AS cor0
----
-2109
-2329
-441

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

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

query I rowsort
SELECT ALL - col2 * - col0 - 8 + + + 47 FROM tab2
----
1097
2599
4389

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-269
SELECT - 66 * col2, + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1518
NULL
-2640
NULL
-3828
NULL

skipif mysql # not compatible
query II rowsort label-269
SELECT - 66 * col2, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1518
NULL
-2640
NULL
-3828
NULL

query I rowsort
SELECT + - col0 * - + col2 + - col2 AS col0 FROM tab2 AS cor0
----
1035
2520
4292

query I rowsort
SELECT DISTINCT col2 * + + col0 FROM tab2 AS cor0 WHERE NOT + col1 * + col2 > col1
----

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

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

query I rowsort
SELECT ALL + col2 * + - col0 * - 41 AS col2 FROM tab1
----
200736
205615
253708

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT MIN( + 4 ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-274
SELECT MIN ( + 4 ) FROM tab0
----
4

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

query I rowsort
SELECT ALL 12 * col1 AS col1 FROM tab1
----
168
564
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-277
SELECT col2, - col0 * + col1 + + - CAST( - - col0 AS SIGNED ) FROM tab0
----
10
-1914
47
-1230
99
-194

skipif mysql # not compatible
query II rowsort label-277
SELECT col2, - col0 * + col1 + + - CAST ( - - col0 AS INTEGER ) FROM tab0
----
10
-1914
47
-1230
99
-194

query I rowsort
SELECT + 61 * + 79 * + - col1 * 93 * - col0 AS col1 FROM tab0 WHERE NOT 8 BETWEEN - col2 AND + 41
----

query II rowsort
SELECT DISTINCT - col2 AS col2, + 13 FROM tab1
----
-59
13
-68
13
-96
13

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

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

query I rowsort
SELECT + col0 * 40 AS col1 FROM tab2 AS cor0
----
1840
2560
3000

query I rowsort
SELECT 39 * 24 AS col2 FROM tab1 AS cor0
----
936
936
936

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

query II rowsort
SELECT DISTINCT col0 + 94, + ( - 16 ) AS col2 FROM tab2 cor0
----
140
-16
158
-16
169
-16

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 68 <= NULL
----

query I rowsort
SELECT + + ( col2 ) * - + col2 FROM tab0 cor0 WHERE 86 BETWEEN + + col2 * - col1 AND - 37
----

query I rowsort
SELECT - 87 * 20 + - - col1 FROM tab0 AS cor0
----
-1659
-1719
-1739

query I rowsort
SELECT ALL col1 * - + 42 + + col2 FROM tab1
----
-151
-1906
-492

query III rowsort
SELECT * FROM tab2 WHERE + + ( - - 44 ) NOT BETWEEN - col0 AND - - col2 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col2, - col1 * - col1 FROM tab2 AS cor0
----
23
2601
40
5929
58
4489

query I rowsort
SELECT DISTINCT - 73 / + 34 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-296
SELECT DISTINCT SUM( + col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-296
SELECT DISTINCT SUM ( + col1 ) FROM tab1 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT - COUNT( * ) - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-297
SELECT - COUNT ( * ) - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT DISTINCT 3 - - - 35 AS col1 FROM tab2
----
-32

query I rowsort
SELECT ALL + ( + col2 ) FROM tab1 WHERE NOT NULL < + - col1
----

query II rowsort
SELECT DISTINCT + ( col0 ) AS col1, col1 * col1 - - 65 * + - 49 AS col0 FROM tab0 cor0
----
15
3376
87
-2744
97
-3184

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-302
SELECT ALL + col0, CAST( NULL AS DECIMAL ) * 28 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-302
SELECT ALL + col0, CAST ( NULL AS REAL ) * 28 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query III rowsort
SELECT DISTINCT col0 AS col0, - ( col1 ) + - col1 + + - 53 + + col0 - + col1 * + 70 - + 97, - col1 AS col0 FROM tab0 AS cor0
----
9 values hashing to bf35ac02ae8620b60deb07a9218fe904

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT ALL - 29 * ( - MAX( ALL - + col2 ) ) FROM tab1 AS cor0
----
-1711

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL - 29 * ( - MAX ( ALL - + col2 ) ) FROM tab1 AS cor0
----
-1711

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

query I rowsort
SELECT ALL + + col2 * + + col0 AS col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT 87 * - + SUM( ALL col0 ) FROM tab1 AS cor0
----
-19749

skipif mysql # not compatible
query I rowsort label-310
SELECT 87 * - + SUM ( ALL col0 ) FROM tab1 AS cor0
----
-19749

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-313
SELECT col0 AS col0, - 94 DIV + col2 + - 74 FROM tab2 AS cor0
----
46
-78
64
-76
75
-75

skipif mysql # not compatible
query II rowsort label-313
SELECT col0 AS col0, - 94 / + col2 + - 74 FROM tab2 AS cor0
----
46
-78
64
-76
75
-75

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

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

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

skipif mysql # not compatible
query I rowsort label-315
SELECT ALL 3 / - col1 * col2 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + 13 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-318
SELECT - SUM( + 56 ) AS col1, - COUNT( * ) AS col2 FROM tab1
----
-168
-3

skipif mysql # not compatible
query II rowsort label-318
SELECT - SUM ( + 56 ) AS col1, - COUNT ( * ) AS col2 FROM tab1
----
-168
-3

query I rowsort
SELECT ALL + - 85 AS col0 FROM tab1 AS cor0
----
-85
-85
-85

query I rowsort
SELECT + col2 AS col1 FROM tab2 cor0 WHERE NOT ( col0 ) + col2 + - + col2 / - + 22 * - + col2 * + col2 * + - 30 <> col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - ( - col1 ) ) col1, - col0 * - 19 * ( col2 ) * + ( - + col2 ) * - col1 AS col1 FROM tab1 AS cor0
----
14
125024256
47
375760112
5
28109075

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT + MAX( ALL + col1 ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-323
SELECT + MAX ( ALL + col1 ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-324
SELECT 79 * 0 * - + col1 + 22 DIV - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-324
SELECT 79 * 0 * - + col1 + 22 / - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-325
SELECT DISTINCT + - col0 * col0 DIV col2 + col1 + + + col0 + - col1 FROM tab1 AS cor0
----
-30
-37
24

skipif mysql # not compatible
query I rowsort label-325
SELECT DISTINCT + - col0 * col0 / col2 + col1 + + + col0 + - col1 FROM tab1 AS cor0
----
-30
-37
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 17 * + - col2 col2 FROM tab1 cor0
----
-1003
-1156
-1632

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-328
SELECT DISTINCT - + col1 + + + col1 * - 3, ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-324
NULL
-4
NULL
-84
NULL

skipif mysql # not compatible
query II rowsort label-328
SELECT DISTINCT - + col1 + + + col1 * - 3, ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-324
NULL
-4
NULL
-84
NULL

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

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

query I rowsort
SELECT ALL 91 * - - col2 + 19 FROM tab1
----
5388
6207
8755

query I rowsort
SELECT 53 - + - col1 * - + 67 FROM tab2
----
-3364
-4436
-5106

query I rowsort
SELECT - 99 * - col1 - + ( + col2 ) + + 38 AS col2 FROM tab2
----
5064
6613
7621

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-335
SELECT ALL + SUM( CAST( + col1 AS SIGNED ) ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-335
SELECT ALL + SUM ( CAST ( + col1 AS INTEGER ) ) FROM tab2
----
195

query I rowsort
SELECT DISTINCT - ( - 48 ) AS col1 FROM tab1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT COUNT( * ) + - MAX( DISTINCT + col2 ) FROM tab2 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-337
SELECT COUNT ( * ) + - MAX ( DISTINCT + col2 ) FROM tab2 WHERE NULL < NULL
----
NULL

query I rowsort
SELECT - col2 + - + 25 AS col2 FROM tab0 AS cor0
----
-124
-35
-72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT DISTINCT - COUNT( * ) + + 38 AS col2 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-340
SELECT DISTINCT - COUNT ( * ) + + 38 AS col2 FROM tab0 AS cor0
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + + 59 col1 FROM tab2
----
-13
16
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT - COUNT( * ) * - 47 FROM tab0 WHERE NOT + 87 > + col0
----
94

skipif mysql # not compatible
query I rowsort label-343
SELECT - COUNT ( * ) * - 47 FROM tab0 WHERE NOT + 87 > + col0
----
94

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

query I rowsort
SELECT ALL - col0 * - + 36 * 39 + 28 FROM tab1 AS cor0
----
119368
127792
71632

onlyif mysql # DIV for integer division: 
query I rowsort label-346
SELECT ALL + + 59 DIV + + 97 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL + + 59 / + + 97 FROM tab0 AS cor0
----
0
0
0

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

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

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

query I rowsort
SELECT ALL + 7 * + 86 AS col2 FROM tab2 cor0
----
602
602
602

query I rowsort
SELECT - 65 * - - 11 FROM tab2 AS cor0
----
-715
-715
-715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-351
SELECT DISTINCT + MAX( ALL + 40 ) * 82 AS col2, - CAST( - - CAST( - - COUNT( * ) AS SIGNED ) AS SIGNED ) col2 FROM tab1 AS cor0
----
3280
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-351
SELECT DISTINCT + MAX ( ALL + 40 ) * 82 AS col2, - CAST ( - - CAST ( - - COUNT ( * ) AS INTEGER ) AS INTEGER ) col2 FROM tab1 AS cor0
----
3280
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT - - 97 * - COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-353
SELECT - - 97 * - COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-354
SELECT - ( 89 ) DIV - + col2 AS col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-354
SELECT - ( 89 ) / - + col2 AS col2 FROM tab2
----
1
2
3

query I rowsort
SELECT DISTINCT + col2 + - - 25 AS col0 FROM tab0 cor0
----
124
35
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-356
SELECT DISTINCT + 54 + + + 40 DIV + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-356
SELECT DISTINCT + 54 + + + 40 / + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
67

query I rowsort
SELECT + col2 * - - 4 AS col1 FROM tab2
----
160
232
92

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT + COUNT( * ) * ( ( - MAX( + + 66 ) ) ) col1 FROM tab2
----
-198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-358
SELECT + COUNT ( * ) * ( ( - MAX ( + + 66 ) ) ) col1 FROM tab2
----
-198

onlyif mysql # aggregate syntax: 
query II rowsort label-359
SELECT ALL COUNT( * ) * - 67, COUNT( * ) AS col2 FROM tab2
----
-201
3

skipif mysql # not compatible
query II rowsort label-359
SELECT ALL COUNT ( * ) * - 67, COUNT ( * ) AS col2 FROM tab2
----
-201
3

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

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

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

query I rowsort
SELECT + col0 + + - col0 + + 1 AS col1 FROM tab0 AS cor0
----
1
1
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 cor0 WHERE - col1 * col1 NOT BETWEEN + col1 * + 89 AND col0
----
-3

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE - col1 * col1 NOT BETWEEN + col1 * + 89 AND col0
----
-3

query I rowsort
SELECT - - col1 + + 20 * + col1 * - 49 AS col1 FROM tab1 cor0
----
-13706
-46013
-4895

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT - + COUNT( * ) col2 FROM tab1 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-366
SELECT - + COUNT ( * ) col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT col0 * + col0 + col2 * + 23 FROM tab2 AS cor0
----
2645
5016
6959

query I rowsort
SELECT DISTINCT col2 + 97 * col0 * + col0 AS col1 FROM tab0 AS cor0
----
21872
734203
912772

query I rowsort
SELECT col0 / col2 * col2 AS col2 FROM tab2 cor0 WHERE - col1 + - + col1 IN ( - 87 * - col2 - + ( col0 ) )
----

query I rowsort
SELECT + + 94 + - col1 + col1 * col0 AS col1 FROM tab1 AS cor0
----
4324
514
794

onlyif mysql # DIV for integer division: 
query I rowsort label-371
SELECT + col2 DIV - ( + col0 ) * - col0 + - - 17 * - col2 + - col0 + + 89 FROM tab2
----
-348
-655
-972

skipif mysql # not compatible
query I rowsort label-371
SELECT + col2 / - ( + col0 ) * - col0 + - - 17 * - col2 + - col0 + + 89 FROM tab2
----
-348
-655
-972

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT ALL + 96 - + COUNT( * ) AS col2 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL + 96 - + COUNT ( * ) AS col2 FROM tab1
----
93

query I rowsort
SELECT + ( col2 ) * - 50 FROM tab0
----
-2350
-4950
-500

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT ALL + MIN( DISTINCT + 92 ) AS col1 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL + MIN ( DISTINCT + 92 ) AS col1 FROM tab2
----
92

query I rowsort
SELECT + - 8 * - col0 AS col1 FROM tab0 AS cor0
----
120
696
776

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-377
SELECT + COUNT( + - 42 ) * - COUNT( * ) DIV MIN( DISTINCT 92 ) col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-377
SELECT + COUNT ( + - 42 ) * - COUNT ( * ) / MIN ( DISTINCT 92 ) col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col0 - 44 FROM tab2 AS cor0
----
2
20
31

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

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

query II rowsort
SELECT + col0 AS col1, 21 + + + col2 FROM tab0 AS cor0
----
15
68
87
31
97
120

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-381
SELECT ALL CAST( + col2 AS DECIMAL ) FROM tab0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-381
SELECT ALL CAST ( + col2 AS REAL ) FROM tab0 WHERE ( NULL ) IS NOT NULL
----

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

query I rowsort
SELECT col2 * + col1 - - 11 AS col2 FROM tab2 AS cor0
----
1184
3091
3897

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-384
SELECT - + CAST( + col2 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-384
SELECT - + CAST ( + col2 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query II rowsort
SELECT + + 20 * + - col0, col0 FROM tab2 AS cor0
----
-1280
64
-1500
75
-920
46

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT ALL 43 * + 86 * - + COUNT( * ) AS col1 FROM tab1
----
-11094

skipif mysql # not compatible
query I rowsort label-386
SELECT ALL 43 * + 86 * - + COUNT ( * ) AS col1 FROM tab1
----
-11094

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 12 AS col2, col0 col0 FROM tab2
----
12
46
12
64
12
75

query I rowsort
SELECT col2 * - - ( + col0 ) FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT DISTINCT - 36 * - - COUNT( * ) AS col0 FROM tab1
----
-108

skipif mysql # not compatible
query I rowsort label-390
SELECT DISTINCT - 36 * - - COUNT ( * ) AS col0 FROM tab1
----
-108

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

query I rowsort
SELECT 54 * 35 FROM tab2
----
1890
1890
1890

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE - 50 - - 87 IS NULL
----

query I rowsort
SELECT ALL - 76 + col1 AS col1 FROM tab0 AS cor0
----
-55
-75
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-395
SELECT + ( + - 13 ) * ( 11 ) + - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE - col0 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-395
SELECT + ( + - 13 ) * ( 11 ) + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE - col0 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT DISTINCT COUNT( * ) * + - 61 FROM tab2
----
-183

skipif mysql # not compatible
query I rowsort label-396
SELECT DISTINCT COUNT ( * ) * + - 61 FROM tab2
----
-183

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

query I rowsort
SELECT DISTINCT + - ( - - col1 ) + - + col0 FROM tab1 AS cor0
----
-138
-65
-90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 1 NOT BETWEEN ( + col2 ) AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE NOT - 15 * + 92 * - col2 < NULL
----

query I rowsort
SELECT DISTINCT - col1 * + col0 - + col0 + - ( + col0 ) FROM tab2 AS cor0
----
-2438
-5056
-5175

query I rowsort
SELECT ALL + - 58 FROM tab0 AS cor0
----
-58
-58
-58

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-405
SELECT ALL - MIN( ALL - 99 ) + 66 DIV - COUNT( * ) FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-405
SELECT ALL - MIN ( ALL - 99 ) + 66 / - COUNT ( * ) FROM tab0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-406
SELECT ALL col1 * + 33 * - 70 - + col2 * col1 DIV + col0 AS col0 FROM tab2
----
-117835
-154821
-177918

skipif mysql # not compatible
query I rowsort label-406
SELECT ALL col1 * + 33 * - 70 - + col2 * col1 / + col0 AS col0 FROM tab2
----
-117835
-154821
-177918

query I rowsort
SELECT col2 + 81 FROM tab2
----
104
121
139

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-409
SELECT CAST ( NULL AS INTEGER ) / - + col1 AS col1, col2 col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT - col1 * - 78 * + col0 AS col0 FROM tab1
----
33150
333606
55692

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 <> col2 * + col2
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-416
SELECT - - CAST( - - MIN( col1 ) AS SIGNED ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-416
SELECT - - CAST ( - - MIN ( col1 ) AS INTEGER ) FROM tab2 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT - 63 * - COUNT( * ) * + + 60 AS col2 FROM tab2 AS cor0
----
11340

skipif mysql # not compatible
query I rowsort label-417
SELECT - 63 * - COUNT ( * ) * + + 60 AS col2 FROM tab2 AS cor0
----
11340

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-418
SELECT DISTINCT - col2 * - col1 * 36 / 23 * - ( col2 ) AS col0 FROM tab0 WHERE + CAST( NULL AS DECIMAL ) < - 66
----

skipif mysql # not compatible
query I rowsort label-418
SELECT DISTINCT - col2 * - col1 * 36 / 23 * - ( col2 ) AS col0 FROM tab0 WHERE + CAST ( NULL AS REAL ) < - 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT DISTINCT + COUNT( * ) / - + 80 * - AVG ( 76 ) + - SUM( col0 ) + - COUNT( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN - col2 AND + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-419
SELECT DISTINCT + COUNT ( * ) / - + 80 * - AVG ( 76 ) + - SUM ( col0 ) + - COUNT ( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN - col2 AND + - col0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 67 + - col1 <> - ( - 25 ) * + col1 + + col1 + - col2
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-422
SELECT + CAST( NULL AS SIGNED ) + - - 18 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-422
SELECT + CAST ( NULL AS INTEGER ) + - - 18 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 / + 52 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT DISTINCT - COUNT( * ) * - 22 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-424
SELECT DISTINCT - COUNT ( * ) * - 22 FROM tab2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT + - COUNT( * ) + + + MAX( - col0 ) + + 10 FROM tab2 WHERE NULL IS NULL
----
-39

skipif mysql # not compatible
query I rowsort label-425
SELECT + - COUNT ( * ) + + + MAX ( - col0 ) + + 10 FROM tab2 WHERE NULL IS NULL
----
-39

query I rowsort
SELECT ALL - 92 FROM tab2 WHERE NOT NULL NOT BETWEEN - - col0 + + 32 AND ( + 56 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-427
SELECT DISTINCT - 45 + AVG ( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE col1 * - CAST( NULL AS SIGNED ) >= col0
----
NULL

skipif mysql # not compatible
query I rowsort label-427
SELECT DISTINCT - 45 + AVG ( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE col1 * - CAST ( NULL AS INTEGER ) >= col0
----
NULL

query I rowsort
SELECT ALL ( 60 ) FROM tab0, tab1 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT - 26 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT DISTINCT + SUM( ALL 95 ) AS col0 FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-430
SELECT DISTINCT + SUM ( ALL 95 ) AS col0 FROM tab2 AS cor0
----
285

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-433
SELECT - - col2 * col0 DIV - col1 + - - ( + col2 ) + + 24 AS col1 FROM tab2 AS cor0
----
18
27
31

skipif mysql # not compatible
query I rowsort label-433
SELECT - - col2 * col0 / - col1 + - - ( + col2 ) + + 24 AS col1 FROM tab2 AS cor0
----
18
27
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-434
SELECT ALL + + ( - 14 ) * - CAST( - - MAX( DISTINCT - 99 ) AS SIGNED ) + - 97 AS col1 FROM tab0 cor0 WHERE col2 - + 19 * + + col2 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-434
SELECT ALL + + ( - 14 ) * - CAST ( - - MAX ( DISTINCT - 99 ) AS INTEGER ) + - 97 AS col1 FROM tab0 cor0 WHERE col2 - + 19 * + + col2 <> NULL
----
NULL

query I rowsort
SELECT + 82 * + col1 + + 39 * - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-16165
-162949
-26698

query I rowsort
SELECT + col0 + - - col1 * ( - - 36 ) AS col1 FROM tab0 AS cor0
----
133
2931
843

query I rowsort
SELECT - + 23 AS col1 FROM tab2 AS cor0 WHERE NULL <= col1
----

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 + + 58 * - col2 FROM tab2
----
-1288
-2256
-3289

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN 57 * + - 80 + + col0 - + 72 AND ( - col0 )
----

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

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

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

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

query II rowsort
SELECT DISTINCT col2, 46 FROM tab1
----
59
46
68
46
96
46

onlyif mysql # aggregate syntax: 
query II rowsort label-447
SELECT - COUNT( * ) AS col2, - COUNT( DISTINCT - + 8 ) AS col2 FROM tab1
----
-3
-1

skipif mysql # not compatible
query II rowsort label-447
SELECT - COUNT ( * ) AS col2, - COUNT ( DISTINCT - + 8 ) AS col2 FROM tab1
----
-3
-1

query I rowsort
SELECT - ( + col0 ) - 72 + col0 FROM tab2 WHERE NOT - + col0 * - + col1 + - - col0 + - + 16 IS NULL
----
-72
-72
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-449
SELECT - - col1 DIV + col1 + + + 13 AS col0 FROM tab2 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-449
SELECT - - col1 / + col1 + + + 13 AS col0 FROM tab2 AS cor0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT DISTINCT - COUNT( + col1 ) * + + COUNT( * ) + 84 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-450
SELECT DISTINCT - COUNT ( + col1 ) * + + COUNT ( * ) + 84 FROM tab1 AS cor0
----
75

query I rowsort
SELECT ALL + 35 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

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

query I rowsort
SELECT - 81 * col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - 90 * col1 FROM tab0 AS cor0
----
1890
7290
90

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT DISTINCT + ( + COUNT( * ) ) + 53 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT + ( + COUNT ( * ) ) + 53 FROM tab2 AS cor0
----
56

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 >= - 24
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - 12 / col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col1 BETWEEN - - col0 AND - col1
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-462
SELECT + col2 + ( + CAST( NULL AS SIGNED ) ) + - + 21 + + + 5 - + col2 FROM tab0 WHERE ( NOT NULL < + col1 + - 68 * - - ( + 60 ) / 27 + - 45 * + ( - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-462
SELECT + col2 + ( + CAST ( NULL AS INTEGER ) ) + - + 21 + + + 5 - + col2 FROM tab0 WHERE ( NOT NULL < + col1 + - 68 * - - ( + 60 ) / 27 + - 45 * + ( - CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT - ( SUM( 8 ) ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-463
SELECT - ( SUM ( 8 ) ) FROM tab1
----
-24

query I rowsort
SELECT + + 20 AS col1 FROM tab2 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT COUNT( * ) * - 70 AS col0 FROM tab1
----
-210

skipif mysql # not compatible
query I rowsort label-465
SELECT COUNT ( * ) * - 70 AS col0 FROM tab1
----
-210

onlyif mysql # DIV for integer division: 
query II rowsort label-466
SELECT ALL - + 39 + + 55 * + col0 AS col2, col0 DIV + col2 AS col2 FROM tab2 AS cor0
----
2491
2
3481
1
4086
1

skipif mysql # not compatible
query II rowsort label-466
SELECT ALL - + 39 + + 55 * + col0 AS col2, col0 / + col2 AS col2 FROM tab2 AS cor0
----
2491
2
3481
1
4086
1

query I rowsort
SELECT - 53 + - 80 AS col0 FROM tab0 AS cor0
----
-133
-133
-133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 + 73 col1 FROM tab1 WHERE ( 23 ) IS NOT NULL
----
149
149
149

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 67 + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 58 AS col0 FROM tab0 WHERE NOT NULL IN ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 44 + + col0 / + 37 NOT IN ( + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-473
SELECT DISTINCT 80 DIV col2 col1 FROM tab2
----
1
2
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-473
SELECT DISTINCT 80 / col2 col1 FROM tab2
----
1
2
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 35 <= col2 + 42
----

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

query I rowsort
SELECT DISTINCT col2 - - 12 FROM tab2
----
35
52
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 + + 17 col1 FROM tab0
----
100
100
100

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-479
SELECT SUM( ALL col0 ) DIV - MAX( col1 + col2 ) + - COUNT( col0 ) FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-479
SELECT SUM ( ALL col0 ) / - MAX ( col1 + col2 ) + - COUNT ( col0 ) FROM tab1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-480
SELECT 32 / CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-480
SELECT 32 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-481
SELECT 32 DIV col1 FROM tab1
----
0
2
6

skipif mysql # not compatible
query I rowsort label-481
SELECT 32 / col1 FROM tab1
----
0
2
6

query I rowsort
SELECT DISTINCT 95 - - col0 AS col0 FROM tab1
----
146
180
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-483
SELECT DISTINCT + col0 FROM tab0 WHERE + 63 <= - col1 + - CAST( - 62 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-483
SELECT DISTINCT + col0 FROM tab0 WHERE + 63 <= - col1 + - CAST ( - 62 AS INTEGER )
----

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

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NULL > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-486
SELECT ALL col2 DIV col0 + col1 AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-486
SELECT ALL col2 / col0 + col1 AS col1 FROM tab2
----
51
67
77

query I rowsort
SELECT 62 + - 18 AS col1 FROM tab0
----
44
44
44

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + 42 AND NULL
----

query I rowsort
SELECT 0 + - col2 AS col0 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT COUNT( * ) * - 10 FROM tab1 WHERE ( NULL ) BETWEEN 43 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-490
SELECT COUNT ( * ) * - 10 FROM tab1 WHERE ( NULL ) BETWEEN 43 AND NULL
----
0

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

query III rowsort
SELECT * FROM tab2 WHERE NOT 38 * + 0 >= col1 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-493
SELECT CAST( col1 AS SIGNED ) + - col1 * - ( - col1 ) AS col1 FROM tab0
----
-420
-6480
0

skipif mysql # not compatible
query I rowsort label-493
SELECT CAST ( col1 AS INTEGER ) + - col1 * - ( - col1 ) AS col1 FROM tab0
----
-420
-6480
0

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

query I rowsort
SELECT DISTINCT - col1 * + 77 FROM tab1 cor0
----
-1078
-3619
-385

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-499
SELECT ALL 14 * + CAST( - col1 / 56 AS SIGNED ) FROM tab0 AS cor0
----
-14
0
0

skipif mysql # not compatible
query I rowsort label-499
SELECT ALL 14 * + CAST ( - col1 / 56 AS INTEGER ) FROM tab0 AS cor0
----
-14
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT ALL - 30 * + COUNT( * ) AS col2 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-500
SELECT ALL - 30 * + COUNT ( * ) AS col2 FROM tab1
----
-90

query I rowsort
SELECT 80 * col1 FROM tab2
----
4080
5360
6160

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-503
SELECT DISTINCT - COUNT( * ) DIV 39 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-503
SELECT DISTINCT - COUNT ( * ) / 39 FROM tab0
----
0

query I rowsort
SELECT - 97 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT ALL 44 FROM tab1 WHERE NOT ( - 28 ) NOT IN ( col1 - 59 )
----

query I rowsort
SELECT 42 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

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

query I rowsort
SELECT ALL - - col1 + 96 AS col1 FROM tab2 AS cor0
----
147
163
173

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

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT MIN( + col2 ) * - COUNT( * ) FROM tab1 cor0
----
-177

skipif mysql # not compatible
query I rowsort label-510
SELECT MIN ( + col2 ) * - COUNT ( * ) FROM tab1 cor0
----
-177

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 * 12 col2 FROM tab1 AS cor0
----
182
611
65

onlyif mysql # DIV for integer division: 
query I rowsort label-513
SELECT ALL + + 70 DIV - col1 AS col2 FROM tab0 AS cor0
----
-3
-70
0

skipif mysql # not compatible
query I rowsort label-513
SELECT ALL + + 70 / - col1 AS col2 FROM tab0 AS cor0
----
-3
-70
0

query I rowsort
SELECT + col2 + 62 FROM tab1 cor0
----
121
130
158

onlyif mysql # DIV for integer division: 
query I rowsort label-515
SELECT + col0 + col1 DIV col0 AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-515
SELECT + col0 + col1 / col0 AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT + 30 * col0 FROM tab2 WHERE 79 BETWEEN col2 + col0 AND - 24
----

query I rowsort
SELECT 23 + + - 18 FROM tab1
----
5
5
5

query I rowsort
SELECT + 32 * 46 * 33 + + 80 FROM tab0
----
48656
48656
48656

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

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

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

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

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

query I rowsort
SELECT col1 + - col0 * + 26 FROM tab1
----
-1312
-2205
-2319

query I rowsort
SELECT ( col2 ) AS col0 FROM tab1 WHERE col2 * col1 >= 80
----
59
68
96

query I rowsort
SELECT - + 68 * + ( - 11 ) FROM tab2 AS cor0
----
748
748
748

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 95 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-527
SELECT DISTINCT - - col0 + - - 64 + - CAST( 99 AS SIGNED ) * 20 AS col2 FROM tab1 AS cor0
----
-1825
-1831
-1865

skipif mysql # not compatible
query I rowsort label-527
SELECT DISTINCT - - col0 + - - 64 + - CAST ( 99 AS INTEGER ) * 20 AS col2 FROM tab1 AS cor0
----
-1825
-1831
-1865

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

query I rowsort
SELECT - - 30 - 65 AS col1 FROM tab2 AS cor0
----
-35
-35
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + 21 ) - 79 * - 17 col0 FROM tab1 AS cor0
----
1364
1364
1364

query I rowsort
SELECT ALL + ( ( + 8 ) ) * - 46 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 769d27922d225e3f1c26527810e15e46

query I rowsort
SELECT - 50 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 + - + col1 AS col1 FROM tab0
----
-66
66
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-534
SELECT DISTINCT 33 - - - 5 * - 97 * - CAST( NULL AS SIGNED ) - 64 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-534
SELECT DISTINCT 33 - - - 5 * - 97 * - CAST ( NULL AS INTEGER ) - 64 FROM tab1
----
NULL

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

query I rowsort
SELECT + 6 + - col2 AS col0 FROM tab0 AS cor0
----
-4
-41
-93

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-538
SELECT DISTINCT - CAST( + - ( - col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-538
SELECT DISTINCT - CAST ( + - ( - col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-10
-47
-99

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

query II rowsort
SELECT col2, + 78 AS col1 FROM tab2 AS cor0
----
23
78
40
78
58
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-541
SELECT ALL CAST( - 82 AS SIGNED ) FROM tab2
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-541
SELECT ALL CAST ( - 82 AS INTEGER ) FROM tab2
----
-82
-82
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * col2 col0, col0 AS col0 FROM tab1
----
-4896
51
-5015
85
-6188
91

query I rowsort
SELECT DISTINCT + 35 * 38 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
1330

query I rowsort
SELECT col2 * - ( - - col0 ) AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-546
SELECT COUNT( ALL - col0 ) DIV + COUNT( * ) + - 29 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-28

skipif mysql # not compatible
query I rowsort label-546
SELECT COUNT ( ALL - col0 ) / + COUNT ( * ) + - 29 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-28

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

query I rowsort
SELECT - 14 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-550
SELECT 57 + + + col0 DIV - col2 FROM tab2
----
55
56
56

skipif mysql # not compatible
query I rowsort label-550
SELECT 57 + + + col0 / - col2 FROM tab2
----
55
56
56

onlyif mysql # DIV for integer division: 
query I rowsort label-551
SELECT - 61 DIV - - col0 + - ( 61 ) col0 FROM tab2
----
-61
-61
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-551
SELECT - 61 / - - col0 + - ( 61 ) col0 FROM tab2
----
-61
-61
-62

query I rowsort
SELECT - - 65 + - col1 - col1 * + col0 FROM tab0 AS cor0
----
-1231
-1783
-33

query I rowsort
SELECT + col0 + + - 37 FROM tab1 AS cor0
----
14
48
54

query I rowsort
SELECT ALL - col1 + - ( col0 ) * - - col2 + + 14 AS col2 FROM tab0 AS cor0
----
-772
-877
-9590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-555
SELECT DISTINCT 86 + MAX( col0 ) DIV - + 83 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-555
SELECT DISTINCT 86 + MAX ( col0 ) / - + 83 FROM tab2 AS cor0
----
86

query I rowsort
SELECT 58 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT ALL - + ( + 93 ) * - COUNT( * ) + - SUM( - col2 ) + 30 AS col1 FROM tab1 AS cor0
----
532

skipif mysql # not compatible
query I rowsort label-557
SELECT ALL - + ( + 93 ) * - COUNT ( * ) + - SUM ( - col2 ) + 30 AS col1 FROM tab1 AS cor0
----
532

query I rowsort
SELECT ALL - 13 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-559
SELECT * FROM tab0 WHERE - CAST( 7 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-559
SELECT * FROM tab0 WHERE - CAST ( 7 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT - ( - col2 ) + - - 43 + - col2 AS col2 FROM tab2 WHERE ( NULL ) IS NULL
----
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col2 col2 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT 2 + - col0 * - + 99 FROM tab2
----
4556
6338
7427

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-563
SELECT - col0 FROM tab0 WHERE + CAST( col2 AS SIGNED ) NOT IN ( - col1 * col1 + - col2 * col1 )
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-563
SELECT - col0 FROM tab0 WHERE + CAST ( col2 AS INTEGER ) NOT IN ( - col1 * col1 + - col2 * col1 )
----
-15
-87
-97

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

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

query II rowsort
SELECT ALL + col1 * - col1 AS col1, - col2 * + ( col2 ) FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-568
SELECT col1 + 93 AS col2 FROM tab2 WHERE - + CAST( NULL AS SIGNED ) + - - 12 > - 15 - + ( - 11 )
----

skipif mysql # not compatible
query I rowsort label-568
SELECT col1 + 93 AS col2 FROM tab2 WHERE - + CAST ( NULL AS INTEGER ) + - - 12 > - 15 - + ( - 11 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-571
SELECT ALL + - CAST( - + 29 AS SIGNED ) FROM tab1 cor0
----
29
29
29

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT - 66 NOT BETWEEN + col1 - + 5 * - col0 * col0 AND NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT + + col2 * - col0 * - ( col2 ) - col2 FROM tab1 cor0
----
295826
420716
469920

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + col0 ) > + 21
----
15
81
47

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-577
SELECT DISTINCT 69 AS col2, + ( + COUNT ( * ) ) col1 FROM tab1
----
69
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT MIN( DISTINCT - 12 ) col0 FROM tab2
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-579
SELECT MIN ( DISTINCT - 12 ) col0 FROM tab2
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT ALL 49 * + col1 * - + col1 AS col1 FROM tab2
----
-127449
-219961
-290521

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT DISTINCT + 23 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-582
SELECT DISTINCT + 23 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
26

query I rowsort
SELECT ALL 22 * - 90 * - 9 FROM tab2
----
17820
17820
17820

query II rowsort
SELECT ALL 88 * - 63 AS col0, - col2 FROM tab2
----
-5544
-23
-5544
-40
-5544
-58

query III rowsort
SELECT * FROM tab0 WHERE ( NULL > NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-586
SELECT 76 + ( + - CAST( NULL AS SIGNED ) ) - + 91 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-586
SELECT 76 + ( + - CAST ( NULL AS INTEGER ) ) - + 91 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 * - + col0 * 35 IS NOT NULL
----

query I rowsort
SELECT - - col0 + 13 + + col2 AS col1 FROM tab1 WHERE NULL IN ( + + 4 * - col2, + col2 * - col2 )
----

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

query I rowsort
SELECT + 66 * - + col0 FROM tab2 AS cor0
----
-3036
-4224
-4950

query I rowsort
SELECT - col2 * - - col1 * + col2 * col2 FROM tab2 AS cor0 WHERE col1 / - + col1 * + col1 IS NOT NULL
----
-13072504
-4928000
-620517

query I rowsort
SELECT ALL + col2 + - - 76 FROM tab0 AS cor0
----
123
175
86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT DISTINCT + - 12 + + + MAX( DISTINCT + 71 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-594
SELECT DISTINCT + - 12 + + + MAX ( DISTINCT + 71 ) FROM tab1 AS cor0
----
59

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

query I rowsort
SELECT ALL - - col0 + + 82 AS col0 FROM tab0 AS cor0
----
169
179
97

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NULL > - 96
----
0

skipif mysql # not compatible
query I rowsort label-597
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NULL > - 96
----
0

query I rowsort
SELECT - 25 + + col2 AS col2 FROM tab2 AS cor0
----
-2
15
33

onlyif mysql # aggregate syntax: 
query II rowsort label-599
SELECT DISTINCT - MIN( ALL - - ( col1 ) ) AS col1, 8 FROM tab2 AS cor0 WHERE - col0 BETWEEN ( + col0 ) AND col1
----
NULL
8

skipif mysql # not compatible
query II rowsort label-599
SELECT DISTINCT - MIN ( ALL - - ( col1 ) ) AS col1, 8 FROM tab2 AS cor0 WHERE - col0 BETWEEN ( + col0 ) AND col1
----
NULL
8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 54 / - 18 >= + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col1 + - ( + 92 ), - col1 AS col1 FROM tab1
----
-45
-47
-78
-14
-87
-5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT ALL + COUNT( * ) + - + COUNT( * ) - - + 76 col0 FROM tab1
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-603
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) - - + 76 col0 FROM tab1
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-604
SELECT - COUNT( * ) + + 80 + - 31 AS col2, - ( + 13 ) FROM tab0
----
46
-13

skipif mysql # not compatible
query II rowsort label-604
SELECT - COUNT ( * ) + + 80 + - 31 AS col2, - ( + 13 ) FROM tab0
----
46
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT - COUNT( * ) * + ( + - COUNT( * ) ) + 61 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-605
SELECT - COUNT ( * ) * + ( + - COUNT ( * ) ) + 61 FROM tab0
----
70

query I rowsort
SELECT DISTINCT - col1 * + - col2 * col1 AS col2 FROM tab2
----
237160
260362
59823

query I rowsort
SELECT DISTINCT - col1 + - 32 AS col2 FROM tab0
----
-113
-33
-53

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-608
SELECT COUNT ( + 66 ) col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT ALL - COUNT( * ) - 36 + + - 51 AS col1 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-609
SELECT ALL - COUNT ( * ) - 36 + + - 51 AS col1 FROM tab2
----
-90

query I rowsort
SELECT - col2 FROM tab2 WHERE - - col0 * + col0 < + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-611
SELECT DISTINCT + - CAST( col0 AS SIGNED ) + 11 AS col0, - col1 AS col1 FROM tab2 AS cor0
----
-35
-51
-53
-77
-64
-67

skipif mysql # not compatible
query II rowsort label-611
SELECT DISTINCT + - CAST ( col0 AS INTEGER ) + 11 AS col0, - col1 AS col1 FROM tab2 AS cor0
----
-35
-51
-53
-77
-64
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-612
SELECT - + 40 * - + COUNT( * ) - + + CAST( NULL AS SIGNED ) - + COUNT( * ) / + MIN( DISTINCT 9 ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-612
SELECT - + 40 * - + COUNT ( * ) - + + CAST ( NULL AS INTEGER ) - + COUNT ( * ) / + MIN ( DISTINCT 9 ) AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-613
SELECT ALL col1 + - col1 FROM tab1 cor0 WHERE NOT CAST( - col2 AS SIGNED ) + + 12 + + + col2 * + col1 * col2 <= ( + + 33 * - + col2 + - col0 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL col1 + - col1 FROM tab1 cor0 WHERE NOT CAST ( - col2 AS INTEGER ) + + 12 + + + col2 * + col1 * col2 <= ( + + 33 * - + col2 + - col0 )
----
0
0
0

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= 18 * 9
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 90 + + col0 + + - col2 + - col1 < - + col0 * - col2 * + 44 + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT DISTINCT - ( - + COUNT( * ) ) + 8 * ( + - MIN( DISTINCT col0 ) ) + + 16 AS col2 FROM tab0 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT - ( - + COUNT ( * ) ) + 8 * ( + - MIN ( DISTINCT col0 ) ) + + 16 AS col2 FROM tab0 AS cor0
----
-101

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + 94 * + 42 BETWEEN NULL AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + 22 - - - 76, col1 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 AS col2, col0 col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= + 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT DISTINCT - SUM( ALL + + 91 ) AS col0 FROM tab1 cor0
----
-273

skipif mysql # not compatible
query I rowsort label-626
SELECT DISTINCT - SUM ( ALL + + 91 ) AS col0 FROM tab1 cor0
----
-273

query II rowsort
SELECT + col2 * + - col2 AS col2, col0 * - col1 FROM tab1
----
-3481
-425
-4624
-4277
-9216
-714

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

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

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

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

query II rowsort
SELECT + col1 * col1, col1 AS col1 FROM tab1
----
196
14
2209
47
25
5

query II rowsort
SELECT - ( + col2 ) AS col0, - ( - + 20 ) FROM tab2 AS cor0
----
-23
20
-40
20
-58
20

query I rowsort
SELECT ALL + 82 + - col0 AS col2 FROM tab0 cor0
----
-15
-5
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 91 <> - 60
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 >= + col1 - + + col0
----
91
47
68

query I rowsort
SELECT DISTINCT - col0 * 56 AS col1 FROM tab1
----
-2856
-4760
-5096

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT - 32 * COUNT( * ) AS col2 FROM tab2 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-636
SELECT - 32 * COUNT ( * ) AS col2 FROM tab2 cor0
----
-96

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-637
SELECT + 65 col0, + CAST ( - - col2 AS INTEGER ) FROM tab0 AS cor0
----
65
10
65
47
65
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT DISTINCT - + COUNT( * ) + COUNT( * ) + MAX( 97 ) AS col2 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-639
SELECT DISTINCT - + COUNT ( * ) + COUNT ( * ) + MAX ( 97 ) AS col2 FROM tab2 AS cor0
----
97

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL <= + 41
----

onlyif mysql # DIV for integer division: 
query I rowsort label-641
SELECT ALL + col2 + + + col1 DIV + 61 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL + col2 + + + col1 / + 61 FROM tab1 cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT DISTINCT 28 + - + ( + 32 ) + + COUNT( * ) * - + SUM( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
-601

skipif mysql # not compatible
query I rowsort label-642
SELECT DISTINCT 28 + - + ( + 32 ) + + COUNT ( * ) * - + SUM ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
-601

query I rowsort
SELECT + 38 - - ( col0 ) AS col2 FROM tab0
----
125
135
53

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT + 56 - 67 * COUNT( + 93 ) AS col0 FROM tab0
----
-145

skipif mysql # not compatible
query I rowsort label-644
SELECT + 56 - 67 * COUNT ( + 93 ) AS col0 FROM tab0
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT ALL COUNT( * ) - COUNT( ALL 76 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-645
SELECT ALL COUNT ( * ) - COUNT ( ALL 76 ) AS col2 FROM tab1
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-647
SELECT col0 + CAST( + - col1 AS SIGNED ) + 81 FROM tab0
----
147
15
177

skipif mysql # not compatible
query I rowsort label-647
SELECT col0 + CAST ( + - col1 AS INTEGER ) + 81 FROM tab0
----
147
15
177

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-649
SELECT DISTINCT ( - - 95 ) * 54 + + CAST( + - 89 AS SIGNED ) + 51 AS col1, CAST( NULL AS SIGNED ) FROM tab0
----
5092
NULL

skipif mysql # not compatible
query II rowsort label-649
SELECT DISTINCT ( - - 95 ) * 54 + + CAST ( + - 89 AS INTEGER ) + 51 AS col1, CAST ( NULL AS INTEGER ) FROM tab0
----
5092
NULL

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

query I rowsort
SELECT - 45 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

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

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

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

query I rowsort
SELECT DISTINCT col0 * col1 FROM tab0 AS cor0 WHERE NOT + col2 / + + col0 * - - 99 IS NULL
----
1215
1827
97

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

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

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

skipif mysql # not compatible
query I rowsort label-657
SELECT ALL + - 57 * - col2 + 54 + - CAST ( NULL AS INTEGER ) * - 36 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + 86 AS col1 FROM tab2
----
3956
5504
6450

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

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT - MIN( DISTINCT col0 ) col0 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-660
SELECT - MIN ( DISTINCT col0 ) col0 FROM tab0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > 2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT 16 + + MIN( 57 ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-663
SELECT 16 + + MIN ( 57 ) FROM tab0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-664
SELECT DISTINCT + COUNT( ALL + - CAST( - 29 AS SIGNED ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-664
SELECT DISTINCT + COUNT ( ALL + - CAST ( - 29 AS INTEGER ) ) AS col0 FROM tab0
----
3

query II rowsort
SELECT ALL + col0, - col2 - - ( col1 ) + col2 * + col1 AS col2 FROM tab2
----
46
1201
64
3117
75
3895

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

query I rowsort
SELECT DISTINCT - ( - + col1 ) + + + col0 + + col0 * - 60 + + + col2 + 23 FROM tab1 AS cor0
----
-2876
-4928
-5231

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - 8 * + - 49
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE 18 >= NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-671
SELECT + 48 DIV col1 + - col0, col1 + + col1 AS col0 FROM tab2 AS cor0
----
-46
102
-64
154
-75
134

skipif mysql # not compatible
query II rowsort label-671
SELECT + 48 / col1 + - col0, col1 + + col1 AS col0 FROM tab2 AS cor0
----
-46
102
-64
154
-75
134

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 4 * + - col1 + + + 32 - 20 col2 FROM tab1 AS cor0
----
-176
-44
-8

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

query I rowsort
SELECT ALL + col1 + + col1 - + 10 * + 46 AS col0 FROM tab0 WHERE ( NULL BETWEEN 29 AND col2 )
----

query I rowsort
SELECT ALL - col1 + + + 11 FROM tab0
----
-10
-70
10

query I rowsort
SELECT DISTINCT 1 - - + 55 FROM tab1
----
56

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

query I rowsort
SELECT - ( + col0 ) * - 16 AS col0 FROM tab0 AS cor0
----
1392
1552
240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - + 99 * + + ( col2 ) col1, col0 FROM tab2 AS cor0
----
-158400
64
-333036
75
-52371
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT + MIN( 17 ) AS col1 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-684
SELECT + MIN ( 17 ) AS col1 FROM tab1 AS cor0
----
17

query II rowsort
SELECT - 48, + col0 + col2 AS col2 FROM tab1 AS cor0
----
-48
144
-48
147
-48
159

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

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

query I rowsort
SELECT ALL 64 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT DISTINCT ( + + 11 ) * + col1 * ( - col1 ) * + + 51 FROM tab1
----
-109956
-1239249
-14025

query I rowsort
SELECT ALL + 49 * 29 FROM tab0
----
1421
1421
1421

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT ( - ( MAX( + + 30 ) ) ) * + - COUNT( * ) AS col2 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-691
SELECT ( - ( MAX ( + + 30 ) ) ) * + - COUNT ( * ) AS col2 FROM tab1
----
90

query I rowsort
SELECT + - 8 AS col2 FROM tab1 cor0
----
-8
-8
-8

query I rowsort
SELECT - + 42 AS col2 FROM tab1 AS cor0
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT SUM( ALL 69 ) AS col1 FROM tab1 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-694
SELECT SUM ( ALL 69 ) AS col1 FROM tab1 AS cor0
----
207

query I rowsort
SELECT DISTINCT + 96 * + 23 * 97 FROM tab2 AS cor0
----
214176

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-696
SELECT DISTINCT SUM( ALL + - 20 ) * - ( 85 ) AS col0, - 29 DIV 4 AS col0 FROM tab2 AS cor0
----
5100
-7

skipif mysql # not compatible
query II rowsort label-696
SELECT DISTINCT SUM ( ALL + - 20 ) * - ( 85 ) AS col0, - 29 / 4 AS col0 FROM tab2 AS cor0
----
5100
-7

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

onlyif mysql # DIV for integer division: 
query I rowsort label-698
SELECT DISTINCT col0 DIV - - 99 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-698
SELECT DISTINCT col0 / - - 99 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-699
SELECT DISTINCT col2, - col2 DIV + 80 FROM tab2
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-699
SELECT DISTINCT col2, - col2 / + 80 FROM tab2
----
23
0
40
0
58
0

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

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

query I rowsort
SELECT ALL + col1 * - 50 AS col1 FROM tab2
----
-2550
-3350
-3850

query I rowsort
SELECT DISTINCT - col1 + + 25 AS col2 FROM tab0 AS cor0
----
-56
24
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 + + + col2 * - + col1 col2 FROM tab2 AS cor0
----
-1137
-3044
-3850

onlyif mysql # DIV for integer division: 
query I rowsort label-704
SELECT + 78 DIV + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
5

skipif mysql # not compatible
query I rowsort label-704
SELECT + 78 / + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT + MIN( - 74 ) AS col0 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-707
SELECT + MIN ( - 74 ) AS col0 FROM tab1
----
-74

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # DIV for integer division: 
query II rowsort label-709
SELECT col2 AS col2, col0 * - col2 DIV col2 + 15 + + 12 * - col2 + + - col0 AS col0 FROM tab2
----
23
-353
40
-593
58
-831

skipif mysql # not compatible
query II rowsort label-709
SELECT col2 AS col2, col0 * - col2 / col2 + 15 + + 12 * - col2 + + - col0 AS col0 FROM tab2
----
23
-353
40
-593
58
-831

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 0 > + 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * + 63 AS col1 FROM tab2 AS cor0
----
-1449
-2520
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT ALL - + 45 - - ( - - COUNT( * ) ) FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL - + 45 - - ( - - COUNT ( * ) ) FROM tab2 AS cor0
----
-42

query I rowsort
SELECT - - 49 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
49
49
49

query I rowsort
SELECT ALL - 27 + + - col2 AS col2 FROM tab1
----
-123
-86
-95

query II rowsort
SELECT - col0 * + col0 + + col2, col0 FROM tab2
----
-2093
46
-4056
64
-5567
75

query I rowsort
SELECT - col2 * - + 36 FROM tab0
----
1692
3564
360

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 55 <> - 99
----
0

skipif mysql # not compatible
query I rowsort label-720
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 55 <> - 99
----
0

query I rowsort
SELECT DISTINCT - AVG ( ALL 41 ) + 4 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + 51 BETWEEN col2 / - - 97 + + 85 * col2 + - + col1 + - + col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * - 57 AS col0 FROM tab1 AS cor0
----
-3363
-3876
-5472

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

query I rowsort
SELECT DISTINCT + - 89 * + 83 FROM tab1 AS cor0
----
-7387

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

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

query II rowsort
SELECT - col1 AS col1, + col2 + + col0 AS col0 FROM tab1 AS cor0
----
-14
147
-47
159
-5
144

query II rowsort
SELECT col1 * + + ( + + col2 ) AS col0, ( + - col0 ) + col0 AS col1 FROM tab0 cor0
----
210
0
3807
0
99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT ALL SUM( DISTINCT + + col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL SUM ( DISTINCT + + col0 ) AS col2 FROM tab2
----
185

query II rowsort
SELECT ALL - 43 * + col2 AS col2, 6 - + col1 + 94 AS col1 FROM tab0
----
-2021
19
-4257
99
-430
79

query I rowsort
SELECT DISTINCT 3 * + col1 FROM tab1
----
141
15
42

query I rowsort
SELECT DISTINCT + 31 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
31

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-738
SELECT - + COUNT( DISTINCT col1 ) col1, 73 FROM tab1 AS cor0
----
-3
73

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

query I rowsort
SELECT ALL + 16 + 63 * - - col1 AS col0 FROM tab0 cor0
----
1339
5119
79

onlyif mysql # DIV for integer division: 
query II rowsort label-740
SELECT ALL + 21 + + + col0 + + col1 DIV - - col1 + 48, col0 AS col2 FROM tab2
----
116
46
134
64
145
75

skipif mysql # not compatible
query II rowsort label-740
SELECT ALL + 21 + + + col0 + + col1 / - - col1 + 48, col0 AS col2 FROM tab2
----
116
46
134
64
145
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-741
SELECT DISTINCT + CAST( + ( + - COUNT( * ) ) AS SIGNED ) + MAX( DISTINCT + col2 ) AS col1 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT + CAST ( + ( + - COUNT ( * ) ) AS INTEGER ) + MAX ( DISTINCT + col2 ) AS col1 FROM tab1
----
93

query I rowsort
SELECT ALL + 94 + + 4 AS col0 FROM tab0
----
98
98
98

query I rowsort
SELECT + col0 + 74 AS col2 FROM tab1 cor0
----
125
159
165

query I rowsort
SELECT + + col1 + - ( col0 ) - + 70 FROM tab1 AS cor0
----
-107
-114
-150

query II rowsort
SELECT - col1, col2 - + col0 AS col2 FROM tab1 AS cor0
----
-14
45
-47
-23
-5
-26

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - 26 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 12 AS col2, ( + col2 ) AS col2 FROM tab2
----
12
23
12
40
12
58

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

query I rowsort
SELECT ALL 39 * + 32 FROM tab2
----
1248
1248
1248

query I rowsort
SELECT ( - col0 ) * 78 AS col1 FROM tab2 AS cor0
----
-3588
-4992
-5850

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

query I rowsort
SELECT ALL - 52 FROM tab1 cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT + + 53 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT - col1 + + - 35 FROM tab1 AS cor0
----
-40
-49
-82

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

query I rowsort
SELECT ALL 38 * - 54 AS col0 FROM tab2 AS cor0
----
-2052
-2052
-2052

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
23
40
58

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

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

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

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

query I rowsort
SELECT DISTINCT - 29 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND + + col1
----

query I rowsort
SELECT ALL + 65 + col0 AS col2 FROM tab2
----
111
129
140

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 * - 20 col1 FROM tab1
----
-920
-920
-920

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

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

query I rowsort
SELECT 85 + 40 FROM tab2
----
125
125
125

query I rowsort
SELECT col1 + + + col0 FROM tab2
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-768
SELECT DISTINCT + 56 DIV + 21 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-768
SELECT DISTINCT + 56 / + 21 FROM tab1
----
2

query II rowsort
SELECT ALL - col1, + col2 AS col1 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT DISTINCT + + MIN( DISTINCT - 48 ) AS col1 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-771
SELECT DISTINCT + + MIN ( DISTINCT - 48 ) AS col1 FROM tab2 AS cor0
----
-48

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

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

query I rowsort
SELECT DISTINCT + ( - col1 ) + col2 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-774
SELECT DISTINCT 85 - - 36 + + ( - - MAX( ALL + 73 ) ) DIV 5 FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-774
SELECT DISTINCT 85 - - 36 + + ( - - MAX ( ALL + 73 ) ) / 5 FROM tab2
----
135

query I rowsort
SELECT DISTINCT 31 - - + col1 * - 33 AS col1 FROM tab1
----
-134
-1520
-431

query I rowsort
SELECT ALL 72 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query II rowsort
SELECT col0 - + 51, col2 * - + 53 AS col0 FROM tab2
----
-5
-1219
13
-2120
24
-3074

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT DISTINCT - ( - + MAX( DISTINCT - 59 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT + 21 / - - col0 = ( + col0 )
----
-59

skipif mysql # not compatible
query I rowsort label-779
SELECT DISTINCT - ( - + MAX ( DISTINCT - 59 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT + 21 / - - col0 = ( + col0 )
----
-59

query I rowsort
SELECT ALL + 84 * + 51 FROM tab2 AS cor0
----
4284
4284
4284

query I rowsort
SELECT ALL 5 * - col0 AS col0 FROM tab1 AS cor0
----
-255
-425
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT ALL - SUM( + + col1 ) + - - 29 FROM tab0 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-782
SELECT ALL - SUM ( + + col1 ) + - - 29 FROM tab0 WHERE col1 IS NULL
----
NULL

query I rowsort
SELECT + col0 * - + col1 FROM tab2 WHERE NOT ( + + col0 ) <> ( col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-784
SELECT * FROM tab0 WHERE NOT NULL IN ( CAST( NULL AS DECIMAL ), col0 )
----

skipif mysql # not compatible
query III rowsort label-784
SELECT * FROM tab0 WHERE NOT NULL IN ( CAST ( NULL AS REAL ), col0 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-786
SELECT 63, ( 33 ) + - + CAST( - col2 AS SIGNED ) AS col2 FROM tab0
----
63
132
63
43
63
80

skipif mysql # not compatible
query II rowsort label-786
SELECT 63, ( 33 ) + - + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0
----
63
132
63
43
63
80

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

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

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

query I rowsort
SELECT ALL + 23 * + - 48 AS col1 FROM tab0
----
-1104
-1104
-1104

query I rowsort
SELECT ALL ( - - 95 ) AS col2 FROM tab0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT 68 * + MIN( + + col0 ) + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
1023

skipif mysql # not compatible
query I rowsort label-791
SELECT 68 * + MIN ( + + col0 ) + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
1023

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 40 = + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT ALL MIN( - col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL MIN ( - col2 ) AS col0 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-794
SELECT + col0 * + col2 * - - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
249696
426275
563108

skipif mysql # not compatible
query I rowsort label-794
SELECT + col0 * + col2 * - - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
249696
426275
563108

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT MIN( - 13 ) * - + 37 AS col2 FROM tab1
----
481

skipif mysql # not compatible
query I rowsort label-796
SELECT MIN ( - 13 ) * - + 37 AS col2 FROM tab1
----
481

query I rowsort
SELECT ALL + ( + 0 ) FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT - + col0, col1 FROM tab1 WHERE NOT - col2 IS NULL
----
-51
14
-85
5
-91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT DISTINCT + + COUNT( * ) * + COUNT( * ) * COUNT( 47 ) AS col1 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-799
SELECT DISTINCT + + COUNT ( * ) * + COUNT ( * ) * COUNT ( 47 ) AS col1 FROM tab1 AS cor0
----
27

query I rowsort
SELECT DISTINCT 77 * - col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 60 + 21 IS NULL
----

query II rowsort
SELECT - + 55, - ( + + col2 ) * + col1 - - col2 AS col2 FROM tab1 AS cor0
----
-55
-1248
-55
-236
-55
-3128

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

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NULL <= 47
----

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND - - 54 + + 44
----

query II rowsort
SELECT + 11 * + ( 60 ) + col1 * - col1, ( - col2 ) AS col1 FROM tab0
----
-5901
-47
219
-10
659
-99

query I rowsort
SELECT col0 + + + 87 * - 3 AS col2 FROM tab2
----
-186
-197
-215

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT + 55 + - COUNT( * ) * - - 71 AS col0 FROM tab2
----
-158

skipif mysql # not compatible
query I rowsort label-810
SELECT + 55 + - COUNT ( * ) * - - 71 AS col0 FROM tab2
----
-158

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

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

query I rowsort
SELECT ALL + - ( + + 2 ) + 38 AS col1 FROM tab0 AS cor0
----
36
36
36

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE col1 <= + + col0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-815
SELECT DISTINCT + col0 DIV + col0 + - - 79 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-815
SELECT DISTINCT + col0 / + col0 + - - 79 FROM tab0 AS cor0
----
80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT ALL - - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - + 67 < NULL AND - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-817
SELECT ALL - - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - + 67 < NULL AND - col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-818
SELECT ( + COUNT( * ) ), - 48 AS col1 FROM tab2, tab2 AS cor0
----
9
-48

skipif mysql # not compatible
query II rowsort label-818
SELECT ( + COUNT ( * ) ), - 48 AS col1 FROM tab2, tab2 AS cor0
----
9
-48

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-820
SELECT + col1 * + CAST( - - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-820
SELECT + col1 * + CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
2346
4928
5025

query II rowsort
SELECT ALL - + 17 AS col2, 33 - - - 87 FROM tab2 AS cor0
----
-17
-54
-17
-54
-17
-54

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-824
SELECT + 69, + MAX( ALL - ( - 7 ) ) + + 44 AS col2 FROM tab2 AS cor0
----
69
51

skipif mysql # not compatible
query II rowsort label-824
SELECT + 69, + MAX ( ALL - ( - 7 ) ) + + 44 AS col2 FROM tab2 AS cor0
----
69
51

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT ALL + SUM( ALL - - col0 ) * - 70 FROM tab0 AS cor0
----
-13930

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL + SUM ( ALL - - col0 ) * - 70 FROM tab0 AS cor0
----
-13930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-826
SELECT DISTINCT COUNT( * ) DIV + 80 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-826
SELECT DISTINCT COUNT ( * ) / + 80 col0 FROM tab2
----
0

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

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

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

query I rowsort
SELECT + col1 + 27 AS col2 FROM tab2
----
104
78
94

query I rowsort
SELECT DISTINCT + ( - + 51 ) AS col1 FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-831
SELECT DISTINCT 21 * + ( - col1 ) + + + 99 * - 35 + + col1, CAST( NULL AS DECIMAL ) / - + 4 * - - 52 AS col0 FROM tab0 AS cor0
----
-3485
NULL
-3885
NULL
-5085
NULL

skipif mysql # not compatible
query II rowsort label-831
SELECT DISTINCT 21 * + ( - col1 ) + + + 99 * - 35 + + col1, CAST ( NULL AS REAL ) / - + 4 * - - 52 AS col0 FROM tab0 AS cor0
----
-3485
NULL
-3885
NULL
-5085
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-832
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE - 91 - - - col1 + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-832
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE - 91 - - - col1 + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 24 + + + 28 AS col1 FROM tab2 AS cor0
----
52

query I rowsort
SELECT ALL - col2 - + + 1 FROM tab2
----
-24
-41
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT ALL + MAX( DISTINCT + 17 ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL + MAX ( DISTINCT + 17 ) FROM tab1
----
17

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

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

query I rowsort
SELECT 60 + - + col1 * - + col1 + + - col1 FROM tab1
----
2222
242
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-839
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE col1 * + CAST( NULL AS SIGNED ) IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-839
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE col1 * + CAST ( NULL AS INTEGER ) IS NULL
----
15
87
97

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-842
SELECT COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT col2 > ( + + col2 * CAST( - col1 AS DECIMAL ) )
----
0

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

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT - col0 * + col0 * col0 AS col0 FROM tab0 AS cor0
----
-3375
-658503
-912673

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT ALL 93 * + 43 + MAX( DISTINCT + + 74 ) AS col2 FROM tab2 cor0
----
4073

skipif mysql # not compatible
query I rowsort label-845
SELECT ALL 93 * + 43 + MAX ( DISTINCT + + 74 ) AS col2 FROM tab2 cor0
----
4073

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-847
SELECT 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-847
SELECT col0 / + col0 col1 FROM tab0
----
1
1
1

query II rowsort
SELECT - col0 * - + ( 28 ) AS col1, col0 + col1 + + + 12 FROM tab1
----
1428
77
2380
102
2548
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 19 col2, 59 * + + 39 * col2 AS col2 FROM tab1
----
-19
135759
-19
156468
-19
220896

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

query II rowsort
SELECT + 43 + + 61 * - 36, + col2 AS col0 FROM tab0
----
-2153
10
-2153
47
-2153
99

query I rowsort
SELECT DISTINCT + 27 * - + 23 AS col1 FROM tab0
----
-621

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

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

query I rowsort
SELECT + 78 AS col1 FROM tab2 WHERE NULL IS NULL
----
78
78
78

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-856
SELECT ALL + CAST( + + ( - col0 ) AS SIGNED ) * col1 AS col2 FROM tab0 cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL + CAST ( + + ( - col0 ) AS INTEGER ) * col1 AS col2 FROM tab0 cor0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT col0 + + - 38 AS col0 FROM tab2 AS cor0
----
26
37
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 * col1 col2 FROM tab0 AS cor0
----
100
451
6608

query I rowsort
SELECT ALL - col1 + 32 FROM tab2 AS cor0
----
-19
-35
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT - + MIN( ALL - col0 ) + + COUNT( * ) FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-860
SELECT - + MIN ( ALL - col0 ) + + COUNT ( * ) FROM tab0 AS cor0
----
100

query I rowsort
SELECT + col2 + - 68 AS col2 FROM tab0 cor0
----
-21
-58
31

query I rowsort
SELECT DISTINCT + + 29 * 81 + + + col1 FROM tab1 AS cor0
----
2354
2363
2396

query I rowsort
SELECT - col1 * + - col0 + + col1 AS col0 FROM tab2 AS cor0
----
2397
5005
5092

onlyif mysql # DIV for integer division: 
query I rowsort label-864
SELECT ALL + 21 DIV + - 81 + + 82 FROM tab0 AS cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-864
SELECT ALL + 21 / + - 81 + + 82 FROM tab0 AS cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT DISTINCT - MIN( + 72 ) + - - COUNT( * ) FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-865
SELECT DISTINCT - MIN ( + 72 ) + - - COUNT ( * ) FROM tab0 AS cor0
----
-69

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

query II rowsort
SELECT DISTINCT col2 - + - col0 AS col1, - col2 * - 57 + - ( + col2 ) FROM tab2 AS cor0
----
104
2240
133
3248
69
1288

query I rowsort
SELECT col2 + - 42 AS col1 FROM tab0 AS cor0
----
-32
5
57

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT DISTINCT - COUNT( col0 ) - + 97 AS col2 FROM tab1
----
-100

skipif mysql # not compatible
query I rowsort label-869
SELECT DISTINCT - COUNT ( col0 ) - + 97 AS col2 FROM tab1
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT COUNT( * ) * + - 44 AS col2 FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-870
SELECT COUNT ( * ) * + - 44 AS col2 FROM tab0
----
-132

query I rowsort
SELECT ALL + 54 - + 84 AS col1 FROM tab1
----
-30
-30
-30

query I rowsort
SELECT DISTINCT - 21 - - + 30 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT ALL - COUNT( * ) - + + 70 AS col1 FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL - COUNT ( * ) - + + 70 AS col1 FROM tab2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT DISTINCT COUNT( * ) * 51 AS col2 FROM tab2 WHERE NOT + ( + col2 ) * - 81 IS NULL
----
153

skipif mysql # not compatible
query I rowsort label-874
SELECT DISTINCT COUNT ( * ) * 51 AS col2 FROM tab2 WHERE NOT + ( + col2 ) * - 81 IS NULL
----
153

query I rowsort
SELECT col1 - + col2 * - - ( + col2 ) FROM tab2 cor0
----
-1523
-3297
-478

query I rowsort
SELECT 50 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT ALL COUNT( + 58 ) 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-878
SELECT ALL COUNT ( + 58 ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT + 21 * - col0 * col0 AS col2 FROM tab1 AS cor0
----
-151725
-173901
-54621

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

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

query I rowsort
SELECT DISTINCT - col1 * 56 AS col0 FROM tab1 AS cor0
----
-2632
-280
-784

query I rowsort
SELECT ALL - - col0 * - - 5 FROM tab0 AS cor0
----
435
485
75

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT SUM( DISTINCT + - 90 ) FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-883
SELECT SUM ( DISTINCT + - 90 ) FROM tab0 AS cor0
----
-90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 95 / - 85 <> NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-886
SELECT DISTINCT - COUNT ( * ) / COUNT ( DISTINCT col0 ) * 79 FROM tab0 AS cor0
----
-79

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

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

query II rowsort
SELECT ALL + 27 AS col2, ( - 93 ) AS col1 FROM tab2, tab2 AS cor0
----
18 values hashing to d39c1d978f44a3491f621d39fb61bb80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT - + MIN( + 94 ) * + 52 FROM tab1 AS cor0
----
-4888

skipif mysql # not compatible
query I rowsort label-890
SELECT - + MIN ( + 94 ) * + 52 FROM tab1 AS cor0
----
-4888

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-892
SELECT 75 + col2 + - + col0 + - - CAST( NULL AS SIGNED ) - 26 AS col0 FROM tab2 AS cor0 WHERE + col2 + 52 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-892
SELECT 75 + col2 + - + col0 + - - CAST ( NULL AS INTEGER ) - 26 AS col0 FROM tab2 AS cor0 WHERE + col2 + 52 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT + 96 + + MAX( ALL + 11 ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
107

skipif mysql # not compatible
query I rowsort label-893
SELECT + 96 + + MAX ( ALL + 11 ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
107

query I rowsort
SELECT - 12 * + col1 * - col1 FROM tab2
----
31212
53868
71148

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

onlyif mysql # DIV for integer division: 
query I rowsort label-896
SELECT - 43 DIV + col1 AS col1 FROM tab0 AS cor0
----
-2
-43
0

skipif mysql # not compatible
query I rowsort label-896
SELECT - 43 / + col1 AS col1 FROM tab0 AS cor0
----
-2
-43
0

query I rowsort
SELECT DISTINCT - 78 + + - 38 FROM tab2 AS cor0
----
-116

query I rowsort
SELECT - + 59 FROM tab2 AS cor0 WHERE 79 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE ( - 15 ) IS NOT NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-900
SELECT ALL CAST( NULL AS DECIMAL ) + - col2, CAST( NULL AS SIGNED ) + + col1 FROM tab1 AS cor0 WHERE NULL <= ( + col2 )
----

skipif mysql # not compatible
query II rowsort label-900
SELECT ALL CAST ( NULL AS REAL ) + - col2, CAST ( NULL AS INTEGER ) + + col1 FROM tab1 AS cor0 WHERE NULL <= ( + col2 )
----

query I rowsort
SELECT - 82 FROM tab1 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-902
SELECT - 5 - - col2 DIV + col1 FROM tab1 AS cor0
----
-4
1
6

skipif mysql # not compatible
query I rowsort label-902
SELECT - 5 - - col2 / + col1 FROM tab1 AS cor0
----
-4
1
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-903
SELECT - CAST( col1 AS SIGNED ) - - + col0 AS col0 FROM tab2
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-903
SELECT - CAST ( col1 AS INTEGER ) - - + col0 AS col0 FROM tab2
----
-13
-5
8

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

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

query I rowsort
SELECT ALL ( - col2 ) - col0 AS col0 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT 90 + + - col0 * - - 48 FROM tab1
----
-2358
-3990
-4278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-907
SELECT ALL + 30 * col1 * CAST( 44 AS SIGNED ) * - 46 - 9 FROM tab1
----
-2853849
-303609
-850089

skipif mysql # not compatible
query I rowsort label-907
SELECT ALL + 30 * col1 * CAST ( 44 AS INTEGER ) * - 46 - 9 FROM tab1
----
-2853849
-303609
-850089

query I rowsort
SELECT + - 56 AS col2 FROM tab1 AS cor0
----
-56
-56
-56

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 64 = - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-910
SELECT ALL 90 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL 90 / - col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT DISTINCT - SUM( ALL - col1 ) col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-911
SELECT DISTINCT - SUM ( ALL - col1 ) col2 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT DISTINCT - + COUNT( * ) col1 FROM tab1 cor0 WHERE NOT col2 - 23 >= col1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-912
SELECT DISTINCT - + COUNT ( * ) col1 FROM tab1 cor0 WHERE NOT col2 - 23 >= col1
----
-1

query I rowsort
SELECT col1 * - col1 * + + col2 AS col2 FROM tab2
----
-237160
-260362
-59823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 83 col0 FROM tab2 WHERE - - col2 <> NULL
----

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 WHERE + col0 > + - col0 * + col1 + - 17
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT - - 68 + - 1 + - COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-916
SELECT - - 68 + - 1 + - COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
58

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-919
SELECT ALL col1 + + col1 - + col0 DIV - + col1 AS col1 FROM tab0 AS cor0
----
162
46
99

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL col1 + + col1 - + col0 / - + col1 AS col1 FROM tab0 AS cor0
----
162
46
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT ALL COUNT( * ) - + 76 FROM tab0 WHERE NOT - + col2 IS NULL
----
-73

skipif mysql # not compatible
query I rowsort label-921
SELECT ALL COUNT ( * ) - + 76 FROM tab0 WHERE NOT - + col2 IS NULL
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT ALL + - COUNT( * ) FROM tab0 WHERE NOT NULL > - col0
----
0

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL + - COUNT ( * ) FROM tab0 WHERE NOT NULL > - col0
----
0

query I rowsort
SELECT 52 AS col1 FROM tab1 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT 48 / - col1 * + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 = + + 18
----

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

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

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

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

query II rowsort
SELECT col2 - + col2 AS col2, - 91 + col0 FROM tab0
----
0
-4
0
-76
0
6

query I rowsort
SELECT - col2 + + - 92 FROM tab0 cor0
----
-102
-139
-191

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

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

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

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

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

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

query I rowsort
SELECT + col1 * + + col0 + + 29 FROM tab2 AS cor0
----
2375
4957
5054

query I rowsort
SELECT - col0 * - col1 FROM tab1 AS cor0 WHERE ( NULL ) = - - col1
----

query II rowsort
SELECT ALL - + 63 * 21 * + + ( - + 27 ) / - col2 * + col0, col1 AS col1 FROM tab2 AS cor0 WHERE NULL = - col1
----

query II rowsort
SELECT 88, + col1 * - col1 * - col2 * + ( ( + col1 ) ) AS col2 FROM tab1
----
88
263424
88
7059964
88
7375

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

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT DISTINCT MIN( ALL + - 73 ) FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-938
SELECT DISTINCT MIN ( ALL + - 73 ) FROM tab1
----
-73

query II rowsort
SELECT DISTINCT 5, + ( + + 0 ) AS col0 FROM tab0 AS cor0
----
5
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-941
SELECT - CAST( NULL AS SIGNED ) AS col1, 23 AS col2 FROM tab0 AS cor0
----
NULL
23
NULL
23
NULL
23

skipif mysql # not compatible
query II rowsort label-941
SELECT - CAST ( NULL AS INTEGER ) AS col1, 23 AS col2 FROM tab0 AS cor0
----
NULL
23
NULL
23
NULL
23

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

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL - CAST ( 34 AS INTEGER ) FROM tab0
----
-34
-34
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-943
SELECT DISTINCT col1 DIV col0 + - col2 FROM tab2 WHERE NOT ( col2 * ( ( 29 ) ) ) IN ( col0 )
----
-22
-39
-58

skipif mysql # not compatible
query I rowsort label-943
SELECT DISTINCT col1 / col0 + - col2 FROM tab2 WHERE NOT ( col2 * ( ( 29 ) ) ) IN ( col0 )
----
-22
-39
-58

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

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

query I rowsort
SELECT 99 AS col1 FROM tab0 WHERE ( NULL ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab0 WHERE NOT col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-947
SELECT - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL > col0
----

skipif mysql # not compatible
query I rowsort label-947
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL > col0
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 52 - col0 ) BETWEEN col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE 89 + col1 IS NULL
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-953
SELECT CAST( + MAX( ALL 0 ) AS SIGNED ) * - COUNT( * ) + - COUNT( ALL 45 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-953
SELECT CAST ( + MAX ( ALL 0 ) AS INTEGER ) * - COUNT ( * ) + - COUNT ( ALL 45 ) AS col1 FROM tab1
----
-3

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

query I rowsort
SELECT ALL + col2 * - 79 + - col2 * col0 FROM tab1
----
-11560
-12480
-9676

query I rowsort
SELECT col0 FROM tab2 WHERE NOT - col1 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT ALL MAX( ALL - 9 ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-957
SELECT ALL MAX ( ALL - 9 ) AS col1 FROM tab2
----
-9

query I rowsort
SELECT 19 * + col1 FROM tab1 WHERE NOT + 26 + 92 IS NULL
----
266
893
95

query I rowsort
SELECT ALL 75 FROM tab1 WHERE NOT NULL IS NOT NULL
----
75
75
75

query I rowsort
SELECT ALL - col2 + + col0 AS col2 FROM tab2 WHERE NOT ( col1 ) > - col1 * + 58
----

query I rowsort
SELECT - col0 FROM tab0 WHERE col2 * + 30 <> NULL
----

query I rowsort
SELECT - col1 * + 75 AS col0 FROM tab2
----
-3825
-5025
-5775

query I rowsort
SELECT - 30 * - col1 + 61 FROM tab2 AS cor0
----
1591
2071
2371

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

query I rowsort
SELECT ALL 0 + - ( 65 ) AS col0 FROM tab1 AS cor0
----
-65
-65
-65

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) >= 86
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-969
SELECT ALL + col0 + col1 AS col1 FROM tab2 AS cor0 WHERE + 42 NOT IN ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-969
SELECT ALL + col0 + col1 AS col1 FROM tab2 AS cor0 WHERE + 42 NOT IN ( CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT DISTINCT - col1 - + 16 FROM tab1 AS cor0
----
-21
-30
-63

query I rowsort
SELECT DISTINCT - ( - col1 ) * + 72 FROM tab0 AS cor0
----
1512
5832
72

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

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

skipif mysql # not compatible
query I rowsort label-973
SELECT + COUNT ( * ) * SUM ( col2 ) - - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
372

query I rowsort
SELECT col0 - + 76 AS col0 FROM tab0 AS cor0 WHERE + col2 - + 29 < + col0
----
11
21

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 15 ) = - col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT - - COUNT( * ) - COUNT( * ) col1 FROM tab0 AS cor0
----
0

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 67 <= ( - 52 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT ALL ( - 34 ) * - COUNT( * ) FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL ( - 34 ) * - COUNT ( * ) FROM tab0 AS cor0
----
102

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

query I rowsort
SELECT ALL 24 * col2 - col0 FROM tab2 AS cor0 WHERE NULL IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - 74 IN ( col2 )
----
3

skipif mysql # not compatible
query I rowsort label-983
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - 74 IN ( col2 )
----
3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-985
SELECT DISTINCT COUNT( ALL - 31 ) DIV - 37 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-985
SELECT DISTINCT COUNT ( ALL - 31 ) / - 37 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT - SUM( - - ( 62 ) ) FROM tab0
----
-186

skipif mysql # not compatible
query I rowsort label-986
SELECT - SUM ( - - ( 62 ) ) FROM tab0
----
-186

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < 79 - col0 / - col1 OR NOT - col2 NOT IN ( col2 )
----

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

query I rowsort
SELECT ALL - 15 * col2 AS col0 FROM tab1
----
-1020
-1440
-885

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-990
SELECT ALL + col1 AS col2 FROM tab0 WHERE NULL >= CAST( NULL AS SIGNED ) * - 36
----

skipif mysql # not compatible
query I rowsort label-990
SELECT ALL + col1 AS col2 FROM tab0 WHERE NULL >= CAST ( NULL AS INTEGER ) * - 36
----

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

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

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

query I rowsort
SELECT ALL + + ( col0 ) * 3 AS col0 FROM tab0 cor0
----
261
291
45

query I rowsort
SELECT DISTINCT + col2 * + ( + 27 ) - 14 FROM tab1 AS cor0
----
1579
1822
2578

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 7 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-995
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 7 IS NULL
----
3

query I rowsort
SELECT DISTINCT + 43 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
43

query I rowsort
SELECT ALL + 56 * - 58 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4d357e1f9d42e6990d2d2f992fbb4624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-998
SELECT ALL + 93 - CAST( - col0 AS SIGNED ) AS col2 FROM tab0 WHERE NOT ( NULL ) IN ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-998
SELECT ALL + 93 - CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 WHERE NOT ( NULL ) IN ( - col0 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1000
SELECT * FROM tab2 AS cor0 WHERE + CAST( col0 AS SIGNED ) * 79 >= NULL
----

skipif mysql # not compatible
query III rowsort label-1000
SELECT * FROM tab2 AS cor0 WHERE + CAST ( col0 AS INTEGER ) * 79 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1001
SELECT ALL + 56 AS col2, COUNT( * ) * 19 FROM tab0 AS cor0
----
56
57

skipif mysql # not compatible
query II rowsort label-1001
SELECT ALL + 56 AS col2, COUNT ( * ) * 19 FROM tab0 AS cor0
----
56
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1002
SELECT col0 * - ( - 89 ) FROM tab0 AS cor0 WHERE 36 BETWEEN ( + CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1002
SELECT col0 * - ( - 89 ) FROM tab0 AS cor0 WHERE 36 BETWEEN ( + CAST ( NULL AS INTEGER ) ) AND NULL
----

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

query I rowsort
SELECT ALL col1 * + 92 + - 41 AS col0 FROM tab0 AS cor0
----
1891
51
7411

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

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

query I rowsort
SELECT - 65 + + - col1 * - col1 FROM tab2 AS cor0
----
2536
4424
5864

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 6, + 22 + - - col0 col1 FROM tab1 AS cor0
----
6
107
6
113
6
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1009
SELECT ALL + col2 + + 64 DIV + col2 FROM tab1
----
60
68
96

skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL + col2 + + 64 / + col2 FROM tab1
----
60
68
96

query I rowsort
SELECT col0 + - 89 FROM tab0
----
-2
-74
8

query I rowsort
SELECT - 91 + - 88 AS col2 FROM tab1
----
-179
-179
-179

query I rowsort
SELECT ALL - 10 * - col2 FROM tab0 WHERE NOT 3 - - 60 < 33
----
100
470
990

query I rowsort
SELECT - col1 + - col1 + - col1 * - 23 FROM tab2
----
1071
1407
1617

query I rowsort
SELECT + col0 * + + ( + + 56 ) + - + col2 FROM tab2
----
2553
3544
4142

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 * + 78 NOT BETWEEN NULL AND ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - col1 * - + col2 - col0 * + - col0 + col1 AS col0 FROM tab0 AS cor0
----
-3501
7380
9311

query I rowsort
SELECT ALL + + ( - 41 ) + col0 FROM tab1 cor0
----
10
44
50

query I rowsort
SELECT ALL 1 FROM tab1 AS cor0 WHERE NULL BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 + 8 AS col0 FROM tab1 AS cor0
----
-43
-77
-83

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-1022
SELECT ALL + - 2 - - MAX( ALL col0 ) AS col2 FROM tab2 AS cor0
----
73

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

query I rowsort
SELECT col0 - - 18 - + 42 AS col0 FROM tab2 AS cor0
----
22
40
51

query I rowsort
SELECT ALL col1 + 51 FROM tab0 cor0
----
132
52
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 - - col1 - col2 col2 FROM tab1
----
-25
3
36

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT - 23 - 77 * - COUNT( * ) AS col0 FROM tab2
----
208

skipif mysql # not compatible
query I rowsort label-1027
SELECT - 23 - 77 * - COUNT ( * ) AS col0 FROM tab2
----
208

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT COUNT( * ) * - COUNT( * ) * - 99 FROM tab2 cor0
----
891

skipif mysql # not compatible
query I rowsort label-1029
SELECT COUNT ( * ) * - COUNT ( * ) * - 99 FROM tab2 cor0
----
891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1030
SELECT + 56 * - CAST( - 64 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3584
3584
3584

skipif mysql # not compatible
query I rowsort label-1030
SELECT + 56 * - CAST ( - 64 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3584
3584
3584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1031
SELECT + + CAST( - - col2 AS SIGNED ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1031
SELECT + + CAST ( - - col2 AS INTEGER ) FROM tab1 AS cor0
----
59
68
96

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

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

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

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

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

query II rowsort
SELECT ALL + col0 * + col2 * - 82, + col1 FROM tab2 AS cor0
----
-209920
77
-356700
67
-86756
51

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

query I rowsort
SELECT DISTINCT - 68 * + 8 * - 25 FROM tab2, tab0 cor0
----
13600

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

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

query II rowsort
SELECT DISTINCT + col2, - 51 FROM tab1
----
59
-51
68
-51
96
-51

query I rowsort
SELECT col0 FROM tab1 WHERE NOT - - col0 = ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT DISTINCT MIN( ALL + - col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-1041
SELECT DISTINCT MIN ( ALL + - col0 ) AS col1 FROM tab1
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, col0 + + + col0 * col2 col2 FROM tab0 WHERE NULL <= ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1043
SELECT col2 * CAST( + + col0 AS SIGNED ) AS col0 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-1043
SELECT col2 * CAST ( + + col0 AS INTEGER ) AS col0 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT ALL + - 91 * COUNT( * ) FROM tab0 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-1044
SELECT ALL + - 91 * COUNT ( * ) FROM tab0 AS cor0
----
-273

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

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

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

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

query I rowsort
SELECT + - 39 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

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

query I rowsort
SELECT ALL + col1 + + + 22 FROM tab2 AS cor0
----
73
89
99

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

query I rowsort
SELECT ( - - 41 ) FROM tab2 AS cor0
----
41
41
41

query I rowsort
SELECT - 82 * - 24 + - col0 FROM tab1 AS cor0
----
1877
1883
1917

query I rowsort
SELECT DISTINCT 49 + - - col0 * 53 FROM tab2 AS cor0
----
2487
3441
4024

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT ALL - + 59 + + COUNT( * ) + ( - + COUNT( ALL - - 49 ) ) FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1054
SELECT ALL - + 59 + + COUNT ( * ) + ( - + COUNT ( ALL - - 49 ) ) FROM tab2 AS cor0
----
-59

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

query I rowsort
SELECT DISTINCT 86 + col2 AS col0 FROM tab2
----
109
126
144

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT ALL - COUNT( * ) * + - 72 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-1057
SELECT ALL - COUNT ( * ) * + - 72 FROM tab1
----
216

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1059
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + 17 ) AS col2 FROM tab0
----
17

query II rowsort
SELECT ALL 93 / - - col1 AS col0, - col0 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( - 50 / col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1062
SELECT ALL + CAST( + + col2 AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1062
SELECT ALL + CAST ( + + col2 AS INTEGER ) FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1063
SELECT + col1 + + + ( - CAST( NULL AS SIGNED ) ) + + CAST( 49 AS SIGNED ) / 1 * col2 + + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1063
SELECT + col1 + + + ( - CAST ( NULL AS INTEGER ) ) + + CAST ( 49 AS INTEGER ) / 1 * col2 + + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT ( NULL ) <= + 11
----

query I rowsort
SELECT DISTINCT + 44 + col2 AS col1 FROM tab0 AS cor0
----
143
54
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT ALL + COUNT( * ) + + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1067
SELECT ALL + COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + ( - col1 ) + - col2 + - col1 FROM tab1
----
-124
-162
-69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1069
SELECT DISTINCT * FROM tab2 WHERE + 27 * + col0 * col2 / + 55 NOT BETWEEN - + col0 + - col0 + + - col2 - CAST( col2 + col2 * + 87 AS SIGNED ) * col0 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1069
SELECT DISTINCT * FROM tab2 WHERE + 27 * + col0 * col2 / + 55 NOT BETWEEN - + col0 + - col0 + + - col2 - CAST ( col2 + col2 * + 87 AS INTEGER ) * col0 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

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

query II rowsort
SELECT col1 * + 5, + col1 FROM tab0 AS cor0
----
105
21
405
81
5
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1076
SELECT + col1 DIV 58 * + col1 FROM tab0
----
0
0
81

skipif mysql # not compatible
query I rowsort label-1076
SELECT + col1 / 58 * + col1 FROM tab0
----
0
0
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1077
SELECT - 79 DIV - CAST( + CAST( - + 76 AS SIGNED ) AS SIGNED ) FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1077
SELECT - 79 / - CAST ( + CAST ( - + 76 AS INTEGER ) AS INTEGER ) FROM tab2
----
-1
-1
-1

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

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

query I rowsort
SELECT DISTINCT col0 * + + col2 * - col2 FROM tab1
----
-295885
-420784
-470016

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

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

query II rowsort
SELECT DISTINCT - col1 + + col0 * - 81, - col1 AS col0 FROM tab2 AS cor0
----
-3777
-51
-5261
-77
-6142
-67

query I rowsort
SELECT ALL 69 FROM tab2 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - col2 ) < + - 19 AND NOT ( NOT ( ( ( ( NULL ) IS NOT NULL ) ) ) )
----

query I rowsort
SELECT col2 + - + col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( + 41 ) + + col0 FROM tab0 AS cor0
----
128
138
56

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

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

query I rowsort
SELECT ALL + col0 + 37 FROM tab2 AS cor0
----
101
112
83

query I rowsort
SELECT + col1 * + 55 + + 31 FROM tab0 AS cor0
----
1186
4486
86

onlyif mysql # DIV for integer division: 
query I rowsort label-1089
SELECT - + 66 * - ( col1 ) - 88 DIV - col2 AS col2 FROM tab1 AS cor0
----
3103
331
924

skipif mysql # not compatible
query I rowsort label-1089
SELECT - + 66 * - ( col1 ) - 88 / - col2 AS col2 FROM tab1 AS cor0
----
3103
331
924

query I rowsort
SELECT + 85 * col0 - - - col2 FROM tab1 cor0
----
4239
7166
7667

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 86 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT ALL + col1 + - - col2 - + 6 AS col2 FROM tab0 WHERE NOT - col2 < NULL
----

query I rowsort
SELECT + ( - 7 ) AS col1 FROM tab1 AS cor0
----
-7
-7
-7

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1096
SELECT + CAST( + MAX( DISTINCT col1 ) AS SIGNED ) * - 37 AS col1, 82 FROM tab1 AS cor0
----
-1739
82

skipif mysql # not compatible
query II rowsort label-1096
SELECT + CAST ( + MAX ( DISTINCT col1 ) AS INTEGER ) * - 37 AS col1, 82 FROM tab1 AS cor0
----
-1739
82

onlyif mysql # DIV for integer division: 
query II rowsort label-1097
SELECT + col1, - 12 DIV col2 FROM tab0 AS cor0
----
1
0
21
-1
81
0

skipif mysql # not compatible
query II rowsort label-1097
SELECT + col1, - 12 / col2 FROM tab0 AS cor0
----
1
0
21
-1
81
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT - COUNT( * ) + - 74 AS col0 FROM tab2 AS cor0 WHERE NOT ( + col1 / col0 + col1 ) IS NOT NULL
----
-74

skipif mysql # not compatible
query I rowsort label-1099
SELECT - COUNT ( * ) + - 74 AS col0 FROM tab2 AS cor0 WHERE NOT ( + col1 / col0 + col1 ) IS NOT NULL
----
-74

query I rowsort
SELECT ALL - col1 - - 68 AS col2 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
-13
47
67

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT 95 IS NULL
----
51
67
77

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 / - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 + 5 - - col1 + + col0 * - col2 AS col0 FROM tab2 cor0
----
-2438
-4220
-979

query I rowsort
SELECT + col2 + - 71 AS col1 FROM tab0 AS cor0
----
-24
-61
28

query I rowsort
SELECT ALL 54 + 17 AS col1 FROM tab2 cor0
----
71
71
71

query I rowsort
SELECT 79 * + + 94 AS col0 FROM tab2
----
7426
7426
7426

query I rowsort
SELECT DISTINCT - - 94 + - col1 AS col1 FROM tab0 AS cor0
----
13
73
93

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 + + 49 + - 36 IS NULL
----

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

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

query I rowsort
SELECT ALL - 54 + + + col2 FROM tab2 AS cor0
----
-14
-31
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT DISTINCT ( - 53 ) + - + COUNT( * ) FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-1111
SELECT DISTINCT ( - 53 ) + - + COUNT ( * ) FROM tab1 AS cor0
----
-56

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

query I rowsort
SELECT ALL + col0 + col2 * + 94 FROM tab0 AS cor0
----
1027
4433
9403

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

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

query I rowsort
SELECT DISTINCT - 36 * + col2 * - - col2 * + - 19 - - col1 AS col0 FROM tab1
----
2381009
3162863
6303758

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

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

query I rowsort
SELECT ALL - 91 AS col2 FROM tab1 WHERE - col2 * col0 IS NULL AND ( NOT NULL IN ( - col1, col2, + 73 / - + col0 + - + col2 ) )
----

query I rowsort
SELECT DISTINCT col1 * 99 - - - 43 AS col2 FROM tab0
----
2036
56
7976

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

query I rowsort
SELECT ALL col0 * - - 55 - - 54 FROM tab2
----
2584
3574
4179

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1123
SELECT + MIN( CAST( NULL AS SIGNED ) ) * + 84 + - + 18 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1123
SELECT + MIN ( CAST ( NULL AS INTEGER ) ) * + 84 + - + 18 FROM tab1
----
NULL

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

query I rowsort
SELECT - col2 + 75 AS col1 FROM tab1 AS cor0
----
-21
16
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1126
SELECT DISTINCT + MAX( ALL + - col2 ) * SUM( CAST( col1 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-1030

skipif mysql # not compatible
query I rowsort label-1126
SELECT DISTINCT + MAX ( ALL + - col2 ) * SUM ( CAST ( col1 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-1030

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - ( + col2 ) * col1 * - + 94 <= col1 * ( - ( 77 ) ) * col1
----
-3

skipif mysql # not compatible
query I rowsort label-1127
SELECT + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - ( + col2 ) * col1 * - + 94 <= col1 * ( - ( 77 ) ) * col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1128
SELECT DISTINCT - + col0 * - col2 - + - 21 AS col2, col2 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
726
NULL
891
NULL
9624
NULL

skipif mysql # not compatible
query II rowsort label-1128
SELECT DISTINCT - + col0 * - col2 - + - 21 AS col2, col2 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
726
NULL
891
NULL
9624
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT + COUNT( * ) * + - 7 col0 FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1131
SELECT + COUNT ( * ) * + - 7 col0 FROM tab2 AS cor0
----
-21

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1134
SELECT - col0 + + CAST( - 35 AS SIGNED ) * - col1 AS col0 FROM tab1
----
1554
439
90

skipif mysql # not compatible
query I rowsort label-1134
SELECT - col0 + + CAST ( - 35 AS INTEGER ) * - col1 AS col0 FROM tab1
----
1554
439
90

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 col1 FROM tab2
----
104
133
69

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

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

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE - ( col2 ) * - - col1 = NULL
----

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

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

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

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

query I rowsort
SELECT ALL + - col2 + - - col1 - - 10 AS col1 FROM tab0 AS cor0
----
-88
21
44

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 68 + col2 <= - + col0 + - 75
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1143
SELECT + ( - + 18 ) + - CAST( 68 AS SIGNED ) AS col2 FROM tab1 cor0
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-1143
SELECT + ( - + 18 ) + - CAST ( 68 AS INTEGER ) AS col2 FROM tab1 cor0
----
-86
-86
-86

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

query I rowsort
SELECT DISTINCT + 12 + + - 88 FROM tab2 AS cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT ALL - COUNT( DISTINCT - col0 ) + ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL - COUNT ( DISTINCT - col0 ) + ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT - 95 + - + MAX( - + 66 ) * + ( + 0 ) FROM tab1 cor0
----
-95

skipif mysql # not compatible
query I rowsort label-1147
SELECT - 95 + - + MAX ( - + 66 ) * + ( + 0 ) FROM tab1 cor0
----
-95

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 79 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1149
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL BETWEEN CAST( NULL AS DECIMAL ) AND - col0 + + 54
----

skipif mysql # not compatible
query III rowsort label-1149
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL BETWEEN CAST ( NULL AS REAL ) AND - col0 + + 54
----

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

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

query I rowsort
SELECT ALL + 18 + - 15 FROM tab0
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1152
SELECT - col0 FROM tab2 WHERE NULL BETWEEN - col1 - col0 * 92 * - CAST( NULL AS SIGNED ) * + - CAST( + - ( + 45 ) AS SIGNED ) * col2 * + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-1152
SELECT - col0 FROM tab2 WHERE NULL BETWEEN - col1 - col0 * 92 * - CAST ( NULL AS INTEGER ) * + - CAST ( + - ( + 45 ) AS INTEGER ) * col2 * + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + - col1 - - ( - - col2 ) col1 FROM tab2
----
-2323
-4888
-4967

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1155
SELECT SUM( ALL - col0 ) + + ( + COUNT( * ) ), 31 AS col2 FROM tab0 WHERE NOT NULL <> - - 97 * + - col1
----
NULL
31

skipif mysql # not compatible
query II rowsort label-1155
SELECT SUM ( ALL - col0 ) + + ( + COUNT ( * ) ), 31 AS col2 FROM tab0 WHERE NOT NULL <> - - 97 * + - col1
----
NULL
31

onlyif mysql # DIV for integer division: 
query I rowsort label-1156
SELECT - + ( 35 ) DIV + - col2 AS col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1156
SELECT - + ( 35 ) / + - col2 AS col0 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT - col0 * - - col2 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT ALL - COUNT( 91 ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1160
SELECT DISTINCT ( col0 ) DIV + + col0 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1160
SELECT DISTINCT ( col0 ) / + + col0 AS col2 FROM tab0
----
1

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

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

query I rowsort
SELECT - 4 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

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

query II rowsort
SELECT 52 AS col2, + 81 AS col1 FROM tab0 AS cor0
----
52
81
52
81
52
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT DISTINCT ( + 14 ) + ( - SUM( DISTINCT + + 88 ) ) AS col1 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-1165
SELECT DISTINCT ( + 14 ) + ( - SUM ( DISTINCT + + 88 ) ) AS col1 FROM tab1 AS cor0
----
-74

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

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL - col1 / col0 AS col1 FROM tab1 AS cor0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-1167
SELECT - COUNT ( DISTINCT - + 23 ) FROM tab1 cor0
----
-1

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

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

query I rowsort
SELECT DISTINCT + + 96 FROM tab2 AS cor0 WHERE NOT ( + col2 * - col2 ) BETWEEN + 25 AND 33
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1170
SELECT - CAST( NULL AS SIGNED ) AS col1, + 35 + - col1 FROM tab1 AS cor0
----
NULL
-12
NULL
21
NULL
30

skipif mysql # not compatible
query II rowsort label-1170
SELECT - CAST ( NULL AS INTEGER ) AS col1, + 35 + - col1 FROM tab1 AS cor0
----
NULL
-12
NULL
21
NULL
30

query I rowsort
SELECT - col1 + - 70 * + col1 FROM tab0 WHERE NOT - col1 IS NULL
----
-1491
-5751
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1172
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) + + 36 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1172
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) + + 36 FROM tab2
----
NULL

query I rowsort
SELECT + col1 * - 21 AS col1 FROM tab1
----
-105
-294
-987

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 WHERE NOT + col1 <> ( col1 )
----
51
85
91

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

query I rowsort
SELECT DISTINCT 16 * col0 * + + 94 FROM tab0
----
130848
145888
22560

query I rowsort
SELECT - ( + 22 ) * col1 AS col2 FROM tab1
----
-1034
-110
-308

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

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE NOT - + col0 <= - col2 * 32 * - col1
----

query I rowsort
SELECT ALL col0 + + ( - col2 ) + 96 + - col1 FROM tab1
----
117
37
72

query I rowsort
SELECT + 28 + - col2 AS col0 FROM tab1 AS cor0
----
-31
-40
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 + + col0 col1 FROM tab2 AS cor0
----
49
67
78

query II rowsort
SELECT ALL col1 + col1 AS col2, col2 + + - 11 FROM tab2 cor0
----
102
12
134
47
154
29

query I rowsort
SELECT DISTINCT - 36 + - 0 + + - col2 AS col0 FROM tab1 AS cor0
----
-104
-132
-95

query I rowsort
SELECT 38 * + + 54 FROM tab1
----
2052
2052
2052

query I rowsort
SELECT DISTINCT col1 FROM tab2 cor0 WHERE NOT NULL <= ( col0 - col2 )
----

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

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

query I rowsort
SELECT + + 45 - + 46 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - + col2 AS col0 FROM tab0 WHERE 49 = + + 86
----

query I rowsort
SELECT ALL 1 + - ( - + 58 ) AS col1 FROM tab1
----
59
59
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + col2 ) col0, + col2 * - col0 + + col1 * + - 47 AS col1 FROM tab0
----
10
-1857
47
-4512
99
-9650

query III rowsort
SELECT * FROM tab2 WHERE NOT + 77 = + col1
----
46
51
23
75
67
58

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

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

query I rowsort
SELECT ALL + col0 * + 51 FROM tab1 AS cor0
----
2601
4335
4641

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT MAX( DISTINCT 65 ) * + SUM( + ( - col2 ) ) AS col2 FROM tab2
----
-7865

skipif mysql # not compatible
query I rowsort label-1196
SELECT MAX ( DISTINCT 65 ) * + SUM ( + ( - col2 ) ) AS col2 FROM tab2
----
-7865

query I rowsort
SELECT ALL + - 65 * + + 72 + 23 * 71 FROM tab2 AS cor0
----
-3047
-3047
-3047

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

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

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

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

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

query II rowsort
SELECT + col0 + + col0 + col0 * col0 AS col1, - col2 FROM tab1
----
2703
-96
7395
-59
8463
-68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1202
SELECT ALL * FROM tab2 WHERE NOT + 14 / 22 / - + ( - + CAST( - col0 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1202
SELECT ALL * FROM tab2 WHERE NOT + 14 / 22 / - + ( - + CAST ( - col0 AS INTEGER ) ) IS NOT NULL
----

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

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

query I rowsort
SELECT - col0 * + ( - col1 ) + - col0 AS col0 FROM tab0
----
0
1200
1740

onlyif mysql # aggregate syntax: 
query II rowsort label-1205
SELECT DISTINCT + SUM( col1 ), + ( + COUNT( * ) ) col2 FROM tab2
----
195
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1205
SELECT DISTINCT + SUM ( col1 ), + ( + COUNT ( * ) ) col2 FROM tab2
----
195
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT ALL - COUNT( * ) * + + 68 FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL - COUNT ( * ) * + + 68 FROM tab1
----
-204

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - - col0, 86 * 13, col2 )
----

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

query II rowsort
SELECT + 11 AS col1, col2 / - - 10 * + - col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1214
SELECT - - CAST( 64 AS SIGNED ) FROM tab2 AS cor0
----
64
64
64

skipif mysql # not compatible
query I rowsort label-1214
SELECT - - CAST ( 64 AS INTEGER ) FROM tab2 AS cor0
----
64
64
64

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

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

query I rowsort
SELECT DISTINCT ( 20 ) + + - 45 FROM tab1
----
-25

query I rowsort
SELECT ALL + 47 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1222
SELECT ALL - MIN( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT + - 69 * col1 AS col1 FROM tab1 AS cor0
----
-3243
-345
-966

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1225
SELECT + 27 DIV + - col0, col2 FROM tab0 AS cor0
----
-1
47
0
10
0
99

skipif mysql # not compatible
query II rowsort label-1225
SELECT + 27 / + - col0, col2 FROM tab0 AS cor0
----
-1
47
0
10
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT - + MIN( ALL - 13 ) * - + 10 AS col1 FROM tab2 AS cor0
----
-130

skipif mysql # not compatible
query I rowsort label-1226
SELECT - + MIN ( ALL - 13 ) * - + 10 AS col1 FROM tab2 AS cor0
----
-130

query II rowsort
SELECT + ( col2 ), col0 + + + col0 FROM tab2 AS cor0
----
23
92
40
128
58
150

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - 6 * + col1 + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT ALL MAX( ALL 48 ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL MAX ( ALL 48 ) FROM tab0
----
48

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

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

query II rowsort
SELECT 44 AS col1, 45 AS col1 FROM tab2 cor0
----
44
45
44
45
44
45

query I rowsort
SELECT 38 * 24 * + col2 FROM tab0 AS cor0
----
42864
90288
9120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1235
SELECT ALL MAX( DISTINCT + CAST( - col2 AS SIGNED ) ), ( - 78 ) AS col1 FROM tab1 AS cor0
----
-59
-78

skipif mysql # not compatible
query II rowsort label-1235
SELECT ALL MAX ( DISTINCT + CAST ( - col2 AS INTEGER ) ), ( - 78 ) AS col1 FROM tab1 AS cor0
----
-59
-78

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 NOT BETWEEN + col1 AND + col0 * - 82
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1239
SELECT - 85 + col1 DIV - - 15 AS col2 FROM tab0
----
-80
-84
-85

skipif mysql # not compatible
query I rowsort label-1239
SELECT - 85 + col1 / - - 15 AS col2 FROM tab0
----
-80
-84
-85

query I rowsort
SELECT DISTINCT ( - - col0 ) * + col1 * col2 + + - 5 + col0 * + col0 + col0 * - col2 FROM tab0
----
24964
56620
9404

query I rowsort
SELECT DISTINCT + col1 + - + 61 AS col1 FROM tab1 AS cor0
----
-14
-47
-56

query I rowsort
SELECT ALL col1 * col1 - col1 FROM tab1 AS cor0 WHERE - col1 / + 85 IS NULL
----

query II rowsort
SELECT ALL col1 + - col2 AS col1, - col2 * col2 AS col2 FROM tab0 AS cor0
----
-98
-9801
11
-100
34
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT ALL - ( - - 81 ) + - - COUNT( * ) FROM tab2 AS cor0 WHERE NULL < 23
----
-81

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL - ( - - 81 ) + - - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL < 23
----
-81

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

query I rowsort
SELECT ALL - col1 + - col0 * + 82 AS col0 FROM tab2 cor0
----
-3823
-5325
-6217

query I rowsort
SELECT col2 * + + ( col0 ) * + col0 FROM tab1
----
249696
426275
563108

query III rowsort
SELECT * FROM tab2 WHERE + col0 + - + col2 <> + col2 * + col1 * 84 + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + + col1 + - - col1 * + - col0 + + col1 * + + 26 AS col0 FROM tab1
----
-3099
-375
-387

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT ALL COUNT( * ) * - 61 FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL COUNT ( * ) * - 61 FROM tab1
----
-183

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col0 - - col0 )
----

query I rowsort
SELECT ALL + 50 + 56 - + + col0 FROM tab2 AS cor0
----
31
42
60

query I rowsort
SELECT 70 * + col1 + 84 AS col2 FROM tab0 AS cor0
----
154
1554
5754

query I rowsort
SELECT DISTINCT - col0 + + + col2 - + col0 / ( + - 45 ) + 71 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT + - col2 * - col0 + 62 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
767
932
9665

query II rowsort
SELECT ALL col0 AS col0, + 96 + col0 + - - col1 AS col2 FROM tab0 AS cor0
----
15
192
87
204
97
194

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1261
SELECT MAX( ALL + col2 ) AS col0, + 48 AS col2 FROM tab0 AS cor0
----
99
48

skipif mysql # not compatible
query II rowsort label-1261
SELECT MAX ( ALL + col2 ) AS col0, + 48 AS col2 FROM tab0 AS cor0
----
99
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT MAX( DISTINCT 12 ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-1262
SELECT MAX ( DISTINCT 12 ) FROM tab2
----
12

query III rowsort
SELECT DISTINCT - ( + col0 ), 58 + - col1 + + + col1 AS col0, 57 AS col0 FROM tab2
----
9 values hashing to cabcceb7ba1f8ba7ee1638233735ec87

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT SUM( DISTINCT 38 ) FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-1264
SELECT SUM ( DISTINCT 38 ) FROM tab0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-1265
SELECT ALL - 39 DIV + col2 * - col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL - 39 / + col2 * - col1 FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT + + ( + 20 ) * + col1 AS col1 FROM tab2 AS cor0
----
1020
1340
1540

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

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

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL + COUNT ( + 10 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

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

query I rowsort
SELECT col0 + + + 61 AS col0 FROM tab1 AS cor0
----
112
146
152

onlyif mysql # DIV for integer division: 
query I rowsort label-1273
SELECT + - ( col2 ) DIV col0 - - col1 * + - col1 * col1 + + 41 * + + col0 FROM tab0 AS cor0
----
-530829
-5694
3975

skipif mysql # not compatible
query I rowsort label-1273
SELECT + - ( col2 ) / col0 - - col1 * + - col1 * col1 + + 41 * + + col0 FROM tab0 AS cor0
----
-530829
-5694
3975

query I rowsort
SELECT ALL + 80 + + col2 - - col0 FROM tab0
----
142
177
276

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT MIN( + 94 ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-1276
SELECT MIN ( + 94 ) FROM tab1
----
94

query I rowsort
SELECT - 17 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 14 * 13 FROM tab0
----
182

query I rowsort
SELECT + col0 * + - 77 AS col0 FROM tab0
----
-1155
-6699
-7469

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1281
SELECT + + MAX( ALL - + CAST( - + 42 AS SIGNED ) ) FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-1281
SELECT + + MAX ( ALL - + CAST ( - + 42 AS INTEGER ) ) FROM tab2 AS cor0
----
42

query I rowsort
SELECT + col2 - + 30 AS col2 FROM tab2 AS cor0
----
-7
10
28

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 < + 89
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT ALL - - MIN( ALL 93 ) AS col0 FROM tab2 WHERE - col1 IS NOT NULL
----
93

skipif mysql # not compatible
query I rowsort label-1286
SELECT ALL - - MIN ( ALL 93 ) AS col0 FROM tab2 WHERE - col1 IS NOT NULL
----
93

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1289
SELECT - + 29 DIV col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1289
SELECT - + 29 / col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * - 85 FROM tab0 AS cor0
----
-1275
-7395
-8245

query I rowsort
SELECT + col0 * + + ( - col0 ) AS col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

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

query II rowsort
SELECT ALL col2 AS col0, 36 * + 70 FROM tab0
----
10
2520
47
2520
99
2520

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

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

query II rowsort
SELECT ALL + col2 AS col0, + col0 + - 7 FROM tab1
----
59
78
68
84
96
44

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

query II rowsort
SELECT ALL - + col1 AS col2, col0 - - + col0 FROM tab0 AS cor0
----
-1
194
-21
174
-81
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT + MAX( ALL + 94 ) * - 88 FROM tab1 AS cor0
----
-8272

skipif mysql # not compatible
query I rowsort label-1298
SELECT + MAX ( ALL + 94 ) * - 88 FROM tab1 AS cor0
----
-8272

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1299
SELECT - CAST( NULL AS SIGNED ) AS col0, - col2 * + - 39 FROM tab0 AS cor0
----
NULL
1833
NULL
3861
NULL
390

skipif mysql # not compatible
query II rowsort label-1299
SELECT - CAST ( NULL AS INTEGER ) AS col0, - col2 * + - 39 FROM tab0 AS cor0
----
NULL
1833
NULL
3861
NULL
390

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

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

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NOT - 76 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT DISTINCT MIN( + - 79 ) AS col0 FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT MIN ( + - 79 ) AS col0 FROM tab1 AS cor0
----
-79

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 51 * 31 IS NULL
----

query I rowsort
SELECT + 79 FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT + MIN( - 35 ) AS col1 FROM tab0 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-1306
SELECT + MIN ( - 35 ) AS col1 FROM tab0 AS cor0
----
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 0 + col0 col1, col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT ALL ( - 27 ) * + 76 - - - col1 AS col2 FROM tab0
----
-2053
-2073
-2133

query I rowsort
SELECT + col1 - + 24 FROM tab0
----
-23
-3
57

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT DISTINCT + SUM( + col1 ) - + + COUNT( * ) AS col1 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-1312
SELECT DISTINCT + SUM ( + col1 ) - + + COUNT ( * ) AS col1 FROM tab2
----
192

query I rowsort
SELECT col0 * - col2 + - - col1 + 1 AS col2 FROM tab0
----
-623
-848
-9601

query I rowsort
SELECT DISTINCT + col2 * + col0 AS col0 FROM tab1 WHERE NULL <= - - 20 * col1
----

query I rowsort
SELECT - 49 + - + 35 AS col0 FROM tab2 AS cor0
----
-84
-84
-84

query II rowsort
SELECT ALL + col1, - col2 + col1 AS col2 FROM tab0 AS cor0
----
1
-98
21
11
81
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT ALL + - 44 + + 61 + - 94 + + 81 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
166

skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL + - 44 + + 61 + - 94 + + 81 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT DISTINCT - 71 + + COUNT( - - 56 ) * + 85 FROM tab0 cor0
----
184

skipif mysql # not compatible
query I rowsort label-1318
SELECT DISTINCT - 71 + + COUNT ( - - 56 ) * + 85 FROM tab0 cor0
----
184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1319
SELECT DISTINCT - - COUNT( * ) DIV + - COUNT( * ) + - 58 AS col2 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1319
SELECT DISTINCT - - COUNT ( * ) / + - COUNT ( * ) + - 58 AS col2 FROM tab0 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT ALL + COUNT( DISTINCT + - 85 ) FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL + COUNT ( DISTINCT + - 85 ) FROM tab1 cor0
----
1

query II rowsort
SELECT col1 * col0, - col1 AS col1 FROM tab0
----
1215
-81
1827
-21
97
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1322
SELECT CAST( - 88 AS SIGNED ) - - - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-97

skipif mysql # not compatible
query I rowsort label-1322
SELECT CAST ( - 88 AS INTEGER ) - - - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-97

query I rowsort
SELECT - col1 * - - col2 * 69 AS col1 FROM tab2 AS cor0
----
-212520
-268134
-80937

query I rowsort
SELECT DISTINCT + + col1 * - col1 * - - col1 AS col1 FROM tab2 AS cor0
----
-132651
-300763
-456533

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT DISTINCT 56 * + COUNT( * ) AS col1 FROM tab1 cor0
----
168

skipif mysql # not compatible
query I rowsort label-1325
SELECT DISTINCT 56 * + COUNT ( * ) AS col1 FROM tab1 cor0
----
168

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT ALL 15 * - MIN( ALL col2 ) FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-1327
SELECT ALL 15 * - MIN ( ALL col2 ) FROM tab0
----
-150

onlyif mysql # DIV for integer division: 
query I rowsort label-1328
SELECT 6 + + - col0 + + ( + col2 ) + + + col1 DIV 97 + + - col1 * + col2 AS col1 FROM tab0
----
-281
-3769
-91

skipif mysql # not compatible
query I rowsort label-1328
SELECT 6 + + - col0 + + ( + col2 ) + + + col1 / 97 + + - col1 * + col2 AS col1 FROM tab0
----
-281
-3769
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT ALL 15 * - COUNT( * ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL 15 * - COUNT ( * ) FROM tab2
----
-45

query II rowsort
SELECT ALL col1 AS col0, - 52 AS col2 FROM tab0
----
1
-52
21
-52
81
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT - SUM( ALL + + col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-1331
SELECT - SUM ( ALL + + col0 ) FROM tab0
----
-199

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1332
SELECT ALL + COUNT ( 79 ) col2 FROM tab2
----
3

query I rowsort
SELECT 46 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 66 / + - col0 * - 82 IS NULL
----

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

query I rowsort
SELECT DISTINCT col0 * - - 97 FROM tab1
----
4947
8245
8827

query I rowsort
SELECT DISTINCT 66 AS col1 FROM tab1 WHERE NOT col1 + - 68 / - - col1 - - - col2 * - col2 * + 6 + col1 IS NULL
----
66

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 59 * + 54 col0 FROM tab0 cor0
----
3087
3139
3176

query I rowsort
SELECT + col2 + - + col0 + - + col1 FROM tab1 cor0
----
-31
-70
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT DISTINCT + 19 + + COUNT( ALL - col2 ) FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-1342
SELECT DISTINCT + 19 + + COUNT ( ALL - col2 ) FROM tab2 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT DISTINCT - - MAX( - + col0 ) - + 80 + + COUNT( * ) FROM tab2 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-1343
SELECT DISTINCT - - MAX ( - + col0 ) - + 80 + + COUNT ( * ) FROM tab2 AS cor0
----
-123

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT + COUNT( - 65 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1347
SELECT + COUNT ( - 65 ) FROM tab0
----
3

query I rowsort
SELECT - 53 * - col2 FROM tab0
----
2491
5247
530

query I rowsort
SELECT ALL col1 - - col0 * - col0 FROM tab2
----
-2065
-4019
-5558

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0 WHERE NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col2 * + + col0 >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE ( + 42 ) < NULL
----

query I rowsort
SELECT ( + col0 ) + 22 AS col0 FROM tab0 cor0 WHERE NOT NULL NOT IN ( col2, col0 )
----

query I rowsort
SELECT - - col0 * - 61 + - col2 - - ( 87 ) * - - ( + col0 ) FROM tab0 cor0
----
2252
2423
343

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 74 NOT BETWEEN - - col1 AND - + col0 + col2 * 53 * - - ( - col2 ) + + col2 * - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 col2, 10 FROM tab2 AS cor0
----
-23
10
-40
10
-58
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * 60 col0 FROM tab0 AS cor0
----
-2820
-5940
-600

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

skipif mysql # not compatible
query II rowsort label-1360
SELECT + col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

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

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

query I rowsort
SELECT ALL - 51 + + 65 AS col2 FROM tab2 AS cor0
----
14
14
14

query I rowsort
SELECT ALL + + 39 AS col0 FROM tab0 cor0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT DISTINCT - SUM( - col0 ) * - 86 + - MIN( ALL - 31 ) + - COUNT( * ) * + COUNT( * ) AS col1 FROM tab1
----
-19500

skipif mysql # not compatible
query I rowsort label-1365
SELECT DISTINCT - SUM ( - col0 ) * - 86 + - MIN ( ALL - 31 ) + - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1
----
-19500

query I rowsort
SELECT ALL + 51 * col0 FROM tab0
----
4437
4947
765

query I rowsort
SELECT ALL + 20 + 3 AS col2 FROM tab2 AS cor0
----
23
23
23

query II rowsort
SELECT + col1 AS col0, - col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
-23
67
-58
77
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) + col0 col2 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT COUNT( ( + - 91 ) ) * - ( - 94 ) AS col0 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-1370
SELECT COUNT ( ( + - 91 ) ) * - ( - 94 ) AS col0 FROM tab1
----
282

query I rowsort
SELECT - - 52 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT DISTINCT + 38 * - COUNT( ALL col2 ) AS col2 FROM tab2 WHERE NOT + 17 <> + col0
----
0

skipif mysql # not compatible
query I rowsort label-1372
SELECT DISTINCT + 38 * - COUNT ( ALL col2 ) AS col2 FROM tab2 WHERE NOT + 17 <> + col0
----
0

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

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

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

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

query I rowsort
SELECT - 91 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

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

query I rowsort
SELECT DISTINCT - - col2 * col2 + 37 FROM tab2 AS cor0
----
1637
3401
566

query I rowsort
SELECT 80 AS col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query II rowsort
SELECT - 3 + - ( + + ( col0 ) ) AS col2, - col1 FROM tab0
----
-100
-1
-18
-81
-90
-21

query I rowsort
SELECT - + 3 AS col1 FROM tab1 WHERE + 96 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT + COUNT( * ) + + + 31 AS col2 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-1381
SELECT + COUNT ( * ) + + + 31 AS col2 FROM tab2
----
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1382
SELECT + 15 / - + CAST( NULL AS DECIMAL ) + 7 / - col1 * col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1382
SELECT + 15 / - + CAST ( NULL AS REAL ) + 7 / - col1 * col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 48 + - col0 + + col1 FROM tab2
----
40
53
61

query I rowsort
SELECT DISTINCT col0 - + 7 FROM tab1
----
44
78
84

query I rowsort
SELECT - ( col0 ) + 90 * - 48 * - col0 FROM tab2
----
198674
276416
323925

query I rowsort
SELECT DISTINCT + 3 + - col2 FROM tab1 WHERE + + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 66 * + 71 * + - 8 + + col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 48 AS col1, 33 * ( + + 23 ) AS col2 FROM tab0
----
-48
759

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

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

query III rowsort
SELECT col0 AS col0, + col2 AS col1, + col0 + - + 28 * - col1 * - - 81 FROM tab0
----
9 values hashing to 6c85eb59af71933d2deec829b11395cb

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1391
SELECT ALL 16 DIV SUM( col1 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL 16 / SUM ( col1 ) AS col2 FROM tab2
----
0

query I rowsort
SELECT + col2 * col1 * - 63 FROM tab1
----
-18585
-201348
-84672

onlyif mysql # DIV for integer division: 
query II rowsort label-1393
SELECT DISTINCT 36, col2 * + col2 + + col1 DIV + 17 AS col0 FROM tab2
----
36
1604
36
3367
36
532

skipif mysql # not compatible
query II rowsort label-1393
SELECT DISTINCT 36, col2 * + col2 + + col1 / + 17 AS col0 FROM tab2
----
36
1604
36
3367
36
532

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1395
SELECT - COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT ( ( - CAST( - col0 AS SIGNED ) * 21 + + col0 * - ( - CAST( NULL AS SIGNED ) ) - col1 IS NOT NULL ) )
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1395
SELECT - COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT ( ( - CAST ( - col0 AS INTEGER ) * 21 + + col0 * - ( - CAST ( NULL AS INTEGER ) ) - col1 IS NOT NULL ) )
----
-3

query II rowsort
SELECT 67, - 19 AS col2 FROM tab2 cor0
----
67
-19
67
-19
67
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1397
SELECT + 79 * + - 53 + + col1 AS col0 FROM tab2 AS cor0 WHERE NOT + CAST( - + 54 AS SIGNED ) IS NULL
----
-4110
-4120
-4136

skipif mysql # not compatible
query I rowsort label-1397
SELECT + 79 * + - 53 + + col1 AS col0 FROM tab2 AS cor0 WHERE NOT + CAST ( - + 54 AS INTEGER ) IS NULL
----
-4110
-4120
-4136

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1398
SELECT - + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) + - 95 FROM tab1 AS cor0 WHERE NOT 54 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1398
SELECT - + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) + - 95 FROM tab1 AS cor0 WHERE NOT 54 IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1400
SELECT - col1 + - + 66 * - - 64 - col2 + col1 DIV + ( 73 ) col2 FROM tab1 AS cor0
----
-4288
-4334
-4339

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1400
SELECT - col1 + - + 66 * - - 64 - col2 + col1 / + ( 73 ) col2 FROM tab1 AS cor0
----
-4288
-4334
-4339

query I rowsort
SELECT 50 + - - 1 - - ( + 83 ) AS col0 FROM tab1
----
134
134
134

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT ALL - COUNT( * ) * + 3 col1 FROM tab0
----
-9

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT ALL - COUNT( * ) + COUNT( * ) col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1407
SELECT ALL - COUNT ( * ) + COUNT ( * ) col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT DISTINCT SUM( DISTINCT + 60 ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-1408
SELECT DISTINCT SUM ( DISTINCT + 60 ) FROM tab2
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1409
SELECT 21 DIV COUNT( * ) AS col1 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-1409
SELECT 21 / COUNT ( * ) AS col1 FROM tab2
----
7

query I rowsort
SELECT DISTINCT 47 * col1 AS col1 FROM tab2
----
2397
3149
3619

query I rowsort
SELECT ALL - 5 AS col0 FROM tab1 WHERE + col2 * + 85 + col0 <= ( col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1412
SELECT COUNT( * ) DIV - 70 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1412
SELECT COUNT ( * ) / - 70 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE ( - col0 ) IS NULL
----

query I rowsort
SELECT col0 * + 4 AS col0 FROM tab1
----
204
340
364

query I rowsort
SELECT ALL - col1 + 44 AS col1 FROM tab1
----
-3
30
39

query I rowsort
SELECT DISTINCT - ( - 97 ) * + col1 - + col0 AS col1 FROM tab1
----
1307
400
4468

query I rowsort
SELECT - col0 FROM tab0 WHERE - col0 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT ALL MAX( 2 ) * - COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL MAX ( 2 ) * - COUNT ( * ) FROM tab2
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-1420
SELECT col2 DIV + 2 + col2 FROM tab0
----
148
15
70

skipif mysql # not compatible
query I rowsort label-1420
SELECT col2 / + 2 + col2 FROM tab0
----
148
15
70

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

skipif mysql # not compatible
query I rowsort label-1421
SELECT + COUNT ( * ) FROM tab0 WHERE col2 + + 19 IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 89 + + 5 FROM tab1
----
94

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

skipif mysql # not compatible
query I rowsort label-1424
SELECT + COUNT ( * ) * MIN ( DISTINCT 4 ) FROM tab1
----
12

query I rowsort
SELECT ALL ( + ( - col0 ) ) FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE NOT col1 / - 15 IS NOT NULL
----

query I rowsort
SELECT + 34 + - 90 FROM tab2
----
-56
-56
-56

query I rowsort
SELECT 79 * - 2 + - 73 FROM tab2
----
-231
-231
-231

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE col0 * 15 NOT BETWEEN ( ( + 41 ) ) AND ( - col2 )
----
3

skipif mysql # not compatible
query I rowsort label-1430
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE col0 * 15 NOT BETWEEN ( ( + 41 ) ) AND ( - col2 )
----
3

query I rowsort
SELECT ALL - 56 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1432
SELECT COUNT( + CAST( NULL AS DECIMAL ) ) + 90 AS col0 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-1432
SELECT COUNT ( + CAST ( NULL AS REAL ) ) + 90 AS col0 FROM tab2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT COUNT( * ) FROM tab2 WHERE NULL >= - col0
----
0

skipif mysql # not compatible
query I rowsort label-1433
SELECT COUNT ( * ) FROM tab2 WHERE NULL >= - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT 66 + - COUNT( * ) AS col1 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-1434
SELECT 66 + - COUNT ( * ) AS col1 FROM tab1
----
63

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

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

query I rowsort
SELECT 78 + - col1 FROM tab1
----
31
64
73

query I rowsort
SELECT DISTINCT + col0 + 57 * + 66 AS col0 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN ( + col0 ) AND ( 2 )
----
3813
3847
3853

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT ALL + COUNT( * ) * 48 col0 FROM tab2 AS cor0
----
144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1438
SELECT ALL + COUNT ( * ) * 48 col0 FROM tab2 AS cor0
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-1439
SELECT col0 DIV 77 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1439
SELECT col0 / 77 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 57 + - 74 * 19 FROM ( tab0 AS cor0 CROSS JOIN tab0 )
----
9 values hashing to 0e7cddab9d52fd1d47799182157ba472

query I rowsort
SELECT + 3 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

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

skipif mysql # not compatible
query I rowsort label-1442
SELECT - CAST ( NULL AS INTEGER ) - - CAST ( COUNT ( * ) + 77 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 BETWEEN 9 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 33 * + col0 > NULL
----

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

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

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

query I rowsort
SELECT + + 1 * col0 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT * FROM tab1 WHERE - col1 = col1 + col0 * ( col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL <= + col2 + col0 / - 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT DISTINCT + ( - MIN( ALL col0 ) ) col0 FROM tab2
----
-46

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1454
SELECT 27 DIV + + ( + 32 ) * + col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1454
SELECT 27 / + + ( + 32 ) * + col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - col0 * + col1 + 34 * + col1 AS col1 FROM tab0
----
-1113
-63
1539

query I rowsort
SELECT DISTINCT col2 + - - col1 + + col2 AS col2 FROM tab2
----
157
183
97

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1458
SELECT - 20 + - COUNT( * ) DIV + COUNT( * ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-1458
SELECT - 20 + - COUNT ( * ) / + COUNT ( * ) FROM tab1 AS cor0
----
-21

query I rowsort
SELECT DISTINCT - - col2 + - 20 AS col1 FROM tab0 AS cor0
----
-10
27
79

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE col2 * + 84 - - 31 <= ( 0 )
----

query I rowsort
SELECT DISTINCT + 2 + - ( ( 85 ) ) AS col2 FROM tab2 cor0
----
-83

query I rowsort
SELECT DISTINCT + 62 + - col0 AS col1 FROM tab0 WHERE NULL = + col1 * + 31
----

query I rowsort
SELECT ALL 77 + - col1 AS col1 FROM tab0
----
-4
56
76

query I rowsort
SELECT ALL + ( + + 87 ) - - 72 + + 54 * + 7 AS col0 FROM tab1
----
537
537
537

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1465
SELECT * FROM tab1 AS cor0 WHERE - ( col2 ) * 17 = - col2 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1465
SELECT * FROM tab1 AS cor0 WHERE - ( col2 ) * 17 = - col2 * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col2 * 65 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 * 54 AND 82
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1470
SELECT col2 DIV + - col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1470
SELECT col2 / + - col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

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

query I rowsort
SELECT DISTINCT - + 49 * + + 15 AS col0 FROM tab0 AS cor0
----
-735

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT DISTINCT - ( SUM( DISTINCT - 14 ) ) FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-1473
SELECT DISTINCT - ( SUM ( DISTINCT - 14 ) ) FROM tab2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT DISTINCT - COUNT( * ) * 52 * + 24 AS col1 FROM tab2
----
-3744

skipif mysql # not compatible
query I rowsort label-1474
SELECT DISTINCT - COUNT ( * ) * 52 * + 24 AS col1 FROM tab2
----
-3744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1475
SELECT CAST( + - 80 AS SIGNED ) * col2 AS col2 FROM tab2
----
-1840
-3200
-4640

skipif mysql # not compatible
query I rowsort label-1475
SELECT CAST ( + - 80 AS INTEGER ) * col2 AS col2 FROM tab2
----
-1840
-3200
-4640

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT MIN( + 13 ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-1476
SELECT MIN ( + 13 ) FROM tab1
----
13

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 <= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 18 * - col2 < NULL
----

query II rowsort
SELECT ALL ( - 3 ) AS col0, 87 * - + col0 FROM tab2
----
-3
-4002
-3
-5568
-3
-6525

query II rowsort
SELECT DISTINCT 56 * - col0, col0 * + ( col2 ) AS col2 FROM tab1
----
-2856
4896
-4760
5015
-5096
6188

query I rowsort
SELECT 66 * col1 * + col0 FROM tab1
----
28050
282282
47124

query I rowsort
SELECT - col1 * 87 FROM tab1 WHERE NOT ( + col0 ) NOT IN ( col0 )
----
-1218
-4089
-435

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT + COUNT( DISTINCT + 17 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1484
SELECT + COUNT ( DISTINCT + 17 ) FROM tab2
----
1

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

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE ( - + 55 * + - col0 + + col0 ) = - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1487
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( 84 * - - 23 + CAST( NULL AS DECIMAL ) / 24 ) <> ( col2 )
----

skipif mysql # not compatible
query I rowsort label-1487
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( 84 * - - 23 + CAST ( NULL AS REAL ) / 24 ) <> ( col2 )
----

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col2 <= ( + 9 ) )
----

query I rowsort
SELECT DISTINCT col0 + col2 FROM tab2 WHERE ( NULL ) <> ( - 19 + - col1 * + + col0 * col2 )
----

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

skipif mysql # not compatible
query I rowsort label-1491
SELECT - + COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

query I rowsort
SELECT DISTINCT + col2 + - 73 FROM tab2 AS cor0 WHERE NOT + col1 - - col0 < - col0
----
-15
-33
-50

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT ALL + COUNT( * ) + - 39 AS col1 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL + COUNT ( * ) + - 39 AS col1 FROM tab2 AS cor0
----
-36

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

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

query I rowsort
SELECT + + 29 + - col0 FROM tab0 AS cor0
----
-58
-68
14

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 87 + 61 IS NULL
----

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

query I rowsort
SELECT col1 + - 80 + - 83 + - col1 * - - 77 AS col2 FROM tab2
----
-4039
-5255
-6015

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1505
SELECT col1 AS col2 FROM tab2 WHERE ( NOT NULL <> CAST( NULL AS SIGNED ) * col1 )
----

skipif mysql # not compatible
query I rowsort label-1505
SELECT col1 AS col2 FROM tab2 WHERE ( NOT NULL <> CAST ( NULL AS INTEGER ) * col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 11 > 99
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( col2 / - 21 ) AND - 89
----

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN - col2 AND - col2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT DISTINCT - COUNT( * ) * + 38 AS col2 FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT - COUNT ( * ) * + 38 AS col2 FROM tab0 AS cor0
----
-114

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 <> - 20 * - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1513
SELECT + CAST( + col1 AS SIGNED ) AS col2, + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-1513
SELECT + CAST ( + col1 AS INTEGER ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 67 / 29 IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1515
SELECT + COUNT( * ) DIV + + 14 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1515
SELECT + COUNT ( * ) / + + 14 FROM tab2 AS cor0
----
0

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

query I rowsort
SELECT - - 76 FROM tab0 cor0
----
76
76
76

query I rowsort
SELECT ALL + col2 * col0 + col1 AS col0 FROM tab0 AS cor0 WHERE 94 IS NOT NULL
----
786
891
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT - COUNT( * ) * 1 AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1519
SELECT - COUNT ( * ) * 1 AS col2 FROM tab2
----
-3

query I rowsort
SELECT ALL + 13 * col0 FROM tab1
----
1105
1183
663

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

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

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

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

query II rowsort
SELECT DISTINCT col2 AS col0, - 22 AS col0 FROM tab2
----
23
-22
40
-22
58
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1524
SELECT - + CAST( - 62 AS SIGNED ) * COUNT( * ) * + 19 FROM tab1 WHERE NOT - 8 IS NULL
----
3534

skipif mysql # not compatible
query I rowsort label-1524
SELECT - + CAST ( - 62 AS INTEGER ) * COUNT ( * ) * + 19 FROM tab1 WHERE NOT - 8 IS NULL
----
3534

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

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

query I rowsort
SELECT ALL - ( + col1 ) * 22 * 75 + - 90 AS col1 FROM tab0
----
-133740
-1740
-34740

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

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

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

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

query I rowsort
SELECT + ( + 58 ) FROM tab0 WHERE NOT NULL = ( - + ( 72 ) )
----

query I rowsort
SELECT ALL 53 * - + col2 FROM tab0
----
-2491
-5247
-530

query I rowsort
SELECT - 92 * - - 36 FROM tab2
----
-3312
-3312
-3312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + 43 col0 FROM tab1 cor0
----
2193
3655
3913

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT 37 * 94 + - col0 FROM tab2
----
3403
3414
3432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1535
SELECT ALL AVG ( - - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL AVG ( - - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > - 38
----

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

query I rowsort
SELECT DISTINCT + - col1 * - col2 + + + col1 FROM tab2 cor0
----
1224
3157
3953

query I rowsort
SELECT ALL + + 99 * col2 + ( col1 ) + + col2 AS col2 FROM tab1 AS cor0
----
5905
6847
9614

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 + + + col0 + - 7 * col2 + - 96 * + + 13 col0 FROM tab0 AS cor0
----
-1131
647
7957

query I rowsort
SELECT DISTINCT col2 + + col2 + + col1 * 95 FROM tab1
----
1522
4601
593

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT + COUNT( * ) + - - MAX( - + col0 ) AS col2 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-1543
SELECT + COUNT ( * ) + - - MAX ( - + col0 ) AS col2 FROM tab2
----
-43

query I rowsort
SELECT + col1 + + 92 FROM tab2
----
143
159
169

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1546
SELECT - ( col0 ) DIV + col1 + - - col0 - + col0 + - col0 AS col1 FROM tab0
----
-15
-194
-91

skipif mysql # not compatible
query I rowsort label-1546
SELECT - ( col0 ) / + col1 + - - col0 - + col0 + - col0 AS col1 FROM tab0
----
-15
-194
-91

query I rowsort
SELECT col2 + - col2 * + col2 AS col2 FROM tab1
----
-3422
-4556
-9120

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT - 97 + - - ( + MAX( - 65 ) ) AS col2 FROM tab2
----
-162

skipif mysql # not compatible
query I rowsort label-1548
SELECT - 97 + - - ( + MAX ( - 65 ) ) AS col2 FROM tab2
----
-162

query I rowsort
SELECT DISTINCT - - col2 - + + 96 FROM tab0 AS cor0
----
-49
-86
3

query I rowsort
SELECT DISTINCT 99 + - + col2 + col2 AS col2 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1551
SELECT + 51, MIN( DISTINCT + col1 ) FROM tab2
----
51
51

skipif mysql # not compatible
query II rowsort label-1551
SELECT + 51, MIN ( DISTINCT + col1 ) FROM tab2
----
51
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + 81, - col1, + 84 + + col1 )
----

query I rowsort
SELECT ALL + + col2 * col0 * + col0 FROM tab2 AS cor0
----
163840
326250
48668

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

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

query I rowsort
SELECT ALL + + col2 * + 62 AS col1 FROM tab1 AS cor0
----
3658
4216
5952

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

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

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

query II rowsort
SELECT DISTINCT + 69 AS col1, - 56 + - 43 AS col2 FROM tab0 cor0
----
69
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 21 AS col1, 87 col1 FROM tab2 cor0
----
21
87
21
87
21
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 * + + col2 col0 FROM tab2
----
-1932
-3360
-4872

query I rowsort
SELECT ( - 21 ) AS col0 FROM tab0
----
-21
-21
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 * - col0 * col2 * - col0 col0 FROM tab2
----
11304960
22511250
3358092

query I rowsort
SELECT 54 / col1 AS col1 FROM tab0 WHERE NOT ( NULL IN ( - col2 * + ( + col2 ) ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT DISTINCT + - COUNT( * ) + + MAX( ALL + 32 ) AS col0 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-1566
SELECT DISTINCT + - COUNT ( * ) + + MAX ( ALL + 32 ) AS col0 FROM tab2 AS cor0
----
29

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT - MIN( + 2 ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1568
SELECT - MIN ( + 2 ) FROM tab1 AS cor0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1569
SELECT 41 DIV + col2 AS col0 FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-1569
SELECT 41 / + col2 AS col0 FROM tab0 AS cor0
----
0
0
4

onlyif mysql # aggregate syntax: 
query II rowsort label-1570
SELECT ALL COUNT( * ) * - COUNT( col0 ) AS col2, COUNT( * ) FROM tab0
----
-9
3

skipif mysql # not compatible
query II rowsort label-1570
SELECT ALL COUNT ( * ) * - COUNT ( col0 ) AS col2, COUNT ( * ) FROM tab0
----
-9
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1571
SELECT ALL + ( col1 ) * + - ( - CAST( - 22 AS SIGNED ) ) FROM tab0
----
-1782
-22
-462

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL + ( col1 ) * + - ( - CAST ( - 22 AS INTEGER ) ) FROM tab0
----
-1782
-22
-462

query I rowsort
SELECT DISTINCT 90 * - ( 83 ) * - 47 AS col0 FROM tab2
----
351090

onlyif mysql # DIV for integer division: 
query I rowsort label-1573
SELECT ALL + ( + col2 ) DIV + 12 AS col2 FROM tab1 AS cor0
----
4
5
8

skipif mysql # not compatible
query I rowsort label-1573
SELECT ALL + ( + col2 ) / + 12 AS col2 FROM tab1 AS cor0
----
4
5
8

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * + col0 * - + col2 * + 63 AS col1, + col0 + + col1 col2 FROM tab1 cor0
----
-15730848
65
-26855325
90
-35475804
138

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

query I rowsort
SELECT DISTINCT + 30 * - 17 FROM tab2 AS cor0 WHERE 1 * + + col0 IS NOT NULL
----
-510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1578
SELECT COUNT( * ), 96 AS col1 FROM tab2 AS cor0 WHERE NULL IN ( + CAST( NULL AS SIGNED ) )
----
0
96

skipif mysql # not compatible
query II rowsort label-1578
SELECT COUNT ( * ), 96 AS col1 FROM tab2 AS cor0 WHERE NULL IN ( + CAST ( NULL AS INTEGER ) )
----
0
96

query II rowsort
SELECT - 97 + - ( - - col0 ), + ( col1 ) FROM tab0 AS cor0
----
-112
81
-184
21
-194
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1581
SELECT DISTINCT col0 * - CAST( + col0 AS SIGNED ) * + col2 FROM tab2
----
-163840
-326250
-48668

skipif mysql # not compatible
query I rowsort label-1581
SELECT DISTINCT col0 * - CAST ( + col0 AS INTEGER ) * + col2 FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT + ( + + 37 ) FROM tab0
----
37
37
37

onlyif mysql # DIV for integer division: 
query I rowsort label-1583
SELECT DISTINCT - col0 * - - col1 - - + col2 * + 74 * + col2 * - 93 + + ( + col0 ) + + col0 DIV - - col2 FROM tab2
----
-11016063
-23155997
-3642876

skipif mysql # not compatible
query I rowsort label-1583
SELECT DISTINCT - col0 * - - col1 - - + col2 * + 74 * + col2 * - 93 + + ( + col0 ) + + col0 / - - col2 FROM tab2
----
-11016063
-23155997
-3642876

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT DISTINCT - COUNT( * ) - 1 AS col2 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-1584
SELECT DISTINCT - COUNT ( * ) - 1 AS col2 FROM tab1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1585
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + + CAST( NULL AS SIGNED ) + + CAST( + + 32 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1585
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + + CAST ( NULL AS INTEGER ) + + CAST ( + + 32 AS INTEGER )
----

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

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

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

query I rowsort
SELECT + 87 - col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1513
-3277
-442

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1589
SELECT - CAST( + col0 AS SIGNED ) - + + col1 AS col1 FROM tab2 cor0
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-1589
SELECT - CAST ( + col0 AS INTEGER ) - + + col1 AS col1 FROM tab2 cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1590
SELECT + - COUNT( * ) DIV + + MIN( col2 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1590
SELECT + - COUNT ( * ) / + + MIN ( col2 ) AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT IN ( - 82 )
----

query I rowsort
SELECT - 68 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT DISTINCT - SUM( ALL + 72 ) FROM tab1 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-1593
SELECT DISTINCT - SUM ( ALL + 72 ) FROM tab1 AS cor0
----
-216

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1594
SELECT DISTINCT - ( col0 ) DIV col2 DIV ( col1 ) + - CAST( col2 AS SIGNED ) + + col2 + ( - + col1 ) + - col1 AS col2 FROM tab0 AS cor0
----
-162
-2
-42

skipif mysql # not compatible
query I rowsort label-1594
SELECT DISTINCT - ( col0 ) / col2 / ( col1 ) + - CAST ( col2 AS INTEGER ) + + col2 + ( - + col1 ) + - col1 AS col2 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1595
SELECT DISTINCT - CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1595
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

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

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

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

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

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

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

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

query I rowsort
SELECT - - ( col0 ) * + - col2 AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

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

query II rowsort
SELECT col1, col0 + + col0 FROM tab1
----
14
102
47
182
5
170

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - ( - 74 ) + - col0 * - col2 AND - 39 - + 41
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1604
SELECT ALL col0 AS col0, 18 DIV 83 AS col0 FROM tab0
----
15
0
87
0
97
0

skipif mysql # not compatible
query II rowsort label-1604
SELECT ALL col0 AS col0, 18 / 83 AS col0 FROM tab0
----
15
0
87
0
97
0

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1606
SELECT - - col1 col2, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 11 NOT IN ( + 58 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1609
SELECT ALL - 65 DIV COUNT( * ) + - 10 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-1609
SELECT ALL - 65 / COUNT ( * ) + - 10 FROM tab1 AS cor0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-1610
SELECT ALL + col0 * + col0 + col2 DIV - 2 AS col1 FROM tab1
----
2553
7196
8247

skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL + col0 * + col0 + col2 / - 2 AS col1 FROM tab1
----
2553
7196
8247

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1611
SELECT 4 DIV + + SUM( - col2 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1611
SELECT 4 / + + SUM ( - col2 ) AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT col0 + - col2 + - 76 AS col2 FROM tab2
----
-52
-53
-59

query I rowsort
SELECT - - col0 * 62 * - col1 AS col1 FROM tab2 AS cor0
----
-145452
-305536
-311550

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1616
SELECT DISTINCT + + 17 * col2 DIV - col0 + - col0 col2 FROM tab0 AS cor0
----
-114
-68
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1616
SELECT DISTINCT + + 17 * col2 / - col0 + - col0 col2 FROM tab0 AS cor0
----
-114
-68
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1617
SELECT ALL + 43 + - col0 * - CAST( NULL AS SIGNED ), + col2 + - - col0 AS col2 FROM tab2
----
NULL
104
NULL
133
NULL
69

skipif mysql # not compatible
query II rowsort label-1617
SELECT ALL + 43 + - col0 * - CAST ( NULL AS INTEGER ), + col2 + - - col0 AS col2 FROM tab2
----
NULL
104
NULL
133
NULL
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT ALL COUNT( * ) - - + 57 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-1619
SELECT ALL COUNT ( * ) - - + 57 FROM tab0
----
60

query I rowsort
SELECT col0 + + 56 + + ( - col1 ) AS col2 FROM tab1
----
100
136
93

query I rowsort
SELECT DISTINCT col1 * + 98 - - 36 AS col1 FROM tab2
----
5034
6602
7582

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT - COUNT( * ) + 71 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-1622
SELECT - COUNT ( * ) + 71 FROM tab1
----
68

query III rowsort
SELECT * FROM tab0 WHERE - + col0 + ( - col1 ) + - 13 + col1 * 17 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1624
SELECT ALL + 42 DIV - + ( + col0 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL + 42 / - + ( + col0 ) FROM tab1
----
0
0
0

query I rowsort
SELECT - 16 FROM tab2 AS cor0 WHERE NOT + 68 IS NULL
----
-16
-16
-16

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1627
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - col1 <= - col0
----

skipif mysql # not compatible
query III rowsort label-1627
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - col1 <= - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1628
SELECT - - col2 * col2 DIV col1 FROM tab2 WHERE NOT col0 NOT IN ( - col2 * + col2 * - 12, col2 DIV 87, - - col1, col0 )
----
10
20
50

skipif mysql # not compatible
query I rowsort label-1628
SELECT - - col2 * col2 / col1 FROM tab2 WHERE NOT col0 NOT IN ( - col2 * + col2 * - 12, col2 / 87, - - col1, col0 )
----
10
20
50

query I rowsort
SELECT col1 * + - col1 * + + col0 AS col1 FROM tab0 cor0
----
-38367
-97
-98415

query I rowsort
SELECT + 87 AS col2 FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

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

query I rowsort
SELECT - 10 + + - 83 + col0 FROM tab0
----
-6
-78
4

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

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL + COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab0
----
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 32 IN ( + 93 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 63 + + + col0 - - - col1 AS col1 FROM tab2
----
50
58
71

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1636
SELECT COUNT ( * ) * + 34 col1 FROM tab2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT ALL + MAX( + - 28 ) FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-1637
SELECT ALL + MAX ( + - 28 ) FROM tab0
----
-28

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col1 col1, 21 * + col1 AS col0, col0 FROM tab1 AS cor0
----
9 values hashing to 9cb6ec46136cccfaa0ccaf6a84d23e8d

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - + col2 <= - col0
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1643
SELECT ALL - CAST( 63 AS SIGNED ) AS col2 FROM tab2
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL - CAST ( 63 AS INTEGER ) AS col2 FROM tab2
----
-63
-63
-63

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

query I rowsort
SELECT col1 * + col2 + col1 AS col2 FROM tab2
----
1224
3157
3953

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

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

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NULL = 48 + ( 18 ) + col1
----

query I rowsort
SELECT ALL + + 52 + - col1 FROM tab1 AS cor0
----
38
47
5

query I rowsort
SELECT ALL - + 60 FROM tab1 AS cor0 WHERE col0 = 95
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT ALL - COUNT( * ) + - - 61 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL - COUNT ( * ) + - - 61 FROM tab1 AS cor0
----
58

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

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

query I rowsort
SELECT DISTINCT 28 + 4 AS col0 FROM tab0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT ALL + 8 + MAX( DISTINCT - 93 ) FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL + 8 + MAX ( DISTINCT - 93 ) FROM tab2
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1656
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( - CAST( + col1 AS SIGNED ) ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-1656
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( - CAST ( + col1 AS INTEGER ) ) >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 < + + 20
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT - MIN( ALL 56 ) FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-1661
SELECT - MIN ( ALL 56 ) FROM tab1
----
-56

query III rowsort
SELECT * FROM tab0 WHERE NOT 42 + - 9 IS NOT NULL
----

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

query I rowsort
SELECT col1 * 95 AS col1 FROM tab2 AS cor0
----
4845
6365
7315

query I rowsort
SELECT ALL 2 FROM tab2 AS cor0 WHERE 99 IN ( - - col2 )
----

query I rowsort
SELECT ALL 14 * col1 + + col0 AS col1 FROM tab1 AS cor0
----
155
247
749

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1667
SELECT - 13, + COUNT ( col2 ) col1 FROM tab2 AS cor0
----
-13
3

query I rowsort
SELECT - col2 * + col1 + 63 FROM tab0 AS cor0
----
-147
-36
-3744

onlyif mysql # DIV for integer division: 
query I rowsort label-1669
SELECT ALL + - col2 DIV 41 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1669
SELECT ALL + - col2 / 41 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1670
SELECT CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1670
SELECT CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1671
SELECT col0 * + 78 col1, col1 DIV + - col2 + - col1 FROM tab2
----
3588
-53
4992
-78
5850
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1671
SELECT col0 * + 78 col1, col1 / + - col2 + - col1 FROM tab2
----
3588
-53
4992
-78
5850
-68

query I rowsort
SELECT + col1 * - ( + ( - 15 ) ) FROM tab0
----
1215
15
315

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT MIN( - col2 ) * - COUNT( * ) FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-1673
SELECT MIN ( - col2 ) * - COUNT ( * ) FROM tab0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT DISTINCT - SUM( ALL 56 ) FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT - SUM ( ALL 56 ) FROM tab1
----
-168

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

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

query I rowsort
SELECT - col0 + + + col2 + 1 FROM tab2
----
-16
-22
-23

query II rowsort
SELECT 2 + col2 AS col1, + 33 AS col2 FROM tab0
----
101
33
12
33
49
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1678
SELECT ALL - - ( 93 ) DIV - col0 + - + col0 - col2 + col0 FROM tab2 AS cor0
----
-25
-41
-59

skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL - - ( 93 ) / - col0 + - + col0 - col2 + col0 FROM tab2 AS cor0
----
-25
-41
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT - + 67 + + SUM( 80 ) FROM tab2 AS cor0
----
173

skipif mysql # not compatible
query I rowsort label-1679
SELECT - + 67 + + SUM ( 80 ) FROM tab2 AS cor0
----
173

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE col2 NOT IN ( + 22, - ( 45 ) * - col0 * - + col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-1682
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE col2 NOT IN ( + 22, - ( 45 ) * - col0 * - + col0 )
----
-3

query I rowsort
SELECT + - 13 + col1 AS col1 FROM tab0 AS cor0
----
-12
68
8

query I rowsort
SELECT DISTINCT - + col2 - - col0 AS col1 FROM tab0 cor0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1685
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - AVG ( DISTINCT + col2 ) * - 64 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1685
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - AVG ( DISTINCT + col2 ) * - 64 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - 20 AS col1 FROM tab2 WHERE - + 94 IS NOT NULL
----
-20
-20
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1687
SELECT + + col2 - + CAST( + ( - col1 ) AS SIGNED ) + - + 36 FROM tab1 WHERE NULL < - col0
----

skipif mysql # not compatible
query I rowsort label-1687
SELECT + + col2 - + CAST ( + ( - col1 ) AS INTEGER ) + - + 36 FROM tab1 WHERE NULL < - col0
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1690
SELECT + - ( + + col1 ) * - - col0 DIV - - col0 + col0 * col0 * - 80 + + col2 - + col0 AS col0 FROM tab2 AS cor0
----
-169354
-327781
-450084

skipif mysql # not compatible
query I rowsort label-1690
SELECT + - ( + + col1 ) * - - col0 / - - col0 + col0 * col0 * - 80 + + col2 - + col0 AS col0 FROM tab2 AS cor0
----
-169354
-327781
-450084

query I rowsort
SELECT DISTINCT - 44 + ( - 22 ) AS col0 FROM tab2 AS cor0
----
-66

query II rowsort
SELECT DISTINCT + + col1 - col2 + - col0 * - ( - col0 ) AS col1, + col1 + col0 AS col1 FROM tab0 AS cor0
----
-191
96
-7558
108
-9507
98

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

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

query II rowsort
SELECT DISTINCT - col1 AS col0, - 32 FROM tab2
----
-51
-32
-67
-32
-77
-32

query I rowsort
SELECT DISTINCT col2 * + 51 AS col2 FROM tab0
----
2397
5049
510

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NULL >= - 20
----
0

skipif mysql # not compatible
query I rowsort label-1697
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NULL >= - 20
----
0

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

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

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

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

query II rowsort
SELECT 45, 44 AS col0 FROM tab2
----
45
44
45
44
45
44

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + + 3 ) IN ( - 87 + + 48 + - col2 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( - - 97 ) FROM tab2
----
97
97
97

query I rowsort
SELECT ALL - col1 * 78 AS col1 FROM tab1 AS cor0
----
-1092
-3666
-390

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT ALL + MIN( - 54 ) * - COUNT( * ) + - - ( + COUNT( * ) ) FROM tab2, tab2 AS cor0
----
495

skipif mysql # not compatible
query I rowsort label-1706
SELECT ALL + MIN ( - 54 ) * - COUNT ( * ) + - - ( + COUNT ( * ) ) FROM tab2, tab2 AS cor0
----
495

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1707
SELECT col0 / - col0 col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + - 27 * + col1 AS col0 FROM tab0 AS cor0
----
-2187
-27
-567

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT ALL + 24 + - COUNT( * ) AS col1 FROM tab0 cor0
----
21

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL + 24 + - COUNT ( * ) AS col1 FROM tab0 cor0
----
21

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1712
SELECT DISTINCT col1 + col2 + - + 14 DIV - + 47 AS col1 FROM tab2 AS cor0
----
117
125
74

skipif mysql # not compatible
query I rowsort label-1712
SELECT DISTINCT col1 + col2 + - + 14 / - + 47 AS col1 FROM tab2 AS cor0
----
117
125
74

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

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

query I rowsort
SELECT - - 36 + - col1 * + col0 + + ( + + col2 ) FROM tab2 AS cor0
----
-2287
-4852
-4931

query I rowsort
SELECT - col2 + + ( - - col0 ) * - col1 FROM tab1
----
-4345
-484
-810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1716
SELECT DISTINCT ( CAST( + - 90 AS SIGNED ) ) * - 41 + + col1 FROM tab1
----
3695
3704
3737

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT ( CAST ( + - 90 AS INTEGER ) ) * - 41 + + col1 FROM tab1
----
3695
3704
3737

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( + + 10 ) BETWEEN + 60 * + + 81 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 30 + + + 91 + + 48 * col0 AS col2 FROM tab2
----
2269
3133
3661

query I rowsort
SELECT + 96 * + 15 FROM tab0
----
1440
1440
1440

query I rowsort
SELECT - col0 * + + 92 AS col1 FROM tab2
----
-4232
-5888
-6900

query I rowsort
SELECT DISTINCT + 58 * + 37 FROM tab2
----
2146

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

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

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

query I rowsort
SELECT DISTINCT + 64 * col0 + - col1 FROM tab2
----
2893
4019
4733

query I rowsort
SELECT DISTINCT + 13 * + + col2 * - 78 FROM tab2
----
-23322
-40560
-58812

query I rowsort
SELECT DISTINCT col0 * + - col1 AS col0 FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL IN ( 95 * col0 * + + col2, col0, + col0 * - + col2 * + 77 * - 47 + - col2, - - col2 + - col1 + + col2 )
----

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

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

query I rowsort
SELECT ALL - 50 - + + 50 * col0 FROM tab0 AS cor0
----
-4400
-4900
-800

query I rowsort
SELECT DISTINCT + - col2 + - 24 - - 22 * col0 + col1 AS col0 FROM tab1 AS cor0
----
1016
1792
1957

query I rowsort
SELECT + col0 * + col0 * 15 AS col2 FROM tab0 AS cor0
----
113535
141135
3375

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1734
SELECT - + 7 + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0 WHERE NOT 60 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1734
SELECT - + 7 + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 WHERE NOT 60 IS NULL
----
NULL
NULL
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT DISTINCT COUNT( * ) * - 58 AS col1 FROM tab0, tab0 AS cor0
----
-522

skipif mysql # not compatible
query I rowsort label-1737
SELECT DISTINCT COUNT ( * ) * - 58 AS col1 FROM tab0, tab0 AS cor0
----
-522

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT - MIN( DISTINCT - - col1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1738
SELECT - MIN ( DISTINCT - - col1 ) AS col1 FROM tab0
----
-1

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

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

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

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

query I rowsort
SELECT 18 * col1 FROM tab0 AS cor0
----
1458
18
378

query I rowsort
SELECT 30 * + 27 * - - 92 + - 2 * 23 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 06df40c9ad4afdfda5b54fff5e290095

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

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

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

query II rowsort
SELECT + 21, col0 * + - 14 AS col0 FROM tab2 AS cor0
----
21
-1050
21
-644
21
-896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + ( col1 ) + + col2 col0 FROM tab2 AS cor0
----
120
181
200

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT DISTINCT + COUNT( * ) + + 61 FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-1748
SELECT DISTINCT + COUNT ( * ) + + 61 FROM tab1 AS cor0
----
64

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

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

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

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

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

query II rowsort
SELECT - col2 + col0 + - 22, + col0 AS col0 FROM tab0
----
-24
97
-54
15
55
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT DISTINCT + ( SUM( + col0 ) ) + 29 FROM tab2 AS cor0
----
214

skipif mysql # not compatible
query I rowsort label-1754
SELECT DISTINCT + ( SUM ( + col0 ) ) + 29 FROM tab2 AS cor0
----
214

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL 41 + + col2 AS col2, col2 col2, + col1 * - + col1 * col0 - + 79 FROM tab1 AS cor0
----
9 values hashing to fd54c4f0288b59c739225df99e6b8f36

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( - + 62 ) = - ( ( col2 ) ) - + col0
----
-1

skipif mysql # not compatible
query I rowsort label-1756
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( - + 62 ) = - ( ( col2 ) ) - + col0
----
-1

query I rowsort
SELECT 16 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 37 * - 77 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 21 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query II rowsort
SELECT col1 AS col1, col2 * + col2 + - col1 AS col1 FROM tab2
----
51
478
67
3297
77
1523

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1761
SELECT ALL + CAST( NULL AS DECIMAL ) AS col1, - MIN( + - 69 ) AS col0 FROM tab2 AS cor0
----
NULL
69

skipif mysql # not compatible
query II rowsort label-1761
SELECT ALL + CAST ( NULL AS REAL ) AS col1, - MIN ( + - 69 ) AS col0 FROM tab2 AS cor0
----
NULL
69

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

query II rowsort
SELECT col1 AS col2, col1 * col2 FROM tab1 cor0
----
14
1344
47
3196
5
295

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1765
SELECT DISTINCT col0 * 11 DIV 95 * + col2 AS col1, - col0 + + col2 AS col0 FROM tab2
----
115
-23
280
-24
464
-17

skipif mysql # not compatible
query II rowsort label-1765
SELECT DISTINCT col0 * 11 / 95 * + col2 AS col1, - col0 + + col2 AS col0 FROM tab2
----
115
-23
280
-24
464
-17

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1767
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ), COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-1767
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ), COUNT ( * ) FROM tab1
----
3
3

query I rowsort
SELECT ALL - 50 AS col0 FROM tab1 cor0
----
-50
-50
-50

query I rowsort
SELECT DISTINCT - col2 + + - col2 AS col0 FROM tab2 cor0
----
-116
-46
-80

query I rowsort
SELECT + col1 + - col1 FROM tab2 AS cor0 WHERE 84 IS NOT NULL
----
0
0
0

query I rowsort
SELECT - ( + ( - col0 ) ) * - 40 + + + col1 AS col2 FROM tab1 cor0
----
-2026
-3395
-3593

query I rowsort
SELECT col2 + + col2 + - - col2 * - col0 FROM tab2 AS cor0
----
-1012
-2480
-4234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - col2 * col0 + - col0 + + ( - col1 ) + - - col1 col2 FROM tab2
----
23
-1104
40
-2624
58
-4425

query I rowsort
SELECT - col0 * + 76 AS col1 FROM tab1
----
-3876
-6460
-6916

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

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

query II rowsort
SELECT + - col0, col2 + 1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND + + 54
----

query I rowsort
SELECT DISTINCT 24 * + col2 FROM tab0
----
1128
2376
240

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

query I rowsort
SELECT DISTINCT col2 + + - 80 FROM tab1
----
-12
-21
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1780
SELECT DISTINCT AVG ( ALL + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT AVG ( ALL + CAST ( NULL AS REAL ) ) AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + 33 - + + col2 AS col2, ( - col2 ) + col1 FROM tab1 cor0
----
-26
-54
-35
-21
-63
-82

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

query I rowsort
SELECT ALL 99 * 15 - + col1 FROM tab1 cor0
----
1438
1471
1480

query I rowsort
SELECT ALL 94 * col0 - - col0 FROM tab2
----
4370
6080
7125

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT DISTINCT + 82 * + - MAX( ALL + - col2 ) col2 FROM tab0
----
820

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1785
SELECT DISTINCT + 82 * + - MAX ( ALL + - col2 ) col2 FROM tab0
----
820

onlyif mysql # aggregate syntax: 
query II rowsort label-1786
SELECT SUM( ALL - 9 ) AS col1, 85 AS col2 FROM tab0
----
-27
85

skipif mysql # not compatible
query II rowsort label-1786
SELECT SUM ( ALL - 9 ) AS col1, 85 AS col2 FROM tab0
----
-27
85

onlyif mysql # DIV for integer division: 
query II rowsort label-1787
SELECT ALL 97 DIV col2 AS col2, + col1 AS col2 FROM tab0
----
0
1
2
81
9
21

skipif mysql # not compatible
query II rowsort label-1787
SELECT ALL 97 / col2 AS col2, + col1 AS col2 FROM tab0
----
0
1
2
81
9
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT ALL MIN( DISTINCT - 77 ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-77

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL MIN ( DISTINCT - 77 ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-77

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

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

query I rowsort
SELECT + + col1 * + + 55 + - - col0 * col0 + - col1 FROM tab1 AS cor0
----
10819
3357
7495

onlyif mysql # DIV for integer division: 
query II rowsort label-1791
SELECT - 75 DIV 21 * + + col1 * - col2 + - - col1, + col1 FROM tab0 cor0
----
11502
81
298
1
651
21

skipif mysql # not compatible
query II rowsort label-1791
SELECT - 75 / 21 * + + col1 * - col2 + - - col1, + col1 FROM tab0 cor0
----
11502
81
298
1
651
21

query I rowsort
SELECT DISTINCT + col1 * + + col1 FROM tab1 AS cor0
----
196
2209
25

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

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

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

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

query I rowsort
SELECT - + 37 * + - col2 + + col0 FROM tab2 AS cor0
----
1544
2221
897

query I rowsort
SELECT - col1 * + 13 AS col1 FROM tab0 AS cor0
----
-1053
-13
-273

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT 1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT + MIN( DISTINCT + 94 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( + 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1798
SELECT + MIN ( DISTINCT + 94 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( + 98 )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1800
SELECT ALL col0 DIV + + col0 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1800
SELECT ALL col0 / + + col0 AS col2 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1801
SELECT DISTINCT - CAST( + 80 AS SIGNED ) AS col0 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-1801
SELECT DISTINCT - CAST ( + 80 AS INTEGER ) AS col0 FROM tab0
----
-80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 3 = + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1803
SELECT ALL - col0 DIV + + 91 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL - col0 / + + 91 FROM tab0
----
-1
0
0

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

query III rowsort
SELECT - col2 AS col1, - col2 * + col2 + + col2, - - 17 AS col0 FROM tab2
----
9 values hashing to fec8e1b979195b78317d655a32abd83a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, - 8 AS col2 FROM tab2
----
46
-8
64
-8
75
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT ALL - MAX( DISTINCT 86 ) AS col2 FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL - MAX ( DISTINCT 86 ) AS col2 FROM tab0 AS cor0
----
-86

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1810
SELECT - + 72 DIV - col2 FROM tab0 AS cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-1810
SELECT - + 72 / - col2 FROM tab0 AS cor0
----
0
1
7

query I rowsort
SELECT DISTINCT - col1 + - - 81 + - 95 AS col2 FROM tab1 AS cor0
----
-19
-28
-61

query I rowsort
SELECT DISTINCT + + col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - + col0
----

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

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

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

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

query I rowsort
SELECT 84 + ( - 63 ) FROM tab0
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1816
SELECT - col0 + - ( + ( + + CAST( + + col2 AS SIGNED ) ) ) AS col0 FROM tab2
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-1816
SELECT - col0 + - ( + ( + + CAST ( + + col2 AS INTEGER ) ) ) AS col0 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT + col1 + - + ( + 46 ) FROM tab2
----
21
31
5

query I rowsort
SELECT ALL + - 59 + + col0 FROM tab2 cor0 WHERE NOT + col2 * + + ( - col0 ) IS NULL
----
-13
16
5

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

query I rowsort
SELECT DISTINCT + - 25 * + 47 * - 25 + + + 56 AS col2 FROM tab0 AS cor0
----
29431

query II rowsort
SELECT DISTINCT - col2 AS col1, + 67 AS col2 FROM tab2
----
-23
67
-40
67
-58
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1822
SELECT ALL CAST( + 14 AS SIGNED ) FROM tab2
----
14
14
14

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL CAST ( + 14 AS INTEGER ) FROM tab2
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * col0 AS col1, 58 * + 88 col0 FROM tab2 AS cor0
----
-2116
5104
-4096
5104
-5625
5104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1824
SELECT ALL + - 23 DIV - COUNT( * ) col2 FROM tab1 cor0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1824
SELECT ALL + - 23 / - COUNT ( * ) col2 FROM tab1 cor0
----
7

query II rowsort
SELECT 51 AS col2, col2 + col0 * - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) = - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT DISTINCT - 0 * - - MAX( DISTINCT col1 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT - 0 * - - MAX ( DISTINCT col1 ) FROM tab0 cor0
----
0

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

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

skipif mysql # not compatible
query I rowsort label-1828
SELECT COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - col0 * - 95 + + - col2 + - + 70 * + 11 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL 91 * ( + 10 ) FROM tab2
----
910
910
910

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

skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT + MIN ( ALL + ( col2 ) ) FROM tab2
----
23

query III rowsort
SELECT * FROM tab1 WHERE NOT + 58 + - col0 < NULL
----

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

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

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

query I rowsort
SELECT + col1 * col0 + - - col0 AS col2 FROM tab2
----
2392
4992
5100

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

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

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE ( NOT - 78 < NULL )
----

query I rowsort
SELECT ALL - + 36 + + col2 FROM tab0 AS cor0
----
-26
11
63

query II rowsort
SELECT DISTINCT + - 38 + 12 + + - col2 AS col1, + col2 AS col0 FROM tab0 AS cor0
----
-125
99
-36
10
-73
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1839
SELECT + col0 AS col1, - CAST( NULL AS SIGNED ) * - 59 AS col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-1839
SELECT + col0 AS col1, - CAST ( NULL AS INTEGER ) * - 59 AS col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query II rowsort
SELECT ALL - 87 + - 26 * + col0 + - col2 AS col2, - col0 FROM tab2 AS cor0
----
-1306
-46
-1791
-64
-2095
-75

query I rowsort
SELECT ALL - col1 * + + col1 - + - col1 AS col0 FROM tab1 AS cor0
----
-182
-20
-2162

query I rowsort
SELECT DISTINCT - col1 * - - col1 + + col1 - 39 - + col0 AS col0 FROM tab1 AS cor0
----
-144
-2292
-272

query I rowsort
SELECT ALL ( - 55 ) + + col1 AS col0 FROM tab1
----
-41
-50
-8

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col2 > - col0
----
87
21
10

query I rowsort
SELECT DISTINCT col2 + - + 8 AS col1 FROM tab0
----
2
39
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 37 NOT BETWEEN + col0 AND + 66 + + col0
----

query I rowsort
SELECT ALL 65 * col1 * + + col0 FROM tab1 AS cor0
----
27625
278005
46410

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT + MIN( ALL + - col0 ) FROM tab1 cor0 WHERE NOT col1 IS NULL
----
-91

skipif mysql # not compatible
query I rowsort label-1849
SELECT + MIN ( ALL + - col0 ) FROM tab1 cor0 WHERE NOT col1 IS NULL
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + - col1 col2 FROM tab2
----
-2601
-4489
-5929

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1853
SELECT ALL + col0 / 28 col2 FROM tab0 AS cor0
----
0
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 44, ( - 83 ) col0 FROM tab2 AS cor0
----
-44
-83

query I rowsort
SELECT DISTINCT + 32 * - 7 FROM tab2 AS cor0
----
-224

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

query I rowsort
SELECT + 24 * - col2 AS col1 FROM tab2 AS cor0
----
-1392
-552
-960

query I rowsort
SELECT DISTINCT + - 5 + col1 AS col1 FROM tab2 AS cor0
----
46
62
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1859
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 * - - 64 AND - 81 * + col0 + 88 + - - col1 - ( 3 ) - CAST( + - col0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1859
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 * - - 64 AND - 81 * + col0 + 88 + - - col1 - ( 3 ) - CAST ( + - col0 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
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-1860
SELECT DISTINCT + - ( - - COUNT ( * ) ) col0 FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT + 69 IS NULL
----
51
67
77

query I rowsort
SELECT + col2 + + 41 AS col1 FROM tab1 AS cor0
----
100
109
137

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab1 AS cor0 WHERE col2 + - ( + 73 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1868
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 IN ( 50 )
----

query I rowsort
SELECT DISTINCT col2 * + + col1 * + col2 FROM tab2
----
123200
225388
26979

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT + 92 + - + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
83

skipif mysql # not compatible
query I rowsort label-1871
SELECT + 92 + - + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
83

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 col1 FROM tab2 AS cor0
----
66
66
66

query II rowsort
SELECT ALL col1 * - col0 + col0 + col1 * - 44, + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2664
-210
-44
-99
-4764
-3807

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT ALL MIN( DISTINCT 55 ) * + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL MIN ( DISTINCT 55 ) * + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-165

query I rowsort
SELECT ALL - 89 + 19 FROM tab1 AS cor0
----
-70
-70
-70

query I rowsort
SELECT ALL + - 65 + - 5 AS col2 FROM tab1 AS cor0
----
-70
-70
-70

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IS NOT NULL AND col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1879
SELECT DISTINCT + - col2 + + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1879
SELECT DISTINCT + - col2 + + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 28 + col1 FROM tab2
----
105
79
95

query I rowsort
SELECT - col0 + - - col1 * + col0 FROM tab2
----
2300
4864
4950

query I rowsort
SELECT ALL - 25 * col0 AS col1 FROM tab0
----
-2175
-2425
-375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1883
SELECT + 2 + + COUNT( * ) + COUNT( * ) AS col1 FROM tab2 WHERE NOT - + col2 * 47 / + col0 + ( + 18 ) * - 90 NOT BETWEEN + - ( + CAST( NULL AS SIGNED ) ) AND + + col2 * 37
----
2

skipif mysql # not compatible
query I rowsort label-1883
SELECT + 2 + + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 WHERE NOT - + col2 * 47 / + col0 + ( + 18 ) * - 90 NOT BETWEEN + - ( + CAST ( NULL AS INTEGER ) ) AND + + col2 * 37
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-1884
SELECT SUM( DISTINCT - ( - col1 ) ), - 13 AS col2 FROM tab1
----
66
-13

skipif mysql # not compatible
query II rowsort label-1884
SELECT SUM ( DISTINCT - ( - col1 ) ), - 13 AS col2 FROM tab1
----
66
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1885
SELECT - CAST( + COUNT( - 77 ) AS SIGNED ) * + 66 AS col1 FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-1885
SELECT - CAST ( + COUNT ( - 77 ) AS INTEGER ) * + 66 AS col1 FROM tab0 AS cor0
----
-198

query II rowsort
SELECT ALL - col2 AS col0, + 50 + - 21 FROM tab1 AS cor0
----
-59
29
-68
29
-96
29

query I rowsort
SELECT DISTINCT + col0 * + - col0 FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT ALL 71 * + 11 * + col0 + - col2 FROM tab0 cor0
----
11668
67937
75658

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT ALL MIN( DISTINCT 70 ) col0 FROM tab2
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1889
SELECT ALL MIN ( DISTINCT 70 ) col0 FROM tab2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT ALL SUM( ALL col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-1890
SELECT ALL SUM ( ALL col0 ) FROM tab1
----
227

query I rowsort
SELECT DISTINCT - 26 * + col2 AS col2 FROM tab2 WHERE NOT ( col2 ) IS NULL
----
-1040
-1508
-598

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1892
SELECT ALL AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1892
SELECT ALL AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE col2 + col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 col0 FROM tab0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1895
SELECT col2 + CAST( NULL AS SIGNED ) / + 28 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1895
SELECT col2 + CAST ( NULL AS INTEGER ) / + 28 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1896
SELECT + COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1896
SELECT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT - COUNT( DISTINCT col0 ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1897
SELECT - COUNT ( DISTINCT col0 ) col2 FROM tab1
----
-3

query I rowsort
SELECT 80 + - 2 AS col0 FROM tab2
----
78
78
78

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col0 AND - col0 * - 13
----

query I rowsort
SELECT ALL - ( 10 ) AS col0 FROM tab1
----
-10
-10
-10

query I rowsort
SELECT - 53 * 61 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( 90 ) * - col2 AS col2 FROM tab1
----
-5310
-6120
-8640

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 * col2 + ( + 97 ) * col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL 66 * 55 FROM tab0
----
3630
3630
3630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1905
SELECT + CAST( NULL AS SIGNED ) + - COUNT( DISTINCT col0 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1905
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( DISTINCT col0 ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT - 21 * COUNT( * ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-1906
SELECT - 21 * COUNT ( * ) FROM tab0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT + 55 * + COUNT( * ) FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-1907
SELECT + 55 * + COUNT ( * ) FROM tab1
----
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 col2 FROM tab1 WHERE NOT ( NULL ) IN ( 30 )
----

query I rowsort
SELECT ALL + col1 + - ( 99 ) AS col2 FROM tab2
----
-22
-32
-48

query I rowsort
SELECT + 11 * - col1 AS col0 FROM tab2
----
-561
-737
-847

query I rowsort
SELECT ALL - 98 - - col0 AS col1 FROM tab1
----
-13
-47
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT + MIN( + 53 ) + + 7 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-1912
SELECT + MIN ( + 53 ) + + 7 FROM tab1
----
60

query I rowsort
SELECT + ( + 86 ) * col2 AS col2 FROM tab2
----
1978
3440
4988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - col0 col1 FROM tab2
----
-128
-150
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1915
SELECT - COUNT( DISTINCT - col1 ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1915
SELECT - COUNT ( DISTINCT - col1 ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1916
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * 33 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1916
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * 33 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1917
SELECT - 34 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1917
SELECT - 34 * - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT 23 * COUNT( * ) col2 FROM tab2 WHERE NULL IS NULL
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1918
SELECT 23 * COUNT ( * ) col2 FROM tab2 WHERE NULL IS NULL
----
69

query I rowsort
SELECT 15 * + col2 AS col2 FROM tab1
----
1020
1440
885

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1920
SELECT - 73 DIV - ( - COUNT( * ) ) + 15 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-1920
SELECT - 73 / - ( - COUNT ( * ) ) + 15 FROM tab2
----
-9

query I rowsort
SELECT DISTINCT 14 / - col0 FROM tab1 WHERE NOT ( - col1 + col2 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT MIN( 63 ) + - COUNT( * ) * - 72 FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-1922
SELECT MIN ( 63 ) + - COUNT ( * ) * - 72 FROM tab2
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT DISTINCT SUM( + col1 ) * + COUNT( * ) AS col1 FROM tab1 WHERE NOT ( + col0 * col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1923
SELECT DISTINCT SUM ( + col1 ) * + COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( + col0 * col1 ) IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 + col1 / col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT - COUNT( * ) * + 20 FROM tab1 WHERE ( NULL ) BETWEEN 24 AND col2
----
0

skipif mysql # not compatible
query I rowsort label-1925
SELECT - COUNT ( * ) * + 20 FROM tab1 WHERE ( NULL ) BETWEEN 24 AND col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT ALL COUNT( * ) + 51 AS col1 FROM tab1 cor0
----
54

skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL COUNT ( * ) + 51 AS col1 FROM tab1 cor0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT DISTINCT COUNT( * ) + + MIN( DISTINCT - 94 + - 53 ) AS col1 FROM tab0 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-1928
SELECT DISTINCT COUNT ( * ) + + MIN ( DISTINCT - 94 + - 53 ) AS col1 FROM tab0 AS cor0
----
-144

query I rowsort
SELECT 2 - col0 FROM tab1 AS cor0
----
-49
-83
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT 51 + + MIN( + 82 ) FROM tab2
----
133

skipif mysql # not compatible
query I rowsort label-1930
SELECT 51 + + MIN ( + 82 ) FROM tab2
----
133

query I rowsort
SELECT DISTINCT 36 FROM tab2 cor0 CROSS JOIN tab2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1932
SELECT ALL + col0 AS col1 FROM tab2 WHERE NOT 94 * 21 - + CAST( NULL AS SIGNED ) * - 92 IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL + col0 AS col1 FROM tab2 WHERE NOT 94 * 21 - + CAST ( NULL AS INTEGER ) * - 92 IS NOT NULL
----
46
64
75

query I rowsort
SELECT 9 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT - + COUNT( * ) + 58 * + COUNT( * ) FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-1934
SELECT - + COUNT ( * ) + 58 * + COUNT ( * ) FROM tab1 AS cor0
----
171

query I rowsort
SELECT - col1 + col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 17 / col2 + - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1937
SELECT + - COUNT( 87 ) DIV - COUNT( - col2 ) AS col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1937
SELECT + - COUNT ( 87 ) / - COUNT ( - col2 ) AS col1 FROM tab1 cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1938
SELECT 0 DIV + col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1938
SELECT 0 / + col0 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - 78 * - col0 ) NOT IN ( ( 59 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT ALL + + SUM( DISTINCT col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL + + SUM ( DISTINCT col0 ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT + ( + 93 ) AS col2 FROM tab0 AS cor0
----
93
93
93

query I rowsort
SELECT - col0 * col1 FROM tab2 AS cor0 WHERE 95 IS NOT NULL
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * col1 >= 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT COUNT( * ) * + MAX( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1944
SELECT COUNT ( * ) * + MAX ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1945
SELECT CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + col1 <= 56 * col0
----

skipif mysql # not compatible
query I rowsort label-1945
SELECT CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + col1 <= 56 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT - COUNT( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1946
SELECT - COUNT ( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT ALL + MIN( ALL + col0 ) FROM tab2 WHERE ( col2 ) < col1 * col0
----
46

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL + MIN ( ALL + col0 ) FROM tab2 WHERE ( col2 ) < col1 * col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT ALL ( 55 ) * COUNT( * ) AS col1 FROM tab2
----
165

skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL ( 55 ) * COUNT ( * ) AS col1 FROM tab2
----
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab2 WHERE NOT NULL NOT IN ( - 34 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT ALL SUM( ALL - col1 ) FROM tab1 WHERE col2 IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL SUM ( ALL - col1 ) FROM tab1 WHERE col2 IS NOT NULL
----
-66

query I rowsort
SELECT col0 * 16 AS col2 FROM tab1 WHERE NOT ( NULL ) IN ( + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - 79 + - col2 )
----

query I rowsort
SELECT - 76 * 90 FROM tab1
----
-6840
-6840
-6840

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * + col1 IS NULL
----

query I rowsort
SELECT ALL + ( 38 ) FROM tab1 AS cor0
----
38
38
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1956
SELECT - + CAST( NULL AS SIGNED ) * + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1956
SELECT - + CAST ( NULL AS INTEGER ) * + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1957
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 NOT IN ( CAST( NULL AS SIGNED ) + 78 * col2 )
----

skipif mysql # not compatible
query III rowsort label-1957
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 NOT IN ( CAST ( NULL AS INTEGER ) + 78 * col2 )
----

query I rowsort
SELECT - 8 * col0 - col0 AS col0 FROM tab0 WHERE NOT + col1 NOT BETWEEN ( NULL ) AND ( - col1 * 68 )
----

query II rowsort
SELECT 52, - ( 95 ) AS col0 FROM tab2
----
52
-95
52
-95
52
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT MAX( DISTINCT - 4 ) AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1960
SELECT MAX ( DISTINCT - 4 ) AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 58 ) > col0 * - col0
----

query I rowsort
SELECT ALL - col0 + - col0 + col1 FROM tab1 AS cor0
----
-135
-165
-88

query I rowsort
SELECT - 65 * + - 45 FROM tab2 cor0
----
2925
2925
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT ALL - 69 * - COUNT( * ) FROM tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL - 69 * - COUNT ( * ) FROM tab0 AS cor0
----
207

query I rowsort
SELECT col2 AS col0 FROM tab2 cor0 WHERE ( ( + 18 ) + + 39 ) <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1967
SELECT ALL + col2 * ( - col2 ) FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL + col2 * ( - col2 ) FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT DISTINCT + MAX( ALL - - col0 ) + - 23 AS col1 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT + MAX ( ALL - - col0 ) + - 23 AS col1 FROM tab0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT DISTINCT - MIN( ALL - + col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT - MIN ( ALL - + col1 ) AS col0 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT + - col0 > ( - + col0 * col1 + 68 )
----
0

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT + - col0 > ( - + col0 * col1 + 68 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1971
SELECT CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1971
SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1972
SELECT ALL 96 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL 96 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT ALL SUM( DISTINCT col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL SUM ( DISTINCT col1 ) FROM tab2
----
195

query I rowsort
SELECT + 49 + + - col2 FROM tab0
----
-50
2
39

query I rowsort
SELECT ( + col2 ) * + - col1 + 85 AS col0 FROM tab2
----
-1088
-2995
-3801

onlyif mysql # aggregate syntax: 
query II rowsort label-1976
SELECT COUNT( * ), ( - ( - COUNT( * ) ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-1976
SELECT COUNT ( * ), ( - ( - COUNT ( * ) ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

query I rowsort
SELECT DISTINCT + ( + + 72 ) - col0 AS col2 FROM tab0
----
-15
-25
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1978
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - - 48 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - - 48 AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 81 / col1 * col2 / - col0 + col0 <= NULL
----

query I rowsort
SELECT ALL 17 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
17
17
17

onlyif mysql # aggregate syntax: 
query II rowsort label-1981
SELECT DISTINCT 59 AS col0, COUNT( * ) + + 29 AS col2 FROM tab0 AS cor0
----
59
32

skipif mysql # not compatible
query II rowsort label-1981
SELECT DISTINCT 59 AS col0, COUNT ( * ) + + 29 AS col2 FROM tab0 AS cor0
----
59
32

query II rowsort
SELECT DISTINCT + col1 AS col1, col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT - 67 * + + col0 - - + ( + - col0 ) FROM tab0 AS cor0
----
-1020
-5916
-6596

query I rowsort
SELECT ALL + col2 * - - col1 + col0 AS col0 FROM tab2 AS cor0
----
1219
3144
3961

query I rowsort
SELECT ALL col2 * + + ( - col1 ) AS col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-1986
SELECT + 54 DIV + - col2 col1 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1986
SELECT + 54 / + - col2 col1 FROM tab0
----
-1
-5
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1987
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1987
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * + + col2 * - - ( col1 ) col2, col0 AS col1 FROM tab1
----
-1475
85
-150212
91
-18816
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT ALL + MAX( - + 38 ) FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL + MAX ( - + 38 ) FROM tab0
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1990
SELECT - - MAX( DISTINCT - col1 ) DIV 90 AS col1 FROM tab1 WHERE NOT - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1990
SELECT - - MAX ( DISTINCT - col1 ) / 90 AS col1 FROM tab1 WHERE NOT - col2 IS NULL
----
0

query I rowsort
SELECT ALL - - 66 * ( 76 ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col1 + + + 58 + col1, - col0 )
----

query II rowsort
SELECT + 61, ( + col0 ) FROM tab1 cor0
----
61
51
61
85
61
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT COUNT( 97 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1993
SELECT COUNT ( 97 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT ALL + MAX( col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL + MAX ( col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1995
SELECT ALL + 32 FROM tab2 WHERE NOT - + col1 * col2 + - + 2 + + + col0 NOT BETWEEN NULL AND - col1 + + CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1995
SELECT ALL + 32 FROM tab2 WHERE NOT - + col1 * col2 + - + 2 + + + col0 NOT BETWEEN NULL AND - col1 + + CAST ( col1 AS INTEGER )
----

query I rowsort
SELECT - 87 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1997
SELECT ALL + col0 + CAST( NULL AS SIGNED ) + 19 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) + 19 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - + 50 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1999
SELECT ALL MIN( - CAST( NULL AS SIGNED ) ) + - 21 * + MAX( ALL - 69 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1999
SELECT ALL MIN ( - CAST ( NULL AS INTEGER ) ) + - 21 * + MAX ( ALL - 69 ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < col1 + + col1 / + col0 - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2001
SELECT col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( - 90 - + - col0 + CAST( - col1 AS SIGNED ) * - col1 + + col1 )
----

skipif mysql # not compatible
query I rowsort label-2001
SELECT col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( - 90 - + - col0 + CAST ( - col1 AS INTEGER ) * - col1 + + col1 )
----

query I rowsort
SELECT DISTINCT + col1 + col1 + + col2 AS col2 FROM tab1 AS cor0
----
124
162
69

query I rowsort
SELECT - + col2 + + col1 + col1 AS col2 FROM tab0 AS cor0
----
-97
115
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT 60 + COUNT( * ) AS col1 FROM tab2 cor0
----
63

skipif mysql # not compatible
query I rowsort label-2004
SELECT 60 + COUNT ( * ) AS col1 FROM tab2 cor0
----
63

query I rowsort
SELECT + - ( + col1 ) * + col0 + + 89 + + 26 FROM tab0 AS cor0
----
-1100
-1712
18

onlyif mysql # DIV for integer division: 
query I rowsort label-2006
SELECT ALL 54 DIV + 62 AS col2 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2006
SELECT ALL 54 / + 62 AS col2 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT COUNT( * ) + - - 35 AS col0 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-2007
SELECT COUNT ( * ) + - - 35 AS col0 FROM tab0
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + - 39 col2 FROM tab0
----
-126
-136
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT - MIN( + 16 ) col2 FROM tab0 WHERE ( + 30 * - col2 - + col1 ) IS NOT NULL
----
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2009
SELECT - MIN ( + 16 ) col2 FROM tab0 WHERE ( + 30 * - col2 - + col1 ) IS NOT NULL
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-2010
SELECT 32 AS col2, - COUNT( * ) * + COUNT( * ) FROM tab0
----
32
-9

skipif mysql # not compatible
query II rowsort label-2010
SELECT 32 AS col2, - COUNT ( * ) * + COUNT ( * ) FROM tab0
----
32
-9

query I rowsort
SELECT ALL - 11 - - 46 AS col2 FROM tab2
----
35
35
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2012
SELECT SUM( + col1 ) DIV - - 51 AS col0, 35 FROM tab1
----
1
35

skipif mysql # not compatible
query II rowsort label-2012
SELECT SUM ( + col1 ) / - - 51 AS col0, 35 FROM tab1
----
1
35

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2013
SELECT ALL * FROM tab1 WHERE NOT col0 NOT IN ( CAST( - col2 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-2013
SELECT ALL * FROM tab1 WHERE NOT col0 NOT IN ( CAST ( - col2 AS REAL ) )
----

query II rowsort
SELECT + + 96, col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
96
59
96
68
96
96

query I rowsort
SELECT DISTINCT - 85 FROM tab2 cor0
----
-85

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NULL <> + col1
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2017
SELECT + CAST( NULL AS SIGNED ) - + - ( CAST( + 39 AS DECIMAL ) ) * 35 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2017
SELECT + CAST ( NULL AS INTEGER ) - + - ( CAST ( + 39 AS REAL ) ) * 35 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT DISTINCT + COUNT( * ) + - SUM( DISTINCT - + ( + col1 ) ) FROM tab0 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-2018
SELECT DISTINCT + COUNT ( * ) + - SUM ( DISTINCT - + ( + col1 ) ) FROM tab0 AS cor0
----
106

query I rowsort
SELECT ALL - ( - col1 ) + + + ( + col2 ) AS col0 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT ALL col0 + + - 70 FROM tab2
----
-24
-6
5

query I rowsort
SELECT 65 * + 15 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 93207fb563248f6c7213179bd15d6125

query I rowsort
SELECT ALL + 41 * 42 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 6a0d061b7b0073068cab90403c1968f9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - col2 ) col2, + col0 + 65 - 83 * + + 60 AS col0 FROM tab2
----
-23
-4869
-40
-4851
-58
-4840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2024
SELECT + 86 * + + CAST( NULL AS SIGNED ) * + + col1 + + 23 * 84 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 <= NULL
----

skipif mysql # not compatible
query I rowsort label-2024
SELECT + 86 * + + CAST ( NULL AS INTEGER ) * + + col1 + + 23 * 84 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2025
SELECT DISTINCT + 43 + - COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT + CAST( - + 69 AS SIGNED ) + - col2 BETWEEN NULL AND 51
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2025
SELECT DISTINCT + 43 + - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT + CAST ( - + 69 AS INTEGER ) + - col2 BETWEEN NULL AND 51
----
43

query I rowsort
SELECT DISTINCT + col0 * col1 * ( + - col2 ) AS col2 FROM tab0 AS cor0
----
-18270
-57105
-9603

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= ( - col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2028
SELECT - col2 DIV - col2, 40 AS col2 FROM tab0 AS cor0
----
1
40
1
40
1
40

skipif mysql # not compatible
query II rowsort label-2028
SELECT - col2 / - col2, 40 AS col2 FROM tab0 AS cor0
----
1
40
1
40
1
40

query I rowsort
SELECT DISTINCT + 93 * - + col2 + + col1 + 50 + + col1 FROM tab1 AS cor0
----
-5427
-6180
-8850

query I rowsort
SELECT + col1 * 24 + - col2 FROM tab0 cor0
----
-75
1897
494

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT ALL SUM( DISTINCT + - col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2031
SELECT ALL SUM ( DISTINCT + - col1 ) FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT ALL - SUM( + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL - SUM ( + col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2033
SELECT + CAST( - + col1 AS SIGNED ) AS col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2033
SELECT + CAST ( - + col1 AS INTEGER ) AS col2 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + + col2 * col0 * col0 FROM tab0 AS cor0
----
10575
75690
931491

query I rowsort
SELECT DISTINCT + - col0 + ( col0 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - col0 * + col0 / + 87 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 6 AND ( - + 13 ) + - col2
----

query II rowsort
SELECT DISTINCT - col1, col0 * - col1 * + - col2 AS col2 FROM tab1
----
-14
68544
-47
290836
-5
25075

onlyif mysql # DIV for integer division: 
query I rowsort label-2038
SELECT - col0 DIV + - 46 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2038
SELECT - col0 / + - 46 AS col0 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2040
SELECT ALL + col2 DIV - col0 + - - col0 + + 74 col2 FROM tab2 AS cor0
----
120
138
149

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2040
SELECT ALL + col2 / - col0 + - - col0 + + 74 col2 FROM tab2 AS cor0
----
120
138
149

query III rowsort
SELECT col2, col1, - ( + 92 ) AS col0 FROM tab0 AS cor0
----
9 values hashing to 5eba6ff4fe6f2b182665103e201dffe8

query II rowsort
SELECT ALL - col1 * + col2 * - col0 + col2, + col1 AS col0 FROM tab1 AS cor0
----
25134
5
290904
47
68640
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2043
SELECT DISTINCT + col2 + + - CAST( NULL AS SIGNED ) - + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2043
SELECT DISTINCT + col2 + + - CAST ( NULL AS INTEGER ) - + col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2044
SELECT + 61 col1, COUNT( * ) AS col2 FROM tab2 AS cor0
----
61
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2044
SELECT + 61 col1, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
61
3

query I rowsort
SELECT ALL + col1 + + 64 + + 52 * + 4 + + col1 FROM tab0 cor0
----
274
314
434

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2046
SELECT ALL + col1 - - CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL + col1 - - CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 + - 52 * - col2 AS col0 FROM tab0 AS cor0
----
2363
499
5147

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2048
SELECT DISTINCT ( + COUNT( * ) ) + - COUNT( * ) * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT ( + COUNT ( * ) ) + - COUNT ( * ) * CAST ( NULL AS REAL ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT ALL + - SUM( + col2 ) FROM tab0 WHERE NOT NULL > ( + - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL + - SUM ( + col2 ) FROM tab0 WHERE NOT NULL > ( + - col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2050
SELECT col1 + - + CAST( NULL AS SIGNED ) AS col2, - col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-2050
SELECT col1 + - + CAST ( NULL AS INTEGER ) AS col2, - col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT + col0 * - ( + col1 ) + - - 85 FROM tab2
----
-2261
-4843
-4940

onlyif mysql # aggregate syntax: 
query II rowsort label-2052
SELECT DISTINCT + SUM( DISTINCT - col0 ) col2, - 90 * + COUNT( * ) FROM tab1
----
-227
-270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2052
SELECT DISTINCT + SUM ( DISTINCT - col0 ) col2, - 90 * + COUNT ( * ) FROM tab1
----
-227
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT COUNT( * ) + - + COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2053
SELECT COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2054
SELECT + ( - CAST( NULL AS DECIMAL ) ) + SUM( ALL + 70 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2054
SELECT + ( - CAST ( NULL AS REAL ) ) + SUM ( ALL + 70 ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT 5 + + col0 AS col1 FROM tab2 AS cor0
----
51
69
80

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 IN ( + col0, - col1, - - col0 + + ( + 49 ), + 49 * + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * + col2 * + col0 * col0 FROM tab2 AS cor0 WHERE NOT + col0 + col2 > + 23
----

query I rowsort
SELECT DISTINCT + - col1 - - col1 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT ALL + - COUNT( * ) + + COUNT( 1 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL + - COUNT ( * ) + + COUNT ( 1 ) AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + - col2, + 80 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2061
SELECT + 41 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2061
SELECT + 41 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * ( - col2 ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2063
SELECT DISTINCT - ( - MIN( DISTINCT - col2 ) ) AS col0, 68 FROM tab1 AS cor0
----
-96
68

skipif mysql # not compatible
query II rowsort label-2063
SELECT DISTINCT - ( - MIN ( DISTINCT - col2 ) ) AS col0, 68 FROM tab1 AS cor0
----
-96
68

query II rowsort
SELECT - col1, col0 AS col0 FROM tab2 cor0
----
-51
46
-67
75
-77
64

query II rowsort
SELECT ALL + col2 AS col1, + 3 AS col2 FROM tab0 AS cor0
----
10
3
47
3
99
3

query I rowsort
SELECT DISTINCT - - 14 * + + ( col2 ) FROM tab2 AS cor0
----
322
560
812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( + col2 ) * + col0 + - + 6 col2, + col1 col1 FROM tab2 AS cor0
----
-1064
51
-2566
77
-4356
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 40 * + col0 col1, + col2 FROM tab0
----
3480
10
3880
99
600
47

query I rowsort
SELECT 58 * + col1 AS col0 FROM tab1
----
2726
290
812

query III rowsort
SELECT * FROM tab2 WHERE NOT + 99 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2071
SELECT - COUNT( - 42 ) / - MAX( DISTINCT + ( + + CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2071
SELECT - COUNT ( - 42 ) / - MAX ( DISTINCT + ( + + CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2072
SELECT ALL ( - col0 ) DIV + col1 + 35 FROM tab2 WHERE NULL IS NULL
----
34
35
35

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL ( - col0 ) / + col1 + 35 FROM tab2 WHERE NULL IS NULL
----
34
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT - SUM( - 76 ) col1 FROM tab0
----
228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2073
SELECT - SUM ( - 76 ) col1 FROM tab0
----
228

query I rowsort
SELECT ALL - col1 * - + 83 * + col2 FROM tab0
----
17430
315981
8217

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 41 ) col0 FROM tab1
----
-41
-41
-41

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 53 = + - ( col1 ) + - - col0 + - + 8 * + col1 * - ( col0 ) * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 5 * ( 66 ) FROM tab0 AS cor0
----
330
330
330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2078
SELECT ALL - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE 15 / - ( col1 ) NOT IN ( + + col0 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE 15 / - ( col1 ) NOT IN ( + + col0 )
----
NULL
NULL
NULL

query I rowsort
SELECT ( 40 ) AS col1 FROM tab0 AS cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT ALL + ( - - MAX( col0 ) ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL + ( - - MAX ( col0 ) ) AS col1 FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL 47 + + + 9 * col1 AS col0 FROM tab1 AS cor0
----
173
470
92

onlyif mysql # DIV for integer division: 
query I rowsort label-2082
SELECT ALL - - col0 DIV + 87 + - + col0 * - col0 FROM tab1 WHERE NOT - + col1 IS NULL
----
2601
7225
8282

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL - - col0 / + 87 + - + col0 * - col0 FROM tab1 WHERE NOT - + col1 IS NULL
----
2601
7225
8282

query I rowsort
SELECT col0 * + 95 AS col0 FROM tab0
----
1425
8265
9215

query I rowsort
SELECT DISTINCT + 21 + ( + - 93 ) * - + col0 AS col2 FROM tab0 cor0
----
1416
8112
9042

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2085
SELECT - CAST( NULL AS SIGNED ), col0 AS col0 FROM tab2 AS cor0 WHERE 74 IN ( + 16 * col1 )
----

skipif mysql # not compatible
query II rowsort label-2085
SELECT - CAST ( NULL AS INTEGER ), col0 AS col0 FROM tab2 AS cor0 WHERE 74 IN ( + 16 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2086
SELECT ALL + CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL + CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT 72 + - + COUNT( * ) FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2087
SELECT 72 + - + COUNT ( * ) FROM tab0 AS cor0
----
69

query I rowsort
SELECT DISTINCT - col2 * - - 6 - - 18 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2089
SELECT col0 DIV 88 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2089
SELECT col0 / 88 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2090
SELECT ALL - 20 DIV - - col0 + - - col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL - 20 / - - col0 + - - col0 FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT ALL + 53, + col1 AS col2 FROM tab0 AS cor0
----
53
1
53
21
53
81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 * col1 <= ( ( - col0 ) )
----

query II rowsort
SELECT - col0 AS col0, - col2 AS col1 FROM tab2
----
-46
-23
-64
-40
-75
-58

query I rowsort
SELECT col0 * + - col2 * - col2 AS col2 FROM tab0
----
33135
8700
950697

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT DISTINCT ( + COUNT( * ) ) - - + 20 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2095
SELECT DISTINCT ( + COUNT ( * ) ) - - + 20 FROM tab2
----
23

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col2 * + 1 - + col1 NOT BETWEEN ( - col1 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2097
SELECT DISTINCT - 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-2097
SELECT DISTINCT - COUNT ( * ) * CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2098
SELECT ALL col0 DIV 73 + - col2 FROM tab2
----
-23
-40
-57

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL col0 / 73 + - col2 FROM tab2
----
-23
-40
-57

query I rowsort
SELECT ALL col2 + 29 * 48 * - col1 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col0, - col1 AS col2 FROM tab0
----
-15
-81
-87
-21
-97
-1

query I rowsort
SELECT ALL 46 - col1 * - col1 FROM tab0
----
47
487
6607

query I rowsort
SELECT DISTINCT + ( + - col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT ALL + 3 + ( + 0 ) - + - col0 AS col0, + 15 FROM tab0 AS cor0
----
100
15
18
15
90
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT ALL COUNT( DISTINCT ( - 53 ) ) AS col2 FROM tab2 AS cor0 WHERE + 33 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL COUNT ( DISTINCT ( - 53 ) ) AS col2 FROM tab2 AS cor0 WHERE + 33 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2105
SELECT MAX( - 60 ) AS col2, COUNT( * ) * - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-60
-9

skipif mysql # not compatible
query II rowsort label-2105
SELECT MAX ( - 60 ) AS col2, COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-60
-9

query II rowsort
SELECT DISTINCT + col1, col0 * + + col0 AS col1 FROM tab1 cor0 WHERE NULL < - col0 + 95
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 15 col2 FROM tab2
----
-15
-15
-15

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2109
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2110
SELECT + + col0 * - col0 + + col2 * + 67 + + CAST( NULL AS SIGNED ) AS col2, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-2110
SELECT + + col0 * - col0 + + col2 * + 67 + + CAST ( NULL AS INTEGER ) AS col2, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 * - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 35 * - 69 AS col2 FROM tab1 AS cor0
----
-2415
-2415
-2415

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2113
SELECT MAX( DISTINCT - col2 ) DIV - 82 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2113
SELECT MAX ( DISTINCT - col2 ) / - 82 AS col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 59 * col2 col2 FROM tab0 AS cor0
----
-2773
-5841
-590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2115
SELECT DISTINCT - + CAST( - - COUNT( * ) AS SIGNED ), CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-2115
SELECT DISTINCT - + CAST ( - - COUNT ( * ) AS INTEGER ), CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 51 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2117
SELECT CAST( - - 85 AS SIGNED ) FROM tab1
----
85
85
85

skipif mysql # not compatible
query I rowsort label-2117
SELECT CAST ( - - 85 AS INTEGER ) FROM tab1
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT ALL - 0 * COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL - 0 * COUNT ( * ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT - MIN( - - ( - 47 ) ) AS col1 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-2119
SELECT - MIN ( - - ( - 47 ) ) AS col1 FROM tab2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2120
SELECT + CAST( + - col1 AS SIGNED ) + 80 FROM tab0 AS cor0
----
-1
59
79

skipif mysql # not compatible
query I rowsort label-2120
SELECT + CAST ( + - col1 AS INTEGER ) + 80 FROM tab0 AS cor0
----
-1
59
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2121
SELECT + + CAST( col2 AS SIGNED ) + + - col1 AS col0 FROM tab2 AS cor0
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-2121
SELECT + + CAST ( col2 AS INTEGER ) + + - col1 AS col0 FROM tab2 AS cor0
----
-28
-37
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 + col1 + + 94 > - 54 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT DISTINCT - - MIN( ALL - + col1 ) col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2123
SELECT DISTINCT - - MIN ( ALL - + col1 ) col1 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT DISTINCT 26 + + - COUNT( * ) + COUNT( * ) FROM tab0 cor0
----
26

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT 26 + + - COUNT ( * ) + COUNT ( * ) FROM tab0 cor0
----
26

query I rowsort
SELECT col2 * - col1 * + col1 FROM tab1
----
-1475
-150212
-18816

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2126
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < ( - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2126
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < ( - + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( col0 ) >= + col0
----
0

skipif mysql # not compatible
query I rowsort label-2127
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( col0 ) >= + col0
----
0

query I rowsort
SELECT - col2 * col2 - 61 FROM tab2 AS cor0
----
-1661
-3425
-590

query I rowsort
SELECT 0 * - 63 - + col0 AS col1 FROM tab2 AS cor0 WHERE ( NOT ( ( NULL IS NOT NULL ) ) )
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NOT - col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT - ( - - COUNT( * ) ) - - 57 AS col1 FROM tab2 cor0
----
54

skipif mysql # not compatible
query I rowsort label-2131
SELECT - ( - - COUNT ( * ) ) - - 57 AS col1 FROM tab2 cor0
----
54

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col0 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2133
SELECT DISTINCT + col2 DIV - - col2 + + - col0 FROM tab2 cor0
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-2133
SELECT DISTINCT + col2 / - - col2 + + - col0 FROM tab2 cor0
----
-45
-63
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 + col2 col1 FROM tab2
----
-37
-55
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-2135
SELECT ALL col1 DIV col1 - 36 AS col2 FROM tab2
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL col1 / col1 - 36 AS col2 FROM tab2
----
-35
-35
-35

query I rowsort
SELECT - col2 + - 90 AS col2 FROM tab1
----
-149
-158
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT DISTINCT + - MIN( DISTINCT col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2137
SELECT DISTINCT + - MIN ( DISTINCT col1 ) FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2138
SELECT + + ( - col1 ) * CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2138
SELECT + + ( - col1 ) * CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 * - + col2 col1 FROM tab0 cor0
----
1457
3069
310

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2140
SELECT + + CAST( NULL AS SIGNED ) / + 50 col2, 14 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to dc45e674a7fe272537b91698e269813c

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2140
SELECT + + CAST ( NULL AS INTEGER ) / + 50 col2, 14 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to dc45e674a7fe272537b91698e269813c

query I rowsort
SELECT 61 * + 10 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31192eeb31f84c0dcfd9cbec77964120

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( + 85 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * + col2 BETWEEN + col2 AND NULL
----

query II rowsort
SELECT ALL 25 AS col1, col0 + + col1 + + col1 * col2 AS col0 FROM tab0 AS cor0
----
25
197
25
318
25
3903

query II rowsort
SELECT DISTINCT 82, col2 AS col1 FROM tab0 AS cor0
----
82
10
82
47
82
99

query I rowsort
SELECT DISTINCT + 94 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND col1
----

query II rowsort
SELECT DISTINCT + col2 AS col0, - col1 FROM tab0 cor0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT col2 + 24 AS col2 FROM tab2
----
47
64
82

query I rowsort
SELECT - 0 + - col1 AS col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT - 14 + + col1 AS col2 FROM tab2
----
37
53
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT ALL + COUNT( col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2151
SELECT ALL + COUNT ( col2 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL - col0 + - col1 AS col0 FROM tab1 WHERE NOT + col0 * - ( + col2 ) <= + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 83 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 57 + + 52 FROM tab1 AS cor0
----
109

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 57 < ( - ( + col2 ) * 40 + + col0 )
----

query I rowsort
SELECT DISTINCT + col0 + - ( + - col1 ) FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT ALL - - col0 / col0 * - 72 FROM tab0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT col0 + + - 91 AS col0 FROM tab0
----
-4
-76
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT + MIN( ALL - 75 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2159
SELECT + MIN ( ALL - 75 ) FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT + MAX( ALL - col0 ) * - 14 - - 6 AS col1 FROM tab2 AS cor0
----
650

skipif mysql # not compatible
query I rowsort label-2160
SELECT + MAX ( ALL - col0 ) * - 14 - - 6 AS col1 FROM tab2 AS cor0
----
650

query I rowsort
SELECT ALL - col2 + + ( 16 ) FROM tab0 AS cor0
----
-31
-83
6

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + 29, + col0 )
----

query I rowsort
SELECT - col1 - - 72 + col2 AS col0 FROM tab2
----
35
44
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT ALL ( + + SUM( - 86 ) ) AS col2 FROM tab0
----
-258

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL ( + + SUM ( - 86 ) ) AS col2 FROM tab0
----
-258

onlyif mysql # DIV for integer division: 
query I rowsort label-2165
SELECT DISTINCT + 6 DIV - 73 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2165
SELECT DISTINCT + 6 / - 73 AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + 80 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
80

query III rowsort
SELECT * FROM tab0 WHERE NOT - 30 * + - 11 * + 75 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 * - 97 AS col2 FROM tab1 AS cor0
----
-4947
-8245
-8827

query I rowsort
SELECT ALL - col0 * - col0 * - 9 * + col2 AS col1 FROM tab2 AS cor0
----
-1474560
-2936250
-438012

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT + col2 * - - 20 FROM tab2 cor0
----
1160
460
800

onlyif mysql # DIV for integer division: 
query I rowsort label-2172
SELECT ALL + col1 DIV - 51 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL + col1 / - 51 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT DISTINCT - COUNT( - 71 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2173
SELECT DISTINCT - COUNT ( - 71 ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT + 42 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2175
SELECT DISTINCT + - 71 + COUNT( + + col2 ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2175
SELECT DISTINCT + - 71 + COUNT ( + + col2 ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2176
SELECT ALL col2 + - col2 DIV col0, + col0 + + - ( + col1 ) AS col1 FROM tab0 AS cor0
----
10
66
44
-66
98
96

skipif mysql # not compatible
query II rowsort label-2176
SELECT ALL col2 + - col2 / col0, + col0 + + - ( + col1 ) AS col1 FROM tab0 AS cor0
----
10
66
44
-66
98
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2177
SELECT + - ( CAST( + - col1 AS SIGNED ) ) FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2177
SELECT + - ( CAST ( + - col1 AS INTEGER ) ) FROM tab0 cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2178
SELECT DISTINCT - 20 * col0 DIV - + col0 + + 40 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT - 20 * col0 / - + col0 + + 40 FROM tab0 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT 22 * - COUNT( * ) + - 9 AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= col0 + + - col2
----
-9

skipif mysql # not compatible
query I rowsort label-2179
SELECT 22 * - COUNT ( * ) + - 9 AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= col0 + + - col2
----
-9

query I rowsort
SELECT ALL 30 + col0 FROM tab0 AS cor0
----
117
127
45

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2181
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - - col2 >= - CAST( NULL AS DECIMAL ) + 29 )
----

skipif mysql # not compatible
query III rowsort label-2181
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - - col2 >= - CAST ( NULL AS REAL ) + 29 )
----

query I rowsort
SELECT + 36 FROM tab0 WHERE NULL IS NULL
----
36
36
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2183
SELECT DISTINCT CAST( NULL AS SIGNED ), - col1 * col2 * col0 AS col1 FROM tab0
----
NULL
-18270
NULL
-57105
NULL
-9603

skipif mysql # not compatible
query II rowsort label-2183
SELECT DISTINCT CAST ( NULL AS INTEGER ), - col1 * col2 * col0 AS col1 FROM tab0
----
NULL
-18270
NULL
-57105
NULL
-9603

query I rowsort
SELECT + 65 + - - 42 * + ( col0 ) + col0 FROM tab2
----
2043
2817
3290

query I rowsort
SELECT col2 + - + col0 AS col2 FROM tab1
----
-23
-26
45

query I rowsort
SELECT ALL + - 43 + 55 FROM tab0 AS cor0
----
12
12
12

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 + + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2189
SELECT - ( - COUNT( * ) ) - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2189
SELECT - ( - COUNT ( * ) ) - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT 34 - + col1 + - col2 FROM tab2 AS cor0
----
-40
-83
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2191
SELECT ALL + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2191
SELECT ALL + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 15 - + col2 AS col2 FROM tab1 AS cor0
----
-44
-53
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2193
SELECT ALL + col1 + + col0 DIV + 98 col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2193
SELECT ALL + col1 + + col0 / + 98 col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2194
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + + col1 * - col1 FROM tab2 AS cor0 WHERE - 85 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2194
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + + + col1 * - col1 FROM tab2 AS cor0 WHERE - 85 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * col0 - 73 col2 FROM tab1 AS cor0
----
2528
7152
8208

query II rowsort
SELECT - col2 AS col0, 20 * + col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
1180
-68
1360
-96
1920

query I rowsort
SELECT + ( - ( - - 77 ) ) AS col1 FROM tab2
----
-77
-77
-77

query II rowsort
SELECT ALL - col2 AS col0, col2 AS col2 FROM tab0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT - 45 * - col2 AS col1 FROM tab2 cor0
----
1035
1800
2610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 * - col2 col2 FROM tab0 AS cor0
----
-2679
-5643
-570

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT + COUNT( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-2201
SELECT + COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query II rowsort
SELECT - ( + col0 ), - col2 AS col1 FROM tab2
----
-46
-23
-64
-40
-75
-58

query I rowsort
SELECT DISTINCT - 61 * - 19 FROM tab2
----
1159

query I rowsort
SELECT DISTINCT + + 52 * - - col2 + - col1 AS col0 FROM tab2 cor0
----
1145
2003
2949

query I rowsort
SELECT ALL - col0 + + + col2 AS col1 FROM tab2 AS cor0
----
-17
-23
-24

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 1 + - - 31 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT ALL - - SUM( ALL col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL - - SUM ( ALL col1 ) AS col2 FROM tab2 AS cor0
----
195

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 49 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col2 + + + col1 + - + col1 * - ( + col2 ) AS col0 FROM tab2 AS cor0
----
1247
3197
4011

query I rowsort
SELECT col1 + + - col0 * col0 * - + col2 - - - col2 AS col0 FROM tab0
----
10609
75701
931393

query I rowsort
SELECT col2 * - col1 + ( - + col0 ) FROM tab1
----
-1395
-3287
-380

query I rowsort
SELECT + - col2 FROM tab0 WHERE + ( + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT COUNT( * ) * + 41 AS col1 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-2213
SELECT COUNT ( * ) * + 41 AS col1 FROM tab0
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-2214
SELECT ALL - - 37 AS col0, + COUNT( * ) * 38 AS col2 FROM tab0 WHERE NOT col2 = - col0
----
37
114

skipif mysql # not compatible
query II rowsort label-2214
SELECT ALL - - 37 AS col0, + COUNT ( * ) * 38 AS col2 FROM tab0 WHERE NOT col2 = - col0
----
37
114

query II rowsort
SELECT DISTINCT - 16 * + + ( - col2 ), col2 * + 54 + - + col1 AS col0 FROM tab0
----
1584
5345
160
519
752
2457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2216
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) * + CAST( NULL AS DECIMAL ) * + MAX( col2 ) AS col0, COUNT( * ) + + 80 FROM tab0
----
NULL
83

skipif mysql # not compatible
query II rowsort label-2216
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) * + CAST ( NULL AS REAL ) * + MAX ( col2 ) AS col0, COUNT ( * ) + + 80 FROM tab0
----
NULL
83

query I rowsort
SELECT ( + col1 ) * - ( col0 ) FROM tab1
----
-425
-4277
-714

query II rowsort
SELECT + col1, + col1 * - + col0 FROM tab1 AS cor0 WHERE NULL = col1 * + - col0 + 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT 1 - SUM( ALL - 24 ) AS col1 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-2219
SELECT 1 - SUM ( ALL - 24 ) AS col1 FROM tab0 AS cor0
----
73

query I rowsort
SELECT + col1 + - 3 FROM tab0 AS cor0
----
-2
18
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT - + COUNT( * ) + SUM( ALL - - ( + - col2 ) ) FROM tab2 cor0
----
-124

skipif mysql # not compatible
query I rowsort label-2221
SELECT - + COUNT ( * ) + SUM ( ALL - - ( + - col2 ) ) FROM tab2 cor0
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT ALL COUNT( - 0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL COUNT ( - 0 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2223
SELECT - - CAST( NULL AS DECIMAL ) * + - CAST( + + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT - - CAST ( NULL AS REAL ) * + - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2224
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IN ( - col1 + 21, CAST( NULL AS SIGNED ) / + - col2 * - col0 * + CAST( NULL AS SIGNED ) + - + 6 * + CAST( + ( - col0 ) AS SIGNED ) + + col2 )
----

skipif mysql # not compatible
query III rowsort label-2224
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IN ( - col1 + 21, CAST ( NULL AS INTEGER ) / + - col2 * - col0 * + CAST ( NULL AS INTEGER ) + - + 6 * + CAST ( + ( - col0 ) AS INTEGER ) + + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2225
SELECT ALL CAST( NULL AS SIGNED ) * + + COUNT( DISTINCT col0 ) AS col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL CAST ( NULL AS INTEGER ) * + + COUNT ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2226
SELECT 5 DIV col1 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2226
SELECT 5 / col1 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 AS cor0 WHERE NOT - 30 IS NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 NOT BETWEEN NULL AND - 95
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2229
SELECT DISTINCT - SUM( + + ( CAST( NULL AS SIGNED ) ) ) col1, + MAX( - col0 ) FROM tab0
----
NULL
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2229
SELECT DISTINCT - SUM ( + + ( CAST ( NULL AS INTEGER ) ) ) col1, + MAX ( - col0 ) FROM tab0
----
NULL
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT DISTINCT COUNT( + + 89 ) FROM tab2 WHERE + + 70 >= + col2
----
3

skipif mysql # not compatible
query I rowsort label-2230
SELECT DISTINCT COUNT ( + + 89 ) FROM tab2 WHERE + + 70 >= + col2
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 31 + - 82 = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * - 71 AS col2 FROM tab0 AS cor0
----
-3337
-7029
-710

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN NULL AND - col1 / col1
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + 36 - - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 35 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 12 * 58 * + + 67 AS col1 FROM tab1
----
46632
46632
46632

query I rowsort
SELECT ALL ( - col2 ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT ALL + MAX( + 72 ) AS col1 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-2238
SELECT ALL + MAX ( + 72 ) AS col1 FROM tab1
----
72

query I rowsort
SELECT DISTINCT 40 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-2240
SELECT ALL COUNT( * ) col1, COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2240
SELECT ALL COUNT ( * ) col1, COUNT ( * ) FROM tab2
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2241
SELECT ALL * FROM tab0 cor0 WHERE - 66 >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2241
SELECT ALL * FROM tab0 cor0 WHERE - 66 >= - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2242
SELECT ALL + CAST( NULL AS SIGNED ) * + 50 + 29 * + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL + CAST ( NULL AS INTEGER ) * + 50 + 29 * + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2243
SELECT DISTINCT col0 + col1 * ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2243
SELECT DISTINCT col0 + col1 * ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2244
SELECT ALL + 88 DIV + col0 + + + col1, col0 AS col0 FROM tab1 AS cor0
----
15
51
47
91
6
85

skipif mysql # not compatible
query II rowsort label-2244
SELECT ALL + 88 / + col0 + + + col1, col0 AS col0 FROM tab1 AS cor0
----
15
51
47
91
6
85

query II rowsort
SELECT + col0 AS col2, + col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT - col0 FROM tab0 WHERE NULL < - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2247
SELECT 60 + - col2 + - col0 DIV - col0 AS col0 FROM tab1
----
-35
-7
2

skipif mysql # not compatible
query I rowsort label-2247
SELECT 60 + - col2 + - col0 / - col0 AS col0 FROM tab1
----
-35
-7
2

query I rowsort
SELECT ALL - 55 * + 62 AS col1 FROM tab2
----
-3410
-3410
-3410

query I rowsort
SELECT + - col2 + - 37 * + col0 AS col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2250
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - 3 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2250
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - 3 FROM tab1
----
NULL

query I rowsort
SELECT - 18 + - - ( + + 85 ) + + col1 AS col0 FROM tab1
----
114
72
81

query I rowsort
SELECT - col1 + - col0 + - + 99 AS col2 FROM tab0
----
-195
-197
-207

query I rowsort
SELECT - - col1 AS col2 FROM tab0 AS cor0 WHERE + col0 + col0 + - 16 NOT BETWEEN + 98 AND NULL
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT DISTINCT - ( - SUM( - col1 ) ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT - ( - SUM ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + - col0 * - + col2 col1 FROM tab0
----
-624
-849
-9602

query I rowsort
SELECT + 23 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT DISTINCT COUNT( col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2257
SELECT DISTINCT COUNT ( col2 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT MIN( DISTINCT + col1 ) * + COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2258
SELECT MIN ( DISTINCT + col1 ) * + COUNT ( * ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 3 + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 99 col0, - 66 FROM tab2
----
-99
-66
-99
-66
-99
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT DISTINCT SUM( - col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2262
SELECT DISTINCT SUM ( - col1 ) FROM tab2
----
-195

query II rowsort
SELECT col1, + col0 + 71 FROM tab0
----
1
168
21
158
81
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2264
SELECT CAST( + - 37 AS SIGNED ) FROM tab1
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-2264
SELECT CAST ( + - 37 AS INTEGER ) FROM tab1
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-2265
SELECT DISTINCT COUNT( * ) AS col2, 57 FROM tab0
----
3
57

skipif mysql # not compatible
query II rowsort label-2265
SELECT DISTINCT COUNT ( * ) AS col2, 57 FROM tab0
----
3
57

query I rowsort
SELECT 92 * 24 FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, - col2 FROM tab0
----
10
-10
47
-47
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT - MIN( - - 51 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2268
SELECT - MIN ( - - 51 ) FROM tab1 AS cor0
----
-51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 99 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT + 64 * - COUNT( ALL + col2 ) FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-2270
SELECT + 64 * - COUNT ( ALL + col2 ) FROM tab2
----
-192

query I rowsort
SELECT ALL col0 * - + 70 AS col0 FROM tab0
----
-1050
-6090
-6790

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT SUM( ALL + - 59 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2272
SELECT SUM ( ALL + - 59 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2273
SELECT + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2273
SELECT + - CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2274
SELECT DISTINCT 82 * 99 DIV - - ( COUNT( * ) ) AS col1 FROM tab2 cor0
----
2706

skipif mysql # not compatible
query I rowsort label-2274
SELECT DISTINCT 82 * 99 / - - ( COUNT ( * ) ) AS col1 FROM tab2 cor0
----
2706

onlyif mysql # DIV for integer division: 
query I rowsort label-2275
SELECT + 23 DIV 31 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2275
SELECT + 23 / 31 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
0
0
0

query I rowsort
SELECT - 28 * + + col2 FROM tab1
----
-1652
-1904
-2688

query I rowsort
SELECT DISTINCT + 68 - - col0 AS col2 FROM tab0
----
155
165
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2278
SELECT DISTINCT + MIN( DISTINCT - + col2 ) DIV + COUNT( * ) AS col1 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-2278
SELECT DISTINCT + MIN ( DISTINCT - + col2 ) / + COUNT ( * ) AS col1 FROM tab2
----
-19

query II rowsort
SELECT DISTINCT + col1 * + col2 + 47, col1 FROM tab1
----
1391
14
3243
47
342
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2280
SELECT + + col1 / + - CAST( NULL AS SIGNED ) - CAST( - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2280
SELECT + + col1 / + - CAST ( NULL AS INTEGER ) - CAST ( - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 * + 39 col0 FROM tab2 cor0
----
-2040
-2680
-3080

query I rowsort
SELECT ALL 33 FROM tab1, tab2 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2283
SELECT CAST( col2 AS SIGNED ) * col0 FROM tab0 AS cor0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-2283
SELECT CAST ( col2 AS INTEGER ) * col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2284
SELECT DISTINCT CAST( + 81 AS SIGNED ) * + COUNT( ALL ( + 80 ) ) AS col2 FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-2284
SELECT DISTINCT CAST ( + 81 AS INTEGER ) * + COUNT ( ALL ( + 80 ) ) AS col2 FROM tab1 AS cor0
----
243

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE - 62 NOT IN ( + 11 * - ( - + 50 ) )
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2286
SELECT - CAST( NULL AS SIGNED ) / - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2286
SELECT - CAST ( NULL AS INTEGER ) / - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * + col1 AS col1 FROM tab0 WHERE NOT + 63 >= col0
----
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = + 11 - ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT ALL - ( + COUNT( * ) ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2289
SELECT ALL - ( + COUNT ( * ) ) col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2290
SELECT 57 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT - CAST( - col1 AS SIGNED ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2290
SELECT 57 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT - CAST ( - col1 AS INTEGER ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2291
SELECT + CAST( - ( + - col0 ) AS SIGNED ) col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2291
SELECT + CAST ( - ( + - col0 ) AS INTEGER ) col2 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2292
SELECT ALL + 66 DIV ( col2 ) AS col1 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-2292
SELECT ALL + 66 / ( col2 ) AS col1 FROM tab0
----
0
1
6

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE - col1 * - + col1 * col2 - - - col0 / - col0 IS NULL
----

query I rowsort
SELECT col2 + + 95 FROM tab1 AS cor0
----
154
163
191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2295
SELECT + MAX( - CAST( NULL AS SIGNED ) ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2295
SELECT + MAX ( - CAST ( NULL AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2296
SELECT ALL 25 + - col2 DIV - + 34 FROM tab1
----
26
27
27

skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL 25 + - col2 / - + 34 FROM tab1
----
26
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT ALL COUNT( * ) + 16 - 69 col0 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2297
SELECT ALL COUNT ( * ) + 16 - 69 col0 FROM tab0 AS cor0
----
-50

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * - - col2 - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * - - col0 - + col2 FROM tab0 cor0
----
658
860
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT ( - + COUNT( DISTINCT - - col1 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2300
SELECT ( - + COUNT ( DISTINCT - - col1 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2301
SELECT ALL CAST( col0 AS SIGNED ) + + 52 FROM tab2 AS cor0
----
116
127
98

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL CAST ( col0 AS INTEGER ) + + 52 FROM tab2 AS cor0
----
116
127
98

query I rowsort
SELECT DISTINCT - 86 - - - 84 FROM tab0 AS cor0
----
-170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2303
SELECT + 78 / CAST( col2 AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-2303
SELECT + 78 / CAST ( col2 AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT DISTINCT + COUNT( DISTINCT + col0 ) * + + 33 * - COUNT( * ) FROM tab2
----
-297

skipif mysql # not compatible
query I rowsort label-2304
SELECT DISTINCT + COUNT ( DISTINCT + col0 ) * + + 33 * - COUNT ( * ) FROM tab2
----
-297

query I rowsort
SELECT ALL 64 * 53 + - + 11 + - 94 AS col1 FROM tab2
----
3287
3287
3287

query I rowsort
SELECT DISTINCT - col2 * - 75 - + col1 + col0 * 49 + - col0 FROM tab2
----
3882
5995
7883

query I rowsort
SELECT col0 + + col1 * 54 AS col2 FROM tab2
----
2800
3693
4222

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2308
SELECT col0 + - 8 + + CAST( + - ( + 74 ) AS SIGNED ) FROM tab0
----
-67
15
5

skipif mysql # not compatible
query I rowsort label-2308
SELECT col0 + - 8 + + CAST ( + - ( + 74 ) AS INTEGER ) FROM tab0
----
-67
15
5

query I rowsort
SELECT - col2 * 20 + - - col1 FROM tab0
----
-179
-1979
-859

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2310
SELECT DISTINCT 34 * - + 60 * + + 10 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT DISTINCT 34 * - + 60 * + + 10 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - - 89 FROM tab1 cor0
----
89

query I rowsort
SELECT ALL 1 * + - 23 FROM tab0 AS cor0
----
-23
-23
-23

query I rowsort
SELECT + col1 * - + col0 - + 92 + - + col2 * + 18 AS col0 FROM tab1 AS cor0 WHERE NOT ( + + col1 ) BETWEEN - 18 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN - col1 AND - col0 * - + col2 - - 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT + - COUNT( * ) * + + COUNT( * ) + + - 89 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-170

skipif mysql # not compatible
query I rowsort label-2315
SELECT + - COUNT ( * ) * + + COUNT ( * ) + + - 89 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT ALL - COUNT( ALL col0 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL - COUNT ( ALL col0 ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT + col2 * 23 AS col0 FROM tab2
----
1334
529
920

query I rowsort
SELECT ALL + - ( + + col1 ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 / - col0 <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT - - COUNT( * ) * - ( - 50 ) * + COUNT( * ) col0 FROM tab0 cor0
----
450

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2320
SELECT - - COUNT ( * ) * - ( - 50 ) * + COUNT ( * ) col0 FROM tab0 cor0
----
450

onlyif mysql # DIV for integer division: 
query I rowsort label-2321
SELECT DISTINCT - 73 DIV + 16 AS col2 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2321
SELECT DISTINCT - 73 / + 16 AS col2 FROM tab2 AS cor0
----
-4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 25 AND + + col0 * - + col1 * + ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( col1 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2324
SELECT + MIN( ALL - + col0 ) AS col2, 37 FROM tab1
----
-91
37

skipif mysql # not compatible
query II rowsort label-2324
SELECT + MIN ( ALL - + col0 ) AS col2, 37 FROM tab1
----
-91
37

onlyif mysql # DIV for integer division: 
query II rowsort label-2325
SELECT col2 DIV + col2 AS col2, + ( + col2 ) - + - col2 AS col2 FROM tab0
----
1
198
1
20
1
94

skipif mysql # not compatible
query II rowsort label-2325
SELECT col2 / + col2 AS col2, + ( + col2 ) - + - col2 AS col2 FROM tab0
----
1
198
1
20
1
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2326
SELECT DISTINCT 17 DIV - col0 AS col2 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT 17 / - col0 AS col2 FROM tab0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2327
SELECT 63 * col2 DIV - col0 FROM tab0
----
-197
-64
-7

skipif mysql # not compatible
query I rowsort label-2327
SELECT 63 * col2 / - col0 FROM tab0
----
-197
-64
-7

query II rowsort
SELECT DISTINCT - ( - col1 ) AS col2, col0 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2329
SELECT - col0 / - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2329
SELECT - col0 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT DISTINCT + SUM( DISTINCT + col2 ) * + - COUNT( * ) FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT + SUM ( DISTINCT + col2 ) * + - COUNT ( * ) FROM tab1
----
-669

query I rowsort
SELECT ALL col0 + - col2 * col0 FROM tab1 AS cor0
----
-4845
-4930
-6097

query I rowsort
SELECT 28 * + 98 FROM tab1 cor0
----
2744
2744
2744

query I rowsort
SELECT 9 * + + col0 * 30 * - col0 AS col2 FROM tab2 AS cor0
----
-1105920
-1518750
-571320

query I rowsort
SELECT ALL 56 AS col0 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT + COUNT( * ) + - 49 AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2335
SELECT + COUNT ( * ) + - 49 AS col1 FROM tab2
----
-46

query II rowsort
SELECT DISTINCT - col1 AS col2, col0 * - 13 - - 53 FROM tab1 AS cor0
----
-14
-610
-47
-1130
-5
-1052

query I rowsort
SELECT - ( + 16 ) FROM tab1 AS cor0
----
-16
-16
-16

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT ALL - COUNT( * ) * + 24 - - + 65 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-7

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL - COUNT ( * ) * + 24 - - + 65 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-7

query I rowsort
SELECT + 87 - + col2 + - col2 AS col1 FROM tab0
----
-111
-7
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 - - col1 AS col2, col1 col2 FROM tab2
----
-8
67
13
77
5
51

query I rowsort
SELECT DISTINCT - - ( - + ( - col1 ) ) FROM tab0 WHERE NOT col0 >= + ( col2 ) + + col2 * - 91
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 46 NOT IN ( + col2 - - - col2, + col0 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2344
SELECT ALL + - ( + CAST( - col1 AS SIGNED ) ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL + - ( + CAST ( - col1 AS INTEGER ) ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2345
SELECT ALL + CAST( NULL AS SIGNED ) / + COUNT( DISTINCT - 55 ) * + MIN( DISTINCT 0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL + CAST ( NULL AS INTEGER ) / + COUNT ( DISTINCT - 55 ) * + MIN ( DISTINCT 0 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2346
SELECT + 45 DIV + col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2346
SELECT + 45 / + col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2347
SELECT ALL - COUNT( * ), + COUNT( * ) * - MIN( DISTINCT col1 ) FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-2347
SELECT ALL - COUNT ( * ), + COUNT ( * ) * - MIN ( DISTINCT col1 ) FROM tab0 AS cor0
----
-3
-3

query I rowsort
SELECT + ( + 44 ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT ALL 6 AS col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2350
SELECT + CAST( 54 AS SIGNED ) * col0 FROM tab2
----
2484
3456
4050

skipif mysql # not compatible
query I rowsort label-2350
SELECT + CAST ( 54 AS INTEGER ) * col0 FROM tab2
----
2484
3456
4050

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2351
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> 33 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2351
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> 33 * - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 + - - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - ( - 13 ) * col0 FROM tab2 AS cor0
----
598
832
975

query II rowsort
SELECT 45 * - 79 AS col1, 25 FROM tab0 AS cor0
----
-3555
25
-3555
25
-3555
25

onlyif mysql # DIV for integer division: 
query I rowsort label-2355
SELECT ALL - - col2 DIV - 59 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL - - col2 / - 59 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT + - ( + COUNT( * ) ) * + 72 AS col0 FROM tab1 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-2356
SELECT + - ( + COUNT ( * ) ) * + 72 AS col0 FROM tab1 AS cor0
----
-216

query I rowsort
SELECT + - 27 AS col0 FROM tab2 cor0
----
-27
-27
-27

query II rowsort
SELECT DISTINCT - 94 AS col1, - 55 FROM tab2
----
-94
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT DISTINCT COUNT( - - 68 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT COUNT ( - - 68 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT ALL MAX( DISTINCT - + 76 ) col2 FROM tab0
----
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2360
SELECT ALL MAX ( DISTINCT - + 76 ) col2 FROM tab0
----
-76

query I rowsort
SELECT + 32 + col0 * - + col0 AS col2 FROM tab0
----
-193
-7537
-9377

query I rowsort
SELECT ALL col0 * + 0 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 92 * - - col2 <> 49 * - - col2 / - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2364
SELECT DISTINCT - ( - 58 ) DIV - + col0 + - col2 FROM tab0 AS cor0
----
-10
-50
-99

skipif mysql # not compatible
query I rowsort label-2364
SELECT DISTINCT - ( - 58 ) / - + col0 + - col2 FROM tab0 AS cor0
----
-10
-50
-99

query I rowsort
SELECT + col2 + - col1 AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT DISTINCT + COUNT( * ) + MAX( DISTINCT 95 ) FROM tab2 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT + COUNT ( * ) + MAX ( DISTINCT 95 ) FROM tab2 AS cor0
----
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( col1 * - - 49, + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( 92 + - 10 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2369
SELECT COUNT( * ) DIV + 21 FROM tab2 WHERE ( NULL ) NOT IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2369
SELECT COUNT ( * ) / + 21 FROM tab2 WHERE ( NULL ) NOT IN ( col2 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2370
SELECT DISTINCT + ( + col1 ) * - col2 AS col1 FROM tab2 WHERE NOT CAST( NULL AS DECIMAL ) NOT BETWEEN - col0 AND ( col1 / 37 )
----

skipif mysql # not compatible
query I rowsort label-2370
SELECT DISTINCT + ( + col1 ) * - col2 AS col1 FROM tab2 WHERE NOT CAST ( NULL AS REAL ) NOT BETWEEN - col0 AND ( col1 / 37 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT ALL + COUNT( ALL col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL + COUNT ( ALL col0 ) FROM tab1
----
3

query I rowsort
SELECT col2 * ( - col2 ) - col0 * + col0 AS col1 FROM tab2
----
-2645
-5696
-8989

onlyif mysql # DIV for integer division: 
query I rowsort label-2373
SELECT DISTINCT 45 DIV col0 + 23 AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2373
SELECT DISTINCT 45 / col0 + 23 AS col1 FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2374
SELECT ALL - 6 + CAST( + col0 AS SIGNED ) FROM tab1 WHERE ( 4 + ( + 35 ) ) < NULL
----

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL - 6 + CAST ( + col0 AS INTEGER ) FROM tab1 WHERE ( 4 + ( + 35 ) ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2375
SELECT 3 DIV - col1 AS col0 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-2375
SELECT 3 / - col1 AS col0 FROM tab0
----
-3
0
0

query I rowsort
SELECT ALL + 67 + ( + 76 + 17 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 * + 26 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + + 89 * col2 AS col1 FROM tab2
----
2093
3624
5237

query I rowsort
SELECT col1 FROM tab2 WHERE ( NULL ) >= ( col2 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT + 98 + + COUNT( * ) AS col0 FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-2380
SELECT + 98 + + COUNT ( * ) AS col0 FROM tab0
----
101

query I rowsort
SELECT + ( - 45 ) + - col0 * 61 FROM tab0
----
-5352
-5962
-960

query I rowsort
SELECT - 32 * 50 AS col1 FROM tab2
----
-1600
-1600
-1600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2383
SELECT - CAST( + col2 AS SIGNED ) + - col1 * col0 FROM tab2
----
-2369
-4968
-5083

skipif mysql # not compatible
query I rowsort label-2383
SELECT - CAST ( + col2 AS INTEGER ) + - col1 * col0 FROM tab2
----
-2369
-4968
-5083

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 * col2 - col2 IS NOT NULL
----

query I rowsort
SELECT 22 FROM tab2 WHERE col2 NOT BETWEEN + col1 AND + col0
----
22
22
22

query I rowsort
SELECT col1 * 15 + col2 FROM tab2
----
1063
1195
788

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT DISTINCT + ( ( COUNT( * ) ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT + ( ( COUNT ( * ) ) ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 67 + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 29 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2390
SELECT DISTINCT + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col2 - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-2390
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col2 - CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2391
SELECT CAST( + col1 AS SIGNED ) DIV 43 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2391
SELECT CAST ( + col1 AS INTEGER ) / 43 AS col2 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NOT ( 95 + col2 * col1 ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2393
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( 95 + col2 * col1 ) NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT NULL = ( + 47 + + 42 * col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - ( col0 ) )
----

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT 86 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL - ( - 73 ) * col0 + 79 * col1 FROM tab0 AS cor0
----
7160
7494
8010

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( 66 ) ) <> ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2399
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + CAST( col1 AS DECIMAL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2399
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + CAST ( col1 AS REAL ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2400
SELECT - ( col1 ) * + col1 + - ( - col2 ) DIV CAST( - 56 AS SIGNED ) FROM tab2 AS cor0
----
-2601
-4490
-5929

skipif mysql # not compatible
query I rowsort label-2400
SELECT - ( col1 ) * + col1 + - ( - col2 ) / CAST ( - 56 AS INTEGER ) FROM tab2 AS cor0
----
-2601
-4490
-5929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2401
SELECT DISTINCT CAST( + MAX( ALL - col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2401
SELECT DISTINCT CAST ( + MAX ( ALL - col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT 64 + + 81 AS col2 FROM tab1
----
145
145
145

query I rowsort
SELECT ALL col2 * + 67 AS col2 FROM tab2
----
1541
2680
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2404
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT - col1 * CAST( + 17 * + 36 AS SIGNED ) NOT BETWEEN col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT - col1 * CAST ( + 17 * + 36 AS INTEGER ) NOT BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT + SUM( DISTINCT col0 ) * + 93 FROM tab0
----
18507

skipif mysql # not compatible
query I rowsort label-2405
SELECT + SUM ( DISTINCT col0 ) * + 93 FROM tab0
----
18507

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT DISTINCT + COUNT( * ) * + ( COUNT( * ) ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT + COUNT ( * ) * + ( COUNT ( * ) ) AS col1 FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2407
SELECT * FROM tab2 WHERE NULL >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2407
SELECT * FROM tab2 WHERE NULL >= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col0 * + col1 * - col0 AS col0 FROM tab2
----
-107916
-315392
-376875

query I rowsort
SELECT ALL col2 * + 28 * col2 AS col1 FROM tab1
----
129472
258048
97468

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE ( ( + 44 ) ) IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT DISTINCT + 63 * - MIN( - col2 ) AS col1 FROM tab1
----
6048

skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT + 63 * - MIN ( - col2 ) AS col1 FROM tab1
----
6048

query I rowsort
SELECT DISTINCT - col2 * + col1 + + col0 FROM tab0
----
-123
-2
-3792

query I rowsort
SELECT ALL + ( + 16 ) * col2 FROM tab0
----
1584
160
752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2414
SELECT DISTINCT COUNT( DISTINCT + + ( + 85 ) ) DIV + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2414
SELECT DISTINCT COUNT ( DISTINCT + + ( + 85 ) ) / + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2415
SELECT + 21 + col1 * + CAST( + 86 / - 33 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE ( CAST( 29 AS SIGNED ) * + col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2415
SELECT + 21 + col1 * + CAST ( + 86 / - 33 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE ( CAST ( 29 AS INTEGER ) * + col1 ) IS NULL
----

query I rowsort
SELECT col0 * - col1 - 72 FROM tab2 AS cor0
----
-2418
-5000
-5097

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT ALL - COUNT( * ) * 10 + 39 AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2417
SELECT ALL - COUNT ( * ) * 10 + 39 AS col1 FROM tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab2 WHERE - col2 NOT IN ( 22 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 87 AS col0 FROM tab2, tab0 AS cor0 WHERE NOT - 10 * + 55 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - col0 + col2 FROM tab0 WHERE - + col0 <> ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2421
SELECT DISTINCT COUNT( * ) DIV + 6 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
1

skipif mysql # not compatible
query I rowsort label-2421
SELECT DISTINCT COUNT ( * ) / + 6 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
1

query I rowsort
SELECT DISTINCT + + ( + ( + 10 ) ) FROM tab1 AS cor0
----
10

query I rowsort
SELECT DISTINCT - ( + 14 ) + col2 FROM tab2 cor0
----
26
44
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 32 + col1 * + col1 < + col0 * col1
----
75
67
58

query I rowsort
SELECT ALL - - col1 + ( + + col0 ) FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2426
SELECT - COUNT( * ) AS col0, COUNT( * ) * - - SUM( 12 ) FROM tab0 AS cor0
----
-3
108

skipif mysql # not compatible
query II rowsort label-2426
SELECT - COUNT ( * ) AS col0, COUNT ( * ) * - - SUM ( 12 ) FROM tab0 AS cor0
----
-3
108

query I rowsort
SELECT 45 * + - col1 FROM tab1 AS cor0
----
-2115
-225
-630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2428
SELECT - MAX( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2428
SELECT - MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2429
SELECT - col0 col0, 68 * CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-46
1564
-64
2720
-75
3944

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2429
SELECT - col0 col0, 68 * CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-46
1564
-64
2720
-75
3944

query I rowsort
SELECT DISTINCT 36 * + 47 FROM tab0 AS cor0
----
1692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2431
SELECT - - col1 / CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2431
SELECT - - col1 / CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2432
SELECT DISTINCT + CAST( - 79 AS DECIMAL ) AS col2 FROM tab0 cor0 WHERE col2 + col2 < NULL
----

skipif mysql # not compatible
query I rowsort label-2432
SELECT DISTINCT + CAST ( - 79 AS REAL ) AS col2 FROM tab0 cor0 WHERE col2 + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT ALL - 91 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL - 91 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-273

onlyif mysql # DIV for integer division: 
query I rowsort label-2434
SELECT ALL + 12 + + col0 DIV col0 col1 FROM tab2 AS cor0 WHERE 71 IS NOT NULL
----
13
13
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2434
SELECT ALL + 12 + + col0 / col0 col1 FROM tab2 AS cor0 WHERE 71 IS NOT NULL
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT DISTINCT - COUNT( * ) * MIN( ALL - col0 ) AS col1 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-2435
SELECT DISTINCT - COUNT ( * ) * MIN ( ALL - col0 ) AS col1 FROM tab2
----
225

query I rowsort
SELECT 59 FROM tab0 WHERE NOT ( NULL ) BETWEEN ( col2 * - col0 ) AND + col0
----

query I rowsort
SELECT 78 * col0 FROM tab2 WHERE NOT - col2 * - col1 BETWEEN ( col2 / 82 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL ) <= NULL )
----

query I rowsort
SELECT DISTINCT - 93 AS col1 FROM tab0 AS cor0 WHERE NOT 28 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT ALL COUNT( * ) + + 89 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL COUNT ( * ) + + 89 FROM tab2 AS cor0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2441
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - CAST( col0 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2441
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - CAST ( col0 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2442
SELECT DISTINCT - - CAST( - col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2442
SELECT DISTINCT - - CAST ( - col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT + + ( - 37 ) AS col2 FROM tab2 AS cor0
----
-37
-37
-37

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( 15 ) = + - col0
----

query I rowsort
SELECT ( - + 42 ) * - 36 AS col2 FROM tab1 AS cor0
----
1512
1512
1512

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL > ( - 64 )
----

query I rowsort
SELECT DISTINCT + col1 * - col2 * 29 AS col2 FROM tab0 AS cor0 WHERE col2 IN ( 92 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 ) > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2449
SELECT ALL + CAST( NULL AS SIGNED ) * - COUNT( * ) + + 88 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + 88 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 97 * col2 col0, col1 FROM tab2
----
2231
51
3880
77
5626
67

query I rowsort
SELECT + 64 FROM tab2 WHERE - 46 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2452
SELECT ( CAST( col0 AS SIGNED ) ) * CAST( NULL AS SIGNED ) + - 92 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2452
SELECT ( CAST ( col0 AS INTEGER ) ) * CAST ( NULL AS INTEGER ) + - 92 col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT DISTINCT COUNT( * ) * + + COUNT( + col1 ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2453
SELECT DISTINCT COUNT ( * ) * + + COUNT ( + col1 ) AS col2 FROM tab2
----
9

query I rowsort
SELECT ALL 73 + - col2 AS col2 FROM tab0
----
-26
26
63

query I rowsort
SELECT 69 * + - col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT ALL - MAX( + - 29 ) AS col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN 30 + + 32 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL - MAX ( + - 29 ) AS col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN 30 + + 32 AND NULL
----
NULL

query I rowsort
SELECT ALL + + 66 + col0 * + + 78 AS col2 FROM tab0 AS cor0
----
1236
6852
7632

query I rowsort
SELECT DISTINCT + ( + + col0 ) + + ( col2 ) AS col1 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2459
SELECT 23 DIV - ( - COUNT( * ) ) col0 FROM tab0 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-2459
SELECT 23 / - ( - COUNT ( * ) ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2460
SELECT col2 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2460
SELECT col2 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2461
SELECT 68 - MIN( ALL - - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2461
SELECT 68 - MIN ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2462
SELECT * FROM tab0 WHERE CAST( NULL AS DECIMAL ) / + col0 + 68 / + 15 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2462
SELECT * FROM tab0 WHERE CAST ( NULL AS REAL ) / + col0 + 68 / + 15 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 * - col2 - + ( + 32 ) FROM tab2
----
-1090
-2592
-4382

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 70 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT ALL SUM( + col1 ) FROM tab0 AS cor0 WHERE NULL NOT IN ( 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL SUM ( + col1 ) FROM tab0 AS cor0 WHERE NULL NOT IN ( 70 )
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + - col0 + - + col1 >= ( 91 + - col1 * + + col0 )
----

query I rowsort
SELECT DISTINCT - col2 * - col2 - - + col0 * 51 AS col2 FROM tab2 AS cor0
----
2875
4864
7189

query I rowsort
SELECT ALL + - col1 * - col0 AS col1 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-2469
SELECT DISTINCT - col1 DIV - col0 * 95 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT - col1 / - col0 * 95 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2470
SELECT ALL 50 FROM tab0 WHERE CAST( - - col0 AS SIGNED ) - + col1 NOT BETWEEN - col2 AND + 61 OR NOT - 65 - col2 NOT BETWEEN NULL AND - col1 * - col0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-2470
SELECT ALL 50 FROM tab0 WHERE CAST ( - - col0 AS INTEGER ) - + col1 NOT BETWEEN - col2 AND + 61 OR NOT - 65 - col2 NOT BETWEEN NULL AND - col1 * - col0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT - SUM( + - 59 ) AS col2 FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-2471
SELECT - SUM ( + - 59 ) AS col2 FROM tab0
----
177

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 72 - - col1 NOT BETWEEN + col0 AND - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col2, 21 AS col2 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - ( + + ( - 19 ) ) AS col2, col0 FROM tab0
----
19
15
19
87
19
97

query I rowsort
SELECT - 25 * - col1 AS col1 FROM tab1
----
1175
125
350

query I rowsort
SELECT col0 * 52 * - col1 AS col0 FROM tab1
----
-22100
-222404
-37128

query I rowsort
SELECT DISTINCT ( - ( + - 10 ) ) * - col0 * + - ( col0 ) FROM tab2 AS cor0
----
21160
40960
56250

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + - 7 + + col0 * + col0 + 60 NOT IN ( ( + + 22 ) )
----

query I rowsort
SELECT ALL + + 73 AS col0 FROM tab1 AS cor0
----
73
73
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 1 * + - 41 col1 FROM tab2 AS cor0
----
-41

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT + ( + + col0 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 42 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + 12 + + col2 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2484
SELECT ALL col1 + + - col1 DIV + 76 col2 FROM tab0 AS cor0
----
1
21
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2484
SELECT ALL col1 + + - col1 / + 76 col2 FROM tab0 AS cor0
----
1
21
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT ALL COUNT( * ) + + - 15 AS col0 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2485
SELECT ALL COUNT ( * ) + + - 15 AS col0 FROM tab2 AS cor0
----
-12

query I rowsort
SELECT DISTINCT - col1 + 40 AS col1 FROM tab1 AS cor0
----
-7
26
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT MAX( ( + 22 ) ) col0 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2487
SELECT MAX ( ( + 22 ) ) col0 FROM tab0 AS cor0
----
22

query I rowsort
SELECT ALL - - col0 + 79 + - col1 * - col1 - + - col1 FROM tab0 AS cor0
----
178
628
6736

query II rowsort
SELECT - 56 AS col0, col2 AS col2 FROM tab0
----
-56
10
-56
47
-56
99

query I rowsort
SELECT DISTINCT + col0 * - - 55 AS col2 FROM tab0
----
4785
5335
825

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT DISTINCT + SUM( ALL + col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-2491
SELECT DISTINCT + SUM ( ALL + col2 ) AS col0 FROM tab2
----
121

query I rowsort
SELECT DISTINCT + 69 + - ( + col2 ) FROM tab2
----
11
29
46

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 32 + + ( - 79 ) * + 22 + ( + col2 ) ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT DISTINCT - SUM( + + col1 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2494
SELECT DISTINCT - SUM ( + + col1 ) AS col1 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT DISTINCT MIN( DISTINCT - + 89 ) FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT MIN ( DISTINCT - + 89 ) FROM tab0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT ALL + MIN( + 45 ) AS col0 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL + MIN ( + 45 ) AS col0 FROM tab0
----
45

query I rowsort
SELECT ALL 93 * - col0 / ( + 8 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * + col1 AND ( - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE - col2 >= - col1
----
0

skipif mysql # not compatible
query I rowsort label-2498
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE - col2 >= - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT + COUNT( * ) + + 72 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2499
SELECT + COUNT ( * ) + + 72 FROM tab1 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 96 + + col0 col1 FROM tab0 AS cor0
----
-81
-9
1

query I rowsort
SELECT ALL col2 + + - col0 AS col0 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2502
SELECT - 60 + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-2502
SELECT - 60 + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2503
SELECT DISTINCT + + 6 AS col0, + CAST( 80 AS SIGNED ) + - 53 col1 FROM tab0 AS cor0
----
6
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2503
SELECT DISTINCT + + 6 AS col0, + CAST ( 80 AS INTEGER ) + - 53 col1 FROM tab0 AS cor0
----
6
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT DISTINCT + MAX( col2 ) FROM tab2 cor0 WHERE 69 * - 14 > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2504
SELECT DISTINCT + MAX ( col2 ) FROM tab2 cor0 WHERE 69 * - 14 > ( NULL )
----
NULL

query I rowsort
SELECT DISTINCT - 5 * - 99 * - 54 AS col0 FROM tab1 AS cor0
----
-26730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - 58 col2 FROM tab1 cor0
----
14
-58
47
-58
5
-58

query I rowsort
SELECT DISTINCT + - col1 + - col1 * col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2508
SELECT - - CAST( NULL AS SIGNED ) * + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2508
SELECT - - CAST ( NULL AS INTEGER ) * + col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT DISTINCT ( - COUNT( * ) ) + + + 28 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col1, - 91 * col0 )
----
28

skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT ( - COUNT ( * ) ) + + + 28 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col1, - 91 * col0 )
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2510
SELECT - 1 DIV + + SUM( - 78 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2510
SELECT - 1 / + + SUM ( - 78 ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2511
SELECT DISTINCT col2 DIV + col2 - + col1 FROM tab2 AS cor0
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-2511
SELECT DISTINCT col2 / + col2 - + col1 FROM tab2 AS cor0
----
-50
-66
-76

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + 5 AND + + 25 + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col2 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT ALL ( - + SUM( - - ( 49 ) ) ) FROM tab0 WHERE NULL <= + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL ( - + SUM ( - - ( 49 ) ) ) FROM tab0 WHERE NULL <= + 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT DISTINCT ( + COUNT( DISTINCT col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2515
SELECT DISTINCT ( + COUNT ( DISTINCT col0 ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2516
SELECT * FROM tab1 WHERE NOT ( NOT - col1 <= CAST( + col2 AS SIGNED ) + + 45 + col1 - - 98 / - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2516
SELECT * FROM tab1 WHERE NOT ( NOT - col1 <= CAST ( + col2 AS INTEGER ) + + 45 + col1 - - 98 / - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 65 FROM tab0 WHERE NOT - + col0 IS NULL
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-2518
SELECT ALL ( - COUNT( * ) ) AS col1, SUM( ALL - ( col2 ) ) col2 FROM tab2
----
-3
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2518
SELECT ALL ( - COUNT ( * ) ) AS col1, SUM ( ALL - ( col2 ) ) col2 FROM tab2
----
-3
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 13 col2 FROM tab2 AS cor0
----
33
51
62

query I rowsort
SELECT ALL + col0 + + 49 AS col1 FROM tab1 AS cor0
----
100
134
140

query II rowsort
SELECT DISTINCT 16 AS col1, col2 * + ( - col2 ) FROM tab0
----
16
-100
16
-2209
16
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT MAX( + 41 ) AS col1 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-2522
SELECT MAX ( + 41 ) AS col1 FROM tab0
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col2 col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT 43 - + 42 AS col0 FROM tab0 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 23 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - col0 * - 79 * col0 )
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE ( + - 78 ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL 80 - + 25 FROM tab0
----
55
55
55

onlyif mysql # aggregate syntax: 
query II rowsort label-2529
SELECT + 47 + - - COUNT( * ) col2, COUNT( * ) FROM tab2
----
50
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2529
SELECT + 47 + - - COUNT ( * ) col2, COUNT ( * ) FROM tab2
----
50
3

query I rowsort
SELECT ALL - col2 + 2 FROM tab2 WHERE NOT NULL <> - ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT - SUM( ALL 91 ) + + 32 col0 FROM tab1
----
-241

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2531
SELECT - SUM ( ALL 91 ) + + 32 col0 FROM tab1
----
-241

query I rowsort
SELECT + 78 + 90 + - col0 FROM tab0
----
153
71
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2533
SELECT 73 + 6, - ( + COUNT( * ) ) col0 FROM tab2
----
79
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2533
SELECT 73 + 6, - ( + COUNT ( * ) ) col0 FROM tab2
----
79
-3

query I rowsort
SELECT 85 * + col2 * - + col0 AS col2 FROM tab2 AS cor0
----
-217600
-369750
-89930

query I rowsort
SELECT ALL - + col0 * + - col2 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT + col2 * 46 FROM tab2 AS cor0
----
1058
1840
2668

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( col1 * 79 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2538
SELECT ALL + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT DISTINCT - COUNT( DISTINCT + col1 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2539
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) AS col1 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-2540
SELECT ALL - 41 * 10 * + 63 * - + col2 * - + col0 AS col2, 52 DIV 40 AS col1 FROM tab2
----
-112360500
1
-27328140
1
-66124800
1

skipif mysql # not compatible
query II rowsort label-2540
SELECT ALL - 41 * 10 * + 63 * - + col2 * - + col0 AS col2, 52 / 40 AS col1 FROM tab2
----
-112360500
1
-27328140
1
-66124800
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT ( + SUM( ALL - col1 ) ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2541
SELECT ( + SUM ( ALL - col1 ) ) AS col1 FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT + 88 + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
97

skipif mysql # not compatible
query I rowsort label-2542
SELECT + 88 + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT DISTINCT - + MAX( DISTINCT - + col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2543
SELECT DISTINCT - + MAX ( DISTINCT - + col1 ) AS col0 FROM tab2 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-2544
SELECT 30 AS col2, + col2 DIV - col0 FROM tab2 cor0
----
30
0
30
0
30
0

skipif mysql # not compatible
query II rowsort label-2544
SELECT 30 AS col2, + col2 / - col0 FROM tab2 cor0
----
30
0
30
0
30
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT DISTINCT - - MIN( - - col1 ) * COUNT( + + col1 ) + COUNT( * ) FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT - - MIN ( - - col1 ) * COUNT ( + + col1 ) + COUNT ( * ) FROM tab2 AS cor0
----
156

query I rowsort
SELECT DISTINCT - + col1 * - - col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-1344
-295
-3196

query I rowsort
SELECT - 70 * col2 FROM tab1 cor0
----
-4130
-4760
-6720

query I rowsort
SELECT + 52 * - + col2 FROM tab1
----
-3068
-3536
-4992

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT ALL + MIN( DISTINCT - col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL + MIN ( DISTINCT - col2 ) AS col1 FROM tab0
----
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 67 NOT BETWEEN col2 AND + - col0 * ( - col1 ) + - col2 + col1 * + col2 / col1 * + 86
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2551
SELECT - col2 AS col2, 60 DIV - - 80 AS col2 FROM tab1
----
-59
0
-68
0
-96
0

skipif mysql # not compatible
query II rowsort label-2551
SELECT - col2 AS col2, 60 / - - 80 AS col2 FROM tab1
----
-59
0
-68
0
-96
0

query II rowsort
SELECT ALL - - 74, col0 FROM tab1 WHERE NOT - - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 col2 FROM tab1
----
-46
-46
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2554
SELECT col0, - CAST( NULL AS SIGNED ) col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2554
SELECT col0, - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT MAX( DISTINCT - + 11 ) AS col1 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-2555
SELECT MAX ( DISTINCT - + 11 ) AS col1 FROM tab0
----
-11

query I rowsort
SELECT DISTINCT + 19 * - col1 * - col0 AS col2 FROM tab0
----
1843
23085
34713

query II rowsort
SELECT 90, - col0 AS col2 FROM tab2 AS cor0
----
90
-46
90
-64
90
-75

query I rowsort
SELECT ALL - 51 * - 65 + col2 AS col2 FROM tab0 cor0
----
3325
3362
3414

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ALL MAX( DISTINCT + - col0 ) AS col0 FROM tab0 WHERE NOT col2 BETWEEN + 72 * + col2 * - col1 AND + col1 + - - ( - - col0 ) - - 13 OR - col0 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL MAX ( DISTINCT + - col0 ) AS col0 FROM tab0 WHERE NOT col2 BETWEEN + 72 * + col2 * - col1 AND + col1 + - - ( - - col0 ) - - 13 OR - col0 <> NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2560
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + SUM( ALL 68 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2560
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + SUM ( ALL 68 ) FROM tab2
----
NULL

query I rowsort
SELECT + 84 + + 11 FROM tab0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT ALL 90 * - MAX( ( + col1 ) ) FROM tab1
----
-4230

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL 90 * - MAX ( ( + col1 ) ) FROM tab1
----
-4230

query I rowsort
SELECT DISTINCT col1 * - ( - - col2 ) AS col1 FROM tab0 cor0
----
-210
-3807
-99

query I rowsort
SELECT col2 AS col1 FROM tab2 cor0 WHERE NULL <= ( 67 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT ALL + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 36 >= + - col1
----
0

skipif mysql # not compatible
query I rowsort label-2565
SELECT ALL + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 36 >= + - col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col1 ) + + - 46 * + + col0 col1 FROM tab1 AS cor0
----
-2332
-3905
-4139

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col0 + 30 IS NULL
----

query I rowsort
SELECT ALL - + col0 - + col0 FROM tab2 AS cor0
----
-128
-150
-92

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 + + + 30 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col0 AS col1, + col2 * - col0 FROM tab2
----
46
-1058
64
-2560
75
-4350

query II rowsort
SELECT DISTINCT + 61 AS col0, 40 * - + col2 AS col2 FROM tab0
----
61
-1880
61
-3960
61
-400

query I rowsort
SELECT col1 * - - col0 * col2 AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 20 + - col0 AS col1 FROM tab0 AS cor0
----
-107
-117
-35

query I rowsort
SELECT + - 65 * + col0 FROM tab1 AS cor0
----
-3315
-5525
-5915

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT COUNT( * ) * 52 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2575
SELECT COUNT ( * ) * 52 FROM tab0 AS cor0
----
156

query II rowsort
SELECT ALL ( - 4 ), ( col2 ) AS col1 FROM tab1
----
-4
59
-4
68
-4
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT DISTINCT - ( - MIN( - 94 ) ) AS col1 FROM tab2 cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT - ( - MIN ( - 94 ) ) AS col1 FROM tab2 cor0
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-2578
SELECT ALL - + 98 * - COUNT( * ) col1, 77 AS col0 FROM tab2 AS cor0
----
294
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2578
SELECT ALL - + 98 * - COUNT ( * ) col1, 77 AS col0 FROM tab2 AS cor0
----
294
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT ALL + - ( + - SUM( DISTINCT - col1 ) ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL + - ( + - SUM ( DISTINCT - col1 ) ) AS col2 FROM tab1 AS cor0
----
-66

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * - 84 * + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2581
SELECT - COUNT( DISTINCT - 58 ) AS col1, - 48 - - - 33 AS col1 FROM tab1 AS cor0
----
-1
-81

skipif mysql # not compatible
query II rowsort label-2581
SELECT - COUNT ( DISTINCT - 58 ) AS col1, - 48 - - - 33 AS col1 FROM tab1 AS cor0
----
-1
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT MAX( ALL col1 ) * - + 72 AS col0 FROM tab0 AS cor0
----
-5832

skipif mysql # not compatible
query I rowsort label-2582
SELECT MAX ( ALL col1 ) * - + 72 AS col0 FROM tab0 AS cor0
----
-5832

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT ALL SUM( DISTINCT - - ( - + 71 ) ) FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL SUM ( DISTINCT - - ( - + 71 ) ) FROM tab1
----
-71

query III rowsort
SELECT * FROM tab2 WHERE NOT + 82 * - 80 * + - col2 NOT BETWEEN - + col1 * - 96 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2585
SELECT col2 * CAST( NULL AS SIGNED ) + - 92 FROM tab1 WHERE NOT NULL BETWEEN ( + - col1 / col2 ) AND - col1 + - - 21
----

skipif mysql # not compatible
query I rowsort label-2585
SELECT col2 * CAST ( NULL AS INTEGER ) + - 92 FROM tab1 WHERE NOT NULL BETWEEN ( + - col1 / col2 ) AND - col1 + - - 21
----

query I rowsort
SELECT + 62 + - - col0 * - - col2 * - + col1 FROM tab0
----
-18208
-57043
-9541

query I rowsort
SELECT DISTINCT + - col1 * 45 + + - col2 FROM tab0 AS cor0
----
-144
-3692
-955

query I rowsort
SELECT DISTINCT 63 * col0 + + + col2 + - - 21 AS col2 FROM tab1 AS cor0
----
3330
5435
5822

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 * col2 * col2 + - + col1 col0 FROM tab2 WHERE ( + col1 <> + + col0 )
----
-14334
-43277
-90895

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT + + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2590
SELECT + + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT - + COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2591
SELECT - + COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 - ( - col0 ) + + col2 * + col0 + - 49 + + 3 AS col0, + 20 * - 12 * - 93 col1 FROM tab1 AS cor0
----
4887
22320
5049
22320
6186
22320

query II rowsort
SELECT ALL + + col1, - 49 FROM tab0 AS cor0
----
1
-49
21
-49
81
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2594
SELECT - col2 + CAST( - ( + col0 ) AS SIGNED ) * + col0 FROM tab0 AS cor0
----
-272
-7579
-9508

skipif mysql # not compatible
query I rowsort label-2594
SELECT - col2 + CAST ( - ( + col0 ) AS INTEGER ) * + col0 FROM tab0 AS cor0
----
-272
-7579
-9508

onlyif mysql # DIV for integer division: 
query I rowsort label-2595
SELECT ALL + + col2 DIV col2 * + col1 + + - 55 + + + 6 * + 4 * - col0 FROM tab2 AS cor0
----
-1108
-1514
-1788

skipif mysql # not compatible
query I rowsort label-2595
SELECT ALL + + col2 / col2 * + col1 + + - 55 + + + 6 * + 4 * - col0 FROM tab2 AS cor0
----
-1108
-1514
-1788

query I rowsort
SELECT DISTINCT + ( - col2 ) + + col1 + + col0 AS col0 FROM tab0
----
-1
49
98

query I rowsort
SELECT ALL col0 - - + col1 FROM tab2
----
141
142
97

query II rowsort
SELECT ALL + 25 - - + 25, col0 AS col2 FROM tab1
----
50
51
50
85
50
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT DISTINCT 86 - + 66 * COUNT( * ) FROM tab2
----
-112

skipif mysql # not compatible
query I rowsort label-2599
SELECT DISTINCT 86 - + 66 * COUNT ( * ) FROM tab2
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT DISTINCT + SUM( ALL - + 20 ) AS col0 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT + SUM ( ALL - + 20 ) AS col0 FROM tab0
----
-60

query I rowsort
SELECT + col2 * + 69 AS col1 FROM tab1
----
4071
4692
6624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2602
SELECT DISTINCT - 56 DIV - COUNT( * ) AS col2 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-2602
SELECT DISTINCT - 56 / - COUNT ( * ) AS col2 FROM tab0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2603
SELECT 7 AS col2 FROM tab1 AS cor0 WHERE NOT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2603
SELECT 7 AS col2 FROM tab1 AS cor0 WHERE NOT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) NOT BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT DISTINCT 23, - ( + col0 ) AS col1 FROM tab0
----
23
-15
23
-87
23
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2605
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( + 57 ) FROM tab2 WHERE NOT - - 69 * col1 + + - col0 * - 15 IS NULL
----
57
57
57

query II rowsort
SELECT col2 AS col1, + col0 * 34 * + 88 FROM tab0
----
10
260304
47
44880
99
290224

query II rowsort
SELECT - col0, col1 FROM tab0
----
-15
81
-87
21
-97
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2609
SELECT + CAST( NULL AS DECIMAL ) col1 FROM tab2 AS cor0 WHERE NOT + col0 * - col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2609
SELECT + CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0 WHERE NOT + col0 * - col0 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT DISTINCT + COUNT( - - col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT + COUNT ( - - col2 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col2 * col1 + 78 FROM tab1 cor0
----
1422
3274
373

query II rowsort
SELECT DISTINCT - + col1 AS col0, + col0 + - col0 - - 11 + + 22 - + ( - - 87 ) AS col0 FROM tab2 AS cor0
----
-51
-54
-67
-54
-77
-54

query I rowsort
SELECT col2 * - + ( col0 ) * + 61 + + ( + col1 ) FROM tab1
----
-298642
-305910
-377421

query II rowsort
SELECT ( + 27 ) AS col1, col0 AS col1 FROM tab2
----
27
46
27
64
27
75

query I rowsort
SELECT 36 * - col2 AS col1 FROM tab0
----
-1692
-3564
-360

query I rowsort
SELECT ALL 71 FROM tab2 WHERE - 37 * col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + + 71 + - col0 * - ( + - col1 ) AS col1 FROM tab1 cor0
----
-354
-4206
-643

query I rowsort
SELECT DISTINCT col0 * + - 91 * - col0 FROM tab1 AS cor0
----
236691
657475
753571

query I rowsort
SELECT ALL + 61 * + 26 AS col2 FROM tab0 AS cor0
----
1586
1586
1586

query I rowsort
SELECT DISTINCT + - col2 + 38 AS col2 FROM tab2 cor0
----
-2
-20
15

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2621
SELECT * FROM tab2 AS cor0 WHERE ( NOT CAST( NULL AS DECIMAL ) + - col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2621
SELECT * FROM tab2 AS cor0 WHERE ( NOT CAST ( NULL AS REAL ) + - col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2622
SELECT DISTINCT + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2622
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 25 AS col1 FROM tab1 AS cor0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2624
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 + + 86 FROM tab0 AS cor0
----
101
173
183

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 + col0 <= + + col0 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2627
SELECT - + col0 - + col0 - - + col1 * - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2627
SELECT - + col0 - + col0 - - + col1 * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 - 56 FROM tab2 cor0
----
-16
-33
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + col0 * + col1 col2 FROM tab1
----
-420
-4230
-700

query I rowsort
SELECT col2 + + 68 * + + 81 FROM tab1 WHERE NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2631
SELECT DISTINCT + col0 DIV - + 8 FROM tab0
----
-1
-10
-12

skipif mysql # not compatible
query I rowsort label-2631
SELECT DISTINCT + col0 / - + 8 FROM tab0
----
-1
-10
-12

query II rowsort
SELECT ALL 19 AS col1, - 97 AS col2 FROM tab0
----
19
-97
19
-97
19
-97

query II rowsort
SELECT col0, col0 + col1 FROM tab1
----
51
65
85
90
91
138

query I rowsort
SELECT - col1 + + ( col0 ) * col0 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
144
7548
9408

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT DISTINCT MAX( - 46 ) * + + ( + - COUNT( - 1 ) ) col1 FROM tab0 WHERE NOT - col0 NOT BETWEEN ( + 68 ) AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2635
SELECT DISTINCT MAX ( - 46 ) * + + ( + - COUNT ( - 1 ) ) col1 FROM tab0 WHERE NOT - col0 NOT BETWEEN ( + 68 ) AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2636
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( - col2 AS SIGNED ) < ( - col1 )
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-2636
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( - col2 AS INTEGER ) < ( - col1 )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT ALL + MIN( DISTINCT + + col2 ) * COUNT( * ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL + MIN ( DISTINCT + + col2 ) * COUNT ( * ) FROM tab2 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT - MIN( + 88 ) FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-2638
SELECT - MIN ( + 88 ) FROM tab1 AS cor0
----
-88

query I rowsort
SELECT + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col2 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 99, col2 col0 FROM tab2 cor0
----
99
23
99
40
99
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT + MIN( - + col2 ) * MAX( + 80 ) AS col0 FROM tab2 AS cor0
----
-4640

skipif mysql # not compatible
query I rowsort label-2641
SELECT + MIN ( - + col2 ) * MAX ( + 80 ) AS col0 FROM tab2 AS cor0
----
-4640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2642
SELECT - col0 FROM tab2 cor0 WHERE NOT ( NULL ) <= - - CAST( + 60 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2642
SELECT - col0 FROM tab2 cor0 WHERE NOT ( NULL ) <= - - CAST ( + 60 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2643
SELECT CAST( NULL AS SIGNED ) AS col0, + CAST( ( col2 ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-2643
SELECT CAST ( NULL AS INTEGER ) AS col0, + CAST ( ( col2 ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT DISTINCT 26 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT MAX( - col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2645
SELECT MAX ( - col1 ) AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2646
SELECT - - 51 * + CAST( NULL AS SIGNED ) * + MAX( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2646
SELECT - - 51 * + CAST ( NULL AS INTEGER ) * + MAX ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 62 * - + 77 * - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-2105334
-31322214
-4774

onlyif mysql # DIV for integer division: 
query I rowsort label-2648
SELECT DISTINCT + - col2 + 10 DIV col2 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2648
SELECT DISTINCT + - col2 + 10 / col2 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2649
SELECT - + col2 * - col1 + col0 DIV col1 AS col1 FROM tab0 cor0
----
196
214
3807

skipif mysql # not compatible
query I rowsort label-2649
SELECT - + col2 * - col1 + col0 / col1 AS col1 FROM tab0 cor0
----
196
214
3807

query I rowsort
SELECT + + ( - - col1 ) FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT - - ( - 49 ) FROM tab0 AS cor0
----
-49
-49
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 11 * + 54 col0 FROM tab1
----
-503
-509
-543

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2653
SELECT + MIN( + - col2 ) * + 16 + + 45 AS col0 FROM tab0 WHERE + col0 + - col1 + - col0 + - col0 * - CAST( - + 46 AS SIGNED ) * + + CAST( NULL AS SIGNED ) IS NULL
----
-1539

skipif mysql # not compatible
query I rowsort label-2653
SELECT + MIN ( + - col2 ) * + 16 + + 45 AS col0 FROM tab0 WHERE + col0 + - col1 + - col0 + - col0 * - CAST ( - + 46 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) IS NULL
----
-1539

query I rowsort
SELECT ALL - ( - + 36 ) FROM tab1
----
36
36
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 + col2 col2 FROM tab2
----
-30
-48
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2656
SELECT - MIN( + CAST( + col2 AS SIGNED ) ) + - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-2656
SELECT - MIN ( + CAST ( + col2 AS INTEGER ) ) + - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-13

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 >= col0 * - + col1 * - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT - SUM( - + col2 ) FROM tab0 AS cor0 WHERE - col0 = + col0 * + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2658
SELECT - SUM ( - + col2 ) FROM tab0 AS cor0 WHERE - col0 = + col0 * + - col2
----
NULL

query I rowsort
SELECT - 21 - + + col2 FROM tab2
----
-44
-61
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT - MAX( ALL + col0 ) * + - ( 62 ) + + + COUNT( + + 53 ) * + + 15 - ( - COUNT( * ) ) AS col0 FROM tab0
----
6062

skipif mysql # not compatible
query I rowsort label-2660
SELECT - MAX ( ALL + col0 ) * + - ( 62 ) + + + COUNT ( + + 53 ) * + + 15 - ( - COUNT ( * ) ) AS col0 FROM tab0
----
6062

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2661
SELECT DISTINCT CAST( NULL AS SIGNED ) - - + COUNT( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2661
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - + COUNT ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT DISTINCT + MIN( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2662
SELECT DISTINCT + MIN ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
15

query I rowsort
SELECT - col1 * - - col2 - col0 * + ( + col0 ) * - col2 * - col0 - + col2 * + col2 * + - col2 + + + ( - + col2 ) * - - col2 + col1 * - col0 FROM tab0 AS cor0
----
-62033
-6586167
-89394325

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 65 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2665
SELECT DISTINCT + - MAX( col0 ) * - COUNT( * ) + + + 55 - + + ( + CAST( NULL AS DECIMAL ) ) + - COUNT( * ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2665
SELECT DISTINCT + - MAX ( col0 ) * - COUNT ( * ) + + + 55 - + + ( + CAST ( NULL AS REAL ) ) + - COUNT ( * ) FROM tab2 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = - col0 * - 78 / - + col2 * - 19
----

query I rowsort
SELECT + 42 AS col0 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE 59 * - 81 - 68 * - + col1 <= NULL
----

query I rowsort
SELECT ALL 42 * - col0 AS col2 FROM tab2 AS cor0 WHERE + 24 IS NOT NULL
----
-1932
-2688
-3150

query I rowsort
SELECT + col1 * + + col2 * col2 FROM tab1 WHERE NOT + col1 IS NULL
----
129024
17405
217328

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT ALL 95 * - COUNT( * ) AS col0 FROM tab2
----
-285

skipif mysql # not compatible
query I rowsort label-2671
SELECT ALL 95 * - COUNT ( * ) AS col0 FROM tab2
----
-285

query I rowsort
SELECT DISTINCT - 2 + - ( + + col2 ) FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT - ( + - 89 ) AS col0 FROM tab0
----
89
89
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2674
SELECT ALL CAST( + ( - 58 ) AS SIGNED ) AS col1 FROM tab2
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-2674
SELECT ALL CAST ( + ( - 58 ) AS INTEGER ) AS col1 FROM tab2
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT DISTINCT - 47 * + COUNT( * ) FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT - 47 * + COUNT ( * ) FROM tab2
----
-141

query I rowsort
SELECT DISTINCT - 78 * - col0 AS col0 FROM tab1 AS cor0
----
3978
6630
7098

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT DISTINCT - 24 * 70 * + - SUM( - col1 ) AS col2 FROM tab0 AS cor0
----
-173040

skipif mysql # not compatible
query I rowsort label-2677
SELECT DISTINCT - 24 * 70 * + - SUM ( - col1 ) AS col2 FROM tab0 AS cor0
----
-173040

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + 42 * - - 78 )
----

query I rowsort
SELECT ALL + - 12 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query II rowsort
SELECT - 80 * col0 AS col2, - 64 FROM tab2
----
-3680
-64
-5120
-64
-6000
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT - ( - MIN( ALL + 70 ) ) FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-2681
SELECT - ( - MIN ( ALL + 70 ) ) FROM tab0
----
70

query I rowsort
SELECT - col1 + - 89 - + + col1 AS col2 FROM tab1 AS cor0
----
-117
-183
-99

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT - 92 <= NULL
----

query I rowsort
SELECT ALL + col2 + + col1 + + 84 AS col0 FROM tab0 AS cor0
----
115
184
212

query I rowsort
SELECT ALL + col0 + + - col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE ( - 74 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2687
SELECT col2 * - ( + col1 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2687
SELECT col2 * - ( + col1 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT COUNT( * ) + 21 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2688
SELECT COUNT ( * ) + 21 FROM tab2 AS cor0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2689
SELECT + CAST( col1 AS SIGNED ) * - 49 AS col1 FROM tab2
----
-2499
-3283
-3773

skipif mysql # not compatible
query I rowsort label-2689
SELECT + CAST ( col1 AS INTEGER ) * - 49 AS col1 FROM tab2
----
-2499
-3283
-3773

query I rowsort
SELECT DISTINCT - 29 + - col0 AS col0 FROM tab2
----
-104
-75
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-2691
SELECT + 64 * 18 DIV - - col2 FROM tab2
----
19
28
50

skipif mysql # not compatible
query I rowsort label-2691
SELECT + 64 * 18 / - - col2 FROM tab2
----
19
28
50

query II rowsort
SELECT + col1 * + + col0, + col2 AS col1 FROM tab2
----
2346
23
4928
40
5025
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT DISTINCT SUM( col1 ) col1 FROM tab1
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2693
SELECT DISTINCT SUM ( col1 ) col1 FROM tab1
----
66

query I rowsort
SELECT ALL 34 * + - col2 AS col1 FROM tab0 AS cor0
----
-1598
-3366
-340

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE col1 NOT IN ( - col1 )
----
14
47
5

query I rowsort
SELECT col0 + + col1 * 63 AS col1 FROM tab1
----
3052
400
933

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT - 18 + + + COUNT( * ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2697
SELECT - 18 + + + COUNT ( * ) FROM tab0
----
-15

query I rowsort
SELECT 92 + + col0 + col2 FROM tab1
----
236
239
251

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2699
SELECT DISTINCT 78 DIV COUNT( * ) - 44 - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-45

skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT 78 / COUNT ( * ) - 44 - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-45

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < ( 79 )
----

query I rowsort
SELECT DISTINCT + + 92 FROM tab1 AS cor0 WHERE NOT + ( + + col0 ) IS NULL
----
92

query II rowsort
SELECT ALL + 1 * - col1 - col2 AS col1, - 2 AS col2 FROM tab0 cor0
----
-100
-2
-128
-2
-31
-2

query I rowsort
SELECT ALL + col0 - - - col1 - col1 / col1 + 15 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + col0 * - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-705
-870
-9603

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT + col2 + + 30 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * - col0 - col1 FROM tab2 AS cor0
----
-1109
-2637
-4417

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2707
SELECT * FROM tab1 WHERE NOT + ( 62 ) = + - CAST( col2 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2707
SELECT * FROM tab1 WHERE NOT + ( 62 ) = + - CAST ( col2 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT DISTINCT + COUNT( * ) - - COUNT( * ) AS col0 FROM tab1 WHERE col1 = - - col2
----
0

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT + COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab1 WHERE col1 = - - col2
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + + 28, - 75 )
----

query I rowsort
SELECT - + ( + 47 ) * + col2 FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN col1 AND + + ( 16 )
----
-1081
-1880
-2726

query I rowsort
SELECT col2 * col0 * - 44 FROM tab0 cor0
----
-31020
-38280
-422532

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 * - + col0 col1, + col2 FROM tab1 AS cor0
----
-425
59
-4277
68
-714
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT - + MAX( - col2 ) * 94 + - 46 FROM tab1 AS cor0
----
5500

skipif mysql # not compatible
query I rowsort label-2713
SELECT - + MAX ( - col2 ) * 94 + - 46 FROM tab1 AS cor0
----
5500

query I rowsort
SELECT - - 43 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( 31 ) BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN NULL AND - - 28
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2717
SELECT DISTINCT COUNT( * ) + - MIN( ALL - + col0 ), COUNT( * ) AS col1 FROM tab0 AS cor0
----
100
3

skipif mysql # not compatible
query II rowsort label-2717
SELECT DISTINCT COUNT ( * ) + - MIN ( ALL - + col0 ), COUNT ( * ) AS col1 FROM tab0 AS cor0
----
100
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2718
SELECT DISTINCT - + 93 DIV - + ( + 10 ) + + + col2 FROM tab0 AS cor0
----
108
19
56

skipif mysql # not compatible
query I rowsort label-2718
SELECT DISTINCT - + 93 / - + ( + 10 ) + + + col2 FROM tab0 AS cor0
----
108
19
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( - col2 ) col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2720
SELECT + COUNT( * ) AS col1, + COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2720
SELECT + COUNT ( * ) AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 14 + - col2 col0 FROM tab1 AS cor0
----
-101
-50
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2722
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) * + - 99 FROM tab1 WHERE NOT NULL NOT BETWEEN ( + col2 ) AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) * + - 99 FROM tab1 WHERE NOT NULL NOT BETWEEN ( + col2 ) AND + col1
----
0

query I rowsort
SELECT - col0 * + col0 + - col1 AS col2 FROM tab0
----
-306
-7590
-9410

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT ALL - SUM( - col0 ) * COUNT( * ) FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL - SUM ( - col0 ) * COUNT ( * ) FROM tab1
----
681

query I rowsort
SELECT ALL 28 - - col2 AS col0 FROM tab1
----
124
87
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT - MIN( DISTINCT + col2 ) + - 48 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-2726
SELECT - MIN ( DISTINCT + col2 ) + - 48 FROM tab0
----
-58

query I rowsort
SELECT DISTINCT ( + col0 ) + + - 8 AS col2 FROM tab1
----
43
77
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT COUNT( * ) + ( - 51 ) AS col1 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-2728
SELECT COUNT ( * ) + ( - 51 ) AS col1 FROM tab0 AS cor0
----
-48

query I rowsort
SELECT + - 12 + 94 FROM tab1 AS cor0
----
82
82
82

query II rowsort
SELECT ALL - col2 * + + ( 45 ), + col0 FROM tab1 cor0 WHERE NOT NULL NOT IN ( + col0 * + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2731
SELECT * FROM tab2 AS cor0 WHERE CAST( - col1 AS SIGNED ) + + - 14 NOT BETWEEN NULL AND col2
----

skipif mysql # not compatible
query III rowsort label-2731
SELECT * FROM tab2 AS cor0 WHERE CAST ( - col1 AS INTEGER ) + + - 14 NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2732
SELECT 61 * - 36 AS col2, SUM( DISTINCT - 1 ) AS col2 FROM tab2
----
-2196
-1

skipif mysql # not compatible
query II rowsort label-2732
SELECT 61 * - 36 AS col2, SUM ( DISTINCT - 1 ) AS col2 FROM tab2
----
-2196
-1

query I rowsort
SELECT + col0 * + + col1 AS col1 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL - + 54 AS col1 FROM tab1 AS cor0
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT DISTINCT - COUNT( ALL ( col1 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= 8
----
0

skipif mysql # not compatible
query I rowsort label-2735
SELECT DISTINCT - COUNT ( ALL ( col1 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT DISTINCT + - ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2736
SELECT DISTINCT + - ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2737
SELECT 40 DIV col1 FROM tab1
----
0
2
8

skipif mysql # not compatible
query I rowsort label-2737
SELECT 40 / col1 FROM tab1
----
0
2
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 50 col1, 16 FROM tab0
----
50
16
50
16
50
16

query I rowsort
SELECT + col2 / - - col1 * col0 / - - 55 AS col0 FROM tab1 WHERE NOT - 78 <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT ALL - COUNT( * ) * + 94 FROM tab2
----
-282

skipif mysql # not compatible
query I rowsort label-2740
SELECT ALL - COUNT ( * ) * + 94 FROM tab2
----
-282

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2741
SELECT ALL MAX( DISTINCT - - CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL MAX ( DISTINCT - - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - col2 ) col0 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT + COUNT( ALL - 81 ) + - + MAX( ALL + col2 ) AS col1 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-2743
SELECT + COUNT ( ALL - 81 ) + - + MAX ( ALL + col2 ) AS col1 FROM tab2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT DISTINCT + COUNT( * ) + - - 76 AS col2 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT + COUNT ( * ) + - - 76 AS col2 FROM tab2
----
79

query II rowsort
SELECT ALL + col2 + + col1 AS col2, col0 * 36 FROM tab1 AS cor0
----
110
1836
115
3276
64
3060

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2746
SELECT DISTINCT 45 DIV + ( + COUNT( * ) ) FROM tab1 cor0
----
15

skipif mysql # not compatible
query I rowsort label-2746
SELECT DISTINCT 45 / + ( + COUNT ( * ) ) FROM tab1 cor0
----
15

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < col1
----

query II rowsort
SELECT DISTINCT - + col1 + - col1, col2 FROM tab2 AS cor0
----
-102
23
-134
58
-154
40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2749
SELECT DISTINCT ( - col2 ) - - col1 DIV + CAST( 10 AS SIGNED ) + - col0 FROM tab1 AS cor0
----
-144
-146
-155

skipif mysql # not compatible
query I rowsort label-2749
SELECT DISTINCT ( - col2 ) - - col1 / + CAST ( 10 AS INTEGER ) + - col0 FROM tab1 AS cor0
----
-144
-146
-155

query I rowsort
SELECT col1 * - 32 AS col1 FROM tab2 AS cor0
----
-1632
-2144
-2464

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT + MIN( ALL 61 ) AS col1 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-2751
SELECT + MIN ( ALL 61 ) AS col1 FROM tab2
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-2752
SELECT col0 * 69 DIV col2 FROM tab1
----
36
92
99

skipif mysql # not compatible
query I rowsort label-2752
SELECT col0 * 69 / col2 FROM tab1
----
36
92
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2753
SELECT ALL col0 - - col2 DIV col1 AS col2 FROM tab0
----
15
196
87

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL col0 - - col2 / col1 AS col2 FROM tab0
----
15
196
87

query III rowsort
SELECT * FROM tab2 WHERE - col2 * + col0 + + - ( + col0 ) - - 90 * - col0 NOT BETWEEN + col2 + + col0 AND - + 45
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2755
SELECT 67 AS col1, + 11 + 64 + COUNT( * ) * - COUNT( * ) AS col0 FROM tab2
----
67
66

skipif mysql # not compatible
query II rowsort label-2755
SELECT 67 AS col1, + 11 + 64 + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2
----
67
66

query I rowsort
SELECT DISTINCT col2 - + col0 * + - col0 AS col1 FROM tab2
----
2139
4136
5683

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2757
SELECT ALL col0 * - CAST( - col2 AS SIGNED ) AS col0, col2 AS col2 FROM tab1
----
4896
96
5015
59
6188
68

skipif mysql # not compatible
query II rowsort label-2757
SELECT ALL col0 * - CAST ( - col2 AS INTEGER ) AS col0, col2 AS col2 FROM tab1
----
4896
96
5015
59
6188
68

query I rowsort
SELECT + col1 * + - col0 AS col1 FROM tab1 WHERE - ( + 81 ) + - ( + + col1 ) + - 87 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - + col2 col1 FROM tab1 WHERE NULL > col2 AND ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - - 15 * + col0 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2761
SELECT DISTINCT SUM( + col0 ) * 8 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT SUM ( + col0 ) * 8 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----
NULL

query I rowsort
SELECT - + 3 * + - col2 FROM tab0 cor0
----
141
297
30

query I rowsort
SELECT - - 42 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT ALL - 96 * - COUNT( * ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL - 96 * - COUNT ( * ) FROM tab1
----
288

query I rowsort
SELECT ALL - + 79 FROM tab1 WHERE NOT + col1 IS NULL
----
-79
-79
-79

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( + col2 ) / - 86 - + - 35 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2767
SELECT 5 AS col0, MIN( DISTINCT + 77 ) FROM tab1 cor0
----
5
77

skipif mysql # not compatible
query II rowsort label-2767
SELECT 5 AS col0, MIN ( DISTINCT + 77 ) FROM tab1 cor0
----
5
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 31 col1 FROM tab1 AS cor0
----
-31

query I rowsort
SELECT + ( - + 24 ) FROM tab2 cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE NOT ( col0 * - col2 >= + col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-2770
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( col0 * - col2 >= + col0 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2771
SELECT DISTINCT + - 75 DIV col1 FROM tab1 WHERE NULL IS NULL
----
-1
-15
-5

skipif mysql # not compatible
query I rowsort label-2771
SELECT DISTINCT + - 75 / col1 FROM tab1 WHERE NULL IS NULL
----
-1
-15
-5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 >= 22
----

query II rowsort
SELECT DISTINCT + col1 + - col0 + + + col2 * - - col1 + + + 22, col1 AS col0 FROM tab1 AS cor0
----
1329
14
237
5
3174
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2774
SELECT + COUNT( * ) * - 62 DIV CAST( + AVG ( ALL - + col2 ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2774
SELECT + COUNT ( * ) * - 62 / CAST ( + AVG ( ALL - + col2 ) AS INTEGER ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
-51
-85
-91

query I rowsort
SELECT 6 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT - + ( col0 ) AS col2 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2778
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-2778
SELECT - col1 / + col2 col0 FROM tab0 cor0
----
-1
-2
0

query I rowsort
SELECT ALL + 98 + + 68 - - - 67 - - col1 AS col1 FROM tab1 cor0
----
104
113
146

onlyif mysql # DIV for integer division: 
query I rowsort label-2780
SELECT - ( + 80 ) DIV + - col1 - + 30 FROM tab2 AS cor0
----
-29
-29
-29

skipif mysql # not compatible
query I rowsort label-2780
SELECT - ( + 80 ) / + - col1 - + 30 FROM tab2 AS cor0
----
-29
-29
-29

query I rowsort
SELECT DISTINCT + 9 + + 4 FROM tab0 AS cor0
----
13

query I rowsort
SELECT ALL - + 0 * - 1 + - 61 AS col0 FROM tab0 AS cor0
----
-61
-61
-61

query I rowsort
SELECT ALL - 3 * + col0 * - col0 AS col1 FROM tab1
----
21675
24843
7803

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT DISTINCT COUNT( * ) - - - 90 col0 FROM tab2
----
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2785
SELECT DISTINCT COUNT ( * ) - - - 90 col0 FROM tab2
----
-87

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 = col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2787
SELECT + col2 + + - 89 DIV + + col2 col0 FROM tab1
----
58
67
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2787
SELECT + col2 + + - 89 / + + col2 col0 FROM tab1
----
58
67
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2788
SELECT ALL CAST( MIN( 30 ) AS SIGNED ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL CAST ( MIN ( 30 ) AS INTEGER ) FROM tab2
----
30

query I rowsort
SELECT 56 * - - col2 AS col2 FROM tab1
----
3304
3808
5376

query II rowsort
SELECT DISTINCT + + col0 * + - ( + 85 ) + - col2 AS col1, + col0 * 5 FROM tab1 AS cor0
----
-4431
255
-7284
425
-7803
455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - ( col0 ) col1 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT DISTINCT - 28 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT ALL + SUM( ALL - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL + SUM ( ALL - col2 ) FROM tab2 AS cor0
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 * col2 col2 FROM tab1 AS cor0
----
-531
-612
-864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2795
SELECT - - col2 * col1 + + + col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2795
SELECT - - col2 * col1 + + + col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT ALL + COUNT( * ) * 98 AS col1 FROM tab1 cor0
----
294

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL + COUNT ( * ) * 98 AS col1 FROM tab1 cor0
----
294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 76 col2 FROM tab0 cor0
----
1140
6612
7372

onlyif mysql # aggregate syntax: 
query II rowsort label-2798
SELECT ALL + 73 AS col0, - COUNT( * ) FROM tab1
----
73
-3

skipif mysql # not compatible
query II rowsort label-2798
SELECT ALL + 73 AS col0, - COUNT ( * ) FROM tab1
----
73
-3

query I rowsort
SELECT ALL - - col1 AS col2 FROM tab1 WHERE NOT - col2 IS NULL
----
14
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2800
SELECT ALL + col1 AS col1, CAST( NULL AS DECIMAL ) FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-2800
SELECT ALL + col1 AS col1, CAST ( NULL AS REAL ) FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2801
SELECT - col1 DIV + 42 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2801
SELECT - col1 / + 42 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT DISTINCT MAX( ALL + 65 ) FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT MAX ( ALL + 65 ) FROM tab2
----
65

query I rowsort
SELECT + ( + 8 ) AS col1 FROM tab2
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT - SUM( DISTINCT 64 ) FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-2804
SELECT - SUM ( DISTINCT 64 ) FROM tab2
----
-64

query I rowsort
SELECT + ( - - 58 ) AS col2 FROM tab2
----
58
58
58

query I rowsort
SELECT ALL ( + + 57 ) FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2807
SELECT * FROM tab0 AS cor0 WHERE CAST( - + col1 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-2807
SELECT * FROM tab0 AS cor0 WHERE CAST ( - + col1 AS INTEGER ) <= NULL
----

query I rowsort
SELECT DISTINCT 70 + + col1 AS col1 FROM tab1 AS cor0
----
117
75
84

query I rowsort
SELECT - col1 * + col2 + + - col2 * ( - 50 ) FROM tab1 AS cor0
----
204
2655
3456

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT DISTINCT + SUM( - - col1 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2810
SELECT DISTINCT + SUM ( - - col1 ) AS col1 FROM tab1
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 + + + col1 + - col1 col1 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT - 2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 70 + col0 + - col2 - - - col2 * + 72 / col2 FROM tab0 WHERE - 54 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 10 * - 31 * + 0 * + + col2 + 3 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2815
SELECT 59 DIV ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-2815
SELECT 59 / ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-19

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL < + 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT + SUM( + + 22 ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2817
SELECT + SUM ( + + 22 ) FROM tab0 AS cor0
----
66

query I rowsort
SELECT ALL col2 + - col0 + - 92 AS col1 FROM tab0
----
-169
-60
-90

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT DISTINCT - SUM( ALL - col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2820
SELECT DISTINCT - SUM ( ALL - col0 ) AS col1 FROM tab0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2821
SELECT ALL 8 AS col2, CAST( NULL AS SIGNED ) + + + col1 FROM tab1
----
8
NULL
8
NULL
8
NULL

skipif mysql # not compatible
query II rowsort label-2821
SELECT ALL 8 AS col2, CAST ( NULL AS INTEGER ) + + + col1 FROM tab1
----
8
NULL
8
NULL
8
NULL

query II rowsort
SELECT ALL col0, + col2 + + col2 FROM tab0
----
15
94
87
20
97
198

onlyif mysql # aggregate syntax: 
query II rowsort label-2823
SELECT DISTINCT - 71 * + 26 + - 16 AS col1, COUNT( * ) AS col0 FROM tab2 cor0
----
-1862
3

skipif mysql # not compatible
query II rowsort label-2823
SELECT DISTINCT - 71 * + 26 + - 16 AS col1, COUNT ( * ) AS col0 FROM tab2 cor0
----
-1862
3

query I rowsort
SELECT 93 AS col2 FROM tab0 cor0
----
93
93
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2825
SELECT - ( + + MAX( CAST( NULL AS SIGNED ) ) ) * - SUM( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2825
SELECT - ( + + MAX ( CAST ( NULL AS INTEGER ) ) ) * - SUM ( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2826
SELECT ALL col2, col2 * 47 + - col0 - 61 DIV ( - + 20 ) + + + col2 AS col1 FROM tab1 AS cor0
----
59
2750
68
3176
96
4560

skipif mysql # not compatible
query II rowsort label-2826
SELECT ALL col2, col2 * 47 + - col0 - 61 / ( - + 20 ) + + + col2 AS col1 FROM tab1 AS cor0
----
59
2750
68
3176
96
4560

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 47 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT + SUM( col1 ) + + COUNT( * ) AS col1 FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-2828
SELECT + SUM ( col1 ) + + COUNT ( * ) AS col1 FROM tab0
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2829
SELECT ALL + col2 + - 13 * ( - col1 * col2 ) AS col0 FROM tab1 WHERE CAST( - col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL + col2 + - 13 * ( - col1 * col2 ) AS col0 FROM tab1 WHERE CAST ( - col2 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2830
SELECT ALL * FROM tab1 WHERE ( CAST( - col1 AS SIGNED ) ) <= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2830
SELECT ALL * FROM tab1 WHERE ( CAST ( - col1 AS INTEGER ) ) <= ( NULL )
----

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE col0 IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT DISTINCT COUNT( * ) + - 99 AS col2 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-2832
SELECT DISTINCT COUNT ( * ) + - 99 AS col2 FROM tab0
----
-96

query I rowsort
SELECT ( ( + 9 ) ) FROM tab2 WHERE NOT col1 IS NULL
----
9
9
9

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE ( col0 + col0 ) IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT DISTINCT - COUNT( + col2 ) + + COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2835
SELECT DISTINCT - COUNT ( + col2 ) + + COUNT ( * ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2836
SELECT ALL * FROM tab1 WHERE col1 * ( + col1 ) NOT BETWEEN ( ( + CAST( 89 AS SIGNED ) ) / col0 ) AND + col0
----
51
14
96
91
47
68

skipif mysql # not compatible
query III rowsort label-2836
SELECT ALL * FROM tab1 WHERE col1 * ( + col1 ) NOT BETWEEN ( ( + CAST ( 89 AS INTEGER ) ) / col0 ) AND + col0
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT 89 + + COUNT( * ) AS col0 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-2837
SELECT 89 + + COUNT ( * ) AS col0 FROM tab1
----
92

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE + 48 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col2 * 92 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NOT - ( 26 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT + SUM( ALL col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2841
SELECT + SUM ( ALL col0 ) AS col2 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT DISTINCT - COUNT( col2 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2842
SELECT DISTINCT - COUNT ( col2 ) AS col1 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 37 * + 27 + 70 BETWEEN NULL AND ( + col2 * + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( 9 / - ( - col1 ) )
----

query I rowsort
SELECT ALL 54 + - col2 * - col1 AS col0 FROM tab0
----
153
264
3861

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT COUNT( * ) AS col0 FROM tab2 WHERE ( NULL ) > ( + col2 + 91 )
----
0

skipif mysql # not compatible
query I rowsort label-2846
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE ( NULL ) > ( + col2 + 91 )
----
0

query I rowsort
SELECT DISTINCT col1 * col0 + + col1 AS col2 FROM tab0 WHERE NULL NOT IN ( col0 * col1 + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 81 NOT IN ( + col2 + 5 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + col0 * col2 AS col0 FROM tab0
----
786
891
9604

query I rowsort
SELECT col1 + 61 FROM tab2
----
112
128
138

query I rowsort
SELECT col2 + + 4 * col2 FROM tab2 cor0
----
115
200
290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2852
SELECT + ( - CAST( NULL AS SIGNED ) ) + - col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2852
SELECT + ( - CAST ( NULL AS INTEGER ) ) + - col2 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 14 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2854
SELECT + CAST( 33 AS SIGNED ) + 93 AS col2 FROM tab0 AS cor0
----
126
126
126

skipif mysql # not compatible
query I rowsort label-2854
SELECT + CAST ( 33 AS INTEGER ) + 93 AS col2 FROM tab0 AS cor0
----
126
126
126

onlyif mysql # DIV for integer division: 
query I rowsort label-2855
SELECT ALL + col2 DIV col2 + + ( - col0 + - col1 DIV - col0 ) AS col2 FROM tab2 AS cor0
----
-44
-62
-74

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL + col2 / col2 + + ( - col0 + - col1 / - col0 ) AS col2 FROM tab2 AS cor0
----
-44
-62
-74

query I rowsort
SELECT ALL col2 FROM tab0 cor0 WHERE ( + ( - col1 ) ) IN ( col1 * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2857
SELECT col0 FROM tab1 WHERE + col0 * CAST( NULL AS SIGNED ) > + col2 + + col0
----

skipif mysql # not compatible
query I rowsort label-2857
SELECT col0 FROM tab1 WHERE + col0 * CAST ( NULL AS INTEGER ) > + col2 + + col0
----

query I rowsort
SELECT - col0 - 85 * col2 AS col2 FROM tab0
----
-4010
-8512
-937

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT MIN( - col0 ) - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2859
SELECT MIN ( - col0 ) - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-94

query I rowsort
SELECT DISTINCT - col1 * + 6 + - col0 FROM tab1 AS cor0
----
-115
-135
-373

query I rowsort
SELECT col0 AS col2 FROM tab0 cor0 WHERE + col0 + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2862
SELECT + 87 + + CAST( 94 AS SIGNED ) FROM tab0 cor0
----
181
181
181

skipif mysql # not compatible
query I rowsort label-2862
SELECT + 87 + + CAST ( 94 AS INTEGER ) FROM tab0 cor0
----
181
181
181

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2863
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( + col2 AS DECIMAL ) * + 4 NOT IN ( 39 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2863
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( + col2 AS REAL ) * + 4 NOT IN ( 39 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2864
SELECT DISTINCT - ( CAST( - COUNT( * ) AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2864
SELECT DISTINCT - ( CAST ( - COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 + + col2 col2 FROM tab0 AS cor0
----
110
162
73

query I rowsort
SELECT DISTINCT + col1 * + 81 + 96 FROM tab2 AS cor0
----
4227
5523
6333

query I rowsort
SELECT ALL - + ( - 98 ) + ( col1 + - ( col1 ) ) FROM tab2 AS cor0
----
98
98
98

query I rowsort
SELECT ALL 79 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + ( col1 ) AS col0 FROM tab1 WHERE NOT 24 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2870
SELECT + CAST( - ( - col2 ) AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2870
SELECT + CAST ( - ( - col2 ) AS INTEGER ) FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2871
SELECT ALL * FROM tab2 WHERE 62 <> ( 18 + 79 ) OR NOT + CAST( + col1 AS SIGNED ) <> NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2871
SELECT ALL * FROM tab2 WHERE 62 <> ( 18 + 79 ) OR NOT + CAST ( + col1 AS INTEGER ) <> NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 * + col1 - col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 + col0 FROM tab0 WHERE NOT NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col1 FROM tab1
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT ALL MAX( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL MAX ( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT ALL COUNT( * ) + 11 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----
11

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL COUNT ( * ) + 11 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT SUM( DISTINCT col0 ) * + 95 AS col0 FROM tab0
----
18905

skipif mysql # not compatible
query I rowsort label-2877
SELECT SUM ( DISTINCT col0 ) * + 95 AS col0 FROM tab0
----
18905

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT MIN( DISTINCT ( + col2 ) ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2878
SELECT MIN ( DISTINCT ( + col2 ) ) AS col0 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT ALL 74 + - COUNT( * ) * - + ( - 62 ) FROM tab1 AS cor0
----
-112

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL 74 + - COUNT ( * ) * - + ( - 62 ) FROM tab1 AS cor0
----
-112

query I rowsort
SELECT DISTINCT - - 34 * + AVG ( ALL col1 + - 39 * col0 ) AS col1 FROM tab1 AS cor0 WHERE 42 <= NULL
----
NULL

query I rowsort
SELECT ALL 37 FROM tab0 AS cor0 WHERE NOT ( + col2 ) >= 61
----
37
37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( col0 + + 55 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col0 * col0 * col1 ) <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2884
SELECT - + col1 DIV - col0 + + - 51 AS col2 FROM tab0 AS cor0
----
-46
-51
-51

skipif mysql # not compatible
query I rowsort label-2884
SELECT - + col1 / - col0 + + - 51 AS col2 FROM tab0 AS cor0
----
-46
-51
-51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN - col2 AND + 84 + 9
----
85
5
59
91
47
68

query I rowsort
SELECT + col0 + - 33 FROM tab1 cor0
----
18
52
58

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - ( + 59 ) FROM tab1 cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT SUM( 31 ) * - COUNT( - + col1 ) * - COUNT( * ) FROM tab1
----
837

skipif mysql # not compatible
query I rowsort label-2889
SELECT SUM ( 31 ) * - COUNT ( - + col1 ) * - COUNT ( * ) FROM tab1
----
837

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2890
SELECT ( 8 ) * + col1 * + col1 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2890
SELECT ( 8 ) * + col1 * + col1 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT ALL - MIN( - - 51 ) * + SUM( DISTINCT - col0 ) FROM tab2
----
9435

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL - MIN ( - - 51 ) * + SUM ( DISTINCT - col0 ) FROM tab2
----
9435

onlyif mysql # DIV for integer division: 
query I rowsort label-2892
SELECT + col1 DIV + col2 * - col0 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2892
SELECT + col1 / + col2 * - col0 col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + + col2 ) col1, + 31 AS col1 FROM tab2
----
23
31
40
31
58
31

query II rowsort
SELECT ALL - 80 * - 59 AS col1, + 52 AS col0 FROM tab0
----
4720
52
4720
52
4720
52

query II rowsort
SELECT ALL + - 9 * + col2, - ( 7 ) AS col0 FROM tab2 AS cor0
----
-207
-7
-360
-7
-522
-7

query II rowsort
SELECT DISTINCT - + col0 * + col2 AS col2, col2 FROM tab2 cor0
----
-1058
23
-2560
40
-4350
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 97 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, col1 + - - 8 * 89 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - ( + + 70 ) * - col2 FROM tab0
----
3290
6930
700

query I rowsort
SELECT - - 0 - + 95 AS col1 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2901
SELECT - CAST( NULL AS SIGNED ) + 25 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2901
SELECT - CAST ( NULL AS INTEGER ) + 25 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND 90 * 51
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 + + col2 * - 28 * + 66 <> - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + - 81 ) / col2 BETWEEN + 24 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2905
SELECT ALL - 92 DIV + ( - COUNT( * ) ) col1 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2905
SELECT ALL - 92 / + ( - COUNT ( * ) ) col1 FROM tab2 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT ALL + COUNT( + col1 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2906
SELECT ALL + COUNT ( + col1 ) col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col1 ) * 97 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2908
SELECT DISTINCT + 32 * - + CAST( - col2 AS SIGNED ) col2 FROM tab1 AS cor0 WHERE NOT ( 96 ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2908
SELECT DISTINCT + 32 * - + CAST ( - col2 AS INTEGER ) col2 FROM tab1 AS cor0 WHERE NOT ( 96 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + col0 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col2 * - 5 * - + 1 FROM tab0 cor0
----
235
495
50

onlyif mysql # DIV for integer division: 
query II rowsort label-2911
SELECT + - col2, + 34 DIV col0 AS col0 FROM tab1 AS cor0
----
-59
0
-68
0
-96
0

skipif mysql # not compatible
query II rowsort label-2911
SELECT + - col2, + 34 / col0 AS col0 FROM tab1 AS cor0
----
-59
0
-68
0
-96
0

query I rowsort
SELECT + ( - col2 ) + 94 FROM tab1 WHERE NOT NULL < ( + col0 + + + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2913
SELECT DISTINCT COUNT( * ) col0, - 42 FROM tab0
----
3
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2913
SELECT DISTINCT COUNT ( * ) col0, - 42 FROM tab0
----
3
-42

query II rowsort
SELECT - ( 22 ), col1 AS col0 FROM tab1
----
-22
14
-22
47
-22
5

query I rowsort
SELECT DISTINCT - - col0 FROM tab0 WHERE ( NOT ( + col2 ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT - + MIN( ( 44 ) ) + COUNT( * ) / - 66 AS col1 FROM tab1 WHERE NOT NULL BETWEEN col1 AND - - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-2916
SELECT - + MIN ( ( 44 ) ) + COUNT ( * ) / - 66 AS col1 FROM tab1 WHERE NOT NULL BETWEEN col1 AND - - 35
----
NULL

query I rowsort
SELECT DISTINCT 4 * + + col2 AS col2 FROM tab0
----
188
396
40

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - - col1 + ( + col2 ) / - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT COUNT( * ) * - COUNT( * ) FROM tab0 WHERE NOT ( + - 23 / col2 ) NOT BETWEEN 56 / + col1 - + + 84 + + col1 AND + 84 * 27
----
-9

skipif mysql # not compatible
query I rowsort label-2919
SELECT COUNT ( * ) * - COUNT ( * ) FROM tab0 WHERE NOT ( + - 23 / col2 ) NOT BETWEEN 56 / + col1 - + + 84 + + col1 AND + 84 * 27
----
-9

query I rowsort
SELECT DISTINCT col0 FROM tab1 cor0 WHERE col1 <= + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2921
SELECT - CAST( - - col0 AS SIGNED ) + + col1 + ( col1 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
56
59
90

skipif mysql # not compatible
query I rowsort label-2921
SELECT - CAST ( - - col0 AS INTEGER ) + + col1 + ( col1 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
56
59
90

query I rowsort
SELECT - 37 * - + col2 - - col1 AS col2 FROM tab0 AS cor0
----
1820
3664
391

query I rowsort
SELECT DISTINCT - 43 * col0 + - col0 * + + col2 * - col0 AS col2 FROM tab2 AS cor0
----
161088
323025
46690

query I rowsort
SELECT ALL - col1 + - - col2 AS col0 FROM tab2
----
-28
-37
-9

query III rowsort
SELECT * FROM tab1 WHERE - - col1 BETWEEN NULL AND - - 73 + col0
----

query I rowsort
SELECT col0 + + col0 + - 34 FROM tab2
----
116
58
94

query I rowsort
SELECT 83 + + col2 FROM tab1
----
142
151
179

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 NOT BETWEEN + col1 / + 52 AND - 76
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - - ( - 14 ) BETWEEN ( + 53 * + col2 ) AND ( col0 * - col2 )
----

query I rowsort
SELECT ALL ( col0 ) * - - 56 FROM tab1
----
2856
4760
5096

query I rowsort
SELECT DISTINCT ( - 23 ) AS col1 FROM tab1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT ALL + + ( - MIN( ALL + ( + col2 ) ) ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL + + ( - MIN ( ALL + ( + col2 ) ) ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 20 * + + ( - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 + + - col2 AS col2 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT 44 + - col0 FROM tab2
----
-2
-20
-31

query II rowsort
SELECT DISTINCT + ( + + 55 ), col0 + - col2 * - + col0 AS col2 FROM tab2
----
55
1104
55
2624
55
4425

query I rowsort
SELECT DISTINCT + 50 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
50

query I rowsort
SELECT DISTINCT 93 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2939
SELECT + col1 * - + col0 AS col2 FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) * + col1 * + + col1 * - - col2 IS NOT NULL
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-2939
SELECT + col1 * - + col0 AS col2 FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + col1 * + + col1 * - - col2 IS NOT NULL
----
-1215
-1827
-97

query I rowsort
SELECT ALL - 45 - - 8 AS col1 FROM tab0 WHERE - col0 - + 22 + - col2 IN ( + - 13 + 31 )
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE col1 <= - + ( - 32 )
----
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 71 + + col0 + - 96 / col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2943
SELECT + - COUNT( * ) / - CAST( NULL AS SIGNED ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2943
SELECT + - COUNT ( * ) / - CAST ( NULL AS INTEGER ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2944
SELECT - COUNT( * ) DIV - - COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2944
SELECT - COUNT ( * ) / - - COUNT ( * ) FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2945
SELECT ALL col2 DIV - - col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL col2 / - - col2 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT MIN( + 17 ) AS col1 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-2946
SELECT MIN ( + 17 ) AS col1 FROM tab1
----
17

query II rowsort
SELECT DISTINCT - - col2 AS col0, col0 AS col1 FROM tab2 AS cor0
----
23
46
40
64
58
75

query II rowsort
SELECT DISTINCT col2 AS col0, + 63 FROM tab2 AS cor0
----
23
63
40
63
58
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT DISTINCT + COUNT( + + 79 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2949
SELECT DISTINCT + COUNT ( + + 79 ) FROM tab0
----
3

query II rowsort
SELECT ALL + col0, - col0 FROM tab0
----
15
-15
87
-87
97
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 4 * - col0 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + + + col2 * + + 5 AS col0 FROM tab0 AS cor0
----
137
250
592

onlyif mysql # DIV for integer division: 
query I rowsort label-2953
SELECT DISTINCT - 77 DIV col2 + col2 FROM tab2 AS cor0
----
20
39
57

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT - 77 / col2 + col2 FROM tab2 AS cor0
----
20
39
57

query II rowsort
SELECT 4 AS col0, col0 AS col0 FROM tab1 AS cor0
----
4
51
4
85
4
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2955
SELECT ALL - + col0 * - col1 + - ( 36 ) + 70 DIV + 53 AS col1 FROM tab1 AS cor0
----
390
4242
679

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL - + col0 * - col1 + - ( 36 ) + 70 / + 53 AS col1 FROM tab1 AS cor0
----
390
4242
679

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col2 + - - col1 * + 81 NOT IN ( + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col2 + - - col1 * + 81 NOT IN ( + - col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT DISTINCT - 38 * + MAX( + + col0 ) FROM tab2
----
-2850

skipif mysql # not compatible
query I rowsort label-2957
SELECT DISTINCT - 38 * + MAX ( + + col0 ) FROM tab2
----
-2850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2958
SELECT ALL + ( + CAST( + - 55 AS SIGNED ) ) AS col1 FROM tab2
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL + ( + CAST ( + - 55 AS INTEGER ) ) AS col1 FROM tab2
----
-55
-55
-55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2959
SELECT * FROM tab1 WHERE ( CAST( + col1 AS SIGNED ) ) NOT BETWEEN + 55 AND - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2959
SELECT * FROM tab1 WHERE ( CAST ( + col1 AS INTEGER ) ) NOT BETWEEN + 55 AND - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col2 * col0, + ( - col0 ) AS col2 FROM tab0
----
-705
-15
-870
-87
-9603
-97

query I rowsort
SELECT - 45 * - col1 - - 35 FROM tab1
----
2150
260
665

onlyif mysql # DIV for integer division: 
query I rowsort label-2962
SELECT col1 - + - 59 * - col2 DIV col2 FROM tab2
----
-8
18
8

skipif mysql # not compatible
query I rowsort label-2962
SELECT col1 - + - 59 * - col2 / col2 FROM tab2
----
-8
18
8

query I rowsort
SELECT DISTINCT + 86 AS col0 FROM tab2, tab2 cor0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2964
SELECT - - col1 + 98 DIV + col1 FROM tab1 AS cor0
----
21
24
49

skipif mysql # not compatible
query I rowsort label-2964
SELECT - - col1 + 98 / + col1 FROM tab1 AS cor0
----
21
24
49

query III rowsort
SELECT * FROM tab2 WHERE NOT + - ( col2 ) + + col0 + 23 / - + col2 * + - 75 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2966
SELECT DISTINCT col0 DIV - 28 col0 FROM tab2
----
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2966
SELECT DISTINCT col0 / - 28 col0 FROM tab2
----
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2967
SELECT ALL + 22 DIV - + 89 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL + 22 / - + 89 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2968
SELECT ALL + COUNT( * ) / 54 * + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL + COUNT ( * ) / 54 * + + CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT ALL - SUM( DISTINCT - - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL - SUM ( DISTINCT - - col1 ) FROM tab0
----
-103

query II rowsort
SELECT DISTINCT + col0 AS col0, col2 AS col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 - - col0 - - 56 < ( NULL )
----

query I rowsort
SELECT ALL col0 * col1 * 23 FROM tab1 AS cor0
----
16422
9775
98371

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + ( + + col1 ) + - col1 / 68 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2974
SELECT - + MAX( ALL - col0 ) DIV 35 AS col2 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2974
SELECT - + MAX ( ALL - col0 ) / 35 AS col2 FROM tab1 cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2975
SELECT DISTINCT + 99 DIV - 10 + - col2 + 49 FROM tab2 AS cor0
----
-18
0
17

skipif mysql # not compatible
query I rowsort label-2975
SELECT DISTINCT + 99 / - 10 + - col2 + 49 FROM tab2 AS cor0
----
-18
0
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2976
SELECT + 1 DIV col1 * - + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2976
SELECT + 1 / col1 * - + col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2977
SELECT - CAST( NULL AS DECIMAL ) * + 37 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2977
SELECT - CAST ( NULL AS REAL ) * + 37 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT 56 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 76 ) >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 30 IS NOT NULL
----

query I rowsort
SELECT ALL - 10 * - ( ( col0 ) ) FROM tab1
----
510
850
910

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE - col0 * ( - + 17 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE - col0 * ( - + 17 ) IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2983
SELECT + 39 + col0 DIV + 51 AS col2 FROM tab1 AS cor0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-2983
SELECT + 39 + col0 / + 51 AS col2 FROM tab1 AS cor0
----
40
40
40

query I rowsort
SELECT - + 69 + - col1 + + col1 FROM tab2 cor0
----
-69
-69
-69

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2986
SELECT - 84 * 26 DIV + - col2 FROM tab2
----
37
54
94

skipif mysql # not compatible
query I rowsort label-2986
SELECT - 84 * 26 / + - col2 FROM tab2
----
37
54
94

query I rowsort
SELECT DISTINCT + col2 * - - col2 FROM tab2
----
1600
3364
529

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE - 74 <= - 49 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT ALL 92 + - COUNT( * ) * + COUNT( * ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-2989
SELECT ALL 92 + - COUNT ( * ) * + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT 22 + COUNT( * ) FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-2990
SELECT 22 + COUNT ( * ) FROM tab0 AS cor0
----
25

query I rowsort
SELECT DISTINCT + col1 + + + col2 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query II rowsort label-2992
SELECT - COUNT( * ) + COUNT( * ), - MIN( DISTINCT - 46 ) AS col2 FROM tab0 WHERE ( - col0 ) NOT BETWEEN col1 * + col2 + + - 79 AND NULL AND NULL IN ( + col2 * col1 * ( - + col1 ) )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2992
SELECT - COUNT ( * ) + COUNT ( * ), - MIN ( DISTINCT - 46 ) AS col2 FROM tab0 WHERE ( - col0 ) NOT BETWEEN col1 * + col2 + + - 79 AND NULL AND NULL IN ( + col2 * col1 * ( - + col1 ) )
----
0
NULL

query II rowsort
SELECT ALL col1 AS col0, + col0 * + col2 AS col2 FROM tab1
----
14
4896
47
6188
5
5015

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 col0 FROM tab0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT 71 * + + COUNT( * ) + - 84 AS col1 FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-2995
SELECT 71 * + + COUNT ( * ) + - 84 AS col1 FROM tab0
----
129

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col0 ) <= NULL
----

query I rowsort
SELECT - 50 * 75 AS col2 FROM tab1
----
-3750
-3750
-3750

query I rowsort
SELECT DISTINCT - 64 + + col2 * - 0 FROM tab2 AS cor0
----
-64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + 17, + ( + 55 ) + col2 )
----

query I rowsort
SELECT - - 34 * + - ( - + col2 ) FROM tab1 AS cor0
----
2006
2312
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT - 33 * COUNT( * ) + - + 21 FROM tab0 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-3001
SELECT - 33 * COUNT ( * ) + - + 21 FROM tab0 AS cor0
----
-120

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL = ( - + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT DISTINCT ( + - ( MAX( ALL + 23 ) ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-23

skipif mysql # not compatible
query I rowsort label-3003
SELECT DISTINCT ( + - ( MAX ( ALL + 23 ) ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3004
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * + ( + col1 ) NOT IN ( + col0 * 32 - - CAST( NULL AS SIGNED ) + - col2 * + 2 / 15 )
----

skipif mysql # not compatible
query III rowsort label-3004
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * + ( + col1 ) NOT IN ( + col0 * 32 - - CAST ( NULL AS INTEGER ) + - col2 * + 2 / 15 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + - col2
----

query I rowsort
SELECT ALL + - 45 * + col2 AS col1 FROM tab2 AS cor0
----
-1035
-1800
-2610

query I rowsort
SELECT + 34 * - 88 + col1 + - + 67 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 * col0 / - col2 * + 0 AND 37
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 45 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3010
SELECT ALL + + COUNT( * ) * + COUNT( * ) AS col2, COUNT( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
9
3

skipif mysql # not compatible
query II rowsort label-3010
SELECT ALL + + COUNT ( * ) * + COUNT ( * ) AS col2, COUNT ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
9
3

query I rowsort
SELECT 71 * - col1 FROM tab0
----
-1491
-5751
-71

query I rowsort
SELECT DISTINCT 39 + + 62 AS col2 FROM tab2 WHERE ( NULL ) IS NULL
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT - COUNT( * ) * - COUNT( * ) FROM tab2 WHERE NOT ( NULL <> - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3013
SELECT - COUNT ( * ) * - COUNT ( * ) FROM tab2 WHERE NOT ( NULL <> - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT - MIN( DISTINCT - + col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-3014
SELECT - MIN ( DISTINCT - + col2 ) FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3015
SELECT DISTINCT COUNT( * ), 32 col2 FROM tab0
----
3
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3015
SELECT DISTINCT COUNT ( * ), 32 col2 FROM tab0
----
3
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT DISTINCT - 44 * - + COUNT( * ) FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT - 44 * - + COUNT ( * ) FROM tab2
----
132

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - col1 * + col1 IS NULL
----

query I rowsort
SELECT ALL - col2 - col1 * - col0 FROM tab0 AS cor0 WHERE col2 = - - col1 * col1 * - + 13 - + col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> + 14 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT COUNT( * ) + ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3020
SELECT COUNT ( * ) + ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
6

query I rowsort
SELECT ( col2 ) AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT ALL + + ( + COUNT( * ) ) - + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3022
SELECT ALL + + ( + COUNT ( * ) ) - + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 + + 32 * - ( + col2 ) FROM tab0 AS cor0
----
-1423
-299
-3167

query I rowsort
SELECT + 42 * + + ( col1 ) FROM tab2 AS cor0
----
2142
2814
3234

query I rowsort
SELECT - 98 + - - 52 AS col1 FROM tab2 WHERE + 7 IS NOT NULL
----
-46
-46
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 * + - col1 col0 FROM tab1
----
-1302
-4371
-465

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 col0 FROM tab0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT COUNT( + + col1 ) - - MIN( 6 ) col1 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3028
SELECT COUNT ( + + col1 ) - - MIN ( 6 ) col1 FROM tab2
----
9

query II rowsort
SELECT DISTINCT + 85 AS col1, - col0 * - - col1 + col1 AS col0 FROM tab2
----
85
-2295
85
-4851
85
-4958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3030
SELECT DISTINCT CAST( NULL AS SIGNED ) / COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3030
SELECT DISTINCT CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT - 7 * + COUNT( * ) col1 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3031
SELECT - 7 * + COUNT ( * ) col1 FROM tab1 AS cor0
----
-21

query I rowsort
SELECT - col0 * - - 35 FROM tab2
----
-1610
-2240
-2625

query II rowsort
SELECT - 62, col1 FROM tab0 AS cor0
----
-62
1
-62
21
-62
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3034
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col0, + 2 AS col1 FROM tab2 AS cor0 WHERE 67 + + col0 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query II rowsort label-3034
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col0, + 2 AS col1 FROM tab2 AS cor0 WHERE 67 + + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3035
SELECT + CAST( - + MIN( DISTINCT - - 84 ) AS SIGNED ) col0 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3035
SELECT + CAST ( - + MIN ( DISTINCT - - 84 ) AS INTEGER ) col0 FROM tab0 AS cor0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3036
SELECT + col1 * CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3036
SELECT + col1 * CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3037
SELECT + col2 * col0 * - 9 / + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3037
SELECT + col2 * col0 * - 9 / + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + 83 * - 32 AS col0, + 85 AS col2 FROM tab2
----
-2656
85
-2656
85
-2656
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT + COUNT( * ) + - 11 FROM tab1 AS cor0 WHERE 70 IS NOT NULL
----
-8

skipif mysql # not compatible
query I rowsort label-3039
SELECT + COUNT ( * ) + - 11 FROM tab1 AS cor0 WHERE 70 IS NOT NULL
----
-8

query I rowsort
SELECT DISTINCT + 50 * 42 + + col1 + + 0 FROM tab2 AS cor0
----
2151
2167
2177

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE col2 * - ( - - col1 ) + + col0 / + 49 + + 96 * + 88 * + col2 NOT IN ( col2, 75 )
----
46
64
75

query I rowsort
SELECT - - col2 * + 60 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 74 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT col1 * - ( - col1 ) - - col0 * + + col0 FROM tab1 AS cor0
----
10490
2797
7250

query I rowsort
SELECT DISTINCT 29 + + + 75 - - col0 * - - col1 FROM tab1 AS cor0
----
4381
529
818

onlyif mysql # DIV for integer division: 
query I rowsort label-3046
SELECT ALL - col2 DIV col0 - + 48 * + 56 FROM tab2 AS cor0
----
-2688
-2688
-2688

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL - col2 / col0 - + 48 * + 56 FROM tab2 AS cor0
----
-2688
-2688
-2688

query I rowsort
SELECT ALL - 65 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 41 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) <> ( NULL )
----

query I rowsort
SELECT + 76 * + - col1 * - col0 * + 11 * col2 FROM tab2
----
164792320
243652200
45108888

query I rowsort
SELECT 13 * col1 AS col1 FROM tab0
----
1053
13
273

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT ALL - - MIN( ALL 41 ) FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL - - MIN ( ALL 41 ) FROM tab1 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT ALL MAX( ALL + - 79 ) col1 FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3053
SELECT ALL MAX ( ALL + - 79 ) col1 FROM tab2 AS cor0
----
-79

query I rowsort
SELECT ALL - + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT ALL 33 * ( + MIN( DISTINCT + 2 ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
66

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL 33 * ( + MIN ( DISTINCT + 2 ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
66

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 65 * + 72 IN ( + ( + col2 ) / - + col1 * - + col1 + + + 51 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, 64 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + + col2 FROM tab1 AS cor0 WHERE NOT - col1 * - col1 = 86 * col0 - col2
----
59
68
96

query I rowsort
SELECT ALL + + 2 AS col1 FROM tab2 AS cor0
----
2
2
2

query I rowsort
SELECT ALL + + 72 FROM tab1 WHERE NOT ( NULL ) > ( NULL )
----

query I rowsort
SELECT + 82 * + + col0 FROM tab1
----
4182
6970
7462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3062
SELECT ALL 30 * + CAST( - col0 AS SIGNED ) AS col0 FROM tab0
----
-2610
-2910
-450

skipif mysql # not compatible
query I rowsort label-3062
SELECT ALL 30 * + CAST ( - col0 AS INTEGER ) AS col0 FROM tab0
----
-2610
-2910
-450

query II rowsort
SELECT 10 AS col0, col0 AS col2 FROM tab2
----
10
46
10
64
10
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3064
SELECT CAST( NULL AS SIGNED ) col2, + ( - + CAST( - 35 AS SIGNED ) ) + 86 FROM tab2
----
NULL
121
NULL
121
NULL
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3064
SELECT CAST ( NULL AS INTEGER ) col2, + ( - + CAST ( - 35 AS INTEGER ) ) + 86 FROM tab2
----
NULL
121
NULL
121
NULL
121

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 95 * - 35 * - col2 + col2 IS NOT NULL
----

query I rowsort
SELECT - 16 * col0 * + col0 * - col1 FROM tab1
----
578000
582624
6227312

query I rowsort
SELECT ALL 3 * + - col2 * + 42 AS col0 FROM tab1
----
-12096
-7434
-8568

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT DISTINCT + - ( MIN( - - col1 ) ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT + - ( MIN ( - - col1 ) ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - col1 + + 47 AS col2 FROM tab2 AS cor0
----
-20
-30
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3070
SELECT DISTINCT - col1 * - 8 + + 96 DIV - col1 + + + 63 AS col2 FROM tab1 AS cor0
----
169
437
84

skipif mysql # not compatible
query I rowsort label-3070
SELECT DISTINCT - col1 * - 8 + + 96 / - col1 + + + 63 AS col2 FROM tab1 AS cor0
----
169
437
84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 * - col0 + - 71 FROM tab0
----
634
799
9532

query I rowsort
SELECT - 15 + + col1 FROM tab1
----
-1
-10
32

query II rowsort
SELECT col2, 40 * + col0 * + col0 FROM tab0 WHERE ( ( + 36 < + - col2 ) )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 38 > NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NULL < col1
----

query I rowsort
SELECT - ( + + col0 ) - - col1 + + + 31 FROM tab0 AS cor0
----
-35
-65
97

query II rowsort
SELECT - + 9 - - col1 AS col0, - col1 FROM tab1 AS cor0
----
-4
-5
38
-47
5
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3079
SELECT DISTINCT - col1 DIV + 84 * col0 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3079
SELECT DISTINCT - col1 / + 84 * col0 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT MIN( DISTINCT + 73 ) FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-3080
SELECT MIN ( DISTINCT + 73 ) FROM tab1
----
73

query II rowsort
SELECT col0, + ( col0 ) AS col1 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT ALL - AVG ( + 11 ) FROM tab2 WHERE + 24 >= + col0
----
NULL

query I rowsort
SELECT DISTINCT - 54 * - col1 FROM tab2
----
2754
3618
4158

query I rowsort
SELECT ALL - 50 * col2 / + col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT DISTINCT + SUM( ALL 78 ) AS col2 FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-3085
SELECT DISTINCT + SUM ( ALL 78 ) AS col2 FROM tab0 AS cor0
----
234

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 + + + 73 BETWEEN col0 * + col2 AND + + col1 + col1 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 * + + 32 + + 96 + - 64 * + + col2 AS col0 FROM tab0 AS cor0
----
-1408
-224
-3072

query I rowsort
SELECT - 48 * col2 AS col1 FROM tab1 cor0
----
-2832
-3264
-4608

query I rowsort
SELECT DISTINCT 28 * + col1 AS col0 FROM tab0 AS cor0
----
2268
28
588

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT ALL - + COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL - + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

query I rowsort
SELECT ALL + - ( + col1 ) * - col0 + + - col2 + + 50 + - col1 + + + col0 FROM tab0 AS cor0
----
1152
144
1933

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 * + ( - col1 ) col2 FROM tab2 AS cor0
----
-1005
-1155
-765

query I rowsort
SELECT DISTINCT - - col2 + col1 * col1 AS col1 FROM tab1 AS cor0
----
2277
292
84

query I rowsort
SELECT 76 * + col2 * + col1 * - - 15 FROM tab0
----
112860
239400
4339980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3095
SELECT col2 / - + col1 + ( + + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3095
SELECT col2 / - + col1 + ( + + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 99 > + + col1
----

query I rowsort
SELECT - col1 + + col0 + - col2 * col0 FROM tab0 cor0
----
-771
-804
-9507

onlyif mysql # aggregate syntax: 
query II rowsort label-3098
SELECT - + 1, COUNT( * ) - + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query II rowsort label-3098
SELECT - + 1, COUNT ( * ) - + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT ALL 59 AS col1 FROM tab0 cor0 WHERE col1 * + 92 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + + col0 + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 - - col2 + col2 + - - col1 * - col2 * - 60 + - 31 AS col2 FROM tab1
----
17728
191797
80705

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT - ( - 29 ) + - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-3102
SELECT - ( - 29 ) + - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT - - col0 + - CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
17
23
24

skipif mysql # not compatible
query I rowsort label-3103
SELECT - - col0 + - CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT DISTINCT + MIN( ALL col2 ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT + MIN ( ALL col2 ) FROM tab2 cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3105
SELECT DISTINCT 78 * col1 * col1 - col2 * col2 + + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3105
SELECT DISTINCT 78 * col1 * col1 - col2 * col2 + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - 80 FROM tab1 WHERE NULL IS NULL
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-3107
SELECT - COUNT( ALL - 42 ) AS col2, + COUNT( * ) AS col2 FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-3107
SELECT - COUNT ( ALL - 42 ) AS col2, + COUNT ( * ) AS col2 FROM tab1
----
-3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3108
SELECT ALL 24 * - COUNT( ALL - col1 ) FROM tab0 WHERE NULL >= - 24 * CAST( + + col0 AS SIGNED ) - - - col0
----
0

skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL 24 * - COUNT ( ALL - col1 ) FROM tab0 WHERE NULL >= - 24 * CAST ( + + col0 AS INTEGER ) - - - col0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT ALL + + ( - + COUNT( * ) ) * - COUNT( + - 26 ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL + + ( - + COUNT ( * ) ) * - COUNT ( + - 26 ) AS col2 FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 29 * - 1 < - col1 / - col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3112
SELECT ALL col1 DIV - col2 col2, col1 + + CAST( NULL AS SIGNED ) + - - col1 AS col0 FROM tab1 cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3112
SELECT ALL col1 / - col2 col2, col1 + + CAST ( NULL AS INTEGER ) + - - col1 AS col0 FROM tab1 cor0
----
0
NULL
0
NULL
0
NULL

query I rowsort
SELECT DISTINCT - 14 * - - col2 FROM tab2
----
-322
-560
-812

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 91 IS NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE - 33 * + col2 IS NULL
----

query I rowsort
SELECT DISTINCT 66 + - - col2 * - col2 FROM tab0 AS cor0
----
-2143
-34
-9735

query II rowsort
SELECT DISTINCT 50 AS col1, col0 + col2 AS col0 FROM tab1 AS cor0
----
50
144
50
147
50
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT - COUNT( * ) col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3118
SELECT - COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3119
SELECT + CAST( + col0 AS SIGNED ) AS col2, col2 AS col2 FROM tab1
----
51
96
85
59
91
68

skipif mysql # not compatible
query II rowsort label-3119
SELECT + CAST ( + col0 AS INTEGER ) AS col2, col2 AS col2 FROM tab1
----
51
96
85
59
91
68

query II rowsort
SELECT col1 * col1, col1 AS col2 FROM tab0
----
1
1
441
21
6561
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 52 col0 FROM tab0
----
2444
5148
520

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT COUNT( * ) * + 74 AS col2 FROM tab1
----
222

skipif mysql # not compatible
query I rowsort label-3122
SELECT COUNT ( * ) * + 74 AS col2 FROM tab1
----
222

query I rowsort
SELECT DISTINCT - 92 + + + col2 * 23 FROM tab2 AS cor0
----
1242
437
828

query I rowsort
SELECT + col0 + 34 + col2 AS col2 FROM tab0 AS cor0
----
131
230
96

query I rowsort
SELECT - ( - - col1 ) * - col2 * + 5 * + 39 * + 40 + + col1 FROM tab1 AS cor0
----
10483214
2301005
24928847

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT DISTINCT COUNT( * ) + 36 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
45

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT COUNT ( * ) + 36 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
45

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( - 77 ) + - - 20 IS NULL
----

query I rowsort
SELECT ALL 96 - + - col1 FROM tab0
----
117
177
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 31 * + col2 ) >= 56
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3130
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST( NULL AS SIGNED ) AND - col0 * - col2 - - col1 + + col1
----

skipif mysql # not compatible
query III rowsort label-3130
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST ( NULL AS INTEGER ) AND - col0 * - col2 - - col1 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT + + SUM( ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3131
SELECT + + SUM ( ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT + SUM( ALL + 70 ) FROM tab2 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-3132
SELECT + SUM ( ALL + 70 ) FROM tab2 AS cor0
----
210

query II rowsort
SELECT ALL - 26 AS col1, - col0 * + col1 FROM tab0
----
-26
-1215
-26
-1827
-26
-97

query II rowsort
SELECT + 7, 57 AS col0 FROM tab2
----
7
57
7
57
7
57

query III rowsort
SELECT ALL * FROM tab1 WHERE 50 <= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * + 85 FROM tab0
----
1275
7395
8245

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT DISTINCT - SUM( + 99 ) AS col2 FROM tab1
----
-297

skipif mysql # not compatible
query I rowsort label-3137
SELECT DISTINCT - SUM ( + 99 ) AS col2 FROM tab1
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT - - MAX( - - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3138
SELECT - - MAX ( - - col1 ) FROM tab2 AS cor0
----
77

query II rowsort
SELECT ALL - 79 * col2 * - col0 * + col1 AS col1, col1 * - 94 AS col1 FROM tab1 AS cor0
----
1980925
-470
22976044
-4418
5414976
-1316

query I rowsort
SELECT - - col2 + + col0 * 46 + - col2 FROM tab0 AS cor0
----
4002
4462
690

onlyif mysql # DIV for integer division: 
query I rowsort label-3141
SELECT ALL + col0 * 1 DIV - 40 FROM tab1 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL + col0 * 1 / - 40 FROM tab1 AS cor0
----
-1
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT DISTINCT - + MAX( + ( - - col1 ) ) col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3142
SELECT DISTINCT - + MAX ( + ( - - col1 ) ) col2 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT + MIN( - col1 ) + - + COUNT( ALL + + col1 ) AS col0 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-3143
SELECT + MIN ( - col1 ) + - + COUNT ( ALL + + col1 ) AS col0 FROM tab1 AS cor0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3144
SELECT ALL + + COUNT( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL + + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3145
SELECT ALL 14 + - + CAST( ( - 89 ) AS SIGNED ) - - col2 AS col0 FROM tab1
----
162
171
199

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL 14 + - + CAST ( ( - 89 ) AS INTEGER ) - - col2 AS col0 FROM tab1
----
162
171
199

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT - - COUNT( * ) AS col2 FROM tab1 WHERE + col1 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3146
SELECT - - COUNT ( * ) AS col2 FROM tab1 WHERE + col1 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT ALL - MIN( + 77 ) * - COUNT( * ) * - 43 FROM tab1
----
-9933

skipif mysql # not compatible
query I rowsort label-3147
SELECT ALL - MIN ( + 77 ) * - COUNT ( * ) * - 43 FROM tab1
----
-9933

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT ALL COUNT( * ) + SUM( + + col0 ) col2 FROM tab2 AS cor0
----
188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3148
SELECT ALL COUNT ( * ) + SUM ( + + col0 ) col2 FROM tab2 AS cor0
----
188

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 46 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT - + COUNT( * ) col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3150
SELECT - + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + + + col2, + col2 col0 FROM tab1 cor0
----
0
59
0
68
0
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - - col2 + + + col2 col2 FROM tab2 AS cor0
----
-1035
-2520
-4292

query I rowsort
SELECT DISTINCT - col0 * col2 * + - col1 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col2, + 95 AS col2 FROM tab1
----
59
95
68
95
96
95

query I rowsort
SELECT DISTINCT 19 - col1 AS col0 FROM tab1
----
-28
14
5

query I rowsort
SELECT + - col0 + col1 - + + col2 + + col0 * - 13 AS col1 FROM tab2 WHERE + 7 + + 60 BETWEEN NULL AND + 73 * col0 / 71 * + + col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3157
SELECT ALL CAST( + col1 AS SIGNED ) DIV - col1, col1 FROM tab1
----
-1
14
-1
47
-1
5

skipif mysql # not compatible
query II rowsort label-3157
SELECT ALL CAST ( + col1 AS INTEGER ) / - col1, col1 FROM tab1
----
-1
14
-1
47
-1
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3158
SELECT + 94 DIV + - ( 16 ) AS col1 FROM tab2 AS cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-3158
SELECT + 94 / + - ( 16 ) AS col1 FROM tab2 AS cor0
----
-5
-5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 col1 FROM tab1 AS cor0
----
-93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3160
SELECT DISTINCT - 10 AS col2 FROM tab0 AS cor0 WHERE NOT col0 * - CAST( NULL AS DECIMAL ) + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3160
SELECT DISTINCT - 10 AS col2 FROM tab0 AS cor0 WHERE NOT col0 * - CAST ( NULL AS REAL ) + col1 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT + ( - col0 ), col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT ( col0 ) * - 21 FROM tab0 cor0
----
-1827
-2037
-315

query I rowsort
SELECT + col2 - - col0 * col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 / - + col1 FROM tab0 AS cor0 WHERE NOT col1 * - - col0 + + 98 + + col2 * + + col0 <> 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT COUNT( DISTINCT + 41 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3167
SELECT COUNT ( DISTINCT + 41 ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT COUNT( DISTINCT + 3 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3168
SELECT COUNT ( DISTINCT + 3 ) AS col1 FROM tab2
----
1

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * - + ( + 88 ) BETWEEN + 74 AND - 18
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 > - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col2 ) + col0 + - 5 / ( - col1 ) IS NULL
----

query I rowsort
SELECT ALL col1 * col2 * + col0 AS col2 FROM tab0 AS cor0
----
18270
57105
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - - col0 col1 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT - 7 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-3174
SELECT - 7 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-3175
SELECT DISTINCT 44 DIV - col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3175
SELECT DISTINCT 44 / - col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT - COUNT( * ) * - 26 AS col1 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-3176
SELECT - COUNT ( * ) * - 26 AS col1 FROM tab2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3177
SELECT DISTINCT 84 - CAST( + + col1 AS SIGNED ) * - - col0 FROM tab0
----
-1131
-13
-1743

skipif mysql # not compatible
query I rowsort label-3177
SELECT DISTINCT 84 - CAST ( + + col1 AS INTEGER ) * - - col0 FROM tab0
----
-1131
-13
-1743

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3178
SELECT ALL * FROM tab0 WHERE NULL >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3178
SELECT ALL * FROM tab0 WHERE NULL >= - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT - ( - - COUNT( ALL col2 ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3179
SELECT - ( - - COUNT ( ALL col2 ) ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT + COUNT( col0 ) - COUNT( * ) * - + 45 FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-3180
SELECT + COUNT ( col0 ) - COUNT ( * ) * - + 45 FROM tab0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT + 64 - - - 79 + - SUM( DISTINCT + - 69 ) AS col2 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-3181
SELECT + 64 - - - 79 + - SUM ( DISTINCT + - 69 ) AS col2 FROM tab0
----
54

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 <= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3183
SELECT ALL - col0 DIV - - col1 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL - col0 / - - col1 FROM tab0
----
-4
-97
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3184
SELECT DISTINCT - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 WHERE NOT 89 * - col1 <> + - col0 - + + 62
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3184
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 WHERE NOT 89 * - col1 <> + - col0 - + + 62
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3185
SELECT 65, - COUNT( * ) AS col2 FROM tab0
----
65
-3

skipif mysql # not compatible
query II rowsort label-3185
SELECT 65, - COUNT ( * ) AS col2 FROM tab0
----
65
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + col0 ) col2 FROM tab2
----
-46
-64
-75

query II rowsort
SELECT ALL + col1 AS col1, + 5 AS col1 FROM tab0 AS cor0
----
1
5
21
5
81
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT DISTINCT + COUNT( DISTINCT - - 20 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3188
SELECT DISTINCT + COUNT ( DISTINCT - - 20 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT col1 * - + col1 AS col0 FROM tab0 cor0
----
-1
-441
-6561

query II rowsort
SELECT - col2 * - col1 + + + 81 AS col0, 54 + 44 + - 30 * - 78 + + + col2 FROM tab2 WHERE NOT + col2 + col1 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3191
SELECT - 74 DIV COUNT( * ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-3191
SELECT - 74 / COUNT ( * ) FROM tab1
----
-24

query I rowsort
SELECT DISTINCT + col1 + - + 92 * + col2 FROM tab1 AS cor0
----
-5423
-6209
-8818

query I rowsort
SELECT ALL + ( - - 6 ) FROM tab0 AS cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT - 67 + + MIN( DISTINCT - 36 ) AS col2 FROM tab1 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3194
SELECT - 67 + + MIN ( DISTINCT - 36 ) AS col2 FROM tab1 cor0
----
-103

onlyif mysql # DIV for integer division: 
query II rowsort label-3195
SELECT - 35 + + col1 AS col2, + col1 DIV - 68 AS col0 FROM tab0 cor0
----
-14
0
-34
0
46
-1

skipif mysql # not compatible
query II rowsort label-3195
SELECT - 35 + + col1 AS col2, + col1 / - 68 AS col0 FROM tab0 cor0
----
-14
0
-34
0
46
-1

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( col1 ) * - col2 >= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT - ( - COUNT( * ) ) * + COUNT( * ) * - 79 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
-6399

skipif mysql # not compatible
query I rowsort label-3197
SELECT - ( - COUNT ( * ) ) * + COUNT ( * ) * - 79 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
-6399

query I rowsort
SELECT - - 93 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT DISTINCT + 30 + + COUNT( * ) + - 82 col2 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3199
SELECT DISTINCT + 30 + + COUNT ( * ) + - 82 col2 FROM tab2 AS cor0
----
-49

query I rowsort
SELECT - - col0 - - col2 + - 20 * - 9 AS col0 FROM tab2 AS cor0
----
249
284
313

query I rowsort
SELECT ALL + ( - col1 ) + - - ( + col1 ) AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3202
SELECT DISTINCT - 5 DIV ( col2 ) + + 70 FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-3202
SELECT DISTINCT - 5 / ( col2 ) + + 70 FROM tab0 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE col1 + - col1 BETWEEN NULL AND - 26
----
0

skipif mysql # not compatible
query I rowsort label-3203
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE col1 + - col1 BETWEEN NULL AND - 26
----
0

query I rowsort
SELECT DISTINCT - 43 - + - col0 * 48 AS col2 FROM tab1
----
2405
4037
4325

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 79 >= NULL
----

query I rowsort
SELECT DISTINCT + col2 + col1 - - + col2 * + 1 AS col1 FROM tab1
----
123
183
206

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT ALL - COUNT( * ) - + 79 AS col1 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL - COUNT ( * ) - + 79 AS col1 FROM tab0
----
-82

query I rowsort
SELECT 99 * - + col0 FROM tab2
----
-4554
-6336
-7425

query I rowsort
SELECT 41 + - + 29 * + - col0 AS col0 FROM tab0 WHERE - col2 IS NOT NULL
----
2564
2854
476

query II rowsort
SELECT 65 AS col1, col2 AS col2 FROM tab0
----
65
10
65
47
65
99

query II rowsort
SELECT DISTINCT 93, + col0 FROM tab2
----
93
46
93
64
93
75

query III rowsort
SELECT * FROM tab0 WHERE + - 9 IS NULL
----

query I rowsort
SELECT DISTINCT 39 - + + 19 FROM tab2
----
20

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 * - col1 + ( - col0 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3215
SELECT + + col0, CAST( - - col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
51
51
85
85
91
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3215
SELECT + + col0, CAST ( - - col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
51
51
85
85
91
91

query II rowsort
SELECT - + col0 * + 97 AS col0, col2 FROM tab2 AS cor0
----
-4462
23
-6208
40
-7275
58

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3218
SELECT COUNT( * ) DIV - 6 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3218
SELECT COUNT ( * ) / - 6 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + 91 AS col2 FROM tab0 WHERE NOT - 63 IS NOT NULL
----

query II rowsort
SELECT - 13 * + - 82, col0 AS col2 FROM tab0
----
1066
15
1066
87
1066
97

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 73 * col1 / + + col2 < NULL
----

query I rowsort
SELECT ALL 92 + 84 FROM tab0 cor0
----
176
176
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3224
SELECT ALL ( col1 ) * + col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL ( col1 ) * + col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL > NULL )
----

query I rowsort
SELECT + - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT MAX( 95 ) FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-3227
SELECT MAX ( 95 ) FROM tab1
----
95

query I rowsort
SELECT ALL col0 + col0 + 53 * - - col2 * col0 * col2 AS col0 FROM tab0
----
1756185
461274
50387135

query I rowsort
SELECT col1 * + 7 AS col0 FROM tab1
----
329
35
98

query II rowsort
SELECT DISTINCT + - col1 + 25 * col0 AS col2, col1 AS col0 FROM tab0 cor0
----
2154
21
2424
1
294
81

query I rowsort
SELECT ALL 26 + 95 + + col2 * + col1 FROM tab2 AS cor0
----
1294
3201
4007

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT COUNT( * ) * + 59 col1 FROM tab1
----
177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3232
SELECT COUNT ( * ) * + 59 col1 FROM tab1
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT 3 * COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3233
SELECT 3 * COUNT ( * ) AS col0 FROM tab1
----
9

query I rowsort
SELECT ALL + col1 * col1 + + col2 AS col1 FROM tab1
----
2277
292
84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 60 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT DISTINCT MAX( ALL ( + col1 ) ) * - 75 AS col2 FROM tab1
----
-3525

skipif mysql # not compatible
query I rowsort label-3236
SELECT DISTINCT MAX ( ALL ( + col1 ) ) * - 75 AS col2 FROM tab1
----
-3525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3237
SELECT ALL ( - col2 ) * + 53 FROM tab0 WHERE ( CAST( + col1 AS SIGNED ) ) <= ( 12 )
----
-5247

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL ( - col2 ) * + 53 FROM tab0 WHERE ( CAST ( + col1 AS INTEGER ) ) <= ( 12 )
----
-5247

query I rowsort
SELECT ALL - 61 * + col1 FROM tab2 WHERE + col0 = NULL
----

query I rowsort
SELECT 23 * - col2 + - 61 FROM tab0
----
-1142
-2338
-291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 + - col2 * ( + 6 + - col2 ) col2 FROM tab2 WHERE NULL IS NULL
----
1393
3049
424

query III rowsort
SELECT * FROM tab0 WHERE NOT + 53 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3242
SELECT ALL * FROM tab2 WHERE ( - 27 ) BETWEEN + col1 AND - CAST( NULL AS SIGNED ) - col2
----

skipif mysql # not compatible
query III rowsort label-3242
SELECT ALL * FROM tab2 WHERE ( - 27 ) BETWEEN + col1 AND - CAST ( NULL AS INTEGER ) - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3243
SELECT + CAST( NULL AS SIGNED ) * - ( 99 * - col2 ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3243
SELECT + CAST ( NULL AS INTEGER ) * - ( 99 * - col2 ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3244
SELECT - CAST( NULL AS SIGNED ) * 88 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3244
SELECT - CAST ( NULL AS INTEGER ) * 88 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT DISTINCT 26 * + COUNT( * ) AS col2 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT 26 * + COUNT ( * ) AS col2 FROM tab2
----
78

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 * - 44 > + 10 * + 94
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT + 50 * col1 + 7 / col0 NOT BETWEEN col0 AND - col2
----

query I rowsort
SELECT ALL + col0 * + ( ( - col1 ) ) AS col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT ALL + COUNT( * ) * MAX( + 7 / + col1 ) FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND ( - 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL + COUNT ( * ) * MAX ( + 7 / + col1 ) FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND ( - 57 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 - 83 BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT col1 + 37 FROM tab0
----
118
38
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT ALL + COUNT( * ) * - COUNT( * ) col0 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3252
SELECT ALL + COUNT ( * ) * - COUNT ( * ) col0 FROM tab2
----
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( 35 + 21 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT + SUM( col1 ) * 80 AS col0 FROM tab0 WHERE ( col0 * + col0 ) IS NOT NULL
----
8240

skipif mysql # not compatible
query I rowsort label-3254
SELECT + SUM ( col1 ) * 80 AS col0 FROM tab0 WHERE ( col0 * + col0 ) IS NOT NULL
----
8240

query I rowsort
SELECT col2 * + col0 + col0 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 * col1 + - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE + 28 NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 NOT BETWEEN + 23 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 52 * col1 ) BETWEEN ( NULL ) AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 95 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( 90 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 ) IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT NULL > - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 46 = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT - + COUNT( * ) * MAX( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-3265
SELECT - + COUNT ( * ) * MAX ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-225

query I rowsort
SELECT DISTINCT - col1 + 38 FROM tab1 AS cor0
----
-9
24
33

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 <= NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT DISTINCT ( MIN( 20 ) ) FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-3269
SELECT DISTINCT ( MIN ( 20 ) ) FROM tab0 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT DISTINCT - SUM( col1 ) + 81 AS col2 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-3270
SELECT DISTINCT - SUM ( col1 ) + 81 AS col2 FROM tab0 AS cor0
----
-22

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> - ( + 77 )
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 81 * + col0 )
----

query I rowsort
SELECT ALL 67 * 19 FROM tab0 AS cor0
----
1273
1273
1273

onlyif mysql # DIV for integer division: 
query I rowsort label-3274
SELECT DISTINCT - ( + 58 ) DIV col1 AS col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3274
SELECT DISTINCT - ( + 58 ) / col1 AS col1 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT + - 57 * + ( 91 ) AS col1 FROM tab1 AS cor0
----
-5187
-5187
-5187

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 + + col0 ) NOT IN ( col2 / 61 + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3277
SELECT ALL * FROM tab0 cor0 WHERE + ( col2 ) * + ( - col2 - CAST( + col0 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3277
SELECT ALL * FROM tab0 cor0 WHERE + ( col2 ) * + ( - col2 - CAST ( + col0 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3278
SELECT COUNT( * ) DIV + 3 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3278
SELECT COUNT ( * ) / + 3 AS col0 FROM tab1
----
1

query I rowsort
SELECT DISTINCT + col2 + - - col0 + col0 FROM tab1
----
198
229
250

query I rowsort
SELECT + 9 * - col2 AS col0 FROM tab2 AS cor0
----
-207
-360
-522

query I rowsort
SELECT ALL + 93 FROM tab0 cor0 WHERE + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 73 * col2 BETWEEN - col0 AND - col2 * - ( col1 * - col2 ) + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 55 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT - MAX( + 62 ) FROM tab2, tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-3284
SELECT - MAX ( + 62 ) FROM tab2, tab2 AS cor0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT + COUNT( * ) - - 79 FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-3285
SELECT + COUNT ( * ) - - 79 FROM tab2 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT - 45 + - + MAX( col1 ) AS col2 FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-3286
SELECT - 45 + - + MAX ( col1 ) AS col2 FROM tab1 AS cor0
----
-92

query II rowsort
SELECT ALL + col2, 23 * - col1 AS col1 FROM tab1 AS cor0
----
59
-115
68
-1081
96
-322

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3288
SELECT ALL - + CAST( + col1 AS SIGNED ) + - col2 * + col2 AS col0 FROM tab0 AS cor0
----
-121
-2290
-9802

skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL - + CAST ( + col1 AS INTEGER ) + - col2 * + col2 AS col0 FROM tab0 AS cor0
----
-121
-2290
-9802

query I rowsort
SELECT ALL - col0 * col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT DISTINCT + 14 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 <= - col0 * 18
----

query I rowsort
SELECT + col2 + - - col2 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT - COUNT( * ) + 82 AS col0 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-3293
SELECT - COUNT ( * ) + 82 AS col0 FROM tab2 AS cor0
----
79

query I rowsort
SELECT 87 + - col1 * + col2 FROM tab2 WHERE NOT ( + col2 * + + 87 / col2 ) IS NULL
----
-1086
-2993
-3799

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * col2 * - 52 - col2 * + col2 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 23 + + col2 / - col0 AS col0 FROM tab2 WHERE NOT ( - + col0 ) > NULL
----

query I rowsort
SELECT DISTINCT 17 + col2 * + 29 AS col2 FROM tab0 WHERE ( - col0 ) IS NOT NULL
----
1380
2888
307

query I rowsort
SELECT - col0 * - col0 AS col0 FROM tab0 WHERE NOT ( NULL ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT - MAX( DISTINCT + - 94 ) FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-3299
SELECT - MAX ( DISTINCT + - 94 ) FROM tab2
----
94

query I rowsort
SELECT ( + - 56 ) * 23 FROM tab1
----
-1288
-1288
-1288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3301
SELECT CAST( 23 AS SIGNED ) FROM tab1 AS cor0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-3301
SELECT CAST ( 23 AS INTEGER ) FROM tab1 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT ( + COUNT( - - col0 ) ) * 56 + 72 FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-3302
SELECT ( + COUNT ( - - col0 ) ) * 56 + 72 FROM tab0 AS cor0
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT ALL COUNT( * ) * + 89 col2 FROM tab1 AS cor0
----
267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3303
SELECT ALL COUNT ( * ) * + 89 col2 FROM tab1 AS cor0
----
267

query I rowsort
SELECT DISTINCT - - ( + col0 ) AS col2 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col1 * 32 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT ALL + MIN( ALL - 93 ) AS col1 FROM tab1 WHERE + col1 + + col2 IS NOT NULL
----
-93

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL + MIN ( ALL - 93 ) AS col1 FROM tab1 WHERE + col1 + + col2 IS NOT NULL
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT + COUNT( * ) + + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3307
SELECT + COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3308
SELECT ALL - - CAST( + col0 AS SIGNED ) + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL - - CAST ( + col0 AS INTEGER ) + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - col1, ( + - 8 ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 89 + col1 * + + ( + col2 ) * - + 33 col1 FROM tab1 AS cor0
----
-105557
-44441
-9824

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 23 * - col1 * - + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, - col2 AS col1 FROM tab1
----
14
-96
47
-68
5
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT DISTINCT ( - MAX( DISTINCT + col0 ) ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT ( - MAX ( DISTINCT + col0 ) ) AS col1 FROM tab1
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3314
SELECT DISTINCT + 29 DIV - 70 * + + ( COUNT( * ) ) FROM tab1 WHERE NOT 4 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT + 29 / - 70 * + + ( COUNT ( * ) ) FROM tab1 WHERE NOT 4 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT + SUM( col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-3315
SELECT + SUM ( col1 ) AS col2 FROM tab2
----
195

query I rowsort
SELECT ALL + 19 + + + 21 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT ALL - COUNT( * ) FROM tab2 WHERE ( 59 ) NOT IN ( col1 * + 31 )
----
-3

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL - COUNT ( * ) FROM tab2 WHERE ( 59 ) NOT IN ( col1 * + 31 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT ALL 11 + - COUNT( * ) AS col1 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL 11 + - COUNT ( * ) AS col1 FROM tab2
----
8

query I rowsort
SELECT col0 + col1 FROM tab2 WHERE NULL IN ( + + 73 * - - col0 - + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3320
SELECT ( COUNT( * ) ) * MIN( col2 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( + 77, CAST( NULL AS SIGNED ), - col0 + col0 + 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3320
SELECT ( COUNT ( * ) ) * MIN ( col2 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( + 77, CAST ( NULL AS INTEGER ), - col0 + col0 + 64 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 11 * + + col2 + - + 43 + - col2 * - 38 * col0 ) > ( + col2 ) - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 29 - col2 - - - col0 AS col1 FROM tab2 cor0
----
-104
-40
-75

query I rowsort
SELECT - col1 + - - 26 * + col0 + col2 FROM tab1 AS cor0
----
1408
2264
2387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 61 col1 FROM tab2 AS cor0
----
107
125
136

query I rowsort
SELECT + + col2 * + + col1 + - - 80 AS col1 FROM tab2 AS cor0
----
1253
3160
3966

query I rowsort
SELECT ALL + + col1 - + 15 FROM tab1 AS cor0
----
-1
-10
32

query I rowsort
SELECT DISTINCT ( - - 16 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT DISTINCT MAX( - 1 ) * 37 - + 75 AS col1 FROM tab1 WHERE NULL IN ( col0, - col2 * + col0 * + - 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3328
SELECT DISTINCT MAX ( - 1 ) * 37 - + 75 AS col1 FROM tab1 WHERE NULL IN ( col0, - col2 * + col0 * + - 71 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3329
SELECT + COUNT( * ) DIV - + 81 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3329
SELECT + COUNT ( * ) / - + 81 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3330
SELECT DISTINCT - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2, col1 AS col0 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-3330
SELECT DISTINCT - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, col1 AS col0 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3331
SELECT DISTINCT COUNT( col2 ) col2 FROM tab1 cor0 WHERE NOT col2 * + col1 - - CAST( NULL AS SIGNED ) BETWEEN ( + col1 ) AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3331
SELECT DISTINCT COUNT ( col2 ) col2 FROM tab1 cor0 WHERE NOT col2 * + col1 - - CAST ( NULL AS INTEGER ) BETWEEN ( + col1 ) AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 + 12 * - 14 * + + 26 NOT IN ( - - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3333
SELECT ( - col1 ) * + col2 * col1 + + CAST( - 35 AS SIGNED ) * - col0 FROM tab1 cor0
----
-147027
-17031
1500

skipif mysql # not compatible
query I rowsort label-3333
SELECT ( - col1 ) * + col2 * col1 + + CAST ( - 35 AS INTEGER ) * - col0 FROM tab1 cor0
----
-147027
-17031
1500

onlyif mysql # DIV for integer division: 
query I rowsort label-3334
SELECT 61 DIV - - col1 AS col2 FROM tab0
----
0
2
61

skipif mysql # not compatible
query I rowsort label-3334
SELECT 61 / - - col1 AS col2 FROM tab0
----
0
2
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 95 col0, - col2 FROM tab1 WHERE NOT + - col2 <> + col1 * - - col1
----

query I rowsort
SELECT ALL 30 * - col1 FROM tab1
----
-1410
-150
-420

query II rowsort
SELECT DISTINCT - col1 AS col0, - col1 AS col2 FROM tab1
----
-14
-14
-47
-47
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3338
SELECT DISTINCT CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3338
SELECT DISTINCT CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT - - ( - COUNT( * ) ) FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 * - + col1 * + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3339
SELECT - - ( - COUNT ( * ) ) FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 * - + col1 * + col2 AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + 54 ) col2 FROM tab2
----
-54
-54
-54

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col2 - + col1 IS NULL
----

query I rowsort
SELECT + col0 * + col0 + + 91 + + ( + 48 ) + - - col2 FROM tab0 AS cor0
----
411
7718
9647

onlyif mysql # aggregate syntax: 
query II rowsort label-3343
SELECT DISTINCT - 90 AS col0, - COUNT( * ) * - MAX( ALL + + 50 ) AS col2 FROM tab2 AS cor0
----
-90
150

skipif mysql # not compatible
query II rowsort label-3343
SELECT DISTINCT - 90 AS col0, - COUNT ( * ) * - MAX ( ALL + + 50 ) AS col2 FROM tab2 AS cor0
----
-90
150

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT DISTINCT + COUNT( * ) FROM tab0, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT + COUNT ( * ) FROM tab0, tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT COUNT( DISTINCT ( + 59 ) ) FROM tab0 AS cor0 WHERE + col2 / ( - col0 ) NOT IN ( col2 )
----
1

skipif mysql # not compatible
query I rowsort label-3345
SELECT COUNT ( DISTINCT ( + 59 ) ) FROM tab0 AS cor0 WHERE + col2 / ( - col0 ) NOT IN ( col2 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT DISTINCT + - 3 + + MIN( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3346
SELECT DISTINCT + - 3 + + MIN ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3347
SELECT - CAST( 94 AS SIGNED ) FROM tab2 AS cor0
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-3347
SELECT - CAST ( 94 AS INTEGER ) FROM tab2 AS cor0
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT ALL + COUNT( * ) + - - ( - + COUNT( * ) ) col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3348
SELECT ALL + COUNT ( * ) + - - ( - + COUNT ( * ) ) col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + ( - col1 ) * col2 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-3350
SELECT + - col1 DIV ( - col1 ) + - col2 col1 FROM tab1 AS cor0
----
-58
-67
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3350
SELECT + - col1 / ( - col1 ) + - col2 col1 FROM tab1 AS cor0
----
-58
-67
-95

query I rowsort
SELECT - col2 + - 13 FROM tab2 AS cor0
----
-36
-53
-71

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * - - 13 * - 74 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 48 * + - col0 FROM tab2
----
-2208
-3072
-3600

query III rowsort
SELECT * FROM tab2 WHERE + 60 BETWEEN + ( + col2 ) AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT DISTINCT MAX( DISTINCT - col0 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-3355
SELECT DISTINCT MAX ( DISTINCT - col0 ) AS col2 FROM tab2
----
-46

query I rowsort
SELECT - 2 + + 78 FROM tab2
----
76
76
76

query I rowsort
SELECT ALL col1 + - - col1 * - 79 * + col0 AS col2 FROM tab0
----
-144312
-7662
-95904

query I rowsort
SELECT DISTINCT col2 * + + ( + + 87 ) AS col1 FROM tab1
----
5133
5916
8352

query II rowsort
SELECT col0 * - col2, 23 + - 38 FROM tab2 WHERE ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3360
SELECT DISTINCT 23 DIV + COUNT( * ) + - SUM( ALL - + 77 ) FROM tab2
----
238

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT 23 / + COUNT ( * ) + - SUM ( ALL - + 77 ) FROM tab2
----
238

onlyif mysql # DIV for integer division: 
query I rowsort label-3361
SELECT - col2 DIV - 89 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3361
SELECT - col2 / - 89 AS col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - + 14 AS col1 FROM tab1 cor0
----
-14
-14
-14

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 84 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 97 + - col2 FROM tab1 AS cor0
----
-156
-165
-193

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 - - col1 + - 42 * + 66 col1 FROM tab0 AS cor0
----
-2633
-2693
-2713

query I rowsort
SELECT ALL - + ( col2 ) - - col1 AS col2 FROM tab2 cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT SUM( DISTINCT - 28 ) - + 64 FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-3367
SELECT SUM ( DISTINCT - 28 ) - + 64 FROM tab2
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3368
SELECT + CAST( NULL AS SIGNED ) - col1 * + ( - 58 ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3368
SELECT + CAST ( NULL AS INTEGER ) - col1 * + ( - 58 ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3369
SELECT - - MAX( ALL + 19 ), + 54 * - 78 DIV + 1 AS col2 FROM tab2 WHERE NOT - 33 IN ( col2, - 0, 54 * col0 )
----
19
-4212

skipif mysql # not compatible
query II rowsort label-3369
SELECT - - MAX ( ALL + 19 ), + 54 * - 78 / + 1 AS col2 FROM tab2 WHERE NOT - 33 IN ( col2, - 0, 54 * col0 )
----
19
-4212

query I rowsort
SELECT - col1 * + + 67 FROM tab2
----
-3417
-4489
-5159

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT + MIN( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3371
SELECT + MIN ( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
51

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 - + col0 * - - 24 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3373
SELECT 37 / MIN( ALL + CAST( NULL AS SIGNED ) ) + - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3373
SELECT 37 / MIN ( ALL + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 <> + - col0 * - col2 + + 4
----

query I rowsort
SELECT DISTINCT - - ( 91 ) AS col2 FROM tab0 AS cor0
----
91

query II rowsort
SELECT DISTINCT - col1, - col2 - col0 AS col0 FROM tab1 AS cor0
----
-14
-147
-47
-159
-5
-144

query I rowsort
SELECT DISTINCT - 3 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT ALL + + COUNT( DISTINCT + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL + + COUNT ( DISTINCT + col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT DISTINCT - + SUM( DISTINCT 77 ) FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT - + SUM ( DISTINCT 77 ) FROM tab1 AS cor0
----
-77

query I rowsort
SELECT ALL col2 * + 80 * + - 46 * - ( 82 ) FROM tab2
----
12070400
17502080
6940480

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 NOT BETWEEN + col1 AND - - 78
----

query I rowsort
SELECT DISTINCT - col0 * + 85 FROM tab0
----
-1275
-7395
-8245

query III rowsort
SELECT * FROM tab2 WHERE NOT + 12 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3384
SELECT ALL * FROM tab1 WHERE col2 * col2 - + - ( - col2 ) - - - CAST( - + col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3384
SELECT ALL * FROM tab1 WHERE col2 * col2 - + - ( - col2 ) - - - CAST ( - + col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - + ( - col2 ) * + + col2 + - col2 + col2 ) NOT BETWEEN ( NULL ) AND ( ( col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT ALL + COUNT( - col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL + COUNT ( - col2 ) AS col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3387
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > - - col0 + + - col1
----

skipif mysql # not compatible
query I rowsort label-3387
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > - - col0 + + - col1
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT BETWEEN ( NULL ) AND - + 74 - 75
----

query I rowsort
SELECT col0 + ( ( 81 ) ) * - 2 + 16 * col1 + col1 AS col0 FROM tab0
----
-48
1230
282

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + col0 + - 89 + - - ( - 21 ) + + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3391
SELECT ALL - ( CAST( + 46 AS SIGNED ) ) FROM tab2
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL - ( CAST ( + 46 AS INTEGER ) ) FROM tab2
----
-46
-46
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 75 col2 FROM tab0 AS cor0
----
-28
-65
24

query II rowsort
SELECT col0, - 29 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
15
-29
87
-29
97
-29

query I rowsort
SELECT ALL - col2 + - - col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
28
37
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 >= - 20
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col2 AS col1, 28 AS col0 FROM tab2 AS cor0
----
-23
28
-40
28
-58
28

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 16 IN ( col2 )
----

query II rowsort
SELECT col0 AS col0, + col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT MAX( DISTINCT 59 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3399
SELECT MAX ( DISTINCT 59 ) FROM tab1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3400
SELECT + col2 DIV - + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3400
SELECT + col2 / - + col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN col2 * + 58 + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( col2 ) col0, col0 AS col0 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT ALL - 84 - col1 AS col0 FROM tab1
----
-131
-89
-98

query I rowsort
SELECT DISTINCT col0 - - col0 * - - col0 FROM tab1
----
2652
7310
8372

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT DISTINCT + COUNT( DISTINCT - 45 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT + COUNT ( DISTINCT - 45 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT - col1 - - - col0 FROM tab2
----
-141
-142
-97

query III rowsort
SELECT * FROM tab2 WHERE 39 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 33 + 5 + + col0 FROM tab0 AS cor0
----
-13
59
69

query I rowsort
SELECT + 42 + + - col2 FROM tab1 AS cor0
----
-17
-26
-54

query I rowsort
SELECT - ( - col0 ) FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3411
SELECT - col0 DIV + col0 + 0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3411
SELECT - col0 / + col0 + 0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query II rowsort
SELECT ALL + 25, 63 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
25
63
25
63
25
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT ALL COUNT( - 91 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL COUNT ( - 91 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT DISTINCT - MAX( DISTINCT col2 ) AS col2 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT - MAX ( DISTINCT col2 ) AS col2 FROM tab0 cor0
----
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 97 * - col0 + - 97
----

query I rowsort
SELECT ALL + 36 * - - col2 FROM tab2 AS cor0
----
1440
2088
828

query I rowsort
SELECT + - col1 * - - 33 FROM tab1 AS cor0
----
-1551
-165
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT DISTINCT ( - 73 ) * - COUNT( DISTINCT - col2 ) AS col1 FROM tab2
----
219

skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT ( - 73 ) * - COUNT ( DISTINCT - col2 ) AS col1 FROM tab2
----
219

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 BETWEEN - 62 AND - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3420
SELECT DISTINCT + 65, - MAX( - col1 ) AS col0 FROM tab2
----
65
51

skipif mysql # not compatible
query II rowsort label-3420
SELECT DISTINCT + 65, - MAX ( - col1 ) AS col0 FROM tab2
----
65
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 + - 62 col0 FROM tab0
----
28
28
28

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 19 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT MIN( DISTINCT + - col0 ) + 75 * - 7 AS col2 FROM tab0 AS cor0
----
-622

skipif mysql # not compatible
query I rowsort label-3423
SELECT MIN ( DISTINCT + - col0 ) + 75 * - 7 AS col2 FROM tab0 AS cor0
----
-622

query I rowsort
SELECT 3 * 19 FROM tab1
----
57
57
57

query I rowsort
SELECT col1 * ( - + col1 ) FROM tab1
----
-196
-2209
-25

query II rowsort
SELECT + ( + col0 ), col1 AS col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT - 59 + - col1 FROM tab1 cor0
----
-106
-64
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT - COUNT( * ) + + - 48 - - - 2 AS col0 FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-3428
SELECT - COUNT ( * ) + + - 48 - - - 2 AS col0 FROM tab0 AS cor0
----
-53

query I rowsort
SELECT DISTINCT - 12 + - + col0 FROM tab2 AS cor0
----
-58
-76
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT - - COUNT( * ) + + - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3430
SELECT - - COUNT ( * ) + + - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + 98 + + + col0 AS col2 FROM tab2 AS cor0
----
144
162
173

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3432
SELECT * FROM tab1 WHERE + + col0 * CAST( - col2 AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3432
SELECT * FROM tab1 WHERE + + col0 * CAST ( - col2 AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 FROM tab0 WHERE col1 IS NOT NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 83 * col2 col0 FROM tab1 WHERE + 20 IS NOT NULL
----
-4897
-5644
-7968

query II rowsort
SELECT ALL col2 AS col0, + 89 FROM tab1
----
59
89
68
89
96
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 col1 FROM tab1, tab0 cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 * - 84 col0 FROM tab2
----
-215040
-365400
-88872

onlyif mysql # DIV for integer division: 
query I rowsort label-3438
SELECT 20 DIV - - 19 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3438
SELECT 20 / - - 19 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL + - 1 + + 93 AS col1 FROM tab2 AS cor0
----
92
92
92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 34 * - + col1 = col1 + col1
----

query I rowsort
SELECT ALL col1 + 15 AS col2 FROM tab0 cor0
----
16
36
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT COUNT( * ) * 53 FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-3442
SELECT COUNT ( * ) * 53 FROM tab0 AS cor0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT ALL + ( - + 30 ) * - COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL + ( - + 30 ) * - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
270

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT + 66 * - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - + 85 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query II rowsort
SELECT - + col0 * + + col1 AS col0, col2 AS col1 FROM tab1 AS cor0
----
-425
59
-4277
68
-714
96

query I rowsort
SELECT DISTINCT + 2 * + col0 AS col0 FROM tab0
----
174
194
30

query I rowsort
SELECT 22 * - - col2 AS col0 FROM tab0
----
1034
2178
220

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, 98 col0 FROM tab0
----
10
98
47
98
99
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3450
SELECT + CAST( NULL AS DECIMAL ) FROM tab1 WHERE NOT - CAST( + col2 AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query I rowsort label-3450
SELECT + CAST ( NULL AS REAL ) FROM tab1 WHERE NOT - CAST ( + col2 AS REAL ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3451
SELECT ALL CAST( NULL AS DECIMAL ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL CAST ( NULL AS REAL ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 18 AS col1 FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col0 * - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3454
SELECT DISTINCT + - col0 * col1 * CAST( + col0 AS SIGNED ) * - col2 + + 44 - + col2 * + col0 AS col1 FROM tab0 AS cor0
----
1588664
855914
921932

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT + - col0 * col1 * CAST ( + col0 AS INTEGER ) * - col2 + + 44 - + col2 * + col0 AS col1 FROM tab0 AS cor0
----
1588664
855914
921932

query I rowsort
SELECT ALL ( + col1 ) * - col0 + + - col1 * + - col0 + col2 AS col0 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT ALL 90 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT DISTINCT + 11 + COUNT( * ) AS col0 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-3457
SELECT DISTINCT + 11 + COUNT ( * ) AS col0 FROM tab0
----
14

query II rowsort
SELECT ALL col0 * - col0, 62 AS col0 FROM tab1
----
-2601
62
-7225
62
-8281
62

query I rowsort
SELECT col0 + - + col2 * - col2 + - col0 AS col0 FROM tab0
----
100
2209
9801

query I rowsort
SELECT DISTINCT + - 64 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-64

query II rowsort
SELECT DISTINCT 25, - col2 / + + col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - + col2 * + col2 + + - 23 + + 11 AS col1 FROM tab1 AS cor0
----
-3493
-4636
-9228

query I rowsort
SELECT + ( + 57 ) FROM tab1 cor0
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3464
SELECT DISTINCT - + col1 - + CAST( NULL AS SIGNED ) AS col0, ( 43 ) * CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
1720
NULL
2494
NULL
989

skipif mysql # not compatible
query II rowsort label-3464
SELECT DISTINCT - + col1 - + CAST ( NULL AS INTEGER ) AS col0, ( 43 ) * CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
1720
NULL
2494
NULL
989

onlyif mysql # DIV for integer division: 
query II rowsort label-3465
SELECT + 21 AS col1, col1 DIV + + 4 AS col2 FROM tab1 AS cor0
----
21
1
21
11
21
3

skipif mysql # not compatible
query II rowsort label-3465
SELECT + 21 AS col1, col1 / + + 4 AS col2 FROM tab1 AS cor0
----
21
1
21
11
21
3

query II rowsort
SELECT ALL + col1 + col0, col2 AS col0 FROM tab2 AS cor0
----
141
40
142
58
97
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT ALL SUM( + 91 ) * SUM( ALL col0 ) AS col1 FROM tab2
----
50505

skipif mysql # not compatible
query I rowsort label-3467
SELECT ALL SUM ( + 91 ) * SUM ( ALL col0 ) AS col1 FROM tab2
----
50505

onlyif mysql # DIV for integer division: 
query I rowsort label-3468
SELECT ALL col0 DIV - + col1 - col1 AS col1 FROM tab2
----
-51
-68
-77

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL col0 / - + col1 - col1 AS col1 FROM tab2
----
-51
-68
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3469
SELECT - 74 * - CAST( + + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1110
6438
7178

skipif mysql # not compatible
query I rowsort label-3469
SELECT - 74 * - CAST ( + + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1110
6438
7178

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT - COUNT( 39 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3470
SELECT - COUNT ( 39 ) FROM tab1
----
-3

query II rowsort
SELECT ALL + col0, 97 FROM tab1 cor0
----
51
97
85
97
91
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3472
SELECT 72 AS col0, COUNT( DISTINCT - + col0 ) AS col1 FROM tab1 AS cor0
----
72
3

skipif mysql # not compatible
query II rowsort label-3472
SELECT 72 AS col0, COUNT ( DISTINCT - + col0 ) AS col1 FROM tab1 AS cor0
----
72
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT 29 * + + COUNT( * ) * + 97 FROM tab2 AS cor0
----
8439

skipif mysql # not compatible
query I rowsort label-3473
SELECT 29 * + + COUNT ( * ) * + 97 FROM tab2 AS cor0
----
8439

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3474
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 38 col1 FROM tab1 cor0
----
1786
190
532

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL NOT BETWEEN 45 / + + col0 * 69 AND col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3477
SELECT DISTINCT + 38 * AVG ( - + CAST( 23 AS SIGNED ) ) AS col1, 8 FROM tab1 WHERE NOT ( NOT CAST( - + col0 AS SIGNED ) > NULL )
----
NULL
8

skipif mysql # not compatible
query II rowsort label-3477
SELECT DISTINCT + 38 * AVG ( - + CAST ( 23 AS INTEGER ) ) AS col1, 8 FROM tab1 WHERE NOT ( NOT CAST ( - + col0 AS INTEGER ) > NULL )
----
NULL
8

query II rowsort
SELECT DISTINCT 83 + col0, + col0 FROM tab2
----
129
46
147
64
158
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) + - + 29 + - col2 col0 FROM tab2 cor0
----
-109
-145
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3480
SELECT + - CAST( NULL AS SIGNED ) + - - col1 * + col1 * 29 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3480
SELECT + - CAST ( NULL AS INTEGER ) + - - col1 * + col1 * 29 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 FROM tab0 WHERE NULL < - col2
----

query I rowsort
SELECT - 53 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + 50 col1 FROM tab1 AS cor0
----
3
36
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 + - 23 col2 FROM tab1 AS cor0
----
-9
-9
-9

query I rowsort
SELECT DISTINCT - 8 + - + 26 + - col0 * col0 FROM tab2 AS cor0
----
-2150
-4130
-5659

query I rowsort
SELECT col0 * + col1 * - 47 * - + 45 + + col1 * + col1 FROM tab1 cor0
----
1510306
898900
9048064

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT DISTINCT + COUNT( * ) + 2 AS col2 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT + COUNT ( * ) + 2 AS col2 FROM tab0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT ALL + COUNT( * ) * + + 88 - ( + COUNT( * ) ) FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL + COUNT ( * ) * + + 88 - ( + COUNT ( * ) ) FROM tab2
----
261

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 27 ) / - - col0 = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3490
SELECT - col2 AS col0, 1 DIV col2 FROM tab1
----
-59
0
-68
0
-96
0

skipif mysql # not compatible
query II rowsort label-3490
SELECT - col2 AS col0, 1 / col2 FROM tab1
----
-59
0
-68
0
-96
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3491
SELECT 59, COUNT( * ) * COUNT( * ) + COUNT( * ) + COUNT( * ) AS col2 FROM tab1
----
59
15

skipif mysql # not compatible
query II rowsort label-3491
SELECT 59, COUNT ( * ) * COUNT ( * ) + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1
----
59
15

query I rowsort
SELECT + 68 * - col2 AS col0 FROM tab0
----
-3196
-6732
-680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + 26 ) AS col1, - 23 + - col2 col0 FROM tab1
----
26
-119
26
-82
26
-91

query III rowsort
SELECT * FROM tab1 WHERE NOT - 83 IN ( 85 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT COUNT( - col0 ) FROM tab1 WHERE NOT + 24 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3495
SELECT COUNT ( - col0 ) FROM tab1 WHERE NOT + 24 IS NOT NULL
----
0

query II rowsort
SELECT ALL + - 31 AS col2, + col2 FROM tab0 AS cor0 WHERE NULL = + col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT SUM( 7 ) AS col2 FROM tab0 WHERE NOT 86 IS NULL
----
21

skipif mysql # not compatible
query I rowsort label-3497
SELECT SUM ( 7 ) AS col2 FROM tab0 WHERE NOT 86 IS NULL
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 9 + col2 col1, - col1 AS col1 FROM tab2 AS cor0
----
14
-51
31
-77
49
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3499
SELECT col1 + col1 + col0 / - ( CAST( NULL AS SIGNED ) ) AS col1, 62 FROM tab1 AS cor0
----
NULL
62
NULL
62
NULL
62

skipif mysql # not compatible
query II rowsort label-3499
SELECT col1 + col1 + col0 / - ( CAST ( NULL AS INTEGER ) ) AS col1, 62 FROM tab1 AS cor0
----
NULL
62
NULL
62
NULL
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3500
SELECT + ( - + 61 ) FROM tab2 AS cor0 WHERE NOT - col1 + col2 + + 56 / col2 * - ( + + 66 ) + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3500
SELECT + ( - + 61 ) FROM tab2 AS cor0 WHERE NOT - col1 + col2 + + 56 / col2 * - ( + + 66 ) + - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT col0 + 77 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <> col0 - - - 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT + 40 * - COUNT( * ) col2 FROM tab2
----
-120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3503
SELECT + 40 * - COUNT ( * ) col2 FROM tab2
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT DISTINCT + 62 * + + COUNT( * ) FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT + 62 * + + COUNT ( * ) FROM tab2
----
186

query I rowsort
SELECT - 85 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 + - 6 FROM tab0 AS cor0
----
81
9
91

query I rowsort
SELECT + + 53 * 75 AS col1 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
3975
3975
3975

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL IN ( - col1, col0 * - - ( + 82 ) ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + + + col1 = + ( + col1 ) * + col1 + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 65 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT DISTINCT + COUNT( + col2 ) * + + 10 AS col2 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT + COUNT ( + col2 ) * + + 10 AS col2 FROM tab2 AS cor0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-3512
SELECT DISTINCT col2 DIV - + col1 - - col2 AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3512
SELECT DISTINCT col2 / - + col1 - - col2 AS col0 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT + 54 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 48 / + 64 AND + col1
----

query I rowsort
SELECT - 79 / - col1 FROM tab1 AS cor0 WHERE + 96 + - - 75 IN ( + + ( ( + + 91 ) ), - col2, - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 + - col1, col2 col0 FROM tab0 AS cor0
----
-108
10
-96
47
-98
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3516
SELECT + 93 - + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3516
SELECT + 93 - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col2 * 49 - - - col2 - + col0 AS col0 FROM tab2 AS cor0
----
1058
1856
2709

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT MAX( ALL - - col2 ) col2 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3518
SELECT MAX ( ALL - - col2 ) col2 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT DISTINCT - 12 * - COUNT( * ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-3519
SELECT DISTINCT - 12 * - COUNT ( * ) FROM tab0
----
36

query III rowsort
SELECT * FROM tab1 WHERE NOT - 95 IS NOT NULL
----

query I rowsort
SELECT ALL + 81 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= col2 + - + col1
----

query II rowsort
SELECT DISTINCT col2 AS col1, + 85 AS col2 FROM tab1
----
59
85
68
85
96
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT COUNT( DISTINCT - - col1 ) * + COUNT( * ) FROM tab1 WHERE NULL <> col2 AND NULL >= 83
----
0

skipif mysql # not compatible
query I rowsort label-3524
SELECT COUNT ( DISTINCT - - col1 ) * + COUNT ( * ) FROM tab1 WHERE NULL <> col2 AND NULL >= 83
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 57 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 9 + + - 5 AS col2 FROM tab0 AS cor0
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3527
SELECT col2, + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-3527
SELECT col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3528
SELECT DISTINCT col2 AS col1, 73 DIV - col1 FROM tab2 AS cor0
----
23
-1
40
0
58
-1

skipif mysql # not compatible
query II rowsort label-3528
SELECT DISTINCT col2 AS col1, 73 / - col1 FROM tab2 AS cor0
----
23
-1
40
0
58
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT DISTINCT + COUNT( * ) + + MAX( DISTINCT + col1 ) FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-3529
SELECT DISTINCT + COUNT ( * ) + + MAX ( DISTINCT + col1 ) FROM tab2 AS cor0
----
80

query I rowsort
SELECT - col0 + - - 47 AS col1 FROM tab1
----
-38
-4
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT - COUNT( + col0 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3531
SELECT - COUNT ( + col0 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3532
SELECT * FROM tab0 WHERE + CAST( - 30 AS DECIMAL ) + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3532
SELECT * FROM tab0 WHERE + CAST ( - 30 AS REAL ) + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3533
SELECT col0 DIV + col0 + 93 FROM tab1
----
94
94
94

skipif mysql # not compatible
query I rowsort label-3533
SELECT col0 / + col0 + 93 FROM tab1
----
94
94
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3534
SELECT ALL + + CAST( + 69 AS SIGNED ) + - col2 * + - ( + ( - - 33 ) ) * + - 95 FROM tab1 AS cor0
----
-184896
-213111
-300891

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL + + CAST ( + 69 AS INTEGER ) + - col2 * + - ( + ( - - 33 ) ) * + - 95 FROM tab1 AS cor0
----
-184896
-213111
-300891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 33 col0 FROM tab1 AS cor0
----
-33
-33
-33

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2 * col1
----

query II rowsort
SELECT DISTINCT + + col0, - col0 * col0 * + col0 + 93 + + col0 FROM tab0 AS cor0
----
15
-3267
87
-658323
97
-912483

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT + MIN( DISTINCT - 29 ) AS col2 FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-3539
SELECT + MIN ( DISTINCT - 29 ) AS col2 FROM tab2 AS cor0
----
-29

query I rowsort
SELECT ALL - col1 FROM tab2 cor0 WHERE NOT col0 * + ( + + col0 ) * + - col2 NOT BETWEEN NULL AND + col0
----

query III rowsort
SELECT ALL - col0 * + col1 * + 93 - col1 - ( col2 ) AS col1, 12 + - - col2 * - 36, + 53 AS col0 FROM tab2 AS cor0
----
9 values hashing to 94096b68b09b96662075d187756513e6

query I rowsort
SELECT ALL + ( - ( + col2 ) ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT 89 * - 6 - + - col0 AS col0 FROM tab2 AS cor0 WHERE col2 > + - col1
----
-459
-470
-488

onlyif mysql # aggregate syntax: 
query II rowsort label-3544
SELECT ALL + MIN( DISTINCT + col0 ) col0, + 21 * + 53 FROM tab2
----
46
1113

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3544
SELECT ALL + MIN ( DISTINCT + col0 ) col0, + 21 * + 53 FROM tab2
----
46
1113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 NOT IN ( 13 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3547
SELECT DISTINCT CAST( col2 AS SIGNED ), - col1 * - + 89 AS col1 FROM tab0 WHERE NOT 17 IS NULL
----
10
1869
47
7209
99
89

skipif mysql # not compatible
query II rowsort label-3547
SELECT DISTINCT CAST ( col2 AS INTEGER ), - col1 * - + 89 AS col1 FROM tab0 WHERE NOT 17 IS NULL
----
10
1869
47
7209
99
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT 93 * - - COUNT( * ) + COUNT( * ) FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-3548
SELECT 93 * - - COUNT ( * ) + COUNT ( * ) FROM tab2
----
282

query II rowsort
SELECT DISTINCT + col0, col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT + - 15 FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----

query II rowsort
SELECT + - 91 * col1, - col1 AS col0 FROM tab2 cor0 WHERE 80 - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 + + 64 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT + - col0 + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-4947
-5100
-6279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3555
SELECT - + CAST( + - 53 AS SIGNED ) * - SUM( DISTINCT + 24 ) FROM tab1 cor0
----
-1272

skipif mysql # not compatible
query I rowsort label-3555
SELECT - + CAST ( + - 53 AS INTEGER ) * - SUM ( DISTINCT + 24 ) FROM tab1 cor0
----
-1272

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE - col1 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT ALL + + COUNT( * ) AS col2 FROM tab0 WHERE NOT col2 * col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3557
SELECT ALL + + COUNT ( * ) AS col2 FROM tab0 WHERE NOT col2 * col0 IS NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3558
SELECT 70 DIV COUNT( * ) AS col0 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-3558
SELECT 70 / COUNT ( * ) AS col0 FROM tab1
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * - col0 col0, + col0 * + col0 FROM tab2
----
-2346
2116
-4928
4096
-5025
5625

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3561
SELECT DISTINCT col1 * + col0 FROM tab0 WHERE NOT + + CAST( NULL AS SIGNED ) IS NOT NULL
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT col1 * + col0 FROM tab0 WHERE NOT + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
1215
1827
97

query I rowsort
SELECT + 93 + - 8 AS col1 FROM tab0 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT ALL MAX( DISTINCT + col2 ) + ( - + MAX( - + 86 ) ) AS col1 FROM tab2 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL MAX ( DISTINCT + col2 ) + ( - + MAX ( - + 86 ) ) AS col1 FROM tab2 AS cor0
----
144

query I rowsort
SELECT - 13 * col1 FROM tab2
----
-1001
-663
-871

query I rowsort
SELECT - col2 * col1 + - - 31 AS col0 FROM tab2 WHERE NULL IS NULL
----
-1142
-3049
-3855

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 59 * ( col2 ) col0, col0 AS col1 FROM tab2 AS cor0
----
1357
46
2360
64
3422
75

onlyif mysql # DIV for integer division: 
query II rowsort label-3568
SELECT ALL - col2 * + - col1, - col0 DIV 36 AS col1 FROM tab1 AS cor0
----
1344
-1
295
-2
3196
-2

skipif mysql # not compatible
query II rowsort label-3568
SELECT ALL - col2 * + - col1, - col0 / 36 AS col1 FROM tab1 AS cor0
----
1344
-1
295
-2
3196
-2

query I rowsort
SELECT DISTINCT + - col2 * - + col2 FROM tab1 AS cor0
----
3481
4624
9216

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 53 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col1 * - + 8 + + + col1 - - 14 NOT BETWEEN NULL AND 94
----

query II rowsort
SELECT - col2, - col0 + + 89 AS col0 FROM tab0
----
-10
2
-47
74
-99
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT ALL COUNT( ALL + - col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL COUNT ( ALL + - col1 ) AS col0 FROM tab2
----
3

query II rowsort
SELECT DISTINCT - 51 AS col2, - ( col2 ) AS col0 FROM tab2
----
-51
-23
-51
-40
-51
-58

query II rowsort
SELECT + 79, col1 + - + col1 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
79
0
79
0
79
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3576
SELECT col0 DIV + - col2 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-3576
SELECT col0 / + - col2 FROM tab0
----
-8
0
0

query II rowsort
SELECT ALL + 59, + col2 * - - 2 AS col1 FROM tab1
----
59
118
59
136
59
192

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3578
SELECT ALL * FROM tab1 WHERE - col2 BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3578
SELECT ALL * FROM tab1 WHERE - col2 BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT ALL MAX( ALL - - col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL MAX ( ALL - - col1 ) AS col1 FROM tab0
----
81

query I rowsort
SELECT ALL 6 * + + 35 FROM tab2
----
210
210
210

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT DISTINCT + + 73 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-3581
SELECT DISTINCT + + 73 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
219

query I rowsort
SELECT + + col2 + - + 67 FROM tab0 AS cor0
----
-20
-57
32

query II rowsort
SELECT DISTINCT col2 AS col2, col0 / + + 70 AS col0 FROM tab2 WHERE NULL >= - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-72

query III rowsort
SELECT * FROM tab1 WHERE ( ( + 64 ) <= NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( + col1 ) * - - col0 + - + 95 + + col0 col0, 56 FROM tab0
----
-1295
56
-1835
56
-95
56

onlyif mysql # DIV for integer division: 
query I rowsort label-3587
SELECT + 16 DIV 66 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3587
SELECT + 16 / 66 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + col0 + + 25 AS col1 FROM tab0 AS cor0
----
112
122
40

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE 6 + - - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3590
SELECT ALL 45 * + col1 + - - col2 + - col0 / - - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3590
SELECT ALL 45 * + col1 + - - col2 + - col0 / - - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 33 + - col2 AS col2, - col2 AS col0 FROM tab2 AS cor0 WHERE 49 IS NOT NULL
----
-25
-58
-7
-40
10
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT COUNT( DISTINCT 14 ) + - 40 + - - 61 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-3592
SELECT COUNT ( DISTINCT 14 ) + - 40 + - - 61 FROM tab0 AS cor0
----
22

query I rowsort
SELECT DISTINCT + col0 - - ( + + 52 ) FROM tab2
----
116
127
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 + + 29 IS NOT NULL
----

query I rowsort
SELECT 24 + - col0 + + - 86 * + + 18 FROM tab0
----
-1539
-1611
-1621

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col2 * + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT - MIN( DISTINCT + 33 ) * 55 FROM tab0
----
-1815

skipif mysql # not compatible
query I rowsort label-3597
SELECT - MIN ( DISTINCT + 33 ) * 55 FROM tab0
----
-1815

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 86 = + col0 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3599
SELECT * FROM tab1 AS cor0 WHERE + col1 > + - col1 * - ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3599
SELECT * FROM tab1 AS cor0 WHERE + col1 > + - col1 * - ( + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 21 NOT IN ( + col1, - col0, - col1 )
----
15
81
47
97
1
99

query I rowsort
SELECT DISTINCT col1 + 7 FROM tab2 AS cor0
----
58
74
84

onlyif mysql # aggregate syntax: 
query II rowsort label-3602
SELECT - 87, + COUNT( * ) col2 FROM tab0
----
-87
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3602
SELECT - 87, + COUNT ( * ) col2 FROM tab0
----
-87
3

query II rowsort
SELECT ALL + col2 AS col0, - col0 AS col2 FROM tab0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-3604
SELECT + COUNT( * ), COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-3604
SELECT + COUNT ( * ), COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT + COUNT( * ) * + 46 FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-3605
SELECT + COUNT ( * ) * + 46 FROM tab0
----
138

query I rowsort
SELECT DISTINCT 91 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
91

query II rowsort
SELECT col1, 29 FROM tab0
----
1
29
21
29
81
29

query I rowsort
SELECT - 40 * - 94 * - col1 AS col1 FROM tab1 AS cor0
----
-176720
-18800
-52640

query I rowsort
SELECT - - 19 * col2 AS col1 FROM tab0 cor0
----
1881
190
893

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT 39 * + + ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3610
SELECT 39 * + + ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( + 80 * col1 + - + col1 * - col1 + - col1, col2, - + ( 10 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT DISTINCT + SUM( ALL 90 ) AS col0 FROM tab0, tab2 cor0
----
810

skipif mysql # not compatible
query I rowsort label-3612
SELECT DISTINCT + SUM ( ALL 90 ) AS col0 FROM tab0, tab2 cor0
----
810

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3613
SELECT + MIN( - CAST( NULL AS DECIMAL ) ) + + 11 FROM tab2, tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3613
SELECT + MIN ( - CAST ( NULL AS REAL ) ) + + 11 FROM tab2, tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT - MAX( DISTINCT - 27 ) FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3614
SELECT - MAX ( DISTINCT - 27 ) FROM tab1 AS cor0
----
27

query I rowsort
SELECT DISTINCT + + 2 * - 12 AS col2 FROM tab0 AS cor0
----
-24

query I rowsort
SELECT - col2 * + 77 * col1 + + + col1 FROM tab2 WHERE NULL > + col2
----

query I rowsort
SELECT - col1 + - 70 FROM tab0
----
-151
-71
-91

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 II rowsort
SELECT ALL col1 * + 62 + - col0, + col1 FROM tab0 cor0
----
-35
1
1215
21
5007
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 12 + + - col0 * - + 80 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT DISTINCT + MIN( DISTINCT col0 ) + ( - COUNT( DISTINCT + col2 ) ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3621
SELECT DISTINCT + MIN ( DISTINCT col0 ) + ( - COUNT ( DISTINCT + col2 ) ) FROM tab0 AS cor0
----
12

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 83 ) < ( NULL )
----

query I rowsort
SELECT ALL + + 74 + - - col2 * + col2 AS col0 FROM tab2 AS cor0
----
1674
3438
603

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT DISTINCT + ( + 56 ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT + ( + 56 ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT + ( + COUNT( ALL - col2 ) ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3625
SELECT + ( + COUNT ( ALL - col2 ) ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3626
SELECT col0 * col1 DIV - + col1 AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3626
SELECT col0 * col1 / - + col1 AS col1 FROM tab2
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-3627
SELECT - ( 8 ) DIV - - col2 - col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3627
SELECT - ( 8 ) / - - col2 - col1 FROM tab0
----
-1
-21
-81

query II rowsort
SELECT DISTINCT + 40 - col1 AS col2, - ( col1 ) FROM tab2
----
-11
-51
-27
-67
-37
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3629
SELECT ALL col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3630
SELECT ALL COUNT( * ) DIV + + COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL COUNT ( * ) / + + COUNT ( * ) FROM tab0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN col2 / - col2 AND NULL
----

query II rowsort
SELECT DISTINCT - - col0 * - 50 AS col0, col0 FROM tab2 cor0
----
-2300
46
-3200
64
-3750
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3633
SELECT + - 87 DIV 34 + 48 AS col0 FROM tab1 AS cor0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-3633
SELECT + - 87 / 34 + 48 AS col0 FROM tab1 AS cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT SUM( + - 29 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-261

skipif mysql # not compatible
query I rowsort label-3634
SELECT SUM ( + - 29 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-261

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 / - - col2 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3636
SELECT 33 * + MAX( DISTINCT col2 ) + + COUNT( * ) + - - ( + ( + + AVG ( + CAST( NULL AS SIGNED ) ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3636
SELECT 33 * + MAX ( DISTINCT col2 ) + + COUNT ( * ) + - - ( + ( + + AVG ( + CAST ( NULL AS INTEGER ) ) ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT + SUM( ALL col0 ) * - 43 FROM tab1 cor0
----
-9761

skipif mysql # not compatible
query I rowsort label-3637
SELECT + SUM ( ALL col0 ) * - 43 FROM tab1 cor0
----
-9761

query I rowsort
SELECT + - 84 AS col0 FROM tab0 cor0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT DISTINCT + MAX( ALL - 8 ) AS col1 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT + MAX ( ALL - 8 ) AS col1 FROM tab1 AS cor0
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-3640
SELECT 20 DIV - + 3 + col1 AS col0 FROM tab2 AS cor0
----
45
61
71

skipif mysql # not compatible
query I rowsort label-3640
SELECT 20 / - + 3 + col1 AS col0 FROM tab2 AS cor0
----
45
61
71

query I rowsort
SELECT + col0 * - col0 * - col1 + - col0 AS col1 FROM tab0 AS cor0
----
158862
18210
9312

query II rowsort
SELECT col2, - 82 FROM tab2
----
23
-82
40
-82
58
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-3643
SELECT DISTINCT - COUNT( * ), MAX( - + col0 ) * + COUNT( * ) AS col0 FROM tab1
----
-3
-153

skipif mysql # not compatible
query II rowsort label-3643
SELECT DISTINCT - COUNT ( * ), MAX ( - + col0 ) * + COUNT ( * ) AS col0 FROM tab1
----
-3
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3644
SELECT DISTINCT + CAST( + - col0 AS SIGNED ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT + CAST ( + - col0 AS INTEGER ) FROM tab2
----
-46
-64
-75

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 89 + - col2 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT + 64 + COUNT( * ) AS col2 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-3647
SELECT + 64 + COUNT ( * ) AS col2 FROM tab1
----
67

query I rowsort
SELECT - 38 + + 22 + - + col1 FROM tab1 AS cor0 WHERE 80 - col1 * + + 18 IS NOT NULL
----
-21
-30
-63

query II rowsort
SELECT + - 29 * - col2 * col1 + + col1 AS col0, ( + col2 ) * + 94 AS col1 FROM tab2 AS cor0
----
112761
5452
34068
2162
89397
3760

query I rowsort
SELECT 12 - - - col2 + + 37 FROM tab2 WHERE - col2 IS NOT NULL
----
-9
26
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3651
SELECT 74 DIV - col0 - col0 * - ( col0 ) * + 26 * + CAST( + + col1 AS SIGNED ) AS col2 FROM tab0
----
244634
4132674
473846

skipif mysql # not compatible
query I rowsort label-3651
SELECT 74 / - col0 - col0 * - ( col0 ) * + 26 * + CAST ( + + col1 AS INTEGER ) AS col2 FROM tab0
----
244634
4132674
473846

query I rowsort
SELECT DISTINCT - 53 + col1 + col2 * col1 * col1 AS col2 FROM tab1 AS cor0
----
1427
150206
18777

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3654
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE + 51 < - col2
----
0

skipif mysql # not compatible
query I rowsort label-3654
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE + 51 < - col2
----
0

query I rowsort
SELECT ALL + 64 - + col0 * + col1 FROM tab2
----
-2282
-4864
-4961

query I rowsort
SELECT col0 * + + 85 FROM tab2
----
3910
5440
6375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3657
SELECT DISTINCT - ( + - 31 ) DIV - - 25 + - MAX( - - col1 ) FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-3657
SELECT DISTINCT - ( + - 31 ) / - - 25 + - MAX ( - - col1 ) FROM tab1
----
-46

query I rowsort
SELECT ALL - - 99 + + 1 FROM tab0 WHERE NOT col0 * + 54 * col2 IS NULL
----
100
100
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT ALL + COUNT( * ) * + + ( + COUNT( * ) ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL + COUNT ( * ) * + + ( + COUNT ( * ) ) FROM tab1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3660
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) DIV ( + + MAX( ALL ( - col0 ) ) ) * 35 * - 31 col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3660
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) / ( + + MAX ( ALL ( - col0 ) ) ) * 35 * - 31 col1 FROM tab2 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col2 * + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 <= ( NULL )
----

query I rowsort
SELECT col1 + 59 AS col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND + 69
----

query I rowsort
SELECT ALL 50 FROM tab0 WHERE NOT ( + col1 ) BETWEEN ( col0 / - col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT DISTINCT SUM( ALL + ( 27 ) ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3665
SELECT DISTINCT SUM ( ALL + ( 27 ) ) AS col1 FROM tab0
----
81

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 - + col0 = - 8
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE - col0 <= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT SUM( DISTINCT - 64 ) FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-3668
SELECT SUM ( DISTINCT - 64 ) FROM tab2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT MAX( ALL + 77 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3669
SELECT MAX ( ALL + 77 ) AS col0 FROM tab2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3670
SELECT ALL - col2 - col1 AS col2 FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) * + ( col1 ) ) IS NOT NULL
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-3670
SELECT ALL - col2 - col1 AS col2 FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) * + ( col1 ) ) IS NOT NULL
----
-117
-125
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3671
SELECT DISTINCT - CAST( + col2 AS SIGNED ) col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3671
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) col2 FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3672
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT DISTINCT SUM( ALL 1 ) AS col1 FROM tab1 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3673
SELECT DISTINCT SUM ( ALL 1 ) AS col1 FROM tab1 WHERE NOT NULL = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3674
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT 30 + 89 * + col2 FROM tab0
----
4213
8841
920

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( 35 + 73 )
----

query I rowsort
SELECT + 24 + + col1 * + 52 AS col0 FROM tab2
----
2676
3508
4028

query I rowsort
SELECT ALL col1 * 71 + + 35 * + col2 AS col2 FROM tab1
----
2420
4354
5717

onlyif mysql # DIV for integer division: 
query I rowsort label-3679
SELECT DISTINCT + ( col1 ) + - 63 DIV col0 AS col0 FROM tab1
----
13
47
5

skipif mysql # not compatible
query I rowsort label-3679
SELECT DISTINCT + ( col1 ) + - 63 / col0 AS col0 FROM tab1
----
13
47
5

query I rowsort
SELECT DISTINCT 35 * + col1 FROM tab0 WHERE col2 IS NOT NULL
----
2835
35
735

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3681
SELECT - MIN( - 40 ) DIV + COUNT( * ) FROM tab1 WHERE NOT col2 + CAST( NULL AS DECIMAL ) * + 54 IS NOT NULL
----
13

skipif mysql # not compatible
query I rowsort label-3681
SELECT - MIN ( - 40 ) / + COUNT ( * ) FROM tab1 WHERE NOT col2 + CAST ( NULL AS REAL ) * + 54 IS NOT NULL
----
13

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 + col2 >= + 93
----

query I rowsort
SELECT - col1 * col1 + 83 * col2 FROM tab1
----
3435
4872
7772

query I rowsort
SELECT - 96 * 58 + - col2 AS col1 FROM tab1
----
-5627
-5636
-5664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3685
SELECT - ( CAST( - col0 AS SIGNED ) ) * 66 + - col0 FROM tab2
----
2990
4160
4875

skipif mysql # not compatible
query I rowsort label-3685
SELECT - ( CAST ( - col0 AS INTEGER ) ) * 66 + - col0 FROM tab2
----
2990
4160
4875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 col1 FROM tab0 WHERE NOT ( col2 * col0 ) = - col1 + 32
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT ALL COUNT( * ) * - 96 FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL COUNT ( * ) * - 96 FROM tab2
----
-288

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col0 + col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - 6 / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT ALL - MIN( + 19 ) + 6 * 74 FROM tab0 cor0
----
425

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL - MIN ( + 19 ) + 6 * 74 FROM tab0 cor0
----
425

query I rowsort
SELECT 43 + + 37 FROM tab1 AS cor0
----
80
80
80

query I rowsort
SELECT ALL - col0 * + 92 - + col2 AS col0 FROM tab1 AS cor0
----
-4788
-7879
-8440

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col1 * - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT COUNT( * ) * + COUNT( * ) + + MAX( ALL - col2 - + 56 ) AS col1 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-3694
SELECT COUNT ( * ) * + COUNT ( * ) + + MAX ( ALL - col2 - + 56 ) AS col1 FROM tab0
----
-57

query III rowsort
SELECT * FROM tab2 WHERE + col0 - - 93 IN ( - 72 - + col1 )
----

query I rowsort
SELECT ALL - 75 AS col2 FROM tab2 WHERE NOT ( + 27 ) IS NOT NULL
----

query I rowsort
SELECT + 96 FROM tab1 AS cor0 WHERE - col0 * col0 <= - ( - col2 ) * ( - col0 )
----
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3698
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 * + 48 + + CAST( NULL AS SIGNED ) * + 33 )
----

skipif mysql # not compatible
query III rowsort label-3698
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 * + 48 + + CAST ( NULL AS INTEGER ) * + 33 )
----

query I rowsort
SELECT ALL + 23 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT ALL COUNT( * ) + + 86 * - COUNT( * ) FROM tab1 cor0
----
-255

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL COUNT ( * ) + + 86 * - COUNT ( * ) FROM tab1 cor0
----
-255

onlyif mysql # DIV for integer division: 
query I rowsort label-3701
SELECT - col0 DIV 52 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3701
SELECT - col0 / 52 FROM tab2 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col1 col1 FROM tab2 cor0
----
141
142
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 >= col2
----

query I rowsort
SELECT + + 93 - - col1 FROM tab0 AS cor0
----
114
174
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3705
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * 22 - + 79 / col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * 22 - + 79 / col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + 27 col2 FROM tab1
----
32
41
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3707
SELECT CAST( + 6 AS SIGNED ) FROM tab2
----
6
6
6

skipif mysql # not compatible
query I rowsort label-3707
SELECT CAST ( + 6 AS INTEGER ) FROM tab2
----
6
6
6

query I rowsort
SELECT + col1 * 60 * - col2 FROM tab1
----
-17700
-191760
-80640

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 86 ) * - 92 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3710
SELECT ALL - ( + + COUNT( * ) ) DIV COUNT( * ) col2 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3710
SELECT ALL - ( + + COUNT ( * ) ) / COUNT ( * ) col2 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT ( - 49 ) FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT ALL MAX( DISTINCT + 6 ) col2 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3712
SELECT ALL MAX ( DISTINCT + 6 ) col2 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT ALL SUM( DISTINCT - 18 ) AS col2 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-3713
SELECT ALL SUM ( DISTINCT - 18 ) AS col2 FROM tab2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT 66 * COUNT( ALL - col2 ) AS col2 FROM tab2 WHERE NOT col0 - + ( col1 ) IS NULL
----
198

skipif mysql # not compatible
query I rowsort label-3714
SELECT 66 * COUNT ( ALL - col2 ) AS col2 FROM tab2 WHERE NOT col0 - + ( col1 ) IS NULL
----
198

query I rowsort
SELECT ( col0 ) FROM tab0 WHERE NOT NULL <= - col1
----

query I rowsort
SELECT 33 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT ALL - ( ( - 21 ) ) * - COUNT( * ) FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL - ( ( - 21 ) ) * - COUNT ( * ) FROM tab0 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT DISTINCT - + SUM( DISTINCT - 63 ) * 94 AS col1 FROM tab0 AS cor0
----
5922

skipif mysql # not compatible
query I rowsort label-3718
SELECT DISTINCT - + SUM ( DISTINCT - 63 ) * 94 AS col1 FROM tab0 AS cor0
----
5922

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * col1 <= + 58
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( col0 ) + 28 BETWEEN ( - col1 ) AND + col1 * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3721
SELECT ALL - col1 DIV + - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL - col1 / + - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3722
SELECT + col0 DIV + 55 + 64 AS col1 FROM tab2 AS cor0
----
64
65
65

skipif mysql # not compatible
query I rowsort label-3722
SELECT + col0 / + 55 + 64 AS col1 FROM tab2 AS cor0
----
64
65
65

query I rowsort
SELECT ALL - col2 * - - col2 - - col0 * 21 FROM tab2 AS cor0
----
-1789
-256
437

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) col0 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 / - col1 + - col1 IS NOT NULL
----

query II rowsort
SELECT - col0 AS col2, - 65 FROM tab0
----
-15
-65
-87
-65
-97
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT DISTINCT COUNT( * ) * COUNT( * ) * - 84 AS col0 FROM tab0
----
-756

skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * - 84 AS col0 FROM tab0
----
-756

query I rowsort
SELECT ALL - 16 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 42 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT COUNT( * ) - COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3730
SELECT COUNT ( * ) - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) > ( NULL )
----
0

query I rowsort
SELECT DISTINCT - 28 * col2 * - - col2 FROM tab1 AS cor0
----
-129472
-258048
-97468

query I rowsort
SELECT ALL ( - col1 ) AS col1 FROM tab1 cor0 WHERE NULL <> NULL
----

query II rowsort
SELECT - + 63 AS col0, col1 * + col2 + + 36 * + 2 AS col1 FROM tab0 AS cor0
----
-63
171
-63
282
-63
3879

query I rowsort
SELECT col1 * - - 60 FROM tab2 AS cor0
----
3060
4020
4620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab1 AS cor0 WHERE col0 * - col2 BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT 27 * - col0 * 2 - + col0 + - 10 FROM tab0 AS cor0
----
-4795
-5345
-835

query I rowsort
SELECT ( col1 ) * - 15 FROM tab1 AS cor0
----
-210
-705
-75

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

query II rowsort
SELECT col2, + 57 + - - col0 + col0 AS col2 FROM tab2 AS cor0
----
23
149
40
185
58
207

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT - COUNT( ALL ( col0 ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3740
SELECT - COUNT ( ALL ( col0 ) ) AS col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 53 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3742
SELECT DISTINCT + 19 DIV - col1 + - + col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT + 19 / - col1 + - + col2 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( col0 ) BETWEEN + col2 AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( - + col2 )
----

query I rowsort
SELECT DISTINCT + col2 * + col0 + - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3746
SELECT DISTINCT - + COUNT( * ) DIV + 6 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT - + COUNT ( * ) / + 6 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3747
SELECT * FROM tab0 WHERE + + CAST( NULL AS SIGNED ) * 88 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3747
SELECT * FROM tab0 WHERE + + CAST ( NULL AS INTEGER ) * 88 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3748
SELECT - col1 * + CAST( NULL AS SIGNED ) * col0 * - - col1 * + col2 + 2 * col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT - col1 * + CAST ( NULL AS INTEGER ) * col0 * - - col1 * + col2 + 2 * col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - - 80 + + 32 + - col2 col2 FROM tab1
----
1056
3724
373

query I rowsort
SELECT - col0 + + + col2 * - + 38 AS col0 FROM tab0 AS cor0
----
-1801
-3859
-467

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * - 60 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT ALL COUNT( * ) + - 89 + - + 21 FROM tab1 AS cor0
----
-107

skipif mysql # not compatible
query I rowsort label-3753
SELECT ALL COUNT ( * ) + - 89 + - + 21 FROM tab1 AS cor0
----
-107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3754
SELECT + 89 * + COUNT( * ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3754
SELECT + 89 * + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT ALL + 4 * - MIN( ALL col2 ) + - 28 FROM tab2 WHERE NOT + - 56 IS NULL
----
-120

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL + 4 * - MIN ( ALL col2 ) + - 28 FROM tab2 WHERE NOT + - 56 IS NULL
----
-120

query I rowsort
SELECT + col1 * + - col2 * - 28 - - - col0 * + 77 + + col2 AS col2 FROM tab0
----
-4598
-809
105488

onlyif mysql # DIV for integer division: 
query I rowsort label-3757
SELECT col1 - + - 88 DIV + + col0 + + ( + col0 ) FROM tab1
----
138
66
91

skipif mysql # not compatible
query I rowsort label-3757
SELECT col1 - + - 88 / + + col0 + + ( + col0 ) FROM tab1
----
138
66
91

query I rowsort
SELECT DISTINCT + ( 75 ) AS col1 FROM tab2
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + - 1 col0 FROM tab1 AS cor0
----
58
67
95

query I rowsort
SELECT ( - col0 ) + ( - 1 ) AS col1 FROM tab1 cor0
----
-52
-86
-92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + 11 )
----

query I rowsort
SELECT ALL col2 * - - col0 + + 47 - - col0 * + col2 + col1 FROM tab2 AS cor0
----
2214
5244
8814

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 col1, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT ALL COUNT( - col2 ) * - 67 + 11 * - 32 AS col1 FROM tab0 AS cor0 WHERE 82 * + 97 + + + col2 IS NOT NULL
----
-553

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL COUNT ( - col2 ) * - 67 + 11 * - 32 AS col1 FROM tab0 AS cor0 WHERE 82 * + 97 + + + col2 IS NOT NULL
----
-553

query III rowsort
SELECT * FROM tab2 WHERE NOT - 26 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-21
-54
-82

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 / - + col2 ) > col1 * - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3768
SELECT DISTINCT + COUNT( * ) FROM tab1, tab1 cor0 WHERE NOT + - CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3768
SELECT DISTINCT + COUNT ( * ) FROM tab1, tab1 cor0 WHERE NOT + - CAST ( NULL AS INTEGER ) IS NULL
----
0

query II rowsort
SELECT + col0, - 6 * - 78 * + ( + 35 ) * + col0 + - col2 FROM tab1
----
51
835284
85
1392241
91
1490512

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE + 81 <> NULL
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT ( 94 * 87 + 43 + - col1 < 20 * - col0 )
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3772
SELECT DISTINCT col1 * + 4, - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
204
NULL
268
NULL
308
NULL

skipif mysql # not compatible
query II rowsort label-3772
SELECT DISTINCT col1 * + 4, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
204
NULL
268
NULL
308
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 + + - col0 * + - ( col2 ) col1 FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT + + MAX( DISTINCT 64 ) AS col1 FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-3774
SELECT + + MAX ( DISTINCT 64 ) AS col1 FROM tab2 AS cor0
----
64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 1 + - col0 BETWEEN ( NULL ) AND col1 * + 50 + + col2 + 7 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3776
SELECT + col2 + - 23 - 6 + - col2 + ( col2 ) + + + 59 * - CAST( NULL AS SIGNED ) * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3776
SELECT + col2 + - 23 - 6 + - col2 + ( col2 ) + + + 59 * - CAST ( NULL AS INTEGER ) * col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE 95 IS NULL
----

query I rowsort
SELECT DISTINCT + + 50 + - - col1 AS col2 FROM tab2 AS cor0
----
101
117
127

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL IN ( ( 36 ) ) )
----

query I rowsort
SELECT ALL ( - 37 ) + - col0 FROM tab0 AS cor0
----
-124
-134
-52

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE - col0 - - 2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3782
SELECT - 43 AS col1, ( + MAX( DISTINCT + col1 ) ) FROM tab2
----
-43
77

skipif mysql # not compatible
query II rowsort label-3782
SELECT - 43 AS col1, ( + MAX ( DISTINCT + col1 ) ) FROM tab2
----
-43
77

query I rowsort
SELECT - col1 * - 63 * + + col1 FROM tab2 WHERE NULL IS NULL
----
163863
282807
373527

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3784
SELECT ALL + CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3784
SELECT ALL + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - 27 FROM tab1
----
-1377
-2295
-2457

query I rowsort
SELECT DISTINCT 97 + col2 - - - col0 FROM tab2
----
73
74
80

query I rowsort
SELECT DISTINCT + 35 * - 85 FROM tab0
----
-2975

query I rowsort
SELECT 25 * + 83 AS col2 FROM tab2
----
2075
2075
2075

query I rowsort
SELECT ALL + col0 * 30 AS col2 FROM tab0
----
2610
2910
450

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT DISTINCT 69 * + COUNT( * ) FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-3790
SELECT DISTINCT 69 * + COUNT ( * ) FROM tab2
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT ALL - 68 + COUNT( * ) FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL - 68 + COUNT ( * ) FROM tab1 AS cor0
----
-65

query I rowsort
SELECT col2 + - 87 AS col0 FROM tab0 AS cor0
----
-40
-77
12

query I rowsort
SELECT DISTINCT 14 - - - col2 AS col0 FROM tab0
----
-33
-85
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3794
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - - 76 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - - 76 FROM tab0
----
NULL

query I rowsort
SELECT ALL 49 * - - 30 AS col1 FROM tab1
----
1470
1470
1470

query I rowsort
SELECT - 10 FROM tab2 AS cor0 WHERE NOT col0 * ( + - col2 ) BETWEEN - col0 AND - col0 * - + 73
----
-10
-10
-10

query II rowsort
SELECT + col0 * + - ( col2 ) - + col2 AS col0, + 98 * + 55 AS col0 FROM tab2 AS cor0
----
-1081
5390
-2600
5390
-4408
5390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 90 col0, col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
90
10
90
47
90
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > 72 + + + col1 * col1 - - - col1
----

query I rowsort
SELECT ALL + + 4 AS col0 FROM tab0 AS cor0
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3801
SELECT + + 84 / - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3801
SELECT + + 84 / - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 * - col1 * col2 col2 FROM tab0
----
-18060
-327402
-8514

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT NULL > - - col1
----

query I rowsort
SELECT DISTINCT + ( + - col1 ) AS col1 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col0 * col2 + + 73 BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL col2 AS col0, col1 FROM tab0 WHERE ( col1 * col0 ) NOT BETWEEN + col1 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3807
SELECT ALL + 42 col0, - 30 DIV 81 FROM tab1
----
42
0
42
0
42
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3807
SELECT ALL + 42 col0, - 30 / 81 FROM tab1
----
42
0
42
0
42
0

query II rowsort
SELECT ALL 62 AS col2, col2 FROM tab0
----
62
10
62
47
62
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 64 IN ( + col1 * + 67 * - 89 + - col2, - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 38 <= ( col2 )
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT ALL - 5 + - COUNT( * ) FROM tab1 WHERE + ( ( - 76 ) ) IS NULL
----
-5

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL - 5 + - COUNT ( * ) FROM tab1 WHERE + ( ( - 76 ) ) IS NULL
----
-5

query I rowsort
SELECT + col2 + col1 FROM tab1 WHERE NOT - col0 BETWEEN col2 AND + - col0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT ALL + MAX( + + col1 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL + MAX ( + + col1 ) FROM tab2 cor0
----
77

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) = + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT + COUNT( * ) * 33 AS col2 FROM tab2 cor0
----
99

skipif mysql # not compatible
query I rowsort label-3815
SELECT + COUNT ( * ) * 33 AS col2 FROM tab2 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT ALL + COUNT( 53 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL + COUNT ( 53 ) AS col0 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - - 22 col0 FROM tab0 AS cor0
----
-1782
-22
-462

onlyif mysql # DIV for integer division: 
query I rowsort label-3818
SELECT 49 DIV 58 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3818
SELECT 49 / 58 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 92 * + col0 FROM tab1
----
-4692
-7820
-8372

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT + col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 14 col2, + 33 + + 91 AS col2 FROM tab0
----
14
124
14
124
14
124

query I rowsort
SELECT - 94 * ( - 26 ) FROM tab0
----
2444
2444
2444

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE - 35 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 62 * - col2 col0 FROM tab1 AS cor0
----
-3663
-4263
-5966

query I rowsort
SELECT ALL + - col2 + - - col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * col2 + - 80 FROM tab0 AS cor0 WHERE col1 >= NULL
----

query II rowsort
SELECT - - col0 AS col2, + col0 AS col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT + 95 + ( - 21 ) + + col2 FROM tab2 AS cor0
----
114
132
97

query II rowsort
SELECT DISTINCT + col2 AS col0, 7 FROM tab1 AS cor0
----
59
7
68
7
96
7

query I rowsort
SELECT col1 + 68 + - col2 * - + 65 AS col1 FROM tab1 cor0
----
3908
4535
6322

query III rowsort
SELECT * FROM tab2 WHERE ( NOT NULL > + col0 / + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3832
SELECT DISTINCT - ( 95 ) * - + col2 - + 31 DIV - ( col0 ) FROM tab2
----
2185
3800
5510

skipif mysql # not compatible
query I rowsort label-3832
SELECT DISTINCT - ( 95 ) * - + col2 - + 31 / - ( col0 ) FROM tab2
----
2185
3800
5510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3833
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * 79 * 97 - + - col1 FROM tab1
----
107296
360208
38320

skipif mysql # not compatible
query I rowsort label-3833
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * 79 * 97 - + - col1 FROM tab1
----
107296
360208
38320

query I rowsort
SELECT + + 28 AS col1 FROM tab2 WHERE + col2 IS NOT NULL
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND + col0
----

query I rowsort
SELECT - col0 * - + col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query II rowsort label-3838
SELECT + + SUM( DISTINCT - col2 ), - COUNT( * ) + 87 + + 24 + - COUNT( * ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-223
99

skipif mysql # not compatible
query II rowsort label-3838
SELECT + + SUM ( DISTINCT - col2 ), - COUNT ( * ) + 87 + + 24 + - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-223
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT DISTINCT - - COUNT( * ) - + 45 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT - - COUNT ( * ) - + 45 FROM tab2 AS cor0
----
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col0, col1 col2 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3841
SELECT + CAST( NULL AS SIGNED ) AS col0, col1 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3841
SELECT + CAST ( NULL AS INTEGER ) AS col0, col1 * CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 91 ) AS col0 FROM tab2 AS cor0
----
91

query II rowsort
SELECT ALL - col0, col0 AS col1 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 16 > ( - - 29 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + + col0 col0 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3846
SELECT DISTINCT * FROM tab2 WHERE NOT - - CAST( col0 AS SIGNED ) * - col0 - col0 + - - 42 = + 51
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3846
SELECT DISTINCT * FROM tab2 WHERE NOT - - CAST ( col0 AS INTEGER ) * - col0 - col0 + - - 42 = + 51
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT DISTINCT ( + SUM( - col1 ) ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-3848
SELECT DISTINCT ( + SUM ( - col1 ) ) AS col2 FROM tab2
----
-195

query I rowsort
SELECT - + 60 AS col2 FROM tab2 WHERE NOT + - 25 IS NULL
----
-60
-60
-60

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 BETWEEN - - col1 AND NULL
----

query I rowsort
SELECT - 20 FROM tab0 cor0 WHERE NOT 86 * col0 + + col2 IS NULL
----
-20
-20
-20

query I rowsort
SELECT DISTINCT ( - 51 ) FROM tab2 cor0
----
-51

query I rowsort
SELECT - - 68 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3854
SELECT 90 + 53 + CAST( - COUNT( col2 ) AS SIGNED ) * + - 51 FROM tab2
----
296

skipif mysql # not compatible
query I rowsort label-3854
SELECT 90 + 53 + CAST ( - COUNT ( col2 ) AS INTEGER ) * + - 51 FROM tab2
----
296

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT + 63 * - + COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-567

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3855
SELECT + 63 * - + COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-567

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( col2, - 72 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3857
SELECT - 41 DIV col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3857
SELECT - 41 / col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3858
SELECT ALL - CAST( 16 AS SIGNED ) + 35, + col2 FROM tab1 AS cor0
----
19
59
19
68
19
96

skipif mysql # not compatible
query II rowsort label-3858
SELECT ALL - CAST ( 16 AS INTEGER ) + 35, + col2 FROM tab1 AS cor0
----
19
59
19
68
19
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT ALL - MAX( - col1 ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL - MAX ( - col1 ) FROM tab2 cor0
----
51

query I rowsort
SELECT DISTINCT col0 + - + col1 * - col2 AS col0 FROM tab1 AS cor0
----
1395
3287
380

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3861
SELECT 22, + CAST( NULL AS SIGNED ) * - col2 col0 FROM tab2 AS cor0
----
22
NULL
22
NULL
22
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3861
SELECT 22, + CAST ( NULL AS INTEGER ) * - col2 col0 FROM tab2 AS cor0
----
22
NULL
22
NULL
22
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > - 67
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3863
SELECT DISTINCT ( + + 87 ) DIV + + 10 + 56 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-3863
SELECT DISTINCT ( + + 87 ) / + + 10 + 56 FROM tab2
----
64

query I rowsort
SELECT ALL + col1 * + + col0 FROM tab1
----
425
4277
714

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 / - col2 <= ( NULL )
----

query I rowsort
SELECT + col1 * 31 AS col0 FROM tab1
----
1457
155
434

query I rowsort
SELECT - + 92 FROM tab1 WHERE NULL = + - ( + - col0 ) + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT - MIN( DISTINCT + 26 ) col0 FROM tab2 WHERE - 45 * col1 * - col1 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3868
SELECT - MIN ( DISTINCT + 26 ) col0 FROM tab2 WHERE - 45 * col1 * - col1 IS NULL
----
NULL

query I rowsort
SELECT - 36 + - col1 FROM tab2
----
-103
-113
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT DISTINCT - ( + - COUNT( * ) ) col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3870
SELECT DISTINCT - ( + - COUNT ( * ) ) col0 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3872
SELECT ALL CAST( - - 88 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL CAST ( - - 88 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT COUNT( * ) * - 42 * 55 FROM tab2 AS cor0
----
-6930

skipif mysql # not compatible
query I rowsort label-3873
SELECT COUNT ( * ) * - 42 * 55 FROM tab2 AS cor0
----
-6930

query I rowsort
SELECT ALL - col0 * + - 83 + - + col1 FROM tab2 cor0 WHERE NOT 88 >= + + col1 + 31
----
5235
6158

query II rowsort
SELECT ALL + col2 * + 5, - col1 * + - col2 AS col0 FROM tab1 AS cor0
----
295
295
340
3196
480
1344

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, 54 AS col2 FROM tab2
----
46
54
64
54
75
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3877
SELECT ALL - + col1 DIV - col0 + + - 77 AS col1 FROM tab2 AS cor0
----
-76
-76
-77

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL - + col1 / - col0 + + - 77 AS col1 FROM tab2 AS cor0
----
-76
-76
-77

query I rowsort
SELECT ( - col1 ) * - 48 AS col0 FROM tab1 AS cor0
----
2256
240
672

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT + SUM( - ( - 78 ) ) AS col0 FROM tab2 cor0
----
234

skipif mysql # not compatible
query I rowsort label-3879
SELECT + SUM ( - ( - 78 ) ) AS col0 FROM tab2 cor0
----
234

query I rowsort
SELECT - ( + - 40 ) * - 41 + col0 FROM tab2
----
-1565
-1576
-1594

query I rowsort
SELECT DISTINCT + - 41 AS col2 FROM tab1 cor0
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-3882
SELECT + + col1 DIV col0 - - + col1 AS col1 FROM tab0 AS cor0
----
1
21
86

skipif mysql # not compatible
query I rowsort label-3882
SELECT + + col1 / col0 - - + col1 AS col1 FROM tab0 AS cor0
----
1
21
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT DISTINCT - COUNT( * ) + + 35 AS col2 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-3883
SELECT DISTINCT - COUNT ( * ) + + 35 AS col2 FROM tab2 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT COUNT( * ) + + + COUNT( * ) AS col1 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-3884
SELECT COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab2 cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 * - - ( 94 ) col2 FROM tab0 AS cor0
----
1363
8168
9019

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT COUNT( * ) + + COUNT( col0 ) col1 FROM tab0 cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3886
SELECT COUNT ( * ) + + COUNT ( col0 ) col1 FROM tab0 cor0
----
6

query I rowsort
SELECT col0 + + 43 + + col1 + - - col0 AS col2 FROM tab0
----
154
238
238

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT ALL + MAX( DISTINCT + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL + MAX ( DISTINCT + col1 ) FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3889
SELECT DISTINCT col2 - + + col2 + + CAST( col0 AS SIGNED ) DIV + 95 + col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3889
SELECT DISTINCT col2 - + + col2 + + CAST ( col0 AS INTEGER ) / + 95 + col0 FROM tab1
----
51
85
91

query III rowsort
SELECT * FROM tab0 WHERE + col0 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 51 * col1 AS col2 FROM tab2
----
2601
3417
3927

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT + - COUNT( DISTINCT + - 31 ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3892
SELECT + - COUNT ( DISTINCT + - 31 ) AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3893
SELECT - 0 * col0 DIV + 71 + - - ( - - ( + - col0 ) ) * col1 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-3893
SELECT - 0 * col0 / + 71 + - - ( - - ( + - col0 ) ) * col1 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT + 10 * + 21 AS col0 FROM tab0 AS cor0
----
210
210
210

query I rowsort
SELECT ALL - 2 * 92 AS col0 FROM tab1
----
-184
-184
-184

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3897
SELECT - CAST( NULL AS SIGNED ) AS col0, col2 * + col0 * - - col2 FROM tab2
----
NULL
102400
NULL
24334
NULL
252300

skipif mysql # not compatible
query II rowsort label-3897
SELECT - CAST ( NULL AS INTEGER ) AS col0, col2 * + col0 * - - col2 FROM tab2
----
NULL
102400
NULL
24334
NULL
252300

query I rowsort
SELECT - 41 * + - col1 AS col1 FROM tab0 AS cor0
----
3321
41
861

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, + col0 AS col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query II rowsort
SELECT col2 AS col0, - 29 FROM tab0 AS cor0
----
10
-29
47
-29
99
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 col0 FROM tab1
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT + COUNT( * ) * + - 36 * - COUNT( * ) FROM tab1
----
324

skipif mysql # not compatible
query I rowsort label-3902
SELECT + COUNT ( * ) * + - 36 * - COUNT ( * ) FROM tab1
----
324

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 74 col0 FROM tab0
----
-3478
-7326
-740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3904
SELECT DISTINCT CAST( + col1 AS SIGNED ) AS col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT CAST ( + col1 AS INTEGER ) AS col1 FROM tab0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 95 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL + 58 + - col2 * col2 AS col0 FROM tab1
----
-3423
-4566
-9158

query I rowsort
SELECT DISTINCT - col0 + ( col1 ) AS col0 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT ALL 87 + - + ( + ( - 41 ) ) FROM tab2 AS cor0
----
128
128
128

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 = NULL
----

query I rowsort
SELECT ALL col2 / + col2 * + + col0 FROM tab1 WHERE NOT - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT DISTINCT + - 95 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT + - 95 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3912
SELECT * FROM tab2 AS cor0 WHERE - col2 + col1 <> col2 + + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3912
SELECT * FROM tab2 AS cor0 WHERE - col2 + col1 <> col2 + + + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3913
SELECT DISTINCT col0 / + ( + CAST( NULL AS SIGNED ) ) + col2 * - + col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3913
SELECT DISTINCT col0 / + ( + CAST ( NULL AS INTEGER ) ) + col2 * - + col1 FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 34 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT ALL - 99 - + COUNT( * ) FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL - 99 - + COUNT ( * ) FROM tab1 AS cor0
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3916
SELECT DISTINCT + col2 - - + col2 + + - CAST( NULL AS SIGNED ) * + - 55 + - ( + 63 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT + col2 - - + col2 + + - CAST ( NULL AS INTEGER ) * + - 55 + - ( + 63 ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 - + ( + 65 ) col0 FROM tab2 AS cor0
----
-52
-52
-52

query I rowsort
SELECT - 30 * 8 FROM tab2, tab0 AS cor0
----
9 values hashing to 0610af4582ef9667f54c9da2a68959ef

onlyif mysql # DIV for integer division: 
query I rowsort label-3919
SELECT + col1 DIV 34 - - 90 col0 FROM tab1
----
90
90
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3919
SELECT + col1 / 34 - - 90 col0 FROM tab1
----
90
90
91

query I rowsort
SELECT ALL col0 - + - col1 AS col2 FROM tab0
----
108
96
98

query I rowsort
SELECT DISTINCT + 64 - 24 AS col0 FROM tab2
----
40

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 37 * - col1 * + 50 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col0 - col2 + + + ( - col1 ), 2 AS col2 FROM tab1
----
-149
2
-161
2
-206
2

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 11 * - col0 * 39 BETWEEN NULL AND col0 / - 94 - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 54 col0, 31 FROM tab0, tab1 AS cor0
----
18 values hashing to cce2b911ce379a3986b1cd28bcc66801

query I rowsort
SELECT - ( + + 24 ) AS col1 FROM tab0 AS cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 >= - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - 92 ) AS col1 FROM tab2 cor0
----
-92
-92
-92

query I rowsort
SELECT DISTINCT + 44 + - 25 AS col1 FROM tab2 AS cor0
----
19

query I rowsort
SELECT ( - - col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 4 * - 31 * + col1 FROM tab0 AS cor0
----
-10044
-124
-2604

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + - 78 + 63 + + + col0 / col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-3934
SELECT 78 DIV + - col0 + + + 75 AS col1, + 0 * - - 38 AS col0 FROM tab1 AS cor0
----
74
0
75
0
75
0

skipif mysql # not compatible
query II rowsort label-3934
SELECT 78 / + - col0 + + + 75 AS col1, + 0 * - - 38 AS col0 FROM tab1 AS cor0
----
74
0
75
0
75
0

query I rowsort
SELECT + - ( + 74 ) * + col2 FROM tab0 AS cor0
----
-3478
-7326
-740

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT ALL SUM( + col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL SUM ( + col2 ) AS col0 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT DISTINCT COUNT( ALL col0 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3937
SELECT DISTINCT COUNT ( ALL col0 ) col0 FROM tab0
----
3

query II rowsort
SELECT ALL - col1, - col1 AS col2 FROM tab2
----
-51
-51
-67
-67
-77
-77

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 >= + + 91 + ( - + col0 ) / 54
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT + MIN( DISTINCT + 41 ) + - COUNT( * ) * + ( + + COUNT( * ) ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-3940
SELECT + MIN ( DISTINCT + 41 ) + - COUNT ( * ) * + ( + + COUNT ( * ) ) FROM tab1
----
32

query I rowsort
SELECT DISTINCT - 97 * col1 AS col1 FROM tab0
----
-2037
-7857
-97

query I rowsort
SELECT + 39 + - - 86 + ( ( - col1 ) ) FROM tab0
----
104
124
44

query I rowsort
SELECT DISTINCT - 48 + - col2 FROM tab2
----
-106
-71
-88

query I rowsort
SELECT col0 + - col2 - - col1 AS col1 FROM tab1
----
-31
31
70

query III rowsort
SELECT * FROM tab2 WHERE - col1 < ( - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ( + col1 ) AS col0, col2 FROM tab1 cor0
----
14
96
47
68
5
59

query III rowsort
SELECT * FROM tab1 WHERE + col0 + col0 + col1 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3948
SELECT DISTINCT + 25 / - CAST( NULL AS SIGNED ), + SUM( DISTINCT + 98 ) col2 FROM tab0
----
NULL
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3948
SELECT DISTINCT + 25 / - CAST ( NULL AS INTEGER ), + SUM ( DISTINCT + 98 ) col2 FROM tab0
----
NULL
98

query I rowsort
SELECT ALL + 90 + + ( + - col2 ) FROM tab2 AS cor0
----
32
50
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IS NULL OR NOT - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE NOT 35 + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3952
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col2, 71 AS col1 FROM tab1 AS cor0
----
NULL
71

skipif mysql # not compatible
query II rowsort label-3952
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col2, 71 AS col1 FROM tab1 AS cor0
----
NULL
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3953
SELECT - - col1 + CAST( NULL AS SIGNED ) / + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3953
SELECT - - col1 + CAST ( NULL AS INTEGER ) / + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 91 - 94 FROM tab1
----
-3

query I rowsort
SELECT ALL 93 * + + col0 FROM tab2
----
4278
5952
6975

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3956
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN - 40 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3956
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN - 40 AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3957
SELECT DISTINCT - + 9 * - + col1 DIV - col1 + - + 26 AS col1 FROM tab1 WHERE + 97 + + + ( 7 ) + + col0 DIV 34 IS NOT NULL
----
-35

skipif mysql # not compatible
query I rowsort label-3957
SELECT DISTINCT - + 9 * - + col1 / - col1 + - + 26 AS col1 FROM tab1 WHERE + 97 + + + ( 7 ) + + col0 / 34 IS NOT NULL
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-3958
SELECT DISTINCT - + COUNT( * ) - + + ( + + COUNT( * ) ), 68 col1 FROM tab1 WHERE - col1 BETWEEN NULL AND NULL
----
0
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3958
SELECT DISTINCT - + COUNT ( * ) - + + ( + + COUNT ( * ) ), 68 col1 FROM tab1 WHERE - col1 BETWEEN NULL AND NULL
----
0
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3959
SELECT CAST( NULL AS SIGNED ) * + col0 * - + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3959
SELECT CAST ( NULL AS INTEGER ) * + col0 * - + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + - 35 + - + 83 FROM tab2 AS cor0
----
-1483
-2113
-888

onlyif mysql # DIV for integer division: 
query I rowsort label-3961
SELECT ALL 62 DIV col0 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL 62 / col0 AS col1 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT DISTINCT - ( - SUM( - col1 ) ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT - ( - SUM ( - col1 ) ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT 45 * col1 AS col0 FROM tab0 AS cor0
----
3645
45
945

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT DISTINCT + + MAX( DISTINCT col2 ) AS col1 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-3964
SELECT DISTINCT + + MAX ( DISTINCT col2 ) AS col1 FROM tab1 cor0
----
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT 73 * + - SUM( ALL - + 61 ) AS col0 FROM tab2
----
13359

skipif mysql # not compatible
query I rowsort label-3966
SELECT 73 * + - SUM ( ALL - + 61 ) AS col0 FROM tab2
----
13359

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 col1 FROM tab2
----
50

query II rowsort
SELECT - 78 + + col0 + - col0 + + 83 * + + 36 - + col0 * col2 * - ( 70 ), + 66 AS col0 FROM tab1 AS cor0
----
345630
66
353960
66
436070
66

query I rowsort
SELECT + + col0 + 44 AS col0 FROM tab2 AS cor0
----
108
119
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT DISTINCT + + MAX( DISTINCT - - col2 ) + - COUNT( * ) + - MIN( DISTINCT + - col2 ) FROM tab1 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT + + MAX ( DISTINCT - - col2 ) + - COUNT ( * ) + - MIN ( DISTINCT + - col2 ) FROM tab1 AS cor0
----
189

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 87 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + col0 FROM tab0 WHERE NOT - + col1 IS NOT NULL
----

query I rowsort
SELECT - 17 * + col0 FROM tab0
----
-1479
-1649
-255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3974
SELECT ALL - col2 * + - col0 * + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL - col2 * + - col0 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 65 * + + col1 FROM tab1
----
3055
325
910

query I rowsort
SELECT DISTINCT + 13 + + col1 AS col1 FROM tab2
----
64
80
90

query I rowsort
SELECT + 83 + - col0 AS col1 FROM tab0
----
-14
-4
68

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT - ( COUNT( * ) ) * + 0 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3979
SELECT - ( COUNT ( * ) ) * + 0 AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3980
SELECT ALL col1 DIV - + col2 * 27 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL col1 / - + col2 * 27 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) < - ( + - col2 ) * col0
----

query I rowsort
SELECT DISTINCT + + col1 + + + 84 AS col2 FROM tab2 AS cor0
----
135
151
161

query I rowsort
SELECT ALL + + 59 AS col1 FROM tab0 AS cor0
----
59
59
59

query I rowsort
SELECT ALL - - 32 * col1 + - + col2 + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT MAX( - - ( col1 ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3986
SELECT MAX ( - - ( col1 ) ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT DISTINCT + - ( - - col2 ) * col2 AS col0 FROM tab0 cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT + MIN( + 5 ) * + MIN( ALL + 81 ) / - - ( 62 ) AS col0 FROM tab2 cor0 WHERE NOT - col0 * + - col0 + col1 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3988
SELECT + MIN ( + 5 ) * + MIN ( ALL + 81 ) / - - ( 62 ) AS col0 FROM tab2 cor0 WHERE NOT - col0 * + - col0 + col1 > NULL
----
NULL

query I rowsort
SELECT ( + - 76 ) FROM tab1
----
-76
-76
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * 4 AS col0, ( - col0 ) col2 FROM tab0
----
188
-15
396
-97
40
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-3991
SELECT DISTINCT + col2 DIV + - 3 AS col1, col1 FROM tab2 AS cor0
----
-13
77
-19
67
-7
51

skipif mysql # not compatible
query II rowsort label-3991
SELECT DISTINCT + col2 / + - 3 AS col1, col1 FROM tab2 AS cor0
----
-13
77
-19
67
-7
51

query I rowsort
SELECT ALL + - 33 AS col1 FROM tab2 AS cor0
----
-33
-33
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * + 73 col2, - col2 FROM tab0 cor0
----
3431
-47
7227
-99
730
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-3994
SELECT ALL ( + COUNT( * ) ), - 1 * SUM( + + col2 ) + - 74 + - ( - + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3
-192

skipif mysql # not compatible
query II rowsort label-3994
SELECT ALL ( + COUNT ( * ) ), - 1 * SUM ( + + col2 ) + - 74 + - ( - + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3
-192

query I rowsort
SELECT - ( + - 47 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE NOT ( NOT ( NULL ) < NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3997
SELECT - + COUNT( * ) * SUM( + 19 ) + - 45 FROM tab2 WHERE NOT - CAST( - - 44 AS SIGNED ) NOT BETWEEN + ( - col2 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3997
SELECT - + COUNT ( * ) * SUM ( + 19 ) + - 45 FROM tab2 WHERE NOT - CAST ( - - 44 AS INTEGER ) NOT BETWEEN + ( - col2 ) AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3998
SELECT DISTINCT col0 DIV 64 DIV + - 32 FROM tab1 WHERE NOT 11 IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT col0 / 64 / + - 32 FROM tab1 WHERE NOT 11 IN ( col1 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + + col2 * + col2 col1 FROM tab2 AS cor0
----
1664
3439
575

query II rowsort
SELECT ALL - col0 AS col1, col0 FROM tab2 AS cor0 WHERE 89 + + + 7 BETWEEN 81 AND + + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * col2 + - - 44 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col0 AS col1, - 62 FROM tab1 AS cor0
----
51
-62
85
-62
91
-62

query I rowsort
SELECT ALL + 5 + + 58 FROM tab2 AS cor0
----
63
63
63

query I rowsort
SELECT DISTINCT col0 + - - col0 * - col2 FROM tab1 AS cor0
----
-4845
-4930
-6097

query I rowsort
SELECT - + col2 + + + col2 AS col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT DISTINCT MAX( ALL col2 ) col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4006
SELECT DISTINCT MAX ( ALL col2 ) col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT DISTINCT COUNT( * ) * - - 65 AS col2 FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT COUNT ( * ) * - - 65 AS col2 FROM tab0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4008
SELECT ALL CAST( + + col0 AS SIGNED ) + + 39 AS col0 FROM tab2
----
103
114
85

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL CAST ( + + col0 AS INTEGER ) + + 39 AS col0 FROM tab2
----
103
114
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4009
SELECT COUNT( DISTINCT - 33 ) * 97 DIV + + COUNT( * ) + + COUNT( * ) * - 87 AS col0 FROM tab2
----
-229

skipif mysql # not compatible
query I rowsort label-4009
SELECT COUNT ( DISTINCT - 33 ) * 97 / + + COUNT ( * ) + + COUNT ( * ) * - 87 AS col0 FROM tab2
----
-229

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 62 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4011
SELECT ALL + + 3 * col1 + - CAST( NULL AS SIGNED ) FROM tab1 WHERE + - CAST( + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL + + 3 * col1 + - CAST ( NULL AS INTEGER ) FROM tab1 WHERE + - CAST ( + col1 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4012
SELECT + - SUM( + col2 ) AS col2, MIN( col2 ) AS col2 FROM tab2 cor0
----
-121
23

skipif mysql # not compatible
query II rowsort label-4012
SELECT + - SUM ( + col2 ) AS col2, MIN ( col2 ) AS col2 FROM tab2 cor0
----
-121
23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * + col0 * col1 * col1 - + 94 > - col0 * 11 + - col2 + - 54
----

query I rowsort
SELECT - col2 - + - col0 + - ( - col2 ) + + + col2 + + - col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4015
SELECT ALL + COUNT( * ) col0, COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4015
SELECT ALL + COUNT ( * ) col0, COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4016
SELECT - + col1 DIV - 20 AS col0 FROM tab1 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4016
SELECT - + col1 / - 20 AS col0 FROM tab1 AS cor0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT + + 81 * - COUNT( * ) AS col1 FROM tab0 cor0
----
-243

skipif mysql # not compatible
query I rowsort label-4017
SELECT + + 81 * - COUNT ( * ) AS col1 FROM tab0 cor0
----
-243

query I rowsort
SELECT DISTINCT - 12 * + col1 AS col2 FROM tab2 AS cor0
----
-612
-804
-924

onlyif mysql # DIV for integer division: 
query I rowsort label-4019
SELECT DISTINCT + col1 DIV - + 42 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT + col1 / - + 42 AS col1 FROM tab1
----
-1
0

query II rowsort
SELECT ALL + col0, ( - + 0 ) AS col1 FROM tab2
----
46
0
64
0
75
0

query I rowsort
SELECT - 24 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT DISTINCT SUM( - - col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-4022
SELECT DISTINCT SUM ( - - col2 ) FROM tab1
----
223

query I rowsort
SELECT - + 22 AS col1 FROM tab1 WHERE NOT - col1 * 27 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4024
SELECT ALL + 94 AS col0, MIN( - col0 ) FROM tab2
----
94
-75

skipif mysql # not compatible
query II rowsort label-4024
SELECT ALL + 94 AS col0, MIN ( - col0 ) FROM tab2
----
94
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT - MAX( + - 51 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4025
SELECT - MAX ( + - 51 ) AS col1 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL - col1 * 64 AS col1 FROM tab2 AS cor0
----
-3264
-4288
-4928

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + + col0 + 14 + + col2 + - - col0 <> NULL
----

query II rowsort
SELECT ALL + 23, 20 AS col0 FROM tab2 AS cor0
----
23
20
23
20
23
20

query I rowsort
SELECT DISTINCT + + ( - 82 ) FROM tab2 AS cor0
----
-82

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 95 + col1 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT ALL COUNT( * ) + MAX( ALL + 23 ) * - 0 AS col2 FROM tab0 AS cor0 WHERE ( col2 + + col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4031
SELECT ALL COUNT ( * ) + MAX ( ALL + 23 ) * - 0 AS col2 FROM tab0 AS cor0 WHERE ( col2 + + col2 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT DISTINCT + COUNT( * ) + - - 74 + - 86 AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4032
SELECT DISTINCT + COUNT ( * ) + - - 74 + - 86 AS col0 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT ( - col2 ) + - 79 AS col2 FROM tab2 AS cor0 WHERE NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < + 32
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4035
SELECT DISTINCT + + col0 + + + col2 + + ( - 15 ) DIV + col1 FROM tab1 AS cor0
----
141
146
159

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT + + col0 + + + col2 + + ( - 15 ) / + col1 FROM tab1 AS cor0
----
141
146
159

query I rowsort
SELECT DISTINCT 26 AS col0 FROM tab0 AS cor0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4037
SELECT + col2 AS col0, - CAST( + col1 AS SIGNED ) col1 FROM tab1
----
59
-5
68
-47
96
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4037
SELECT + col2 AS col0, - CAST ( + col1 AS INTEGER ) col1 FROM tab1
----
59
-5
68
-47
96
-14

query I rowsort
SELECT 10 * + 63 AS col0 FROM tab0
----
630
630
630

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT ALL + COUNT( * ) * COUNT( * ) * + 55 * - COUNT( * ) - + 40 AS col2 FROM tab2
----
-1525

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL + COUNT ( * ) * COUNT ( * ) * + 55 * - COUNT ( * ) - + 40 AS col2 FROM tab2
----
-1525

query II rowsort
SELECT + col0 AS col1, + 50 AS col0 FROM tab2
----
46
50
64
50
75
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE - col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4041
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE - col1 < NULL
----
0

query I rowsort
SELECT - col2 * + + 68 - col2 + col2 FROM tab1
----
-4012
-4624
-6528

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT - col2 NOT IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 col0 FROM tab1
----
-8
-8
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4045
SELECT - 32 DIV COUNT( * ) - ( + SUM( - - 53 ) ) AS col1 FROM tab2
----
-169

skipif mysql # not compatible
query I rowsort label-4045
SELECT - 32 / COUNT ( * ) - ( + SUM ( - - 53 ) ) AS col1 FROM tab2
----
-169

query I rowsort
SELECT ALL - 88 * - + 56 + col0 AS col1 FROM tab2
----
4974
4992
5003

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT DISTINCT - + SUM( + col1 ) + ( + COUNT( * ) ) FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-4047
SELECT DISTINCT - + SUM ( + col1 ) + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-63

query II rowsort
SELECT DISTINCT col1 AS col2, - col2 * + col0 * 24 - - - col0 FROM tab2 cor0
----
51
-25438
67
-104475
77
-61504

query I rowsort
SELECT col1 + + col2 - 52 * col0 FROM tab2 AS cor0
----
-2318
-3211
-3775

query I rowsort
SELECT 48 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4051
SELECT ALL ( - col1 ) - + CAST( NULL AS SIGNED ) + - col0 - col1 * - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL ( - col1 ) - + CAST ( NULL AS INTEGER ) + - col0 - col1 * - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 69 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT MAX( DISTINCT + ( col2 ) ) FROM tab0 WHERE NOT + col2 * - col1 IS NULL
----
99

skipif mysql # not compatible
query I rowsort label-4053
SELECT MAX ( DISTINCT + ( col2 ) ) FROM tab0 WHERE NOT + col2 * - col1 IS NULL
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4054
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( + CAST( NULL AS SIGNED ) + 52 IS NULL )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

skipif mysql # not compatible
query IIIIII rowsort label-4054
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( + CAST ( NULL AS INTEGER ) + 52 IS NULL )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> ( + col1 )
----

query I rowsort
SELECT - col0 * col1 + + + col1 AS col2 FROM tab1 AS cor0
----
-420
-4230
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT ALL COUNT( * ) * 49 FROM tab1 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL COUNT ( * ) * 49 FROM tab1 AS cor0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT + + MIN( - 12 ) * - - COUNT( * ) + + SUM( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
-157

skipif mysql # not compatible
query I rowsort label-4058
SELECT + + MIN ( - 12 ) * - - COUNT ( * ) + + SUM ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT SUM( 11 ) * + + COUNT( * ) FROM tab1 cor0
----
99

skipif mysql # not compatible
query I rowsort label-4059
SELECT SUM ( 11 ) * + + COUNT ( * ) FROM tab1 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT - + COUNT( * ) * - 9 AS col1 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4060
SELECT - + COUNT ( * ) * - 9 AS col1 FROM tab2 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT - SUM( col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-4061
SELECT - SUM ( col2 ) AS col0 FROM tab2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT DISTINCT ( + + SUM( ALL - 69 ) ) * - 85 FROM tab1
----
17595

skipif mysql # not compatible
query I rowsort label-4062
SELECT DISTINCT ( + + SUM ( ALL - 69 ) ) * - 85 FROM tab1
----
17595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 * col1 col2 FROM tab2
----
4182
5494
6314

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - col2 NOT BETWEEN NULL AND 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT ALL - 91 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL - 91 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-273

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( col1 ) + - 77 / - col2 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT + 63 * - 79 * COUNT( * ) col0 FROM tab0
----
-14931

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4067
SELECT + 63 * - 79 * COUNT ( * ) col0 FROM tab0
----
-14931

query I rowsort
SELECT ALL 19 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query II rowsort
SELECT ALL - 85, 52 + + + col2 + + col2 - + - col2 * - - ( + 9 ) AS col0 FROM tab1
----
-85
1108
-85
701
-85
800

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4070
SELECT * FROM tab0 WHERE col1 BETWEEN - CAST( NULL AS SIGNED ) AND - col1
----

skipif mysql # not compatible
query III rowsort label-4070
SELECT * FROM tab0 WHERE col1 BETWEEN - CAST ( NULL AS INTEGER ) AND - col1
----

onlyif mysql # DIV for integer division: 
query III rowsort label-4071
SELECT col2 DIV - + col1 AS col2, col1 + - col2, 94 * + 94 + + + col1 AS col2 FROM tab1 AS cor0
----
9 values hashing to f9bc6b1e3531733d0ab4d945902c13ee

skipif mysql # not compatible
query III rowsort label-4071
SELECT col2 / - + col1 AS col2, col1 + - col2, 94 * + 94 + + + col1 AS col2 FROM tab1 AS cor0
----
9 values hashing to f9bc6b1e3531733d0ab4d945902c13ee

query I rowsort
SELECT ALL + 50 + 25 FROM tab1 AS cor0
----
75
75
75

query I rowsort
SELECT + + col0 + + 35 FROM tab2 AS cor0
----
110
81
99

query I rowsort
SELECT ( - ( + + col0 ) ) + + 7 + - ( - col1 ) - - + col1 * + + col2 FROM tab1 AS cor0
----
1314
222
3159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col1 FROM tab2 AS cor0 WHERE 24 IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4076
SELECT ALL 86 * - MIN( ALL + CAST( NULL AS SIGNED ) ) / + 80 * - 84 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL 86 * - MIN ( ALL + CAST ( NULL AS INTEGER ) ) / + 80 * - 84 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT DISTINCT + + 24 + COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
27

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT + + 24 + COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
27

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE 45 > + col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT DISTINCT ( - MIN( - + col2 ) ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT ( - MIN ( - + col2 ) ) AS col1 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT + COUNT( * ) * + + MIN( DISTINCT + 23 ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-4080
SELECT + COUNT ( * ) * + + MIN ( DISTINCT + 23 ) FROM tab2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4081
SELECT col1 DIV - 84 * + - col2 * col1 * col1 * - col2 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4081
SELECT col1 / - 84 * + - col2 * col1 * col1 * - col2 AS col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4082
SELECT ALL - 86 DIV - col1 + + 62 + - 80 * - col0 AS col1 FROM tab2 AS cor0
----
3743
5183
6063

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL - 86 / - col1 + + 62 + - 80 * - col0 AS col1 FROM tab2 AS cor0
----
3743
5183
6063

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4083
SELECT + CAST( - - COUNT( * ) AS SIGNED ) - + 1 col1 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4083
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) - + 1 col1 FROM tab0 AS cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4084
SELECT + + col1 DIV col1 - + col2 FROM tab2 AS cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-4084
SELECT + + col1 / col1 - + col2 FROM tab2 AS cor0
----
-22
-39
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4085
SELECT 4 * CAST( - ( + + col0 ) AS SIGNED ) col2 FROM tab2 AS cor0
----
-184
-256
-300

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4085
SELECT 4 * CAST ( - ( + + col0 ) AS INTEGER ) col2 FROM tab2 AS cor0
----
-184
-256
-300

query I rowsort
SELECT col1 * - col1 + + col1 + col0 FROM tab0 AS cor0
----
-333
-6465
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4087
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT ALL + MAX( col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4088
SELECT ALL + MAX ( col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4089
SELECT DISTINCT col1, - col1 * - - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-4089
SELECT DISTINCT col1, - col1 * - - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4090
SELECT MIN( + 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-4090
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
NULL

query I rowsort
SELECT ( + 5 ) AS col0 FROM tab0
----
5
5
5

query I rowsort
SELECT DISTINCT - col2 * + 95 FROM tab0
----
-4465
-9405
-950

query I rowsort
SELECT + 46 + - ( 94 ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( ( - + 41 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4094
SELECT CAST( - - col1 AS SIGNED ) + + - 4 col1, 28 - + col2 AS col0 FROM tab2
----
47
5
63
-30
73
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4094
SELECT CAST ( - - col1 AS INTEGER ) + + - 4 col1, 28 - + col2 AS col0 FROM tab2
----
47
5
63
-30
73
-12

query I rowsort
SELECT ALL + 26 * - + 26 AS col0 FROM tab2
----
-676
-676
-676

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - col1 * - - col1 + + - col0 + - col1 FROM tab1 AS cor0
----
-115
-2347
-261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4098
SELECT DISTINCT + col0 * col1 + + 92 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT + col0 * col1 + + 92 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4099
SELECT 4 DIV - + col1 - + - ( - col0 ) + - col2 + col2, col0 col1 FROM tab0
----
-101
97
-15
15
-87
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4099
SELECT 4 / - + col1 - + - ( - col0 ) + - col2 + col2, col0 col1 FROM tab0
----
-101
97
-15
15
-87
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) - + col2 col2 FROM tab0
----
-196
-62
-97

query I rowsort
SELECT + 31 - 81 AS col2 FROM tab2
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT COUNT( * ) - COUNT( * ) + + + MAX( - col1 ) * + + COUNT( * ) FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-4102
SELECT COUNT ( * ) - COUNT ( * ) + + + MAX ( - col1 ) * + + COUNT ( * ) FROM tab2
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT 72 + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-4103
SELECT 72 + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
81

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4104
SELECT DISTINCT - + CAST( + CAST( - - 81 AS DECIMAL ) AS SIGNED ) col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT ( NULL ) IS NOT NULL
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4104
SELECT DISTINCT - + CAST ( + CAST ( - - 81 AS REAL ) AS INTEGER ) col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT ( NULL ) IS NOT NULL
----
-81

query II rowsort
SELECT 12 * col2, + col2 AS col0 FROM tab0 AS cor0
----
1188
99
120
10
564
47

query I rowsort
SELECT ALL - + col0 * + 62 FROM tab2 AS cor0 WHERE - 52 BETWEEN - - col1 * - + col1 AND + + col0
----
-2852
-3968
-4650

query I rowsort
SELECT + 57 * 94 AS col0 FROM tab1 AS cor0
----
5358
5358
5358

query I rowsort
SELECT + + 50 * + + col0 AS col0 FROM tab1 cor0
----
2550
4250
4550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - + 31 ) col0 FROM tab0 AS cor0
----
-31

query I rowsort
SELECT ALL - col0 * + 72 + - ( 53 ) AS col1 FROM tab0 AS cor0
----
-1133
-6317
-7037

query I rowsort
SELECT - - 99 AS col2 FROM tab0 AS cor0
----
99
99
99

query II rowsort
SELECT col2 * 35 AS col0, - col2 FROM tab2 WHERE NOT - col0 > - - col0
----
1400
-40
2030
-58
805
-23

query I rowsort
SELECT ALL 1 * - - col1 FROM tab0
----
1
21
81

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE 92 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query II rowsort label-4115
SELECT DISTINCT + 63 AS col2, COUNT( * ) FROM tab1
----
63
3

skipif mysql # not compatible
query II rowsort label-4115
SELECT DISTINCT + 63 AS col2, COUNT ( * ) FROM tab1
----
63
3

query III rowsort
SELECT ALL * FROM tab0 WHERE + 59 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT DISTINCT - 63 * + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4117
SELECT DISTINCT - 63 * + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4118
SELECT 22 * - - MAX( + + col2 ) + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab2 cor0
----
1279

skipif mysql # not compatible
query I rowsort label-4118
SELECT 22 * - - MAX ( + + col2 ) + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 cor0
----
1279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 col0 FROM tab1
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT ALL SUM( - 73 ) FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL SUM ( - 73 ) FROM tab1
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT DISTINCT MAX( DISTINCT - 32 ) FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-4121
SELECT DISTINCT MAX ( DISTINCT - 32 ) FROM tab1
----
-32

query I rowsort
SELECT + 97 + - col0 AS col2 FROM tab1
----
12
46
6

query I rowsort
SELECT ALL col1 * + 18 FROM tab0 WHERE + col0 - col0 <> ( - col2 )
----
1458
18
378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4124
SELECT - 31 / - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT - 31 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT - ( - COUNT( * ) ) * - 58 FROM tab0
----
-174

skipif mysql # not compatible
query I rowsort label-4125
SELECT - ( - COUNT ( * ) ) * - 58 FROM tab0
----
-174

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( + 53 / col1 )
----

query I rowsort
SELECT - col0 - + 78 AS col2 FROM tab2
----
-124
-142
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4128
SELECT 45 AS col1 FROM tab0 WHERE ( NULL ) BETWEEN col2 AND ( - col2 ) * + col1 + - ( CAST( NULL AS SIGNED ) ) * col1
----

skipif mysql # not compatible
query I rowsort label-4128
SELECT 45 AS col1 FROM tab0 WHERE ( NULL ) BETWEEN col2 AND ( - col2 ) * + col1 + - ( CAST ( NULL AS INTEGER ) ) * col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4129
SELECT DISTINCT + MIN( - 2 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT + MIN ( - 2 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 75 + + col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4131
SELECT ALL - col0 DIV - 54 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL - col0 / - 54 AS col2 FROM tab2
----
0
1
1

query I rowsort
SELECT + col0 * - 81 FROM tab2
----
-3726
-5184
-6075

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE ( NULL ) IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4134
SELECT - col0 * CAST( col1 AS SIGNED ) FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-4134
SELECT - col0 * CAST ( col1 AS INTEGER ) FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT ALL AVG ( DISTINCT + 31 ) FROM tab2 WHERE NOT col1 * + col2 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4136
SELECT DISTINCT + 57 DIV col2 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4136
SELECT DISTINCT + 57 / col2 AS col0 FROM tab1
----
0

query I rowsort
SELECT + 1 * col2 FROM tab2
----
23
40
58

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( - 72 ) AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4139
SELECT ALL - CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL - CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 81 col2 FROM tab1 WHERE NOT col0 * col1 BETWEEN - col0 + col2 AND ( NULL )
----

query I rowsort
SELECT col2 + col2 * + ( - col0 ) FROM tab0
----
-658
-860
-9504

onlyif mysql # DIV for integer division: 
query I rowsort label-4142
SELECT + col2 * col0 + col2 DIV + 79 col1 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4142
SELECT + col2 * col0 + col2 / + 79 col1 FROM tab2
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-4143
SELECT ALL 81 DIV + col2 AS col1 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL 81 / + col2 AS col1 FROM tab2
----
1
2
3

query I rowsort
SELECT DISTINCT + col0 * - 91 FROM tab2 WHERE NOT ( 0 ) NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT MAX( ALL 34 ) + - MIN( col0 ) FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-4145
SELECT MAX ( ALL 34 ) + - MIN ( col0 ) FROM tab1
----
-17

query III rowsort
SELECT * FROM tab0 WHERE col1 / 75 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL + MIN( 53 ) AS col1 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL + MIN ( 53 ) AS col1 FROM tab1
----
53

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 < col0 + 90
----

query I rowsort
SELECT DISTINCT + 68 FROM tab0 WHERE NULL <= + 74 - col2
----

query I rowsort
SELECT ALL 4 - - 18 FROM tab1
----
22
22
22

query I rowsort
SELECT + 93 + + ( - col1 ) AS col2 FROM tab2
----
16
26
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 col2 FROM tab0 AS cor0
----
21

query I rowsort
SELECT DISTINCT - col2 / - 29 + - col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( - 36 + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4154
SELECT + col2 DIV - 6 AS col0 FROM tab2 AS cor0
----
-3
-6
-9

skipif mysql # not compatible
query I rowsort label-4154
SELECT + col2 / - 6 AS col0 FROM tab2 AS cor0
----
-3
-6
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT DISTINCT COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT col1 > ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4155
SELECT DISTINCT COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT col1 > ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT DISTINCT - SUM( DISTINCT + col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4156
SELECT DISTINCT - SUM ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4157
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + col2 AND + col0 * CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4157
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + col2 AND + col0 * CAST ( - col1 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4158
SELECT ALL + 89 DIV + col2 + - col0 * + 19 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1214
-1424
-871

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL + 89 / + col2 + - col0 * + 19 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1214
-1424
-871

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NOT 71 + 17 IS NOT NULL
----

query I rowsort
SELECT 94 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 WHERE ( 65 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4162
SELECT COUNT( CAST( 15 AS DECIMAL ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4162
SELECT COUNT ( CAST ( 15 AS REAL ) ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 * + 85 + 45 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * 98 AS col1 FROM tab2 cor0
----
-4998
-6566
-7546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 49 col1 FROM tab1 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT DISTINCT 82 + + COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col0
----
82

skipif mysql # not compatible
query I rowsort label-4166
SELECT DISTINCT 82 + + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col0
----
82

query I rowsort
SELECT DISTINCT + 8 * - 84 AS col1 FROM tab2 AS cor0
----
-672

query I rowsort
SELECT DISTINCT - - 54 AS col2 FROM tab0 cor0
----
54

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT 12 IS NULL
----
51
67
77

query I rowsort
SELECT ALL - col1 * col0 FROM tab1 AS cor0 WHERE NOT - 17 IS NULL
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4171
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 <= ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4171
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 <= ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 * + 73 IS NULL
----

query I rowsort
SELECT ALL 83 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN + 63 AND - 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT DISTINCT COUNT( col0 ) + + 80 * + 92 FROM tab0 AS cor0 WHERE NOT 94 < col1
----
7363

skipif mysql # not compatible
query I rowsort label-4174
SELECT DISTINCT COUNT ( col0 ) + + 80 * + 92 FROM tab0 AS cor0 WHERE NOT 94 < col1
----
7363

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 col0 FROM tab0
----
9
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4176
SELECT ( CAST( NULL AS SIGNED ) ) / + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4176
SELECT ( CAST ( NULL AS INTEGER ) ) / + col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 59 * - 28 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT ALL - COUNT( * ) + + 84 AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4178
SELECT ALL - COUNT ( * ) + + 84 AS col1 FROM tab0
----
81

query III rowsort
SELECT * FROM tab2 WHERE col2 + + 74 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 * + col2 col0 FROM tab1
----
2950
3400
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT + COUNT( ALL + 87 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4181
SELECT + COUNT ( ALL + 87 ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4182
SELECT col0 DIV col2 * + 78 AS col2 FROM tab0
----
0
0
624

skipif mysql # not compatible
query I rowsort label-4182
SELECT col0 / col2 * + 78 AS col2 FROM tab0
----
0
0
624

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE - 53 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE ( 32 * 74 ) = - col0
----

query I rowsort
SELECT ALL + - 17 * col2 + - ( - 96 ) * 79 AS col2 FROM tab2 AS cor0
----
6598
6904
7193

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT + COUNT( * ) + 6 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
15

skipif mysql # not compatible
query I rowsort label-4186
SELECT + COUNT ( * ) + 6 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
15

query III rowsort
SELECT * FROM tab2 WHERE ( - - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 87 - + ( + col1 ) + col1 AS col1 FROM tab2
----
87

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 86 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4190
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) * + col0 ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-4190
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) * + col0 ) <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4191
SELECT + 48 DIV + MIN( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4191
SELECT + 48 / + MIN ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT - - MAX( 22 ) - - ( - 10 ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4192
SELECT - - MAX ( 22 ) - - ( - 10 ) FROM tab0 AS cor0
----
12

query I rowsort
SELECT + + col2 - - col0 * - - ( col0 ) AS col1 FROM tab1 AS cor0
----
2697
7284
8349

query I rowsort
SELECT + - 16 - + 73 + + + 60 FROM tab1 cor0
----
-29
-29
-29

query I rowsort
SELECT - 14 - - 94 FROM tab1 AS cor0
----
80
80
80

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NOT NULL AND NOT ( col1 * col2 + - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4197
SELECT ALL - 61 * - 14 AS col1, - COUNT( * ) + + COUNT( * ) col1 FROM tab2
----
854
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4197
SELECT ALL - 61 * - 14 AS col1, - COUNT ( * ) + + COUNT ( * ) col1 FROM tab2
----
854
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4198
SELECT DISTINCT - MIN( col1 ) + + CAST( MIN( - col0 ) AS SIGNED ) FROM tab1 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT - MIN ( col1 ) + + CAST ( MIN ( - col0 ) AS INTEGER ) FROM tab1 WHERE NOT NULL < NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4199
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4199
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT ( + - col1 IS NULL )
----
51
67
77

query I rowsort
SELECT ALL - + 6 * col2 + - 64 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-418
-472
-640

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 72 NOT BETWEEN ( - col0 ) AND col2 / + ( col2 ) + - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * - 75 * - 85 BETWEEN NULL AND - 63
----

query I rowsort
SELECT + 78 * - + 55 + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 92 + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4206
SELECT ALL - 81 + + COUNT( * ) * - + COUNT( * ) DIV + COUNT( * ) FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL - 81 + + COUNT ( * ) * - + COUNT ( * ) / + COUNT ( * ) FROM tab0 AS cor0
----
-84

query II rowsort
SELECT - col1 AS col1, - col0 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col2 - - - col0 + col2 * 21
----

query I rowsort
SELECT - + col1 + - + col1 AS col1 FROM tab1 AS cor0
----
-10
-28
-94

query I rowsort
SELECT - col2 + + + col1 AS col0 FROM tab2 cor0
----
28
37
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - + 21 col1 FROM tab0
----
-6
66
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4213
SELECT DISTINCT + col1 DIV - - 89 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4213
SELECT DISTINCT + col1 / - - 89 FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( ( NULL ) < + + 11 )
----

query II rowsort
SELECT ALL - col2 + - col1, col0 FROM tab0
----
-100
97
-128
15
-31
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4216
SELECT + col0 * - CAST( NULL AS SIGNED ) + + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4216
SELECT + col0 * - CAST ( NULL AS INTEGER ) + + - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + 84 AS col2 FROM tab2
----
3864
5376
6300

onlyif mysql # DIV for integer division: 
query I rowsort label-4218
SELECT col0 DIV col1 + 62 * - + 43 FROM tab1 cor0
----
-2649
-2663
-2665

skipif mysql # not compatible
query I rowsort label-4218
SELECT col0 / col1 + 62 * - + 43 FROM tab1 cor0
----
-2649
-2663
-2665

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 66 + - ( - + col0 ) NOT BETWEEN ( + col2 ) AND ( 70 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4220
SELECT + - 91 DIV - col1 + + col1 FROM tab2 WHERE + col1 IS NOT NULL
----
52
68
78

skipif mysql # not compatible
query I rowsort label-4220
SELECT + - 91 / - col1 + + col1 FROM tab2 WHERE + col1 IS NOT NULL
----
52
68
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4221
SELECT - col1 * + + 61 * CAST( NULL AS SIGNED ) + col2 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4221
SELECT - col1 * + + 61 * CAST ( NULL AS INTEGER ) + col2 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 30 ) + col1 + - - col1 col0 FROM tab2 cor0
----
132
164
184

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT - 13 + - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-4223
SELECT - 13 + - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-16

query I rowsort
SELECT - 17 + col0 FROM tab2 AS cor0
----
29
47
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT DISTINCT - - MIN( DISTINCT + + col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4225
SELECT DISTINCT - - MIN ( DISTINCT + + col0 ) AS col0 FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT + + 3 * - col1 * - col1 + + + col1 AS col0 FROM tab2 AS cor0
----
13534
17864
7854

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( NULL ) IS NULL )
----

query I rowsort
SELECT col2 + + col2 + + - 26 * 29 FROM tab1 cor0 WHERE NOT 64 IS NULL
----
-562
-618
-636

query I rowsort
SELECT DISTINCT - col1 * + + col0 * - col2 FROM tab1 cor0
----
25075
290836
68544

query I rowsort
SELECT ALL col1 * col1 * + 12 AS col1 FROM tab1 AS cor0
----
2352
26508
300

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4231
SELECT DISTINCT CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4232
SELECT ALL * FROM tab2 WHERE + 14 * - 69 - - + CAST( + - 74 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4232
SELECT ALL * FROM tab2 WHERE + 14 * - 69 - - + CAST ( + - 74 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - ( - col2 ) AS col1 FROM tab1
----
1344
295
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col0, ( - col1 ) col2 FROM tab0
----
-15
-81
-87
-21
-97
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4235
SELECT * FROM tab0 WHERE NOT 85 * + 72 IS NULL OR NOT NULL <= + CAST( + col2 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4235
SELECT * FROM tab0 WHERE NOT 85 * + 72 IS NULL OR NOT NULL <= + CAST ( + col2 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT DISTINCT 15 * + + MAX( ALL + + col0 ) AS col2 FROM tab1
----
1365

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT 15 * + + MAX ( ALL + + col0 ) AS col2 FROM tab1
----
1365

query I rowsort
SELECT ALL + 87 AS col2 FROM tab2 cor0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT ALL COUNT( * ) * + 47 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL COUNT ( * ) * + 47 FROM tab1 AS cor0
----
141

query I rowsort
SELECT col0 * - + col1 + - 75 AS col1 FROM tab2 AS cor0
----
-2421
-5003
-5100

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <> ( + col1 * + col0 )
----

query I rowsort
SELECT DISTINCT - + col0 * - + col0 FROM tab0 AS cor0
----
225
7569
9409

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( - col2 / col2 + - col2 ) NOT BETWEEN 56 AND 66
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4243
SELECT + COUNT( * ) DIV - 24 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4243
SELECT + COUNT ( * ) / - 24 AS col2 FROM tab2
----
0

query I rowsort
SELECT 99 * - + col0 FROM tab0
----
-1485
-8613
-9603

query I rowsort
SELECT - col2 + - 41 FROM tab2
----
-64
-81
-99

query II rowsort
SELECT + col1 + 11 AS col1, 47 - + col2 * + 19 AS col2 FROM tab0
----
12
-1834
32
-143
92
-846

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 / + 31 <> NULL
----

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 AS cor0 WHERE col1 <> NULL
----

query I rowsort
SELECT DISTINCT + 33 + - ( - - col2 ) FROM tab0 AS cor0
----
-14
-66
23

query I rowsort
SELECT ALL - ( + ( - ( - col1 ) ) ) + - col0 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT ALL MIN( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL MIN ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4252
SELECT ALL + col0 / 87 + + 22 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 * + col0 + + + ( - col0 ) * + + col0 NOT BETWEEN - col2 AND CAST( + col1 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL + col0 / 87 + + 22 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 * + col0 + + + ( - col0 ) * + + col0 NOT BETWEEN - col2 AND CAST ( + col1 AS REAL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 7 / + col1 < NULL
----

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( - col0 / - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4255
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( - + 32 AS SIGNED ) + + 95 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4255
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( - + 32 AS INTEGER ) + + 95 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - ( - + col2 ) <= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 79 * - col0 * + col1 + col0 col0 FROM tab2
----
-185288
-389248
-396900

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 * 5 BETWEEN + 88 * + - col2 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4259
SELECT ALL - CAST( NULL AS SIGNED ) * + 42 / + COUNT( DISTINCT - col0 ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4259
SELECT ALL - CAST ( NULL AS INTEGER ) * + 42 / + COUNT ( DISTINCT - col0 ) col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4260
SELECT + col1 DIV - - 9 AS col1 FROM tab2
----
5
7
8

skipif mysql # not compatible
query I rowsort label-4260
SELECT + col1 / - - 9 AS col1 FROM tab2
----
5
7
8

query I rowsort
SELECT ALL - 60 * + - col1 FROM tab0
----
1260
4860
60

query I rowsort
SELECT + col1 + + col0 AS col0 FROM tab2 cor0
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 + + col1 + 19 col0 FROM tab2 AS cor0 WHERE 66 = NULL
----

query I rowsort
SELECT ALL col2 - - 59 * - col1 FROM tab0 AS cor0
----
-1229
-4732
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT 90 + MIN( + - col0 ) AS col1 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-4265
SELECT 90 + MIN ( + - col0 ) AS col1 FROM tab0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4266
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST( - col1 AS SIGNED ) + + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4266
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST ( - col1 AS INTEGER ) + + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 BETWEEN col2 AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT ALL SUM( ALL - - 86 ) FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL SUM ( ALL - - 86 ) FROM tab0
----
258

query II rowsort
SELECT DISTINCT + col1, 6 FROM tab2 AS cor0
----
51
6
67
6
77
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4270
SELECT ALL - AVG ( DISTINCT + ( + + CAST( NULL AS SIGNED ) ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL - AVG ( DISTINCT + ( + + CAST ( NULL AS INTEGER ) ) ) FROM tab1 cor0
----
NULL

query II rowsort
SELECT DISTINCT - - col0 AS col0, 90 AS col2 FROM tab0 AS cor0
----
15
90
87
90
97
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT ALL SUM( ALL + - col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4272
SELECT ALL SUM ( ALL + - col1 ) AS col0 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT - 65 + - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-124
-133
-161

query I rowsort
SELECT DISTINCT - col2 * + - col1 + - 48 AS col0 FROM tab0 AS cor0
----
162
3759
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + - col0 )
----

query I rowsort
SELECT + col1 * + - col1 AS col1 FROM tab1 AS cor0
----
-196
-2209
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 86 AS col2, - 49 col0 FROM tab0 AS cor0
----
-86
-49
-86
-49
-86
-49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + - - 66 + - 47 * - col2 + - 77 * + col2 + + col0 - + 38 * - col1 + - + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 89 + - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4280
SELECT + CAST( - + col1 AS SIGNED ) * - col1 + + 87 FROM tab0
----
528
6648
88

skipif mysql # not compatible
query I rowsort label-4280
SELECT + CAST ( - + col1 AS INTEGER ) * - col1 + + 87 FROM tab0
----
528
6648
88

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 15 NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT DISTINCT - ( - 5 ) AS col1 FROM tab1 cor0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4283
SELECT COUNT( * ) * + ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4283
SELECT COUNT ( * ) * + ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - ( col2 ) * + - col2 FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query II rowsort label-4285
SELECT 23 AS col1, COUNT( * ) FROM tab2 cor0
----
23
3

skipif mysql # not compatible
query II rowsort label-4285
SELECT 23 AS col1, COUNT ( * ) FROM tab2 cor0
----
23
3

query I rowsort
SELECT ALL col0 + ( + - col2 ) FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # DIV for integer division: 
query I rowsort label-4287
SELECT - 87 + col1 DIV col1 * 4 AS col1 FROM tab0 AS cor0
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-4287
SELECT - 87 + col1 / col1 * 4 AS col1 FROM tab0 AS cor0
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT COUNT( * ) + 76 AS col0 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-4288
SELECT COUNT ( * ) + 76 AS col0 FROM tab0 AS cor0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4289
SELECT - CAST( - 67 AS SIGNED ) + + 99 + + + 48 AS col0 FROM tab0 AS cor0
----
214
214
214

skipif mysql # not compatible
query I rowsort label-4289
SELECT - CAST ( - 67 AS INTEGER ) + + 99 + + + 48 AS col0 FROM tab0 AS cor0
----
214
214
214

query I rowsort
SELECT DISTINCT + 2 + 12 FROM tab1 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT ALL + - COUNT( * ) + 70 FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL + - COUNT ( * ) + 70 FROM tab2 AS cor0
----
67

query I rowsort
SELECT ALL + - col1 * col2 + - col0 - + + col2 FROM tab0 AS cor0
----
-295
-307
-3869

query I rowsort
SELECT ALL - 33 + 63 * + 92 AS col2 FROM tab0
----
5763
5763
5763

query I rowsort
SELECT ALL - col1 * - 85 * - col1 FROM tab1
----
-16660
-187765
-2125

query I rowsort
SELECT + 21 + - 2 + + - col1 FROM tab0
----
-2
-62
18

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4296
SELECT * FROM tab0 WHERE ( NULL ) <= CAST( NULL AS DECIMAL ) + + CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4296
SELECT * FROM tab0 WHERE ( NULL ) <= CAST ( NULL AS REAL ) + + CAST ( - col2 AS INTEGER )
----

query I rowsort
SELECT - col1 FROM tab2 WHERE + col0 NOT IN ( col0, 78 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 60 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * - + ( - - 25 ) AS col2 FROM tab0
----
-1175
-2475
-250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4300
SELECT 59 - - + COUNT( * ) + - - 75 * - - 14 + - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4300
SELECT 59 - - + COUNT ( * ) + - - 75 * - - 14 + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query II rowsort
SELECT ALL + col0, col0 / + col0 + col2 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col2, + ( - col1 ) AS col2 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IS NULL OR NULL > NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4304
SELECT + - col1 * + - col1 + - CAST( - - ( - col0 ) AS SIGNED ) FROM tab2 AS cor0
----
2647
4564
5993

skipif mysql # not compatible
query I rowsort label-4304
SELECT + - col1 * + - col1 + - CAST ( - - ( - col0 ) AS INTEGER ) FROM tab2 AS cor0
----
2647
4564
5993

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * + col2 - - col1 <= NULL
----

query I rowsort
SELECT DISTINCT - ( 65 ) FROM tab0
----
-65

query I rowsort
SELECT + col1 * + col1 * + - col1 * 36 FROM tab0
----
-19131876
-333396
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-4308
SELECT ALL col0 DIV 51 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL col0 / 51 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4309
SELECT 60, - COUNT( * ) * + 26 * COUNT( - ( col1 ) ) AS col1 FROM tab1
----
60
-234

skipif mysql # not compatible
query II rowsort label-4309
SELECT 60, - COUNT ( * ) * + 26 * COUNT ( - ( col1 ) ) AS col1 FROM tab1
----
60
-234

query I rowsort
SELECT ALL - col2 * + - col0 AS col2 FROM tab0
----
705
870
9603

query II rowsort
SELECT DISTINCT col2 AS col1, 36 FROM tab2
----
23
36
40
36
58
36

onlyif mysql # aggregate syntax: 
query II rowsort label-4312
SELECT COUNT( * ) AS col2, 78 FROM tab1
----
3
78

skipif mysql # not compatible
query II rowsort label-4312
SELECT COUNT ( * ) AS col2, 78 FROM tab1
----
3
78

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 61 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col1 AS col1, - col1 + col1 FROM tab0
----
-1
0
-21
0
-81
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4315
SELECT DISTINCT + 96 AS col1, COUNT( DISTINCT + + col0 ) FROM tab2 AS cor0
----
96
3

skipif mysql # not compatible
query II rowsort label-4315
SELECT DISTINCT + 96 AS col1, COUNT ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
96
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT DISTINCT + + COUNT( + 95 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4316
SELECT DISTINCT + + COUNT ( + 95 ) col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + - 58 * - ( + + 11 ) + - col2 AS col0 FROM tab2 WHERE + col1 * - col2 IS NOT NULL
----
580
598
615

query I rowsort
SELECT - col0 + + - col0 * + + col1 - + col1 + col2 * - col2 AS col1 FROM tab1
----
-3996
-9039
-9995

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4319
SELECT - col1 * - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + 24 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4319
SELECT - col1 * - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + 24 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE col2 IN ( + 99 * + 62, - col1 + - - col2, + 14 - - - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND col0
----

query I rowsort
SELECT DISTINCT ( 86 ) + 5 FROM tab0 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT ALL + col1 + - col1 * CAST( NULL AS SIGNED ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL + col1 + - col1 * CAST ( NULL AS INTEGER ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4324
SELECT + + CAST( NULL AS SIGNED ) * + CAST( - col1 AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT + + CAST ( NULL AS INTEGER ) * + CAST ( - col1 AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + + col2 ) AS col1 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4326
SELECT col0 - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4326
SELECT col0 - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 81 - - col0 FROM tab0
----
-66
16
6

query I rowsort
SELECT + 47 - - - 40 FROM tab1
----
7
7
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + + ( + 54 ) col1 FROM tab2
----
-8
10
21

query I rowsort
SELECT ALL col0 * - 14 FROM tab1
----
-1190
-1274
-714

query I rowsort
SELECT ALL - col1 + - 20 FROM tab2 AS cor0
----
-71
-87
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-4332
SELECT ALL + col1, - col2 DIV 84 FROM tab1 AS cor0
----
14
-1
47
0
5
0

skipif mysql # not compatible
query II rowsort label-4332
SELECT ALL + col1, - col2 / 84 FROM tab1 AS cor0
----
14
-1
47
0
5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT DISTINCT + + COUNT( DISTINCT + + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT + + COUNT ( DISTINCT + + col1 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 69 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT MAX( col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4335
SELECT MAX ( col0 ) AS col1 FROM tab2 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4336
SELECT + col2 * - col2 DIV - + col2 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4336
SELECT + col2 * - col2 / - + col2 FROM tab1 cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4337
SELECT DISTINCT ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + 11 * - 60 * - 56 / - col2 NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT - 18 FROM tab0 WHERE NOT + col1 IN ( + + 66 - 17 )
----
-18
-18
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 0 col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4341
SELECT DISTINCT 17 DIV - 89 * - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT 17 / - 89 * - col1 FROM tab2
----
0

query I rowsort
SELECT + col1 + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
117
125
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4343
SELECT - COUNT( * ) * + - CAST( NULL AS DECIMAL ) + - - COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 WHERE NOT + - 79 * - + CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4343
SELECT - COUNT ( * ) * + - CAST ( NULL AS REAL ) + - - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 WHERE NOT + - 79 * - + CAST ( NULL AS INTEGER ) IS NULL
----
NULL

query II rowsort
SELECT ALL - 81, 55 AS col1 FROM tab2
----
-81
55
-81
55
-81
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4345
SELECT MIN( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4345
SELECT MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < - col0 * - col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * 34 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - col2 + 78 - + + ( + col0 ) * - col2, + col1 col1 FROM tab0 AS cor0
----
-3024
81
738
21
9582
1

query I rowsort
SELECT - + col2 + + col0 + + + col0 AS col1 FROM tab1 AS cor0
----
111
114
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4350
SELECT ALL + + col1 + + - ( - col2 ) + + 51 * - - CAST( + col0 AS SIGNED ) + + - 52 FROM tab2 AS cor0
----
2368
3329
3898

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL + + col1 + + - ( - col2 ) + + 51 * - - CAST ( + col0 AS INTEGER ) + + - 52 FROM tab2 AS cor0
----
2368
3329
3898

query II rowsort
SELECT DISTINCT col2, + 29 FROM tab2 AS cor0
----
23
29
40
29
58
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4352
SELECT + + CAST( NULL AS SIGNED ) + + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT + + CAST ( NULL AS INTEGER ) + + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NULL < ( - - 31 ) + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL - 37 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL - 37 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-34

query I rowsort
SELECT DISTINCT + + col1 + + 66 FROM tab1 AS cor0
----
113
71
80

query I rowsort
SELECT ALL - col0 + + - col1 * col0 AS col1 FROM tab0 AS cor0
----
-1230
-1914
-194

query I rowsort
SELECT DISTINCT + col2 - + 76 AS col0 FROM tab2
----
-18
-36
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT ALL + 4 * - 29 - - + ( COUNT( * ) ) AS col1 FROM tab0
----
-113

skipif mysql # not compatible
query I rowsort label-4358
SELECT ALL + 4 * - 29 - - + ( COUNT ( * ) ) AS col1 FROM tab0
----
-113

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 >= + 84
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - col1 * + col2 + - - col2 + - col0 + - col1 FROM tab0 AS cor0
----
-308
-3856
-98

query I rowsort
SELECT - col0 * + ( + 74 ) FROM tab0 AS cor0
----
-1110
-6438
-7178

onlyif mysql # DIV for integer division: 
query II rowsort label-4362
SELECT col1, + col1 DIV + ( - col0 ) AS col1 FROM tab0
----
1
0
21
0
81
-5

skipif mysql # not compatible
query II rowsort label-4362
SELECT col1, + col1 / + ( - col0 ) AS col1 FROM tab0
----
1
0
21
0
81
-5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4363
SELECT col2 AS col0, - CAST( NULL AS DECIMAL ) * + 32 - + col0 * + CAST( + 90 AS SIGNED ) * - col0 - col2 / + col0 + - + 14 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-4363
SELECT col2 AS col0, - CAST ( NULL AS REAL ) * + 32 - + col0 * + CAST ( + 90 AS INTEGER ) * - col0 - col2 / + col0 + - + 14 FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT + + COUNT( - col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4364
SELECT + + COUNT ( - col0 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + 8 * 13 FROM tab0 cor0
----
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-4366
SELECT DISTINCT - - 12 DIV + - col2 - + + col2 FROM tab0 AS cor0
----
-11
-47
-99

skipif mysql # not compatible
query I rowsort label-4366
SELECT DISTINCT - - 12 / + - col2 - + + col2 FROM tab0 AS cor0
----
-11
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + - + 35 * col0 <> - - col2 * + ( 15 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 77
----

query I rowsort
SELECT DISTINCT + ( 46 ) / + - 9 AS col1 FROM tab0 WHERE NOT - col2 + - - col2 + col1 * 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT - COUNT( ALL - - col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4370
SELECT - COUNT ( ALL - - col2 ) FROM tab2
----
-3

query I rowsort
SELECT + 35 * + col0 AS col1 FROM tab2
----
1610
2240
2625

onlyif mysql # DIV for integer division: 
query I rowsort label-4372
SELECT - col1 DIV + 99 AS col0 FROM tab2 WHERE NOT - - col2 * - 73 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4372
SELECT - col1 / + 99 AS col0 FROM tab2 WHERE NOT - - col2 * - 73 IS NULL
----
0
0
0

query I rowsort
SELECT ( - + col0 ) * - + col1 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4374
SELECT - CAST( + CAST( 61 AS DECIMAL ) AS SIGNED ) col0 FROM tab2
----
-61
-61
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4374
SELECT - CAST ( + CAST ( 61 AS REAL ) AS INTEGER ) col0 FROM tab2
----
-61
-61
-61

query I rowsort
SELECT 76 * - col0 FROM tab0
----
-1140
-6612
-7372

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT DISTINCT + COUNT( * ) + + 1 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT + COUNT ( * ) + + 1 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + col2 / + col0 BETWEEN NULL AND ( - + 15 )
----
0

skipif mysql # not compatible
query I rowsort label-4377
SELECT + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + col2 / + col0 BETWEEN NULL AND ( - + 15 )
----
0

query I rowsort
SELECT DISTINCT + - 51 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-51

query I rowsort
SELECT - 33 + - col1 FROM tab0
----
-114
-34
-54

query II rowsort
SELECT ALL col2 AS col0, + col2 + - col1 FROM tab0
----
10
-11
47
-34
99
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT DISTINCT + ( MIN( ALL - col0 ) ) + COUNT( * ) FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT + ( MIN ( ALL - col0 ) ) + COUNT ( * ) FROM tab0 AS cor0
----
-94

query I rowsort
SELECT DISTINCT - col2 + + 85 AS col1 FROM tab0 AS cor0
----
-14
38
75

query I rowsort
SELECT col1 - 73 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
-22
-6
4

query I rowsort
SELECT - + AVG ( + col2 ) FROM tab1 WHERE col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4385
SELECT 27 DIV COUNT( DISTINCT + col2 ) - - 46 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-4385
SELECT 27 / COUNT ( DISTINCT + col2 ) - - 46 FROM tab1
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-4386
SELECT DISTINCT - COUNT( * ) - + - 42 AS col2, + COUNT( * ) FROM tab2
----
39
3

skipif mysql # not compatible
query II rowsort label-4386
SELECT DISTINCT - COUNT ( * ) - + - 42 AS col2, + COUNT ( * ) FROM tab2
----
39
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT - + SUM( ALL + 23 ) FROM tab1 WHERE 50 * + col0 IS NOT NULL
----
-69

skipif mysql # not compatible
query I rowsort label-4387
SELECT - + SUM ( ALL + 23 ) FROM tab1 WHERE 50 * + col0 IS NOT NULL
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT - COUNT( * ) + - + 65 AS col2 FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-4388
SELECT - COUNT ( * ) + - + 65 AS col2 FROM tab2
----
-68

query I rowsort
SELECT + + col0 FROM tab0 WHERE + col1 IS NOT NULL
----
15
87
97

query III rowsort
SELECT * FROM tab2 WHERE - col0 - col2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 48 * + col0 col0 FROM tab1 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT DISTINCT COUNT( + 2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4392
SELECT DISTINCT COUNT ( + 2 ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN 44 / + 33 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 / + col2 = NULL
----

query II rowsort
SELECT - col0 AS col0, - ( - col2 ) AS col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT ALL + + COUNT( * ) * - + 11 - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL + + COUNT ( * ) * - + 11 - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-36

query I rowsort
SELECT ALL + 3 + 92 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4398
SELECT DISTINCT * FROM tab0 WHERE - 74 + - 41 BETWEEN NULL AND + + col2 * + + 96 / + - ( - CAST( NULL AS SIGNED ) ) * col1
----

skipif mysql # not compatible
query III rowsort label-4398
SELECT DISTINCT * FROM tab0 WHERE - 74 + - 41 BETWEEN NULL AND + + col2 * + + 96 / + - ( - CAST ( NULL AS INTEGER ) ) * col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 30 IS NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 83 AND + ( col0 ) * - + col2 * col1
----

query I rowsort
SELECT DISTINCT - 99 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) = - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT DISTINCT - COUNT( * ) + COUNT( * ) + - SUM( col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) + - SUM ( col2 ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT col1 * - - col1 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT DISTINCT + 53 + - - 39 * col1 AS col0 FROM tab1 AS cor0
----
1886
248
599

query I rowsort
SELECT - + col2 FROM tab1 cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT ALL - + 93 * + SUM( col2 ) FROM tab1 AS cor0
----
-20739

skipif mysql # not compatible
query I rowsort label-4406
SELECT ALL - + 93 * + SUM ( col2 ) FROM tab1 AS cor0
----
-20739

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4408
SELECT * FROM tab1 AS cor0 WHERE NOT col2 IN ( + + 42, col2 * - - CAST( + ( + CAST( NULL AS DECIMAL ) ) AS DECIMAL ) - col1 / - col1, + + ( + col2 ) + ( - - CAST( - - col2 AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-4408
SELECT * FROM tab1 AS cor0 WHERE NOT col2 IN ( + + 42, col2 * - - CAST ( + ( + CAST ( NULL AS REAL ) ) AS REAL ) - col1 / - col1, + + ( + col2 ) + ( - - CAST ( - - col2 AS REAL ) ) )
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE - col2 NOT BETWEEN + + col0 AND NULL
----
15
87
97

query III rowsort
SELECT * FROM tab2 WHERE NULL < + 0 * - col1 - + col2
----

query III rowsort
SELECT * FROM tab2 WHERE + - col0 < 60 - - + 58 + 49
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT ALL - COUNT( * ) AS col1 FROM tab2 WHERE 77 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 WHERE 77 >= NULL
----
0

query I rowsort
SELECT + ( - + col2 ) + - + 9 AS col1 FROM tab2
----
-32
-49
-67

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * - - col1 * 57 + 50 NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT DISTINCT - SUM( 42 ) * 54 FROM tab2 AS cor0
----
-6804

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT - SUM ( 42 ) * 54 FROM tab2 AS cor0
----
-6804

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + 75 + + col2 + + - col2 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + + col2 + - 76 FROM tab0 AS cor0
----
-29
-66
23

query II rowsort
SELECT - + 10 AS col1, col1 AS col1 FROM tab2 AS cor0
----
-10
51
-10
67
-10
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT ALL - + COUNT( * ) FROM tab1 WHERE NOT + - 92 + + - col2 * - col0 * + col0 * col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL - + COUNT ( * ) FROM tab1 WHERE NOT + - 92 + + - col2 * - col0 * + col0 * col0 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT DISTINCT 12 * + ( + COUNT( * ) ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT 12 * + ( + COUNT ( * ) ) FROM tab2
----
36

query I rowsort
SELECT col1 + + 34 FROM tab0
----
115
35
55

query I rowsort
SELECT - 78 + + - col0 FROM tab0 AS cor0
----
-165
-175
-93

query I rowsort
SELECT + ( + 22 ) * - ( + col0 ) + col0 FROM tab2 AS cor0
----
-1344
-1575
-966

query I rowsort
SELECT col2 + - ( - - col0 ) * + 21 - col1 AS col2 FROM tab2 AS cor0
----
-1381
-1584
-994

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 + - - 16 col1 FROM tab0 AS cor0
----
48
48
48

onlyif mysql # DIV for integer division: 
query I rowsort label-4426
SELECT DISTINCT + 29 DIV col1 AS col2 FROM tab1 AS cor0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT + 29 / col1 AS col2 FROM tab1 AS cor0
----
0
2
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT + - MAX( col2 ) col2 FROM tab0 AS cor0 WHERE 48 IS NOT NULL
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4427
SELECT + - MAX ( col2 ) col2 FROM tab0 AS cor0 WHERE 48 IS NOT NULL
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4428
SELECT 48 DIV - 55 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4428
SELECT 48 / - 55 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT - 16 * col0 AS col2 FROM tab1
----
-1360
-1456
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT - + COUNT( * ) * MAX( - col2 ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4431
SELECT - + COUNT ( * ) * MAX ( - col2 ) FROM tab2 AS cor0
----
69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + col0 > 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT COUNT( DISTINCT - 33 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4433
SELECT COUNT ( DISTINCT - 33 ) AS col2 FROM tab2
----
1

query I rowsort
SELECT - col1 + + 6 * + col0 * + col1 FROM tab1 AS cor0
----
2545
25615
4270

query I rowsort
SELECT ALL col1 * + col1 + col0 AS col2 FROM tab0 AS cor0
----
528
6576
98

query I rowsort
SELECT ALL col1 * 26 * - col1 AS col1 FROM tab1 AS cor0
----
-5096
-57434
-650

query II rowsort
SELECT + col2, - 99 FROM tab1 AS cor0
----
59
-99
68
-99
96
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col2 col0 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT DISTINCT + 85 + + COUNT( * ) AS col2 FROM tab0 cor0
----
88

skipif mysql # not compatible
query I rowsort label-4439
SELECT DISTINCT + 85 + + COUNT ( * ) AS col2 FROM tab0 cor0
----
88

query I rowsort
SELECT ALL + - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - 85 * - + 20
----

query I rowsort
SELECT 92 + col0 AS col0 FROM tab2 cor0 WHERE - 40 * + col2 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + col2 / - 59
----

query I rowsort
SELECT col1 * + 82 AS col1 FROM tab1
----
1148
3854
410

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT DISTINCT + - SUM( + col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-199

skipif mysql # not compatible
query I rowsort label-4444
SELECT DISTINCT + - SUM ( + col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-199

query I rowsort
SELECT DISTINCT + 45 * 35 AS col1 FROM tab2
----
1575

query I rowsort
SELECT + ( - col1 ) * col0 * col0 FROM tab2
----
-107916
-315392
-376875

query I rowsort
SELECT 35 * - 51 AS col2 FROM tab2
----
-1785
-1785
-1785

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 col1 FROM tab1 AS cor0
----
-99

query I rowsort
SELECT - - col0 * col1 + + 97 FROM tab2 AS cor0
----
2443
5025
5122

query I rowsort
SELECT ALL 94 * + - col0 FROM tab0
----
-1410
-8178
-9118

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT + - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4451
SELECT + - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT DISTINCT COUNT( * ) + - + 7 AS col1 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-4452
SELECT DISTINCT COUNT ( * ) + - + 7 AS col1 FROM tab0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT ALL MIN( 24 ) AS col1 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL MIN ( 24 ) AS col1 FROM tab2 AS cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 65 col0 FROM tab2 AS cor0
----
-65
-65
-65

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 IS NULL OR - 14 + + col0 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4456
SELECT ALL - 44 DIV + col2 AS col1 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL - 44 / + col2 AS col1 FROM tab0
----
-4
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + 6 - 63 + + 7 IS NOT NULL
----

query I rowsort
SELECT - + 7 * 95 * col0 + col0 AS col2 FROM tab2 AS cor0
----
-30544
-42496
-49800

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT ALL - SUM( + - col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL - SUM ( + - col1 ) AS col2 FROM tab1
----
66

query I rowsort
SELECT DISTINCT - 7 + - - col1 AS col0 FROM tab0
----
-6
14
74

query II rowsort
SELECT - 86, col1 FROM tab0
----
-86
1
-86
21
-86
81

query I rowsort
SELECT DISTINCT col2 + 13 FROM tab2 AS cor0
----
36
53
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT ALL + - SUM( + 74 ) FROM tab0 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL + - SUM ( + 74 ) FROM tab0 AS cor0
----
-222

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4464
SELECT DISTINCT + + col1 + - CAST( + - ( - + col0 ) AS SIGNED ) + - 49 + - - 39 + + col0 FROM tab2 AS cor0
----
41
57
67

skipif mysql # not compatible
query I rowsort label-4464
SELECT DISTINCT + + col1 + - CAST ( + - ( - + col0 ) AS INTEGER ) + - 49 + - - 39 + + col0 FROM tab2 AS cor0
----
41
57
67

query I rowsort
SELECT - col1 + col2 * - col0 AS col2 FROM tab1
----
-4910
-5020
-6235

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT + SUM( col2 ) * - + COUNT( * ) * - + 83 AS col1 FROM tab1
----
55527

skipif mysql # not compatible
query I rowsort label-4466
SELECT + SUM ( col2 ) * - + COUNT ( * ) * - + 83 AS col1 FROM tab1
----
55527

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT + + MAX( ALL + 67 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
67

skipif mysql # not compatible
query I rowsort label-4467
SELECT + + MAX ( ALL + 67 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
67

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4469
SELECT col2 * - col1 / + 28 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT col2 * - col1 / + 28 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - ( col2 ), + col2 col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT DISTINCT - 44 * + - ( - - ( + + col0 ) ) FROM tab0 AS cor0
----
3828
4268
660

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4472
SELECT + CAST( 19 AS SIGNED ), col1 * - col1 col2 FROM tab0 AS cor0
----
19
-1
19
-441
19
-6561

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4472
SELECT + CAST ( 19 AS INTEGER ), col1 * - col1 col2 FROM tab0 AS cor0
----
19
-1
19
-441
19
-6561

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col1 * - 96 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * + + ( + + col0 ) + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 85 * 98 * + col1 AS col2 FROM tab2 AS cor0
----
-424830
-558110
-641410

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT ALL 9 DIV + col1 col1 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4476
SELECT ALL 9 / + col1 col1 FROM tab1 cor0
----
0
0
1

query II rowsort
SELECT ALL col0 * + + ( + col0 ), col0 FROM tab0
----
225
15
7569
87
9409
97

query I rowsort
SELECT - ( 68 ) * - + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1564
2720
3944

query I rowsort
SELECT DISTINCT + 83 * - col2 FROM tab2
----
-1909
-3320
-4814

query I rowsort
SELECT DISTINCT ( - 5 ) AS col2 FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT + + SUM( DISTINCT + col1 ) AS col2 FROM tab1 WHERE NOT 18 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4481
SELECT + + SUM ( DISTINCT + col1 ) AS col2 FROM tab1 WHERE NOT 18 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-4482
SELECT + 4 AS col0, 96 * + MAX( DISTINCT - + col0 ), + 58 AS col2 FROM tab1
----
4
-4896
58

skipif mysql # not compatible
query III rowsort label-4482
SELECT + 4 AS col0, 96 * + MAX ( DISTINCT - + col0 ), + 58 AS col2 FROM tab1
----
4
-4896
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT ALL + SUM( ALL + + ( col1 ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL + SUM ( ALL + + ( col1 ) ) FROM tab0
----
103

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 27 NOT BETWEEN NULL AND ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * + + 60 * - 19 - - col1 IN ( - 62, + col0 + + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4486
SELECT - ( + COUNT( DISTINCT + 26 ) ) AS col0, 39 AS col1 FROM tab1 AS cor0
----
-1
39

skipif mysql # not compatible
query II rowsort label-4486
SELECT - ( + COUNT ( DISTINCT + 26 ) ) AS col0, 39 AS col1 FROM tab1 AS cor0
----
-1
39

query I rowsort
SELECT ALL + 71 * - 48 FROM tab0 AS cor0
----
-3408
-3408
-3408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4488
SELECT ALL - + 88 + COUNT( * ) AS col0, COUNT( * ) / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-4488
SELECT ALL - + 88 + COUNT ( * ) AS col0, COUNT ( * ) / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-79
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4489
SELECT DISTINCT col1 * - + col0 / + CAST( NULL AS SIGNED ) + - + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT col1 * - + col0 / + CAST ( NULL AS INTEGER ) + - + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 + + col0 * - + 56 AS col1 FROM tab1 cor0
----
-2870
-4765
-5143

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT - MIN( DISTINCT + + 44 ) AS col1 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-4491
SELECT - MIN ( DISTINCT + + 44 ) AS col1 FROM tab0 AS cor0
----
-44

query I rowsort
SELECT - col1 * - col1 + - 87 + + - col1 FROM tab0 AS cor0
----
-87
333
6393

onlyif mysql # aggregate syntax: 
query II rowsort label-4493
SELECT 62 col1, - COUNT( ALL + col1 ) FROM tab0
----
62
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4493
SELECT 62 col1, - COUNT ( ALL + col1 ) FROM tab0
----
62
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT DISTINCT - SUM( + col0 ) - MIN( ALL col2 ) FROM tab2
----
-208

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT - SUM ( + col0 ) - MIN ( ALL col2 ) FROM tab2
----
-208

query I rowsort
SELECT ALL col1 + - 14 AS col2 FROM tab2
----
37
53
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT COUNT( * ) + - 37 AS col2 FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-4496
SELECT COUNT ( * ) + - 37 AS col2 FROM tab2
----
-34

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 7 * col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 11 + + - col0 - 27 * - col2 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT ALL MIN( DISTINCT col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL MIN ( DISTINCT col0 ) AS col2 FROM tab1
----
51

query I rowsort
SELECT DISTINCT - ( + col2 ) * 78 FROM tab2 cor0
----
-1794
-3120
-4524

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT DISTINCT + 67 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-4501
SELECT DISTINCT + 67 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-201

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 + - + col2 * + 41 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + 37 / + col2 ) NOT BETWEEN col0 + - col1 AND - + 91
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4504
SELECT 64 AS col0, COUNT( * ) FROM tab1 AS cor0
----
64
3

skipif mysql # not compatible
query II rowsort label-4504
SELECT 64 AS col0, COUNT ( * ) FROM tab1 AS cor0
----
64
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4505
SELECT DISTINCT - COUNT( * ) AS col1, - 84 AS col0 FROM tab1 AS cor0
----
-3
-84

skipif mysql # not compatible
query II rowsort label-4505
SELECT DISTINCT - COUNT ( * ) AS col1, - 84 AS col0 FROM tab1 AS cor0
----
-3
-84

query I rowsort
SELECT ALL col1 * - + ( 84 ) FROM tab2
----
-4284
-5628
-6468

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4507
SELECT * FROM tab2 WHERE NOT - ( + ( - col0 ) ) * col1 * - + CAST( col1 AS SIGNED ) + + col2 * col0 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4507
SELECT * FROM tab2 WHERE NOT - ( + ( - col0 ) ) * col1 * - + CAST ( col1 AS INTEGER ) + + col2 * col0 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4508
SELECT 57 * + CAST( NULL AS SIGNED ) AS col0, col2 * - 3 FROM tab1
----
NULL
-177
NULL
-204
NULL
-288

skipif mysql # not compatible
query II rowsort label-4508
SELECT 57 * + CAST ( NULL AS INTEGER ) AS col0, col2 * - 3 FROM tab1
----
NULL
-177
NULL
-204
NULL
-288

query I rowsort
SELECT DISTINCT + ( col0 ) * - 54 FROM tab2
----
-2484
-3456
-4050

query II rowsort
SELECT 36 * + - col1 + + + col0, col2 AS col1 FROM tab2 AS cor0
----
-1790
23
-2337
58
-2708
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 * 29 AND 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT COUNT( + 26 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4512
SELECT COUNT ( + 26 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4513
SELECT + 59 DIV COUNT( * ) AS col2 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-4513
SELECT + 59 / COUNT ( * ) AS col2 FROM tab2
----
19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN 1 * 72 + + - col0 AND - col1 * - 79 + col1 * 93
----

query I rowsort
SELECT DISTINCT + col1 * col2 + col1 + - 35 AS col1 FROM tab1 AS cor0
----
1323
265
3208

onlyif mysql # DIV for integer division: 
query I rowsort label-4516
SELECT ALL 77 DIV + col0 + + col1 + + col0 + 90 FROM tab1 AS cor0
----
156
180
228

skipif mysql # not compatible
query I rowsort label-4516
SELECT ALL 77 / + col0 + + col1 + + col0 + 90 FROM tab1 AS cor0
----
156
180
228

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT + MIN( ALL - + col0 ) + + + ( 81 ) FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4517
SELECT + MIN ( ALL - + col0 ) + + + ( 81 ) FROM tab1 AS cor0
----
-10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 81 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4519
SELECT CAST( NULL AS DECIMAL ) + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4519
SELECT CAST ( NULL AS REAL ) + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 83 + + col1 FROM tab2 AS cor0
----
-16
-32
-6

query I rowsort
SELECT DISTINCT - ( - 24 ) + - - 27 FROM tab0 AS cor0
----
51

query I rowsort
SELECT ALL + + col1 - + + col0 AS col0 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT 40 + 15 FROM tab1 AS cor0
----
55
55
55

query I rowsort
SELECT ALL ( col2 ) * - col1 + - col1 AS col2 FROM tab2 AS cor0
----
-1224
-3157
-3953

query I rowsort
SELECT + col0 + - 35 FROM tab0 cor0
----
-20
52
62

query I rowsort
SELECT DISTINCT - 14 FROM tab1 WHERE NULL IS NULL
----
-14

query I rowsort
SELECT ALL 93 - + - col2 * - 99 AS col2 FROM tab2 WHERE NOT - - col1 / + col1 + col2 NOT IN ( - 76 * - + col1, col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4528
SELECT 26 - + COUNT( * ) / CAST( NULL AS SIGNED ) - + + SUM( - + 54 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4528
SELECT 26 - + COUNT ( * ) / CAST ( NULL AS INTEGER ) - + + SUM ( - + 54 ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT DISTINCT - ( - MIN( + + col2 ) ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT - ( - MIN ( + + col2 ) ) AS col2 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT ALL - SUM( + + 69 ) FROM tab2 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL - SUM ( + + 69 ) FROM tab2 AS cor0
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT - SUM( - - 90 ) AS col1 FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-4531
SELECT - SUM ( - - 90 ) AS col1 FROM tab2
----
-270

onlyif mysql # aggregate syntax: 
query II rowsort label-4532
SELECT ALL COUNT( * ), - 28 AS col1 FROM tab1
----
3
-28

skipif mysql # not compatible
query II rowsort label-4532
SELECT ALL COUNT ( * ), - 28 AS col1 FROM tab1
----
3
-28

query I rowsort
SELECT + 64 * + - 41 AS col1 FROM tab0
----
-2624
-2624
-2624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 63 ) col0 FROM tab1
----
63
63
63

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) IN ( 75, - col2 + - col0 - - ( - 95 ) )
----

query I rowsort
SELECT - col0 * + 49 AS col1 FROM tab1 AS cor0
----
-2499
-4165
-4459

query I rowsort
SELECT - ( + - 43 ) FROM tab2 AS cor0
----
43
43
43

query I rowsort
SELECT - - col0 * - 71 * - + 79 AS col2 FROM tab1 AS cor0
----
286059
476765
510419

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4539
SELECT ALL + 49 * + 99 / CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4539
SELECT ALL + 49 * + 99 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 89 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT DISTINCT MAX( 85 ) AS col2 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-4541
SELECT DISTINCT MAX ( 85 ) AS col2 FROM tab2
----
85

query II rowsort
SELECT 74 AS col2, + col0 FROM tab1
----
74
51
74
85
74
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT DISTINCT - 40 * + + MIN( DISTINCT col1 ) AS col2 FROM tab1
----
-200

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT - 40 * + + MIN ( DISTINCT col1 ) AS col2 FROM tab1
----
-200

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( col0 ) <= - 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT ( - MAX( - 20 ) ) col2 FROM tab0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4545
SELECT ( - MAX ( - 20 ) ) col2 FROM tab0
----
20

onlyif mysql # DIV for integer division: 
query II rowsort label-4546
SELECT 92, 28 DIV - col2 + 76 AS col2 FROM tab2
----
92
75
92
76
92
76

skipif mysql # not compatible
query II rowsort label-4546
SELECT 92, 28 / - col2 + 76 AS col2 FROM tab2
----
92
75
92
76
92
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT DISTINCT - - 89 + + + 11 * - COUNT( * ) FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-4547
SELECT DISTINCT - - 89 + + + 11 * - COUNT ( * ) FROM tab1 AS cor0
----
56

query I rowsort
SELECT DISTINCT - + ( - + col2 ) FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT + col1 + col0 + + col0 + - - col2 + - 62 + 10 + + col2 * - col1 - + - 60 AS col1 FROM tab0 cor0
----
-3641
203
3

query III rowsort
SELECT * FROM tab1 WHERE NULL < col2 * col0 + - - col1
----

query II rowsort
SELECT 64 + - - col1 AS col0, col1 - - 19 AS col0 FROM tab2
----
115
70
131
86
141
96

query I rowsort
SELECT ALL col0 * + - 53 AS col2 FROM tab2
----
-2438
-3392
-3975

query II rowsort
SELECT ALL - - 55 + - col0, - col2 + 37 AS col1 FROM tab1 cor0
----
-30
-22
-36
-31
4
-59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4554
SELECT AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4554
SELECT AVG ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT + MAX( ALL - - 96 ) * - SUM( ALL ( + col2 ) ) - - COUNT( * ) AS col2 FROM tab1
----
-21405

skipif mysql # not compatible
query I rowsort label-4556
SELECT + MAX ( ALL - - 96 ) * - SUM ( ALL ( + col2 ) ) - - COUNT ( * ) AS col2 FROM tab1
----
-21405

onlyif mysql # aggregate syntax: 
query II rowsort label-4557
SELECT ALL + ( + + COUNT( * ) ) - 72 col2, + MAX( + 59 ) AS col2 FROM tab0
----
-69
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4557
SELECT ALL + ( + + COUNT ( * ) ) - 72 col2, + MAX ( + 59 ) AS col2 FROM tab0
----
-69
59

query II rowsort
SELECT DISTINCT ( + 25 ) * - col1, 64 AS col1 FROM tab2
----
-1275
64
-1675
64
-1925
64

onlyif mysql # DIV for integer division: 
query I rowsort label-4559
SELECT DISTINCT - col0 DIV 73 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT - col0 / 73 FROM tab1
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4560
SELECT DISTINCT - col0 AS col0, CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

skipif mysql # not compatible
query II rowsort label-4560
SELECT DISTINCT - col0 AS col0, CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL < col0 / - col1
----

query I rowsort
SELECT 13 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + + 51 AS col1 FROM tab0 AS cor0 WHERE - 68 + + 64 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= - 59
----

query I rowsort
SELECT DISTINCT - 68 FROM tab1 WHERE ( 57 * - col1 ) IS NOT NULL
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT ALL MIN( - col1 ) col2 FROM tab1
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4566
SELECT ALL MIN ( - col1 ) col2 FROM tab1
----
-47

query I rowsort
SELECT ALL 22 * 2 + - col2 AS col0 FROM tab1
----
-15
-24
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4568
SELECT DISTINCT + col2 * - CAST( NULL AS SIGNED ) + 65 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4568
SELECT DISTINCT + col2 * - CAST ( NULL AS INTEGER ) + 65 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 28 + col2 AS col2 FROM tab0
----
127
38
75

query I rowsort
SELECT 29 + 58 FROM tab1
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT DISTINCT - COUNT( * ) * 90 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-270

skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT - COUNT ( * ) * 90 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT ( - col1 + + col1 * + col0 ) IS NOT NULL
----

query I rowsort
SELECT - col0 + + col1 * + col2 FROM tab2 WHERE - 55 + col1 IS NOT NULL
----
1127
3016
3811

query III rowsort
SELECT * FROM tab0 WHERE NOT + 88 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT ALL 42 * - COUNT( ALL 14 ) FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL 42 * - COUNT ( ALL 14 ) FROM tab0
----
-126

query I rowsort
SELECT - ( - 35 ) AS col1 FROM tab2
----
35
35
35

query I rowsort
SELECT col2 FROM tab2 WHERE NOT col2 IS NULL
----
23
40
58

query I rowsort
SELECT - 13 * + col2 + - col0 FROM tab2
----
-345
-584
-829

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4580
SELECT - col0 * + col2 + CAST( col1 AS SIGNED ) DIV col0 FROM tab0
----
-700
-870
-9603

skipif mysql # not compatible
query I rowsort label-4580
SELECT - col0 * + col2 + CAST ( col1 AS INTEGER ) / col0 FROM tab0
----
-700
-870
-9603

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE 75 >= ( 30 )
----
59
68
96

query I rowsort
SELECT ALL col2 * + ( col1 ) + ( 53 + col0 ) FROM tab0
----
249
350
3875

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 57 - col2 FROM tab2
----
-1
17
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4585
SELECT col0 + CAST( NULL AS SIGNED ) * + ( + col1 + + col0 * - 80 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4585
SELECT col0 + CAST ( NULL AS INTEGER ) * + ( + col1 + + col0 * - 80 ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + col2 ) AS col1 FROM tab0 WHERE + col0 * col2 NOT IN ( - col1 * 49 + + col0 * - col2 )
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 17 col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
17

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 14 ) NOT IN ( col0 * + col0 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT + COUNT( ALL - 25 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4589
SELECT + COUNT ( ALL - 25 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 32 col2 FROM tab0 AS cor0 WHERE ( - ( col2 ) ) IS NULL
----

query I rowsort
SELECT ALL + 24 * col0 + - col2 AS col2 FROM tab2 AS cor0
----
1081
1496
1742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4592
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4592
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4593
SELECT DISTINCT - col1 / - ( + col1 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT - col1 / - ( + col1 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4594
SELECT ALL * FROM tab1 WHERE NOT NULL >= ( CAST( + 96 AS DECIMAL ) * + col0 - - 87 )
----

skipif mysql # not compatible
query III rowsort label-4594
SELECT ALL * FROM tab1 WHERE NOT NULL >= ( CAST ( + 96 AS REAL ) * + col0 - - 87 )
----

query I rowsort
SELECT ALL 82 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT ALL COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * + col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4598
SELECT 33 + - col1 DIV - col1 FROM tab2
----
34
34
34

skipif mysql # not compatible
query I rowsort label-4598
SELECT 33 + - col1 / - col1 FROM tab2
----
34
34
34

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE ( + col0 * - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE + col1 NOT IN ( + col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-4600
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE + col1 NOT IN ( + col0 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4601
SELECT - 19 / + 48 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT - 19 / + 48 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4602
SELECT 71 + - col0 DIV + col0 FROM tab2 AS cor0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-4602
SELECT 71 + - col0 / + col0 FROM tab2 AS cor0
----
70
70
70

query I rowsort
SELECT DISTINCT - col2 + col2 FROM tab1 AS cor0 WHERE NOT ( - col0 ) NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL BETWEEN NULL AND + col2 + - col1
----

query I rowsort
SELECT DISTINCT 1 FROM tab0 AS cor0 WHERE NOT col2 * 52 + - col1 IS NOT NULL
----

query I rowsort
SELECT + + 49 * + 33 + + col0 FROM tab0 AS cor0
----
1632
1704
1714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4607
SELECT ALL + MAX( 34 ) * - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL + MAX ( 34 ) * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - 86 * col2 + ( + col0 ) AS col1 FROM tab0 AS cor0
----
4057
8611
947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 - col0 col0 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT DISTINCT + col2 - - 44 * col0 AS col1 FROM tab0 AS cor0
----
3838
4367
707

query I rowsort
SELECT ALL col0 + - - 49 AS col1 FROM tab0
----
136
146
64

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND - col0 * col2
----

query I rowsort
SELECT ALL 94 * + col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4614
SELECT DISTINCT - 78 DIV + + 20 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT - 78 / + + 20 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT - MAX( DISTINCT col2 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4615
SELECT - MAX ( DISTINCT col2 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4616
SELECT ALL + ( + 84 ) DIV 78 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL + ( + 84 ) / 78 AS col0 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT + COUNT( * ) * 27 AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4617
SELECT + COUNT ( * ) * 27 AS col0 FROM tab0
----
81

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NOT col1 + 46 = NULL OR NOT col2 = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4619
SELECT 9 DIV 67 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4619
SELECT 9 / 67 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 * - col2 col1 FROM tab1
----
1121
1292
1824

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col0 ) BETWEEN ( + col0 ) AND + 35
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT DISTINCT SUM( col0 ) + - 25 * + 31 AS col1 FROM tab1 AS cor0 WHERE NOT ( - col2 * 74 ) IS NULL
----
-548

skipif mysql # not compatible
query I rowsort label-4623
SELECT DISTINCT SUM ( col0 ) + - 25 * + 31 AS col1 FROM tab1 AS cor0 WHERE NOT ( - col2 * 74 ) IS NULL
----
-548

query I rowsort
SELECT + col1 * + col2 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4625
SELECT - + 21 DIV 71 + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4625
SELECT - + 21 / 71 + col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT MIN( ALL - ( + 87 ) ) * 64 AS col0 FROM tab0 AS cor0
----
-5568

skipif mysql # not compatible
query I rowsort label-4626
SELECT MIN ( ALL - ( + 87 ) ) * 64 AS col0 FROM tab0 AS cor0
----
-5568

query I rowsort
SELECT DISTINCT - 59 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT DISTINCT - COUNT( - 79 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT - COUNT ( - 79 ) AS col0 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 col1, - col1 AS col2 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT - col1 * + - 18 AS col0 FROM tab1 AS cor0
----
252
846
90

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > + + col0 + - col1
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT + col0 * col1 * - col1 IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col0 / - 77 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4634
SELECT - CAST( NULL AS SIGNED ) * col1 * - col2 * - - 12 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT - CAST ( NULL AS INTEGER ) * col1 * - col2 * - - 12 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 11 * - ( + col0 ) AS col2 FROM tab0
----
-1067
-165
-957

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT + ( + COUNT( DISTINCT + col1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4636
SELECT + ( + COUNT ( DISTINCT + col1 ) ) FROM tab1
----
3

query I rowsort
SELECT 96 AS col1 FROM tab2 WHERE ( + col1 ) IS NOT NULL
----
96
96
96

query I rowsort
SELECT - col0 * - + 29 AS col1 FROM tab2
----
1334
1856
2175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4639
SELECT + COUNT( * ) DIV + SUM( - + 46 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4639
SELECT + COUNT ( * ) / + SUM ( - + 46 ) FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 BETWEEN col2 / + - 86 AND NULL
----

query I rowsort
SELECT ALL 61 - + + col2 + + 4 FROM tab1 AS cor0
----
-3
-31
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col0 ) * + col1 col1 FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 NOT BETWEEN NULL AND - col1 * - + col0 + + col2
----

query I rowsort
SELECT DISTINCT + 59 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 17 + + col0 AS col2 FROM tab1 cor0
----
34
68
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4648
SELECT ALL + ( 18 ) - col1 + + + CAST( NULL AS SIGNED ) * + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL + ( 18 ) - col1 + + + CAST ( NULL AS INTEGER ) * + col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT + 7 - + COUNT( * ) col0 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4649
SELECT + 7 - + COUNT ( * ) col0 FROM tab2 AS cor0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4650
SELECT DISTINCT ( 25 ) / + + CAST( NULL AS SIGNED ) * - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT ( 25 ) / + + CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT MIN( - col2 ) - + 98 FROM tab2 WHERE NOT - ( 92 ) NOT IN ( - 67 * - + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4651
SELECT MIN ( - col2 ) - + 98 FROM tab2 WHERE NOT - ( 92 ) NOT IN ( - 67 * - + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT COUNT( DISTINCT + 44 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4652
SELECT COUNT ( DISTINCT + 44 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT MAX( + ( - 71 ) ) FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-4653
SELECT MAX ( + ( - 71 ) ) FROM tab1
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4654
SELECT col1, - CAST( NULL AS SIGNED ) * - + 69 AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-4654
SELECT col1, - CAST ( NULL AS INTEGER ) * - + 69 AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4655
SELECT DISTINCT + ( + + col0 ) DIV - + 98 + - col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4655
SELECT DISTINCT + ( + + col0 ) / - + 98 + - col0 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-4656
SELECT - 27 * - + 34 AS col2, + COUNT( * ) * - ( - MAX( ALL + col0 ) ) FROM tab2
----
918
225

skipif mysql # not compatible
query II rowsort label-4656
SELECT - 27 * - + 34 AS col2, + COUNT ( * ) * - ( - MAX ( ALL + col0 ) ) FROM tab2
----
918
225

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT DISTINCT - 63 * - + COUNT( * ) + 31 AS col0 FROM tab1 AS cor0
----
220

skipif mysql # not compatible
query I rowsort label-4657
SELECT DISTINCT - 63 * - + COUNT ( * ) + 31 AS col0 FROM tab1 AS cor0
----
220

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 31 BETWEEN 64 * + 46 + + col1 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * 39 AS col1 FROM tab0 AS cor0 WHERE NOT col0 * - 66 + + col0 NOT BETWEEN col0 AND ( + col0 + 8 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT MIN( DISTINCT 8 ) * - + COUNT( * ) - + - 98 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
26

skipif mysql # not compatible
query I rowsort label-4660
SELECT MIN ( DISTINCT 8 ) * - + COUNT ( * ) - + - 98 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT + + 29 + + - COUNT( * ) + + COUNT( * ) * - 46 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-394

skipif mysql # not compatible
query I rowsort label-4661
SELECT + + 29 + + - COUNT ( * ) + + COUNT ( * ) * - 46 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-394

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 >= col0 + col0 + + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 > 42
----
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT DISTINCT + ( COUNT( * ) ) * + SUM( ALL + 6 ) + - - 72 FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-4664
SELECT DISTINCT + ( COUNT ( * ) ) * + SUM ( ALL + 6 ) + - - 72 FROM tab0 AS cor0
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4665
SELECT ALL - CAST( + ( + ( - 28 ) ) AS SIGNED ) + + col2 * col2 FROM tab0 AS cor0
----
128
2237
9829

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL - CAST ( + ( + ( - 28 ) ) AS INTEGER ) + + col2 * col2 FROM tab0 AS cor0
----
128
2237
9829

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT COUNT( - 2 ) + - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 32 BETWEEN col0 AND - - 21
----
0

skipif mysql # not compatible
query I rowsort label-4666
SELECT COUNT ( - 2 ) + - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 32 BETWEEN col0 AND - - 21
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT - SUM( DISTINCT ( + + col0 ) ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4667
SELECT - SUM ( DISTINCT ( + + col0 ) ) FROM tab0 AS cor0
----
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + - 95 + - col2 + 6 * + col2 + + col0 col0 FROM tab2 AS cor0
----
2346
4064
5875

query I rowsort
SELECT col1 * 78 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT col1 + 69, col0 FROM tab0 AS cor0
----
150
15
70
97
90
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4671
SELECT ALL - 50 DIV CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-4671
SELECT ALL - 50 / CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-16

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 20 * col0 * - - col1 < + - 41 * - 75 / - col1
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + ( - col1 ) col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT COUNT( * ) * + COUNT( * ) col0 FROM tab1 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4674
SELECT COUNT ( * ) * + COUNT ( * ) col0 FROM tab1 WHERE - col1 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN + - col0 AND ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT ALL MAX( DISTINCT + ( + + col2 ) ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL MAX ( DISTINCT + ( + + col2 ) ) AS col1 FROM tab2
----
58

query I rowsort
SELECT DISTINCT 80 * - + col0 + - + col1 + - + col0 * - + col0 FROM tab1
----
-1493
420
954

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT ALL - SUM( DISTINCT - 79 ) AS col0 FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL - SUM ( DISTINCT - 79 ) AS col0 FROM tab1
----
79

query I rowsort
SELECT - 93 AS col2 FROM tab0 WHERE + col1 IS NOT NULL
----
-93
-93
-93

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4681
SELECT - col2 DIV col2 DIV + + 11 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4681
SELECT - col2 / col2 / + + 11 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + 98 FROM tab0 AS cor0
----
108
145
197

query I rowsort
SELECT DISTINCT - 2 * + + ( + col1 ) + + 61 AS col1 FROM tab0 cor0
----
-101
19
59

query II rowsort
SELECT col1, - col1 AS col2 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

query I rowsort
SELECT DISTINCT + 44 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT ALL - - 65 - - - ( MIN( + 66 ) ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4686
SELECT ALL - - 65 - - - ( MIN ( + 66 ) ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4687
SELECT ALL CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4688
SELECT + col2 + + CAST( col2 AS SIGNED ) AS col2 FROM tab1
----
118
136
192

skipif mysql # not compatible
query I rowsort label-4688
SELECT + col2 + + CAST ( col2 AS INTEGER ) AS col2 FROM tab1
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT ALL - + COUNT( * ) + + + 54 * - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-495

skipif mysql # not compatible
query I rowsort label-4689
SELECT ALL - + COUNT ( * ) + + + 54 * - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-495

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT + ( + 86 ) + + - 73 NOT BETWEEN + col1 AND + col2 )
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4691
SELECT ALL - - col0 FROM tab2 AS cor0 WHERE NULL < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL - - col0 FROM tab2 AS cor0 WHERE NULL < CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col0 * - - col1 - + 81 FROM tab2 AS cor0
----
-2427
-5009
-5106

query II rowsort
SELECT - - 50 * col1 AS col1, - 59 FROM tab1 AS cor0
----
2350
-59
250
-59
700
-59

query I rowsort
SELECT DISTINCT col2 * - 6 AS col0 FROM tab2 AS cor0
----
-138
-240
-348

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 * col0 / + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT col1 / + col2 < - col2
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 + col1 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
141
61
81

query I rowsort
SELECT ALL 25 * + col0 FROM tab2
----
1150
1600
1875

query I rowsort
SELECT - + 1 FROM tab1 WHERE NOT 80 IS NULL
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 6 * - col1 * col2 AS col1 FROM tab2
----
-18480
-23316
-7038

query I rowsort
SELECT ALL 24 * col2 FROM tab1
----
1416
1632
2304

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4702
SELECT ALL * FROM tab2 WHERE CAST( - - col1 AS SIGNED ) - - col1 > ( CAST( 45 AS SIGNED ) + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4702
SELECT ALL * FROM tab2 WHERE CAST ( - - col1 AS INTEGER ) - - col1 > ( CAST ( 45 AS INTEGER ) + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT ALL + SUM( - + col2 ) AS col1 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL + SUM ( - + col2 ) AS col1 FROM tab1
----
-223

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( - + col1 ) AND - col2 * - + col2 + + 67 + - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL BETWEEN 3 * 16 * + 7 * col1 AND ( + - col1 + col1 ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 67 ) NOT IN ( col2, + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4707
SELECT DISTINCT - 27 DIV + 15 AS col2 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4707
SELECT DISTINCT - 27 / + 15 AS col2 FROM tab1 cor0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4708
SELECT ALL + COUNT( * ) AS col2, MIN( DISTINCT - col2 ) - + - ( - ( + - 91 ) ) * - - SUM( ALL + col0 ) AS col1 FROM tab2
----
3
16777

skipif mysql # not compatible
query II rowsort label-4708
SELECT ALL + COUNT ( * ) AS col2, MIN ( DISTINCT - col2 ) - + - ( - ( + - 91 ) ) * - - SUM ( ALL + col0 ) AS col1 FROM tab2
----
3
16777

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT + 78 + COUNT( * ) AS col2 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-4709
SELECT + 78 + COUNT ( * ) AS col2 FROM tab2
----
81

query I rowsort
SELECT ALL + col0 + 12 - 33 AS col2 FROM tab2 AS cor0
----
25
43
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4711
SELECT DISTINCT - - 86 + + - ( + - ( - 42 ) ) DIV - - ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT - - 86 + + - ( + - ( - 42 ) ) / - - ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
72

query I rowsort
SELECT ALL + 76 + - col1 * - 18 AS col1 FROM tab1 AS cor0
----
166
328
922

query I rowsort
SELECT ALL + + 89 + + + col1 FROM tab1 AS cor0
----
103
136
94

query II rowsort
SELECT col2, - 35 + - - col1 + ( + col0 ) AS col2 FROM tab2 AS cor0
----
23
62
40
106
58
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4715
SELECT CAST( NULL AS SIGNED ) - + col1 AS col0 FROM tab2 AS cor0 WHERE ( col2 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4715
SELECT CAST ( NULL AS INTEGER ) - + col1 AS col0 FROM tab2 AS cor0 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT col1 * - + ( col2 ) FROM tab1 AS cor0 WHERE - col2 + + + col1 IS NOT NULL
----
-1344
-295
-3196

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4717
SELECT ALL + 82 + + 67 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL + 82 + + 67 * + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4718
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 47 * CAST( + 37 AS SIGNED ) / 17 + + - CAST( NULL AS SIGNED ) + col2 + col1 * - - col2 * - 68 + + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4718
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 47 * CAST ( + 37 AS INTEGER ) / 17 + + - CAST ( NULL AS INTEGER ) + col2 + col1 * - - col2 * - 68 + + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT ALL - COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL < - 95 * col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4719
SELECT ALL - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL < - 95 * col1
----
0

query I rowsort
SELECT ALL + col0 + col1 * 80 FROM tab2 cor0
----
4126
5435
6224

query I rowsort
SELECT ALL - ( - 34 ) AS col2 FROM tab1 AS cor0
----
34
34
34

query IIIIII rowsort
SELECT * FROM tab1, tab2 cor0 WHERE 55 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT ALL 44 * - - ( + COUNT( * ) ) AS col2 FROM tab0, tab1 AS cor0
----
396

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL 44 * - - ( + COUNT ( * ) ) AS col2 FROM tab0, tab1 AS cor0
----
396

query I rowsort
SELECT + 17 * - ( - - 55 ) AS col1 FROM tab1
----
-935
-935
-935

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 * - - 88 col0 FROM tab1
----
4539
7565
8099

query I rowsort
SELECT DISTINCT + col1 * 87 FROM tab1 AS cor0
----
1218
4089
435

query I rowsort
SELECT - ( col1 ) + - + 36 * - 87 AS col0 FROM tab0 AS cor0
----
3051
3111
3131

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT SUM( ALL col1 ) + - COUNT( * ) AS col0 FROM tab2 cor0
----
192

skipif mysql # not compatible
query I rowsort label-4728
SELECT SUM ( ALL col1 ) + - COUNT ( * ) AS col0 FROM tab2 cor0
----
192

onlyif mysql # DIV for integer division: 
query II rowsort label-4729
SELECT + 22 + 35 * + col1 + + ( + col2 ) + 99 DIV col0, 94 AS col1 FROM tab0 AS cor0
----
157
94
2910
94
768
94

skipif mysql # not compatible
query II rowsort label-4729
SELECT + 22 + 35 * + col1 + + ( + col2 ) + 99 / col0, 94 AS col1 FROM tab0 AS cor0
----
157
94
2910
94
768
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4730
SELECT ALL + col1 - + - col0 + + col0 * + col0 + 73 DIV - - 36 AS col2 FROM tab0 AS cor0
----
323
7679
9509

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL + col1 - + - col0 + + col0 * + col0 + 73 / - - 36 AS col2 FROM tab0 AS cor0
----
323
7679
9509

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4731
SELECT ALL - CAST( - + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL - CAST ( - + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT ( ( NOT ( NOT NULL < + 14 ) ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT DISTINCT + + 48 * + 10 * - 32 + + - COUNT( * ) FROM tab1 AS cor0
----
-15363

skipif mysql # not compatible
query I rowsort label-4733
SELECT DISTINCT + + 48 * + 10 * - 32 + + - COUNT ( * ) FROM tab1 AS cor0
----
-15363

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT - ( - COUNT( * ) ) * + + 76 AS col1 FROM tab2 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-4734
SELECT - ( - COUNT ( * ) ) * + + 76 AS col1 FROM tab2 AS cor0
----
228

onlyif mysql # DIV for integer division: 
query I rowsort label-4735
SELECT - - col1 DIV - col1 - + col0 AS col2 FROM tab1 AS cor0
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-4735
SELECT - - col1 / - col1 - + col0 AS col2 FROM tab1 AS cor0
----
-52
-86
-92

query I rowsort
SELECT DISTINCT 52 FROM tab1 AS cor0 WHERE NULL IS NULL
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-4737
SELECT DISTINCT + COUNT( * ) AS col1, - MIN( + ( + col1 ) ) * - 94 FROM tab1 AS cor0
----
3
470

skipif mysql # not compatible
query II rowsort label-4737
SELECT DISTINCT + COUNT ( * ) AS col1, - MIN ( + ( + col1 ) ) * - 94 FROM tab1 AS cor0
----
3
470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4738
SELECT COUNT( DISTINCT 86 ) * - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ), COUNT( * ) AS col2 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4738
SELECT COUNT ( DISTINCT 86 ) * - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ), COUNT ( * ) AS col2 FROM tab0
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4739
SELECT DISTINCT - col2, + col1 AS col1 FROM tab2 WHERE - + col2 / - col2 + - col2 * + CAST( NULL AS SIGNED ) IS NULL
----
-23
51
-40
77
-58
67

skipif mysql # not compatible
query II rowsort label-4739
SELECT DISTINCT - col2, + col1 AS col1 FROM tab2 WHERE - + col2 / - col2 + - col2 * + CAST ( NULL AS INTEGER ) IS NULL
----
-23
51
-40
77
-58
67

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 - + - col2 NOT BETWEEN ( NULL ) AND col2 * - 27
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4741
SELECT + SUM( DISTINCT + + CAST( col0 AS SIGNED ) ) AS col1 FROM tab1 WHERE NOT ( CAST( + 86 AS SIGNED ) ) > - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT + SUM ( DISTINCT + + CAST ( col0 AS INTEGER ) ) AS col1 FROM tab1 WHERE NOT ( CAST ( + 86 AS INTEGER ) ) > - col1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 >= - 92 + - + col0
----

query I rowsort
SELECT DISTINCT + + 1 AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL + 65 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 * + col1 col0 FROM tab2
----
-1001
-663
-871

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col0 + col1 IS NULL
----

query I rowsort
SELECT + col2 + col0 FROM tab0 AS cor0 WHERE col0 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT DISTINCT - 4 * + + COUNT( * ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT - 4 * + + COUNT ( * ) FROM tab0 AS cor0
----
-12

query I rowsort
SELECT ALL col2 + - col1 + - ( col1 ) AS col2 FROM tab1 AS cor0
----
-26
49
68

query II rowsort
SELECT - 96 * + - col0 AS col2, + 91 - - - col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
4416
40
6144
14
7200
24

query I rowsort
SELECT col2 + - ( - 2 ) AS col2 FROM tab0 AS cor0
----
101
12
49

query I rowsort
SELECT + col0 + 66 * 33 AS col0 FROM tab1 AS cor0
----
2229
2263
2269

onlyif mysql # DIV for integer division: 
query I rowsort label-4753
SELECT - 72 + - - 78 - col1 DIV - - 68 AS col0 FROM tab2 cor0
----
5
6
6

skipif mysql # not compatible
query I rowsort label-4753
SELECT - 72 + - - 78 - col1 / - - 68 AS col0 FROM tab2 cor0
----
5
6
6

query I rowsort
SELECT 95 + + - col1 FROM tab0 cor0
----
14
74
94

query I rowsort
SELECT DISTINCT - + col0 * + + ( 95 ) - col2 + - 21 FROM tab0 AS cor0
----
-1493
-8296
-9335

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT ALL + 8 * + SUM( 77 ) AS col1 FROM tab2
----
1848

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL + 8 * + SUM ( 77 ) AS col1 FROM tab2
----
1848

query II rowsort
SELECT ALL col2 * - col0 AS col0, - col0 AS col1 FROM tab1
----
-4896
-51
-5015
-85
-6188
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT ALL + SUM( ALL col1 ) * COUNT( 5 ) + 64 FROM tab1
----
262

skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL + SUM ( ALL col1 ) * COUNT ( 5 ) + 64 FROM tab1
----
262

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - + 63 * - col2 col0 FROM tab0 AS cor0
----
3008
6336
640

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT - 88 - + 13 - - + COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-4760
SELECT - 88 - + 13 - - + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + + 95 + + col2 col1 FROM tab2 AS cor0
----
169
212
220

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE - + 5 < 72
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4763
SELECT + col1 FROM tab1 WHERE NOT + - CAST( NULL AS SIGNED ) + + col0 BETWEEN - ( - col1 ) AND - + col0 + + + col2 + - col1
----

skipif mysql # not compatible
query I rowsort label-4763
SELECT + col1 FROM tab1 WHERE NOT + - CAST ( NULL AS INTEGER ) + + col0 BETWEEN - ( - col1 ) AND - + col0 + + + col2 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT + COUNT( * ) * - 29 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-4764
SELECT + COUNT ( * ) * - 29 FROM tab1 AS cor0
----
-87

query I rowsort
SELECT ALL col1 * - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL < - 78
----

query I rowsort
SELECT - 37 * - col0 FROM tab1 WHERE NOT ( 64 IS NULL )
----
1887
3145
3367

onlyif mysql # aggregate syntax: 
query II rowsort label-4767
SELECT ALL + COUNT( * ) col2, + COUNT( * ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4767
SELECT ALL + COUNT ( * ) col2, + COUNT ( * ) AS col2 FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4768
SELECT ( - + 76 ) * + - COUNT( * ), - MAX( + col1 ) AS col2 FROM tab1
----
228
-47

skipif mysql # not compatible
query II rowsort label-4768
SELECT ( - + 76 ) * + - COUNT ( * ), - MAX ( + col1 ) AS col2 FROM tab1
----
228
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, - 62 * 31 AS col0 FROM tab2
----
51
-1922
67
-1922
77
-1922

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT ( - MIN( + + 19 ) ) col2 FROM tab1
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4770
SELECT ( - MIN ( + + 19 ) ) col2 FROM tab1
----
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 11 ) + col0 col0 FROM tab2 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT MAX( DISTINCT + + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4772
SELECT MAX ( DISTINCT + + col1 ) FROM tab1
----
47

query I rowsort
SELECT ALL - + col1 + 95 AS col2 FROM tab2 AS cor0
----
18
28
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 85 col2 FROM tab1 cor0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT - + 33 + - COUNT( * ) FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4775
SELECT - + 33 + - COUNT ( * ) FROM tab0 AS cor0
----
-36

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > - 79
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4777
SELECT ALL + 69 DIV col0 AS col0 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL + 69 / col0 AS col0 FROM tab0
----
0
0
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT ALL - - COUNT( ALL + col0 ) + - COUNT( * ) + COUNT( * ) * - 91 AS col0 FROM tab0 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL - - COUNT ( ALL + col0 ) + - COUNT ( * ) + COUNT ( * ) * - 91 AS col0 FROM tab0 AS cor0
----
-273

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4779
SELECT ALL + - col0 - - col1 + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL + - col0 - - col1 + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT DISTINCT COUNT( * ) * + COUNT( * ) + + - 35 AS col0 FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-4780
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) + + - 35 AS col0 FROM tab1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT COUNT( col2 ) FROM tab1 WHERE NULL <> col0 + - - 83
----
0

skipif mysql # not compatible
query I rowsort label-4781
SELECT COUNT ( col2 ) FROM tab1 WHERE NULL <> col0 + - - 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT + 71 + - + COUNT( * ) AS col0 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-4782
SELECT + 71 + - + COUNT ( * ) AS col0 FROM tab0
----
68

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 - - col2 + - col1 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT ALL + 73 * - - COUNT( * ) AS col2 FROM tab2
----
219

skipif mysql # not compatible
query I rowsort label-4784
SELECT ALL + 73 * - - COUNT ( * ) AS col2 FROM tab2
----
219

query I rowsort
SELECT + col0 * col2 * col0 + + col0 * col1 * - + 46 AS col1 FROM tab1
----
216852
366366
406725

query III rowsort
SELECT * FROM tab1 WHERE col1 * + col0 * - ( - col2 ) NOT IN ( col0, - 12 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4787
SELECT DISTINCT + MAX( ALL + - ( + col2 ) ) DIV + + 10 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4787
SELECT DISTINCT + MAX ( ALL + - ( + col2 ) ) / + + 10 FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT ALL - MIN( - col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL - MIN ( - col2 ) FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT - + SUM( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4789
SELECT - + SUM ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
199

query I rowsort
SELECT ALL - + 61 * + col0 AS col2 FROM tab2 AS cor0
----
-2806
-3904
-4575

query I rowsort
SELECT 25 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4792
SELECT DISTINCT COUNT( * ) DIV + ( + MAX( - - col1 ) ) * - 4 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4792
SELECT DISTINCT COUNT ( * ) / + ( + MAX ( - - col1 ) ) * - 4 AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4793
SELECT DISTINCT col2 col1, CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4793
SELECT DISTINCT col2 col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT + 36 * - ( 5 ) AS col0 FROM tab0 AS cor0
----
-180
-180
-180

query I rowsort
SELECT + 3 * - 44 * col2 AS col0 FROM tab1 AS cor0
----
-12672
-7788
-8976

query I rowsort
SELECT DISTINCT + - 7 AS col2 FROM tab1 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-4797
SELECT ALL - 73, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-73
3

skipif mysql # not compatible
query II rowsort label-4797
SELECT ALL - 73, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-73
3

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT col0 <= col2 - - - col0 + + 26
----
10
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > - - 99
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4800
SELECT + COUNT( * ) AS col2, 93 AS col0 FROM tab2 WHERE NOT NULL >= NULL
----
0
93

skipif mysql # not compatible
query II rowsort label-4800
SELECT + COUNT ( * ) AS col2, 93 AS col0 FROM tab2 WHERE NOT NULL >= NULL
----
0
93

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col1 * + col2 + 32
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT - 12 * - 51 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * + + col0 * - col1 * - - 25 + - col1 + col2 AS col2 FROM tab2
----
2697872
7884763
9421866

query I rowsort
SELECT ALL 9 * + - col0 + - col0 FROM tab0 AS cor0
----
-150
-870
-970

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col2 - col1 AND 35
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4806
SELECT - 86 * + - CAST( NULL AS DECIMAL ) * col1 FROM tab2 WHERE 79 * - - col2 + - col2 * - 58 / - - col0 + col1 * - + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4806
SELECT - 86 * + - CAST ( NULL AS REAL ) * col1 FROM tab2 WHERE 79 * - - col2 + - col2 * - 58 / - - col0 + col1 * - + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 88, 91 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 3d78e62f37fea15d54aedcf5821b169e

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT DISTINCT - COUNT( * ) * - + SUM( ALL - col2 ) FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-4808
SELECT DISTINCT - COUNT ( * ) * - + SUM ( ALL - col2 ) FROM tab0
----
-468

query I rowsort
SELECT + 45 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query II rowsort
SELECT DISTINCT col2 AS col1, col1 FROM tab1
----
59
5
68
47
96
14

query II rowsort
SELECT ALL col1 AS col0, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4812
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 <= - col1
----

query I rowsort
SELECT ALL + 10 + - - col0 FROM tab1 AS cor0
----
101
61
95

query I rowsort
SELECT - + 30 + + + col0 FROM tab1 cor0
----
21
55
61

query I rowsort
SELECT + + col2 + - - 84 AS col2 FROM tab0 AS cor0
----
131
183
94

query I rowsort
SELECT ALL + col1 + col2 + + 80 FROM tab0 AS cor0 WHERE - 78 IS NOT NULL
----
111
180
208

query I rowsort
SELECT 44 FROM tab2 WHERE col2 IS NOT NULL
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT ALL - COUNT( * ) + - 89 FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL - COUNT ( * ) + - 89 FROM tab2
----
-92

query I rowsort
SELECT DISTINCT + 13 - 47 FROM tab1
----
-34

query III rowsort
SELECT * FROM tab1 WHERE + ( - + ( + - 45 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT - COUNT( * ) * + 51 AS col0 FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-4822
SELECT - COUNT ( * ) * + 51 AS col0 FROM tab0
----
-153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4823
SELECT DISTINCT 94 * + - COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab0 cor0 WHERE col1 IS NOT NULL OR NULL >= + col2
----
94

skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT 94 * + - COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE col1 IS NOT NULL OR NULL >= + col2
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4824
SELECT - + ( ( - 73 ) ) DIV - + col0 - - - ( - + 94 ) FROM tab2 AS cor0
----
93
93
94

skipif mysql # not compatible
query I rowsort label-4824
SELECT - + ( ( - 73 ) ) / - + col0 - - - ( - + 94 ) FROM tab2 AS cor0
----
93
93
94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 >= - - col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) = - 32
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 col0 FROM tab2 cor0
----
97
97
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + col1 * col1 >= - 97
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - ( + col0 ) * col2 * - col0 - + + col0 + - col0 * col2 + + col2 / - 27 * + col2, col0 * - 57 )
----

query II rowsort
SELECT - col0 / - col2 * + col1 AS col2, ( - - 16 ) FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - col2 AS col2, col1 AS col1 FROM tab0
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT + COUNT( * ) * - - 14 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-4832
SELECT + COUNT ( * ) * - - 14 FROM tab2
----
42

query I rowsort
SELECT - 13 * + col0 * + 69 * + + 89 FROM tab0 cor0
----
-1197495
-6945471
-7743801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4834
SELECT DISTINCT - col0 + + col0 + - col1 * 35 + - + CAST( col0 AS SIGNED ) * + + CAST( NULL AS SIGNED ) * - - col1 * + 93 * 62 col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4834
SELECT DISTINCT - col0 + + col0 + - col1 * 35 + - + CAST ( col0 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) * - - col1 * + 93 * 62 col0 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL + 66, col1 FROM tab0 AS cor0
----
66
1
66
21
66
81

query I rowsort
SELECT ( - col1 ) FROM tab2 AS cor0 WHERE NOT ( ( + col1 IN ( 20, - col0 * - col1 + - col0, - 51 + 17 + - ( - + col0 ), - - ( + 18 ) ) ) )
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT - 19 <= NULL )
----

query I rowsort
SELECT col1 - - + col2 FROM tab1 AS cor0 WHERE NOT 91 * - col2 + + col0 IS NULL
----
110
115
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4839
SELECT ALL + - 40 DIV - COUNT( * ) AS col1 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL + - 40 / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4840
SELECT ALL col1 FROM tab2 WHERE + col1 * - col2 + + + 47 + - - col1 * + 79 + - + CAST( NULL AS SIGNED ) * + + col2 - - col2 + - + col2 / - + 6 * - col1 + + + col0 / + ( + CAST( NULL AS SIGNED ) ) IN ( col1 - - col0 )
----

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL col1 FROM tab2 WHERE + col1 * - col2 + + + 47 + - - col1 * + 79 + - + CAST ( NULL AS INTEGER ) * + + col2 - - col2 + - + col2 / - + 6 * - col1 + + + col0 / + ( + CAST ( NULL AS INTEGER ) ) IN ( col1 - - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 80, col1 col1 FROM tab1
----
80
14
80
47
80
5

query I rowsort
SELECT - 53 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + col1, 69 + 61 + - + 56 AS col2 FROM tab0 WHERE NULL >= - 9
----

query I rowsort
SELECT ( 42 ) AS col0 FROM tab0
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4845
SELECT - + CAST( NULL AS SIGNED ), + col2 * - - col2 AS col1 FROM tab1 AS cor0
----
NULL
3481
NULL
4624
NULL
9216

skipif mysql # not compatible
query II rowsort label-4845
SELECT - + CAST ( NULL AS INTEGER ), + col2 * - - col2 AS col1 FROM tab1 AS cor0
----
NULL
3481
NULL
4624
NULL
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT + MAX( ALL 3 ) + - 34 FROM tab2 WHERE - col1 IS NOT NULL
----
-31

skipif mysql # not compatible
query I rowsort label-4846
SELECT + MAX ( ALL 3 ) + - 34 FROM tab2 WHERE - col1 IS NOT NULL
----
-31

query I rowsort
SELECT ALL 60 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT + col1 * 10 AS col0 FROM tab2
----
510
670
770

query II rowsort
SELECT - ( 97 ) AS col1, - col1 * - 96 AS col2 FROM tab0
----
-97
2016
-97
7776
-97
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT ALL - MAX( DISTINCT - col1 ) + - 35 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL - MAX ( DISTINCT - col1 ) + - 35 FROM tab0 AS cor0
----
-34

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 28 NOT BETWEEN NULL AND 38 / col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4852
SELECT ALL CAST( NULL AS SIGNED ) + + col0 AS col0, + col1 + - col0 AS col0 FROM tab1 cor0
----
NULL
-37
NULL
-44
NULL
-80

skipif mysql # not compatible
query II rowsort label-4852
SELECT ALL CAST ( NULL AS INTEGER ) + + col0 AS col0, + col1 + - col0 AS col0 FROM tab1 cor0
----
NULL
-37
NULL
-44
NULL
-80

query I rowsort
SELECT ALL 48 + col2 FROM tab0 AS cor0
----
147
58
95

query I rowsort
SELECT - ( + + col0 ) AS col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT DISTINCT 54 * - - MIN( + 94 ) - - + 70 FROM tab0
----
5146

skipif mysql # not compatible
query I rowsort label-4855
SELECT DISTINCT 54 * - - MIN ( + 94 ) - - + 70 FROM tab0
----
5146

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 WHERE NOT - 63 IS NOT NULL AND NULL <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT ALL + COUNT( * ) - + 22 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL + COUNT ( * ) - + 22 FROM tab2
----
-19

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4859
SELECT DISTINCT - SUM( ALL CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4859
SELECT DISTINCT - SUM ( ALL CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query II rowsort
SELECT - col0 AS col2, 17 FROM tab1
----
-51
17
-85
17
-91
17

query I rowsort
SELECT col1 * - col0 * - col2 + col1 * + col2 FROM tab1 AS cor0
----
25370
294032
69888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 col0 FROM tab2 AS cor0 WHERE NOT - 19 <> - col0 * col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4863
SELECT + COUNT( * ), MIN( ALL - + col0 ) * + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4863
SELECT + COUNT ( * ), MIN ( ALL - + col0 ) * + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT - + SUM( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-4864
SELECT - + SUM ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
121

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 * - - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT DISTINCT - 41 * COUNT( * ) * COUNT( * ) FROM tab1
----
-369

skipif mysql # not compatible
query I rowsort label-4866
SELECT DISTINCT - 41 * COUNT ( * ) * COUNT ( * ) FROM tab1
----
-369

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4867
SELECT ALL ( + 83 ) / + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL ( + 83 ) / + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 22 FROM tab0 AS cor0 WHERE - col1 * + col1 * 21 IS NULL
----

query II rowsort
SELECT DISTINCT 94 * + col1 + - + 94 + - col1, col2 FROM tab2 AS cor0
----
4649
23
6137
58
7067
40

query I rowsort
SELECT - col2 * + - ( - col0 ) * - + col0 * + col2 FROM tab1 AS cor0
----
23970816
25150225
38291344

query I rowsort
SELECT DISTINCT 10 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4872
SELECT DISTINCT - CAST( col2 AS SIGNED ) * + - col0 / + + 13 * CAST( NULL AS SIGNED ) * + - col1 AS col1 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT - CAST ( col2 AS INTEGER ) * + - col0 / + + 13 * CAST ( NULL AS INTEGER ) * + - col1 AS col1 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT COUNT( * ) FROM tab2 cor0 WHERE NOT - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4873
SELECT COUNT ( * ) FROM tab2 cor0 WHERE NOT - col0 IS NULL
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN col1 + col0 + col1 * + - col2 AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab2 AS cor0 WHERE NOT + col0 * - - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4876
SELECT ALL + 19 DIV - col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4876
SELECT ALL + 19 / - col1 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE ( NULL >= NULL )
----

query I rowsort
SELECT DISTINCT - col0 + + + col1 AS col2 FROM tab2 WHERE NOT NULL <= + 44
----

query I rowsort
SELECT ALL - 59 - - col1 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT ALL + ( - + 30 ) + + + MIN( - - col1 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-25

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL + ( - + 30 ) + + + MIN ( - - col1 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-25

query I rowsort
SELECT ALL - col2 * - - 12 + - col0 AS col1 FROM tab0 AS cor0
----
-1285
-207
-579

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT MAX( ALL + - 40 ) FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-4882
SELECT MAX ( ALL + - 40 ) FROM tab0 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT ALL + + SUM( - col0 ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-182

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL + + SUM ( - col0 ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4884
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-4884
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
1

query I rowsort
SELECT DISTINCT - 56 FROM tab2 AS cor0 WHERE NOT NULL < + 16 + - - col0 * - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4886
SELECT ALL + COUNT( ALL - 88 ) * - SUM( ALL - ( + - col2 ) ) + CAST( + COUNT( * ) AS SIGNED ) DIV + COUNT( * ) AS col2 FROM tab2
----
-362

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL + COUNT ( ALL - 88 ) * - SUM ( ALL - ( + - col2 ) ) + CAST ( + COUNT ( * ) AS INTEGER ) / + COUNT ( * ) AS col2 FROM tab2
----
-362

onlyif mysql # aggregate syntax: 
query II rowsort label-4887
SELECT DISTINCT - COUNT( * ) * 59, + 77 AS col1 FROM tab2
----
-177
77

skipif mysql # not compatible
query II rowsort label-4887
SELECT DISTINCT - COUNT ( * ) * 59, + 77 AS col1 FROM tab2
----
-177
77

query I rowsort
SELECT 49 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 IS NULL AND NOT col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 6 + + col1 + 65 * - col2 * + col2 col0 FROM tab0 AS cor0
----
-143510
-637070
-6485

query I rowsort
SELECT DISTINCT - - col0 + + + col2 FROM tab1 AS cor0
----
144
147
159

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 NOT BETWEEN + 45 AND NULL
----
87
21
10

query II rowsort
SELECT - col1 AS col1, 63 - col0 AS col1 FROM tab0 AS cor0 WHERE - col0 * col0 IS NOT NULL
----
-1
-34
-21
-24
-81
48

query II rowsort
SELECT - - 66 AS col0, + 77 * + col2 FROM tab2 cor0
----
66
1771
66
3080
66
4466

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT ALL + COUNT( * ) + + 51 + - - 17 AS col0 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL + COUNT ( * ) + + 51 + - - 17 AS col0 FROM tab0 AS cor0
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 88 AS col2, - col0 + + + 16 col2 FROM tab0 AS cor0
----
-88
-71
-88
-81
-88
1

query I rowsort
SELECT + ( - - 93 ) FROM tab1 AS cor0
----
93
93
93

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 <> + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4899
SELECT - + 82, 67 + - - MAX( col0 ) AS col1 FROM tab0 AS cor0
----
-82
164

skipif mysql # not compatible
query II rowsort label-4899
SELECT - + 82, 67 + - - MAX ( col0 ) AS col1 FROM tab0 AS cor0
----
-82
164

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4900
SELECT ALL * FROM tab1 WHERE CAST( NULL AS SIGNED ) + - col2 NOT BETWEEN + col2 AND - - 7
----

skipif mysql # not compatible
query III rowsort label-4900
SELECT ALL * FROM tab1 WHERE CAST ( NULL AS INTEGER ) + - col2 NOT BETWEEN + col2 AND - - 7
----

query I rowsort
SELECT DISTINCT + 66 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT - ( - 32 ) AS col2, - 51 * + col0 AS col2 FROM tab0
----
32
-4437
32
-4947
32
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT - MIN( DISTINCT + - 32 ) AS col1 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-4903
SELECT - MIN ( DISTINCT + - 32 ) AS col1 FROM tab0
----
32

query II rowsort
SELECT 20 * - + col0 AS col2, - col1 FROM tab0
----
-1740
-21
-1940
-1
-300
-81

query I rowsort
SELECT ( - 49 ) * - col0 + - - 18 AS col0 FROM tab2
----
2272
3154
3693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 33 col2 FROM tab1 AS cor0
----
-1683
-2805
-3003

query I rowsort
SELECT - col0 * col2 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1058
-2560
-4350

query I rowsort
SELECT - col2 + - col2 * 7 AS col2 FROM tab2
----
-184
-320
-464

query II rowsort
SELECT 87, col1 AS col0 FROM tab2 cor0
----
87
51
87
67
87
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4910
SELECT ALL + ( - ( 81 ) ), COUNT( * ) col2 FROM tab1 AS cor0
----
-81
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4910
SELECT ALL + ( - ( 81 ) ), COUNT ( * ) col2 FROM tab1 AS cor0
----
-81
3

query II rowsort
SELECT ALL + 54 AS col0, 42 FROM tab0 AS cor0
----
54
42
54
42
54
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT ALL - - 73 + - COUNT( * ) AS col0 FROM tab0 cor0
----
70

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL - - 73 + - COUNT ( * ) AS col0 FROM tab0 cor0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4913
SELECT col2 * - - col0 * - col0 * - col0 * + CAST( NULL AS SIGNED ) + - - 34 AS col0 FROM tab1 AS cor0 WHERE ( CAST( + 58 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4913
SELECT col2 * - - col0 * - col0 * - col0 * + CAST ( NULL AS INTEGER ) + - - 34 AS col0 FROM tab1 AS cor0 WHERE ( CAST ( + 58 AS INTEGER ) ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col1 FROM tab0 WHERE + + 12 * - ( col0 ) - + - col0 = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0
----
9

query I rowsort
SELECT - 67 * - - col0 AS col2 FROM tab0
----
-1005
-5829
-6499

query I rowsort
SELECT DISTINCT col0 * + - col1 AS col2 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT col1 * + - col1 * + - col1 FROM tab1
----
103823
125
2744

query I rowsort
SELECT + + col1 * ( - - col0 ) AS col0 FROM tab0 WHERE - col0 <> NULL
----

query I rowsort
SELECT DISTINCT + col0 * + + col1 * - col2 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4922
SELECT DISTINCT + COUNT( * ) * + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4922
SELECT DISTINCT + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 31 + col0 FROM tab2
----
106
77
95

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( - col0 ) * + + col1 IS NULL
----

query II rowsort
SELECT ALL + 99 * - 83 * - col1 + - col2 + + col0 - - 70 - col0 AS col1, + col2 FROM tab0 AS cor0
----
172617
10
665600
47
8188
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4926
SELECT - + CAST( - - col0 AS SIGNED ) + col1 FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-4926
SELECT - + CAST ( - - col0 AS INTEGER ) + col1 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT DISTINCT COUNT( * ) + - 56 AS col2 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-4927
SELECT DISTINCT COUNT ( * ) + - 56 AS col2 FROM tab1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT + 65 * COUNT( * ) FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-4928
SELECT + 65 * COUNT ( * ) FROM tab1
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT COUNT( DISTINCT + 88 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4929
SELECT COUNT ( DISTINCT + 88 ) FROM tab0
----
1

query I rowsort
SELECT - + 42 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4931
SELECT DISTINCT - 79 * 14 * + - ( - CAST( NULL AS SIGNED ) ) * - ( + 32 ) / + 26 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT - 79 * 14 * + - ( - CAST ( NULL AS INTEGER ) ) * - ( + 32 ) / + 26 FROM tab1
----
NULL

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT + SUM( ALL col0 ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-4933
SELECT + SUM ( ALL col0 ) FROM tab0 cor0
----
199

query I rowsort
SELECT ( - + 84 ) FROM tab1 AS cor0
----
-84
-84
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col1 * + 78 * 99 * - ( + - col2 ) AS col2 FROM tab0 WHERE NOT + col0 * col1 / 47 < - 75 + + + col0 * + 18
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 * - 63 col0 FROM tab1
----
-3150

onlyif mysql # aggregate syntax: 
query II rowsort label-4937
SELECT 20 AS col1, + COUNT( * ) col0 FROM tab0
----
20
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4937
SELECT 20 AS col1, + COUNT ( * ) col0 FROM tab0
----
20
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col1, - col0 col1 FROM tab2
----
46
-46
64
-64
75
-75

query II rowsort
SELECT DISTINCT col1, - 14 AS col1 FROM tab0
----
1
-14
21
-14
81
-14

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * + col0 + + + col2 * - col1 NOT IN ( + col2, - col0 )
----

query I rowsort
SELECT - + 39 * + 64 * + - col2 AS col1 FROM tab1 cor0
----
147264
169728
239616

query II rowsort
SELECT + col2, - 75 AS col1 FROM tab0 cor0
----
10
-75
47
-75
99
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT ALL - MAX( ALL col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL - MAX ( ALL col2 ) FROM tab0 AS cor0
----
-99

query II rowsort
SELECT + 77 * - - col0, + 89 * + col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1155
1335
6699
7743
7469
8633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4945
SELECT DISTINCT - 80 + col1 * + CAST( + col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
-55
116
2129

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT - 80 + col1 * + CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
-55
116
2129

query I rowsort
SELECT - col1 + + col2 * + col1 + + + 64 AS col0 FROM tab1 AS cor0
----
1394
3213
354

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + 48 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 <= - 22
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + 67 ) + + - 44 AS col1 FROM tab0 AS cor0
----
23
23
23

query I rowsort
SELECT DISTINCT - 2 + ( + col0 ) + - col1 + + col0 + - 48 FROM tab2 AS cor0
----
-9
1
33

query I rowsort
SELECT ALL + 74 - + col2 - - - ( - col1 ) AS col0 FROM tab1
----
-8
20
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT DISTINCT + MIN( DISTINCT - col1 ) * - 91 * COUNT( * ) * + COUNT( * ) FROM tab2
----
63063

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT + MIN ( DISTINCT - col1 ) * - 91 * COUNT ( * ) * + COUNT ( * ) FROM tab2
----
63063

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 56 > + - 31
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0 * + ( + 62 ) AS col0, 14 FROM tab2
----
2852
14
3968
14
4650
14

query II rowsort
SELECT + col1, col2 * + + col1 * + col2 FROM tab0
----
1
9801
21
2100
81
178929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4956
SELECT ALL CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT - + col1 AS col2, col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + - 59 * + col2 col1 FROM tab0 AS cor0
----
2854
5842
611

query I rowsort
SELECT DISTINCT - col2 + + + col2 * + col0 + + col2 * + - 61 AS col2 FROM tab0 cor0
----
-2209
250
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT - - COUNT( * ) - + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4960
SELECT - - COUNT ( * ) - + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT ALL - MIN( - 91 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL - MIN ( - 91 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT - MAX( DISTINCT - col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4962
SELECT - MAX ( DISTINCT - col0 ) AS col0 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-4963
SELECT + 15 * - COUNT( * ) AS col2, + COUNT( * ) FROM tab0 AS cor0
----
-45
3

skipif mysql # not compatible
query II rowsort label-4963
SELECT + 15 * - COUNT ( * ) AS col2, + COUNT ( * ) FROM tab0 AS cor0
----
-45
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4964
SELECT - col0 DIV + 79 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4964
SELECT - col0 / + 79 FROM tab0 AS cor0
----
-1
-1
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + + 60 + 50 >= - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 88 / - col1 < + 44 * 69
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4968
SELECT DISTINCT - - col0 * + 69 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4968
SELECT DISTINCT - - col0 * + 69 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT COUNT( col2 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4969
SELECT COUNT ( col2 ) col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col0 * + 80 + - + col0 AS col0 FROM tab0 AS cor0
----
1185
6873
7663

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT DISTINCT + COUNT( * ) * - 21 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-4971
SELECT DISTINCT + COUNT ( * ) * - 21 FROM tab0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT DISTINCT + MIN( 92 ) AS col2 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-4972
SELECT DISTINCT + MIN ( 92 ) AS col2 FROM tab2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4973
SELECT 43 DIV - - col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4973
SELECT 43 / - - col2 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4974
SELECT DISTINCT ( - + COUNT( * ) ) DIV + 90 * + 27 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4974
SELECT DISTINCT ( - + COUNT ( * ) ) / + 90 * + 27 FROM tab1
----
0

query II rowsort
SELECT 28 AS col2, + col2 AS col2 FROM tab1
----
28
59
28
68
28
96

query II rowsort
SELECT ALL col1, col0 - - col0 AS col0 FROM tab0
----
1
194
21
174
81
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT ALL + COUNT( * ) * - - ( + MAX( DISTINCT - + col2 ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-69

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL + COUNT ( * ) * - - ( + MAX ( DISTINCT - + col2 ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 col1 FROM tab2
----
77

query I rowsort
SELECT + 65 * + 88 * col0 FROM tab0 AS cor0
----
497640
554840
85800

query I rowsort
SELECT ALL 42 * 1 FROM tab0 cor0
----
42
42
42

query I rowsort
SELECT col0 + + + 51 FROM tab1
----
102
136
142

query II rowsort
SELECT col1 AS col0, col2 + + col2 + + ( - 73 ) AS col1 FROM tab0 AS cor0
----
1
125
21
-53
81
21

query I rowsort
SELECT ALL col1 + - ( - col2 ) FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT ALL + col2 * - + 11 + + col1 FROM tab2 AS cor0
----
-202
-363
-571

query I rowsort
SELECT ALL + col1 + 84 FROM tab2 AS cor0
----
135
151
161

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * - 66 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT + COUNT( - 48 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4987
SELECT + COUNT ( - 48 ) FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, - 59 FROM tab0 AS cor0
----
10
-59
47
-59
99
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-4989
SELECT DISTINCT - col1 + + col2 DIV - + col0 AS col1 FROM tab0 AS cor0
----
-2
-21
-84

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT - col1 + + col2 / - + col0 AS col1 FROM tab0 AS cor0
----
-2
-21
-84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4990
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - 48 * col1 * - col0, ( + col1 ) * - CAST( + col0 AS SIGNED ) + + 92 * - col0 )
----

skipif mysql # not compatible
query III rowsort label-4990
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - 48 * col1 * - col0, ( + col1 ) * - CAST ( + col0 AS INTEGER ) + + 92 * - col0 )
----

query I rowsort
SELECT - col0 - + col2 + - - col1 + + col1 FROM tab1
----
-119
-134
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4992
SELECT ALL - COUNT( * ) - COUNT( DISTINCT + col1 ) AS col1, - COUNT( * ) * - + CAST( 87 AS SIGNED ) AS col0 FROM tab1
----
-6
261

skipif mysql # not compatible
query II rowsort label-4992
SELECT ALL - COUNT ( * ) - COUNT ( DISTINCT + col1 ) AS col1, - COUNT ( * ) * - + CAST ( 87 AS INTEGER ) AS col0 FROM tab1
----
-6
261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4993
SELECT DISTINCT + + 71 + + col1 + - CAST( + col2 AS SIGNED ) * - - col0 FROM tab1 AS cor0
----
-4811
-4939
-6070

skipif mysql # not compatible
query I rowsort label-4993
SELECT DISTINCT + + 71 + + col1 + - CAST ( + col2 AS INTEGER ) * - - col0 FROM tab1 AS cor0
----
-4811
-4939
-6070

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 96 = + col2
----

query I rowsort
SELECT ALL + 29 * + - col2 AS col1 FROM tab1 cor0
----
-1711
-1972
-2784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4996
SELECT DISTINCT + col0 * + CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-4996
SELECT DISTINCT + col0 * + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

query II rowsort
SELECT col0 AS col0, + 30 * - 70 FROM tab2 cor0
----
46
-2100
64
-2100
75
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT ALL - SUM( - 44 ) FROM tab1 cor0
----
132

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL - SUM ( - 44 ) FROM tab1 cor0
----
132

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - ( 93 ) AND 84
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) * col0 * + col1 col0 FROM tab2 AS cor0
----
119646
336675
379456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 6 * + 15 * - col0 col2, col1 * + 37 FROM tab2 AS cor0
----
4140
1887
5760
2849
6750
2479

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT ALL - SUM( DISTINCT - col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5002
SELECT ALL - SUM ( DISTINCT - col2 ) AS col0 FROM tab1
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5003
SELECT DISTINCT ( col2 ), - CAST( - 31 AS SIGNED ) * + 60 * - CAST( NULL AS SIGNED ) FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-5003
SELECT DISTINCT ( col2 ), - CAST ( - 31 AS INTEGER ) * + 60 * - CAST ( NULL AS INTEGER ) FROM tab0
----
10
NULL
47
NULL
99
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * col0 NOT BETWEEN + 40 / + + col0 * - col1 + - + col0 AND 50
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 <> 21 + + col1
----

query I rowsort
SELECT ALL col2 * - + col1 + col1 + - + col2 FROM tab1
----
-1426
-3217
-349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5007
SELECT DISTINCT + CAST( NULL AS SIGNED ) col1 FROM tab0 WHERE + col1 >= + col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5007
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col1 FROM tab0 WHERE + col1 >= + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT DISTINCT - SUM( DISTINCT 68 ) FROM tab1
----
-68

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT - SUM ( DISTINCT 68 ) FROM tab1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT DISTINCT + 45 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT + 45 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT ALL - - 45 + + SUM( - col2 ) col1 FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5010
SELECT ALL - - 45 + + SUM ( - col2 ) col1 FROM tab2 AS cor0
----
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 + + - col0 + - - col1 col0 FROM tab1 cor0
----
-53
-60
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 col1 FROM tab1 AS cor0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT + - COUNT( + 87 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5013
SELECT + - COUNT ( + 87 ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - 43 AS col1, + 5 * + - col1 * + + ( - ( col2 ) ), 69 col0 FROM tab1
----
9 values hashing to 79afe147ae9b733ead72896e608df37b

query III rowsort
SELECT * FROM tab1 WHERE ( NOT + col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 80 + - col2 AS col0 FROM tab1 AS cor0
----
-16
12
21

query I rowsort
SELECT 1 + - + col1 FROM tab1 AS cor0
----
-13
-4
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5018
SELECT DISTINCT + 52 DIV - + 63 + + CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5018
SELECT DISTINCT + 52 / - + 63 + + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 68 + 37 FROM tab1 AS cor0
----
-31
-31
-31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN 25 * - col1 AND - col1
----

query I rowsort
SELECT AVG ( 30 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT + ( + - COUNT( - col1 ) ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5022
SELECT + ( + - COUNT ( - col1 ) ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 + - 27 col1 FROM tab1 AS cor0
----
35
35
35

query I rowsort
SELECT + - col2 + - + col2 AS col0 FROM tab2 AS cor0
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT - COUNT( * ) + - + 7 FROM tab1 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5025
SELECT - COUNT ( * ) + - + 7 FROM tab1 cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5026
SELECT DISTINCT col0 - + CAST( NULL AS SIGNED ) + + - 5 + 66 / - 63 + + + 83 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT col0 - + CAST ( NULL AS INTEGER ) + + - 5 + 66 / - 63 + + + 83 FROM tab0
----
NULL

query I rowsort
SELECT ALL + - col0 AS col2 FROM tab1 WHERE NOT - 23 IS NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + col1 * + + col1 * - col1 * + col2 AS col1 FROM tab2 WHERE col0 + col0 + + col1 NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5029
SELECT ALL CAST( - - 38 AS SIGNED ) FROM tab1
----
38
38
38

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL CAST ( - - 38 AS INTEGER ) FROM tab1
----
38
38
38

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( + col0 ) + + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 - - + 34 + + 40 FROM tab0
----
-13
-23
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT COUNT( * ) - COUNT( * ) * + - 84 FROM tab2 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-5032
SELECT COUNT ( * ) - COUNT ( * ) * + - 84 FROM tab2 AS cor0
----
255

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 19 + 88 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5034
SELECT + 34 - + 49 DIV - col1 AS col0 FROM tab1 AS cor0
----
35
37
43

skipif mysql # not compatible
query I rowsort label-5034
SELECT + 34 - + 49 / - col1 AS col0 FROM tab1 AS cor0
----
35
37
43

query II rowsort
SELECT - + 40, col0 AS col2 FROM tab2 cor0 WHERE NOT - col0 IN ( + - col1, 5, + 94 )
----
-40
46
-40
64
-40
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5036
SELECT 6 DIV - - COUNT( * ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5036
SELECT 6 / - - COUNT ( * ) FROM tab0 AS cor0
----
2

query II rowsort
SELECT col1 AS col1, col0 AS col1 FROM tab1 cor0
----
14
51
47
91
5
85

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab1 AS cor0 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT col1 * - - ( + col2 ) FROM tab1
----
1344
295
3196

query I rowsort
SELECT DISTINCT + 37 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
37

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE - 87 >= NULL
----

query I rowsort
SELECT ALL + - 68 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT + - col2 * 41 * + 72 FROM tab0 AS cor0
----
-138744
-292248
-29520

query I rowsort
SELECT DISTINCT + - col0 * - + col0 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT ( + + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5045
SELECT ( + + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 60 * - - 70 - - col2 * 18 FROM tab0 AS cor0
----
4380
5046
5982

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5047
SELECT + ( - + col1 ), CAST( - + col1 AS SIGNED ) FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

skipif mysql # not compatible
query II rowsort label-5047
SELECT + ( - + col1 ), CAST ( - + col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 44 IS NOT NULL
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= + col2
----

query I rowsort
SELECT ALL 96 AS col0 FROM tab1 WHERE + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5051
SELECT - col0 DIV - - 31 AS col2 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-5051
SELECT - col0 / - - 31 AS col2 FROM tab2
----
-1
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT 21 + + - COUNT( * ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-5052
SELECT 21 + + - COUNT ( * ) FROM tab0 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT DISTINCT - 22 * - COUNT( * ) AS col2 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-5053
SELECT DISTINCT - 22 * - COUNT ( * ) AS col2 FROM tab0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT + MAX( - ( - col1 ) ) * COUNT( - ( - 48 ) ) AS col0 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-5054
SELECT + MAX ( - ( - col1 ) ) * COUNT ( - ( - 48 ) ) AS col0 FROM tab0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT DISTINCT - COUNT( DISTINCT 97 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5055
SELECT DISTINCT - COUNT ( DISTINCT 97 ) AS col1 FROM tab0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5056
SELECT ALL MIN( + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5056
SELECT ALL MIN ( + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - ( 55 ) AS col1 FROM tab2
----
-55
-55
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5058
SELECT - CAST( 64 AS SIGNED ) FROM tab2
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-5058
SELECT - CAST ( 64 AS INTEGER ) FROM tab2
----
-64
-64
-64

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 <> ( - col2 + + col0 )
----

query I rowsort
SELECT DISTINCT 67 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 WHERE NOT ( - 64 ) NOT BETWEEN - 8 AND ( 62 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT MIN( 13 ) FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-5062
SELECT MIN ( 13 ) FROM tab2
----
13

query I rowsort
SELECT col1 + ( + col1 ) AS col1 FROM tab0
----
162
2
42

query I rowsort
SELECT ALL - 78 * + 54 AS col2 FROM tab1
----
-4212
-4212
-4212

query I rowsort
SELECT ALL + col0 * + 55 AS col1 FROM tab0
----
4785
5335
825

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT DISTINCT - 19 * + ( COUNT( * ) ) FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT - 19 * + ( COUNT ( * ) ) FROM tab0
----
-57

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 ) <= ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5068
SELECT - 19 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5068
SELECT - 19 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5069
SELECT + col2 DIV 78 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5069
SELECT + col2 / 78 FROM tab0
----
0
0
1

query I rowsort
SELECT + 8 + + col1 * 46 AS col0 FROM tab1
----
2170
238
652

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5071
SELECT - 9 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5071
SELECT - 9 * + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT ALL 20 * COUNT( DISTINCT col0 * + 2 ) FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL 20 * COUNT ( DISTINCT col0 * + 2 ) FROM tab1
----
60

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - col1 + + 26 * col2 )
----

query I rowsort
SELECT + col2 * + col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 WHERE NOT - 17 NOT BETWEEN + col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5076
SELECT MIN( DISTINCT CAST( + 11 AS SIGNED ) ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5076
SELECT MIN ( DISTINCT CAST ( + 11 AS INTEGER ) ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5077
SELECT 62 + + col2 DIV + col1 AS col0 FROM tab2
----
62
62
62

skipif mysql # not compatible
query I rowsort label-5077
SELECT 62 + + col2 / + col1 AS col0 FROM tab2
----
62
62
62

query I rowsort
SELECT DISTINCT col1 - col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT MIN( col0 ) * + 44 FROM tab1
----
2244

skipif mysql # not compatible
query I rowsort label-5079
SELECT MIN ( col0 ) * + 44 FROM tab1
----
2244

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 + - col2 ) >= ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5081
SELECT ALL + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + col0 <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + col0 <> ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT ALL + SUM( ALL 83 ) AS col1 FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-5082
SELECT ALL + SUM ( ALL 83 ) AS col1 FROM tab1
----
249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 29 col2 FROM tab2
----
52
69
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT DISTINCT COUNT( 47 ) FROM tab0 AS cor0 WHERE NOT + 11 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5084
SELECT DISTINCT COUNT ( 47 ) FROM tab0 AS cor0 WHERE NOT + 11 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT + AVG ( DISTINCT - ( + 8 ) ) FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( 56 * 55 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT ALL - SUM( col1 ) FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL - SUM ( col1 ) FROM tab2 cor0
----
-195

query I rowsort
SELECT DISTINCT col0 * + 78 FROM tab2 AS cor0
----
3588
4992
5850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5088
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5088
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 30 * - col1 FROM tab2
----
-1530
-2010
-2310

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( + ( - col1 ) + 86 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 37 NOT BETWEEN + col2 AND ( ( col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5092
SELECT + + CAST( NULL AS SIGNED ) * + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5092
SELECT + + CAST ( NULL AS INTEGER ) * + col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5093
SELECT DISTINCT CAST( 90 AS SIGNED ) col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5093
SELECT DISTINCT CAST ( 90 AS INTEGER ) col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT DISTINCT 63 * COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT - 49 * 39 + - col2 > NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5095
SELECT DISTINCT 63 * COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT - 49 * 39 + - col2 > NULL
----
0

query I rowsort
SELECT + - 81 * - col0 FROM tab2 AS cor0
----
3726
5184
6075

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT DISTINCT + - MAX( col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5097
SELECT DISTINCT + - MAX ( col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab0 AS cor0 WHERE NOT ( col1 * 56 ) <= col1 + - col2
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5099
SELECT + + 60 DIV ( - 52 ) + MAX( DISTINCT - 90 + col0 ) * 94 AS col1 FROM tab0 cor0
----
657

skipif mysql # not compatible
query I rowsort label-5099
SELECT + + 60 / ( - 52 ) + MAX ( DISTINCT - 90 + col0 ) * 94 AS col1 FROM tab0 cor0
----
657

onlyif mysql # DIV for integer division: 
query I rowsort label-5100
SELECT - col2 + - col2 DIV col2 AS col0 FROM tab2
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-5100
SELECT - col2 + - col2 / col2 AS col0 FROM tab2
----
-24
-41
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT 52 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT 52 IS NULL
----
-3

query I rowsort
SELECT col2 + + + col0 * 49 AS col2 FROM tab2
----
2277
3176
3733

query I rowsort
SELECT - 18 + + - col0 * 48 AS col0 FROM tab1
----
-2466
-4098
-4386

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col1 ) NOT IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 + ( - col0 ) col2 FROM tab2
----
-16
-27
2

query I rowsort
SELECT ALL - 43 * - col0 AS col1 FROM tab0
----
3741
4171
645

query I rowsort
SELECT DISTINCT - + col2 * + 24 * - col2 FROM tab0 AS cor0
----
235224
2400
53016

query I rowsort
SELECT DISTINCT col1 + 19 FROM tab2 AS cor0
----
70
86
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT - SUM( + col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5109
SELECT - SUM ( + col0 ) AS col0 FROM tab0 AS cor0
----
-199

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col1 <= 37
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5111
SELECT ALL CAST( + col2 AS SIGNED ) + - col0 AS col2 FROM tab2 AS cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL CAST ( + col2 AS INTEGER ) + - col0 AS col2 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT COUNT( * ) * 43 FROM tab2 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-5112
SELECT COUNT ( * ) * 43 FROM tab2 AS cor0
----
129

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 9 * + col0 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5114
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - MAX( + 65 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - MAX ( + 65 ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - 15 - + col2 AS col1 FROM tab1
----
-111
-74
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5116
SELECT ALL COUNT( * ) DIV + - 67 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL COUNT ( * ) / + - 67 FROM tab2
----
0

query I rowsort
SELECT + 57 + col2 AS col0 FROM tab1
----
116
125
153

query I rowsort
SELECT DISTINCT + col0 * - 64 * + col1 * col0 FROM tab1 AS cor0
----
-2312000
-2330496
-24909248

query I rowsort
SELECT ALL ( + + 81 ) + + + col2 FROM tab0 AS cor0
----
128
180
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT 16 + SUM( ALL - 99 ) col1 FROM tab0 cor0
----
-281

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5120
SELECT 16 + SUM ( ALL - 99 ) col1 FROM tab0 cor0
----
-281

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT DISTINCT - 67 + + MIN( + 23 ) AS col2 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-5121
SELECT DISTINCT - 67 + + MIN ( + 23 ) AS col2 FROM tab2 AS cor0
----
-44

query I rowsort
SELECT DISTINCT + 97 + + col2 FROM tab2 AS cor0
----
120
137
155

onlyif mysql # DIV for integer division: 
query I rowsort label-5123
SELECT ALL + - col1 - + col1 DIV - col1 col0 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5123
SELECT ALL + - col1 - + col1 / - col1 col0 FROM tab1 AS cor0
----
-13
-4
-46

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col2 = - + col0 / - col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col1 * - ( - col0 ) ) = col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5126
SELECT ALL + col0 - + - CAST( 18 AS SIGNED ) AS col2 FROM tab2
----
64
82
93

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL + col0 - + - CAST ( 18 AS INTEGER ) AS col2 FROM tab2
----
64
82
93

query I rowsort
SELECT - 23 AS col1 FROM tab1 WHERE NOT 68 * + col0 <= + col0
----
-23
-23
-23

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> ( - 82 )
----

query I rowsort
SELECT ALL 22 * + 79 FROM tab2
----
1738
1738
1738

onlyif mysql # DIV for integer division: 
query II rowsort label-5130
SELECT ALL col2 DIV + col2 AS col2, - 35 * - ( col2 ) + col2 AS col0 FROM tab1
----
1
2124
1
2448
1
3456

skipif mysql # not compatible
query II rowsort label-5130
SELECT ALL col2 / + col2 AS col2, - 35 * - ( col2 ) + col2 AS col0 FROM tab1
----
1
2124
1
2448
1
3456

onlyif mysql # aggregate syntax: 
query II rowsort label-5131
SELECT 78 * + - 16 AS col2, MAX( ALL col0 ) AS col2 FROM tab1
----
-1248
91

skipif mysql # not compatible
query II rowsort label-5131
SELECT 78 * + - 16 AS col2, MAX ( ALL col0 ) AS col2 FROM tab1
----
-1248
91

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 ) = ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( + 67 * col0 * 32 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5134
SELECT ALL + col0 / - + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL + col0 / - + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - - col2 ) NOT IN ( col2 * - col1 )
----

query I rowsort
SELECT 26 * + + col0 FROM tab2
----
1196
1664
1950

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 58 * - 26 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5138
SELECT - 83 DIV + col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5138
SELECT - 83 / + col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT + COUNT( ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5139
SELECT + COUNT ( ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - - col0 * + - col1 * + 91 AS col0 FROM tab2 AS cor0
----
-213486
-448448
-457275

query I rowsort
SELECT ALL - + ( + col2 ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT + + COUNT( * ) * + + MAX( ALL 53 ) FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-5142
SELECT + + COUNT ( * ) * + + MAX ( ALL 53 ) FROM tab0 AS cor0
----
159

query I rowsort
SELECT ALL ( - - col0 ) FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT ALL 98 FROM tab0 AS cor0 WHERE NOT 59 < ( - ( col1 ) * - + col2 * col1 )
----

query I rowsort
SELECT - + 92 + col0 AS col1 FROM tab1 AS cor0 WHERE - col1 < - col1 * - col1
----
-1
-41
-7

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE - + 70 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5147
SELECT 76 DIV 41 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5147
SELECT 76 / 41 AS col2 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5148
SELECT - CAST( - col2 AS SIGNED ) * col0 col0 FROM tab0
----
705
870
9603

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5148
SELECT - CAST ( - col2 AS INTEGER ) * col0 col0 FROM tab0
----
705
870
9603

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE ( NULL <= ( - col2 / + col2 / - + col2 ) )
----

query II rowsort
SELECT DISTINCT - col1 AS col1, + 61 * + - 48 AS col0 FROM tab0
----
-1
-2928
-21
-2928
-81
-2928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5151
SELECT DISTINCT + 88 DIV - ( - SUM( DISTINCT ( col1 ) ) ) + + MIN( 16 ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT + 88 / - ( - SUM ( DISTINCT ( col1 ) ) ) + + MIN ( 16 ) FROM tab2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5152
SELECT DISTINCT AVG ( + col0 ) FROM tab2 WHERE NOT + ( - - 64 ) * - col0 * + 96 - CAST( NULL AS SIGNED ) NOT IN ( col0 * - 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT DISTINCT AVG ( + col0 ) FROM tab2 WHERE NOT + ( - - 64 ) * - col0 * + 96 - CAST ( NULL AS INTEGER ) NOT IN ( col0 * - 54 )
----
NULL

query I rowsort
SELECT + col2 + + 49 * + 63 FROM tab2
----
3110
3127
3145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5154
SELECT + COUNT( * ) DIV - - 93 + + + 42 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-5154
SELECT + COUNT ( * ) / - - 93 + + + 42 FROM tab0
----
42

query I rowsort
SELECT ALL + ( + 75 ) + - col0 AS col2 FROM tab0 AS cor0
----
-12
-22
60

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col2 ) - - col0 + - - ( 59 ) / - col2 * + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5157
SELECT DISTINCT col1 / + 39 + + CAST( NULL AS SIGNED ) * + 57, + col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-5157
SELECT DISTINCT col1 / + 39 + + CAST ( NULL AS INTEGER ) * + 57, + col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + + 18 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col2 * - col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> ( 24 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT ALL + ( 99 ) + 89 + - 12 * COUNT( * ) FROM tab0 cor0
----
152

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL + ( 99 ) + 89 + - 12 * COUNT ( * ) FROM tab0 cor0
----
152

query I rowsort
SELECT ALL 86 * - col2 AS col1 FROM tab1
----
-5074
-5848
-8256

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 + + + 92 * col2 < - + 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT ALL + 76 * - + ( + - 64 ) * + COUNT( * ) + COUNT( * ) + + 85 * - - 13 AS col2 FROM tab0
----
15700

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL + 76 * - + ( + - 64 ) * + COUNT ( * ) + COUNT ( * ) + + 85 * - - 13 AS col2 FROM tab0
----
15700

onlyif mysql # aggregate syntax: 
query II rowsort label-5165
SELECT DISTINCT + COUNT( * ), + COUNT( + - col2 ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-5165
SELECT DISTINCT + COUNT ( * ), + COUNT ( + - col2 ) FROM tab2
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 * 71 col0 FROM tab0
----
1136
1136
1136

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + - ( - + col1 ) * + col2 ) IS NULL
----

query I rowsort
SELECT ( + - col0 ) * - + 53 + - + col2 * + 47 AS col0 FROM tab1
----
-1809
1627
1732

query III rowsort
SELECT * FROM tab1 WHERE col2 * - col0 IS NOT NULL OR - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * + + col0 - col2 - 20 IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 57 AS col0 FROM tab0 cor0
----
57
57
57

query I rowsort
SELECT 30 AS col1 FROM tab0 AS cor0 WHERE NOT ( - ( + + 52 ) + col2 ) <= - 79 * + col0
----
30
30
30

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT ( NOT ( NULL IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5174
SELECT DISTINCT + COUNT( * ) * 25 DIV - 92 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-2

skipif mysql # not compatible
query I rowsort label-5174
SELECT DISTINCT + COUNT ( * ) * 25 / - 92 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-2

query I rowsort
SELECT ALL + 4 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 + - 80 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT DISTINCT - COUNT( * ) - 56 + + + SUM( ALL - ( col1 ) ) AS col2 FROM tab0 AS cor0 WHERE NULL IN ( + col1 + + ( - + 94 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5177
SELECT DISTINCT - COUNT ( * ) - 56 + + + SUM ( ALL - ( col1 ) ) AS col2 FROM tab0 AS cor0 WHERE NULL IN ( + col1 + + ( - + 94 ) )
----
NULL

query I rowsort
SELECT ALL 93 + - col1 FROM tab0 AS cor0
----
12
72
92

query I rowsort
SELECT + col0 + + + 29 + + col1 * - 12 FROM tab0 AS cor0
----
-136
-928
114

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5180
SELECT DISTINCT CAST( NULL AS SIGNED ) + + ( 73 ) AS col0, + col2 * - - col1 FROM tab0
----
NULL
210
NULL
3807
NULL
99

skipif mysql # not compatible
query II rowsort label-5180
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + ( 73 ) AS col0, + col2 * - - col1 FROM tab0
----
NULL
210
NULL
3807
NULL
99

query II rowsort
SELECT DISTINCT + 5 AS col0, + 18 FROM tab1
----
5
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5182
SELECT ALL - 16 * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL - 16 * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 17 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5184
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE col2 * - col1 + + + col1 BETWEEN + col1 * col1 * + - CAST( NULL AS DECIMAL ) - + - 95 / + col1 * + + ( + ( - col1 ) ) + 27 AND ( - 92 * + col2 )
----

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE col2 * - col1 + + + col1 BETWEEN + col1 * col1 * + - CAST ( NULL AS REAL ) - + - 95 / + col1 * + + ( + ( - col1 ) ) + 27 AND ( - 92 * + col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN + col1 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( ( - + col2 ), 79 + - col1, - + ( col2 ) * + - col2 * 87 / + - 18 * + 45 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT ALL + - COUNT( DISTINCT col2 ) col2 FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN + - col0 / col2 AND NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5187
SELECT ALL + - COUNT ( DISTINCT col2 ) col2 FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN + - col0 / col2 AND NULL )
----
0

query I rowsort
SELECT col0 - + col2 + + 92 * col2 AS col2 FROM tab2 AS cor0
----
2139
3704
5353

query I rowsort
SELECT + col0 - + ( + col1 ) * 38 + + ( col1 ) FROM tab0 AS cor0
----
-2982
-690
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col1 ) col1 FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN NULL AND + + col0
----
51
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT SUM( DISTINCT col2 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5191
SELECT SUM ( DISTINCT col2 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5192
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - - CAST( + 64 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5192
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - - CAST ( + 64 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + 74 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5194
SELECT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5194
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query II rowsort label-5195
SELECT - 66 AS col2, MAX( DISTINCT 95 ) AS col0 FROM tab2 AS cor0
----
-66
95

skipif mysql # not compatible
query II rowsort label-5195
SELECT - 66 AS col2, MAX ( DISTINCT 95 ) AS col0 FROM tab2 AS cor0
----
-66
95

query I rowsort
SELECT col0 * + - 84 FROM tab0 AS cor0
----
-1260
-7308
-8148

query II rowsort
SELECT col1, - ( + col2 ) FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT - col0 * + - 50 AS col1 FROM tab0 AS cor0
----
4350
4850
750

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5199
SELECT - CAST( + col1 AS SIGNED ) DIV col0 * + col0 AS col2, 72 * + 85 FROM tab1 AS cor0
----
0
6120
0
6120
0
6120

skipif mysql # not compatible
query II rowsort label-5199
SELECT - CAST ( + col1 AS INTEGER ) / col0 * + col0 AS col2, 72 * + 85 FROM tab1 AS cor0
----
0
6120
0
6120
0
6120

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT - COUNT( * ) * ( + 22 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5200
SELECT - COUNT ( * ) * ( + 22 ) AS col2 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT DISTINCT + MIN( + col2 ) * - 13 + + MAX( ALL + 30 ) AS col1 FROM tab2 AS cor0
----
-269

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT + MIN ( + col2 ) * - 13 + + MAX ( ALL + 30 ) AS col1 FROM tab2 AS cor0
----
-269

query I rowsort
SELECT - ( + - 38 ) AS col0 FROM tab0 AS cor0
----
38
38
38

query I rowsort
SELECT ALL + col1 * - + col1 AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 83 col0 FROM tab1 AS cor0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT - COUNT( * ) * SUM( ALL - col2 ) FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-5205
SELECT - COUNT ( * ) * SUM ( ALL - col2 ) FROM tab1
----
669

query I rowsort
SELECT + ( - 88 ) AS col0 FROM tab2
----
-88
-88
-88

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE + + col0 IS NOT NULL
----
-46
-64
-75

query II rowsort
SELECT - ( col2 ) AS col1, col2 + 48 * - 93 * - + col1 AS col1 FROM tab0
----
-10
93754
-47
361631
-99
4563

query I rowsort
SELECT DISTINCT - col2 * + col0 - ( + 32 ) AS col0 FROM tab0 AS cor0
----
-737
-902
-9635

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN + col0 + + - 41 AND - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * - col1 - ( - col1 ) * col2 + col2 * + - 98 + - ( 62 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 97, col2 FROM tab1
----
97
59
97
68
97
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5214
SELECT DISTINCT + + COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5214
SELECT DISTINCT + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL + col1 + + 47 AS col0 FROM tab1 AS cor0
----
52
61
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT ALL COUNT( * ) + - + MAX( - - 76 ) FROM tab0 cor0
----
-73

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL COUNT ( * ) + - + MAX ( - - 76 ) FROM tab0 cor0
----
-73

query I rowsort
SELECT + + col2 FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN - + ( + + 15 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5218
SELECT DISTINCT + - 14 DIV + col1 col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5218
SELECT DISTINCT + - 14 / + col1 col0 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5219
SELECT ALL + - col0 DIV + 27 + - 38 + - col2 FROM tab0 AS cor0
----
-140
-51
-85

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL + - col0 / + 27 + - 38 + - col2 FROM tab0 AS cor0
----
-140
-51
-85

query I rowsort
SELECT - col2 * + col1 - 51 AS col1 FROM tab1
----
-1395
-3247
-346

query I rowsort
SELECT - col1 - 0 + - 16 - + col0 FROM tab0
----
-112
-114
-124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5222
SELECT ALL - col0 * + ( + 75 ) + + col1 + CAST( - - col0 AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL - col0 * + ( + 75 ) + + col1 + CAST ( - - col0 AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT col2 * - col0 + - 28 AS col1 FROM tab1
----
-4924
-5043
-6216

query I rowsort
SELECT DISTINCT + col2 * + + col0 * - col2 FROM tab2
----
-102400
-24334
-252300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5225
SELECT ALL CAST( - col1 AS SIGNED ) - - - 17 * 78 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1377
-1393
-1403

skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL CAST ( - col1 AS INTEGER ) - - - 17 * 78 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1377
-1393
-1403

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - - 17 col2 FROM tab1
----
-30
12
3

query I rowsort
SELECT + ( col1 ) + + - col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 39 + - col1 col0 FROM tab1 AS cor0
----
-8
25
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5229
SELECT ALL + - col1 * + 45 + col0 DIV col0 * + 14 col2 FROM tab1 AS cor0
----
-2101
-211
-616

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5229
SELECT ALL + - col1 * + 45 + col0 / col0 * + 14 col2 FROM tab1 AS cor0
----
-2101
-211
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT - - COUNT( * ) col1 FROM tab1 AS cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5230
SELECT - - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE + col2 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5231
SELECT ALL * FROM tab2 WHERE + col0 - CAST( NULL AS SIGNED ) BETWEEN + col1 + - col0 + + ( - ( col0 ) ) + col2 * col0 / + ( col2 ) AND + 10 * col0
----

skipif mysql # not compatible
query III rowsort label-5231
SELECT ALL * FROM tab2 WHERE + col0 - CAST ( NULL AS INTEGER ) BETWEEN + col1 + - col0 + + ( - ( col0 ) ) + col2 * col0 / + ( col2 ) AND + 10 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5232
SELECT ALL * FROM tab0 WHERE - 10 + - CAST( NULL AS SIGNED ) * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5232
SELECT ALL * FROM tab0 WHERE - 10 + - CAST ( NULL AS INTEGER ) * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 50 * col1, + col2 + + col0, col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 90 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col2 * + 26 FROM tab2 AS cor0
----
1040
1508
598

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5236
SELECT DISTINCT - - CAST( - CAST( - - 94 AS SIGNED ) AS SIGNED ) * + - SUM( - col0 ) FROM tab1 AS cor0
----
-21338

skipif mysql # not compatible
query I rowsort label-5236
SELECT DISTINCT - - CAST ( - CAST ( - - 94 AS INTEGER ) AS INTEGER ) * + - SUM ( - col0 ) FROM tab1 AS cor0
----
-21338

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5237
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, COUNT( * ) FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5237
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) FROM tab0
----
NULL
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5238
SELECT DISTINCT COUNT( * ) AS col0, + 32 - 46 AS col2 FROM tab2
----
3
-14

skipif mysql # not compatible
query II rowsort label-5238
SELECT DISTINCT COUNT ( * ) AS col0, + 32 - 46 AS col2 FROM tab2
----
3
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT + 23 + COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
23

skipif mysql # not compatible
query I rowsort label-5239
SELECT + 23 + COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-5240
SELECT 83 AS col2, col1 + - + col0 - - + ( + col2 ) * + col2 DIV - col2 + + col0 + + 27 DIV - col2 AS col1 FROM tab1
----
83
-21
83
-54
83
-82

skipif mysql # not compatible
query II rowsort label-5240
SELECT 83 AS col2, col1 + - + col0 - - + ( + col2 ) * + col2 / - col2 + + col0 + + 27 / - col2 AS col1 FROM tab1
----
83
-21
83
-54
83
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5241
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
3

query II rowsort
SELECT col0 AS col1, col0 AS col2 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL <= - col2 - - col0
----
0

skipif mysql # not compatible
query I rowsort label-5243
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL <= - col2 - - col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5244
SELECT DISTINCT 24 * - col0 - + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-1127
-1576
-1858

skipif mysql # not compatible
query I rowsort label-5244
SELECT DISTINCT 24 * - col0 - + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-1127
-1576
-1858

onlyif mysql # DIV for integer division: 
query I rowsort label-5245
SELECT col2 DIV - 24 - - + col2 AS col0 FROM tab0 AS cor0
----
10
46
95

skipif mysql # not compatible
query I rowsort label-5245
SELECT col2 / - 24 - - + col2 AS col0 FROM tab0 AS cor0
----
10
46
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT ALL MAX( ALL + col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL MAX ( ALL + col0 ) AS col1 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT DISTINCT COUNT( * ) * + - SUM( DISTINCT + col0 ) FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-5247
SELECT DISTINCT COUNT ( * ) * + - SUM ( DISTINCT + col0 ) FROM tab1
----
-681

query I rowsort
SELECT - + 77 + + col0 AS col1 FROM tab2 AS cor0
----
-13
-2
-31

query I rowsort
SELECT - col1 * + + col1 + + col0 FROM tab0 AS cor0
----
-354
-6546
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5250
SELECT DISTINCT + col0 DIV + - 57 + col1 AS col0 FROM tab1 AS cor0
----
14
4
46

skipif mysql # not compatible
query I rowsort label-5250
SELECT DISTINCT + col0 / + - 57 + col1 AS col0 FROM tab1 AS cor0
----
14
4
46

query I rowsort
SELECT + ( 53 ) + + col0 FROM tab1 cor0
----
104
138
144

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT ALL COUNT( * ) * - - 54 FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL COUNT ( * ) * - - 54 FROM tab2 AS cor0
----
162

query I rowsort
SELECT + 15 + col1 * - 17 * + - col1 AS col0 FROM tab1 AS cor0
----
3347
37568
440

query I rowsort
SELECT ALL - - col1 - - col0 + ( + 77 ) * + + 9 FROM tab2 AS cor0
----
790
834
835

query I rowsort
SELECT + 36 * + 73 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5256
SELECT DISTINCT CAST( + 78 AS SIGNED ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-5256
SELECT DISTINCT CAST ( + 78 AS INTEGER ) FROM tab2
----
78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5257
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5257
SELECT DISTINCT CAST ( NULL AS REAL ) * - col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5258
SELECT ALL 18 DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL 18 / - col1 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 BETWEEN + + col1 AND - col2 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5260
SELECT DISTINCT COUNT( * ), ( ( - - MIN( DISTINCT col0 ) ) ) + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5260
SELECT DISTINCT COUNT ( * ), ( ( - - MIN ( DISTINCT col0 ) ) ) + + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
3
NULL

query III rowsort
SELECT ALL - col0 * col2 + + - col2 + 90, - col2 * - - col1 AS col2, + 7 + + col2 AS col2 FROM tab1 AS cor0
----
9 values hashing to 2023374bb80f155083512ebd9c78bd9f

query I rowsort
SELECT ALL - 42 * ( - col1 ) * + ( + ( + 17 ) ) FROM tab0
----
14994
57834
714

query I rowsort
SELECT - col2 * - col2 * - 34 FROM tab2 AS cor0
----
-114376
-17986
-54400

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT + MIN( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5264
SELECT + MIN ( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
15

query I rowsort
SELECT - col1 * - col0 + - 46 * + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col2 + + - col2 IS NOT NULL )
----

query II rowsort
SELECT + ( - - col0 ), - 57 AS col0 FROM tab1 AS cor0
----
51
-57
85
-57
91
-57

query I rowsort
SELECT + - 56 + - + 88 - 26 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT + - col1 * - - col0 FROM tab0 cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL < - 61
----
0

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL < - 61
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 46 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 59 ) col1 FROM tab0
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT MIN( ALL + ( + col0 ) ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5272
SELECT MIN ( ALL + ( + col0 ) ) AS col0 FROM tab0
----
15

query I rowsort
SELECT DISTINCT - col0 + + + col0 - + 30 * + col1 FROM tab0
----
-2430
-30
-630

query I rowsort
SELECT ALL + 5 * - 45 * + + col2 FROM tab1
----
-13275
-15300
-21600

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT DISTINCT ( SUM( DISTINCT - 46 ) ) + + + 14 AS col1 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT ( SUM ( DISTINCT - 46 ) ) + + + 14 AS col1 FROM tab0 AS cor0
----
-32

query I rowsort
SELECT + + col2 * - - 1 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col2 * + 25 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 42 AS col1 FROM tab2, tab2 AS cor0
----
42

query II rowsort
SELECT DISTINCT - col2, - col0 + - - col1 * + col0 AS col0 FROM tab0
----
-10
1740
-47
1200
-99
0

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( NULL ) NOT IN ( + col2 ) )
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - 94 + + - col0 * col1 * + 66 * - ( 61 ) - 97 * col1 col2 FROM tab0 cor0
----
390618
4883874
7353569

query I rowsort
SELECT + col1 - 92 FROM tab0 AS cor0
----
-11
-71
-91

query I rowsort
SELECT DISTINCT 39 AS col0 FROM tab1 AS cor0 WHERE 79 < NULL
----

query I rowsort
SELECT DISTINCT 10 - + ( - col1 ) FROM tab0
----
11
31
91

query I rowsort
SELECT ALL col0 - + 27 * - col1 FROM tab0
----
124
2202
654

query III rowsort
SELECT * FROM tab2 WHERE col0 - - - col2 IN ( 42 * + col2 )
----

query I rowsort
SELECT 99 + + - ( col2 ) AS col1 FROM tab2
----
41
59
76

query II rowsort
SELECT ALL col0 * col0 * - + 39, col0 * 69 + + 14 AS col0 FROM tab1
----
-101439
3533
-281775
5879
-322959
6293

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5290
SELECT ALL - COUNT( * ) DIV ( 92 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL - COUNT ( * ) / ( 92 ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT 48 + + - 98 + COUNT( * ) FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-5291
SELECT 48 + + - 98 + COUNT ( * ) FROM tab0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5292
SELECT ALL - col1 DIV - col2 - + col1 AS col2 FROM tab0
----
-1
-19
-80

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL - col1 / - col2 - + col1 AS col2 FROM tab0
----
-1
-19
-80

query I rowsort
SELECT col1 * + 84 AS col0 FROM tab1 AS cor0
----
1176
3948
420

query I rowsort
SELECT - + col0 FROM tab2 AS cor0 WHERE NOT 18 < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5295
SELECT ALL col1 DIV col1, col2 + + col1 AS col1 FROM tab1 cor0
----
1
110
1
115
1
64

skipif mysql # not compatible
query II rowsort label-5295
SELECT ALL col1 / col1, col2 + + col1 AS col1 FROM tab1 cor0
----
1
110
1
115
1
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5296
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 / + CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-5296
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 / + CAST ( NULL AS INTEGER ) <> NULL
----

query I rowsort
SELECT - col1 * + - col1 + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
2652
4556
6006

query I rowsort
SELECT + + col1 + + + 98 * - - col1 * - + col2 * + col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 <> + col1 + - 85 + + 50 + - col0
----

query I rowsort
SELECT - col1 * 20 AS col2 FROM tab2 cor0
----
-1020
-1340
-1540

onlyif mysql # aggregate syntax: 
query II rowsort label-5300
SELECT DISTINCT 77 AS col0, COUNT( * ) FROM tab1 AS cor0
----
77
3

skipif mysql # not compatible
query II rowsort label-5300
SELECT DISTINCT 77 AS col0, COUNT ( * ) FROM tab1 AS cor0
----
77
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= ( - + col2 * + - 41 + - ( 5 ) )
----

query I rowsort
SELECT ALL col1 * + + col1 * - col1 * + - col1 - + ( col2 ) AS col0 FROM tab0 AS cor0
----
-98
194471
43046674

onlyif mysql # DIV for integer division: 
query I rowsort label-5303
SELECT - col0 DIV 60 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5303
SELECT - col0 / 60 FROM tab2 cor0
----
-1
-1
0

query I rowsort
SELECT 87 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 = NULL
----

query I rowsort
SELECT col0 * - 47 AS col2 FROM tab1 AS cor0
----
-2397
-3995
-4277

query I rowsort
SELECT ( - col0 ) * - 18 - - - col2 FROM tab2 AS cor0
----
1112
1292
805

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT COUNT( ALL + ( + ( col1 ) ) ) * + 5 * - COUNT( * ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-5307
SELECT COUNT ( ALL + ( + ( col1 ) ) ) * + 5 * - COUNT ( * ) FROM tab2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5308
SELECT DISTINCT + - col2 * + ( + ( + col1 ) ) / - col1 / ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 WHERE NOT ( + - col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT + - col2 * + ( + ( + col1 ) ) / - col1 / ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 WHERE NOT ( + - col0 ) IS NULL
----
NULL

query I rowsort
SELECT 98 + + col0 AS col1 FROM tab0
----
113
185
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 cor0 WHERE NOT col2 / - 38 IS NULL
----
-51
-85
-91

query I rowsort
SELECT + + col0 * ( - 4 ) FROM tab1 AS cor0
----
-204
-340
-364

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5313
SELECT * FROM tab2 WHERE + + 2 / - CAST( + col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5313
SELECT * FROM tab2 WHERE + + 2 / - CAST ( + col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5314
SELECT + col0 DIV + + 43 + + 98 FROM tab2 AS cor0
----
99
99
99

skipif mysql # not compatible
query I rowsort label-5314
SELECT + col0 / + + 43 + + 98 FROM tab2 AS cor0
----
99
99
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 - - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - 81, col0 FROM tab2 AS cor0
----
-81
46
-81
64
-81
75

query I rowsort
SELECT ALL 91 + + 88 AS col0 FROM tab1 AS cor0
----
179
179
179

query I rowsort
SELECT col0 + + 76 + + 93 FROM tab2 cor0
----
215
233
244

query I rowsort
SELECT 63 + - - ( + col0 ) * col2 FROM tab0 AS cor0
----
768
933
9666

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5320
SELECT ALL + + col1 + - CAST( + 96 AS SIGNED ) FROM tab0 AS cor0
----
-15
-75
-95

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL + + col1 + - CAST ( + 96 AS INTEGER ) FROM tab0 AS cor0
----
-15
-75
-95

query I rowsort
SELECT ALL 79 + + + col0 AS col0 FROM tab0 AS cor0
----
166
176
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5322
SELECT + CAST( NULL AS SIGNED ) * - + CAST( 31 AS SIGNED ) * + + 7 * COUNT( * ) FROM tab1 WHERE - - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5322
SELECT + CAST ( NULL AS INTEGER ) * - + CAST ( 31 AS INTEGER ) * + + 7 * COUNT ( * ) FROM tab1 WHERE - - col2 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN + col1 AND NULL
----

query I rowsort
SELECT + col1 * 52 AS col1 FROM tab2 AS cor0
----
2652
3484
4004

query I rowsort
SELECT DISTINCT - - 46 * ( + 72 ) * + col1 AS col1 FROM tab1 AS cor0
----
155664
16560
46368

onlyif mysql # aggregate syntax: 
query II rowsort label-5326
SELECT ALL + ( + 88 ), + COUNT( * ) AS col0 FROM tab0 AS cor0
----
88
3

skipif mysql # not compatible
query II rowsort label-5326
SELECT ALL + ( + 88 ), + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
88
3

query I rowsort
SELECT - + ( 47 ) FROM tab2 cor0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT - COUNT( * ) * - SUM( + col2 ) FROM tab2 AS cor0
----
363

skipif mysql # not compatible
query I rowsort label-5328
SELECT - COUNT ( * ) * - SUM ( + col2 ) FROM tab2 AS cor0
----
363

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT DISTINCT COUNT( * ) * + 67 FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT COUNT ( * ) * + 67 FROM tab2 AS cor0
----
201

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 75 / col1, col1 * col2 )
----

query II rowsort
SELECT + col2 AS col1, col1 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
21
47
81
99
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( + - col1 * + 62 ) AND NOT - + col1 IS NOT NULL
----

query I rowsort
SELECT ALL 28 + - + col1 FROM tab2
----
-23
-39
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT COUNT( - - ( - col0 ) ) + - + COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5334
SELECT COUNT ( - - ( - col0 ) ) + - + COUNT ( * ) AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5335
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5335
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + - 0 + + + col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT + 18 AS col1 FROM tab0 AS cor0 WHERE col0 * - col2 IS NOT NULL
----
18
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5338
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL BETWEEN ( NULL ) AND - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-5338
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL BETWEEN ( NULL ) AND - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 19 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 26 > NULL
----

query I rowsort
SELECT + col0 * - col1 + - - col0 AS col1 FROM tab1 AS cor0
----
-340
-4186
-663

query I rowsort
SELECT ALL - - col1 - - col2 AS col2 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query II rowsort label-5342
SELECT DISTINCT - COUNT( * ) * + + 51 + ( - COUNT( * ) ) AS col0, + 52 FROM tab1 AS cor0
----
-156
52

skipif mysql # not compatible
query II rowsort label-5342
SELECT DISTINCT - COUNT ( * ) * + + 51 + ( - COUNT ( * ) ) AS col0, + 52 FROM tab1 AS cor0
----
-156
52

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 36 + - 32 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT ALL 53 + - 88 * - MIN( col2 ) * 99 FROM tab0 AS cor0
----
87173

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL 53 + - 88 * - MIN ( col2 ) * 99 FROM tab0 AS cor0
----
87173

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT ALL - + SUM( DISTINCT - col2 ) AS col2 FROM tab2 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL - + SUM ( DISTINCT - col2 ) AS col2 FROM tab2 WHERE col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT DISTINCT COUNT( * ) * + 83 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT COUNT ( * ) * + 83 FROM tab2
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT - + COUNT( * ) AS col1 FROM tab2 WHERE NOT + ( - 43 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5347
SELECT - + COUNT ( * ) AS col1 FROM tab2 WHERE NOT + ( - 43 ) IS NULL
----
-3

query I rowsort
SELECT - col2 + + 91 FROM tab2 WHERE NOT - 33 IS NULL
----
33
51
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5349
SELECT DISTINCT - 32 AS col2, COUNT( * ) * - + 54 * - - 60 FROM tab0
----
-32
-9720

skipif mysql # not compatible
query II rowsort label-5349
SELECT DISTINCT - 32 AS col2, COUNT ( * ) * - + 54 * - - 60 FROM tab0
----
-32
-9720

query I rowsort
SELECT ALL - + 94 AS col1 FROM tab0 WHERE NOT + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT - SUM( ALL + ( + col1 ) ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5351
SELECT - SUM ( ALL + ( + col1 ) ) FROM tab1
----
-66

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT - col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5353
SELECT + MIN( DISTINCT + - 57 ) * + SUM( DISTINCT - col2 ) * 36 + - + COUNT( * ), COUNT( - ( + 98 ) ) AS col0 FROM tab0
----
320109
3

skipif mysql # not compatible
query II rowsort label-5353
SELECT + MIN ( DISTINCT + - 57 ) * + SUM ( DISTINCT - col2 ) * 36 + - + COUNT ( * ), COUNT ( - ( + 98 ) ) AS col0 FROM tab0
----
320109
3

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT + - ( - 60 ) - + col0 <> - col2 * + - col1
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE NOT 51 = - col0
----
10
47
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + - col0 / col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col1 * 17 FROM tab2 AS cor0 WHERE NOT - 67 + + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5358
SELECT ALL + 17 * - col0 DIV col0 FROM tab1 cor0
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL + 17 * - col0 / col0 FROM tab1 cor0
----
-17
-17
-17

query I rowsort
SELECT + ( 22 ) AS col2 FROM tab1 AS cor0
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT ALL + MAX( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL + MAX ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT ALL + + 31 * + 4 FROM tab1 AS cor0
----
124
124
124

query I rowsort
SELECT DISTINCT + + 49 AS col1 FROM tab0 cor0
----
49

query II rowsort
SELECT ALL + col2 AS col0, ( + - 39 ) AS col2 FROM tab2 AS cor0
----
23
-39
40
-39
58
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col1 col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - ( 7 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5366
SELECT ALL - COUNT( * ) DIV 66 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL - COUNT ( * ) / 66 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 39 + - col1 AS col2 FROM tab1 AS cor0
----
-8
25
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT + COUNT( * ) * 58 + + + SUM( DISTINCT col2 ) FROM tab0 AS cor0
----
330

skipif mysql # not compatible
query I rowsort label-5368
SELECT + COUNT ( * ) * 58 + + + SUM ( DISTINCT col2 ) FROM tab0 AS cor0
----
330

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5369
SELECT + SUM( - - CAST( NULL AS DECIMAL ) ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-5369
SELECT + SUM ( - - CAST ( NULL AS REAL ) ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT ( - + COUNT( + col1 ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5370
SELECT ( - + COUNT ( + col1 ) ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT + MAX( ALL 97 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
97

skipif mysql # not compatible
query I rowsort label-5371
SELECT + MAX ( ALL 97 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
97

query I rowsort
SELECT - col1 + + 72 FROM tab1 AS cor0
----
25
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5373
SELECT + col2 + + + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-5373
SELECT + col2 + + + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT - + 98 + ( col1 ) + - - 2 AS col0 FROM tab1 AS cor0
----
-49
-82
-91

query I rowsort
SELECT 74 * - col0 FROM tab2 cor0
----
-3404
-4736
-5550

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) IN ( col2, + 12 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5377
SELECT - + col0 DIV 44 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5377
SELECT - + col0 / 44 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE 67 * + - col0 / - ( - col0 ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT + col1 * - - col2 / + 91 AS col0 FROM tab2 WHERE NOT NULL BETWEEN - col1 AND + 79
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( col2 ) + + 26 NOT BETWEEN - - 35 * - ( 65 ) AND - col1 / + 46 + + col1 + - col0
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * col2 + - col1 col1 FROM tab2 AS cor0
----
1523
3297
478

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( col1 ) + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * - - col2 - - 2 FROM tab1 AS cor0
----
3483
4626
9218

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 62 AS col1 FROM tab2 cor0
----
-62
-62
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5386
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5386
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT col1 + + - 18 AS col0 FROM tab1
----
-13
-4
29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * 0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT ALL - ( + - COUNT( * ) ) FROM tab0 cor0 WHERE ( NULL ) < 28
----
0

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL - ( + - COUNT ( * ) ) FROM tab0 cor0 WHERE ( NULL ) < 28
----
0

query I rowsort
SELECT DISTINCT - col1 + + col2 + - - 15 AS col1 FROM tab2 AS cor0
----
-13
-22
6

query I rowsort
SELECT DISTINCT 23 + + + col2 FROM tab0 AS cor0
----
122
33
70

query II rowsort
SELECT - 82 AS col2, - col0 + col1 * - 84 AS col0 FROM tab1 AS cor0
----
-82
-1227
-82
-4039
-82
-505

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT + COUNT( * ) * + - COUNT( * ) FROM tab1 AS cor0 WHERE + 40 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5393
SELECT + COUNT ( * ) * + - COUNT ( * ) FROM tab1 AS cor0 WHERE + 40 IS NULL
----
0

query I rowsort
SELECT ALL col1 + col2 * - + col1 * - col1 FROM tab1 AS cor0
----
1480
150259
18830

query I rowsort
SELECT DISTINCT - - col0 + - col0 FROM tab1 AS cor0 WHERE + 74 / - 7 * col0 + col1 <> NULL
----

query I rowsort
SELECT ALL + col0 * + col0 + + col2 + - + col1 AS col0 FROM tab0 AS cor0
----
191
7558
9507

onlyif mysql # DIV for integer division: 
query I rowsort label-5397
SELECT col1 * 56 DIV ( + ( - - col0 ) ) AS col1 FROM tab1
----
15
28
3

skipif mysql # not compatible
query I rowsort label-5397
SELECT col1 * 56 / ( + ( - - col0 ) ) AS col1 FROM tab1
----
15
28
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT - 22 + + MIN( + col0 ) AS col0 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-5398
SELECT - 22 + + MIN ( + col0 ) AS col0 FROM tab0
----
-7

query I rowsort
SELECT DISTINCT - col1 + + 2 FROM tab2
----
-49
-65
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT 82 + COUNT( * ) AS col1 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-5400
SELECT 82 + COUNT ( * ) AS col1 FROM tab2
----
85

query I rowsort
SELECT 5 * + col1 + - + 26 FROM tab1
----
-1
209
44

query I rowsort
SELECT + ( + col1 ) + col0 AS col2 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT ALL + - col0 - col1 * + - col0 * - - col1 + - col0 AS col0 FROM tab1 AS cor0
----
1955
200837
9894

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5404
SELECT DISTINCT 66 * CAST( 21 AS SIGNED ) - + COUNT( * ) col0 FROM tab0
----
1383

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5404
SELECT DISTINCT 66 * CAST ( 21 AS INTEGER ) - + COUNT ( * ) col0 FROM tab0
----
1383

query I rowsort
SELECT ALL col0 * + - 67 - + + col2 + 88 AS col2 FROM tab0
----
-5751
-6510
-964

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT + MAX( + - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5406
SELECT + MAX ( + - col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT NULL <> + 4 * + col0
----

query II rowsort
SELECT 82 AS col1, + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
82
14
82
47
82
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT + + 19 * - MAX( DISTINCT + 24 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5409
SELECT + + 19 * - MAX ( DISTINCT + 24 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE NOT col1 * - + col0 = + - col2 + - col0
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5411
SELECT DISTINCT COUNT( * ) * MAX( ALL col2 ) FROM tab1 AS cor0 WHERE NOT + CAST( - + col0 AS SIGNED ) + - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT COUNT ( * ) * MAX ( ALL col2 ) FROM tab1 AS cor0 WHERE NOT + CAST ( - + col0 AS INTEGER ) + - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT + + ( 98 ) FROM tab2 AS cor0 WHERE NOT ( ( NOT col2 * - col2 IS NOT NULL ) )
----
98
98
98

query I rowsort
SELECT ( + + 51 ) FROM tab0
----
51
51
51

query I rowsort
SELECT 63 + - + col1 FROM tab1 WHERE NOT col0 <= - + col1
----
16
49
58

query II rowsort
SELECT col2, + col2 AS col1 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5416
SELECT CAST( + - COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5416
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE + 89 <= + col2 * col0 + + + 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0 AS col0, 71 - - ( col2 ) FROM tab2
----
46
94
64
111
75
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5419
SELECT - CAST( ( col1 ) AS SIGNED ) AS col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5419
SELECT - CAST ( ( col1 ) AS INTEGER ) AS col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE + col2 * - + col1 IS NULL
----

query I rowsort
SELECT ALL + - 10 AS col0 FROM tab0 WHERE NOT - + col1 + - 46 IS NOT NULL
----

query I rowsort
SELECT col2 * - col2 * - + ( + - col2 ) * + col0 AS col0 FROM tab0 AS cor0
----
-1557345
-87000
-94119003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5423
SELECT ALL - - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL - - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - 50 * - 40 FROM tab0 AS cor0
----
2000
2000
2000

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5425
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= + CAST( NULL AS SIGNED ) / + col1
----

skipif mysql # not compatible
query III rowsort label-5425
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= + CAST ( NULL AS INTEGER ) / + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT - - COUNT( - col0 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5426
SELECT - - COUNT ( - col0 ) AS col0 FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 ) / - col0 * + col2 - + - col2 IS NULL
----

query I rowsort
SELECT + - 52 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT ALL + 42 + - 7 * - + col2 + + col2 - + col2 * col2 * ( + col1 ) AS col1 FROM tab2 AS cor0
----
-122838
-224882
-26753

query II rowsort
SELECT col0 + + + col2, col0 FROM tab0 cor0
----
196
97
62
15
97
87

query I rowsort
SELECT ALL - 0 FROM tab1 AS cor0 WHERE 39 NOT BETWEEN + + 96 * - + 76 AND 90 * - col2 + - + col2
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + - 24 * + 46 AS col2 FROM tab0 AS cor0
----
-1023
-1083
-1103

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 42 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5434
SELECT CAST( + CAST( + MAX( - col2 ) AS DECIMAL ) AS SIGNED ) + + 60 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5434
SELECT CAST ( + CAST ( + MAX ( - col2 ) AS REAL ) AS INTEGER ) + + 60 AS col0 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT - + SUM( 85 ) + 55 + - MAX( DISTINCT - - 93 ) + COUNT( * ) + - - 98 AS col1 FROM tab0 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-5435
SELECT - + SUM ( 85 ) + 55 + - MAX ( DISTINCT - - 93 ) + COUNT ( * ) + - - 98 AS col1 FROM tab0 AS cor0
----
-192

query I rowsort
SELECT - 48 * - col2 * - col2 * + + col1 FROM tab1
----
-10431744
-6193152
-835440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col1 col1 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT ALL - COUNT( * ) * - 21 AS col0 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL - COUNT ( * ) * - 21 AS col0 FROM tab1
----
63

query I rowsort
SELECT DISTINCT col0 * + - 66 FROM tab2
----
-3036
-4224
-4950

onlyif mysql # DIV for integer division: 
query I rowsort label-5440
SELECT ALL 20 DIV + 41 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL 20 / + 41 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT - - COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5441
SELECT - - COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5442
SELECT CAST( + + 69 AS SIGNED ) FROM tab2
----
69
69
69

skipif mysql # not compatible
query I rowsort label-5442
SELECT CAST ( + + 69 AS INTEGER ) FROM tab2
----
69
69
69

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT DISTINCT + ( - - col2 ) - - - col0 - + col0 FROM tab2
----
-69
-88
-92

query I rowsort
SELECT - - 9 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT DISTINCT 33 * - 43 FROM tab0
----
-1419

onlyif mysql # DIV for integer division: 
query I rowsort label-5447
SELECT ALL 18 DIV + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5447
SELECT ALL 18 / + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - 60 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 22 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5450
SELECT DISTINCT COUNT( * ) DIV + 50 * - - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5450
SELECT DISTINCT COUNT ( * ) / + 50 * - - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 86 * + - col2 * + col0 FROM tab2 AS cor0
----
-220160
-374100
-90988

onlyif mysql # aggregate syntax: 
query II rowsort label-5452
SELECT DISTINCT 70 AS col0, 29 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
70
87

skipif mysql # not compatible
query II rowsort label-5452
SELECT DISTINCT 70 AS col0, 29 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
70
87

onlyif mysql # DIV for integer division: 
query II rowsort label-5453
SELECT ALL col0 AS col0, + col0 DIV col0 FROM tab2 AS cor0
----
46
1
64
1
75
1

skipif mysql # not compatible
query II rowsort label-5453
SELECT ALL col0 AS col0, + col0 / col0 FROM tab2 AS cor0
----
46
1
64
1
75
1

query II rowsort
SELECT - - col0 AS col2, + col1 AS col2 FROM tab0 AS cor0
----
15
81
87
21
97
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, 73 FROM tab2 AS cor0
----
-46
73
-64
73
-75
73

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE - col1 + + - col1 * - + 29 > + col0
----
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5457
SELECT col0 DIV col1 * + - 38 DIV + col2 + + 83 AS col1 FROM tab2 AS cor0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-5457
SELECT col0 / col1 * + - 38 / + col2 + + 83 AS col1 FROM tab2 AS cor0
----
83
83
83

onlyif mysql # DIV for integer division: 
query II rowsort label-5458
SELECT DISTINCT 91 DIV + ( + 93 ), col1 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-5458
SELECT DISTINCT 91 / + ( + 93 ), col1 FROM tab2
----
0
51
0
67
0
77

query I rowsort
SELECT + ( + 13 ) AS col1 FROM tab1
----
13
13
13

query II rowsort
SELECT + ( + col1 ) AS col2, col2 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT 50 * - + 14 FROM tab1
----
-700
-700
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT + - 50 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-5462
SELECT + - 50 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5463
SELECT DISTINCT - COUNT( * ) DIV - 21 col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5463
SELECT DISTINCT - COUNT ( * ) / - 21 col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT DISTINCT COUNT( + + col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT COUNT ( + + col0 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT - col2 + + ( ( + col0 ) ) AS col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT 29 * - 29 FROM tab0
----
-841
-841
-841

query I rowsort
SELECT + ( - + 29 ) AS col2 FROM tab1
----
-29
-29
-29

query I rowsort
SELECT DISTINCT - ( + ( 44 ) ) * + + 68 AS col0 FROM tab1
----
-2992

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5469
SELECT col1, col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-5469
SELECT col1, col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query II rowsort
SELECT DISTINCT - col2, - col1 AS col0 FROM tab2 AS cor0
----
-23
-51
-40
-77
-58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT ALL + - MIN( + - col0 ) + - 38 AS col2 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL + - MIN ( + - col0 ) + - 38 AS col2 FROM tab0 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT - ( - ( - COUNT( * ) ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5472
SELECT - ( - ( - COUNT ( * ) ) ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - AVG ( col0 ) AS col0 FROM tab2 AS cor0 WHERE + 12 + - col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT DISTINCT - 5 + COUNT( ALL - 97 ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-5474
SELECT DISTINCT - 5 + COUNT ( ALL - 97 ) FROM tab2
----
-2

query I rowsort
SELECT DISTINCT ( col2 ) * - col2 * + col2 + + 44 AS col1 FROM tab1
----
-205335
-314388
-884692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5476
SELECT - - col1 FROM tab1 WHERE + + CAST( col2 AS SIGNED ) IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5476
SELECT - - col1 FROM tab1 WHERE + + CAST ( col2 AS INTEGER ) IS NOT NULL
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 14 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5478
SELECT ALL + COUNT( 61 ) col0, - 86 * + - COUNT( * ) + + 42 FROM tab2
----
3
300

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5478
SELECT ALL + COUNT ( 61 ) col0, - 86 * + - COUNT ( * ) + + 42 FROM tab2
----
3
300

query I rowsort
SELECT + col1 * col0 + - col0 AS col0 FROM tab1
----
340
4186
663

query II rowsort
SELECT col2 * - + 4 * - col1 * + 35 + + + 42 AS col2, - ( - col2 ) FROM tab2
----
164262
23
431242
40
544082
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( col2, + 79, col2, - + col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 = + - 66 / + 6
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT - 14 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col2 AS col0, - col2 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5485
SELECT ALL 59 AS col0, - 10 DIV col1 DIV 75 FROM tab0 cor0
----
59
0
59
0
59
0

skipif mysql # not compatible
query II rowsort label-5485
SELECT ALL 59 AS col0, - 10 / col1 / 75 FROM tab0 cor0
----
59
0
59
0
59
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5486
SELECT DISTINCT CAST( 39 AS SIGNED ) * + col1 - 54 - col0 FROM tab2 AS cor0
----
1889
2484
2885

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT CAST ( 39 AS INTEGER ) * + col1 - 54 - col0 FROM tab2 AS cor0
----
1889
2484
2885

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5487
SELECT DISTINCT - 72 DIV COUNT( - + col0 ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT - 72 / COUNT ( - + col0 ) FROM tab1
----
-24

query I rowsort
SELECT - col0 * - + ( 2 ) FROM tab1
----
102
170
182

query I rowsort
SELECT - col0 + + col2 + + 69 AS col2 FROM tab2
----
45
46
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT ALL COUNT( * ) * ( - COUNT( * ) ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL COUNT ( * ) * ( - COUNT ( * ) ) FROM tab0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 99 col1 FROM tab2
----
99
99
99

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 + + 42 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col0, col1 + - + col1 col0 FROM tab0
----
-10
0
-47
0
-99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT DISTINCT + - 61 * COUNT( * ) AS col0 FROM tab1 cor0
----
-183

skipif mysql # not compatible
query I rowsort label-5495
SELECT DISTINCT + - 61 * COUNT ( * ) AS col0 FROM tab1 cor0
----
-183

onlyif mysql # DIV for integer division: 
query I rowsort label-5496
SELECT - 65 DIV - col1 + + + 38 * - col1 + - 62 AS col2 FROM tab0 AS cor0
----
-3140
-35
-857

skipif mysql # not compatible
query I rowsort label-5496
SELECT - 65 / - col1 + + + 38 * - col1 + - 62 AS col2 FROM tab0 AS cor0
----
-3140
-35
-857

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5497
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5497
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + CAST ( + col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5498
SELECT - COUNT( * ) + - + 83, - MAX( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-86
-75

skipif mysql # not compatible
query II rowsort label-5498
SELECT - COUNT ( * ) + - + 83, - MAX ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-86
-75

query I rowsort
SELECT col2 + + 14 - + + 27 * col0 AS col1 FROM tab0 AS cor0
----
-2325
-2506
-344

onlyif mysql # DIV for integer division: 
query I rowsort label-5500
SELECT DISTINCT + 49 DIV + col1 + - 8 FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-5500
SELECT DISTINCT + 49 / + col1 + - 8 FROM tab2 AS cor0
----
-8

query I rowsort
SELECT DISTINCT - ( + col0 ) * col1 + 3 + + + 79 FROM tab1 AS cor0
----
-343
-4195
-632

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 97 / col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - - 49 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5504
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2, tab0 AS cor0
----
-9

query III rowsort
SELECT * FROM tab0 WHERE + col2 - col0 * - col0 <= + + col0 * col1
----
15
81
47

query I rowsort
SELECT DISTINCT 13 - + col2 AS col2 FROM tab0
----
-34
-86
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 BETWEEN NULL AND - col0
----

query I rowsort
SELECT col1 - col2 * 18 FROM tab2 WHERE ( - col1 ) >= + col0 / 23
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 = col2 * - ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT ( - MAX( DISTINCT col0 ) ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-5510
SELECT ( - MAX ( DISTINCT col0 ) ) AS col2 FROM tab1
----
-91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 ) < + 27
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5512
SELECT CAST( col0 AS SIGNED ) AS col1 FROM tab2 WHERE NULL NOT IN ( - col1 + 54 )
----

skipif mysql # not compatible
query I rowsort label-5512
SELECT CAST ( col0 AS INTEGER ) AS col1 FROM tab2 WHERE NULL NOT IN ( - col1 + 54 )
----

query I rowsort
SELECT ALL ( - col2 ) AS col2 FROM tab2 WHERE 54 * - col1 - - col0 NOT IN ( col1 )
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5514
SELECT * FROM tab1 WHERE NOT + col2 * + CAST( 96 * - 85 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5514
SELECT * FROM tab1 WHERE NOT + col2 * + CAST ( 96 * - 85 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 * 54 + - col2 FROM tab2
----
1219
2120
3074

query I rowsort
SELECT DISTINCT ( col2 ) AS col2 FROM tab2 WHERE ( 90 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 16 FROM tab1 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL ( ( - col2 ) ) FROM tab0
----
-10
-47
-99

query I rowsort
SELECT 9 * col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 92 + col2 AS col1 FROM tab1 WHERE + ( + col0 ) - 96 IS NOT NULL
----
151
160
188

onlyif mysql # DIV for integer division: 
query I rowsort label-5521
SELECT + col2 DIV + col2 + + 12 FROM tab2
----
13
13
13

skipif mysql # not compatible
query I rowsort label-5521
SELECT + col2 / + col2 + + 12 FROM tab2
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT 29 / MAX( DISTINCT - 27 ) AS col2 FROM tab2 WHERE NULL BETWEEN - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5522
SELECT 29 / MAX ( DISTINCT - 27 ) AS col2 FROM tab2 WHERE NULL BETWEEN - col0 AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-5523
SELECT DISTINCT * FROM tab1 WHERE NOT 6 + - 3 <> ( ( + ( + 16 ) ) DIV + col1 )
----
85
5
59

skipif mysql # not compatible
query III rowsort label-5523
SELECT DISTINCT * FROM tab1 WHERE NOT 6 + - 3 <> ( ( + ( + 16 ) ) / + col1 )
----
85
5
59

query I rowsort
SELECT - 86 + - col0 * - col0 AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5525
SELECT - ( CAST( NULL AS SIGNED ) ) + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5525
SELECT - ( CAST ( NULL AS INTEGER ) ) + col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - col2 * 76 FROM tab1 AS cor0 WHERE + 22 = 30 + + 64
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 62 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT - 12 + + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5528
SELECT - 12 + + COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5530
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE 64 * 87 >= CAST( NULL AS SIGNED ) * + 46
----

skipif mysql # not compatible
query I rowsort label-5530
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE 64 * 87 >= CAST ( NULL AS INTEGER ) * + 46
----

query I rowsort
SELECT DISTINCT + 33 + col0 * col1 AS col2 FROM tab1 cor0
----
4310
458
747

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 34 / - col0 IS NOT NULL
----

query I rowsort
SELECT - col1 / + col1 AS col0 FROM tab2 WHERE ( - col2 + + col2 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5534
SELECT + col2 DIV + 18 col0 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5534
SELECT + col2 / + 18 col0 FROM tab2 AS cor0
----
1
2
3

query I rowsort
SELECT ALL - 96 + - col2 AS col1 FROM tab0 AS cor0
----
-106
-143
-195

query I rowsort
SELECT 39 FROM tab1 cor0 WHERE NULL IN ( - col0 + - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= 26 + 3
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5538
SELECT DISTINCT - col1 / - col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5538
SELECT DISTINCT - col1 / - col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 - - 13 * - col2 AS col1 FROM tab1 AS cor0
----
-1299
-852
-975

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT ( + ( col2 ) ) + 19 FROM tab0
----
118
29
66

query I rowsort
SELECT 33 + + col0 * 41 FROM tab1
----
2124
3518
3764

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT + col2 / - col2 BETWEEN - 43 AND 98
----

query I rowsort
SELECT ALL - col0 - + 3 - 37 AS col1 FROM tab2
----
-104
-115
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT DISTINCT COUNT( DISTINCT + col1 ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5545
SELECT DISTINCT COUNT ( DISTINCT + col1 ) FROM tab1 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( col1 ) AS col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL - ( ( + col0 ) ) FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5549
SELECT DISTINCT - CAST( - col1 AS SIGNED ) AS col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5549
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) AS col0 FROM tab0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 42 col0 FROM tab2 AS cor0
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5551
SELECT DISTINCT 66 * 82 AS col2 FROM tab1 AS cor0 WHERE CAST( col2 AS SIGNED ) NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT 66 * 82 AS col2 FROM tab1 AS cor0 WHERE CAST ( col2 AS INTEGER ) NOT IN ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 < ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5553
SELECT + + 88 DIV 93 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5553
SELECT + + 88 / 93 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> ( ( 51 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5555
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 IN ( CAST( 86 AS DECIMAL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5555
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 IN ( CAST ( 86 AS REAL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT 11 * + col1 / col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT ALL - 33 + + COUNT( * ) + + 46 * 65 AS col2 FROM tab0 AS cor0
----
2960

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL - 33 + + COUNT ( * ) + + 46 * 65 AS col2 FROM tab0 AS cor0
----
2960

query I rowsort
SELECT - col0 * + + col0 AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT + 13 + col0 FROM tab0 AS cor0
----
100
110
28

onlyif mysql # DIV for integer division: 
query I rowsort label-5560
SELECT ( - col2 ) DIV col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5560
SELECT ( - col2 ) / col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 * - col2 col2 FROM tab2 AS cor0 WHERE NOT NULL <= col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5562
SELECT + - 25 + - col2 + + col1 DIV ( - 90 ) AS col0 FROM tab2 AS cor0
----
-48
-65
-83

skipif mysql # not compatible
query I rowsort label-5562
SELECT + - 25 + - col2 + + col1 / ( - 90 ) AS col0 FROM tab2 AS cor0
----
-48
-65
-83

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 83 / + col2 * col2 <> col0
----

query I rowsort
SELECT DISTINCT - 29 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 50 AND + - col2 * col1 + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5565
SELECT col2 * + - col2 + col2 + + col1 DIV 12 FROM tab1
----
-3422
-4553
-9119

skipif mysql # not compatible
query I rowsort label-5565
SELECT col2 * + - col2 + col2 + + col1 / 12 FROM tab1
----
-3422
-4553
-9119

query I rowsort
SELECT + ( + + ( + 29 ) ) + - col0 + col1 AS col0 FROM tab0
----
-37
-67
95

query III rowsort
SELECT * FROM tab0 WHERE + col1 <= - + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 90 - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 1 * - col2 AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT + 68 * + col0 * col1 AS col0 FROM tab0
----
124236
6596
82620

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT ALL MAX( ALL + col0 ) + COUNT( * ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL MAX ( ALL + col0 ) + COUNT ( * ) FROM tab2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5572
SELECT col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE ( - 41 * - + col2 * + - col1 / + col2 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5572
SELECT col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE ( - 41 * - + col2 * + - col1 / + col2 ) IS NULL
----

query I rowsort
SELECT ALL - ( - + col0 ) + + 26 - - 67 + + 78 FROM tab2 AS cor0
----
217
235
246

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + + col0 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - - 9 * - 99 AS col1, 7 + - 56 AS col1 FROM tab2 AS cor0
----
-891
-49
-891
-49
-891
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT - COUNT( ALL 35 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5576
SELECT - COUNT ( ALL 35 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + - 55 * + + col2 - + - col2 FROM tab0 AS cor0
----
-2538
-5346
-540

query I rowsort
SELECT col1 - - 82 FROM tab2
----
133
149
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5579
SELECT DISTINCT MAX( col0 ) * - + CAST( COUNT( * ) AS SIGNED ) FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-5579
SELECT DISTINCT MAX ( col0 ) * - + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1
----
-273

query I rowsort
SELECT col1 * + 58 + + - col1 FROM tab1 AS cor0
----
2679
285
798

onlyif mysql # DIV for integer division: 
query I rowsort label-5581
SELECT ALL - col0 DIV + col0 + + 31 FROM tab0 cor0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL - col0 / + col0 + + 31 FROM tab0 cor0
----
30
30
30

query I rowsort
SELECT DISTINCT 22 + + 42 + + 11 AS col2 FROM tab1 AS cor0 WHERE NOT 60 NOT BETWEEN + col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 26 IS NULL
----

query I rowsort
SELECT col1 * - col0 + + col0 + - col1 + + - col2 * + col0 FROM tab1 AS cor0
----
-10421
-5360
-5573

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 76 > 78 * + 88
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT ( NULL ) NOT IN ( - col2 ) )
----

query I rowsort
SELECT DISTINCT col0 * 52 FROM tab2
----
2392
3328
3900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5588
SELECT ALL - 97 * + CAST( NULL AS SIGNED ) FROM tab1, tab1 A