hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 83 * ( + 62 ) AS col2 FROM tab2
----
5146
5146
5146

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT ALL 76 * ( - COUNT( * ) ) FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-1
SELECT ALL 76 * ( - COUNT ( * ) ) FROM tab2
----
-228

query II rowsort
SELECT col2 AS col2, - col1 - + 43 FROM tab1 WHERE NOT NULL = - col2
----

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

query I rowsort
SELECT DISTINCT - 31 * - + col2 AS col2 FROM tab0
----
1457
3069
310

onlyif mysql # DIV for integer division: 
query II rowsort label-5
SELECT + 21 DIV + 21 AS col1, 1 FROM tab2 AS cor0
----
1
1
1
1
1
1

skipif mysql # not compatible
query II rowsort label-5
SELECT + 21 / + 21 AS col1, 1 FROM tab2 AS cor0
----
1
1
1
1
1
1

query III rowsort
SELECT * FROM tab2 WHERE - - col0 - - col0 < NULL
----

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE - 3 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

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

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

query I rowsort
SELECT DISTINCT - 42 AS col0 FROM tab0 cor0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-10
SELECT ALL MAX( ALL + - 64 ) * CAST( + + SUM( ALL - 96 ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
18432

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL MAX ( ALL + - 64 ) * CAST ( + + SUM ( ALL - 96 ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
18432

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-16
SELECT 82 DIV - 29 AS col2 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-16
SELECT 82 / - 29 AS col2 FROM tab1
----
-2
-2
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-17
SELECT DISTINCT - 30 * + - 66 DIV + COUNT( * ) AS col2 FROM tab2
----
660

skipif mysql # not compatible
query I rowsort label-17
SELECT DISTINCT - 30 * + - 66 / + COUNT ( * ) AS col2 FROM tab2
----
660

query III rowsort
SELECT * FROM tab2 WHERE - ( - 57 ) * col2 NOT BETWEEN - 79 AND NULL
----

query I rowsort
SELECT ALL - ( + 93 ) * 31 AS col1 FROM tab1
----
-2883
-2883
-2883

query I rowsort
SELECT 22 - ( - + col1 ) + + - col2 FROM tab1
----
-32
-60
1

onlyif mysql # aggregate syntax: 
query II rowsort label-21
SELECT 84 + 42 + - 55 AS col0, - MAX( DISTINCT + 88 ) FROM tab2 WHERE ( + col0 ) IS NOT NULL
----
71
-88

skipif mysql # not compatible
query II rowsort label-21
SELECT 84 + 42 + - 55 AS col0, - MAX ( DISTINCT + 88 ) FROM tab2 WHERE ( + col0 ) IS NOT NULL
----
71
-88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-22
SELECT DISTINCT + 3 DIV + - CAST( 4 AS SIGNED ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-22
SELECT DISTINCT + 3 / + - CAST ( 4 AS INTEGER ) AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL ( - - col0 ) + - - col1 AS col0 FROM tab0
----
108
96
98

query I rowsort
SELECT + col0 * + - col0 * - - col0 + + col2 FROM tab2 cor0
----
-262104
-421817
-97313

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-25
SELECT + + SUM ( DISTINCT - - col0 ) + + 35 col0 FROM tab2 AS cor0
----
220

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

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

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

query I rowsort
SELECT DISTINCT + 66 AS col1 FROM tab0 cor0
----
66

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

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

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

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

query I rowsort
SELECT ALL - 68 FROM tab0 cor0 WHERE NULL IS NULL
----
-68
-68
-68

query I rowsort
SELECT ( col1 ) * - - col1 FROM tab0 AS cor0
----
1
441
6561

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

query I rowsort
SELECT - - col0 AS col2 FROM tab1 WHERE NOT + ( 1 ) = NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-39
SELECT + - col0 + CAST( + + col1 AS SIGNED ), + 19 AS col0 FROM tab2 AS cor0
----
-8
19
13
19
5
19

skipif mysql # not compatible
query II rowsort label-39
SELECT + - col0 + CAST ( + + col1 AS INTEGER ), + 19 AS col0 FROM tab2 AS cor0
----
-8
19
13
19
5
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-40
SELECT DISTINCT + - 7 AS col1, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-7
NULL

skipif mysql # not compatible
query II rowsort label-40
SELECT DISTINCT + - 7 AS col1, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-7
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT ALL ( + COUNT( * ) ) + 22 col2 FROM tab0
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-42
SELECT ALL ( + COUNT ( * ) ) + 22 col2 FROM tab0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-43
SELECT ALL + col0 + 1 DIV col0 col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-43
SELECT ALL + col0 + 1 / col0 col0 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL 35 AS col1 FROM tab0 WHERE ( - 2 ) < ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-45
SELECT ALL COUNT( ALL CAST( NULL AS SIGNED ) ) * 1 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL COUNT ( ALL CAST ( NULL AS INTEGER ) ) * 1 AS col1 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) BETWEEN + col1 * 32 - + 15 * col1 AND - col1 - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-47
SELECT ALL - 60 DIV 83 + col0 * + 32 AS col0 FROM tab1
----
1632
2720
2912

skipif mysql # not compatible
query I rowsort label-47
SELECT ALL - 60 / 83 + col0 * + 32 AS col0 FROM tab1
----
1632
2720
2912

query I rowsort
SELECT DISTINCT + col1 * - 63 AS col1 FROM tab1
----
-2961
-315
-882

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN + 54 AND 34 / col1
----

query I rowsort
SELECT - col1 * col2 AS col2 FROM tab0 WHERE NULL NOT IN ( - 91 * - 75 )
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( 4 )
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 <> col0 * 6
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT 90 * 11 + 47 * + col1 AS col0 FROM tab0
----
1037
1977
4797

query I rowsort
SELECT - col2 + + col2 * + 8 AS col2 FROM tab0
----
329
693
70

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT ALL COUNT( * ) * MAX( DISTINCT - 88 * + col1 ) AS col0 FROM tab2
----
-13464

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL COUNT ( * ) * MAX ( DISTINCT - 88 * + col1 ) AS col0 FROM tab2
----
-13464

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT MIN( ALL - 46 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-57
SELECT MIN ( ALL - 46 ) FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT ALL - MIN( DISTINCT col2 ) * + 40 AS col0 FROM tab2
----
-920

skipif mysql # not compatible
query I rowsort label-58
SELECT ALL - MIN ( DISTINCT col2 ) * + 40 AS col0 FROM tab2
----
-920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col1 col2 FROM tab1
----
425
4277
714

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

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

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

query I rowsort
SELECT DISTINCT + 20 - col0 FROM tab2
----
-26
-44
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-63
SELECT col2 + + ( + col1 ) DIV col1 AS col1 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-63
SELECT col2 + + ( + col1 ) / col1 AS col1 FROM tab2
----
24
41
59

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) BETWEEN NULL AND - 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT DISTINCT + 61 * + SUM( DISTINCT - 35 * col0 ) AS col0 FROM tab2
----
-394975

skipif mysql # not compatible
query I rowsort label-67
SELECT DISTINCT + 61 * + SUM ( DISTINCT - 35 * col0 ) AS col0 FROM tab2
----
-394975

query I rowsort
SELECT col1 + 15 AS col2 FROM tab2
----
66
82
92

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

skipif mysql # not compatible
query I rowsort label-69
SELECT ALL CAST ( 4 AS INTEGER ) AS col0 FROM tab2
----
4
4
4

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

query I rowsort
SELECT + col1 * + 36 FROM tab2
----
1836
2412
2772

query I rowsort
SELECT ALL - 2 * + col0 FROM tab1
----
-102
-170
-182

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * + 47 NOT BETWEEN NULL AND - col2 + 59
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT col0 <= + col2
----
59
68

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

skipif mysql # not compatible
query I rowsort label-75
SELECT ALL + CAST ( NULL AS REAL ) * - col0 + + col0 * - col0 FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT DISTINCT + 92 * ( + MIN( - 88 ) ) AS col2 FROM tab0 AS cor0
----
-8096

skipif mysql # not compatible
query I rowsort label-76
SELECT DISTINCT + 92 * ( + MIN ( - 88 ) ) AS col2 FROM tab0 AS cor0
----
-8096

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT MAX( - 22 ) AS col2 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-79
SELECT MAX ( - 22 ) AS col2 FROM tab2
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-80
SELECT ( col2 ) DIV col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-80
SELECT ( col2 ) / col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 76 col0 FROM tab0 cor0
----
3572
7524
760

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-84
SELECT - CAST( col2 AS SIGNED ) FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-84
SELECT - CAST ( col2 AS INTEGER ) FROM tab2 cor0
----
-23
-40
-58

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

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 * 11 NOT IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 - col1 AS col2 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 - 83 AS col2 FROM tab1 WHERE 13 / + col1 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-89
SELECT DISTINCT COUNT ( * ) + - 8 FROM tab0
----
-5

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-92
SELECT 28 DIV - col2 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-92
SELECT 28 / - col2 AS col2 FROM tab2 AS cor0
----
-1
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-94
SELECT col0 * - + 30 + - CAST( col2 AS SIGNED ) + + col2 AS col1 FROM tab2
----
-1380
-1920
-2250

skipif mysql # not compatible
query I rowsort label-94
SELECT col0 * - + 30 + - CAST ( col2 AS INTEGER ) + + col2 AS col1 FROM tab2
----
-1380
-1920
-2250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-95
SELECT - CAST( + 97 AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

skipif mysql # not compatible
query I rowsort label-95
SELECT - CAST ( + 97 AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

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

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

query I rowsort
SELECT ALL col1 + - 74 + + col1 AS col0 FROM tab2 AS cor0
----
28
60
80

query I rowsort
SELECT DISTINCT + col2 - + col0 * + col0 * + col2 FROM tab1 cor0
----
-249600
-426216
-563040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-100
SELECT + 99 * 59 AS col2 FROM tab2 AS cor0 WHERE 60 / col2 * + 34 >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-100
SELECT + 99 * 59 AS col2 FROM tab2 AS cor0 WHERE 60 / col2 * + 34 >= + CAST ( NULL AS INTEGER )
----

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

query I rowsort
SELECT - - 96 * col0 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
4416
6144
7200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 * ( - - col2 ) col1 FROM tab0 AS cor0
----
-329
-693
-70

query I rowsort
SELECT DISTINCT + 67 * + + 93 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
6231

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

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

query I rowsort
SELECT DISTINCT 32 - - col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
113
33
53

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

skipif mysql # not compatible
query III rowsort label-107
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) - - - col2 IS NULL
----

query I rowsort
SELECT col2 * - 99 FROM tab0
----
-4653
-9801
-990

query I rowsort
SELECT + col2 FROM tab2 WHERE + 64 * + + 91 - + 2 / col1 IS NULL
----

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

query I rowsort
SELECT - col1 - - - col0 - col2 FROM tab0
----
-118
-143
-197

query I rowsort
SELECT - col0 - col0 AS col0 FROM tab2
----
-128
-150
-92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-113
SELECT + 67 - col1 - CAST( + col0 AS SIGNED ) DIV 50 col0 FROM tab0
----
-14
45
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-113
SELECT + 67 - col1 - CAST ( + col0 AS INTEGER ) / 50 col0 FROM tab0
----
-14
45
65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT DISTINCT - COUNT( * ) * 8 FROM tab0 AS cor0 WHERE ( + col2 * - col1 + 28 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-116
SELECT DISTINCT - COUNT ( * ) * 8 FROM tab0 AS cor0 WHERE ( + col2 * - col1 + 28 ) IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > - col0 * - - col0
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-118
SELECT DISTINCT + 31 / - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col1 ) = - col1
----

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

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

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

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

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

query I rowsort
SELECT ALL - ( col2 ) * + 10 FROM tab0 AS cor0
----
-100
-470
-990

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 + + + col0 + + 10 + col0 * - 57 )
----

query I rowsort
SELECT ALL + ( - + 40 ) FROM tab1 AS cor0
----
-40
-40
-40

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

query I rowsort
SELECT + ( + col2 ) * + col1 + + 62 FROM tab0 AS cor0
----
161
272
3869

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

query II rowsort
SELECT DISTINCT col0, + col2 AS col0 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # DIV for integer division: 
query I rowsort label-132
SELECT 13 DIV - 78 + col1 AS col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-132
SELECT 13 / - 78 + col1 AS col0 FROM tab1
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 55 >= NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col1 + - 22 col0 FROM tab0 cor0
----
-21
419
6539

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

skipif mysql # not compatible
query I rowsort label-136
SELECT - COUNT ( * ) + + + CAST ( - 25 AS INTEGER ) FROM tab0 AS cor0
----
-28

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

onlyif mysql # DIV for integer division: 
query II rowsort label-138
SELECT ALL + col2 AS col1, - col1 DIV - 45 FROM tab1 cor0
----
59
0
68
1
96
0

skipif mysql # not compatible
query II rowsort label-138
SELECT ALL + col2 AS col1, - col1 / - 45 FROM tab1 cor0
----
59
0
68
1
96
0

onlyif mysql # DIV for integer division: 
query I rowsort label-139
SELECT DISTINCT - 88 DIV col0 FROM tab1 WHERE NOT col0 > + col1 * col1
----
-1
0

skipif mysql # not compatible
query I rowsort label-139
SELECT DISTINCT - 88 / col0 FROM tab1 WHERE NOT col0 > + col1 * col1
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-140
SELECT ALL + COUNT( * ) + + + CAST( 61 AS SIGNED ) - - + MAX( + col0 ) AS col2 FROM tab1 AS cor0
----
155

skipif mysql # not compatible
query I rowsort label-140
SELECT ALL + COUNT ( * ) + + + CAST ( 61 AS INTEGER ) - - + MAX ( + col0 ) AS col2 FROM tab1 AS cor0
----
155

query I rowsort
SELECT - 82 * 41 + + + col1 + + col0 AS col2 FROM tab2 AS cor0
----
-3220
-3221
-3265

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-142
SELECT DISTINCT 85 - - + col1 + - + col1 + - CAST( col0 AS SIGNED ) DIV + 75 AS col1 FROM tab0 AS cor0
----
84
85

skipif mysql # not compatible
query I rowsort label-142
SELECT DISTINCT 85 - - + col1 + - + col1 + - CAST ( col0 AS INTEGER ) / + 75 AS col1 FROM tab0 AS cor0
----
84
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT COUNT( * ) + 64 FROM tab2 AS cor0 WHERE NULL IS NULL
----
67

skipif mysql # not compatible
query I rowsort label-145
SELECT COUNT ( * ) + 64 FROM tab2 AS cor0 WHERE NULL IS NULL
----
67

query I rowsort
SELECT + - col1 + + 43 * + - col0 AS col1 FROM tab0 AS cor0
----
-3762
-4172
-726

query I rowsort
SELECT - - col0 + - 75 * - ( + - col2 ) + + 43 FROM tab2 cor0
----
-1636
-2893
-4232

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT DISTINCT + 93 - 10 * - - COUNT( * ) AS col1 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-148
SELECT DISTINCT + 93 - 10 * - - COUNT ( * ) AS col1 FROM tab1
----
63

query I rowsort
SELECT + col0 / + + col1 FROM tab1 WHERE NULL < ( - 44 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-151
SELECT 17 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-151
SELECT 17 / + col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-152
SELECT ALL + SUM( 86 ) * + 67 * + 86 AS col0 FROM tab1
----
1486596

skipif mysql # not compatible
query I rowsort label-152
SELECT ALL + SUM ( 86 ) * + 67 * + 86 AS col0 FROM tab1
----
1486596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-153
SELECT - 83 DIV - + COUNT( + col2 ) AS col1 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-153
SELECT - 83 / - + COUNT ( + col2 ) AS col1 FROM tab1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-154
SELECT col2 DIV ( + col1 ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-154
SELECT col2 / ( + col1 ) AS col0 FROM tab2
----
0
0
0

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

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

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

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

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

query I rowsort
SELECT ALL 81 * 20 * + 62 - 81 AS col1 FROM tab2 AS cor0 WHERE NOT ( 48 * + col1 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT ALL + COUNT( * ) * - 92 + + 53 FROM tab2 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-159
SELECT ALL + COUNT ( * ) * - 92 + + 53 FROM tab2 cor0
----
-223

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-160
SELECT ALL + 19 / + col0 * col1 / + col1 * + - CAST( NULL AS DECIMAL ) / - CAST( NULL AS SIGNED ) + - + col2 + - 15 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL + 19 / + col0 * col1 / + col1 * + - CAST ( NULL AS REAL ) / - CAST ( NULL AS INTEGER ) + - + col2 + - 15 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT COUNT( * ) * + + 99 AS col2 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-161
SELECT COUNT ( * ) * + + 99 AS col2 FROM tab1
----
297

query I rowsort
SELECT - - 0 + + - 51 FROM tab0 WHERE NULL <> NULL
----

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

skipif mysql # not compatible
query III rowsort label-163
SELECT ALL * FROM tab2 WHERE + 35 + - CAST ( + + col0 AS INTEGER ) * + col0 + - col0 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT ALL COUNT( * ) + - 84 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-164
SELECT ALL COUNT ( * ) + - 84 FROM tab2
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-165
SELECT ALL 76 DIV + COUNT( * ) FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-165
SELECT ALL 76 / + COUNT ( * ) FROM tab1
----
25

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

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

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

query I rowsort
SELECT ALL 15 + col1 AS col1 FROM tab0 AS cor0
----
16
36
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - - ( col0 ) ) col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - 5 * - col2 FROM tab0 AS cor0
----
235
495
50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-171
SELECT + COUNT( DISTINCT + - 53 ) + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-171
SELECT + COUNT ( DISTINCT + - 53 ) + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT col0 + - + 79 FROM tab0
----
-64
18
8

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

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

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

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

skipif mysql # not compatible
query I rowsort label-176
SELECT DISTINCT + + AVG ( CAST ( NULL AS INTEGER ) ) - - SUM ( + col1 ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - + 7 * col2 col1 FROM tab1 AS cor0
----
408
429
658

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT - COUNT( - + ( 14 ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-178
SELECT - COUNT ( - + ( 14 ) ) FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL - + col2 - + ( - 44 ) FROM tab0 AS cor0
----
-3
-55
34

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

query I rowsort
SELECT col2 - + - col2 * + - 96 FROM tab2 AS cor0
----
-2185
-3800
-5510

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT ALL - 84 * COUNT( col1 ) - - COUNT( * ) col2 FROM tab2 AS cor0
----
-249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-182
SELECT ALL - 84 * COUNT ( col1 ) - - COUNT ( * ) col2 FROM tab2 AS cor0
----
-249

onlyif mysql # DIV for integer division: 
query I rowsort label-183
SELECT 7 DIV + 96 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-183
SELECT 7 / + 96 AS col0 FROM tab2
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-184
SELECT DISTINCT COUNT ( * ) * + CAST ( + COUNT ( ALL + ( col1 ) ) AS INTEGER ) AS col1 FROM tab0
----
9

query I rowsort
SELECT DISTINCT col2 + + + col1 * + - col2 + - + col0 * + col0 + col1 FROM tab0 WHERE NOT + col0 + + 91 >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 - + 16 + - + 93 * + col2 / - col2 + - 78 <> + 19
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-188
SELECT ALL ( - ( - MIN( CAST( NULL AS SIGNED ) ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL ( - ( - MIN ( CAST ( NULL AS INTEGER ) ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - ( - + 18 ) AS col0 FROM tab0 AS cor0
----
18

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

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

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

query I rowsort
SELECT + col2 * - 94 AS col0 FROM tab1 AS cor0
----
-5546
-6392
-9024

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 95 + 23 > - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * - 87 FROM tab1 AS cor0
----
-5133
-5916
-8352

query II rowsort
SELECT + 47 * + col0 * - 42 AS col0, col0 FROM tab0 AS cor0
----
-171738
87
-191478
97
-29610
15

query I rowsort
SELECT DISTINCT - + col1 * 93 * col2 * 40 FROM tab1 cor0
----
-1097400
-11889120
-4999680

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-198
SELECT ALL + SUM( - 30 ) + CAST( NULL AS SIGNED ) * - 29 / - ( + 47 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL + SUM ( - 30 ) + CAST ( NULL AS INTEGER ) * - 29 / - ( + 47 ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL - ( - col0 ) + - 72 FROM tab1
----
-21
13
19

query I rowsort
SELECT col2 * 3 + col0 + + col1 + + col2 - - col1 * + - col2 * - - 57 FROM tab0
----
-11822
-216715
-5149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) + + col2 col0 FROM tab2 AS cor0
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 * col2 + - - col0 col1 FROM tab0 AS cor0
----
1002
2176
297

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

query I rowsort
SELECT DISTINCT 93 - + 92 AS col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT - - col1 AS col0 FROM tab2 WHERE - 40 > NULL
----

query I rowsort
SELECT - 5 * - - col2 FROM tab1
----
-295
-340
-480

query I rowsort
SELECT DISTINCT + 20 + + col1 AS col2 FROM tab1
----
25
34
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-208
SELECT 92 DIV + 5 - COUNT( + col1 ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-208
SELECT 92 / + 5 - COUNT ( + col1 ) FROM tab1
----
15

query I rowsort
SELECT + col2 + - col1 * - + col1 * - 27 * - 18 AS col2 FROM tab2 AS cor0
----
1264109
2181712
2881534

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-211
SELECT ALL + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0 WHERE - col2 * + 50 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-211
SELECT ALL + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0 WHERE - col2 * + 50 IS NOT NULL
----
NULL
NULL
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT DISTINCT ( - - MAX( - - 15 ) ) FROM tab1 AS cor0 WHERE 80 IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT ( - - MAX ( - - 15 ) ) FROM tab1 AS cor0 WHERE 80 IS NOT NULL
----
15

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

query II rowsort
SELECT DISTINCT + col2 AS col2, + ( - ( - + 43 ) ) + + col0 * + - col2 * + col1 + col1 AS col0 FROM tab1 cor0
----
59
-25027
68
-290746
96
-68487

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col0, - 29 + - col2 col1 FROM tab2
----
23
-52
40
-69
58
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-220
SELECT ALL - CAST( NULL AS SIGNED ) * - col1 + col2 FROM tab1 WHERE NOT NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-220
SELECT ALL - CAST ( NULL AS INTEGER ) * - col1 + col2 FROM tab1 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT 23 AS col2, ( + 93 ) + col1 AS col2, + 22 FROM tab1
----
9 values hashing to 01ca8b47e5dfdc54a4d76d243adb94b0

query II rowsort
SELECT - col1, - col2 + - 11 + 0 AS col1 FROM tab0
----
-1
-110
-21
-21
-81
-58

query II rowsort
SELECT ALL - col2, + 86 * + 37 + - col0 * - 60 AS col2 FROM tab1
----
-59
8282
-68
8642
-96
6242

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT COUNT( * ) - + ( - COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT ( ( NOT col2 * col2 NOT IN ( - 4 + + col2 ) ) )
----
6

skipif mysql # not compatible
query I rowsort label-224
SELECT COUNT ( * ) - + ( - COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT ( ( NOT col2 * col2 NOT IN ( - 4 + + col2 ) ) )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT - MIN( DISTINCT - 34 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
34

skipif mysql # not compatible
query I rowsort label-225
SELECT - MIN ( DISTINCT - 34 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
34

query I rowsort
SELECT + - col1 * col1 + - 25 FROM tab1 AS cor0
----
-221
-2234
-50

query I rowsort
SELECT ALL + col2 + - 7 FROM tab0 AS cor0 WHERE NOT col0 * - 4 IS NULL
----
3
40
92

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

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

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

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

query II rowsort
SELECT - 18, ( col0 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col0, col2 FROM tab0
----
-15
47
-87
10
-97
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-233
SELECT - 21 * + + 28 - - + col0 + - - 24 - + + CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
-540
-541
-547

skipif mysql # not compatible
query I rowsort label-233
SELECT - 21 * + + 28 - - + col0 + - - 24 - + + CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
-540
-541
-547

query I rowsort
SELECT ALL + 22 + - col2 + - col2 + col2 AS col2 FROM tab1
----
-37
-46
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col0 ) - col2 * - col1 col0 FROM tab2 AS cor0
----
1219
3144
3961

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-237
SELECT ALL COUNT( * ) col1 FROM tab2 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-237
SELECT ALL COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + + 80 + - col1 FROM tab0 AS cor0
----
-1
59
79

query I rowsort
SELECT ALL ( + - col1 ) * + - 56 FROM tab1 AS cor0
----
2632
280
784

query I rowsort
SELECT + 91 + 38 AS col0 FROM tab1 AS cor0
----
129
129
129

query I rowsort
SELECT ALL + 39 + - + col0 * + col2 + + col1 AS col2 FROM tab1
----
-4843
-4971
-6102

onlyif mysql # DIV for integer division: 
query I rowsort label-242
SELECT DISTINCT 0 DIV 61 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-242
SELECT DISTINCT 0 / 61 FROM tab2
----
0

query I rowsort
SELECT + 49 + + - col2 FROM tab1
----
-10
-19
-47

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-246
SELECT DISTINCT - COUNT( + + col1 ), 68 AS col0 FROM tab0 AS cor0
----
-3
68

skipif mysql # not compatible
query II rowsort label-246
SELECT DISTINCT - COUNT ( + + col1 ), 68 AS col0 FROM tab0 AS cor0
----
-3
68

query I rowsort
SELECT ALL - - 72 * col2 * 92 FROM tab2 AS cor0
----
152352
264960
384192

query I rowsort
SELECT ( + - 96 ) AS col2 FROM tab2
----
-96
-96
-96

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

query I rowsort
SELECT ALL - ( - 5 ) FROM tab2
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT - - COUNT( ALL - 13 ) - - + 68 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
71

skipif mysql # not compatible
query I rowsort label-251
SELECT - - COUNT ( ALL - 13 ) - - + 68 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
71

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

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

query I rowsort
SELECT - + 61 + + + col1 FROM tab2 AS cor0
----
-10
16
6

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT - - COUNT( * ) * + 72 + - 14 * 68 AS col2 FROM tab2 AS cor0
----
-736

skipif mysql # not compatible
query I rowsort label-254
SELECT - - COUNT ( * ) * + 72 + - 14 * 68 AS col2 FROM tab2 AS cor0
----
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT + + 22 + + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-255
SELECT + + 22 + + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
19

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT COUNT( * ) * - + 30 FROM tab1, tab1 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-259
SELECT COUNT ( * ) * - + 30 FROM tab1, tab1 AS cor0
----
-270

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-261
SELECT DISTINCT - + COUNT( * ) DIV - 5 FROM tab0 AS cor0 WHERE NOT - col1 + + CAST( NULL AS DECIMAL ) + - - col0 + - - col1 NOT BETWEEN - + col2 AND col1
----
0

skipif mysql # not compatible
query I rowsort label-261
SELECT DISTINCT - + COUNT ( * ) / - 5 FROM tab0 AS cor0 WHERE NOT - col1 + + CAST ( NULL AS REAL ) + - - col0 + - - col1 NOT BETWEEN - + col2 AND col1
----
0

query I rowsort
SELECT ALL + col1 + - + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 35 col2, 62 AS col2 FROM tab1 AS cor0
----
35
62
35
62
35
62

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-265
SELECT + + CAST( col0 AS SIGNED ) * + - col0 AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-265
SELECT + + CAST ( col0 AS INTEGER ) * + - col0 AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-266
SELECT DISTINCT + - MAX( - col2 ) * - 85 AS col1 FROM tab1 AS cor0
----
-5015

skipif mysql # not compatible
query I rowsort label-266
SELECT DISTINCT + - MAX ( - col2 ) * - 85 AS col1 FROM tab1 AS cor0
----
-5015

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - ( - col1 ) col2, + 56 FROM tab1 AS cor0 WHERE NOT - ( + col2 ) * + col2 IS NOT NULL
----

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

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

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

query I rowsort
SELECT DISTINCT 25 + col0 AS col0 FROM tab1
----
110
116
76

query I rowsort
SELECT ALL + - col2 FROM tab1 WHERE NULL NOT IN ( col2, + col2, 55 )
----

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

query I rowsort
SELECT DISTINCT + 56 + + + 41 FROM tab2
----
97

query I rowsort
SELECT DISTINCT - col2 + + + col0 AS col2 FROM tab2
----
17
23
24

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-276
SELECT + col2 DIV + - ( 97 ) col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-276
SELECT + col2 / + - ( 97 ) col1 FROM tab2 AS cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT + col2 - col0 + - col1 FROM tab0 AS cor0
----
-49
-98
1

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 78 + - col0 + - - col1 * - col0 col2 FROM tab1 AS cor0
----
2730
3213
6120

query I rowsort
SELECT DISTINCT + col0 + + col2 + - col0 * 91 * + 19 AS col1 FROM tab0 AS cor0
----
-150326
-167517
-25873

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

skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - 4 / + + 0 > NULL )
----

query I rowsort
SELECT ALL 87 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
87
87
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-285
SELECT DISTINCT CAST( NULL AS SIGNED ) * - ( - + 46 ), 71 * - 3 * - col1 AS col2, + col1 AS col2 FROM tab0
----
9 values hashing to 9a7cdde86b9ff8824e15ce3d5ee023df

skipif mysql # not compatible
query III rowsort label-285
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - ( - + 46 ), 71 * - 3 * - col1 AS col2, + col1 AS col2 FROM tab0
----
9 values hashing to 9a7cdde86b9ff8824e15ce3d5ee023df

query I rowsort
SELECT DISTINCT - ( + 25 ) * - col0 FROM tab0
----
2175
2425
375

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 34 ) = - ( + + 61 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > + 17
----

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT - SUM( ALL 79 ) FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-293
SELECT - SUM ( ALL 79 ) FROM tab1
----
-237

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

query I rowsort
SELECT ALL ( - - 72 ) AS col0 FROM tab2
----
72
72
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-296
SELECT * FROM tab1 WHERE NOT CAST( - col2 AS SIGNED ) * + 64 + - 88 = + 0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-296
SELECT * FROM tab1 WHERE NOT CAST ( - col2 AS INTEGER ) * + 64 + - 88 = + 0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 * + + col0 col2 FROM tab2 cor0
----
2714
3776
4425

query I rowsort
SELECT ALL + + col2 * col2 * - col2 AS col1 FROM tab1 AS cor0
----
-205379
-314432
-884736

query I rowsort
SELECT DISTINCT - - 37 AS col2 FROM tab0 cor0
----
37

query I rowsort
SELECT 55 * + col0 AS col1 FROM tab0
----
4785
5335
825

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT COUNT( - 93 ) + + 27 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-302
SELECT COUNT ( - 93 ) + + 27 FROM tab2
----
30

skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query I rowsort
SELECT DISTINCT + + col0 * + + col1 / + + 66 FROM tab0 WHERE NULL = + col0 + - 85 / 0
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-305
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + 78 = - col2 * - - ( - col0 ) + - col0 - + CAST( col1 AS SIGNED ) * + 16 / - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-305
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + 78 = - col2 * - - ( - col0 ) + - col0 - + CAST ( col1 AS INTEGER ) * + 16 / - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 14 FROM tab1 AS cor0 WHERE ( + col0 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-307
SELECT DISTINCT CAST( - + col0 AS SIGNED ) col1 FROM tab0 AS cor0
----
-15
-87
-97

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

query I rowsort
SELECT ( - 83 ) FROM tab1 AS cor0
----
-83
-83
-83

query I rowsort
SELECT + - col0 * 24 AS col2 FROM tab2 AS cor0
----
-1104
-1536
-1800

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-312
SELECT DISTINCT + col2 + + col2 DIV col1 * - ( - col1 ) FROM tab0
----
10
198
47

skipif mysql # not compatible
query I rowsort label-312
SELECT DISTINCT + col2 + + col2 / col1 * - ( - col1 ) FROM tab0
----
10
198
47

query I rowsort
SELECT ALL col1 + + 47 - + col1 * 66 + + col1 FROM tab2
----
-3217
-4241
-4881

query II rowsort
SELECT ALL - col1, - col0 AS col1 FROM tab0
----
-1
-97
-21
-87
-81
-15

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

query I rowsort
SELECT ALL - col0 + 36 FROM tab1
----
-15
-49
-55

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

query I rowsort
SELECT 26 * + - 94 + col1 AS col1 FROM tab0 cor0
----
-2363
-2423
-2443

onlyif mysql # aggregate syntax: 
query I rowsort label-319
SELECT ALL - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) = col0
----
0

skipif mysql # not compatible
query I rowsort label-319
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) = col0
----
0

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT 8 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

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

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <= NULL
----

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

query I rowsort
SELECT + - col1 * ( + - col2 ) + 75 FROM tab1 cor0
----
1419
3271
370

query I rowsort
SELECT DISTINCT col0 * - + col0 * + - col2 AS col0 FROM tab0 AS cor0
----
10575
75690
931491

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT DISTINCT COUNT( DISTINCT 50 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-326
SELECT DISTINCT COUNT ( DISTINCT 50 ) FROM tab2 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-327
SELECT + col0 DIV col0 AS col2, col1 FROM tab1 AS cor0
----
1
14
1
47
1
5

skipif mysql # not compatible
query II rowsort label-327
SELECT + col0 / col0 AS col2, col1 FROM tab1 AS cor0
----
1
14
1
47
1
5

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

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

query I rowsort
SELECT DISTINCT 27 + + col1 FROM tab1
----
32
41
74

query I rowsort
SELECT ALL 38 AS col2 FROM tab0 WHERE NOT + col1 * + 77 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT DISTINCT 93 * - - COUNT( * ) * + ( 7 ) AS col0 FROM tab1
----
1953

skipif mysql # not compatible
query I rowsort label-331
SELECT DISTINCT 93 * - - COUNT ( * ) * + ( 7 ) AS col0 FROM tab1
----
1953

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT + 46 + 69 + - MAX( + + col1 ) + - COUNT( * ) + + - COUNT( * ) + + - ( + ( COUNT( * ) ) ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-332
SELECT + 46 + 69 + - MAX ( + + col1 ) + - COUNT ( * ) + + - COUNT ( * ) + + - ( + ( COUNT ( * ) ) ) AS col0 FROM tab1
----
59

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col1 NOT BETWEEN NULL AND + + 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT SUM( DISTINCT - - 44 ) + - + 42 * + + COUNT( * ) AS col0 FROM tab2
----
-82

skipif mysql # not compatible
query I rowsort label-335
SELECT SUM ( DISTINCT - - 44 ) + - + 42 * + + COUNT ( * ) AS col0 FROM tab2
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-336
SELECT 71 * 94 + + col2 DIV 34 - col0 * + col2 * col1 AS col0 FROM tab2 cor0
----
-190445
-284775
-47284

skipif mysql # not compatible
query I rowsort label-336
SELECT 71 * 94 + + col2 / 34 - col0 * + col2 * col1 AS col0 FROM tab2 cor0
----
-190445
-284775
-47284

query I rowsort
SELECT col0 * + + col2 * col0 AS col2 FROM tab1 AS cor0
----
249696
426275
563108

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

query I rowsort
SELECT DISTINCT + col1 + col1 - 81 * - ( 0 ) FROM tab0
----
162
2
42

query I rowsort
SELECT - 61 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT + col0 - - - 11 + + col1 FROM tab0 AS cor0
----
85
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-342
SELECT + - ( + 71 ) * col2 + - col0 * - col2 + - + col2 DIV + - col1 - + 1 FROM tab1 AS cor0
----
-1915
1360
836

skipif mysql # not compatible
query I rowsort label-342
SELECT + - ( + 71 ) * col2 + - col0 * - col2 + - + col2 / + - col1 - + 1 FROM tab1 AS cor0
----
-1915
1360
836

onlyif mysql # DIV for integer division: 
query I rowsort label-343
SELECT DISTINCT + 24 * 88 + - 85 + + col2 * + - 22 + + col1 DIV - - col1 AS col0 FROM tab0 AS cor0
----
-150
1808
994

skipif mysql # not compatible
query I rowsort label-343
SELECT DISTINCT + 24 * 88 + - 85 + + col2 * + - 22 + + col1 / - - col1 AS col0 FROM tab0 AS cor0
----
-150
1808
994

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

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT DISTINCT - SUM( ALL col0 ) - + 57 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-345
SELECT DISTINCT - SUM ( ALL col0 ) - + 57 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-346
SELECT ALL - - CAST( + - col2 AS SIGNED ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL - - CAST ( + - col2 AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT ALL ( - + COUNT( * ) ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-347
SELECT ALL ( - + COUNT ( * ) ) col0 FROM tab2
----
-3

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

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

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

query II rowsort
SELECT + col2 * col0 * col0 AS col2, + 28 AS col1 FROM tab1
----
249696
28
426275
28
563108
28

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT ALL COUNT( * ) * + 56 AS col1 FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL COUNT ( * ) * + 56 AS col1 FROM tab2
----
168

query I rowsort
SELECT + col2 * - - 55 FROM tab2
----
1265
2200
3190

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

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

query I rowsort
SELECT - - col1 * col1 * - + 64 + ( + + col0 ) + - + 29 + - ( - col0 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-166401
-287175
-379357

query I rowsort
SELECT + + 84 * + col0 * - - col2 FROM tab0 AS cor0
----
59220
73080
806652

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-360
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, 27 * - col0 + - - col2 FROM tab0 AS cor0
----
NULL
-2339
NULL
-2520
NULL
-358

skipif mysql # not compatible
query II rowsort label-360
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 27 * - col0 + - - col2 FROM tab0 AS cor0
----
NULL
-2339
NULL
-2520
NULL
-358

onlyif mysql # aggregate syntax: 
query II rowsort label-361
SELECT ALL 63 AS col1, COUNT( * ) FROM tab2 AS cor0
----
63
3

skipif mysql # not compatible
query II rowsort label-361
SELECT ALL 63 AS col1, COUNT ( * ) FROM tab2 AS cor0
----
63
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-362
SELECT 86 AS col0, + 43 + + 89 + + CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
86
135

skipif mysql # not compatible
query II rowsort label-362
SELECT 86 AS col0, + 43 + + 89 + + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
86
135

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

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT MIN( ALL - 7 ) FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-364
SELECT MIN ( ALL - 7 ) FROM tab1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-365
SELECT DISTINCT + CAST( col2 AS SIGNED ) + col2 AS col2 FROM tab2
----
116
46
80

skipif mysql # not compatible
query I rowsort label-365
SELECT DISTINCT + CAST ( col2 AS INTEGER ) + col2 AS col2 FROM tab2
----
116
46
80

onlyif mysql # aggregate syntax: 
query II rowsort label-366
SELECT ALL + 33 * - + 21 AS col2, SUM( + 15 ) FROM tab2
----
-693
45

skipif mysql # not compatible
query II rowsort label-366
SELECT ALL + 33 * - + 21 AS col2, SUM ( + 15 ) FROM tab2
----
-693
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 83 + - - ( - - 3 ) col2, + col0 AS col2 FROM tab1
----
86
51
86
85
86
91

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> 84 / + col2
----

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

skipif mysql # not compatible
query I rowsort label-370
SELECT DISTINCT + COUNT ( * ) * - MIN ( DISTINCT - col2 ) FROM tab0 AS cor0
----
297

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT ALL + ( 26 ) * COUNT( * ) + COUNT( * ) + 11 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
254

skipif mysql # not compatible
query I rowsort label-372
SELECT ALL + ( 26 ) * COUNT ( * ) + COUNT ( * ) + 11 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
254

query I rowsort
SELECT ALL col0 + + 95 + 20 AS col1 FROM tab2
----
161
179
190

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT ALL + 21 - COUNT( * ) col0 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-374
SELECT ALL + 21 - COUNT ( * ) col0 FROM tab2 AS cor0
----
18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT ALL COUNT( * ) - - + COUNT( DISTINCT - col2 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-376
SELECT ALL COUNT ( * ) - - + COUNT ( DISTINCT - col2 ) FROM tab0
----
6

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + 68 + - - 54 + - + col1 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-378
SELECT ALL COUNT( * ) / - + 29 * - MAX( + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 WHERE NOT col0 NOT IN ( - 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL COUNT ( * ) / - + 29 * - MAX ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 WHERE NOT col0 NOT IN ( - 46 )
----
NULL

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

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

query I rowsort
SELECT ALL + col2 * 71 FROM tab0 cor0
----
3337
7029
710

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 62 <> NULL
----

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

query I rowsort
SELECT - - 77 * + - col0 AS col2 FROM tab0 AS cor0
----
-1155
-6699
-7469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-384
SELECT - CAST( - AVG ( DISTINCT + 53 ) AS SIGNED ) * CAST( 7 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
371

skipif mysql # not compatible
query I rowsort label-384
SELECT - CAST ( - AVG ( DISTINCT + 53 ) AS INTEGER ) * CAST ( 7 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
371

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

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

query I rowsort
SELECT DISTINCT col2 * + - 56 * + - 39 FROM tab1
----
128856
148512
209664

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

query I rowsort
SELECT + col1 + + 4 AS col2 FROM tab2 AS cor0
----
55
71
81

query I rowsort
SELECT ALL col1 + + col0 + 25 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - col2 AND 47
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-390
SELECT + + CAST( - 88 AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
1232
4136
440

skipif mysql # not compatible
query I rowsort label-390
SELECT + + CAST ( - 88 AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
1232
4136
440

query I rowsort
SELECT - + 94 * - col0 * 79 AS col2 FROM tab2 AS cor0
----
341596
475264
556950

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

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

query II rowsort
SELECT ALL col2 + - 53, + col0 FROM tab2 AS cor0
----
-13
64
-30
46
5
75

query I rowsort
SELECT 8 * + 45 + 10 FROM tab0 AS cor0
----
370
370
370

query I rowsort
SELECT - 15 + 58 AS col1 FROM tab1 cor0
----
43
43
43

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

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE col2 * - 26 IS NULL
----

query I rowsort
SELECT 14 + - + col2 * + ( + ( + - col1 ) ) AS col2 FROM tab2 AS cor0
----
1187
3094
3900

query II rowsort
SELECT ALL col0 + + 73 AS col1, + col0 * + - 71 FROM tab1 AS cor0
----
124
-3621
158
-6035
164
-6461

query II rowsort
SELECT DISTINCT - 59 - + + col0, col0 AS col1 FROM tab0 AS cor0
----
-146
87
-156
97
-74
15

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-401
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-401
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT 59 * - COUNT( * ) AS col0 FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-402
SELECT 59 * - COUNT ( * ) AS col0 FROM tab0
----
-177

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT DISTINCT MAX( DISTINCT 84 ) col0 FROM tab2
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-406
SELECT DISTINCT MAX ( DISTINCT 84 ) col0 FROM tab2
----
84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT ALL MIN( + col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-408
SELECT ALL MIN ( + col2 ) FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query III rowsort label-409
SELECT SUM( DISTINCT + 51 ) * - + COUNT( * ) AS col1, COUNT( ALL ( - col1 ) ), + COUNT( * ) FROM tab2
----
-153
3
3

skipif mysql # not compatible
query III rowsort label-409
SELECT SUM ( DISTINCT + 51 ) * - + COUNT ( * ) AS col1, COUNT ( ALL ( - col1 ) ), + COUNT ( * ) FROM tab2
----
-153
3
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-411
SELECT - + col1 DIV + - 5 AS col1 FROM tab1 AS cor0
----
1
2
9

skipif mysql # not compatible
query I rowsort label-411
SELECT - + col1 / + - 5 AS col1 FROM tab1 AS cor0
----
1
2
9

query I rowsort
SELECT + 64 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT DISTINCT + 10 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-414
SELECT + col1 + - col1 DIV col1 * col2 * - + 84 FROM tab1
----
4961
5759
8078

skipif mysql # not compatible
query I rowsort label-414
SELECT + col1 + - col1 / col1 * col2 * - + 84 FROM tab1
----
4961
5759
8078

query I rowsort
SELECT ALL + - ( - 25 ) + 49 * + col0 * - col0 FROM tab1 AS cor0
----
-127424
-354000
-405744

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

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

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

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE NOT - col2 IS NULL
----
-15
-87
-97

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

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

skipif mysql # not compatible
query I rowsort label-420
SELECT + 44 / col1 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT MIN( - + col1 ) * MAX( ALL - 10 ) + - COUNT( * ) AS col1 FROM tab2
----
767

skipif mysql # not compatible
query I rowsort label-421
SELECT MIN ( - + col1 ) * MAX ( ALL - 10 ) + - COUNT ( * ) AS col1 FROM tab2
----
767

query I rowsort
SELECT - col1 * + 32 FROM tab1
----
-1504
-160
-448

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

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

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

query I rowsort
SELECT - 42 * 39 FROM tab1
----
-1638
-1638
-1638

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

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

query III rowsort
SELECT * FROM tab1 WHERE col2 < + 26
----

query I rowsort
SELECT - - col0 FROM tab1 WHERE + + 53 * 49 * ( - - col1 ) * - 4 BETWEEN ( - col1 * col1 * col1 * - - 51 * - col0 ) AND 30
----

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

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

query I rowsort
SELECT DISTINCT + 88 + - + col0 * + 45 FROM tab0
----
-3827
-4277
-587

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 87 + + - 29 col2 FROM tab2 AS cor0
----
58
58
58

query II rowsort
SELECT + col0 AS col2, col1 + - 65 FROM tab2
----
46
-14
64
12
75
2

query I rowsort
SELECT DISTINCT - col2 * - - 93 + - 92 AS col1 FROM tab0 AS cor0
----
-1022
-4463
-9299

query II rowsort
SELECT DISTINCT - 82 * + - 66 AS col1, col2 AS col2 FROM tab1 cor0
----
5412
59
5412
68
5412
96

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

skipif mysql # not compatible
query I rowsort label-435
SELECT ALL - CAST ( NULL AS INTEGER ) * 78 * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= + 62
----

query II rowsort
SELECT + 62 AS col0, 19 AS col2 FROM tab2 AS cor0
----
62
19
62
19
62
19

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-439
SELECT + 50 * col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL AND NULL < col2 - - col2 * + ( + CAST( NULL AS SIGNED ) ) / + - col1 * + col0 + + 94 + + col2
----

skipif mysql # not compatible
query I rowsort label-439
SELECT + 50 * col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL AND NULL < col2 - - col2 * + ( + CAST ( NULL AS INTEGER ) ) / + - col1 * + col0 + + 94 + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 AS col0, - col0 - + - 41 col0 FROM tab2 AS cor0
----
46
-5
64
-23
75
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 * + + col1 col0 FROM tab0
----
1428
5508
68

query I rowsort
SELECT - 15 * - 33 AS col1 FROM tab0
----
495
495
495

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT DISTINCT + 49 * + - MAX( DISTINCT col0 ) * + COUNT( * ) AS col2 FROM tab1
----
-13377

skipif mysql # not compatible
query I rowsort label-443
SELECT DISTINCT + 49 * + - MAX ( DISTINCT col0 ) * + COUNT ( * ) AS col2 FROM tab1
----
-13377

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= 25 + + col0
----

query I rowsort
SELECT DISTINCT - - 47 FROM tab1 AS cor0
----
47

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT ALL - 64 + COUNT( * ) + - - 76 FROM tab1 WHERE col2 * + col0 * col0 * col0 IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL - 64 + COUNT ( * ) + - - 76 FROM tab1 WHERE col2 * + col0 * col0 * col0 IS NOT NULL
----
15

query I rowsort
SELECT col0 * - + 41 * - col1 AS col1 FROM tab2 AS cor0 WHERE + col0 <> ( - col1 )
----
202048
206025
96186

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-450
SELECT * FROM tab1 AS cor0 WHERE CAST( - + col2 AS SIGNED ) BETWEEN + 23 + - + col2 - - col1 AND + 74 + + - 4
----

skipif mysql # not compatible
query III rowsort label-450
SELECT * FROM tab1 AS cor0 WHERE CAST ( - + col2 AS INTEGER ) BETWEEN + 23 + - + col2 - - col1 AND + 74 + + - 4
----

query I rowsort
SELECT DISTINCT + - col1 * + + 66 + col1 + - - col2 FROM tab2 AS cor0
----
-3292
-4297
-4965

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0, + 47 * - col2 * - + 86 col2 FROM tab0 AS cor0
----
-15
189974
-87
40420
-97
400158

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

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

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

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

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

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

query I rowsort
SELECT ALL - + ( + col1 ) / + 35 + + col2 + + + col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-458
SELECT + col1 + + + CAST( - col0 AS SIGNED ) FROM tab1
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-458
SELECT + col1 + + + CAST ( - col0 AS INTEGER ) FROM tab1
----
-37
-44
-80

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 89 + 1 - - col2 FROM tab1
----
-20
-29
8

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

skipif mysql # not compatible
query I rowsort label-463
SELECT - MIN ( + + col0 ) FROM tab1 WHERE NULL <= + - 66 * + col1
----
NULL

query I rowsort
SELECT ALL + 9 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT ( + 45 ) - - + SUM( - 85 ) AS col1 FROM tab2
----
-210

skipif mysql # not compatible
query I rowsort label-465
SELECT ( + 45 ) - - + SUM ( - 85 ) AS col1 FROM tab2
----
-210

query I rowsort
SELECT + 58 * + 27 * + col1 AS col1 FROM tab1
----
21924
73602
7830

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

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

query I rowsort
SELECT DISTINCT 65 * - + 84 FROM tab0 cor0
----
-5460

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT - 31 * - COUNT( * ) AS col2 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-472
SELECT - 31 * - COUNT ( * ) AS col2 FROM tab0
----
93

query I rowsort
SELECT - col2 * + 87 * - col1 FROM tab1
----
116928
25665
278052

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

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

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

query I rowsort
SELECT - col0 * + ( + 81 ) FROM tab2
----
-3726
-5184
-6075

onlyif mysql # DIV for integer division: 
query I rowsort label-477
SELECT ALL col0 * 38 DIV col0 AS col2 FROM tab0
----
38
38
38

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL col0 * 38 / col0 AS col2 FROM tab0
----
38
38
38

query III rowsort
SELECT col0, - 89, col0 FROM tab0
----
9 values hashing to 80a071ba5d7f4c1edd80d7fae8011b53

onlyif mysql # aggregate syntax: 
query II rowsort label-479
SELECT DISTINCT MAX( + + 38 ) AS col2, 0 FROM tab1 AS cor0
----
38
0

skipif mysql # not compatible
query II rowsort label-479
SELECT DISTINCT MAX ( + + 38 ) AS col2, 0 FROM tab1 AS cor0
----
38
0

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

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

query I rowsort
SELECT DISTINCT - ( 3 ) AS col0 FROM tab2 AS cor0 WHERE ( - 92 ) * - + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT ALL - 84 * - - COUNT( * ) AS col1 FROM tab0
----
-252

skipif mysql # not compatible
query I rowsort label-482
SELECT ALL - 84 * - - COUNT ( * ) AS col1 FROM tab0
----
-252

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 85 IS NULL
----

query I rowsort
SELECT + col2 + + 26 + 27 FROM tab2
----
111
76
93

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT 84 + + COUNT( * ) AS col0 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-485
SELECT 84 + + COUNT ( * ) AS col0 FROM tab0
----
87

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 28 IN ( col0, col2, + + 13 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 / - col2 > - col0 + - ( - ( - col0 ) ) - + ( 27 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 * - col0 col0 FROM tab0
----
-1914
-2134
-330

query I rowsort
SELECT 36 * + 37 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to f7faa857e1c305a1d2209ffcdd75cc99

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT DISTINCT - MIN( ALL + + 91 ) col2 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-492
SELECT DISTINCT - MIN ( ALL + + 91 ) col2 FROM tab1
----
-91

query I rowsort
SELECT 32 - + + col1 AS col1 FROM tab0
----
-49
11
31

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-497
SELECT ALL col1 * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col0 < 64
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-497
SELECT ALL col1 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col0 < 64
----
NULL
NULL

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

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

query I rowsort
SELECT ALL + 19 FROM tab2 WHERE NOT + 67 NOT IN ( - col0 + col0 )
----

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

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

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

query I rowsort
SELECT 86 - - col2 AS col1 FROM tab2
----
109
126
144

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 <> col0 * - col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT ALL MAX( DISTINCT col2 ) + 68 * COUNT( * ) AS col2 FROM tab2
----
262

skipif mysql # not compatible
query I rowsort label-506
SELECT ALL MAX ( DISTINCT col2 ) + 68 * COUNT ( * ) AS col2 FROM tab2
----
262

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

query I rowsort
SELECT ( ( - col2 ) ) AS col0 FROM tab0
----
-10
-47
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT DISTINCT 33 * 40 + - 87 * COUNT( * ) AS col1 FROM tab0 WHERE - ( 96 ) IS NOT NULL
----
1059

skipif mysql # not compatible
query I rowsort label-510
SELECT DISTINCT 33 * 40 + - 87 * COUNT ( * ) AS col1 FROM tab0 WHERE - ( 96 ) IS NOT NULL
----
1059

query I rowsort
SELECT ALL col0 + 17 AS col1 FROM tab0
----
104
114
32

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT COUNT( * ) * 13 FROM tab0 WHERE NOT ( + col2 * + col1 + - 30 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-512
SELECT COUNT ( * ) * 13 FROM tab0 WHERE NOT ( + col2 * + col1 + - 30 ) <= NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 NOT BETWEEN + 42 * + 72 + col0 AND NULL
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 ) <> ( - 52 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT ALL MIN( DISTINCT 21 ) AS col0 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-520
SELECT ALL MIN ( DISTINCT 21 ) AS col0 FROM tab2 AS cor0
----
21

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

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT DISTINCT + 36 * - 53 + - COUNT( * ) AS col0 FROM tab1
----
-1911

skipif mysql # not compatible
query I rowsort label-522
SELECT DISTINCT + 36 * - 53 + - COUNT ( * ) AS col0 FROM tab1
----
-1911

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT ( COUNT( - col2 ) ) * COUNT( * ) FROM tab0 WHERE + col1 + + col1 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-523
SELECT ( COUNT ( - col2 ) ) * COUNT ( * ) FROM tab0 WHERE + col1 + + col1 IS NOT NULL
----
9

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-525
SELECT ALL - CAST( + col1 AS SIGNED ) * - col2 + col0 * - 11 AS col2 FROM tab1 AS cor0
----
-640
2195
783

skipif mysql # not compatible
query I rowsort label-525
SELECT ALL - CAST ( + col1 AS INTEGER ) * - col2 + col0 * - 11 AS col2 FROM tab1 AS cor0
----
-640
2195
783

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-526
SELECT DISTINCT + 38 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE ( CAST( 93 AS SIGNED ) ) < NULL
----

skipif mysql # not compatible
query I rowsort label-526
SELECT DISTINCT + 38 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( CAST ( 93 AS INTEGER ) ) < NULL
----

query I rowsort
SELECT + 3 * - ( 21 * + col0 ) + col2 FROM tab0 cor0
----
-5471
-6012
-898

query I rowsort
SELECT + col2 + 22 FROM tab2 AS cor0
----
45
62
80

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( 41 - - 78 )
----

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

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

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

query I rowsort
SELECT col1 * + 41 + col2 FROM tab1 AS cor0
----
1995
264
670

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= + col2 * + 55 + + 37
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-534
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-534
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col1 + + - ( - col1 ) FROM tab0
----
162
2
42

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

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

query I rowsort
SELECT - 69 + + col1 FROM tab2
----
-18
-2
8

query I rowsort
SELECT DISTINCT 15 / 8 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT 60 * 6 * COUNT( DISTINCT 67 ) col0 FROM tab1
----
360

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-540
SELECT 60 * 6 * COUNT ( DISTINCT 67 ) col0 FROM tab1
----
360

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

onlyif mysql # DIV for integer division: 
query I rowsort label-542
SELECT - 95 DIV + col1 col1 FROM tab1 AS cor0
----
-19
-2
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-542
SELECT - 95 / + col1 col1 FROM tab1 AS cor0
----
-19
-2
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-543
SELECT DISTINCT - col0 DIV - col0 - - col0 AS col1 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT - col0 / - col0 - - col0 AS col1 FROM tab0 AS cor0
----
16
88
98

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT MAX( - 22 ) FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-544
SELECT MAX ( - 22 ) FROM tab0 AS cor0
----
-22

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

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

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

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

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

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 cor0 WHERE NOT col0 NOT BETWEEN col0 AND col0
----
-15
-87
-97

query I rowsort
SELECT + col2 * - 96 FROM tab1 AS cor0
----
-5664
-6528
-9216

query I rowsort
SELECT DISTINCT + - 80 * + ( + 48 ) FROM tab0 AS cor0 WHERE NOT + 78 IS NOT NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT - 16 * col1 FROM tab2 AS cor0
----
-1072
-1232
-816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-555
SELECT - COUNT( col0 ) FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) - ( col1 ) / col1 NOT BETWEEN ( NULL ) AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-555
SELECT - COUNT ( col0 ) FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) - ( col1 ) / col1 NOT BETWEEN ( NULL ) AND - col1
----
0

query I rowsort
SELECT 12 + - 4 AS col0 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT ALL + MIN( + - 22 ) FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-557
SELECT ALL + MIN ( + - 22 ) FROM tab0
----
-22

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT ALL - COUNT( * ) * + 86 + 9 AS col1 FROM tab0
----
-249

skipif mysql # not compatible
query I rowsort label-560
SELECT ALL - COUNT ( * ) * + 86 + 9 AS col1 FROM tab0
----
-249

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-562
SELECT DISTINCT - COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-562
SELECT DISTINCT - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-563
SELECT DISTINCT + col1 * - col2 AS col0, - CAST( NULL AS SIGNED ) + - col1 FROM tab1 cor0
----
-1344
NULL
-295
NULL
-3196
NULL

skipif mysql # not compatible
query II rowsort label-563
SELECT DISTINCT + col1 * - col2 AS col0, - CAST ( NULL AS INTEGER ) + - col1 FROM tab1 cor0
----
-1344
NULL
-295
NULL
-3196
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT - COUNT( * ) + SUM( - ( + ( - col0 ) ) ) AS col1 FROM tab1 AS cor0
----
224

skipif mysql # not compatible
query I rowsort label-564
SELECT - COUNT ( * ) + SUM ( - ( + ( - col0 ) ) ) AS col1 FROM tab1 AS cor0
----
224

query I rowsort
SELECT 27 + col2 - col2 * - + col2 AS col0 FROM tab0
----
137
2283
9927

query I rowsort
SELECT - 43 * + - col1 + col1 FROM tab2
----
2244
2948
3388

query I rowsort
SELECT + 91 + 71 FROM tab0
----
162
162
162

query I rowsort
SELECT DISTINCT 78 + + 9 * - 92 * + + col2 AS col2 FROM tab1
----
-48774
-56226
-79410

query I rowsort
SELECT ALL - col2 * 28 + + - col1 FROM tab2 cor0
----
-1197
-1691
-695

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

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

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

query I rowsort
SELECT DISTINCT + 42 * + + 7 AS col2 FROM tab0 AS cor0
----
294

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-573
SELECT ALL * FROM tab0 AS cor0 WHERE 17 * - 24 * CAST( + col2 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-573
SELECT ALL * FROM tab0 AS cor0 WHERE 17 * - 24 * CAST ( + col2 AS INTEGER ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-574
SELECT COUNT( * ) + - - 78 FROM tab1 AS cor0 WHERE NULL IN ( - CAST( + + col1 AS SIGNED ) )
----
78

skipif mysql # not compatible
query I rowsort label-574
SELECT COUNT ( * ) + - - 78 FROM tab1 AS cor0 WHERE NULL IN ( - CAST ( + + col1 AS INTEGER ) )
----
78

query I rowsort
SELECT DISTINCT 19 FROM tab2 AS cor0 WHERE NOT + 42 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + 90 - + col1 + + - 89 AS col1 FROM tab2
----
-50
-66
-76

query I rowsort
SELECT col2 * 67 - + + col0 FROM tab2
----
1495
2616
3811

onlyif mysql # aggregate syntax: 
query II rowsort label-578
SELECT DISTINCT 1, - COUNT( * ) AS col2 FROM tab0
----
1
-3

skipif mysql # not compatible
query II rowsort label-578
SELECT DISTINCT 1, - COUNT ( * ) AS col2 FROM tab0
----
1
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT ALL MIN( 12 ) AS col0 FROM tab2, tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-579
SELECT ALL MIN ( 12 ) AS col0 FROM tab2, tab1 AS cor0
----
12

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

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

query I rowsort
SELECT ALL col1 * + 64 - + col2 AS col0 FROM tab0 AS cor0
----
-35
1334
5137

onlyif mysql # DIV for integer division: 
query I rowsort label-583
SELECT DISTINCT - + col2 DIV col0 + - col1 AS col2 FROM tab1 cor0
----
-15
-47
-5

skipif mysql # not compatible
query I rowsort label-583
SELECT DISTINCT - + col2 / col0 + - col1 AS col2 FROM tab1 cor0
----
-15
-47
-5

query I rowsort
SELECT DISTINCT + 93 * - col0 AS col2 FROM tab2 AS cor0
----
-4278
-5952
-6975

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

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

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

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

query II rowsort
SELECT col0 AS col2, 82 AS col0 FROM tab0 AS cor0
----
15
82
87
82
97
82

query II rowsort
SELECT + col2 * + - col1 AS col1, + ( + - 76 ) * - - col2 AS col2 FROM tab2
----
-1173
-1748
-3080
-3040
-3886
-4408

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-589
SELECT ALL + CAST( - col2 AS SIGNED ), + col0 AS col2 FROM tab0
----
-10
87
-47
15
-99
97

skipif mysql # not compatible
query II rowsort label-589
SELECT ALL + CAST ( - col2 AS INTEGER ), + col0 AS col2 FROM tab0
----
-10
87
-47
15
-99
97

query II rowsort
SELECT ALL - ( + col0 ), 20 * + 43 AS col0 FROM tab1 AS cor0
----
-51
860
-85
860
-91
860

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

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

query II rowsort
SELECT + 2 * - col1, + col1 + + col1 AS col0 FROM tab1 AS cor0
----
-10
10
-28
28
-94
94

query II rowsort
SELECT ( + col1 ) AS col1, col0 * col2 FROM tab0 AS cor0
----
1
9603
21
870
81
705

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-595
SELECT + + SUM( ALL + 93 ) AS col2, 90 + - - 6 FROM tab2 AS cor0
----
279
96

skipif mysql # not compatible
query II rowsort label-595
SELECT + + SUM ( ALL + 93 ) AS col2, 90 + - - 6 FROM tab2 AS cor0
----
279
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 25 * + col0 col0, + 2 * + col0 AS col0 FROM tab0 AS cor0
----
2175
174
2425
194
375
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-597
SELECT col2 AS col2 FROM tab0 cor0 WHERE NOT col1 + - 73 + CAST( NULL AS SIGNED ) + - col0 * col2 IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-597
SELECT col2 AS col2 FROM tab0 cor0 WHERE NOT col1 + - 73 + CAST ( NULL AS INTEGER ) + - col0 * col2 IS NOT NULL
----
10
47
99

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

query I rowsort
SELECT ALL - ( 42 ) FROM tab0
----
-42
-42
-42

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

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

query I rowsort
SELECT DISTINCT + 22 + col1 + 74 * - - col0 - 51 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3426
4784
5588

query I rowsort
SELECT - 24 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 13 FROM tab0 WHERE NOT - 2 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-605
SELECT ALL * FROM tab1 cor0 WHERE + CAST( NULL AS SIGNED ) BETWEEN + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-605
SELECT ALL * FROM tab1 cor0 WHERE + CAST ( NULL AS INTEGER ) BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT DISTINCT - - COUNT( * ) + MIN( DISTINCT - 44 ) FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-606
SELECT DISTINCT - - COUNT ( * ) + MIN ( DISTINCT - 44 ) FROM tab0 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE col2 * + - col0 NOT IN ( + + 39 )
----
3

skipif mysql # not compatible
query I rowsort label-607
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE col2 * + - col0 NOT IN ( + + 39 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT ALL + + 14 + COUNT( * ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-608
SELECT ALL + + 14 + COUNT ( * ) FROM tab2 AS cor0
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + 39 col0, col1 FROM tab1 AS cor0
----
-20
5
-29
47
-57
14

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 + - 26 - - 78 + + col1 col1 FROM tab0 AS cor0 WHERE + 44 + + col2 BETWEEN col0 AND 69
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-613
SELECT ALL MAX( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL MAX ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT DISTINCT MAX( ALL - col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-614
SELECT DISTINCT MAX ( ALL - col0 ) FROM tab1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-615
SELECT + col1 DIV - 67 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-615
SELECT + col1 / - 67 AS col0 FROM tab0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-616
SELECT col2 DIV - 65 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-616
SELECT col2 / - 65 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + 89 * + - 17 AS col0 FROM tab1
----
-1513
-1513
-1513

query I rowsort
SELECT + col1 * + + col2 * - 18 * + + 84 FROM tab1
----
-2032128
-446040
-4832352

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( + col2 ) ) IN ( 10, - 82 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-622
SELECT col2 * + CAST( + 59 AS SIGNED ) FROM tab0
----
2773
5841
590

skipif mysql # not compatible
query I rowsort label-622
SELECT col2 * + CAST ( + 59 AS INTEGER ) FROM tab0
----
2773
5841
590

query II rowsort
SELECT col0, + 20 + - 64 * - col0 FROM tab1
----
51
3284
85
5460
91
5844

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

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

query I rowsort
SELECT DISTINCT + - 62 AS col2 FROM tab0 cor0
----
-62

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

query II rowsort
SELECT DISTINCT - col0, + col2 AS col0 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT + 78 * + col1 AS col1 FROM tab0
----
1638
6318
78

query II rowsort
SELECT + ( + 93 ), col2 AS col2 FROM tab2
----
93
23
93
40
93
58

query I rowsort
SELECT DISTINCT col1 * + 28 + - - 5 AS col0 FROM tab2
----
1433
1881
2161

query I rowsort
SELECT ALL ( - 34 ) AS col1 FROM tab2 WHERE ( 18 + - 39 ) IS NOT NULL
----
-34
-34
-34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT + - ( + COUNT( * ) ) * + + 84 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL
----
-756

skipif mysql # not compatible
query I rowsort label-633
SELECT + - ( + COUNT ( * ) ) * + + 84 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL
----
-756

query I rowsort
SELECT DISTINCT - 46 + + col2 FROM tab1
----
13
22
50

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

query I rowsort
SELECT ALL + col0 + 73 AS col0 FROM tab1 AS cor0
----
124
158
164

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

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

query I rowsort
SELECT DISTINCT + 13 * col2 - 37 AS col0 FROM tab0 AS cor0
----
1250
574
93

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT - SUM( 82 ) AS col1 FROM tab1 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-639
SELECT - SUM ( 82 ) AS col1 FROM tab1 AS cor0
----
-246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, - col0 * + 42 AS col0 FROM tab1 AS cor0
----
51
-2142
85
-3570
91
-3822

query II rowsort
SELECT DISTINCT - ( - 40 ) AS col2, + col1 AS col0 FROM tab1
----
40
14
40
47
40
5

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

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

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

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

query I rowsort
SELECT - - 54 FROM tab2 WHERE NOT col1 <> NULL
----

query I rowsort
SELECT ALL - 95 AS col1 FROM tab2 cor0
----
-95
-95
-95

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

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

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT - + col0, - col1 * - 43 AS col1 FROM tab2 AS cor0
----
-46
2193
-64
3311
-75
2881

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-654
SELECT col2 / 39 col0 FROM tab2 AS cor0
----
0
1
1

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

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

query I rowsort
SELECT - col1 + - col2 * - 7 AS col0 FROM tab1
----
408
429
658

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT DISTINCT + COUNT( * ) + + 63 + MAX( - - col2 ) AS col0 FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-657
SELECT DISTINCT + COUNT ( * ) + + 63 + MAX ( - - col2 ) AS col0 FROM tab2
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-658
SELECT - 63 * + CAST( + col1 AS SIGNED ) * - col1 - + ( + col2 ) AS col0 FROM tab2 WHERE - 82 * + 80 > NULL
----

skipif mysql # not compatible
query I rowsort label-658
SELECT - 63 * + CAST ( + col1 AS INTEGER ) * - col1 - + ( + col2 ) AS col0 FROM tab2 WHERE - 82 * + 80 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-659
SELECT + col2 + - 7 + - + col2 * col1, - CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab2
----
-1157
NULL
-3047
NULL
-3835
NULL

skipif mysql # not compatible
query II rowsort label-659
SELECT + col2 + - 7 + - + col2 * col1, - CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab2
----
-1157
NULL
-3047
NULL
-3835
NULL

query I rowsort
SELECT DISTINCT 55 + col1 - + + ( + + col1 ) + - + col2 * - col0 AS col2 FROM tab0
----
760
925
9658

query I rowsort
SELECT - 95 + col0 AS col2 FROM tab1
----
-10
-4
-44

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NOT NULL < - col1 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT DISTINCT MAX( + 86 ) col2 FROM tab0
----
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-664
SELECT DISTINCT MAX ( + 86 ) col2 FROM tab0
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 * col0 * - 84 + 75 col1 FROM tab2 WHERE + + col2 IS NULL
----

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

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

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

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

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

query II rowsort
SELECT DISTINCT - col0, + ( - - col0 ) + + col2 AS col1 FROM tab1
----
-51
147
-85
144
-91
159

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT - col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-670
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT - col1 <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-671
SELECT 94 * - col1 + - + col0 FROM tab0 WHERE NOT + + CAST( + 91 AS SIGNED ) IS NULL
----
-191
-2061
-7629

skipif mysql # not compatible
query I rowsort label-671
SELECT 94 * - col1 + - + col0 FROM tab0 WHERE NOT + + CAST ( + 91 AS INTEGER ) IS NULL
----
-191
-2061
-7629

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 78 col1, 57 AS col1 FROM tab2 cor0
----
78
57
78
57
78
57

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col0 col1 FROM tab2 cor0
----
128
150
92

onlyif mysql # DIV for integer division: 
query I rowsort label-677
SELECT + 28 DIV 82 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-677
SELECT + 28 / 82 FROM tab2 AS cor0
----
0
0
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT + 87 * + COUNT( * ) FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-680
SELECT + 87 * + COUNT ( * ) FROM tab2
----
261

query I rowsort
SELECT - col0 * 19 FROM tab1
----
-1615
-1729
-969

onlyif mysql # DIV for integer division: 
query I rowsort label-682
SELECT ALL + 96 * col1 DIV - 29 + + col0 AS col0 FROM tab2
----
-122
-146
-190

skipif mysql # not compatible
query I rowsort label-682
SELECT ALL + 96 * col1 / - 29 + + col0 AS col0 FROM tab2
----
-122
-146
-190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 + col0 col1 FROM tab1
----
38
4
44

query III rowsort
SELECT * FROM tab0 WHERE 16 IS NULL
----

query I rowsort
SELECT - col2 * - col2 - + 44 FROM tab1
----
3437
4580
9172

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 60 <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> 47
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL < + col1
----

query I rowsort
SELECT DISTINCT + col1 * - 26 FROM tab2 AS cor0
----
-1326
-1742
-2002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 + col2 col1 FROM tab2 AS cor0
----
1196
3120
3944

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-694
SELECT * FROM tab1 cor0 WHERE NOT NULL < - - 69 OR NOT 3 * - - 15 - + CAST( + + col1 AS SIGNED ) + - 6 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-694
SELECT * FROM tab1 cor0 WHERE NOT NULL < - - 69 OR NOT 3 * - - 15 - + CAST ( + + col1 AS INTEGER ) + - 6 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-695
SELECT - col1, - col1 + - CAST( - col0 AS SIGNED ) AS col0 FROM tab2 cor0
----
-51
-5
-67
8
-77
-13

skipif mysql # not compatible
query II rowsort label-695
SELECT - col1, - col1 + - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 cor0
----
-51
-5
-67
8
-77
-13

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

query II rowsort
SELECT + 60 AS col2, 11 AS col2 FROM tab0 AS cor0
----
60
11
60
11
60
11

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

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

query II rowsort
SELECT DISTINCT ( + + col1 ), + col1 + + col1 * - - 65 FROM tab1
----
14
924
47
3102
5
330

query I rowsort
SELECT ( + col0 ) * - 44 * col0 AS col2 FROM tab2
----
-180224
-247500
-93104

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT + ( + MIN( ALL - col1 ) ) + 83 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-702
SELECT + ( + MIN ( ALL - col1 ) ) + 83 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-703
SELECT 65 FROM tab0 AS cor0 WHERE NOT ( NOT - 98 = CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-703
SELECT 65 FROM tab0 AS cor0 WHERE NOT ( NOT - 98 = CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col1 * 23 * - + 62 * - 37 * 20 FROM tab0 AS cor0
----
1055240
22160040
85474440

query I rowsort
SELECT col0 - - col1 FROM tab0 AS cor0 WHERE NOT ( NOT - - col0 - - + col2 IS NOT NULL )
----
108
96
98

query II rowsort
SELECT ALL - col2, + 10 + + col0 * ( + 73 ) AS col1 FROM tab1 AS cor0
----
-59
6215
-68
6653
-96
3733

query I rowsort
SELECT 7 + + col0 FROM tab0 AS cor0
----
104
22
94

query II rowsort
SELECT 93 AS col1, + col1 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + - 9 * + col2 + col1 * ( + 35 ) AS col1 FROM tab2 AS cor0
----
1578
1823
2335

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-712
SELECT ALL + COUNT( * ), - COUNT( * ) AS col0 FROM tab0 WHERE NOT + - 70 IS NULL
----
3
-3

skipif mysql # not compatible
query II rowsort label-712
SELECT ALL + COUNT ( * ), - COUNT ( * ) AS col0 FROM tab0 WHERE NOT + - 70 IS NULL
----
3
-3

query I rowsort
SELECT 66 * + + col0 AS col1 FROM tab0
----
5742
6402
990

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

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + - COUNT ( * ) + AVG ( DISTINCT + col0 ) FROM tab1
----
NULL

query I rowsort
SELECT - 35 * + col1 AS col0 FROM tab0
----
-2835
-35
-735

query I rowsort
SELECT - + col0 * - col0 * + col0 AS col2 FROM tab0 AS cor0
----
3375
658503
912673

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-717
SELECT 83, col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
83
NULL
83
NULL
83
NULL

skipif mysql # not compatible
query II rowsort label-717
SELECT 83, col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
83
NULL
83
NULL
83
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-719
SELECT DISTINCT + 61 DIV + - 88 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-719
SELECT DISTINCT + 61 / + - 88 FROM tab0 AS cor0
----
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-721
SELECT ALL + - 60 DIV ( col1 ), col0 FROM tab2 cor0
----
-1
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-721
SELECT ALL + - 60 / ( col1 ), col0 FROM tab2 cor0
----
-1
46
0
64
0
75

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

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

query I rowsort
SELECT ALL 6 * - col2 FROM tab2
----
-138
-240
-348

query II rowsort
SELECT + col2 AS col2, - col2 + col2 * - - 13 * - col2 FROM tab0
----
10
-1310
47
-28764
99
-127512

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

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

query II rowsort
SELECT DISTINCT - col2 + - 26 AS col0, - col2 + 12 AS col0 FROM tab1
----
-122
-84
-85
-47
-94
-56

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 + col1 + + - 33 * + 20 col0 FROM tab2
----
-573
-583
-599

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) FROM tab0 WHERE + - col2 + - col0 * - 89 IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-730
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) FROM tab0 WHERE + - col2 + - col0 * - 89 IS NOT NULL
----
-9

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT ALL - ( - - MIN( + col2 ) ) + - COUNT( * ) FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL - ( - - MIN ( + col2 ) ) + - COUNT ( * ) FROM tab1 AS cor0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-734
SELECT + ( - col0 ) * + - ( - ( - col1 ) ) + + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE - col1 IN ( + - 53 * - + col2 - + - col1 * + - col2 * + - col2 )
----

skipif mysql # not compatible
query I rowsort label-734
SELECT + ( - col0 ) * + - ( - ( - col1 ) ) + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE - col1 IN ( + - 53 * - + col2 - + - col1 * + - col2 * + - col2 )
----

query I rowsort
SELECT ALL + col2 - 14 FROM tab0 cor0
----
-4
33
85

query I rowsort
SELECT DISTINCT + 54 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
54

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

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

query I rowsort
SELECT ALL - + 44 FROM tab1 AS cor0
----
-44
-44
-44

query II rowsort
SELECT col0, + 47 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col0 * - 81 - col2 AS col2, col1 AS col2 FROM tab1
----
4035
14
6826
5
7303
47

onlyif mysql # DIV for integer division: 
query I rowsort label-741
SELECT col1 DIV - + col2 - 72 DIV - 81 * - - col1 + col1 AS col1 FROM tab0
----
1
19
80

skipif mysql # not compatible
query I rowsort label-741
SELECT col1 / - + col2 - 72 / - 81 * - - col1 + col1 AS col1 FROM tab0
----
1
19
80

query I rowsort
SELECT col1 - ( col2 ) - + + col1 * col1 FROM tab0
----
-430
-6527
-99

query I rowsort
SELECT DISTINCT - ( - col1 ) * + - col2 + 15 FROM tab1
----
-1329
-280
-3181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 94 col1 FROM tab1
----
-26
-35
2

query I rowsort
SELECT ALL - + 16 - - + 17 AS col2 FROM tab1 AS cor0
----
1
1
1

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

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

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

query II rowsort
SELECT DISTINCT 29 AS col2, + 47 FROM tab2 AS cor0
----
29
47

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

query I rowsort
SELECT + 19 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT ALL 78 * + - MAX( - col1 ) FROM tab1 AS cor0
----
390

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL 78 * + - MAX ( - col1 ) FROM tab1 AS cor0
----
390

query I rowsort
SELECT ALL + col0 * + col1 * col1 AS col1 FROM tab0 cor0
----
38367
97
98415

query I rowsort
SELECT + - col1 * + + 3 * + - 57 + col0 * - - col0 AS col0 FROM tab1 cor0
----
16318
4995
8080

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT - - SUM( + - col2 ) * - 80 AS col2 FROM tab2 AS cor0
----
9680

skipif mysql # not compatible
query I rowsort label-756
SELECT - - SUM ( + - col2 ) * - 80 AS col2 FROM tab2 AS cor0
----
9680

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-757
SELECT DISTINCT + COUNT( * ) DIV - 41 + + SUM( + 64 ) AS col0, - 19 FROM tab2 AS cor0
----
192
-19

skipif mysql # not compatible
query II rowsort label-757
SELECT DISTINCT + COUNT ( * ) / - 41 + + SUM ( + 64 ) AS col0, - 19 FROM tab2 AS cor0
----
192
-19

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-759
SELECT + + 25 DIV - 14 AS col2, MIN( DISTINCT + 48 ) AS col1 FROM tab2 AS cor0
----
-1
48

skipif mysql # not compatible
query II rowsort label-759
SELECT + + 25 / - 14 AS col2, MIN ( DISTINCT + 48 ) AS col1 FROM tab2 AS cor0
----
-1
48

onlyif mysql # DIV for integer division: 
query II rowsort label-760
SELECT DISTINCT - col1 DIV - + col1, + ( col1 ) AS col0 FROM tab2 AS cor0
----
1
51
1
67
1
77

skipif mysql # not compatible
query II rowsort label-760
SELECT DISTINCT - col1 / - + col1, + ( col1 ) AS col0 FROM tab2 AS cor0
----
1
51
1
67
1
77

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT ALL - SUM( ALL - 39 ) AS col1 FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL - SUM ( ALL - 39 ) AS col1 FROM tab2
----
117

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) > ( + + col1 )
----

query I rowsort
SELECT ALL + 96 * + 12 FROM tab0
----
1152
1152
1152

query I rowsort
SELECT ALL 3 + + ( - ( + - col0 ) ) FROM tab1
----
54
88
94

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT - SUM( ALL - 16 ) AS col2 FROM tab2, tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-767
SELECT - SUM ( ALL - 16 ) AS col2 FROM tab2, tab1 AS cor0
----
144

query III rowsort
SELECT * FROM tab0 WHERE NOT - 83 NOT BETWEEN + - col1 AND + ( - 27 )
----

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * - - 52 NOT BETWEEN 33 AND NULL
----

query I rowsort
SELECT DISTINCT ( - col0 ) + + col1 + + + col2 FROM tab2 AS cor0
----
28
50
53

onlyif mysql # DIV for integer division: 
query I rowsort label-773
SELECT ALL + col1 DIV 54 * - col2 + - - col2 AS col2 FROM tab0 AS cor0
----
0
10
99

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL + col1 / 54 * - col2 + - - col2 AS col2 FROM tab0 AS cor0
----
0
10
99

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

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

query I rowsort
SELECT DISTINCT + ( + 26 ) AS col0 FROM tab0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-776
SELECT - CAST( 10 AS SIGNED ) FROM tab1 WHERE col1 * + - col0 >= - col2
----

skipif mysql # not compatible
query I rowsort label-776
SELECT - CAST ( 10 AS INTEGER ) FROM tab1 WHERE col1 * + - col0 >= - col2
----

query I rowsort
SELECT ALL 3 + - - col2 FROM tab0
----
102
13
50

query I rowsort
SELECT 55 * + col0 + - 78 AS col2 FROM tab0 AS cor0
----
4707
5257
747

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT DISTINCT + COUNT( * ) * - 33 - + COUNT( * ) + + + 79 * + 10 AS col0 FROM tab1 AS cor0
----
688

skipif mysql # not compatible
query I rowsort label-779
SELECT DISTINCT + COUNT ( * ) * - 33 - + COUNT ( * ) + + + 79 * + 10 AS col0 FROM tab1 AS cor0
----
688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + col2 col0 FROM tab1 cor0
----
4992
5074
6256

query I rowsort
SELECT ALL + 67 FROM tab0 cor0 WHERE NOT NULL >= + 70
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 - - col0 + - col1 col0 FROM tab0 cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT - - 97 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-783
SELECT - - 97 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-784
SELECT DISTINCT + 51 - - + col1 DIV ( - + ( - 77 ) ) FROM tab2
----
51
52

skipif mysql # not compatible
query I rowsort label-784
SELECT DISTINCT + 51 - - + col1 / ( - + ( - 77 ) ) FROM tab2
----
51
52

query I rowsort
SELECT - - 41 FROM tab0 WHERE NULL = - 74
----

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

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

query I rowsort
SELECT DISTINCT ( + col2 ) * + + col2 FROM tab1
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-788
SELECT - + CAST( - - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-788
SELECT - + CAST ( - - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT ALL + 99 AS col1 FROM tab0 cor0 WHERE NOT col0 * - - col1 IS NULL
----
99
99
99

query I rowsort
SELECT 6 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

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

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT ALL COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-792
SELECT ALL COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT ALL MIN( DISTINCT ( - 96 ) ) * + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-288

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL MIN ( DISTINCT ( - 96 ) ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-288

query I rowsort
SELECT + ( ( col1 ) ) * - + col1 FROM tab1 AS cor0
----
-196
-2209
-25

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( + col1 ) < col0
----
15
81
47

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

skipif mysql # not compatible
query I rowsort label-798
SELECT DISTINCT + col0 + - col2 * + CAST ( - CAST ( col2 AS INTEGER ) AS INTEGER ) / - col0 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT col0 / + col0 > + col1
----
-51
-67
-77

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

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

query I rowsort
SELECT DISTINCT + 35 + + + col2 * col0 AS col1 FROM tab2
----
1093
2595
4385

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

query I rowsort
SELECT DISTINCT col0 * - col2 * - col1 FROM tab0
----
18270
57105
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-804
SELECT ALL - CAST( NULL AS SIGNED ) + + + AVG ( DISTINCT - 30 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-804
SELECT ALL - CAST ( NULL AS INTEGER ) + + + AVG ( DISTINCT - 30 ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-805
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 2 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-805
SELECT DISTINCT CAST ( NULL AS REAL ) * 2 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - 27 * - + col2 FROM tab0
----
1269
2673
270

query I rowsort
SELECT ALL + 91 * 21 + + + 84 FROM tab0
----
1995
1995
1995

query I rowsort
SELECT ALL + col2 + - + 67 FROM tab0
----
-20
-57
32

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-810
SELECT - - col2 AS col0, + col2 - - col2 * + CAST( NULL AS SIGNED ) + - col0 col1 FROM tab0 AS cor0 WHERE - col1 = - + 38 + + col2 * - col1 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-810
SELECT - - col2 AS col0, + col2 - - col2 * + CAST ( NULL AS INTEGER ) + - col0 col1 FROM tab0 AS cor0 WHERE - col1 = - + 38 + + col2 * - col1 * + CAST ( NULL AS INTEGER )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT ALL + MIN( DISTINCT 39 ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL + MIN ( DISTINCT 39 ) FROM tab1
----
39

query I rowsort
SELECT + col2 + - 33 AS col2 FROM tab1
----
26
35
63

query I rowsort
SELECT + 35 + col2 + col2 AS col2 FROM tab1
----
153
171
227

query I rowsort
SELECT DISTINCT 13 * - 76 FROM tab1
----
-988

query I rowsort
SELECT col2 + + 96 FROM tab0
----
106
143
195

query I rowsort
SELECT ALL - col1 + - + ( - - col0 ) AS col1 FROM tab0 AS cor0
----
-108
-96
-98

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

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

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

query I rowsort
SELECT ALL col2 - + col1 AS col0 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-821
SELECT DISTINCT + + 26 DIV - ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-821
SELECT DISTINCT + + 26 / - ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-822
SELECT - - col2 - CAST( + - col1 AS SIGNED ) FROM tab0 AS cor0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-822
SELECT - - col2 - CAST ( + - col1 AS INTEGER ) FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT DISTINCT + ( + col2 ) - - col0 AS col2 FROM tab1 AS cor0
----
144
147
159

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

query I rowsort
SELECT 15 - 34 AS col1 FROM tab0
----
-19
-19
-19

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-827
SELECT ALL 23 DIV - - 37 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL 23 / - - 37 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + 8 ) > NULL
----

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

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

query I rowsort
SELECT + - ( + 78 ) AS col0 FROM tab1 AS cor0
----
-78
-78
-78

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

skipif mysql # not compatible
query I rowsort label-832
SELECT - MAX ( + - col1 ) AS col0 FROM tab2 AS cor0
----
51

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

onlyif mysql # aggregate syntax: 
query II rowsort label-834
SELECT + - COUNT( * ) * - 89, 35 AS col2 FROM tab2 AS cor0
----
267
35

skipif mysql # not compatible
query II rowsort label-834
SELECT + - COUNT ( * ) * - 89, 35 AS col2 FROM tab2 AS cor0
----
267
35

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

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

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

query I rowsort
SELECT 32 * - col2 FROM tab1 AS cor0
----
-1888
-2176
-3072

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-839
SELECT + 13 DIV - 80 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-839
SELECT + 13 / - 80 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-840
SELECT - + 62 + + COUNT( * ) AS col1, 40 DIV - COUNT( * ) FROM tab1 AS cor0
----
-59
-13

skipif mysql # not compatible
query II rowsort label-840
SELECT - + 62 + + COUNT ( * ) AS col1, 40 / - COUNT ( * ) FROM tab1 AS cor0
----
-59
-13

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

query III rowsort
SELECT * FROM tab0 WHERE - col2 + + col1 / + 93 * + - 56 * - col0 + + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE - 17 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT DISTINCT - SUM( - col2 ) FROM tab2 WHERE + ( ( + 15 ) ) = col0 + - + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-844
SELECT DISTINCT - SUM ( - col2 ) FROM tab2 WHERE + ( ( + 15 ) ) = col0 + - + 53
----
NULL

query II rowsort
SELECT DISTINCT - col0 * col0 + + col2, col1 FROM tab2
----
-2093
51
-4056
77
-5567
67

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

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

query I rowsort
SELECT ALL col0 + + - 49 AS col1 FROM tab2
----
-3
15
26

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

query I rowsort
SELECT DISTINCT ( - - 12 ) + - + col2 AS col2 FROM tab1
----
-47
-56
-84

query I rowsort
SELECT DISTINCT + ( + 10 ) * + + ( - - col0 ) FROM tab2 AS cor0
----
460
640
750

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-851
SELECT col2, col1 + CAST( - 88 AS SIGNED ) AS col0 FROM tab1 cor0
----
59
-83
68
-41
96
-74

skipif mysql # not compatible
query II rowsort label-851
SELECT col2, col1 + CAST ( - 88 AS INTEGER ) AS col0 FROM tab1 cor0
----
59
-83
68
-41
96
-74

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

skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT + 17 / - col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 85 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT ALL - SUM( ALL - - col2 ) + + - 46 FROM tab0
----
-202

skipif mysql # not compatible
query I rowsort label-854
SELECT ALL - SUM ( ALL - - col2 ) + + - 46 FROM tab0
----
-202

query II rowsort
SELECT DISTINCT - - ( - col2 ) * - 36 + + 95 AS col2, - 41 AS col1 FROM tab2 AS cor0
----
1535
-41
2183
-41
923
-41

query I rowsort
SELECT DISTINCT + - col2 * - + col0 + 83 - + + col2 FROM tab0 AS cor0
----
741
943
9587

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

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

query I rowsort
SELECT - + col2 * col0 + - col1 AS col2 FROM tab0 cor0
----
-786
-891
-9604

query II rowsort
SELECT - ( + col1 ), col1 FROM tab2 AS cor0 WHERE col1 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-860
SELECT - - ( + - 94 ) + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-860
SELECT - - ( + - 94 ) + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-863
SELECT CAST( + - 93 AS SIGNED ) AS col1 FROM tab2
----
-93
-93
-93

skipif mysql # not compatible
query I rowsort label-863
SELECT CAST ( + - 93 AS INTEGER ) AS col1 FROM tab2
----
-93
-93
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 / + col2 col2 FROM tab0 WHERE NOT 34 NOT BETWEEN 1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT + col1 * 95 FROM tab0
----
1995
7695
95

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

query I rowsort
SELECT ALL ( col1 ) * - 80 + + col0 AS col1 FROM tab0
----
-1593
-6465
17

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-870
SELECT ALL - - col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL - - col0 / - col1 AS col0 FROM tab0 AS cor0
----
-4
-97
0

query I rowsort
SELECT ALL - - 50 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT - + COUNT( * ) + 74 AS col0 FROM tab1 cor0
----
71

skipif mysql # not compatible
query I rowsort label-874
SELECT - + COUNT ( * ) + 74 AS col0 FROM tab1 cor0
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 3, - col1 + ( 19 ) + + col0 col1 FROM tab0 AS cor0
----
3
-47
3
115
3
85

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

onlyif mysql # aggregate syntax: 
query II rowsort label-877
SELECT ALL COUNT( * ) * - 42 AS col0, COUNT( ALL + + 26 ) + + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----
0
0

skipif mysql # not compatible
query II rowsort label-877
SELECT ALL COUNT ( * ) * - 42 AS col0, COUNT ( ALL + + 26 ) + + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT DISTINCT + COUNT( * ) - + 47 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
-44

skipif mysql # not compatible
query I rowsort label-878
SELECT DISTINCT + COUNT ( * ) - + 47 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
-44

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-882
SELECT - MIN( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-882
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-884
SELECT 8 DIV + COUNT( col0 ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-884
SELECT 8 / + COUNT ( col0 ) FROM tab1
----
2

query I rowsort
SELECT DISTINCT col0 + - col1 - - - col2 * + 39 * + 89 AS col2 FROM tab0
----
-163203
-343533
-34644

query II rowsort
SELECT ALL col0 + - 61 AS col1, 94 * col2 AS col0 FROM tab2
----
-15
2162
14
5452
3
3760

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT DISTINCT 37 * MAX( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-555

skipif mysql # not compatible
query I rowsort label-887
SELECT DISTINCT 37 * MAX ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-555

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

query I rowsort
SELECT DISTINCT + 39 - - col2 FROM tab0 AS cor0
----
138
49
86

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

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

query I rowsort
SELECT - - 49 + - + 10 AS col0 FROM tab1 cor0
----
39
39
39

query I rowsort
SELECT - 68 * + + col1 * col2 * - col2 + - ( col0 ) AS col2 FROM tab1 AS cor0
----
1183455
14778213
8773581

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

query I rowsort
SELECT ALL - 19 * + col1 FROM tab1
----
-266
-893
-95

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

query I rowsort
SELECT DISTINCT + - 62 * - - 13 AS col1 FROM tab2 cor0
----
-806

query I rowsort
SELECT ALL + col2 * + - col1 FROM tab1 cor0
----
-1344
-295
-3196

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT - MAX( + 27 ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-901
SELECT - MAX ( + 27 ) FROM tab1 AS cor0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-902
SELECT DISTINCT col0 DIV - ( - - 80 ) + + + col1 FROM tab0 AS cor0
----
0
20
81

skipif mysql # not compatible
query I rowsort label-902
SELECT DISTINCT col0 / - ( - - 80 ) + + + col1 FROM tab0 AS cor0
----
0
20
81

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT + COUNT( * ) * + + 57 FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-903
SELECT + COUNT ( * ) * + + 57 FROM tab1 AS cor0
----
171

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 NOT BETWEEN NULL AND 53 * col1
----

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

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

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

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

query I rowsort
SELECT + 14 * + col0 FROM tab2 AS cor0
----
1050
644
896

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

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT DISTINCT + MIN( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-910
SELECT DISTINCT + MIN ( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-911
SELECT - AVG ( - CAST( NULL AS DECIMAL ) ) / ( + MIN( + col2 ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-911
SELECT - AVG ( - CAST ( NULL AS REAL ) ) / ( + MIN ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
NULL

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

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

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

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-46
-64
-75

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

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

query I rowsort
SELECT + 61 + col1 FROM tab1 AS cor0
----
108
66
75

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT DISTINCT 75 * - + COUNT( * ) + MIN( col2 ) AS col2 FROM tab2 cor0
----
-202

skipif mysql # not compatible
query I rowsort label-917
SELECT DISTINCT 75 * - + COUNT ( * ) + MIN ( col2 ) AS col2 FROM tab2 cor0
----
-202

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-918
SELECT ALL - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-918
SELECT ALL - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-919
SELECT 7 * - col2 + - 8 - + - col1 * - col1 + 23 DIV - col0 FROM tab1 AS cor0
----
-2693
-446
-876

skipif mysql # not compatible
query I rowsort label-919
SELECT 7 * - col2 + - 8 - + - col1 * - col1 + 23 / - col0 FROM tab1 AS cor0
----
-2693
-446
-876

query I rowsort
SELECT ALL + 74 + 30 - - + 42 FROM tab0
----
146
146
146

query II rowsort
SELECT DISTINCT + col1 AS col0, + col2 * + col0 AS col1 FROM tab0
----
1
9603
21
870
81
705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-922
SELECT - - 33 / + CAST( NULL AS SIGNED ) * + + CAST( col0 AS SIGNED ) col2 FROM tab2 WHERE NULL > NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-924
SELECT 42 AS col0, 68 + MIN( - 92 ) * + - 99 FROM tab2 AS cor0
----
42
9176

skipif mysql # not compatible
query II rowsort label-924
SELECT 42 AS col0, 68 + MIN ( - 92 ) * + - 99 FROM tab2 AS cor0
----
42
9176

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

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

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

query I rowsort
SELECT - + col2 - + 68 FROM tab0 AS cor0
----
-115
-167
-78

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

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

query I rowsort
SELECT + 51 * + 99 FROM tab1 cor0
----
5049
5049
5049

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT ALL - - MAX( DISTINCT + 76 ) * 27 + + 80 FROM tab0 AS cor0
----
2132

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL - - MAX ( DISTINCT + 76 ) * 27 + + 80 FROM tab0 AS cor0
----
2132

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 81 * col0 = col1 / - - 1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 67 * - + ( col0 ) FROM tab2 AS cor0
----
-3082
-4288
-5025

query I rowsort
SELECT col0 * col2 * 3 + col2 - + - ( - + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 + 1 * + ( + + col2 ) IS NULL
----
13033
3151
7656

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

query II rowsort
SELECT ( - + col2 ) * - 36 AS col1, - col0 AS col0 FROM tab2
----
1440
-64
2088
-75
828
-46

query I rowsort
SELECT 58 * + ( - 4 ) FROM tab2
----
-232
-232
-232

query I rowsort
SELECT 99 * - 24 FROM tab2
----
-2376
-2376
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT DISTINCT COUNT( * ) * + 73 AS col2 FROM tab0
----
219

skipif mysql # not compatible
query I rowsort label-939
SELECT DISTINCT COUNT ( * ) * + 73 AS col2 FROM tab0
----
219

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

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

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

query I rowsort
SELECT DISTINCT - + 63 + - + 47 * + - col0 + col0 AS col1 FROM tab0 AS cor0
----
4113
4593
657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-943
SELECT col2 * CAST( col2 AS SIGNED ) - col0 FROM tab1
----
3396
4533
9165

skipif mysql # not compatible
query I rowsort label-943
SELECT col2 * CAST ( col2 AS INTEGER ) - col0 FROM tab1
----
3396
4533
9165

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT COUNT( * ) * - 94 AS col0 FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-944
SELECT COUNT ( * ) * - 94 AS col0 FROM tab0
----
-282

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - ( + 36 ) * - col2 ) > + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT MAX( DISTINCT + col0 ) * - COUNT( * ) AS col2 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-946
SELECT MAX ( DISTINCT + col0 ) * - COUNT ( * ) AS col2 FROM tab2
----
-225

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 86 ) IN ( col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT + 29 * COUNT( * ) AS col2 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-949
SELECT + 29 * COUNT ( * ) AS col2 FROM tab0
----
87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT 96 + ( - MAX( DISTINCT col2 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-951
SELECT 96 + ( - MAX ( DISTINCT col2 ) ) FROM tab0
----
-3

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * 88 FROM tab1
----
4488
7480
8008

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN 65 + col2 * col2 AND + col2 * 90
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-958
SELECT + CAST( + AVG ( + col0 ) AS SIGNED ) AS col2 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-958
SELECT + CAST ( + AVG ( + col0 ) AS INTEGER ) AS col2 FROM tab0
----
66

query I rowsort
SELECT 20 * + ( 18 ) FROM tab0 WHERE NOT 16 IS NULL
----
360
360
360

query I rowsort
SELECT + col0 + + 19 FROM tab1
----
104
110
70

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

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

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

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

query I rowsort
SELECT - 56 * col1 + + col2 FROM tab2
----
-2833
-3694
-4272

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 >= - 23
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-966
SELECT ALL CAST( col2 AS SIGNED ) * 72 AS col1 FROM tab2
----
1656
2880
4176

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL CAST ( col2 AS INTEGER ) * 72 AS col1 FROM tab2
----
1656
2880
4176

query I rowsort
SELECT DISTINCT - 36 * + 85 AS col1 FROM tab2
----
-3060

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

skipif mysql # not compatible
query I rowsort label-968
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col0 * + col0 BETWEEN - col2 + + ( + CAST ( - col2 AS INTEGER ) ) * col0 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-969
SELECT ALL ( CAST( + col0 AS SIGNED ) ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-969
SELECT ALL ( CAST ( + col0 AS INTEGER ) ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT + COUNT( * ) + SUM( DISTINCT - col0 ) FROM tab0 AS cor0
----
-196

skipif mysql # not compatible
query I rowsort label-970
SELECT + COUNT ( * ) + SUM ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-196

onlyif mysql # DIV for integer division: 
query I rowsort label-971
SELECT ALL 32 DIV + 19 - - col0 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-971
SELECT ALL 32 / + 19 - - col0 FROM tab1 AS cor0
----
52
86
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-972
SELECT - CAST( 63 AS SIGNED ) * + 52 FROM tab2 cor0
----
-3276
-3276
-3276

skipif mysql # not compatible
query I rowsort label-972
SELECT - CAST ( 63 AS INTEGER ) * + 52 FROM tab2 cor0
----
-3276
-3276
-3276

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT + ( 73 ) * - COUNT( * ) FROM tab2
----
-219

skipif mysql # not compatible
query I rowsort label-973
SELECT + ( 73 ) * - COUNT ( * ) FROM tab2
----
-219

query I rowsort
SELECT ALL - 70 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 ) WHERE NULL IS NOT NULL
----

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

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

query I rowsort
SELECT + col1 * 14 + - col0 * col1 AS col2 FROM tab0 WHERE NOT NULL IN ( - col0 + 30 * 44 )
----

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

query I rowsort
SELECT ALL + 19 * col1 AS col2 FROM tab2 AS cor0
----
1273
1463
969

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

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

query I rowsort
SELECT - 24 * col0 FROM tab1 AS cor0
----
-1224
-2040
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT DISTINCT - + 14 * - MIN( - col2 ) FROM tab1 AS cor0
----
-1344

skipif mysql # not compatible
query I rowsort label-981
SELECT DISTINCT - + 14 * - MIN ( - col2 ) FROM tab1 AS cor0
----
-1344

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

skipif mysql # not compatible
query I rowsort label-982
SELECT - CAST ( 70 AS INTEGER ) FROM tab0 AS cor0
----
-70
-70
-70

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

query I rowsort
SELECT DISTINCT 64 * col1 AS col1 FROM tab0 cor0 WHERE NULL BETWEEN ( NULL ) AND + 72
----

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

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

query I rowsort
SELECT 71 * - col0 AS col0 FROM tab1 WHERE NOT NULL <= col2 + 65 * 46
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT + MIN( - 89 ) AS col1 FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-988
SELECT + MIN ( - 89 ) AS col1 FROM tab1
----
-89

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-990
SELECT ALL 33 * - CAST( - col1 AS SIGNED ) AS col0 FROM tab2
----
1683
2211
2541

skipif mysql # not compatible
query I rowsort label-990
SELECT ALL 33 * - CAST ( - col1 AS INTEGER ) AS col0 FROM tab2
----
1683
2211
2541

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-991
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col1 * - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( + 23 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-991
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col1 * - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( + 23 ) IS NULL
----
NULL

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

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

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

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

query I rowsort
SELECT ALL - 9 * - col1 - 52 / - col1 AS col2 FROM tab2 AS cor0 WHERE + col0 + + 16 BETWEEN ( - col0 ) * - 5 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT DISTINCT + MAX( DISTINCT + 58 ) FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-995
SELECT DISTINCT + MAX ( DISTINCT + 58 ) FROM tab0 AS cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 + + ( - 54 ) col1 FROM tab0
----
651
816
9549

query I rowsort
SELECT DISTINCT + col0 + + 18 + + col0 * + 16 FROM tab0
----
1497
1667
273

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT DISTINCT + - COUNT( * ) FROM tab2 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-998
SELECT DISTINCT + - COUNT ( * ) FROM tab2 WHERE NULL > NULL
----
0

query I rowsort
SELECT col1 - 32 AS col0 FROM tab0
----
-11
-31
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1000
SELECT col0 + - + col0 DIV - col0 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-1000
SELECT col0 + - + col0 / - col0 FROM tab1 AS cor0
----
52
86
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1001
SELECT 3 + - CAST( 28 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-1001
SELECT 3 + - CAST ( 28 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-25
-25
-25

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1003
SELECT - + COUNT ( * ) / - + ( - COUNT ( * ) ) - - 16 + 2 col0 FROM tab0 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT ALL + COUNT( * ) * - + ( 99 ) + COUNT( * ) * 14 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-255

skipif mysql # not compatible
query I rowsort label-1004
SELECT ALL + COUNT ( * ) * - + ( 99 ) + COUNT ( * ) * 14 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-255

query I rowsort
SELECT col1 + + col2 + - col0 AS col1 FROM tab0 AS cor0
----
-56
113
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT ALL 11 - MAX( ALL + + 60 ) AS col0 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL 11 - MAX ( ALL + + 60 ) AS col0 FROM tab1 AS cor0
----
-49

query I rowsort
SELECT ALL + + col1 * 39 * col1 FROM tab1 AS cor0
----
7644
86151
975

query II rowsort
SELECT ALL - col0 * + - col2, col2 FROM tab0
----
705
47
870
10
9603
99

query I rowsort
SELECT DISTINCT - col1 + 40 AS col1 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN 64 + + 53 AND NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1013
SELECT + COUNT( * ) DIV - 75 AS col0 FROM tab0 WHERE ( - 31 + - col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1013
SELECT + COUNT ( * ) / - 75 AS col0 FROM tab0 WHERE ( - 31 + - col1 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT DISTINCT 37 + - - ( 94 ) - + 75 + 79 * COUNT( * ) FROM tab1
----
293

skipif mysql # not compatible
query I rowsort label-1014
SELECT DISTINCT 37 + - - ( 94 ) - + 75 + 79 * COUNT ( * ) FROM tab1
----
293

query I rowsort
SELECT - col0 * - 53 AS col2 FROM tab2
----
2438
3392
3975

onlyif mysql # DIV for integer division: 
query I rowsort label-1016
SELECT - 25 DIV col2 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1016
SELECT - 25 / col2 AS col2 FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE + col0 < - col0 + col1
----

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

query I rowsort
SELECT ALL - col0 + 5 FROM tab0 AS cor0
----
-10
-82
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT ALL + MAX( ALL + ( + 24 ) ) AS col2 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-1020
SELECT ALL + MAX ( ALL + ( + 24 ) ) AS col2 FROM tab1 AS cor0
----
24

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

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

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

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - ( - 99 ) BETWEEN ( NULL ) AND ( - 19 )
----

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1026
SELECT - ( 8 ) DIV MIN( - col0 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1026
SELECT - ( 8 ) / MIN ( - col0 ) AS col2 FROM tab1 AS cor0
----
0

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1030
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - ( - + CAST( - 20 AS DECIMAL ) ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1030
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - ( - + CAST ( - 20 AS REAL ) ) ) IS NOT NULL
----

query I rowsort
SELECT + col0 + - 84 + - + 35 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

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

query I rowsort
SELECT ALL 30 + - col0 + - 52 FROM tab1
----
-107
-113
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT DISTINCT - MAX( DISTINCT + col0 ) * - MIN( 56 ) - - 3 FROM tab1
----
5099

skipif mysql # not compatible
query I rowsort label-1034
SELECT DISTINCT - MAX ( DISTINCT + col0 ) * - MIN ( 56 ) - - 3 FROM tab1
----
5099

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1036
SELECT ALL 10 + CAST( + - 56 AS SIGNED ) + + - 46 DIV COUNT( * ) AS col2 FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL 10 + CAST ( + - 56 AS INTEGER ) + + - 46 / COUNT ( * ) AS col2 FROM tab0
----
-61

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col1 ) < col2 * - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1038
SELECT MIN( ALL col0 ) * CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT - 64 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1038
SELECT MIN ( ALL col0 ) * CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - 64 IS NOT NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1039
SELECT + MAX ( - - 47 ) AS col0 FROM tab0
----
47

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT ALL - SUM( 81 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-729

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL - SUM ( 81 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-729

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 31 <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT AVG ( DISTINCT col1 ) * - - SUM( + + col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL < ( col1 * col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1047
SELECT AVG ( DISTINCT col1 ) * - - SUM ( + + col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL < ( col1 * col2 )
----
NULL

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

query I rowsort
SELECT ALL - 15 * - - col1 + - - col1 + col2 AS col1 FROM tab1 AS cor0
----
-100
-11
-590

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

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

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

query II rowsort
SELECT DISTINCT 98 * 34 AS col0, - 24 AS col0 FROM tab2 AS cor0
----
3332
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT ALL + + MAX( - 15 ) - - 16 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1053
SELECT ALL + + MAX ( - 15 ) - - 16 FROM tab0 cor0
----
1

query I rowsort
SELECT ALL - 71 FROM tab1 AS cor0 WHERE NOT col1 * col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1055
SELECT 72 - - col2 DIV - + col1 FROM tab0
----
-27
72
72

skipif mysql # not compatible
query I rowsort label-1055
SELECT 72 - - col2 / - + col1 FROM tab0
----
-27
72
72

onlyif mysql # DIV for integer division: 
query I rowsort label-1056
SELECT DISTINCT - col2 + 73 - - 72 DIV 25 FROM tab0
----
-24
28
65

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT - col2 + 73 - - 72 / 25 FROM tab0
----
-24
28
65

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND col1 * 35 OR + 33 * ( col0 ) * - col1 NOT BETWEEN ( col0 + + col0 / 31 ) AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 71 - - - 44 * col2 col2 FROM tab2
----
2254
2773
2784

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1061
SELECT 21 + + COUNT( * ) DIV - 9 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-1061
SELECT 21 + + COUNT ( * ) / - 9 FROM tab1
----
21

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1063
SELECT DISTINCT * FROM tab1 WHERE NOT col2 - col1 + col1 / + col1 < - CAST( - - col0 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1063
SELECT DISTINCT * FROM tab1 WHERE NOT col2 - col1 + col1 / + col1 < - CAST ( - - col0 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT ALL 22 * + + 93 * + COUNT( 81 ) FROM tab0
----
6138

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL 22 * + + 93 * + COUNT ( 81 ) FROM tab0
----
6138

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

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1073
SELECT ALL + + 8 DIV + ( - col0 ) + 29 * + - 49 AS col1 FROM tab0 AS cor0
----
-1421
-1421
-1421

skipif mysql # not compatible
query I rowsort label-1073
SELECT ALL + + 8 / + ( - col0 ) + 29 * + - 49 AS col1 FROM tab0 AS cor0
----
-1421
-1421
-1421

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1074
SELECT + ( - CAST( col1 AS SIGNED ) ) DIV 27 AS col1 FROM tab0 cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1074
SELECT + ( - CAST ( col1 AS INTEGER ) ) / 27 AS col1 FROM tab0 cor0
----
-3
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - + col1 / - col1 NOT BETWEEN + 19 AND ( - + 8 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT - SUM( DISTINCT - + 58 ) * MIN( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
1334

skipif mysql # not compatible
query I rowsort label-1076
SELECT - SUM ( DISTINCT - + 58 ) * MIN ( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
1334

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE + col1 >= - - col1 + - col0 + + - ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 + 44 * + - col0 AS col2 FROM tab0
----
-3849
-4269
-741

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT COUNT( * ) + 42 + + + 49 * + 62 FROM tab2
----
3083

skipif mysql # not compatible
query I rowsort label-1081
SELECT COUNT ( * ) + 42 + + + 49 * + 62 FROM tab2
----
3083

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

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

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

skipif mysql # not compatible
query I rowsort label-1083
SELECT DISTINCT + COUNT ( * ) + + 21 FROM tab0
----
24

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

query I rowsort
SELECT col1 + - + 34 AS col2 FROM tab0 AS cor0
----
-13
-33
47

onlyif mysql # DIV for integer division: 
query I rowsort label-1086
SELECT DISTINCT 70 * - 17 - - col2 + + 27 DIV col0 FROM tab2 AS cor0
----
-1132
-1150
-1167

skipif mysql # not compatible
query I rowsort label-1086
SELECT DISTINCT 70 * - 17 - - col2 + + 27 / col0 FROM tab2 AS cor0
----
-1132
-1150
-1167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1087
SELECT - + CAST( - 93 AS SIGNED ) + col0 AS col0 FROM tab2 AS cor0
----
139
157
168

skipif mysql # not compatible
query I rowsort label-1087
SELECT - + CAST ( - 93 AS INTEGER ) + col0 AS col0 FROM tab2 AS cor0
----
139
157
168

onlyif mysql # DIV for integer division: 
query I rowsort label-1088
SELECT DISTINCT + - ( - ( - - col2 ) ) * + ( - + col1 ) * - - ( - col0 ) + + 95 DIV - ( - col0 ) AS col0 FROM tab1 AS cor0
----
25076
290837
68545

skipif mysql # not compatible
query I rowsort label-1088
SELECT DISTINCT + - ( - ( - - col2 ) ) * + ( - + col1 ) * - - ( - col0 ) + + 95 / - ( - col0 ) AS col0 FROM tab1 AS cor0
----
25076
290837
68545

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1089
SELECT ALL - CAST( - ( COUNT( * ) ) AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT - col0 * - 74 + + col0 * col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1089
SELECT ALL - CAST ( - ( COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT - col0 * - 74 + + col0 * col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT ( 46 ) - + + col2 + ( + col1 ) + + + ( col1 ) FROM tab1 AS cor0
----
-22
-3
72

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1092
SELECT DISTINCT + ( SUM( ALL ( - col1 ) ) ) FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + 52 IS NOT NULL
----
-195

skipif mysql # not compatible
query I rowsort label-1092
SELECT DISTINCT + ( SUM ( ALL ( - col1 ) ) ) FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + 52 IS NOT NULL
----
-195

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1093
SELECT ALL CAST ( NULL AS INTEGER ) col2, - col2 AS col0 FROM tab2 cor0
----
NULL
-23
NULL
-40
NULL
-58

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

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

query I rowsort
SELECT ALL 54 * 66 FROM tab1, tab0 AS cor0
----
9 values hashing to ff393261a85d4ec158a92fa151a2e634

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1097
SELECT DISTINCT - ( - MIN( ALL - - CAST( NULL AS SIGNED ) ) ) * MIN( DISTINCT - col0 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1097
SELECT DISTINCT - ( - MIN ( ALL - - CAST ( NULL AS INTEGER ) ) ) * MIN ( DISTINCT - col0 ) AS col2 FROM tab2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT DISTINCT + MIN( - 66 ) AS col2 FROM tab2 WHERE NOT 19 + + col2 IN ( col2, - 29 )
----
-66

skipif mysql # not compatible
query I rowsort label-1099
SELECT DISTINCT + MIN ( - 66 ) AS col2 FROM tab2 WHERE NOT 19 + + col2 IN ( col2, - 29 )
----
-66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT ALL - 65 * + COUNT( + - col2 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL - 65 * + COUNT ( + - col2 ) FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT ALL MIN( DISTINCT ( - col1 ) ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1102
SELECT ALL MIN ( DISTINCT ( - col1 ) ) AS col0 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT DISTINCT - + 97 AS col0 FROM tab0 cor0
----
-97

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

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE 52 * + 50 IS NOT NULL
----
46
64
75

query I rowsort
SELECT + + 43 + + + col2 FROM tab2 AS cor0 WHERE NOT NULL = ( NULL )
----

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

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

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

query II rowsort
SELECT DISTINCT - + 63, 70 AS col0 FROM tab1 AS cor0
----
-63
70

query II rowsort
SELECT ALL - 6 AS col1, col0 AS col2 FROM tab0 AS cor0
----
-6
15
-6
87
-6
97

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1111
SELECT - MAX ( ( col2 ) ) col1 FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1112
SELECT DISTINCT + SUM( - col0 ) / - CAST( + MIN( ALL + 12 ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + 19 + col1 + + 36 ) AND - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1112
SELECT DISTINCT + SUM ( - col0 ) / - CAST ( + MIN ( ALL + 12 ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + 19 + col1 + + 36 ) AND - col2
----
NULL

query I rowsort
SELECT - ( - 82 ) FROM tab0 WHERE 70 IS NOT NULL
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT DISTINCT 50 + + COUNT( * ) AS col1 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-1114
SELECT DISTINCT 50 + + COUNT ( * ) AS col1 FROM tab2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT DISTINCT MAX( ALL ( + 71 ) ) FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-1115
SELECT DISTINCT MAX ( ALL ( + 71 ) ) FROM tab0
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 23 + - + col0 col2 FROM tab2
----
-1219
-1616
-1835

query I rowsort
SELECT DISTINCT - 32 + col2 AS col0 FROM tab1
----
27
36
64

query I rowsort
SELECT DISTINCT col0 + 67 FROM tab0 AS cor0
----
154
164
82

query I rowsort
SELECT ( + 15 ) + + + col1 + - col2 * - col2 FROM tab1 AS cor0
----
3501
4686
9245

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + + col1 + 80 + - col0 * + 21 + + 10 col2 FROM tab0 cor0
----
-1726
-191
-2045

query II rowsort
SELECT + col2 + col0 + 47, + col0 * + - col2 AS col1 FROM tab0
----
109
-705
144
-870
243
-9603

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT DISTINCT - SUM( DISTINCT - col2 ) + + SUM( DISTINCT + col2 ) AS col1 FROM tab0
----
312

skipif mysql # not compatible
query I rowsort label-1123
SELECT DISTINCT - SUM ( DISTINCT - col2 ) + + SUM ( DISTINCT + col2 ) AS col1 FROM tab0
----
312

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT ALL COUNT( * ) + - MIN( + + 49 ) FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL COUNT ( * ) + - MIN ( + + 49 ) FROM tab2 cor0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-1127
SELECT DISTINCT + - 14 DIV 70 - + 49 + - col1 AS col0 FROM tab0 AS cor0
----
-130
-50
-70

skipif mysql # not compatible
query I rowsort label-1127
SELECT DISTINCT + - 14 / 70 - + 49 + - col1 AS col0 FROM tab0 AS cor0
----
-130
-50
-70

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

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

query I rowsort
SELECT ALL 63 + + + col1 + + col0 AS col0 FROM tab0 AS cor0
----
159
161
171

query I rowsort
SELECT - + ( - 41 ) AS col0 FROM tab1 AS cor0
----
41
41
41

query II rowsort
SELECT DISTINCT + col1 AS col1, 39 * col0 * + col0 FROM tab1 AS cor0
----
14
101439
47
322959
5
281775

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT + 61 * - COUNT( - - ( - 84 ) ) FROM tab0
----
-183

skipif mysql # not compatible
query I rowsort label-1134
SELECT + 61 * - COUNT ( - - ( - 84 ) ) FROM tab0
----
-183

query I rowsort
SELECT + 88 * col2 AS col0 FROM tab1
----
5192
5984
8448

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 / + ( + col2 ) * 13 BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT DISTINCT - col0 * + 25 FROM tab1
----
-1275
-2125
-2275

query I rowsort
SELECT ALL - 49 + + + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-26
-9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT DISTINCT COUNT( DISTINCT - 94 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT - col0 IS NOT NULL )
----
1

skipif mysql # not compatible
query I rowsort label-1142
SELECT DISTINCT COUNT ( DISTINCT - 94 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT - col0 IS NOT NULL )
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1144
SELECT ALL - 56 DIV - - col1, CAST( NULL AS SIGNED ) DIV + col1 AS col2 FROM tab0 AS cor0
----
-2
NULL
-56
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-1144
SELECT ALL - 56 / - - col1, CAST ( NULL AS INTEGER ) / + col1 AS col2 FROM tab0 AS cor0
----
-2
NULL
-56
NULL
0
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1146
SELECT + COUNT( * ) DIV - SUM( DISTINCT + 35 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1146
SELECT + COUNT ( * ) / - SUM ( DISTINCT + 35 ) FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1147
SELECT col0 * + 22, - col2 + col1 DIV + - col2 + + col1 AS col0 FROM tab0 AS cor0
----
1914
9
2134
-98
330
33

skipif mysql # not compatible
query II rowsort label-1147
SELECT col0 * + 22, - col2 + col1 / + - col2 + + col1 AS col0 FROM tab0 AS cor0
----
1914
9
2134
-98
330
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT - ( + COUNT( * ) ) + - - 49 * COUNT( * ) FROM tab1 cor0
----
144

skipif mysql # not compatible
query I rowsort label-1148
SELECT - ( + COUNT ( * ) ) + - - 49 * COUNT ( * ) FROM tab1 cor0
----
144

query II rowsort
SELECT + - col0 * + + 93 * + ( 73 ) + - col0, - ( - col2 ) AS col2 FROM tab2 AS cor0
----
-312340
23
-434560
40
-509250
58

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1151
SELECT DISTINCT - MAX( - col2 ) + + AVG ( DISTINCT 11 ) + + 31 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT - MAX ( - col2 ) + + AVG ( DISTINCT 11 ) + + 31 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT col1 * + 44 + col0 FROM tab0
----
1011
141
3579

query I rowsort
SELECT + col0 * 38 FROM tab0 WHERE + col2 <= - 25 * - col2
----
3306
3686
570

query I rowsort
SELECT - 32 FROM tab0 WHERE NULL NOT IN ( + + 96 / - col2 * col1 * + col1, - ( - col0 ), + + col2 * + col1 * - col2 )
----

query I rowsort
SELECT ALL + 71 + - 61 + col1 AS col0 FROM tab0
----
11
31
91

query I rowsort
SELECT ALL - 66 + - - col2 AS col1 FROM tab2
----
-26
-43
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1157
SELECT DISTINCT - MIN( DISTINCT + col2 ) + + CAST( + 89 AS SIGNED ) AS col1 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT - MIN ( DISTINCT + col2 ) + + CAST ( + 89 AS INTEGER ) AS col1 FROM tab0
----
79

query II rowsort
SELECT 68 AS col0, col0 + - ( + 16 ) FROM tab0
----
68
-1
68
71
68
81

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

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

query II rowsort
SELECT - col0, - col1 + - col2 AS col1 FROM tab1 AS cor0
----
-51
-110
-85
-64
-91
-115

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

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

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

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

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

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

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

query I rowsort
SELECT + ( - 81 ) AS col1 FROM tab1 AS cor0
----
-81
-81
-81

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

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

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

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

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

query I rowsort
SELECT ALL + 38 * + 26 FROM tab2
----
988
988
988

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

query I rowsort
SELECT - 5 * - 69 AS col2 FROM tab2
----
345
345
345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 * - col2 col1 FROM tab2
----
-1633
-2840
-4118

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

query I rowsort
SELECT + 33 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1179
SELECT + col0 * - + col0 + + CAST( + col2 AS SIGNED ) - - - col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-1179
SELECT + col0 * - + col0 + + CAST ( + col2 AS INTEGER ) - - - col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT 35 * - 76 FROM tab2 AS cor0
----
-2660
-2660
-2660

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

query I rowsort
SELECT ALL + col1 * + - col1 * + col2 AS col0 FROM tab1 cor0
----
-1475
-150212
-18816

query I rowsort
SELECT ALL - 6 * - - col0 + - col2 + + col0 * + col1 AS col2 FROM tab0
----
-584
1078
1295

query I rowsort
SELECT DISTINCT + col2 + - 22 + - 61 AS col2 FROM tab2
----
-25
-43
-60

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 + - 47 + - col2 col0 FROM tab2
----
-41
-58
-76

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

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

query I rowsort
SELECT DISTINCT 9 + + + col0 FROM tab1
----
100
60
94

query I rowsort
SELECT DISTINCT 97 - - col2 * + col2 * - + 30 FROM tab2
----
-100823
-15773
-47903

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

query I rowsort
SELECT - 49 + + col1 FROM tab1 AS cor0
----
-2
-35
-44

query I rowsort
SELECT col0 + 9 - + - col0 * 63 FROM tab2 cor0
----
2953
4105
4809

query I rowsort
SELECT ALL - - col0 FROM tab2 WHERE + 12 IS NOT NULL
----
46
64
75

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

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

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

query I rowsort
SELECT + 6 AS col1 FROM tab0 AS cor0 WHERE NOT 4 + col0 * 53 <> - 27
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1198
SELECT ALL + - MAX ( - col1 ) col1 FROM tab1 AS cor0
----
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT DISTINCT + MIN( + - 93 ) FROM tab2 WHERE ( + 75 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1200
SELECT DISTINCT + MIN ( + - 93 ) FROM tab2 WHERE ( + 75 IS NULL )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT DISTINCT + MAX( ALL - 52 ) FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-1203
SELECT DISTINCT + MAX ( ALL - 52 ) FROM tab1 AS cor0
----
-52

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1204
SELECT ALL + + col0 * + + col2 col1, - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
1058
NULL
2560
NULL
4350
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1204
SELECT ALL + + col0 * + + col2 col1, - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
1058
NULL
2560
NULL
4350
NULL

query I rowsort
SELECT ALL 51 FROM tab0 WHERE ( col2 ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1207
SELECT ALL 90 * - COUNT( * ), - COUNT( * ) AS col0 FROM tab1 WHERE - col2 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-1207
SELECT ALL 90 * - COUNT ( * ), - COUNT ( * ) AS col0 FROM tab1 WHERE - col2 IS NULL
----
0
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1209
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE col1 * + col2 * 82 * 65 + CAST( NULL AS SIGNED ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1209
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE col1 * + col2 * 82 * 65 + CAST ( NULL AS INTEGER ) < NULL
----
0

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

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

query I rowsort
SELECT + 96 + - 42 FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT ALL ( - ( - - 52 ) ) + - col0 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-139
-149
-67

query I rowsort
SELECT DISTINCT + 28 * - - ( - + 16 ) AS col0 FROM tab1 AS cor0
----
-448

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1217
SELECT ALL 86 DIV + ( ( + - col1 ) ) AS col0 FROM tab1 AS cor0
----
-1
-17
-6

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL 86 / + ( ( + - col1 ) ) AS col0 FROM tab1 AS cor0
----
-1
-17
-6

query II rowsort
SELECT DISTINCT col0 * col1, col2 FROM tab2
----
2346
23
4928
40
5025
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1219
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= + + CAST( NULL AS SIGNED ) * ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-1219
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= + + CAST ( NULL AS INTEGER ) * ( + col1 )
----

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

query I rowsort
SELECT DISTINCT col0 + + col0 + + - 75 AS col1 FROM tab0
----
-45
119
99

query I rowsort
SELECT ALL + col0 * 29 AS col1 FROM tab1
----
1479
2465
2639

query I rowsort
SELECT + col1 * + 58 AS col0 FROM tab2
----
2958
3886
4466

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

skipif mysql # not compatible
query I rowsort label-1224
SELECT - - CAST ( NULL AS INTEGER ) + 47 AS col0 FROM tab0 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 AS col2, col1 col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1227
SELECT ALL - COUNT( * ) * + + CAST( COUNT( * ) AS SIGNED ) + 77 AS col1 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-1227
SELECT ALL - COUNT ( * ) * + + CAST ( COUNT ( * ) AS INTEGER ) + 77 AS col1 FROM tab1
----
68

query I rowsort
SELECT DISTINCT + ( + ( 76 ) ) + - col1 + - col2 * + col2 AS col1 FROM tab2
----
-1601
-3355
-504

query I rowsort
SELECT ALL col1 - col2 + - col0 AS col1 FROM tab0
----
-195
-76
19

onlyif mysql # aggregate syntax: 
query II rowsort label-1230
SELECT + COUNT( * ) AS col0, 88 FROM tab0
----
3
88

skipif mysql # not compatible
query II rowsort label-1230
SELECT + COUNT ( * ) AS col0, 88 FROM tab0
----
3
88

query III rowsort
SELECT - - 26 AS col0, + col0 AS col0, - + col1 FROM tab0 cor0
----
9 values hashing to a61bd2a0afb139438728313776f3cc2c

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

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

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

query I rowsort
SELECT + col2 - - 8 FROM tab0 AS cor0
----
107
18
55

query II rowsort
SELECT ALL - - col0 * col0 + - col0 + + col1 AS col1, col2 FROM tab1 AS cor0
----
2564
96
7145
59
8237
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1236
SELECT DISTINCT - 65 DIV COUNT( * ) AS col1 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT - 65 / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT ALL 25 * - MAX( + + ( + - col2 ) ) FROM tab2
----
575

skipif mysql # not compatible
query I rowsort label-1238
SELECT ALL 25 * - MAX ( + + ( + - col2 ) ) FROM tab2
----
575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1239
SELECT DISTINCT - CAST( + col2 AS SIGNED ) * - 74 * col2 FROM tab1 AS cor0
----
257594
342176
681984

skipif mysql # not compatible
query I rowsort label-1239
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) * - 74 * col2 FROM tab1 AS cor0
----
257594
342176
681984

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1241
SELECT CAST( 74 AS SIGNED ) AS col1 FROM tab2 cor0
----
74
74
74

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1242
SELECT - - ( - col1 ) FROM tab0 AS cor0 WHERE NOT + col1 * - CAST( CAST( col0 AS SIGNED ) AS SIGNED ) + - - col2 IS NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-1242
SELECT - - ( - col1 ) FROM tab0 AS cor0 WHERE NOT + col1 * - CAST ( CAST ( col0 AS INTEGER ) AS INTEGER ) + - - col2 IS NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-1243
SELECT ALL ( + col2 ) DIV + col2 + - col1 FROM tab1
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL ( + col2 ) / + col2 + - col1 FROM tab1
----
-13
-4
-46

query I rowsort
SELECT + ( 87 ) FROM tab0
----
87
87
87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1245
SELECT ALL col0 + - + CAST( - col0 AS DECIMAL ) AS col1 FROM tab2 WHERE + ( + col2 ) + - 98 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL col0 + - + CAST ( - col0 AS REAL ) AS col1 FROM tab2 WHERE + ( + col2 ) + - 98 IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT ALL 9 * + COUNT( * ) * - - 63 * + SUM( + col2 ) FROM tab2 AS cor0
----
205821

skipif mysql # not compatible
query I rowsort label-1248
SELECT ALL 9 * + COUNT ( * ) * - - 63 * + SUM ( + col2 ) FROM tab2 AS cor0
----
205821

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 35 ) > col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 11, + col2 AS col2 FROM tab2 AS cor0
----
11
23
11
40
11
58

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1254
SELECT col1 + + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL > col2
----

skipif mysql # not compatible
query I rowsort label-1254
SELECT col1 + + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL > col2
----

query I rowsort
SELECT DISTINCT + + col1 * - col2 - - + 67 - col0 AS col0 FROM tab2 cor0
----
-1152
-3077
-3894

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 34 * 7 + 49 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1257
SELECT DISTINCT - col2 + - col0 DIV + col1 AS col2 FROM tab2 AS cor0
----
-23
-40
-59

skipif mysql # not compatible
query I rowsort label-1257
SELECT DISTINCT - col2 + - col0 / + col1 AS col2 FROM tab2 AS cor0
----
-23
-40
-59

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

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

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

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

query I rowsort
SELECT + col2 - 65 FROM tab2 AS cor0
----
-25
-42
-7

query I rowsort
SELECT - col0 * + col0 - col0 AS col1 FROM tab1
----
-2652
-7310
-8372

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1263
SELECT - col0 - 68 * - col0 + - col2 * - - 78 * CAST( NULL AS SIGNED ) AS col1, - 2 FROM tab2
----
NULL
-2
NULL
-2
NULL
-2

skipif mysql # not compatible
query II rowsort label-1263
SELECT - col0 - 68 * - col0 + - col2 * - - 78 * CAST ( NULL AS INTEGER ) AS col1, - 2 FROM tab2
----
NULL
-2
NULL
-2
NULL
-2

query I rowsort
SELECT DISTINCT 17 * - + col2 AS col0 FROM tab0 AS cor0
----
-1683
-170
-799

query I rowsort
SELECT ALL + col1 * + 69 AS col2 FROM tab2 AS cor0
----
3519
4623
5313

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT - MIN( DISTINCT col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1267
SELECT - MIN ( DISTINCT col1 ) FROM tab1 AS cor0
----
-5

query I rowsort
SELECT - + 78 * + 7 AS col0 FROM tab0 AS cor0
----
-546
-546
-546

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

skipif mysql # not compatible
query II rowsort label-1269
SELECT - + COUNT ( * ) AS col2, - 2 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT + COUNT( * ) * 13 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-1271
SELECT + COUNT ( * ) * 13 FROM tab1
----
39

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1273
SELECT DISTINCT col1 col0 FROM tab1 AS cor0 WHERE - CAST( + col1 AS SIGNED ) >= col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1273
SELECT DISTINCT col1 col0 FROM tab1 AS cor0 WHERE - CAST ( + col1 AS INTEGER ) >= col1
----

query II rowsort
SELECT DISTINCT col0, + 20 FROM tab1 AS cor0
----
51
20
85
20
91
20

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 61 * col2 NOT IN ( + col1 * - - col2 / - + 59 )
----

query II rowsort
SELECT 76 AS col1, 80 AS col2 FROM tab0 cor0
----
76
80
76
80
76
80

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT DISTINCT - SUM( ALL 38 ) FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-1280
SELECT DISTINCT - SUM ( ALL 38 ) FROM tab2
----
-114

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1282
SELECT col2 + + col1 * - CAST( + col2 AS SIGNED ) AS col1 FROM tab2
----
-1150
-3040
-3828

skipif mysql # not compatible
query I rowsort label-1282
SELECT col2 + + col1 * - CAST ( + col2 AS INTEGER ) AS col1 FROM tab2
----
-1150
-3040
-3828

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1284
SELECT - - CAST( - col0 AS SIGNED ) AS col0, + col0 AS col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

skipif mysql # not compatible
query II rowsort label-1284
SELECT - - CAST ( - col0 AS INTEGER ) AS col0, + col0 AS col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT + - 71 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col2 + - + 61 AS col1 FROM tab0 AS cor0
----
-108
-160
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1287
SELECT DISTINCT CAST( col2 AS SIGNED ) + - - col2 AS col1 FROM tab1 AS cor0
----
118
136
192

skipif mysql # not compatible
query I rowsort label-1287
SELECT DISTINCT CAST ( col2 AS INTEGER ) + - - col2 AS col1 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT + + 43 + + COUNT( * ) FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-1288
SELECT + + 43 + + COUNT ( * ) FROM tab0 AS cor0
----
46

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1290
SELECT DISTINCT ( + ( - - ( - 47 ) ) ) - col2 + - 28 AS col0, + CAST( NULL AS SIGNED ) / - ( - + col0 ) FROM tab0 AS cor0
----
-122
NULL
-174
NULL
-85
NULL

skipif mysql # not compatible
query II rowsort label-1290
SELECT DISTINCT ( + ( - - ( - 47 ) ) ) - col2 + - 28 AS col0, + CAST ( NULL AS INTEGER ) / - ( - + col0 ) FROM tab0 AS cor0
----
-122
NULL
-174
NULL
-85
NULL

query I rowsort
SELECT - col0 + - col1 - col2 FROM tab2 AS cor0
----
-120
-181
-200

query I rowsort
SELECT - + col2 + - 42 + - 28 FROM tab1 AS cor0
----
-129
-138
-166

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1294
SELECT DISTINCT - SUM ( - col0 ) col1 FROM tab1 AS cor0
----
227

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1297
SELECT DISTINCT MAX( col0 ), - COUNT( * ) AS col0 FROM tab1
----
91
-3

skipif mysql # not compatible
query II rowsort label-1297
SELECT DISTINCT MAX ( col0 ), - COUNT ( * ) AS col0 FROM tab1
----
91
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT ALL 86 * COUNT( * ) AS col2 FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-1299
SELECT ALL 86 * COUNT ( * ) AS col2 FROM tab2
----
258

query I rowsort
SELECT + col2 * + - 2 FROM tab2
----
-116
-46
-80

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1302
SELECT DISTINCT - - 67 DIV - MAX( DISTINCT + - col2 ) AS col2 FROM tab1 AS cor0
----
1

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

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

query II rowsort
SELECT ALL col0, - col0 - + col2 AS col0 FROM tab2 AS cor0
----
46
-69
64
-104
75
-133

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 * ( col2 ) + 72 + + 81 >= - col0 * + 79 + - - col0 / col0 + - - col2
----

query I rowsort
SELECT ALL col1 * 67 AS col0 FROM tab2
----
3417
4489
5159

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT ALL COUNT( * ) AS col1 FROM tab2 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE NULL < NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1311
SELECT DISTINCT - COUNT( DISTINCT + 81 ) FROM tab1 WHERE CAST( - - ( - 14 ) AS SIGNED ) > + 99
----
0

skipif mysql # not compatible
query I rowsort label-1311
SELECT DISTINCT - COUNT ( DISTINCT + 81 ) FROM tab1 WHERE CAST ( - - ( - 14 ) AS INTEGER ) > + 99
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1312
SELECT col1, - col0 - col2 + - CAST( NULL AS SIGNED ) * + - col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-1312
SELECT col1, - col0 - col2 + - CAST ( NULL AS INTEGER ) * + - col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT MIN( + 63 ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-1313
SELECT MIN ( + 63 ) FROM tab1
----
63

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

query I rowsort
SELECT DISTINCT + col2 + - + 84 AS col0 FROM tab1 AS cor0
----
-16
-25
12

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

query I rowsort
SELECT DISTINCT + ( + col2 ) + + + 75 AS col0 FROM tab0
----
122
174
85

query I rowsort
SELECT ALL + 70 * + + col2 FROM tab0
----
3290
6930
700

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT ALL + 37 + SUM( col0 ) FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL + 37 + SUM ( col0 ) FROM tab2
----
222

query I rowsort
SELECT - + 77 FROM tab1 WHERE NULL <= col0
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1323
SELECT ALL + col0 * - 17 - + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-1152
-1350
-828

skipif mysql # not compatible
query I rowsort label-1323
SELECT ALL + col0 * - 17 - + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-1152
-1350
-828

query II rowsort
SELECT DISTINCT - 71 + ( 1 ) AS col0, 16 FROM tab2 AS cor0
----
-70
16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1325
SELECT ALL + col1 - 3 DIV - CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL + col1 - 3 / - CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + col1 * + col1 + - col1 col1 FROM tab0 AS cor0
----
-452
-6595
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1327
SELECT + col0 - + col2 AS col2, + CAST( NULL AS SIGNED ) * col1 + - col1 FROM tab1 AS cor0
----
-45
NULL
23
NULL
26
NULL

skipif mysql # not compatible
query II rowsort label-1327
SELECT + col0 - + col2 AS col2, + CAST ( NULL AS INTEGER ) * col1 + - col1 FROM tab1 AS cor0
----
-45
NULL
23
NULL
26
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1330
SELECT COUNT ( * ) * - + SUM ( DISTINCT + CAST ( 0 AS INTEGER ) ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT - 22 FROM tab1 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 7 col2 FROM tab1
----
357
595
637

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 17 * + col0 > NULL
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * + ( - + 33 ) * - + col2 FROM tab1 cor0 WHERE NOT NULL < NULL
----

query II rowsort
SELECT ALL - col0, 29 AS col2 FROM tab0 AS cor0
----
-15
29
-87
29
-97
29

onlyif mysql # DIV for integer division: 
query I rowsort label-1339
SELECT + col2 DIV - - col2 AS col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1339
SELECT + col2 / - - col2 AS col2 FROM tab0 cor0
----
1
1
1

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

query I rowsort
SELECT DISTINCT - 45 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL = col1
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1346
SELECT DISTINCT - - SUM( DISTINCT + 0 ) * - COUNT( * ) * - - 66 * + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1346
SELECT DISTINCT - - SUM ( DISTINCT + 0 ) * - COUNT ( * ) * - - 66 * + COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT ALL + SUM( - col0 ) * - 56 AS col0 FROM tab1 AS cor0
----
12712

skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL + SUM ( - col0 ) * - 56 AS col0 FROM tab1 AS cor0
----
12712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1348
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 30 * - + 75 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1348
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 30 * - + 75 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 56 * col2 + col2 FROM tab2
----
1311
2280
3306

onlyif mysql # DIV for integer division: 
query I rowsort label-1350
SELECT DISTINCT + col1 DIV + 61 + - col2 AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1350
SELECT DISTINCT + col1 / + 61 + - col2 AS col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL col0 + + col2 + 10 AS col0 FROM tab1
----
154
157
169

query I rowsort
SELECT + 46 * + + col0 AS col1 FROM tab0 AS cor0
----
4002
4462
690

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1354
SELECT DISTINCT 14 DIV col2 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT 14 / col2 AS col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col1 + - 4 AS col2 FROM tab1 AS cor0
----
1
10
43

query I rowsort
SELECT + col2 + + 71 FROM tab0 AS cor0
----
118
170
81

query I rowsort
SELECT ALL - ( - - col1 ) AS col1 FROM tab1 AS cor0 WHERE col1 * + 19 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - col1 - - col2 + + + col0 + + - col0 + + + col2 AS col1 FROM tab0 AS cor0
----
-1
13
197

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1360
SELECT 48 AS col2, MAX( - CAST( + 50 AS SIGNED ) ) FROM tab2 AS cor0
----
48
-50

skipif mysql # not compatible
query II rowsort label-1360
SELECT 48 AS col2, MAX ( - CAST ( + 50 AS INTEGER ) ) FROM tab2 AS cor0
----
48
-50

query I rowsort
SELECT DISTINCT + col2 * + 40 FROM tab2 AS cor0
----
1600
2320
920

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

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

query I rowsort
SELECT DISTINCT - + col0 + - col0 FROM tab1 WHERE + - col2 * + 93 * - col2 - col0 + - col0 IS NOT NULL
----
-102
-170
-182

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1366
SELECT DISTINCT - COUNT( * ) DIV + - 94 * + + 65 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1366
SELECT DISTINCT - COUNT ( * ) / + - 94 * + + 65 AS col0 FROM tab2
----
0

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

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

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

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

query I rowsort
SELECT - col2 + + 88 AS col2 FROM tab2
----
30
48
65

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( - + 5 ) <> NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 78 * - 34 col2 FROM tab1 AS cor0
----
-2652

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1376
SELECT - MIN( ( - CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1376
SELECT - MIN ( ( - CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col1 * - + col0 <= - 49 + 26
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query I rowsort
SELECT col1 * + col1 - col0 + + 80 + + 38 AS col1 FROM tab1
----
2236
263
58

query I rowsort
SELECT ALL col2 + + col1 * + 39 FROM tab2
----
2012
2671
3043

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1383
SELECT + 92 + COUNT( * ) + + ( + 97 ) + COUNT( * ), 95 AS col2 FROM tab2
----
195
95

skipif mysql # not compatible
query II rowsort label-1383
SELECT + 92 + COUNT ( * ) + + ( + 97 ) + COUNT ( * ), 95 AS col2 FROM tab2
----
195
95

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 61 + - - col1 FROM tab2
----
-10
16
6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1389
SELECT - col1 DIV + CAST( + col2 AS SIGNED ) FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1389
SELECT - col1 / + CAST ( + col2 AS INTEGER ) FROM tab0
----
-1
-2
0

query I rowsort
SELECT 9 - + + col2 AS col0 FROM tab2
----
-14
-31
-49

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * + 77 BETWEEN col1 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1393
SELECT ALL + ( col2 ) DIV - col0 - col1 FROM tab0 AS cor0
----
-2
-21
-84

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL + ( col2 ) / - col0 - col1 FROM tab0 AS cor0
----
-2
-21
-84

query I rowsort
SELECT + + col1 * - 3 AS col2 FROM tab0 AS cor0
----
-243
-3
-63

query II rowsort
SELECT DISTINCT 27 AS col1, col2 * col0 FROM tab1
----
27
4896
27
5015
27
6188

query II rowsort
SELECT ALL 63 * col0, - col2 AS col0 FROM tab2
----
2898
-23
4032
-40
4725
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT - COUNT( * ) FROM tab1 WHERE NOT + - 13 >= + 71
----
-3

skipif mysql # not compatible
query I rowsort label-1397
SELECT - COUNT ( * ) FROM tab1 WHERE NOT + - 13 >= + 71
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT DISTINCT + ( - MIN( DISTINCT - col0 ) ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-1398
SELECT DISTINCT + ( - MIN ( DISTINCT - col0 ) ) AS col0 FROM tab1
----
91

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

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

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

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

query I rowsort
SELECT DISTINCT - - col2 + 63 AS col2 FROM tab1 AS cor0
----
122
131
159

query II rowsort
SELECT - + col1 + col2 AS col0, 41 * col1 AS col0 FROM tab1 AS cor0
----
21
1927
54
205
82
574

query I rowsort
SELECT - 53 * + + col2 + + + 69 AS col2 FROM tab0 AS cor0
----
-2422
-461
-5178

query I rowsort
SELECT DISTINCT + - ( + 67 ) AS col2 FROM tab2 AS cor0
----
-67

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1407
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 4 * - 63 * - - CAST( NULL AS DECIMAL ) - - CAST( + + col1 AS DECIMAL ) * + - col0 * - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1407
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 4 * - 63 * - - CAST ( NULL AS REAL ) - - CAST ( + + col1 AS REAL ) * + - col0 * - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1408
SELECT ALL 49 AS col1 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * - + 58 * - col2 * col2 > NULL
----

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL 49 AS col1 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - + 58 * - col2 * col2 > NULL
----

query I rowsort
SELECT ALL col1 + + ( - 75 ) AS col0 FROM tab0
----
-54
-74
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT - + COUNT( * ) FROM tab0 WHERE ( - 80 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1410
SELECT - + COUNT ( * ) FROM tab0 WHERE ( - 80 IS NULL )
----
0

query I rowsort
SELECT DISTINCT 36 + col1 AS col1 FROM tab2
----
103
113
87

query III rowsort
SELECT * FROM tab0 WHERE col2 * col0 + - col1 * + col1 = - 68
----

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

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

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

query II rowsort
SELECT col1 - + ( - col2 ) * + col2 * - col2 + + col1 + col0 * + col2 AS col0, 90 FROM tab0 AS cor0
----
-102956
90
-88
90
-960694
90

query I rowsort
SELECT + + 61 * - - col1 - - col2 FROM tab2 AS cor0
----
3134
4145
4737

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1418
SELECT + 13 DIV + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1418
SELECT + 13 / + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + 47 * + ( col2 * - 88 ) AS col0 FROM tab2
----
-165440
-239888
-95128

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 + col1 col0 FROM tab0 WHERE ( + 74 / - col0 ) NOT BETWEEN + col1 AND NULL
----
141
61
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT DISTINCT + MAX( DISTINCT - col2 ) + + COUNT( * ) AS col1 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-1422
SELECT DISTINCT + MAX ( DISTINCT - col2 ) + + COUNT ( * ) AS col1 FROM tab0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1423
SELECT DISTINCT - COUNT( DISTINCT CAST( CAST( - col0 AS DECIMAL ) AS SIGNED ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1423
SELECT DISTINCT - COUNT ( DISTINCT CAST ( CAST ( - col0 AS REAL ) AS INTEGER ) ) FROM tab0
----
-3

query I rowsort
SELECT col1 FROM tab2 WHERE NOT ( + 92 / ( 86 ) ) IS NULL
----
51
67
77

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1427
SELECT 74 + + COUNT( ALL + col2 ) DIV 30 AS col0 FROM tab0 WHERE - col1 = ( NULL )
----
74

skipif mysql # not compatible
query I rowsort label-1427
SELECT 74 + + COUNT ( ALL + col2 ) / 30 AS col0 FROM tab0 WHERE - col1 = ( NULL )
----
74

query I rowsort
SELECT 20 + - ( 6 ) FROM tab2
----
14
14
14

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1430
SELECT * FROM tab1 WHERE 17 * col0 BETWEEN col0 AND ( - CAST( col1 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-1430
SELECT * FROM tab1 WHERE 17 * col0 BETWEEN col0 AND ( - CAST ( col1 AS REAL ) )
----

query I rowsort
SELECT DISTINCT - 54 * 40 + - 19 AS col2 FROM tab1
----
-2179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab1 WHERE NULL > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 <> NULL
----

query I rowsort
SELECT ALL 3 AS col1 FROM tab0 WHERE NULL IS NULL
----
3
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1435
SELECT MAX( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

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

query III rowsort
SELECT * FROM tab0 WHERE ( - 87 * + col0 ) < + 20 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( col2 ) + - 2 FROM tab2
----
21
38
56

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

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

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

query I rowsort
SELECT ALL - col2 + - col0 AS col0 FROM tab1
----
-144
-147
-159

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

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

query I rowsort
SELECT + col1 * 1 + + col1 AS col2 FROM tab1
----
10
28
94

query I rowsort
SELECT ALL col1 * - col0 + col1 FROM tab2
----
-2295
-4851
-4958

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT DISTINCT COUNT( * ) * MAX( col2 ) AS col1 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-1444
SELECT DISTINCT COUNT ( * ) * MAX ( col2 ) AS col1 FROM tab2
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT DISTINCT 28 * + MIN( + col1 ) FROM tab1 AS cor0
----
140

skipif mysql # not compatible
query I rowsort label-1445
SELECT DISTINCT 28 * + MIN ( + col1 ) FROM tab1 AS cor0
----
140

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 64 NOT IN ( + col0 + 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT DISTINCT SUM( ALL + col2 ) * + MIN( DISTINCT - 74 ) + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col2 + + col2 IN ( 40 )
----
-16505

skipif mysql # not compatible
query I rowsort label-1447
SELECT DISTINCT SUM ( ALL + col2 ) * + MIN ( DISTINCT - 74 ) + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col2 + + col2 IN ( 40 )
----
-16505

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

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

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

query I rowsort
SELECT ALL 40 AS col2 FROM tab1 cor0
----
40
40
40

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 > col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1454
SELECT CAST( 88 AS SIGNED ) FROM tab2 AS cor0 WHERE col1 * + col1 IS NOT NULL
----
88
88
88

skipif mysql # not compatible
query I rowsort label-1454
SELECT CAST ( 88 AS INTEGER ) FROM tab2 AS cor0 WHERE col1 * + col1 IS NOT NULL
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT 97 - COUNT( + ( - col1 ) ) AS col1 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-1455
SELECT 97 - COUNT ( + ( - col1 ) ) AS col1 FROM tab2
----
94

query I rowsort
SELECT 5 - col2 AS col0 FROM tab0
----
-42
-5
-94

query I rowsort
SELECT 67 * - - col1 + - col2 AS col0 FROM tab0
----
-32
1397
5380

query I rowsort
SELECT ALL - 76 * - 94 AS col2 FROM tab2
----
7144
7144
7144

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

query I rowsort
SELECT 45 + - + col2 AS col2 FROM tab0
----
-2
-54
35

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

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

skipif mysql # not compatible
query III rowsort label-1462
SELECT ALL * FROM tab1 WHERE + 42 * + CAST ( CAST ( col2 AS INTEGER ) AS INTEGER ) IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT DISTINCT + MAX( + col0 ) * + 39 + + ( - 50 ) FROM tab0 AS cor0
----
3733

skipif mysql # not compatible
query I rowsort label-1466
SELECT DISTINCT + MAX ( + col0 ) * + 39 + + ( - 50 ) FROM tab0 AS cor0
----
3733

query I rowsort
SELECT + + ( - 20 ) * - col0 FROM tab0 AS cor0
----
1740
1940
300

query I rowsort
SELECT + 71 - 97 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

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

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

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

query II rowsort
SELECT - col1 AS col0, col0 AS col2 FROM tab0
----
-1
97
-21
87
-81
15

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

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT ( NOT ( NULL ) IN ( col2 - + col1 * 89 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1474
SELECT COUNT( * ) DIV 42 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1474
SELECT COUNT ( * ) / 42 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1475
SELECT + 16 DIV col2 FROM tab0 AS cor0 WHERE NOT ( col2 + - col2 DIV col1 ) IN ( 94 + col0 )
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1475
SELECT + 16 / col2 FROM tab0 AS cor0 WHERE NOT ( col2 + - col2 / col1 ) IN ( 94 + col0 )
----
0
0
1

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

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

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

query I rowsort
SELECT DISTINCT + + 48 * + - 39 + + 76 FROM tab0 AS cor0
----
-1796

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 23 - + col2 NOT IN ( - 76 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * + 88 AS col2 FROM tab0
----
1848
7128
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT DISTINCT + 57 - + COUNT( * ) AS col2 FROM tab0 WHERE ( NULL ) >= + 29
----
57

skipif mysql # not compatible
query I rowsort label-1483
SELECT DISTINCT + 57 - + COUNT ( * ) AS col2 FROM tab0 WHERE ( NULL ) >= + 29
----
57

query I rowsort
SELECT DISTINCT col0 * - col1 * 77 FROM tab0
----
-140679
-7469
-93555

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - 97
----

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

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

query I rowsort
SELECT DISTINCT - col2 * col2 + 83 * col1 FROM tab1 WHERE NOT + col2 < + col2
----
-3066
-723
-8054

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE - - 30 - - + 94 IN ( - 78 )
----
0

skipif mysql # not compatible
query I rowsort label-1489
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE - - 30 - - + 94 IN ( - 78 )
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1491
SELECT ALL col1 + col0 AS col1, CAST( NULL AS SIGNED ) FROM tab0
----
108
NULL
96
NULL
98
NULL

skipif mysql # not compatible
query II rowsort label-1491
SELECT ALL col1 + col0 AS col1, CAST ( NULL AS INTEGER ) FROM tab0
----
108
NULL
96
NULL
98
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1492
SELECT col1 DIV - - col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1492
SELECT col1 / - - col1 FROM tab2 cor0
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1493
SELECT ALL + MIN( + - 93 ) + + ( CAST( COUNT( * ) AS SIGNED ) ) AS col0 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL + MIN ( + - 93 ) + + ( CAST ( COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab1
----
-90

query I rowsort
SELECT col2 + + - 27 FROM tab1 AS cor0
----
32
41
69

onlyif mysql # DIV for integer division: 
query I rowsort label-1495
SELECT DISTINCT - col1 - 77 DIV - - 12 AS col1 FROM tab2 AS cor0
----
-57
-73
-83

skipif mysql # not compatible
query I rowsort label-1495
SELECT DISTINCT - col1 - 77 / - - 12 AS col1 FROM tab2 AS cor0
----
-57
-73
-83

query I rowsort
SELECT DISTINCT - 87 AS col1 FROM tab1 AS cor0 WHERE + 73 BETWEEN NULL AND + - col0 / + 4 + - col2
----

query I rowsort
SELECT - + col2 - - 86 AS col2 FROM tab1 cor0 WHERE ( col1 ) <= 3
----

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

query I rowsort
SELECT 12 FROM tab2 AS cor0 WHERE - col1 NOT IN ( col2 )
----
12
12
12

query I rowsort
SELECT DISTINCT + - 87 FROM tab2 cor0
----
-87

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1502
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * - + COUNT( * ) + + COUNT( * ), 85 col0 FROM tab0
----
-24
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1502
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * - + COUNT ( * ) + + COUNT ( * ), 85 col0 FROM tab0
----
-24
85

query I rowsort
SELECT DISTINCT + 85 * + 75 - ( col2 ) AS col2 FROM tab2 WHERE + col0 IS NULL
----

query II rowsort
SELECT ALL - col0, col2 AS col0 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query II rowsort
SELECT DISTINCT col1, 62 AS col0 FROM tab1 cor0
----
14
62
47
62
5
62

query IIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab0 AS cor1 ON - 83 = NULL, tab1 AS cor2
----

query II rowsort
SELECT ALL + ( + col2 ) AS col0, + col0 + - col0 * - 34 AS col2 FROM tab2 AS cor0
----
23
1610
40
2240
58
2625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1508
SELECT + MAX( - col0 ) DIV - - 46 AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1508
SELECT + MAX ( - col0 ) / - - 46 AS col0 FROM tab1 AS cor0
----
-1

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 * + - col0 ) NOT BETWEEN 12 AND - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + 47 col2 FROM tab1
----
132
138
98

query I rowsort
SELECT + 49 FROM tab2 WHERE NOT + 24 >= col0
----
49
49
49

query II rowsort
SELECT + col2 AS col2, col1 * col1 + - col0 AS col0 FROM tab1
----
59
-60
68
2118
96
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1515
SELECT DISTINCT COUNT( * ) + + MIN( DISTINCT - ( 74 ) ) DIV - + 28 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-1515
SELECT DISTINCT COUNT ( * ) + + MIN ( DISTINCT - ( 74 ) ) / - + 28 FROM tab0
----
5

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN 16 AND - col1 / col2 + + 13
----

query I rowsort
SELECT ALL - col1 + + 22 FROM tab2
----
-29
-45
-55

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

skipif mysql # not compatible
query I rowsort label-1518
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE ( + + CAST ( col2 AS INTEGER ) * + 65 ) IS NOT NULL
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 IN ( + 15 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1520
SELECT ( SUM( CAST( col2 AS SIGNED ) ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-1520
SELECT ( SUM ( CAST ( col2 AS INTEGER ) ) ) FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1521
SELECT ALL CAST( + col0 AS SIGNED ) AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL CAST ( + col0 AS INTEGER ) AS col0 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT - - ( + 25 ) * - ( 43 ) FROM tab2 AS cor0
----
-1075

query I rowsort
SELECT DISTINCT + - 20 AS col0 FROM tab1 cor0
----
-20

query I rowsort
SELECT + - col2 + - 12 FROM tab2 AS cor0
----
-35
-52
-70

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

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

query II rowsort
SELECT DISTINCT col0 + + col2, - 3 AS col0 FROM tab2
----
104
-3
133
-3
69
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1527
SELECT ALL - col2 DIV col2 + + 10 + + ( + ( + col1 ) ) AS col2 FROM tab1
----
14
23
56

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL - col2 / col2 + + 10 + + ( + ( + col1 ) ) AS col2 FROM tab1
----
14
23
56

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT DISTINCT + 86 - - + COUNT( * ) FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-1529
SELECT DISTINCT + 86 - - + COUNT ( * ) FROM tab1 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT ALL 93 - + MAX( - + 85 ) AS col1 FROM tab0 AS cor0
----
178

skipif mysql # not compatible
query I rowsort label-1530
SELECT ALL 93 - + MAX ( - + 85 ) AS col1 FROM tab0 AS cor0
----
178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1531
SELECT - col0 - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-1531
SELECT - col0 - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT ALL col1 - + - 46 FROM tab0 cor0
----
127
47
67

query I rowsort
SELECT DISTINCT + 8 - col2 FROM tab2 AS cor0
----
-15
-32
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1534
SELECT - CAST( - MAX( DISTINCT - col1 ) AS SIGNED ) - 99 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-1534
SELECT - CAST ( - MAX ( DISTINCT - col1 ) AS INTEGER ) - 99 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-101

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( 88 ) IS NULL
----

query I rowsort
SELECT 89 - - col2 FROM tab2
----
112
129
147

query I rowsort
SELECT + 72 + - 83 FROM tab0
----
-11
-11
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1538
SELECT 4 DIV col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1538
SELECT 4 / col0 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT col2, - 89 AS col2 FROM tab2
----
23
-89
40
-89
58
-89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT - - 32 * + - COUNT( DISTINCT - col1 ) AS col2 FROM tab2 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1541
SELECT - - 32 * + - COUNT ( DISTINCT - col1 ) AS col2 FROM tab2 cor0
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1542
SELECT ALL + - COUNT( + 2 ) DIV + - 5 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL + - COUNT ( + 2 ) / + - 5 FROM tab0 cor0
----
0

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

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

query I rowsort
SELECT DISTINCT - + 52 AS col0 FROM tab0 cor0
----
-52

onlyif mysql # DIV for integer division: 
query II rowsort label-1546
SELECT col1, + col0 + + 41 DIV + col1 col0 FROM tab1 AS cor0 WHERE NOT + 48 BETWEEN col2 AND NULL
----
14
53
47
91
5
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1546
SELECT col1, + col0 + + 41 / + col1 col0 FROM tab1 AS cor0 WHERE NOT + 48 BETWEEN col2 AND NULL
----
14
53
47
91
5
93

query II rowsort
SELECT DISTINCT - col0 AS col0, 1 FROM tab0 AS cor0
----
-15
1
-87
1
-97
1

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

query II rowsort
SELECT col1 AS col0, - col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT DISTINCT + col1 * - 41 FROM tab1 AS cor0
----
-1927
-205
-574

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

query I rowsort
SELECT - col2 * + + 92 FROM tab1 cor0
----
-5428
-6256
-8832

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * - - col1 / - col1 + col1 <> + col0
----

query II rowsort
SELECT DISTINCT - - 50 AS col0, + col2 + - - 51 FROM tab1 AS cor0
----
50
110
50
119
50
147

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT 96 + + COUNT( * ) AS col2 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-1555
SELECT 96 + + COUNT ( * ) AS col2 FROM tab2
----
99

query I rowsort
SELECT + col0 + + 16 FROM tab0
----
103
113
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT 77 * - 19 + - - ( - COUNT( * ) ) FROM tab2
----
-1466

skipif mysql # not compatible
query I rowsort label-1557
SELECT 77 * - 19 + - - ( - COUNT ( * ) ) FROM tab2
----
-1466

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

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

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

query I rowsort
SELECT - ( - + col1 ) * + 73 + + 58 FROM tab2
----
3781
4949
5679

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + col2 ) AS col2, + col0 col2 FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT ( 0 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1564
SELECT - col1 DIV 54 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1564
SELECT - col1 / 54 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT MAX( DISTINCT + col2 ) - - 19 FROM tab0
----
118

skipif mysql # not compatible
query I rowsort label-1565
SELECT MAX ( DISTINCT + col2 ) - - 19 FROM tab0
----
118

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT COUNT( * ) + + 7 * + 74 AS col0 FROM tab1
----
521

skipif mysql # not compatible
query I rowsort label-1567
SELECT COUNT ( * ) + + 7 * + 74 AS col0 FROM tab1
----
521

query I rowsort
SELECT col0 + + + 23 AS col2 FROM tab1
----
108
114
74

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

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

query I rowsort
SELECT DISTINCT - + col1 - - 89 FROM tab1 AS cor0
----
42
75
84

query I rowsort
SELECT ALL - - col1 FROM tab1 AS cor0 WHERE NOT ( NOT - 21 + - 32 >= col2 )
----

query I rowsort
SELECT - - 80 + + 74 AS col1 FROM tab2 AS cor0
----
154
154
154

query I rowsort
SELECT ( - - col1 ) + - - 35 FROM tab0 cor0
----
116
36
56

query I rowsort
SELECT col0 + - 7 FROM tab1 AS cor0
----
44
78
84

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1578
SELECT - + ( + col1 ) + 56 + - CAST( 2 AS SIGNED ) - + - col2 * + col0 AS col2, + col1 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-1578
SELECT - + ( + col1 ) + 56 + - CAST ( 2 AS INTEGER ) - + - col2 * + col0 AS col2, + col1 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + ( + col0 ) * col0 + - + 31 AS col2 FROM tab2
----
2085
4065
5594

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT + 88 * - + MIN( DISTINCT - col1 ) AS col0 FROM tab1
----
4136

skipif mysql # not compatible
query I rowsort label-1580
SELECT + 88 * - + MIN ( DISTINCT - col1 ) AS col0 FROM tab1
----
4136

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT + 54 * + COUNT( DISTINCT - col0 ) AS col1 FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-1581
SELECT + 54 * + COUNT ( DISTINCT - col0 ) AS col1 FROM tab2
----
162

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1583
SELECT COUNT( * ) + + ( - 57 ), + MAX( DISTINCT - 61 ) AS col2 FROM tab0
----
-54
-61

skipif mysql # not compatible
query II rowsort label-1583
SELECT COUNT ( * ) + + ( - 57 ), + MAX ( DISTINCT - 61 ) AS col2 FROM tab0
----
-54
-61

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 IN ( - + 33, col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT + MIN( ALL - 92 ) col2 FROM tab0
----
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1586
SELECT + MIN ( ALL - 92 ) col2 FROM tab0
----
-92

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

query I rowsort
SELECT ALL - 28 + + AVG ( ALL col2 ) AS col2 FROM tab2 WHERE 0 * col0 IS NULL
----
NULL

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

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

query II rowsort
SELECT 82, col1 FROM tab1
----
82
14
82
47
82
5

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

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

query I rowsort
SELECT DISTINCT + 57 + 14 + - - 29 FROM tab0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NULL <= - - col1 / - - 47 * + - 20
----
0

skipif mysql # not compatible
query I rowsort label-1594
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NULL <= - - col1 / - - 47 * + - 20
----
0

query I rowsort
SELECT 98 + + - col1 FROM tab0
----
17
77
97

query I rowsort
SELECT ALL col0 + - + 50 + + 1 FROM tab1
----
2
36
42

onlyif mysql # DIV for integer division: 
query I rowsort label-1597
SELECT DISTINCT col1 DIV + + col1 + col0 AS col1 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-1597
SELECT DISTINCT col1 / + + col1 + col0 AS col1 FROM tab0 AS cor0
----
16
88
98

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 ) = 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT DISTINCT SUM( 38 ) FROM tab0 cor0
----
114

skipif mysql # not compatible
query I rowsort label-1599
SELECT DISTINCT SUM ( 38 ) FROM tab0 cor0
----
114

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

query I rowsort
SELECT - 3 AS col0 FROM tab2 AS cor0 WHERE 29 IS NULL
----

query I rowsort
SELECT 20 FROM tab2 WHERE + col0 <= NULL
----

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

query I rowsort
SELECT DISTINCT + - 30 AS col1 FROM tab2 AS cor0
----
-30

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1606
SELECT ALL ( - - CAST( - col2 AS SIGNED ) ) AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1606
SELECT ALL ( - - CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT - MAX( DISTINCT - col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-1607
SELECT - MAX ( DISTINCT - col2 ) AS col1 FROM tab0
----
10

query I rowsort
SELECT ALL col0 * - + 34 FROM tab1
----
-1734
-2890
-3094

query I rowsort
SELECT DISTINCT + 62 * - + 36 FROM tab1
----
-2232

query II rowsort
SELECT ALL + col0 AS col1, + ( + + col0 ) FROM tab1 AS cor0 WHERE NOT NULL < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT + COUNT( * ) * - + COUNT( * ) * + SUM( ALL 90 ) FROM tab2 AS cor0
----
-2430

skipif mysql # not compatible
query I rowsort label-1611
SELECT + COUNT ( * ) * - + COUNT ( * ) * + SUM ( ALL 90 ) FROM tab2 AS cor0
----
-2430

query II rowsort
SELECT - + 67 AS col1, - col2 * col1 + - + col0 - ( - col0 ) - + - 3 * + - 87 * + col1 AS col1 FROM tab2 AS cor0
----
-67
-14484
-67
-21373
-67
-23177

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1613
SELECT - + ( + MIN( DISTINCT + 56 ) ) DIV + 98 AS col1, - 12 FROM tab0 cor0
----
0
-12

skipif mysql # not compatible
query II rowsort label-1613
SELECT - + ( + MIN ( DISTINCT + 56 ) ) / + 98 AS col1, - 12 FROM tab0 cor0
----
0
-12

query II rowsort
SELECT ALL - + 40 * 74 * - - col1 AS col0, col2 FROM tab1 AS cor0
----
-139120
68
-14800
59
-41440
96

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

skipif mysql # not compatible
query III rowsort label-1615
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN 62 * - + col2 * col0 / CAST ( 89 AS INTEGER ) AND + + col0
----

query I rowsort
SELECT ALL col2 * col0 + + + col1 * - + 20 FROM tab1
----
4616
4915
5248

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT DISTINCT COUNT( 37 ) + - + 22 AS col1 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-1617
SELECT DISTINCT COUNT ( 37 ) + - + 22 AS col1 FROM tab0 AS cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT - 21 * ( COUNT( * ) ) + - SUM( + + ( - - col0 ) ) FROM tab0 AS cor0
----
-262

skipif mysql # not compatible
query I rowsort label-1618
SELECT - 21 * ( COUNT ( * ) ) + - SUM ( + + ( - - col0 ) ) FROM tab0 AS cor0
----
-262

query I rowsort
SELECT ALL col2 * + + ( col1 ) FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT + - 14 * - COUNT( * ) - COUNT( * ) col0 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1620
SELECT + - 14 * - COUNT ( * ) - COUNT ( * ) col0 FROM tab2 AS cor0
----
39

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 BETWEEN - ( + + col1 ) AND - + 71 + + - col0 / + - col1 - - - col2 + + - col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1622
SELECT + CAST( NULL AS DECIMAL ) + - 59 - - col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1622
SELECT + CAST ( NULL AS REAL ) + - 59 - - col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT - - 45 + MIN( + col0 ) AS col0 FROM tab0 cor0
----
60

skipif mysql # not compatible
query I rowsort label-1623
SELECT - - 45 + MIN ( + col0 ) AS col0 FROM tab0 cor0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-1624
SELECT DISTINCT - col2 DIV + - col1 AS col2 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT - col2 / + - col1 AS col2 FROM tab1 AS cor0
----
1
11
6

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - ( - - col2 ) - - col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1626
SELECT - 16 + col0 * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1626
SELECT - 16 + col0 * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 AS col2 FROM tab0 AS cor0 WHERE ( ( col1 ) ) <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 ) + col0 / + col1 * + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + - 47 AS col2 FROM tab2
----
-1
17
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT DISTINCT + ( + + COUNT( * ) ) + + 83 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-1630
SELECT DISTINCT + ( + + COUNT ( * ) ) + + 83 FROM tab1
----
86

query II rowsort
SELECT DISTINCT col1 AS col2, 72 * + 83 AS col0 FROM tab0 AS cor0
----
1
5976
21
5976
81
5976

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE 81 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT ALL - - COUNT( + 76 ) + - 49 AS col0 FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL - - COUNT ( + 76 ) + - 49 AS col0 FROM tab1 AS cor0
----
-46

query I rowsort
SELECT DISTINCT 72 - + + 12 FROM tab0 AS cor0
----
60

query I rowsort
SELECT col1 - - 20 * - - 75 AS col1 FROM tab2 cor0
----
1551
1567
1577

onlyif mysql # aggregate syntax: 
query II rowsort label-1636
SELECT ALL ( - + COUNT( * ) ) AS col1, - 8 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9
-8

skipif mysql # not compatible
query II rowsort label-1636
SELECT ALL ( - + COUNT ( * ) ) AS col1, - 8 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1637
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( - 45 AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1637
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( - 45 AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-1638
SELECT - - col2 AS col2, + col0 DIV col1 FROM tab1 AS cor0
----
59
17
68
1
96
3

skipif mysql # not compatible
query II rowsort label-1638
SELECT - - col2 AS col2, + col0 / col1 FROM tab1 AS cor0
----
59
17
68
1
96
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 = - + 49 - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1640
SELECT * FROM tab2 AS cor0 WHERE NOT 6 = col0 * + 87 + + CAST( + - CAST( NULL AS SIGNED ) AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1640
SELECT * FROM tab2 AS cor0 WHERE NOT 6 = col0 * + 87 + + CAST ( + - CAST ( NULL AS INTEGER ) AS REAL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 92 < NULL
----

query I rowsort
SELECT DISTINCT + 38 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 * + col2 col2 FROM tab1
----
-205379
-314432
-884736

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT MIN( DISTINCT 43 ) AS col2 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-1644
SELECT MIN ( DISTINCT 43 ) AS col2 FROM tab1
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-1645
SELECT COUNT( - 68 ), + 21 * + COUNT( * ) + - - ( + MAX( DISTINCT + col2 ) ) AS col0 FROM tab2
----
3
121

skipif mysql # not compatible
query II rowsort label-1645
SELECT COUNT ( - 68 ), + 21 * + COUNT ( * ) + - - ( + MAX ( DISTINCT + col2 ) ) AS col0 FROM tab2
----
3
121

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT ALL COUNT( * ) * - COUNT( * ) col2 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1646
SELECT ALL COUNT ( * ) * - COUNT ( * ) col2 FROM tab1
----
-9

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT ALL COUNT( * ) + - 82 AS col0 FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL COUNT ( * ) + - 82 AS col0 FROM tab1 AS cor0
----
-79

query I rowsort
SELECT - 15 + 80 AS col2 FROM tab1
----
65
65
65

query I rowsort
SELECT DISTINCT 32 * 44 + 66 + - col0 FROM tab0
----
1377
1387
1459

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1651
SELECT ALL - col2 AS col1, CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-1651
SELECT ALL - col2 AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT + MIN( DISTINCT + + ( - col2 ) ) * - 19 AS col2 FROM tab2 cor0 WHERE col0 / + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1652
SELECT + MIN ( DISTINCT + + ( - col2 ) ) * - 19 AS col2 FROM tab2 cor0 WHERE col0 / + col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT - COUNT( * ) * - + 42 FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-1653
SELECT - COUNT ( * ) * - + 42 FROM tab0 AS cor0
----
126

query I rowsort
SELECT 49 FROM tab1 cor0 WHERE NULL >= col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1655
SELECT ALL + - 19 DIV 5 FROM tab0 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL + - 19 / 5 FROM tab0 AS cor0
----
-3
-3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1656
SELECT DISTINCT + 87 DIV - 16 + + - col2 + col0 FROM tab0 AS cor0
----
-37
-7
72

skipif mysql # not compatible
query I rowsort label-1656
SELECT DISTINCT + 87 / - 16 + + - col2 + col0 FROM tab0 AS cor0
----
-37
-7
72

query II rowsort
SELECT ( + col1 ) AS col2, - col0 * + col0 FROM tab1
----
14
-2601
47
-8281
5
-7225

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT ALL ( + 2 ) * + + MAX( + + 30 ) AS col1 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-1658
SELECT ALL ( + 2 ) * + + MAX ( + + 30 ) AS col1 FROM tab2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT - ( + + COUNT( * ) ) FROM tab0 WHERE ( NOT ( NULL = col1 - col1 * - + col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1659
SELECT - ( + + COUNT ( * ) ) FROM tab0 WHERE ( NOT ( NULL = col1 - col1 * - + col1 ) )
----
0

query II rowsort
SELECT DISTINCT 34 + - + col0 AS col0, col2 FROM tab2
----
-12
23
-30
40
-41
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1661
SELECT DISTINCT * FROM tab1 WHERE ( + CAST( NULL AS SIGNED ) NOT IN ( + 12 ) )
----

skipif mysql # not compatible
query III rowsort label-1661
SELECT DISTINCT * FROM tab1 WHERE ( + CAST ( NULL AS INTEGER ) NOT IN ( + 12 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1662
SELECT ALL + ( + - CAST( NULL AS SIGNED ) ) * + 46 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL + ( + - CAST ( NULL AS INTEGER ) ) * + 46 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + - col2 - - col0 AS col0 FROM tab1
----
-141
-33
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1664
SELECT DISTINCT 1 * + MIN( col0 ) * 73 DIV - COUNT( * ) FROM tab2
----
-1119

skipif mysql # not compatible
query I rowsort label-1664
SELECT DISTINCT 1 * + MIN ( col0 ) * 73 / - COUNT ( * ) FROM tab2
----
-1119

query I rowsort
SELECT col2 * + 19 + + ( - ( + - col0 ) ) FROM tab2
----
1177
483
824

query I rowsort
SELECT DISTINCT col0 + 22 FROM tab0
----
109
119
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1667
SELECT DISTINCT + CAST( + col2 AS SIGNED ) - 54 - - ( + + col0 ) FROM tab0 AS cor0
----
142
43
8

skipif mysql # not compatible
query I rowsort label-1667
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) - 54 - - ( + + col0 ) FROM tab0 AS cor0
----
142
43
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1668
SELECT CAST( + COUNT( * ) AS SIGNED ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1668
SELECT CAST ( + COUNT ( * ) AS INTEGER ) col1 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 4 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT ALL + 76 FROM tab1 WHERE NOT col1 NOT IN ( + col0, + 56, - - col0 + + col1 * + col2 * + - col0 * + col1 * - col1, - col1 + + 88 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT ALL + COUNT( * ) FROM tab1 cor0 WHERE 91 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL + COUNT ( * ) FROM tab1 cor0 WHERE 91 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1673
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + col1 >= col1 + CAST( 23 AS SIGNED ) - + + col2
----

skipif mysql # not compatible
query III rowsort label-1673
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + col1 >= col1 + CAST ( 23 AS INTEGER ) - + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT DISTINCT + ( + - COUNT( * ) ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1674
SELECT DISTINCT + ( + - COUNT ( * ) ) col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT col0 + + 50 + - - col1 AS col0 FROM tab0 AS cor0 WHERE NOT - ( 17 ) IS NULL
----
146
148
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 66 ) col0 FROM tab1
----
-66
-66
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1677
SELECT ALL - CAST( NULL AS SIGNED ) * + 63 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL - CAST ( NULL AS INTEGER ) * + 63 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, 44 - + + 7 col1 FROM tab1
----
-51
37
-85
37
-91
37

query II rowsort
SELECT DISTINCT 39, 12 AS col2 FROM tab0 AS cor0
----
39
12

query III rowsort
SELECT * FROM tab0 WHERE - col1 NOT IN ( + + col1, + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 80 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT COUNT( * ) AS col2 FROM tab0 WHERE ( NOT NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1682
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE ( NOT NULL IS NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT + COUNT( DISTINCT - - 22 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1683
SELECT + COUNT ( DISTINCT - - 22 ) AS col1 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1685
SELECT ALL ( col0 ) * col1 + - + col0 + CAST( + - col0 AS SIGNED ) FROM tab1
----
255
4095
612

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL ( col0 ) * col1 + - + col0 + CAST ( + - col0 AS INTEGER ) FROM tab1
----
255
4095
612

query I rowsort
SELECT + 32 + + col0 AS col1 FROM tab0
----
119
129
47

query I rowsort
SELECT ALL 25 * + col1 + 38 FROM tab2 cor0
----
1313
1713
1963

query I rowsort
SELECT - col1 + - 0 - - + col2 AS col0 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT ALL + + 29 + - + col0 FROM tab2 AS cor0
----
-17
-35
-46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 14 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( - - col1 ) * - col1 FROM tab0 AS cor0
----
-1
-441
-6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 36 * - - col0 col0 FROM tab0 AS cor0
----
272484
338724
8100

query I rowsort
SELECT col2 + col2 * + col2 * 80 FROM tab2 AS cor0
----
128040
269178
42343

query I rowsort
SELECT DISTINCT + + col1 * - col2 * + col1 * - + col2 + - - col1 - 99 FROM tab0 AS cor0
----
14493231
44022
9703

query I rowsort
SELECT - col2 + + col0 * - col1 * - - col1 FROM tab1 AS cor0
----
-10092
-201087
-2184

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT - COUNT( * ) + - 91 AS col0 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-1697
SELECT - COUNT ( * ) + - 91 AS col0 FROM tab0 AS cor0
----
-94

query I rowsort
SELECT ALL - 61 * + 7 AS col1 FROM tab1
----
-427
-427
-427

onlyif mysql # DIV for integer division: 
query I rowsort label-1699
SELECT ALL + 34 DIV + 67 * + + col2 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL + 34 / + 67 * + + col2 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + - 9 FROM tab2
----
-55
-73
-84

query I rowsort
SELECT DISTINCT - col1 + + - 84 FROM tab1
----
-131
-89
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-1702
SELECT + 64 DIV - 89 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1702
SELECT + 64 / - 89 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1703
SELECT 94 AS col1, COUNT( * ) FROM tab1
----
94
3

skipif mysql # not compatible
query II rowsort label-1703
SELECT 94 AS col1, COUNT ( * ) FROM tab1
----
94
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= col1 * + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * + 80 * - 8 * + 36 + + - 93 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT ALL - + COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1706
SELECT ALL - + COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT - col2 * + - 4 FROM tab0
----
188
396
40

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND + ( col1 ) - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 AS cor0 WHERE + col1 * - + 29 / - col2 BETWEEN + 70 * + col1 * 81 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT ALL SUM( + col1 ) + + 12 AS col1 FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL SUM ( + col1 ) + + 12 AS col1 FROM tab2
----
207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 26 col2, + col2 * + - 9 FROM tab1
----
26
-531
26
-612
26
-864

query I rowsort
SELECT DISTINCT col2 * col2 * - 74 + - 32 FROM tab1
----
-257626
-342208
-682016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + + 1 col0 FROM tab0
----
100
11
48

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + 7 * + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - - col0 = + - col2
----

query I rowsort
SELECT ALL + + 54 * - col2 * + col0 FROM tab2 AS cor0
----
-138240
-234900
-57132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + ( - col0 ) col2, - 72 AS col2 FROM tab0 AS cor0
----
15
-72
87
-72
97
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + + col0 - + col2 col0 FROM tab0 cor0
----
178
7559
9310

query I rowsort
SELECT col1 * 56 - + col2 - col1 AS col0 FROM tab2
----
2782
3627
4195

query I rowsort
SELECT + col2 + col1 + + col2 * + + ( - col0 ) + - - col0 * + col1 * - col0 AS col1 FROM tab0
----
-159788
-18802
-18912

query I rowsort
SELECT ALL + col2 * + - col1 + 27 FROM tab0
----
-183
-3780
-72

query II rowsort
SELECT ALL - 99 + - - col2 - - col2 AS col0, + col1 FROM tab2
----
-19
77
-53
51
17
67

query I rowsort
SELECT ALL - 28 * - 19 * + - col1 FROM tab0 AS cor0
----
-11172
-43092
-532

onlyif mysql # DIV for integer division: 
query I rowsort label-1724
SELECT ALL - + 26 DIV - - col2 * 82 + col2 AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL - + 26 / - - col2 * 82 + col2 AS col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL - 89 * - col0 AS col1 FROM tab1
----
4539
7565
8099

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 1 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1727
SELECT ALL 14 * - col2 / - - col0 * - - col1 * + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL 14 * - col2 / - - col0 * - - col1 * + + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + + 10 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT ALL + COUNT( * ) + - ( AVG ( + col0 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL + COUNT ( * ) + - ( AVG ( + col0 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1730
SELECT DISTINCT - - CAST( + + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1730
SELECT DISTINCT - - CAST ( + + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT col1 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col0 * + - 74 AS col1 FROM tab1 AS cor0
----
3774
6290
6734

query II rowsort
SELECT DISTINCT - col1 AS col1, - col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT ALL + + COUNT( ALL col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1734
SELECT ALL + + COUNT ( ALL col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT DISTINCT + - SUM( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT + - SUM ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-1736
SELECT ALL col2 DIV + - ( + 9 ) AS col1 FROM tab0 WHERE 98 IS NOT NULL
----
-1
-11
-5

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL col2 / + - ( + 9 ) AS col1 FROM tab0 WHERE 98 IS NOT NULL
----
-1
-11
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1737
SELECT - ( + 10 ) DIV + 84 - - 94 + - 91 + + - col1 FROM tab0
----
-18
-78
2

skipif mysql # not compatible
query I rowsort label-1737
SELECT - ( + 10 ) / + 84 - - 94 + - 91 + + - col1 FROM tab0
----
-18
-78
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 39 AS col2, col0 col0 FROM tab1 WHERE - + col0 IS NOT NULL
----
39
51
39
85
39
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1739
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + col0 + - - 56 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1739
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + col0 + - - 56 AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1740
SELECT DISTINCT + 84 DIV + COUNT( * ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-1740
SELECT DISTINCT + 84 / + COUNT ( * ) FROM tab0
----
28

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 <= NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT - + 5 * col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 * + 72 + + + col1 FROM tab1
----
3686
6125
6599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1744
SELECT ALL + 35 + - SUM( + + col1 ) + - COUNT( * ) + COUNT( col1 ) / + CAST( NULL AS SIGNED ) * + + MAX( DISTINCT col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1744
SELECT ALL + 35 + - SUM ( + + col1 ) + - COUNT ( * ) + COUNT ( col1 ) / + CAST ( NULL AS INTEGER ) * + + MAX ( DISTINCT col0 ) FROM tab0
----
NULL

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
1
21
81

query I rowsort
SELECT - 98 + col2 FROM tab2 AS cor0
----
-40
-58
-75

query I rowsort
SELECT + 3 + - + col1 AS col0 FROM tab1 AS cor0
----
-11
-2
-44

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 94 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - - ( - + col2 ) col0 FROM tab2
----
1600
3364
529

onlyif mysql # DIV for integer division: 
query II rowsort label-1750
SELECT ( col2 ), - col2 DIV - col2 AS col1 FROM tab0
----
10
1
47
1
99
1

skipif mysql # not compatible
query II rowsort label-1750
SELECT ( col2 ), - col2 / - col2 AS col1 FROM tab0
----
10
1
47
1
99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab1 WHERE NOT + 62 <> NULL
----

query II rowsort
SELECT 42, 60 AS col2 FROM tab1
----
42
60
42
60
42
60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 46 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT ALL - MIN( ALL + col2 ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL - MIN ( ALL + col2 ) AS col1 FROM tab1
----
-59

query II rowsort
SELECT ALL - - col2 * + col0 AS col1, 69 AS col2 FROM tab1 cor0
----
4896
69
5015
69
6188
69

query I rowsort
SELECT DISTINCT 55 * + 22 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----

query II rowsort
SELECT DISTINCT - col0 * - 82, + col1 FROM tab0 AS cor0
----
1230
81
7134
21
7954
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= - col2
----

query I rowsort
SELECT ( - 48 ) AS col0 FROM tab1
----
-48
-48
-48

query I rowsort
SELECT ALL + col1 + + 20 * + col0 + 5 FROM tab1
----
1039
1710
1872

onlyif mysql # DIV for integer division: 
query II rowsort label-1761
SELECT ALL col0 AS col2, 12 DIV - col1 * col2 + - col2 * - ( col0 ) FROM tab2
----
46
1058
64
2560
75
4350

skipif mysql # not compatible
query II rowsort label-1761
SELECT ALL col0 AS col2, 12 / - col1 * col2 + - col2 * - ( col0 ) FROM tab2
----
46
1058
64
2560
75
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1762
SELECT ALL 42 + MAX( col1 ) / CAST( NULL AS SIGNED ) * + + ( 89 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL 42 + MAX ( col1 ) / CAST ( NULL AS INTEGER ) * + + ( 89 ) AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1763
SELECT col1, col0 DIV col1 AS col1 FROM tab0
----
1
97
21
4
81
0

skipif mysql # not compatible
query II rowsort label-1763
SELECT col1, col0 / col1 AS col1 FROM tab0
----
1
97
21
4
81
0

query II rowsort
SELECT DISTINCT - col1 AS col2, col2 * - - col0 FROM tab0 WHERE + 0 IS NOT NULL
----
-1
9603
-21
870
-81
705

query I rowsort
SELECT col0 + + 50 FROM tab0
----
137
147
65

query I rowsort
SELECT col0 / - + col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1767
SELECT ALL - + 62 + + ( + col1 ) * - col0 AS col1, CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
-4339
NULL
-487
NULL
-776
NULL

skipif mysql # not compatible
query II rowsort label-1767
SELECT ALL - + 62 + + ( + col1 ) * - col0 AS col1, CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0
----
-4339
NULL
-487
NULL
-776
NULL

query I rowsort
SELECT 44 + 73 AS col2 FROM tab1 cor0
----
117
117
117

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT COUNT( * ) + 8 + 64 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-1769
SELECT COUNT ( * ) + 8 + 64 FROM tab0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1770
SELECT + + CAST( - + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1770
SELECT + + CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

query III rowsort
SELECT * FROM tab0 WHERE 54 * 65 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 23 - + 1 AS col2 FROM tab2 AS cor0
----
22
22
22

query I rowsort
SELECT + col0 - + col0 * - + col1 AS col0 FROM tab2 AS cor0
----
2392
4992
5100

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 50 + 49 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1775
SELECT DISTINCT - + 61 - - - 6 - - col2 + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-13
-46
15

skipif mysql # not compatible
query I rowsort label-1775
SELECT DISTINCT - + 61 - - - 6 - - col2 + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-13
-46
15

query I rowsort
SELECT DISTINCT + - 4 AS col2 FROM tab0 cor0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1777
SELECT ALL - CAST( + COUNT( ALL - + 96 ) AS SIGNED ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1777
SELECT ALL - CAST ( + COUNT ( ALL - + 96 ) AS INTEGER ) col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1778
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( - ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-1778
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( - ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) >= NULL
----

query I rowsort
SELECT - 90 FROM tab2 WHERE NOT NULL < + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 col2 FROM tab2
----
2346
4928
5025

query II rowsort
SELECT col1 * - - col0 * - + col2, 89 AS col0 FROM tab0
----
-18270
89
-57105
89
-9603
89

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col0 - + ( + col1 ) IS NULL
----

query I rowsort
SELECT 30 + + - 0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
30
30
30

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 37 * ( + - 72 ) * ( + col2 ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
106560
154512
61272

query I rowsort
SELECT - col2 * - 91 FROM tab2 AS cor0
----
2093
3640
5278

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1788
SELECT DISTINCT COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1788
SELECT DISTINCT COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + ( 96 ) * + 14 FROM tab2 AS cor0
----
1344
1344
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT ALL MAX( ALL + col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-1790
SELECT ALL MAX ( ALL + col1 ) FROM tab1 cor0
----
47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND 1 * 35
----

query I rowsort
SELECT + - col2 + + 90 AS col1 FROM tab0 AS cor0
----
-9
43
80

query I rowsort
SELECT - col1 + ( - - col1 ) AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1794
SELECT 25 + + ( + 11 ), CAST( - 42 AS SIGNED ) + col1 col2 FROM tab1 AS cor0 WHERE NOT + 45 IS NOT NULL AND col0 * - col0 * + 64 <> NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1794
SELECT 25 + + ( + 11 ), CAST ( - 42 AS INTEGER ) + col1 col2 FROM tab1 AS cor0 WHERE NOT + 45 IS NOT NULL AND col0 * - col0 * + 64 <> NULL
----

query II rowsort
SELECT - + 51 + + col2, - 17 AS col0 FROM tab2 AS cor0
----
-11
-17
-28
-17
7
-17

query I rowsort
SELECT DISTINCT - 57 + + col1 AS col2 FROM tab0
----
-36
-56
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) + col1 col1 FROM tab1
----
10
28
94

query I rowsort
SELECT - 27 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT ALL + ( 48 ) + + ( - COUNT( * ) ) - + COUNT( * ) - - - 57 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL + ( 48 ) + + ( - COUNT ( * ) ) - + COUNT ( * ) - - - 57 FROM tab2 AS cor0
----
-15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IS NULL OR NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1801
SELECT - 12 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1801
SELECT - 12 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 col1, + col2 * + + 29 AS col2 FROM tab2 AS cor0
----
51
667
67
1682
77
1160

onlyif mysql # aggregate syntax: 
query II rowsort label-1803
SELECT ALL - 77, COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
-77
0

skipif mysql # not compatible
query II rowsort label-1803
SELECT ALL - 77, COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
-77
0

query II rowsort
SELECT 67 AS col2, col2 * col1 FROM tab2 AS cor0
----
67
1173
67
3080
67
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-1805
SELECT DISTINCT + col1 DIV - col1 AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1805
SELECT DISTINCT + col1 / - col1 AS col1 FROM tab2
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = col0 * col1 / - + 48
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1807
SELECT ALL CAST( - CAST( + CAST( + col1 AS SIGNED ) AS DECIMAL ) AS SIGNED ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL CAST ( - CAST ( + CAST ( + col1 AS INTEGER ) AS REAL ) AS INTEGER ) FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab0 WHERE NOT NULL IS NULL OR NOT 27 * 35 IS NOT NULL
----

query I rowsort
SELECT + - col1 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * 44 IS NOT NULL
----

query II rowsort
SELECT - 17 * + 31 AS col1, col2 AS col1 FROM tab2
----
-527
23
-527
40
-527
58

query I rowsort
SELECT DISTINCT - + col0 * - - col1 FROM tab1 cor0
----
-425
-4277
-714

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( 31 )
----

query I rowsort
SELECT ALL + 33 * - col1 + 81 + col1 * - - ( + col0 ) AS col2 FROM tab1 AS cor0
----
2807
333
341

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= 80 + col2 / + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT ALL - COUNT( * ) * - 8 AS col2 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL - COUNT ( * ) * - 8 AS col2 FROM tab0 AS cor0
----
24

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 34 * 40 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1818
SELECT + 54 DIV 10 + + - 11 * SUM( col2 ) DIV 92 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-1818
SELECT + 54 / 10 + + - 11 * SUM ( col2 ) / 92 FROM tab0 AS cor0
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-1819
SELECT 14 DIV - col0 * - 7 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1819
SELECT 14 / - col0 * - 7 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - col2 FROM tab1 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * 1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-1822
SELECT 40 - + + 56 AS col2, + SUM( ALL + col1 ) AS col2 FROM tab2
----
-16
195

skipif mysql # not compatible
query II rowsort label-1822
SELECT 40 - + + 56 AS col2, + SUM ( ALL + col1 ) AS col2 FROM tab2
----
-16
195

query I rowsort
SELECT 49 * - + col2 - + - col1 AS col1 FROM tab0
----
-2222
-469
-4850

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT 29 + - COUNT( * ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-1824
SELECT 29 + - COUNT ( * ) FROM tab2
----
26

query I rowsort
SELECT - 95 * + col1 + col0 FROM tab0
----
-1908
-7680
2

query I rowsort
SELECT 63 + + col2 AS col0 FROM tab1
----
122
131
159

query I rowsort
SELECT ALL - col1 + - ( - 33 ) AS col1 FROM tab0
----
-48
12
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1828
SELECT 70 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1828
SELECT 70 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1829
SELECT DISTINCT ( MIN( - 0 ) ) + - 48 DIV + 16 AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1829
SELECT DISTINCT ( MIN ( - 0 ) ) + - 48 / + 16 AS col2 FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT - 20 * - col1 AS col1 FROM tab1 AS cor0
----
100
280
940

query I rowsort
SELECT - - col1 + - - 68 + - col0 FROM tab1 AS cor0
----
-12
24
31

query I rowsort
SELECT + 20 * col2 + + col1 + + col0 - - col1 * + - col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT DISTINCT - MAX( + 28 ) FROM tab2 AS cor0 WHERE - 5 * + - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1833
SELECT DISTINCT - MAX ( + 28 ) FROM tab2 AS cor0 WHERE - 5 * + - col0 IS NULL
----
NULL

query I rowsort
SELECT - col2 * + 31 * 60 AS col1 FROM tab1 AS cor0
----
-109740
-126480
-178560

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT ALL 41 * + - COUNT( * ) FROM tab2 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL 41 * + - COUNT ( * ) FROM tab2 AS cor0
----
-123

query I rowsort
SELECT + ( + + col2 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT DISTINCT + + SUM( 77 ) * + ( + - 10 ) col2 FROM tab2 AS cor0
----
-2310

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1837
SELECT DISTINCT + + SUM ( 77 ) * + ( + - 10 ) col2 FROM tab2 AS cor0
----
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT - 21 * + + 99 * + COUNT( + + 97 ) FROM tab1 cor0
----
-6237

skipif mysql # not compatible
query I rowsort label-1838
SELECT - 21 * + + 99 * + COUNT ( + + 97 ) FROM tab1 cor0
----
-6237

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 * col0 + 71 / + 36 - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 69 AS col1, - 23 FROM tab2
----
69
-23
69
-23
69
-23

query I rowsort
SELECT ( - + col0 ) * col2 AS col2 FROM tab0
----
-705
-870
-9603

query II rowsort
SELECT - col1, col2 * 48 * - 85 + - col0 + + col2 - col1 AS col2 FROM tab0
----
-1
-403919
-21
-40898
-81
-191809

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 + - col2 + 44 >= - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT DISTINCT MAX( DISTINCT - 40 ) FROM tab1
----
-40

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT MAX ( DISTINCT - 40 ) FROM tab1
----
-40

query I rowsort
SELECT DISTINCT 5 * + 64 AS col0 FROM tab2 AS cor0
----
320

query I rowsort
SELECT - ( + + 39 ) FROM tab1 AS cor0
----
-39
-39
-39

onlyif mysql # DIV for integer division: 
query II rowsort label-1847
SELECT col0, - 72 DIV - col1 AS col1 FROM tab1 cor0
----
51
5
85
14
91
1

skipif mysql # not compatible
query II rowsort label-1847
SELECT col0, - 72 / - col1 AS col1 FROM tab1 cor0
----
51
5
85
14
91
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT SUM( + col2 ) col0 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1848
SELECT SUM ( + col2 ) col0 FROM tab1
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1849
SELECT - col0 * ( CAST( col1 AS SIGNED ) ) FROM tab2 WHERE NOT ( NULL ) NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-1849
SELECT - col0 * ( CAST ( col1 AS INTEGER ) ) FROM tab2 WHERE NOT ( NULL ) NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT MAX( ALL - 49 ) col2 FROM tab0
----
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1850
SELECT MAX ( ALL - 49 ) col2 FROM tab0
----
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 col2 FROM tab1
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1852
SELECT - col2 + - 20 FROM tab0 WHERE ( NULL ) BETWEEN - col1 AND 65 + + ( CAST( NULL AS SIGNED ) + col2 )
----

skipif mysql # not compatible
query I rowsort label-1852
SELECT - col2 + - 20 FROM tab0 WHERE ( NULL ) BETWEEN - col1 AND 65 + + ( CAST ( NULL AS INTEGER ) + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 90 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT COUNT( * ) col2 FROM tab2 WHERE ( NULL ) NOT BETWEEN ( + 8 ) AND 79
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1854
SELECT COUNT ( * ) col2 FROM tab2 WHERE ( NULL ) NOT BETWEEN ( + 8 ) AND 79
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1855
SELECT + col0 * col2 + col2 DIV col1 AS col1 FROM tab0 WHERE ( + 19 ) NOT IN ( col1 - - col0 )
----
705
870
9702

skipif mysql # not compatible
query I rowsort label-1855
SELECT + col0 * col2 + col2 / col1 AS col1 FROM tab0 WHERE ( + 19 ) NOT IN ( col1 - - col0 )
----
705
870
9702

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1856
SELECT * FROM tab1 WHERE NOT CAST( NULL AS DECIMAL ) + + col1 = + 55
----

skipif mysql # not compatible
query III rowsort label-1856
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS REAL ) + + col1 = + 55
----

query I rowsort
SELECT ALL col2 * + 90 FROM tab1
----
5310
6120
8640

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 73 * col2 NOT BETWEEN ( NULL ) AND + col1 + - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( col0 + 45 )
----

query I rowsort
SELECT DISTINCT - 72 * - 30 + ( 91 + col1 ) FROM tab1
----
2256
2265
2298

query I rowsort
SELECT + 86 AS col2 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 IN ( col0 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1863
SELECT - CAST( NULL AS SIGNED ) * - col2 + + CAST( 52 AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1863
SELECT - CAST ( NULL AS INTEGER ) * - col2 + + CAST ( 52 AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + ( col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT ALL ( ( SUM( ALL 80 ) ) ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL ( ( SUM ( ALL 80 ) ) ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 * - col1 <= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * - 62 AS col2 FROM tab1
----
-3658
-4216
-5952

query I rowsort
SELECT col0 * ( - col2 ) AS col0 FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 BETWEEN - 25 AND 20 * + 11
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT DISTINCT SUM( ALL 53 ) AS col2 FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT SUM ( ALL 53 ) AS col2 FROM tab1
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1871
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - ( col0 * + CAST( NULL AS SIGNED ) ) + + col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1871
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - ( col0 * + CAST ( NULL AS INTEGER ) ) + + col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col1 * 94 AS col1 FROM tab2
----
-4794
-6298
-7238

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1873
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1873
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - ( - col1 ) * + col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT + 7 + - col1 FROM tab0
----
-14
-74
6

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + col1 >= + 81
----
87
21
10

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NOT NULL >= 9 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 + col0 col1 FROM tab2
----
-21
-32
-50

query I rowsort
SELECT col0 FROM tab1 WHERE NOT col1 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1881
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 * - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1881
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 * - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1882
SELECT ALL - CAST( col0 AS SIGNED ) * + 86 FROM tab0
----
-1290
-7482
-8342

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL - CAST ( col0 AS INTEGER ) * + 86 FROM tab0
----
-1290
-7482
-8342

query III rowsort
SELECT * FROM tab1 WHERE + 10 = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1884
SELECT ALL * FROM tab0 WHERE NOT col1 BETWEEN + col0 * + col2 + ( + col2 + - CAST( col1 AS SIGNED ) ) AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1884
SELECT ALL * FROM tab0 WHERE NOT col1 BETWEEN + col0 * + col2 + ( + col2 + - CAST ( col1 AS INTEGER ) ) AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1885
SELECT ALL 70 DIV + COUNT( * ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL 70 / + COUNT ( * ) FROM tab2
----
23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( - 25 ) ) BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1887
SELECT + ( COUNT( * ) ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1887
SELECT + ( COUNT ( * ) ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 > ( + col0 )
----

query I rowsort
SELECT 32 - col0 FROM tab0 AS cor0
----
-55
-65
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT DISTINCT + SUM( + col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-1890
SELECT DISTINCT + SUM ( + col1 ) AS col2 FROM tab1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1891
SELECT - MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1891
SELECT - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 / + 32 BETWEEN ( col1 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1893
SELECT col0 DIV 5 FROM tab2 AS cor0
----
12
15
9

skipif mysql # not compatible
query I rowsort label-1893
SELECT col0 / 5 FROM tab2 AS cor0
----
12
15
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1894
SELECT + 24 DIV - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-1894
SELECT + 24 / - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE col2 - - 76 * col1 <> + 37
----
3

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE col2 - - 76 * col1 <> + 37
----
3

query I rowsort
SELECT ALL 95 * + col1 FROM tab2 AS cor0
----
4845
6365
7315

query I rowsort
SELECT - col2 * + 32 AS col0 FROM tab1 AS cor0
----
-1888
-2176
-3072

query I rowsort
SELECT ALL + col1 * - 57 AS col1 FROM tab1 AS cor0
----
-2679
-285
-798

query I rowsort
SELECT ALL - col1 / + 57 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 * + 74 FROM tab0
----
1554
5994
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT DISTINCT - MIN( DISTINCT + col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-1901
SELECT DISTINCT - MIN ( DISTINCT + col1 ) FROM tab1
----
-5

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 BETWEEN + col0 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE ( - col2 ) NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT col0 * - - ( col1 ) AS col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE NOT ( NULL ) <> 12 + - col2 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1906
SELECT DISTINCT - col0 DIV + 41 - 25 AS col2 FROM tab0 AS cor0
----
-25
-27

skipif mysql # not compatible
query I rowsort label-1906
SELECT DISTINCT - col0 / + 41 - 25 AS col2 FROM tab0 AS cor0
----
-25
-27

query I rowsort
SELECT ALL 66 FROM tab1 AS cor0 WHERE NOT ( 31 ) >= + col0
----
66
66
66

query I rowsort
SELECT DISTINCT 0 + + 34 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT DISTINCT - ( + COUNT( * ) ) * COUNT( * ) AS col0 FROM tab0 WHERE ( - - ( + col2 ) ) IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT - ( + COUNT ( * ) ) * COUNT ( * ) AS col0 FROM tab0 WHERE ( - - ( + col2 ) ) IS NOT NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT DISTINCT 37 + + + COUNT( * ) FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-1910
SELECT DISTINCT 37 + + + COUNT ( * ) FROM tab0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT COUNT( * ) AS col2 FROM tab0 WHERE ( - - col0 / col1 ) NOT BETWEEN ( - col0 * col2 ) AND ( - 49 )
----
3

skipif mysql # not compatible
query I rowsort label-1911
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE ( - - col0 / col1 ) NOT BETWEEN ( - col0 * col2 ) AND ( - 49 )
----
3

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( 8 ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # DIV for integer division: 
query I rowsort label-1913
SELECT ALL - col0 DIV + ( + col1 ) AS col1 FROM tab1 cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL - col0 / + ( + col1 ) AS col1 FROM tab1 cor0
----
-1
-17
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1914
SELECT * FROM tab2 AS cor0 WHERE + 82 IN ( - CAST( + 92 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1914
SELECT * FROM tab2 AS cor0 WHERE + 82 IN ( - CAST ( + 92 AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 74 * - 66 + ( - col0 ) / + 25 BETWEEN + 25 + - col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + 81 NOT BETWEEN NULL AND ( - col1 )
----

query I rowsort
SELECT DISTINCT + col1 + 54 AS col2 FROM tab2 AS cor0
----
105
121
131

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= ( - col2 - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT DISTINCT - SUM( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-1919
SELECT DISTINCT - SUM ( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT - col1 - 75 FROM tab0 AS cor0
----
-156
-76
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT DISTINCT - SUM( DISTINCT + 98 ) AS col1 FROM tab2 AS cor0 WHERE NOT 5 * - + ( 10 ) NOT IN ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1921
SELECT DISTINCT - SUM ( DISTINCT + 98 ) AS col1 FROM tab2 AS cor0 WHERE NOT 5 * - + ( 10 ) NOT IN ( + col1 )
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / ( col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - ( - + col2 ) AS col0 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT col1 IN ( 67 )
----
51
77

query I rowsort
SELECT DISTINCT - col1 * - 65 FROM tab2 AS cor0 WHERE NOT col1 >= NULL
----

query I rowsort
SELECT 95 + - 56 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + 71 - col2 FROM tab0 AS cor0
----
-28
24
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1928
SELECT col1 - - 0 AS col0, + CAST( + col0 AS SIGNED ) col0 FROM tab2
----
51
46
67
75
77
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1928
SELECT col1 - - 0 AS col0, + CAST ( + col0 AS INTEGER ) col0 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT + SUM( ALL + + col0 ) + - COUNT( * ) AS col0 FROM tab0
----
196

skipif mysql # not compatible
query I rowsort label-1929
SELECT + SUM ( ALL + + col0 ) + - COUNT ( * ) AS col0 FROM tab0
----
196

query II rowsort
SELECT - 9 + col2 AS col1, - col2 * - - col2 AS col1 FROM tab1
----
50
-3481
59
-4624
87
-9216

query I rowsort
SELECT + col1 + col0 + 98 FROM tab2
----
195
239
240

query I rowsort
SELECT ALL + 24 * col1 AS col0 FROM tab1 WHERE ( NULL ) NOT BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1933
SELECT ALL + ( - col0 ) + - + CAST( - col1 AS SIGNED ) * - 23 FROM tab1
----
-1172
-200
-373

skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL + ( - col0 ) + - + CAST ( - col1 AS INTEGER ) * - 23 FROM tab1
----
-1172
-200
-373

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT DISTINCT + MIN( ALL 94 ) AS col1 FROM tab2 WHERE + 47 NOT BETWEEN - col2 AND + col2
----
94

skipif mysql # not compatible
query I rowsort label-1934
SELECT DISTINCT + MIN ( ALL 94 ) AS col1 FROM tab2 WHERE + 47 NOT BETWEEN - col2 AND + col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT + COUNT( * ) col0 FROM tab2 AS cor0 WHERE ( + col2 ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1935
SELECT + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE ( + col2 ) IS NULL
----
0

query I rowsort
SELECT ALL + 34 + + col2 FROM tab2 AS cor0
----
57
74
92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 ) BETWEEN 44 * - col0 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1938
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 28 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1938
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 28 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1939
SELECT DISTINCT MIN( DISTINCT + 36 ), + COUNT( * ) AS col1 FROM tab0 AS cor0
----
36
3

skipif mysql # not compatible
query II rowsort label-1939
SELECT DISTINCT MIN ( DISTINCT + 36 ), + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
36
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT DISTINCT + COUNT( * ) * + + COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-1940
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab2
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col0 * + 19 + 84 ) BETWEEN ( - col2 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 * - 56 + - col2 FROM tab1 AS cor0
----
-2952
-4819
-5164

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 94 * 62 NOT BETWEEN NULL AND + + col0 * + ( col2 )
----

query I rowsort
SELECT - 97 * - col0 FROM tab2 AS cor0
----
4462
6208
7275

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( col2, - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1946
SELECT ALL + + AVG ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL + + AVG ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 76 ) = + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * - 86 AS col1 FROM tab1 AS cor0
----
-4386
-7310
-7826

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE - 26 * col2 IS NULL
----

query II rowsort
SELECT ALL 11, + 51 AS col1 FROM tab0
----
11
51
11
51
11
51

query I rowsort
SELECT - col0 * 95 AS col0 FROM tab0 WHERE NOT + - 21 <> + 78 + - 24
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT col2 + + col2 NOT IN ( - col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1953
SELECT ALL + 45 + - col2 DIV - ( + col1 ) * col2 AS col0 FROM tab2
----
45
45
45

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL + 45 + - col2 / - ( + col1 ) * col2 AS col0 FROM tab2
----
45
45
45

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 >= ( - 64 + - col1 )
----

query I rowsort
SELECT ALL 14 * + col1 FROM tab1
----
196
658
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 74 + + ( + col2 ) col1 FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
136
171
270

onlyif mysql # DIV for integer division: 
query II rowsort label-1957
SELECT DISTINCT col1 AS col2, 57 DIV col1 - + 14 FROM tab2
----
51
-13
67
-14
77
-14

skipif mysql # not compatible
query II rowsort label-1957
SELECT DISTINCT col1 AS col2, 57 / col1 - + 14 FROM tab2
----
51
-13
67
-14
77
-14

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT - col2 BETWEEN ( + - 43 ) AND ( + col2 * col1 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1959
SELECT - 38 DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-1959
SELECT - 38 / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-1960
SELECT DISTINCT - 21 DIV + 29 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1960
SELECT DISTINCT - 21 / + 29 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1961
SELECT DISTINCT SUM( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT SUM ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
NULL

query I rowsort
SELECT 21 * 18 + + col2 * - col0 * + 49 AS col1 FROM tab2 AS cor0
----
-125062
-212772
-51464

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col2, - col1 FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-1964
SELECT ALL + + COUNT( * ) AS col1, + 20 + + 10 FROM tab2 cor0
----
3
30

skipif mysql # not compatible
query II rowsort label-1964
SELECT ALL + + COUNT ( * ) AS col1, + 20 + + 10 FROM tab2 cor0
----
3
30

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON ( NOT 39 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE col0 = + col2 / - - 4 * - ( + - 37 ) + col2 / + col2
----

query I rowsort
SELECT DISTINCT 79 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
79

query I rowsort
SELECT DISTINCT col0 + + 56 + + col1 AS col1 FROM tab2
----
153
197
198

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT ALL - COUNT( * ) + MIN( - + 86 ) * + 57 FROM tab1
----
-4905

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL - COUNT ( * ) + MIN ( - + 86 ) * + 57 FROM tab1
----
-4905

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT DISTINCT - ( - MIN( + 43 ) ) * 74 FROM tab1 AS cor0
----
3182

skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT - ( - MIN ( + 43 ) ) * 74 FROM tab1 AS cor0
----
3182

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1972
SELECT - col2 + - CAST( col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
-118
-136
-192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1972
SELECT - col2 + - CAST ( col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
-118
-136
-192

query I rowsort
SELECT ALL 46 AS col2 FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT DISTINCT 60 FROM tab0 cor0 WHERE + 20 IS NOT NULL
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT ALL - COUNT( - 17 ) - - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1975
SELECT ALL - COUNT ( - 17 ) - - COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1976
SELECT - CAST( + 57 AS SIGNED ) AS col1 FROM tab2
----
-57
-57
-57

skipif mysql # not compatible
query I rowsort label-1976
SELECT - CAST ( + 57 AS INTEGER ) AS col1 FROM tab2
----
-57
-57
-57

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( 40, - col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * col0 > - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 - - + 75 AS col0 FROM tab0
----
156
76
96

query I rowsort
SELECT + col2 * + - col2 * - + ( col2 ) AS col2 FROM tab1 cor0
----
205379
314432
884736

query I rowsort
SELECT ALL + ( + 97 ) * col1 / 58 + + col2 + + col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query II rowsort
SELECT + - 0 AS col1, + col2 * 1 FROM tab2 AS cor0
----
0
23
0
40
0
58

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 / - col0 + - col0 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND 5
----

query I rowsort
SELECT DISTINCT + ( 71 ) * - + col2 AS col2 FROM tab2
----
-1633
-2840
-4118

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT COUNT( - col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1987
SELECT COUNT ( - col0 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + 55 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col1 AS col2, - 70 * 7 col0 FROM tab1 cor0 WHERE NOT 45 + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + - 83 AS col2 FROM tab2 AS cor0
----
-83
-83
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-1991
SELECT - col0 DIV - 91 + - - col1 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1991
SELECT - col0 / - 91 + - - col1 FROM tab2 cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 + - col0 * - col0 - - col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1992
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 + - col0 * - col0 - - col1 > NULL
----
0

query I rowsort
SELECT ALL 12 + 11 AS col2 FROM tab0
----
23
23
23

query II rowsort
SELECT DISTINCT 75 AS col0, + col1 AS col2 FROM tab1
----
75
14
75
47
75
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT + ( - - SUM( - col2 ) ) AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-1996
SELECT + ( - - SUM ( - col2 ) ) AS col0 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT - COUNT( * ) * 47 FROM tab0
----
-141

skipif mysql # not compatible
query I rowsort label-1997
SELECT - COUNT ( * ) * 47 FROM tab0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT 51 + - - MIN( ALL ( ( col2 ) ) ) * - COUNT( * ) AS col0 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-1998
SELECT 51 + - - MIN ( ALL ( ( col2 ) ) ) * - COUNT ( * ) AS col0 FROM tab2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-1999
SELECT ( + - 44 ) DIV - + col2 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-1999
SELECT ( + - 44 ) / - + col2 FROM tab0
----
0
0
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT + + 79 * + + ( + COUNT( * ) ) + 68 + - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
308

skipif mysql # not compatible
query I rowsort label-2000
SELECT + + 79 * + + ( + COUNT ( * ) ) + 68 + - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
308

query I rowsort
SELECT DISTINCT col2 - + - col2 AS col1 FROM tab0 cor0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT - - COUNT( * ) - - 19 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-2002
SELECT - - COUNT ( * ) - - 19 FROM tab1 AS cor0
----
22

query I rowsort
SELECT DISTINCT + col1 * + - 55 AS col0 FROM tab1 AS cor0
----
-2585
-275
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT ALL COUNT( * ) * + 36 AS col0 FROM tab0 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL COUNT ( * ) * + 36 AS col0 FROM tab0 AS cor0
----
108

query I rowsort
SELECT ALL + col2 * - col1 * - ( - col2 ) AS col1 FROM tab0
----
-178929
-2100
-9801

query II rowsort
SELECT ALL + col2 + - 11 AS col1, + 20 * - col1 FROM tab2
----
12
-1020
29
-1540
47
-1340

query I rowsort
SELECT col1 * + col1 + col2 AS col2 FROM tab0
----
100
451
6608

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT - COUNT( * ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2008
SELECT - COUNT ( * ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2009
SELECT - CAST( NULL AS SIGNED ) / - col0 AS col2, + 75 FROM tab2
----
NULL
75
NULL
75
NULL
75

skipif mysql # not compatible
query II rowsort label-2009
SELECT - CAST ( NULL AS INTEGER ) / - col0 AS col2, + 75 FROM tab2
----
NULL
75
NULL
75
NULL
75

query I rowsort
SELECT ALL - + col1 FROM tab1 WHERE NOT - col2 BETWEEN - col2 * col1 AND - col2 + + ( col0 ) + col0
----

query IIIIII rowsort
SELECT * FROM tab2, tab1 cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2013
SELECT COUNT( - - CAST( - col0 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2013
SELECT COUNT ( - - CAST ( - col0 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT 31 AS col1, col1 AS col0 FROM tab1
----
31
14
31
47
31
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2015
SELECT - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2015
SELECT - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT + MAX( DISTINCT - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-2016
SELECT + MAX ( DISTINCT - col2 ) FROM tab2
----
-23

query I rowsort
SELECT DISTINCT - 96 FROM tab0 AS cor0 WHERE NOT + col1 * + 12 * col0 * + col0 IS NULL
----
-96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + + col0 + - col2 * col0 > - + 42
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + 71 AS col0, + 91 FROM tab0 AS cor0
----
71
91

onlyif mysql # aggregate syntax: 
query II rowsort label-2020
SELECT DISTINCT 71 AS col1, MIN( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
71
51

skipif mysql # not compatible
query II rowsort label-2020
SELECT DISTINCT 71 AS col1, MIN ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
71
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - - col1 ) > NULL
----

query II rowsort
SELECT ALL + col0 AS col2, - 11 AS col2 FROM tab2 AS cor0
----
46
-11
64
-11
75
-11

query I rowsort
SELECT ALL 57 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + + col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 62 AS col1 FROM tab2 AS cor0
----
62

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 + + 17 + + 68 < col0 / + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 59 * - 93 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2028
SELECT + + col1 + - col2 - - col0 * - - CAST( + + col0 AS SIGNED ) * col0 AS col1, col1 * + col2 FROM tab1 AS cor0
----
132569
1344
614071
295
753550
3196

skipif mysql # not compatible
query II rowsort label-2028
SELECT + + col1 + - col2 - - col0 * - - CAST ( + + col0 AS INTEGER ) * col0 AS col1, col1 * + col2 FROM tab1 AS cor0
----
132569
1344
614071
295
753550
3196

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 cor0 WHERE ( col1 <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2030
SELECT * FROM tab0 WHERE + CAST( col2 AS SIGNED ) * + CAST( NULL AS SIGNED ) * + 37 * - - col0 * col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2030
SELECT * FROM tab0 WHERE + CAST ( col2 AS INTEGER ) * + CAST ( NULL AS INTEGER ) * + 37 * - - col0 * col0 IS NOT NULL
----

query I rowsort
SELECT col2 + - + col2 - - 78 AS col1 FROM tab0
----
78
78
78

query I rowsort
SELECT ALL + col0 + 66 FROM tab1
----
117
151
157

query I rowsort
SELECT ALL col0 * - - 27 * + col2 FROM tab2
----
117450
28566
69120

query I rowsort
SELECT DISTINCT + 15 FROM tab0 WHERE - - col0 * - - 40 * - col2 IS NOT NULL
----
15

query III rowsort
SELECT * FROM tab1 WHERE 80 IS NULL
----

query I rowsort
SELECT col0 * 58 FROM tab0
----
5046
5626
870

query I rowsort
SELECT ALL - + col0 + + + col2 FROM tab2 WHERE NULL >= + ( + 21 ) * + col1 - + col2 + - col2 * 15
----

query I rowsort
SELECT ALL col2 + + col2 - col0 * col2 * - 6 AS col2 FROM tab2
----
15440
26216
6394

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE - col0 BETWEEN col1 - 73 / - col1 AND - 50
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2040
SELECT DISTINCT COUNT( * ), ( - 1 ) AS col1 FROM tab1 WHERE NOT NULL <> - - 84
----
0
-1

skipif mysql # not compatible
query II rowsort label-2040
SELECT DISTINCT COUNT ( * ), ( - 1 ) AS col1 FROM tab1 WHERE NOT NULL <> - - 84
----
0
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2041
SELECT - - col0 DIV - + col2 col0 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2041
SELECT - - col0 / - + col2 col0 FROM tab0 AS cor0
----
-8
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 61 - + + 0 >= - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT ALL - MIN( ALL + 80 ) AS col0 FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-2043
SELECT ALL - MIN ( ALL + 80 ) AS col0 FROM tab1 AS cor0
----
-80

query I rowsort
SELECT DISTINCT + 10 AS col2 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
10

query I rowsort
SELECT ALL + 19 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT ( + col0 ) + - ( + + col2 ) FROM tab2 AS cor0
----
17
23
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2047
SELECT ALL 20 - - ( + + CAST( col1 AS SIGNED ) ) FROM tab2 AS cor0
----
71
87
97

skipif mysql # not compatible
query I rowsort label-2047
SELECT ALL 20 - - ( + + CAST ( col1 AS INTEGER ) ) FROM tab2 AS cor0
----
71
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT + SUM( + col1 ) + + - 70 * + 61 FROM tab2 AS cor0
----
-4075

skipif mysql # not compatible
query I rowsort label-2048
SELECT + SUM ( + col1 ) + + - 70 * + 61 FROM tab2 AS cor0
----
-4075

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * + col2 + - - 99 <= + ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT + COUNT( * ) AS col2 FROM tab2 cor0 WHERE - 27 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2050
SELECT + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE - 27 BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 98 * col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 * + + col1 + + col2 * 92 col0 FROM tab2 AS cor0
----
1657
2987
4733

query I rowsort
SELECT + ( + 23 ) AS col2 FROM tab0 AS cor0
----
23
23
23

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 * - col1 * + + col1 * 35 NOT BETWEEN col1 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2055
SELECT + 40 DIV + 61 + - col0 - + + col1 AS col2 FROM tab0 WHERE NOT col2 IS NULL
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-2055
SELECT + 40 / + 61 + - col0 - + + col1 AS col2 FROM tab0 WHERE NOT col2 IS NULL
----
-108
-96
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-2056
SELECT col2 DIV - + col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-2056
SELECT col2 / - + col0 FROM tab0
----
-1
-3
0

query II rowsort
SELECT DISTINCT - col0 AS col2, - col2 FROM tab0
----
-15
-47
-87
-10
-97
-99

query I rowsort
SELECT + 46 * + + col1 AS col2 FROM tab0
----
3726
46
966

query II rowsort
SELECT DISTINCT col2 AS col1, + ( col2 ) FROM tab2
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT DISTINCT - COUNT( * ) * + MAX( - 98 ) AS col2 FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-2060
SELECT DISTINCT - COUNT ( * ) * + MAX ( - 98 ) AS col2 FROM tab0
----
294

query I rowsort
SELECT - col0 * col1 * col1 * + col0 * + col1 AS col1 FROM tab0
----
-119574225
-70096509
-9409

query I rowsort
SELECT + + 43 * 45 AS col1 FROM tab1 AS cor0
----
1935
1935
1935

onlyif mysql # DIV for integer division: 
query I rowsort label-2063
SELECT DISTINCT + col2 DIV - - ( + - col2 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT + col2 / - - ( + - col2 ) AS col2 FROM tab1 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 18 + + - col1 = + + col1 + + ( + + 62 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2065
SELECT DISTINCT 20 + - + CAST( NULL AS SIGNED ) AS col0, COUNT( * ) FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2065
SELECT DISTINCT 20 + - + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) FROM tab1 AS cor0
----
NULL
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * + + col2 col2 FROM tab0 cor0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2067
SELECT ALL - 44 * col2 * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL - 44 * col2 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2068
SELECT ALL + ( + col2 ) DIV + col0 - + col0 + - col0 + + 34 FROM tab0 AS cor0
----
-140
-159
7

skipif mysql # not compatible
query I rowsort label-2068
SELECT ALL + ( + col2 ) / + col0 - + col0 + - col0 + + 34 FROM tab0 AS cor0
----
-140
-159
7

query I rowsort
SELECT ALL + 50 FROM tab2 cor0
----
50
50
50

query I rowsort
SELECT - 11 * + 57 + - col2 AS col2 FROM tab0 AS cor0
----
-637
-674
-726

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE 3 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT 68 * 90 + - COUNT( * ) col2 FROM tab2
----
6117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2072
SELECT 68 * 90 + - COUNT ( * ) col2 FROM tab2
----
6117

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT ALL COUNT( * ) * + - COUNT( + - 14 ) + + 68 * - + 40 FROM tab2
----
-2729

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL COUNT ( * ) * + - COUNT ( + - 14 ) + + 68 * - + 40 FROM tab2
----
-2729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - 79 col2 FROM tab1 AS cor0
----
-12
-6
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2075
SELECT CAST( 81 AS SIGNED ) * col1 FROM tab1
----
1134
3807
405

skipif mysql # not compatible
query I rowsort label-2075
SELECT CAST ( 81 AS INTEGER ) * col1 FROM tab1
----
1134
3807
405

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2076
SELECT - 24 DIV MAX( ( + col1 ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2076
SELECT - 24 / MAX ( ( + col1 ) ) AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL + 22 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # DIV for integer division: 
query I rowsort label-2078
SELECT - 90 DIV + + col0 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-2078
SELECT - 90 / + + col0 FROM tab0
----
-1
-6
0

query III rowsort
SELECT * FROM tab2 WHERE NULL < + 82
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2080
SELECT - ( + COUNT( DISTINCT + CAST( 73 AS SIGNED ) ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-2080
SELECT - ( + COUNT ( DISTINCT + CAST ( 73 AS INTEGER ) ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2081
SELECT DISTINCT + - CAST( - 99 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
-4554
-6336
-7425

skipif mysql # not compatible
query I rowsort label-2081
SELECT DISTINCT + - CAST ( - 99 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
-4554
-6336
-7425

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2082
SELECT 43 AS col1, - col1 * 0 FROM tab0 AS cor0 WHERE NOT + ( - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-2082
SELECT 43 AS col1, - col1 * 0 FROM tab0 AS cor0 WHERE NOT + ( - CAST ( NULL AS INTEGER ) ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + + + col1 IS NOT NULL
----

query I rowsort
SELECT - + 90 AS col0 FROM tab0 cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT - 83 * + COUNT( * ) * 19 FROM tab0 AS cor0
----
-4731

skipif mysql # not compatible
query I rowsort label-2085
SELECT - 83 * + COUNT ( * ) * 19 FROM tab0 AS cor0
----
-4731

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT DISTINCT + COUNT( - col1 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2086
SELECT DISTINCT + COUNT ( - col1 ) col1 FROM tab1
----
3

query I rowsort
SELECT ALL col0 * - + 61 AS col1 FROM tab0
----
-5307
-5917
-915

query I rowsort
SELECT ALL - col0 * + ( + col1 ) AS col2 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT ALL + 13 * - 9 AS col1 FROM tab2
----
-117
-117
-117

query I rowsort
SELECT DISTINCT ( + - ( - col2 ) ) FROM tab1
----
59
68
96

query I rowsort
SELECT - + 47 AS col1 FROM tab2 cor0
----
-47
-47
-47

query I rowsort
SELECT 65 FROM tab1 WHERE NOT + col2 <> NULL
----

query II rowsort
SELECT ALL + col0 AS col1, - col1 AS col0 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT + 50 * 13 + - + MIN( DISTINCT - - col1 ) + SUM( ALL col1 ) AS col1 FROM tab1 AS cor0
----
711

skipif mysql # not compatible
query I rowsort label-2094
SELECT + 50 * 13 + - + MIN ( DISTINCT - - col1 ) + SUM ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
711

query I rowsort
SELECT DISTINCT col2 + - 10 * col0 AS col1 FROM tab2 AS cor0
----
-437
-600
-692

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT DISTINCT - ( - MAX( + + 19 ) ) FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-2096
SELECT DISTINCT - ( - MAX ( + + 19 ) ) FROM tab0 AS cor0
----
19

query I rowsort
SELECT ALL - col0 + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT col0 * + col1 + + col2 NOT IN ( + col1, - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2098
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) / - col2 > NULL
----

skipif mysql # not compatible
query III rowsort label-2098
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) / - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2099
SELECT 50 + 43 + MAX( DISTINCT - col0 ), + MAX( + col2 ) col1 FROM tab2 AS cor0
----
47
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2099
SELECT 50 + 43 + MAX ( DISTINCT - col0 ), + MAX ( + col2 ) col1 FROM tab2 AS cor0
----
47
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2100
SELECT ALL - - MIN( ALL + col1 ) AS col1, MAX( DISTINCT - ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
51
-51

skipif mysql # not compatible
query II rowsort label-2100
SELECT ALL - - MIN ( ALL + col1 ) AS col1, MAX ( DISTINCT - ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
51
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2101
SELECT - MAX( 89 ) + - CAST( NULL AS SIGNED ) + + 73 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2101
SELECT - MAX ( 89 ) + - CAST ( NULL AS INTEGER ) + + 73 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT DISTINCT + SUM( DISTINCT - 27 ) FROM tab0 WHERE + + col1 IS NOT NULL
----
-27

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT + SUM ( DISTINCT - 27 ) FROM tab0 WHERE + + col1 IS NOT NULL
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT ALL COUNT( * ) + + COUNT( + ( col0 ) ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL COUNT ( * ) + + COUNT ( + ( col0 ) ) AS col2 FROM tab2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2104
SELECT MIN( ALL + CAST( + + col2 AS SIGNED ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2104
SELECT MIN ( ALL + CAST ( + + col2 AS INTEGER ) ) FROM tab1
----
59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 16 + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 75 * col2 AS col1 FROM tab2 WHERE ( 5 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2107
SELECT DISTINCT COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2107
SELECT DISTINCT COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col0 * - col1 - col2 * - col2 FROM tab0 AS cor0
----
1927
3424
9898

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 + col2 * col0 <> 84
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 42 <> + col2
----

query I rowsort
SELECT DISTINCT - 54 - - 22 + - - 21 FROM tab1 AS cor0
----
-11

query I rowsort
SELECT 12 * - - col0 FROM tab2
----
552
768
900

query I rowsort
SELECT ( - col1 ) * + - col0 - + col1 AS col0 FROM tab2
----
2295
4851
4958

query II rowsort
SELECT + col0 AS col2, 57 FROM tab0
----
15
57
87
57
97
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2115
SELECT ALL + CAST( ( col0 ) AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL + CAST ( ( col0 ) AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT + col2, + 30 AS col0 FROM tab1 AS cor0
----
59
30
68
30
96
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2117
SELECT + + 49 DIV + - col1 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2117
SELECT + + 49 / + - col1 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2118
SELECT ALL - ( - CAST( col2 AS SIGNED ) ) AS col2, - CAST( - - 40 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
23
-40
40
-40
58
-40

skipif mysql # not compatible
query II rowsort label-2118
SELECT ALL - ( - CAST ( col2 AS INTEGER ) ) AS col2, - CAST ( - - 40 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
23
-40
40
-40
58
-40

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + - col2 * + col2 + + col2 IS NULL AND NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT DISTINCT - ( + MIN( ALL + 80 ) ) FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT - ( + MIN ( ALL + 80 ) ) FROM tab1 AS cor0
----
-80

query I rowsort
SELECT DISTINCT - 53 * + ( - + col0 ) FROM tab1
----
2703
4505
4823

query I rowsort
SELECT ALL + col0 * - col2 + col0 * + - col1 * - col1 FROM tab1 WHERE NOT - - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 * + 70 * - col2 AS col0 FROM tab0
----
-154630
-686070
-7000

onlyif mysql # DIV for integer division: 
query I rowsort label-2124
SELECT DISTINCT + - col0 DIV 95 + 75 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT + - col0 / 95 + 75 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT - COUNT( * ) * - + 6 * - + COUNT( * ) col1 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2125
SELECT - COUNT ( * ) * - + 6 * - + COUNT ( * ) col1 FROM tab0 AS cor0
----
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab0 AS cor0 WHERE NOT - 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT 1 + - COUNT( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2127
SELECT 1 + - COUNT ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT DISTINCT + 42 + - col2 AS col2 FROM tab0
----
-5
-57
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2129
SELECT - 5 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2129
SELECT - 5 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND col2
----
2

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND col2
----
2

query I rowsort
SELECT DISTINCT + col0 + ( 85 ) * col1 - + col2 AS col1 FROM tab0 AS cor0
----
1862
6853
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-32

query I rowsort
SELECT ALL 65 + + + col1 FROM tab2 AS cor0
----
116
132
142

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT ALL COUNT( * ) * + MIN( DISTINCT - 26 ) FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL COUNT ( * ) * + MIN ( DISTINCT - 26 ) FROM tab1 AS cor0
----
-78

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 > 70 + + 37
----

query I rowsort
SELECT - + col1 * + 89 AS col0 FROM tab0 AS cor0
----
-1869
-7209
-89

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2139
SELECT - col0 FROM tab2 AS cor0 WHERE ( NULL ) = + 37 + - + col0 + - - CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2139
SELECT - col0 FROM tab2 AS cor0 WHERE ( NULL ) = + 37 + - + col0 + - - CAST ( + col0 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2140
SELECT col0 - + - col2 / + col0 * - col2 * - CAST( NULL AS SIGNED ) * - 47 / col0 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2140
SELECT col0 - + - col2 / + col0 * - col2 * - CAST ( NULL AS INTEGER ) * - 47 / col0 col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col2 = col1
----

query I rowsort
SELECT col2 + 8 * - + col0 FROM tab0
----
-677
-686
-73

query I rowsort
SELECT + 59 + col0 + - + col0 AS col0 FROM tab2
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT - COUNT( + col2 ) AS col0 FROM tab0 WHERE 73 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2144
SELECT - COUNT ( + col2 ) AS col0 FROM tab0 WHERE 73 IS NOT NULL
----
-3

query I rowsort
SELECT col1 + - + 43 FROM tab0
----
-22
-42
38

query I rowsort
SELECT col0 * + - 99 * + col2 + 42 FROM tab1
----
-484662
-496443
-612570

query I rowsort
SELECT ALL - 20 + - col0 + - 80 FROM tab0
----
-115
-187
-197

query I rowsort
SELECT - 45 * - 54 + - + ( + col1 ) FROM tab2
----
2353
2363
2379

query III rowsort
SELECT * FROM tab1 WHERE col0 IN ( - 81 * col1, + col1 * + - col1 )
----

query I rowsort
SELECT DISTINCT - 70 - + - 66 + + + col1 * - 32 * - col1 AS col1 FROM tab2
----
143644
189724
83228

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2151
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) * + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2151
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) * + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 7 - - 14 AS col0 FROM tab0 AS cor0
----
21

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 > - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT ALL + + COUNT( * ) - - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL + + COUNT ( * ) - - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2155
SELECT DISTINCT + 92 AS col0, - ( + + SUM( - ( - col0 ) ) ) AS col1 FROM tab1 AS cor0
----
92
-227

skipif mysql # not compatible
query II rowsort label-2155
SELECT DISTINCT + 92 AS col0, - ( + + SUM ( - ( - col0 ) ) ) AS col1 FROM tab1 AS cor0
----
92
-227

query II rowsort
SELECT ALL - col0 AS col2, 41 * + col2 - + + col0 AS col1 FROM tab1 cor0
----
-51
3885
-85
2334
-91
2697

onlyif mysql # DIV for integer division: 
query II rowsort label-2157
SELECT + col1 DIV - col0, + 18 + 55 * col1 AS col0 FROM tab2
----
-1
2823
-1
4253
0
3703

skipif mysql # not compatible
query II rowsort label-2157
SELECT + col1 / - col0, + 18 + 55 * col1 AS col0 FROM tab2
----
-1
2823
-1
4253
0
3703

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2158
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( + + col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2158
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( + + col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - col0 ) AS col0 FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT ( + + 67 ) FROM tab2 cor0
----
67
67
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2161
SELECT ALL CAST( - col0 AS SIGNED ) AS col2, 81 + 97 * - 37 FROM tab0 AS cor0
----
-15
-3508
-87
-3508
-97
-3508

skipif mysql # not compatible
query II rowsort label-2161
SELECT ALL CAST ( - col0 AS INTEGER ) AS col2, 81 + 97 * - 37 FROM tab0 AS cor0
----
-15
-3508
-87
-3508
-97
-3508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2162
SELECT CAST( - + COUNT( * ) AS SIGNED ), + 82 AS col2 FROM tab1 AS cor0
----
-3
82

skipif mysql # not compatible
query II rowsort label-2162
SELECT CAST ( - + COUNT ( * ) AS INTEGER ), + 82 AS col2 FROM tab1 AS cor0
----
-3
82

query I rowsort
SELECT DISTINCT AVG ( + col2 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 21 col1, + col1 AS col1 FROM tab1
----
21
14
21
47
21
5

query I rowsort
SELECT DISTINCT ( - 13 ) + col1 + + col0 * - col1 FROM tab0
----
-109
-1147
-1819

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT DISTINCT ( MIN( col2 ) ) FROM tab1 WHERE NOT ( 45 * 44 + - - col0 / + col2 + - col1 - - col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT ( MIN ( col2 ) ) FROM tab1 WHERE NOT ( 45 * 44 + - - col0 / + col2 + - col1 - - col1 ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 col0, col2 + - 41 FROM tab0 AS cor0
----
-15
6
-87
-31
-97
58

query II rowsort
SELECT ALL + - 16, col1 FROM tab2 cor0
----
-16
51
-16
67
-16
77

query II rowsort
SELECT + 90, - col2 AS col2 FROM tab2 AS cor0
----
90
-23
90
-40
90
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT ALL + - 4 * ( COUNT( * ) ) + 80 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL + - 4 * ( COUNT ( * ) ) + 80 FROM tab0 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT DISTINCT - + MIN( + + 19 ) FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT - + MIN ( + + 19 ) FROM tab1 AS cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT - ( - MAX( DISTINCT + 31 ) ) * 15 FROM tab2 AS cor0
----
465

skipif mysql # not compatible
query I rowsort label-2172
SELECT - ( - MAX ( DISTINCT + 31 ) ) * 15 FROM tab2 AS cor0
----
465

query II rowsort
SELECT + - 6 * - + 85, 42 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 7bed8cb4fe36f4276fdd17a4d80d5f84

query I rowsort
SELECT 1 AS col1 FROM tab2 WHERE + col0 NOT IN ( + col2, col1 )
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2175
SELECT DISTINCT + + 88 DIV + 26 + + 81 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-2175
SELECT DISTINCT + + 88 / + 26 + + 81 FROM tab2 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT ALL - COUNT( ALL col0 ) + COUNT( + 22 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL - COUNT ( ALL col0 ) + COUNT ( + 22 ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - 13 * - 38 FROM tab0 AS cor0
----
494
494
494

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2178
SELECT - CAST( + col1 AS SIGNED ) + - 42 FROM tab1 cor0
----
-47
-56
-89

skipif mysql # not compatible
query I rowsort label-2178
SELECT - CAST ( + col1 AS INTEGER ) + - 42 FROM tab1 cor0
----
-47
-56
-89

query I rowsort
SELECT DISTINCT 38 - ( 28 ) AS col0 FROM tab0 AS cor0
----
10

query I rowsort
SELECT DISTINCT + + col1 * - + col2 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT + 9 * - - 2 * + 81 AS col0 FROM tab2 AS cor0
----
1458

query I rowsort
SELECT - col0 * col1 + 64 FROM tab0 AS cor0
----
-1151
-1763
-33

query I rowsort
SELECT - col1 * + - col1 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2184
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE - col0 IS NOT NULL
----
3

query I rowsort
SELECT ALL col0 * - 24 * - 89 AS col0 FROM tab1
----
108936
181560
194376

onlyif mysql # DIV for integer division: 
query I rowsort label-2186
SELECT ALL - 59 DIV - col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL - 59 / - col0 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL + 85 - col1 AS col1 FROM tab0
----
4
64
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT MAX( DISTINCT col1 ) - 87 FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2188
SELECT MAX ( DISTINCT col1 ) - 87 FROM tab2 AS cor0
----
-10

query I rowsort
SELECT + + col2 - 66 FROM tab0 cor0
----
-19
-56
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT - MIN( ALL - 62 ) FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-2190
SELECT - MIN ( ALL - 62 ) FROM tab0 AS cor0
----
62

query I rowsort
SELECT ALL + col0 * - + col0 AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT ALL COUNT( * ) * - 90 FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL COUNT ( * ) * - 90 FROM tab2
----
-270

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2193
SELECT ALL + COUNT( DISTINCT + - CAST( + col1 AS DECIMAL ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL + COUNT ( DISTINCT + - CAST ( + col1 AS REAL ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2194
SELECT DISTINCT 70 col1 FROM tab1 WHERE + CAST( 59 AS SIGNED ) IS NOT NULL
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2194
SELECT DISTINCT 70 col1 FROM tab1 WHERE + CAST ( 59 AS INTEGER ) IS NOT NULL
----
70

query II rowsort
SELECT - - col2, ( + - 2 ) * col1 * + col0 AS col1 FROM tab2 AS cor0
----
23
-4692
40
-9856
58
-10050

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + - 61 ) >= NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NOT + col2 * + col2 / + - col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 14 * 78 * + col2 AS col0 FROM tab0 AS cor0
----
108108
10920
51324

onlyif mysql # DIV for integer division: 
query I rowsort label-2199
SELECT DISTINCT + 54 DIV col0 AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2199
SELECT DISTINCT + 54 / col0 AS col2 FROM tab2 AS cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2200
SELECT DISTINCT 6 DIV - - col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2200
SELECT DISTINCT 6 / - - col2 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT + ( - MAX( + col0 ) ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2201
SELECT + ( - MAX ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 72 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - 74 ) * - col0 AS col1 FROM tab2
----
3404
4736
5550

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE NOT + + col0 NOT IN ( + col0 * col1 * col2, 74, - 34 )
----

query I rowsort
SELECT ALL - 57 + - 73 FROM tab0
----
-130
-130
-130

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col2 + + + 19 <> + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2207
SELECT 95 * + COUNT( * ), COUNT( * ) col0 FROM tab2
----
285
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2207
SELECT 95 * + COUNT ( * ), COUNT ( * ) col0 FROM tab2
----
285
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 67 / col2 * 54 + - col1 <> + 69 * - 43
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2209
SELECT ALL - - 33 AS col2, COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
33
9

skipif mysql # not compatible
query II rowsort label-2209
SELECT ALL - - 33 AS col2, COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
33
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2210
SELECT - CAST( - + 37 AS SIGNED ) AS col0 FROM tab1
----
37
37
37

skipif mysql # not compatible
query I rowsort label-2210
SELECT - CAST ( - + 37 AS INTEGER ) AS col0 FROM tab1
----
37
37
37

query I rowsort
SELECT ALL - + col0 - - + 16 FROM tab2 AS cor0
----
-30
-48
-59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > ( + 31 - - col1 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2213
SELECT ALL - 0 + col1 + col1 AS col2, + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
102
23
134
58
154
40

skipif mysql # not compatible
query II rowsort label-2213
SELECT ALL - 0 + col1 + col1 AS col2, + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
102
23
134
58
154
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT ALL MAX( - 78 ) FROM tab1 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL MAX ( - 78 ) FROM tab1 cor0
----
-78

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 93 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2216
SELECT ALL + col1 + - CAST( - + 28 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) - + - col2 NOT BETWEEN - + col0 - - + col2 - + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL + col1 + - CAST ( - + 28 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) - + - col2 NOT BETWEEN - + col0 - - + col2 - + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE 86 NOT IN ( + 21, 62, col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-2217
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE 86 NOT IN ( + 21, 62, col1 )
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2218
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 / - ( - CAST( - col2 AS DECIMAL ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2218
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 / - ( - CAST ( - col2 AS REAL ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2219
SELECT ALL - AVG ( ALL + col1 ) / CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL - AVG ( ALL + col1 ) / CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT ALL - COUNT( - col2 ) + 28 col1 FROM tab0
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2220
SELECT ALL - COUNT ( - col2 ) + 28 col1 FROM tab0
----
25

query I rowsort
SELECT col2 * + col0 + - - col1 FROM tab2
----
1109
2637
4417

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + + col2 col0 FROM tab1
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT - COUNT( * ) * ( + + 24 ) * + COUNT( + col0 ) + - + COUNT( * ) AS col0 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-2223
SELECT - COUNT ( * ) * ( + + 24 ) * + COUNT ( + col0 ) + - + COUNT ( * ) AS col0 FROM tab1
----
-219

query I rowsort
SELECT ALL - 75 * col1 * 49 FROM tab1
----
-172725
-18375
-51450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2225
SELECT DISTINCT + COUNT( * ) DIV - + COUNT( * ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT + COUNT ( * ) / - + COUNT ( * ) FROM tab2 cor0
----
-1

query I rowsort
SELECT - 51 * + + 71 AS col0 FROM tab0
----
-3621
-3621
-3621

query I rowsort
SELECT - 18 * + col1 AS col0 FROM tab0
----
-1458
-18
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT + 84 * + - COUNT( * ) AS col1 FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-2228
SELECT + 84 * + - COUNT ( * ) AS col1 FROM tab1
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT - COUNT( * ) * 38 * - 84 FROM tab2
----
9576

skipif mysql # not compatible
query I rowsort label-2229
SELECT - COUNT ( * ) * 38 * - 84 FROM tab2
----
9576

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT + ( - - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2230
SELECT + ( - - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT DISTINCT SUM( + col2 ) * 99 AS col0 FROM tab1 AS cor0
----
22077

skipif mysql # not compatible
query I rowsort label-2231
SELECT DISTINCT SUM ( + col2 ) * 99 AS col0 FROM tab1 AS cor0
----
22077

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2232
SELECT - col0 - - col2 * - ( - col2 ) * + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 WHERE NOT + col0 + 70 + 5 / 89 * - 14 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2232
SELECT - col0 - - col2 * - ( - col2 ) * + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 WHERE NOT + col0 + 70 + 5 / 89 * - 14 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + 20 FROM tab1 AS cor0
----
100
280
940

query I rowsort
SELECT + 6 * + col2 + - + col0 + + col1 AS col0 FROM tab1
----
274
364
539

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT - ( - COUNT( * ) ) FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2235
SELECT - ( - COUNT ( * ) ) FROM tab1, tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2236
SELECT + col2 * + ( + col2 ) * 6 * + - col1 + col1 + + 78, + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-1352183
NULL
-161745
NULL
-739045
NULL

skipif mysql # not compatible
query II rowsort label-2236
SELECT + col2 * + ( + col2 ) * 6 * + - col1 + col1 + + 78, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-1352183
NULL
-161745
NULL
-739045
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( + - ( + 87 ) ) BETWEEN + col1 AND NULL
----

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT ( - 72 ) * + col0 FROM tab1
----
-3672
-6120
-6552

query II rowsort
SELECT 72, col1 AS col2 FROM tab2
----
72
51
72
67
72
77

query I rowsort
SELECT ( col0 ) * + col1 AS col2 FROM tab0 cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT ALL - 14 + 34 * - COUNT( - + 37 ) AS col1 FROM tab1
----
-116

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL - 14 + 34 * - COUNT ( - + 37 ) AS col1 FROM tab1
----
-116

query III rowsort
SELECT * FROM tab2 WHERE + col0 <> col1 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2244
SELECT DISTINCT 42 + CAST( NULL AS SIGNED ) * + col1 * - col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT DISTINCT 42 + CAST ( NULL AS INTEGER ) * + col1 * - col1 AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2245
SELECT ALL CAST( NULL AS SIGNED ) - + + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL CAST ( NULL AS INTEGER ) - + + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT ALL + 94 - - COUNT( * ) FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL + 94 - - COUNT ( * ) FROM tab2 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT DISTINCT + - MAX( col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2247
SELECT DISTINCT + - MAX ( col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT + col0 * - 67 + + 64 AS col2 FROM tab2 AS cor0
----
-3018
-4224
-4961

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2249
SELECT - 14 DIV + SUM( - col1 ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2249
SELECT - 14 / + SUM ( - col1 ) col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT MIN( DISTINCT + 50 ) FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-2250
SELECT MIN ( DISTINCT + 50 ) FROM tab1
----
50

query I rowsort
SELECT - col0 + - 79 + + 92 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2252
SELECT ALL - col0 * + col2 DIV CAST( col2 AS SIGNED ) * col0 FROM tab2
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL - col0 * + col2 / CAST ( col2 AS INTEGER ) * col0 FROM tab2
----
-2116
-4096
-5625

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col1 * + col0 / - - 52 + + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 AS col1, col1 col0 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2255
SELECT + CAST( - - 32 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-2255
SELECT + CAST ( - - 32 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
32
32
32

query II rowsort
SELECT ALL - - col2 AS col1, 78 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
10
78
47
78
99
78

onlyif mysql # DIV for integer division: 
query I rowsort label-2257
SELECT + ( col2 ) DIV + - col2 - - col0 AS col2 FROM tab2 cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-2257
SELECT + ( col2 ) / + - col2 - - col0 AS col2 FROM tab2 cor0
----
45
63
74

query II rowsort
SELECT DISTINCT - + col0, 15 + col0 AS col1 FROM tab2 cor0
----
-46
61
-64
79
-75
90

query I rowsort
SELECT + 36 AS col2 FROM tab1 AS cor0 WHERE NOT col2 - - + col0 + - col1 IS NULL
----
36
36
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - + 83 col0 FROM tab1
----
4897
5644
7968

onlyif mysql # aggregate syntax: 
query II rowsort label-2261
SELECT - 1 * + - COUNT( * ), + MAX( DISTINCT ( + + col2 ) ) AS col2 FROM tab2
----
3
58

skipif mysql # not compatible
query II rowsort label-2261
SELECT - 1 * + - COUNT ( * ), + MAX ( DISTINCT ( + + col2 ) ) AS col2 FROM tab2
----
3
58

query I rowsort
SELECT ALL - - 53 * + 88 + + - 90 * col2 AS col1 FROM tab0 AS cor0
----
-4246
3764
434

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT 53 / + + col1 NOT BETWEEN col1 AND 53
----
1

skipif mysql # not compatible
query I rowsort label-2263
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 53 / + + col1 NOT BETWEEN col1 AND 53
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2264
SELECT + - col0 * - col0, CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
225
15
7569
87
9409
97

skipif mysql # not compatible
query II rowsort label-2264
SELECT + - col0 * - col0, CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
225
15
7569
87
9409
97

query I rowsort
SELECT ALL + ( + 4 ) FROM tab1 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT ALL + ( + COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL + ( + COUNT ( * ) ) FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NULL < ( col0 )
----

query I rowsort
SELECT DISTINCT + 8 + + + col1 FROM tab1
----
13
22
55

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> col1 + 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT - COUNT( * ) + - 83 + - COUNT( * ) FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-2270
SELECT - COUNT ( * ) + - 83 + - COUNT ( * ) FROM tab1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT + 67 + COUNT( * ) FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-2271
SELECT + 67 + COUNT ( * ) FROM tab2
----
70

query I rowsort
SELECT DISTINCT col1 * - + 40 + + 86 - - col0 + - 5 * - col1 AS col2 FROM tab2
----
-1653
-2184
-2545

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 33 >= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col1 * + - col1 AS col2 FROM tab0 cor0
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT + col2 - 31 FROM tab2
----
-8
27
9

query I rowsort
SELECT ALL - col1 * - - col2 + - + col1 * + col0 FROM tab0
----
-196
-2037
-5022

query I rowsort
SELECT 91 - - col2 FROM tab1 AS cor0
----
150
159
187

query I rowsort
SELECT ALL + + col0 * col2 + col1 FROM tab1 cor0
----
4910
5020
6235

onlyif mysql # DIV for integer division: 
query I rowsort label-2279
SELECT ALL + 73 * - + 47 - + col2 + - col1 DIV 78 + - col2 AS col2 FROM tab1 AS cor0
----
-3549
-3567
-3623

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL + 73 * - + 47 - + col2 + - col1 / 78 + - col2 AS col2 FROM tab1 AS cor0
----
-3549
-3567
-3623

query II rowsort
SELECT ALL - - 67 AS col2, - 25 FROM tab2 AS cor0
----
67
-25
67
-25
67
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT DISTINCT - ( - COUNT( * ) ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT - ( - COUNT ( * ) ) AS col0 FROM tab0 cor0
----
3

query II rowsort
SELECT - - 74 AS col0, col1 - - + 0 + + + col1 FROM tab1 AS cor0
----
74
10
74
28
74
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT + - MAX( - - 24 ) * - ( 0 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2283
SELECT + - MAX ( - - 24 ) * - ( 0 ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2284
SELECT + 19 FROM tab0 AS cor0 WHERE NOT CAST( - - col2 AS DECIMAL ) * + 6 = + col1
----
19
19
19

skipif mysql # not compatible
query I rowsort label-2284
SELECT + 19 FROM tab0 AS cor0 WHERE NOT CAST ( - - col2 AS REAL ) * + 6 = + col1
----
19
19
19

query II rowsort
SELECT DISTINCT + + col1, - col1 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

query I rowsort
SELECT ( 23 ) * + + col2 + - col0 + col1 FROM tab2
----
1326
534
933

onlyif mysql # aggregate syntax: 
query II rowsort label-2287
SELECT MAX( - col1 ), - 16 AS col0 FROM tab1
----
-5
-16

skipif mysql # not compatible
query II rowsort label-2287
SELECT MAX ( - col1 ), - 16 AS col0 FROM tab1
----
-5
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-2288
SELECT DISTINCT - MIN( ALL col1 ) AS col0, 25 FROM tab2
----
-51
25

skipif mysql # not compatible
query II rowsort label-2288
SELECT DISTINCT - MIN ( ALL col1 ) AS col0, 25 FROM tab2
----
-51
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + + 51 ), + 61 col0 FROM tab2 cor0
----
51
61
51
61
51
61

query I rowsort
SELECT + 44 AS col2 FROM tab1 cor0
----
44
44
44

onlyif mysql # aggregate syntax: 
query II rowsort label-2291
SELECT ALL MAX( col2 ) AS col1, COUNT( * ) FROM tab1 AS cor0
----
96
3

skipif mysql # not compatible
query II rowsort label-2291
SELECT ALL MAX ( col2 ) AS col1, COUNT ( * ) FROM tab1 AS cor0
----
96
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT DISTINCT + COUNT( - + 97 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT + COUNT ( - + 97 ) FROM tab1
----
3

query I rowsort
SELECT 17 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT + - COUNT( ALL - + 78 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2294
SELECT + - COUNT ( ALL - + 78 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + col2 + + - col1 + + col2 FROM tab1 AS cor0
----
113
178
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2296
SELECT + + 14 + col2 - CAST( - 24 AS SIGNED ) * - 99 AS col1 FROM tab1 AS cor0
----
-2266
-2294
-2303

skipif mysql # not compatible
query I rowsort label-2296
SELECT + + 14 + col2 - CAST ( - 24 AS INTEGER ) * - 99 AS col1 FROM tab1 AS cor0
----
-2266
-2294
-2303

query II rowsort
SELECT ALL - col0, + col2 AS col1 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL >= col1 + + - 45
----

query I rowsort
SELECT DISTINCT - 51 * col1 + + ( - - ( + + col2 ) ) + + col1 AS col1 FROM tab1
----
-191
-2282
-604

query I rowsort
SELECT ALL col1 + - 10 FROM tab0
----
-9
11
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT + COUNT( - - col1 ) * - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2301
SELECT + COUNT ( - - col1 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT - + COUNT( * ) * 6 * - + 41 FROM tab0 AS cor0
----
738

skipif mysql # not compatible
query I rowsort label-2303
SELECT - + COUNT ( * ) * 6 * - + 41 FROM tab0 AS cor0
----
738

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2304
SELECT - CAST( NULL AS SIGNED ) / + 87 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2304
SELECT - CAST ( NULL AS INTEGER ) / + 87 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col2 * 69 * 4 - - 88 AS col0 FROM tab2 AS cor0
----
11128
16096
6436

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT + - MIN( DISTINCT - - 51 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2306
SELECT + - MIN ( DISTINCT - - 51 ) FROM tab1 AS cor0
----
-51

query II rowsort
SELECT 58, - col0 AS col1 FROM tab2 AS cor0
----
58
-46
58
-64
58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT DISTINCT MAX( DISTINCT 98 ) AS col2 FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-2308
SELECT DISTINCT MAX ( DISTINCT 98 ) AS col2 FROM tab1
----
98

query I rowsort
SELECT + col1 * + 68 AS col0 FROM tab1
----
3196
340
952

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT + ( + ( COUNT( * ) ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2310
SELECT + ( + ( COUNT ( * ) ) ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT ALL + MAX( + + col0 ) * COUNT( * ) AS col1 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL + MAX ( + + col0 ) * COUNT ( * ) AS col1 FROM tab0
----
291

query I rowsort
SELECT ALL - col2 * 33 AS col2 FROM tab0
----
-1551
-3267
-330

onlyif mysql # DIV for integer division: 
query I rowsort label-2313
SELECT ALL - 19 DIV - col1 AS col0 FROM tab0
----
0
0
19

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL - 19 / - col1 AS col0 FROM tab0
----
0
0
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT DISTINCT COUNT( DISTINCT - col2 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2314
SELECT DISTINCT COUNT ( DISTINCT - col2 ) col1 FROM tab2
----
3

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2316
SELECT ALL + ( - + col0 ) * - - CAST( NULL AS SIGNED ) + 18 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL + ( - + col0 ) * - - CAST ( NULL AS INTEGER ) + 18 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 39
----

query I rowsort
SELECT + ( - col1 ) * + col1 + + col1 AS col0 FROM tab0
----
-420
-6480
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2319
SELECT 24 * CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2319
SELECT 24 * CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col2 + - ( - + col1 ) + col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL - - 31 AS col2 FROM tab1 cor0
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT DISTINCT - + SUM( ALL - col1 ) FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-2322
SELECT DISTINCT - + SUM ( ALL - col1 ) FROM tab0 cor0
----
103

query I rowsort
SELECT DISTINCT - 2 * - - ( + 75 ) * - col2 AS col1 FROM tab2 AS cor0
----
3450
6000
8700

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN + - 62 AND + 86 - + col0
----
15
81
47

query II rowsort
SELECT DISTINCT + 33 * + + col0 AS col1, + ( + + col2 ) AS col1 FROM tab2 AS cor0
----
1518
23
2112
40
2475
58

query III rowsort
SELECT * FROM tab0 WHERE NULL >= col2 + 4 + col0
----

query I rowsort
SELECT 62 - + col2 AS col0 FROM tab0
----
-37
15
52

query I rowsort
SELECT - col2 - + 7 + - - ( col0 ) - - - col2 * + col0 AS col1 FROM tab1
----
-4948
-4996
-6172

query I rowsort
SELECT col0 + + 20 FROM tab1
----
105
111
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT + 30 + - + COUNT( * ) AS col0 FROM tab1, tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-2330
SELECT + 30 + - + COUNT ( * ) AS col0 FROM tab1, tab2 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT + 59 + - COUNT( * ) AS col0 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-2331
SELECT + 59 + - COUNT ( * ) AS col0 FROM tab1
----
56

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2333
SELECT DISTINCT + + 76 DIV + 48 + - ( - + 85 ) * + COUNT( * ) FROM tab0 cor0
----
256

skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT + + 76 / + 48 + - ( - + 85 ) * + COUNT ( * ) FROM tab0 cor0
----
256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2334
SELECT DISTINCT 66 + 85 * AVG ( ALL CAST( NULL AS SIGNED ) + - col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT 66 + 85 * AVG ( ALL CAST ( NULL AS INTEGER ) + - col0 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2335
SELECT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2335
SELECT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2336
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2336
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT COUNT( - 4 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2337
SELECT COUNT ( - 4 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT - ( ( SUM( ALL col1 ) ) ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2338
SELECT - ( ( SUM ( ALL col1 ) ) ) AS col0 FROM tab2
----
-195

query I rowsort
SELECT DISTINCT col0 + - 44 FROM tab1
----
41
47
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT + COUNT( - col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2340
SELECT + COUNT ( - col1 ) AS col1 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2341
SELECT + 45 - - col0 DIV col0 FROM tab2
----
46
46
46

skipif mysql # not compatible
query I rowsort label-2341
SELECT + 45 - - col0 / col0 FROM tab2
----
46
46
46

query I rowsort
SELECT ALL - 23 + - col2 FROM tab2
----
-46
-63
-81

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col2 FROM tab1 WHERE NULL <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT - COUNT( * ) + - 14 FROM tab1 WHERE NOT col1 * - col2 < ( - 62 + ( col0 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-2345
SELECT - COUNT ( * ) + - 14 FROM tab1 WHERE NOT col1 * - col2 < ( - 62 + ( col0 ) )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2346
SELECT col2 + CAST( col0 AS SIGNED ) FROM tab0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-2346
SELECT col2 + CAST ( col0 AS INTEGER ) FROM tab0
----
196
62
97

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= ( 88 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT COUNT( ALL ( - col2 ) ) + 7 * - COUNT( * ) FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-2348
SELECT COUNT ( ALL ( - col2 ) ) + 7 * - COUNT ( * ) FROM tab2
----
-18

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN 74 AND col2 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT + 94 + + 51 * COUNT( ALL 16 / - col2 ) FROM tab1
----
247

skipif mysql # not compatible
query I rowsort label-2350
SELECT + 94 + + 51 * COUNT ( ALL 16 / - col2 ) FROM tab1
----
247

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT MIN( ALL col0 ) * - 78 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2351
SELECT MIN ( ALL col0 ) * - 78 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT COUNT( * ) + 75 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-2352
SELECT COUNT ( * ) + 75 FROM tab2
----
78

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 86 ) IS NOT NULL
----

query I rowsort
SELECT ALL + 35 + col0 AS col1 FROM tab2
----
110
81
99

query I rowsort
SELECT - 55 FROM tab0 AS cor0 WHERE NOT ( + col1 / - col0 ) NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT 73 AS col2 FROM tab1 AS cor0 WHERE NOT NULL < ( + 44 / 86 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( - col2 + - 2 * + 62 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2358
SELECT 58 DIV col2 FROM tab2 cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2358
SELECT 58 / col2 FROM tab2 cor0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT DISTINCT + COUNT( * ) FROM tab0 cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT + COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT + COUNT( - 3 ) * - 38 FROM tab2 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-2360
SELECT + COUNT ( - 3 ) * - 38 FROM tab2 AS cor0
----
-114

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - col2 * 17 + + col2 AS col1 FROM tab2
----
-368
-640
-928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2363
SELECT ALL - CAST( NULL AS SIGNED ) * col2 + + 54 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 + + 54 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + col1 + - col0 FROM tab0
----
0
1200
1740

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 71 < - col0
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT DISTINCT - MIN( DISTINCT + 99 ) AS col2 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT - MIN ( DISTINCT + 99 ) AS col2 FROM tab2 AS cor0
----
-99

query I rowsort
SELECT ALL 85 * - col2 + 99 AS col2 FROM tab2 AS cor0
----
-1856
-3301
-4831

onlyif mysql # DIV for integer division: 
query I rowsort label-2368
SELECT + - 74 + col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-2368
SELECT + - 74 + col1 / + col1 AS col2 FROM tab2 AS cor0
----
-73
-73
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2369
SELECT CAST( col0 AS SIGNED ) + + col2 * + col0 FROM tab2 AS cor0
----
1104
2624
4425

skipif mysql # not compatible
query I rowsort label-2369
SELECT CAST ( col0 AS INTEGER ) + + col2 * + col0 FROM tab2 AS cor0
----
1104
2624
4425

query I rowsort
SELECT - col1 + col1 * + col1 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT + - 62 * + col2 + col0 AS col0 FROM tab1 cor0
----
-3573
-4125
-5901

query I rowsort
SELECT - ( col0 ) + col2 FROM tab1 cor0
----
-23
-26
45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN 93 AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2374
SELECT - ( + col0 ) + 63 DIV - 40 AS col1 FROM tab0 AS cor0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-2374
SELECT - ( + col0 ) + 63 / - 40 AS col1 FROM tab0 AS cor0
----
-16
-88
-98

query I rowsort
SELECT - 95 * col2 + + col2 FROM tab1 AS cor0
----
-5546
-6392
-9024

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + 94 ) NOT IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2377
SELECT ALL MAX( - CAST( col0 AS SIGNED ) ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL MAX ( - CAST ( col0 AS INTEGER ) ) AS col1 FROM tab2
----
-46

query I rowsort
SELECT 22 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT - MIN( ALL col2 ) FROM tab0 WHERE + col0 + + col1 IS NOT NULL
----
-10

skipif mysql # not compatible
query I rowsort label-2380
SELECT - MIN ( ALL col2 ) FROM tab0 WHERE + col0 + + col1 IS NOT NULL
----
-10

query I rowsort
SELECT DISTINCT col2 * col0 + ( col2 ) FROM tab0
----
752
880
9702

query I rowsort
SELECT ALL - 66 * - col0 + + 39 AS col1 FROM tab0
----
1029
5781
6441

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT ( + MIN( 60 ) ) AS col1 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-2383
SELECT ( + MIN ( 60 ) ) AS col1 FROM tab1
----
60

query I rowsort
SELECT + col2 - 59 AS col2 FROM tab1 AS cor0
----
0
37
9

query I rowsort
SELECT + 37 + col2 AS col1 FROM tab0 AS cor0 WHERE ( col2 ) NOT BETWEEN + col2 AND 14 - 22
----
136
47
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2386
SELECT DISTINCT + COUNT( CAST( - col0 AS SIGNED ) ) - + COUNT( * ) * COUNT( + col2 ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT + COUNT ( CAST ( - col0 AS INTEGER ) ) - + COUNT ( * ) * COUNT ( + col2 ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT DISTINCT - 97 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - 6 * col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-522
-582
-90

query I rowsort
SELECT + ( 17 ) * col2 FROM tab2 AS cor0
----
391
680
986

query I rowsort
SELECT ALL + + 10 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col1 + - col0 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT DISTINCT + MIN( ALL - - 20 ) AS col0 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT + MIN ( ALL - - 20 ) AS col0 FROM tab0
----
20

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 20 * + + 11 + + ( + col1 ) ) BETWEEN NULL AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 0 * col1 * col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col2 - col0 FROM tab0 AS cor0 WHERE NOT 30 - 95 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT DISTINCT + + MAX( DISTINCT 71 ) AS col0 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-2396
SELECT DISTINCT + + MAX ( DISTINCT 71 ) AS col0 FROM tab0 AS cor0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2397
SELECT DISTINCT - col2 * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT - col2 * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2398
SELECT + CAST( 37 AS SIGNED ) FROM tab0 AS cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-2398
SELECT + CAST ( 37 AS INTEGER ) FROM tab0 AS cor0
----
37
37
37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 9 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2, - col2 FROM tab2 cor0
----
23
-23
40
-40
58
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - ( - + 34 ) * col2 + + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2402
SELECT ALL + ( - col2 ) AS col2 FROM tab0 WHERE NOT ( ( + CAST( NULL AS SIGNED ) ) ) NOT BETWEEN + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL + ( - col2 ) AS col2 FROM tab0 WHERE NOT ( ( + CAST ( NULL AS INTEGER ) ) ) NOT BETWEEN + col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 - - + col2 + - ( col2 + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT ALL + SUM( DISTINCT + col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL + SUM ( DISTINCT + col2 ) AS col1 FROM tab0
----
156

query I rowsort
SELECT ALL - col2 * - + col1 FROM tab2
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-2406
SELECT + col1 DIV - 5 FROM tab1
----
-1
-2
-9

skipif mysql # not compatible
query I rowsort label-2406
SELECT + col1 / - 5 FROM tab1
----
-1
-2
-9

query I rowsort
SELECT DISTINCT 29 * - col2 * + col1 * + 31 * - col0 FROM tab1
----
22542425
261461564
61621056

query I rowsort
SELECT DISTINCT - col1 * - col0 + col0 FROM tab1 WHERE - 37 * + ( + col1 ) NOT BETWEEN col1 AND ( col0 + col2 )
----
4368
510
765

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT MAX( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2410
SELECT MAX ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 81 / + col0 * col0 * col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2411
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 81 / + col0 * col0 * col2 >= NULL
----
0

query I rowsort
SELECT + 22 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
22
22
22

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 WHERE - col0 BETWEEN col0 + + col2 AND - 41
----

query I rowsort
SELECT ALL col2 + 38 AS col1 FROM tab2
----
61
78
96

query I rowsort
SELECT ALL + col1 + + + col0 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT ALL - col1 + + ( - col1 ) + - 20 FROM tab1 AS cor0
----
-114
-30
-48

query I rowsort
SELECT + 16 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + 2 ) AS col2 FROM tab2 AS cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2420
SELECT ALL 16 * + - 10 + - + 3 * + + ( col0 ) DIV 80 - col1 * col2 FROM tab0 AS cor0
----
-262
-373
-3967

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL 16 * + - 10 + - + 3 * + + ( col0 ) / 80 - col1 * col2 FROM tab0 AS cor0
----
-262
-373
-3967

query I rowsort
SELECT + col0 - - col2 AS col2 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2422
SELECT ALL - col2 AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-2422
SELECT ALL - col2 AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + - col2 IS NULL AND NULL > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2424
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT ( - col1 + - CAST( NULL AS SIGNED ) * + 31 ) BETWEEN NULL AND ( 12 )
----
0

skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT ( - col1 + - CAST ( NULL AS INTEGER ) * + 31 ) BETWEEN NULL AND ( 12 )
----
0

query I rowsort
SELECT 62 + - col0 + col0 FROM tab2
----
62
62
62

query I rowsort
SELECT 52 + - col2 - - col2 AS col0 FROM tab2
----
52
52
52

query III rowsort
SELECT * FROM tab0 WHERE NULL < ( col0 / - col0 * + col1 )
----

query II rowsort
SELECT DISTINCT - 21 AS col0, 28 AS col1 FROM tab1
----
-21
28

query I rowsort
SELECT DISTINCT + ( - 80 ) + + - col0 + + - col1 + - - col1 AS col0 FROM tab1
----
-131
-165
-171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - + col2 col0 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT ALL 87 + - col1 AS col1 FROM tab0
----
6
66
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2432
SELECT col0 + + - CAST( col2 AS SIGNED ) * - col1 AS col1 FROM tab1
----
1395
3287
380

skipif mysql # not compatible
query I rowsort label-2432
SELECT col0 + + - CAST ( col2 AS INTEGER ) * - col1 AS col1 FROM tab1
----
1395
3287
380

query I rowsort
SELECT - 92 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-2434
SELECT DISTINCT - COUNT( * ), 61 * + 69 AS col0 FROM tab2 AS cor0
----
-3
4209

skipif mysql # not compatible
query II rowsort label-2434
SELECT DISTINCT - COUNT ( * ), 61 * + 69 AS col0 FROM tab2 AS cor0
----
-3
4209

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT - MIN( DISTINCT - + col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
77

skipif mysql # not compatible
query I rowsort label-2435
SELECT - MIN ( DISTINCT - + col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT ALL COUNT( ALL + col2 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2436
SELECT ALL COUNT ( ALL + col2 ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT - - COUNT( DISTINCT 36 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2437
SELECT - - COUNT ( DISTINCT 36 ) FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2438
SELECT + col0 DIV col1, + col2 AS col0 FROM tab2
----
0
23
0
40
1
58

skipif mysql # not compatible
query II rowsort label-2438
SELECT + col0 / col1, + col2 AS col0 FROM tab2
----
0
23
0
40
1
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 col2 FROM tab2 cor0
----
29

query I rowsort
SELECT ALL - - col1 + - ( - col2 ) FROM tab2 AS cor0
----
117
125
74

query II rowsort
SELECT DISTINCT 87, col2 - - col2 - col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 AND col1 - - 82
----

query I rowsort
SELECT col1 + - 83 AS col2 FROM tab0
----
-2
-62
-82

query I rowsort
SELECT col0 + - - col1 + + - 86 * col0 AS col2 FROM tab0
----
-1194
-7374
-8244

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT ALL - COUNT( * ) AS col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

query I rowsort
SELECT 14 AS col1 FROM tab0 WHERE NOT - ( - 12 ) * + col2 BETWEEN - + col2 * + col2 AND ( NULL )
----

query III rowsort
SELECT ALL col1 * col0 + - 6, - col0 AS col1, - 83 * + 52 + + - col0 + ( ( col1 ) ) AS col2 FROM tab0
----
9 values hashing to 62a49de78648d2cf5f3ee8c239d484b8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2447
SELECT * FROM tab0 WHERE NOT - + CAST( + col0 AS SIGNED ) BETWEEN NULL AND col1
----

skipif mysql # not compatible
query III rowsort label-2447
SELECT * FROM tab0 WHERE NOT - + CAST ( + col0 AS INTEGER ) BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2448
SELECT + - CAST( + col1 AS SIGNED ) * 4 * + col1 FROM tab0 AS cor0
----
-1764
-26244
-4

skipif mysql # not compatible
query I rowsort label-2448
SELECT + - CAST ( + col1 AS INTEGER ) * 4 * + col1 FROM tab0 AS cor0
----
-1764
-26244
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2449
SELECT ALL - col2 * col2 + - CAST( 66 AS SIGNED ) FROM tab1 AS cor0
----
-3547
-4690
-9282

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL - col2 * col2 + - CAST ( 66 AS INTEGER ) FROM tab1 AS cor0
----
-3547
-4690
-9282

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2450
SELECT COUNT( + col2 ) DIV - 93 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2450
SELECT COUNT ( + col2 ) / - 93 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL - ( - 60 ) FROM tab1 cor0
----
60
60
60

query I rowsort
SELECT ALL - col1 * - col1 * + col1 + 14 - col2 FROM tab1
----
103769
2662
80

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( NULL ) IN ( + + col1, + col2 / + + col2 ) )
----

query I rowsort
SELECT ALL - - col1 * - 74 * - 17 + - - 23 + - col0 + + - col2 + - 84 + - 12 + col0 + + col2 * col1 * col1 * + col1 + + col0 AS col1 FROM tab0 AS cor0
----
119032
1282
25079520

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT ALL 35 - + COUNT( * ) col0 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2455
SELECT ALL 35 - + COUNT ( * ) col0 FROM tab1 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT ALL - COUNT( * ) * + 12 * 98 + + COUNT( * ) FROM tab2 AS cor0
----
-3525

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL - COUNT ( * ) * + 12 * 98 + + COUNT ( * ) FROM tab2 AS cor0
----
-3525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2457
SELECT - + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2457
SELECT - + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 82 + - 73 AS col1 FROM tab2
----
-155
-155
-155

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 51 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2460
SELECT COUNT( + CAST( + + 5 AS DECIMAL ) ) AS col0, + 1 * - 19 AS col0 FROM tab2
----
3
-19

skipif mysql # not compatible
query II rowsort label-2460
SELECT COUNT ( + CAST ( + + 5 AS REAL ) ) AS col0, + 1 * - 19 AS col0 FROM tab2
----
3
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-2461
SELECT DISTINCT 31 DIV + col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT 31 / + col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT + + MIN( + 49 ) FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-2462
SELECT + + MIN ( + 49 ) FROM tab2 AS cor0
----
49

query I rowsort
SELECT DISTINCT + ( 56 ) FROM tab2 AS cor0
----
56

query I rowsort
SELECT ALL ( col1 ) * - 22 AS col0 FROM tab2
----
-1122
-1474
-1694

query I rowsort
SELECT DISTINCT + col1 * + col0 * + + col1 FROM tab2 WHERE NOT + col0 + 60 < NULL
----

query II rowsort
SELECT + col2 AS col1, - col0 + + + col1 AS col0 FROM tab1 AS cor0
----
59
-80
68
-44
96
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT - COUNT( * ) * + + SUM( DISTINCT - 95 ) col0 FROM tab0 AS cor0
----
285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2467
SELECT - COUNT ( * ) * + + SUM ( DISTINCT - 95 ) col0 FROM tab0 AS cor0
----
285

query I rowsort
SELECT DISTINCT col2 * + 76 AS col0 FROM tab2 AS cor0
----
1748
3040
4408

onlyif mysql # aggregate syntax: 
query II rowsort label-2469
SELECT DISTINCT - 30 AS col1, COUNT( + col0 ) FROM tab1 AS cor0
----
-30
3

skipif mysql # not compatible
query II rowsort label-2469
SELECT DISTINCT - 30 AS col1, COUNT ( + col0 ) FROM tab1 AS cor0
----
-30
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2470
SELECT - 31 DIV - 63 - - col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2470
SELECT - 31 / - 63 - - col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL + 77 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + ( - 14 ) AS col1 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN - 16 AND NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NOT NULL IN ( + 65, 41 + + 94 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( + col0 ) + col2 col2, + col0 * - - col1 FROM tab2
----
104
4928
133
5025
69
2346

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2475
SELECT DISTINCT col2 + - col0 - - col1 + + + col0 * CAST( - + col0 AS SIGNED ) FROM tab1
----
-2542
-7246
-8257

skipif mysql # not compatible
query I rowsort label-2475
SELECT DISTINCT col2 + - col0 - - col1 + + + col0 * CAST ( - + col0 AS INTEGER ) FROM tab1
----
-2542
-7246
-8257

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT + COUNT( * ) AS col1 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2476
SELECT + COUNT ( * ) AS col1 FROM tab1, tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2477
SELECT ALL 22 + - CAST( - col1 AS SIGNED ) AS col2 FROM tab0
----
103
23
43

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL 22 + - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0
----
103
23
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2478
SELECT + 1 + + - 57 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2478
SELECT + 1 + + - 57 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT DISTINCT + 61 + - + COUNT( * ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2479
SELECT DISTINCT + 61 + - + COUNT ( * ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT ALL + + SUM( DISTINCT col0 ) * - + 52 * - ( - ( + 47 ) ) AS col0 FROM tab1 AS cor0
----
-554788

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL + + SUM ( DISTINCT col0 ) * - + 52 * - ( - ( + 47 ) ) AS col0 FROM tab1 AS cor0
----
-554788

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT ALL + - MIN( DISTINCT - 43 ) col1 FROM tab2 cor0
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2481
SELECT ALL + - MIN ( DISTINCT - 43 ) col1 FROM tab2 cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT ALL - SUM( ALL col1 ) * - MIN( ALL + col0 ) AS col1 FROM tab2 cor0
----
8970

skipif mysql # not compatible
query I rowsort label-2482
SELECT ALL - SUM ( ALL col1 ) * - MIN ( ALL + col0 ) AS col1 FROM tab2 cor0
----
8970

query I rowsort
SELECT + 63 + - col0 AS col0 FROM tab1 AS cor0
----
-22
-28
12

query I rowsort
SELECT ALL + col0 * - 35 * + 12 * + col2 FROM tab2 AS cor0
----
-1075200
-1827000
-444360

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2485
SELECT * FROM tab2 WHERE + CAST( - + col0 AS SIGNED ) * - + 75 = + + col0
----

skipif mysql # not compatible
query III rowsort label-2485
SELECT * FROM tab2 WHERE + CAST ( - + col0 AS INTEGER ) * - + 75 = + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT COUNT( - + ( + + 54 ) ) - + MIN( - col1 ) AS col1 FROM tab2 cor0
----
80

skipif mysql # not compatible
query I rowsort label-2486
SELECT COUNT ( - + ( + + 54 ) ) - + MIN ( - col1 ) AS col1 FROM tab2 cor0
----
80

query I rowsort
SELECT DISTINCT - - 53 - + - col1 AS col1 FROM tab0 AS cor0
----
134
54
74

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + ( ( + + col1 ) )
----

query I rowsort
SELECT + col1 + - col0 AS col1 FROM tab0 AS cor0 WHERE - col0 * - col0 * + + 2 < NULL
----

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NULL IN ( col1 * - col0 + col2 / 98 - + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 col1 FROM tab2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2493
SELECT 44 * - - 96 * CAST( - - ( + 52 ) AS SIGNED ) FROM tab2
----
219648
219648
219648

skipif mysql # not compatible
query I rowsort label-2493
SELECT 44 * - - 96 * CAST ( - - ( + 52 ) AS INTEGER ) FROM tab2
----
219648
219648
219648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col0 FROM tab1
----
63
63
63

query I rowsort
SELECT - col1 * + + col2 AS col1 FROM tab0
----
-210
-3807
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT DISTINCT COUNT( - col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2497
SELECT DISTINCT COUNT ( - col2 ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2498
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= CAST( + ( - + 32 ) AS SIGNED ) / col1 + + col1 - - col1 + - - 46
----

skipif mysql # not compatible
query III rowsort label-2498
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= CAST ( + ( - + 32 ) AS INTEGER ) / col1 + + col1 - - col1 + - - 46
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2499
SELECT ALL - col1 DIV + + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL - col1 / + + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT DISTINCT - SUM( + col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT - SUM ( + col1 ) FROM tab0
----
-103

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NULL IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # DIV for integer division: 
query I rowsort label-2502
SELECT ( 3 ) DIV 86 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2502
SELECT ( 3 ) / 86 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 0 + + 99 FROM tab0 AS cor0
----
99
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 20 col1 FROM tab1 AS cor0
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT - COUNT( * ) + - - 14 AS col1 FROM tab1 cor0
----
11

skipif mysql # not compatible
query I rowsort label-2505
SELECT - COUNT ( * ) + - - 14 AS col1 FROM tab1 cor0
----
11

query I rowsort
SELECT col0 * - - col2 + + - ( + + 88 ) FROM tab0 AS cor0
----
617
782
9515

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2507
SELECT * FROM tab0 AS cor0 WHERE + col2 * col2 * - col1 <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2507
SELECT * FROM tab0 AS cor0 WHERE + col2 * col2 * - col1 <= CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2508
SELECT - 19 + + + 47 DIV + col2 + + col2 AS col0 FROM tab0 AS cor0
----
-5
29
80

skipif mysql # not compatible
query I rowsort label-2508
SELECT - 19 + + + 47 / + col2 + + col2 AS col0 FROM tab0 AS cor0
----
-5
29
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2509
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( - col0 AS SIGNED ) IN ( + - ( CAST( CAST( + + col1 AS SIGNED ) AS SIGNED ) ) * + 94, col0 + col2, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2509
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( - col0 AS INTEGER ) IN ( + - ( CAST ( CAST ( + + col1 AS INTEGER ) AS INTEGER ) ) * + 94, col0 + col2, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 28 * col1 * - col1 + - col2 * - - 70 + - col1 FROM tab1 AS cor0
----
-12222
-4835
-66659

query I rowsort
SELECT ALL - 76 * + - col0 * - - col0 + + - col2 AS col1 FROM tab2 AS cor0
----
160793
311256
427442

query I rowsort
SELECT DISTINCT - 22 * - col0 AS col1 FROM tab2
----
1012
1408
1650

query I rowsort
SELECT + col0 + 0 AS col2 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2514
SELECT 30 AS col2, ( + COUNT( * ) ) AS col0 FROM tab0
----
30
3

skipif mysql # not compatible
query II rowsort label-2514
SELECT 30 AS col2, ( + COUNT ( * ) ) AS col0 FROM tab0
----
30
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 62 - - col1 + - + 66 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT - ( + MAX( + - 25 ) ) AS col2 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-2516
SELECT - ( + MAX ( + - 25 ) ) AS col2 FROM tab0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2517
SELECT + CAST( + + 20 AS SIGNED ) * + col0 AS col1 FROM tab0 AS cor0
----
1740
1940
300

skipif mysql # not compatible
query I rowsort label-2517
SELECT + CAST ( + + 20 AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0
----
1740
1940
300

query II rowsort
SELECT + col2 * - + col2 + - 90 - + + 6 AS col2, col2 FROM tab0 cor0
----
-196
10
-2305
47
-9897
99

query I rowsort
SELECT - col1 - + 14 * col1 * - col1 + + - ( - - col2 ) AS col1 FROM tab0 AS cor0
----
-86
6143
91726

query I rowsort
SELECT 29 + + - 56 + + col1 FROM tab1
----
-13
-22
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2521
SELECT CAST( NULL AS SIGNED ) + - 2 + - 89 + + 19 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2521
SELECT CAST ( NULL AS INTEGER ) + - 2 + - 89 + + 19 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 44 + - + col2 FROM tab2
----
-14
21
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2523
SELECT ALL + CAST( NULL AS SIGNED ) col0 FROM tab1 cor0 WHERE NULL >= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2523
SELECT ALL + CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT 19 + + col1 AS col2 FROM tab2 AS cor0
----
70
86
96

query I rowsort
SELECT DISTINCT col2 - - - col2 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 85 AS col0 FROM tab1 cor0
----
85
85
85

query I rowsort
SELECT ALL + 80 + ( - + col0 ) AS col1 FROM tab1 AS cor0
----
-11
-5
29

query I rowsort
SELECT ALL + + col0 - + - col2 * - col2 + + col0 AS col0 FROM tab0 AS cor0
----
-2179
-9607
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT DISTINCT - + 34 - + + 64 * - + COUNT( * ) - COUNT( * ) FROM tab1 AS cor0
----
155

skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT - + 34 - + + 64 * - + COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT - + COUNT( ALL - 40 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2530
SELECT - + COUNT ( ALL - 40 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT 80 * + - ( 15 ) FROM tab0 AS cor0
----
-1200
-1200
-1200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 52 ) * - 22 + col1 col0 FROM tab2 AS cor0
----
-1067
-1077
-1093

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2533
SELECT ALL - col2 * col0 col0, + CAST( + - col2 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
-705
3807
-870
210
-9603
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2533
SELECT ALL - col2 * col0 col0, + CAST ( + - col2 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
-705
3807
-870
210
-9603
99

query I rowsort
SELECT DISTINCT + col1 * + - 96 - + 2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT DISTINCT SUM( 48 ) col1 FROM tab1 AS cor0
----
144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2535
SELECT DISTINCT SUM ( 48 ) col1 FROM tab1 AS cor0
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-2536
SELECT ALL + ( - col1 ) DIV - + col1 FROM tab1 WHERE NOT + - 83 IN ( + col2, 49, + 1 DIV 98 )
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL + ( - col1 ) / - + col1 FROM tab1 WHERE NOT + - 83 IN ( + col2, 49, + 1 / 98 )
----
1
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2537
SELECT - 4 / - + col2 + 79 + + col1 * - ( col2 ) * - ( - 59 ) FROM tab0 WHERE NOT ( NULL ) BETWEEN CAST( - ( col2 ) AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2537
SELECT - 4 / - + col2 + 79 + + col1 * - ( col2 ) * - ( - 59 ) FROM tab0 WHERE NOT ( NULL ) BETWEEN CAST ( - ( col2 ) AS REAL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2538
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IN ( 96, - 82, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2538
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IN ( 96, - 82, - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 57 + + 90
----

query I rowsort
SELECT ALL + 47 * - - col1 FROM tab1 AS cor0
----
2209
235
658

query I rowsort
SELECT - col1 * + + ( + col1 ) FROM tab1
----
-196
-2209
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2542
SELECT + CAST( - MAX( - col0 ) AS SIGNED ) col2 FROM tab0 cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2542
SELECT + CAST ( - MAX ( - col0 ) AS INTEGER ) col2 FROM tab0 cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT ALL ( + + COUNT( * ) ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL ( + + COUNT ( * ) ) AS col2 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT DISTINCT COUNT( + 18 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2544
SELECT DISTINCT COUNT ( + 18 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL 10 + + 33 AS col2 FROM tab0
----
43
43
43

query I rowsort
SELECT ALL - 18 * col0 + - col0 AS col2 FROM tab2
----
-1216
-1425
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT DISTINCT - ( COUNT( * ) ) AS col0 FROM tab2 WHERE NOT + 78 > - + col2 + col2 + + col1
----
0

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT - ( COUNT ( * ) ) AS col0 FROM tab2 WHERE NOT + 78 > - + col2 + col2 + + col1
----
0

query I rowsort
SELECT 14 + + col1 * ( - + ( col1 ) ) AS col1 FROM tab1
----
-11
-182
-2195

query I rowsort
SELECT 93 * - 48 + + 0 AS col0 FROM tab0
----
-4464
-4464
-4464

onlyif mysql # DIV for integer division: 
query I rowsort label-2550
SELECT - col1 * + col0 + + col1 + + + col1 DIV + + col0 AS col1 FROM tab1
----
-420
-4230
-700

skipif mysql # not compatible
query I rowsort label-2550
SELECT - col1 * + col0 + + col1 + + + col1 / + + col0 AS col1 FROM tab1
----
-420
-4230
-700

query I rowsort
SELECT DISTINCT - - 50 FROM tab1 WHERE NOT col0 IS NULL OR NOT NULL NOT IN ( + ( - 70 ), + col2, - col1 )
----
50

query I rowsort
SELECT 90 * + col2 + - col0 AS col1 FROM tab2
----
2024
3536
5145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2553
SELECT col0 FROM tab1 WHERE NULL <= - 33 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2553
SELECT col0 FROM tab1 WHERE NULL <= - 33 + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + ( + col0 ) + - - col2 * col1 AS col2 FROM tab0
----
196
297
3822

query I rowsort
SELECT col1 + - - 41 FROM tab0
----
122
42
62

query I rowsort
SELECT + 41 + + + ( - ( - + col1 ) ) FROM tab0 AS cor0
----
122
42
62

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 + - col1 IS NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col1, - col0 * - ( + 49 ) FROM tab0
----
-10
4263
-47
735
-99
4753

query III rowsort
SELECT * FROM tab0 WHERE NULL <> 78 * + + col2 + col1
----

query I rowsort
SELECT DISTINCT 28 + + col0 AS col0 FROM tab1
----
113
119
79

query I rowsort
SELECT + 39 * 33 - 41 AS col2 FROM tab2
----
1246
1246
1246

query I rowsort
SELECT DISTINCT 93 * - 20 AS col0 FROM tab2 AS cor0
----
-1860

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2563
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - + 1, col0 * ( + CAST( + 40 AS SIGNED ) ), + 64 - + - col1 )
----

skipif mysql # not compatible
query III rowsort label-2563
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - + 1, col0 * ( + CAST ( + 40 AS INTEGER ) ), + 64 - + - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2564
SELECT - + COUNT( * ) * + + 56 * - - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2564
SELECT - + COUNT ( * ) * + + 56 * - - CAST ( NULL AS REAL ) AS col2 FROM tab1 cor0
----
NULL

query II rowsort
SELECT DISTINCT + col1, col1 FROM tab0 cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT ALL + + COUNT( + 28 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL + + COUNT ( + 28 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT ALL - MIN( DISTINCT 5 ) AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL - MIN ( DISTINCT 5 ) AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - col0 * + 35 FROM tab2
----
-1610
-2240
-2625

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= - 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT 3 * COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2570
SELECT 3 * COUNT ( * ) AS col2 FROM tab0
----
9

query I rowsort
SELECT DISTINCT col0 * col2 * - 10 FROM tab0
----
-7050
-8700
-96030

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT COUNT( * ) * + 85 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-2572
SELECT COUNT ( * ) * + 85 FROM tab0
----
255

query III rowsort
SELECT * FROM tab2 WHERE NOT + 50 BETWEEN NULL AND ( + 20 ) - + 31
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT ALL 1 * MIN( ALL + ( col1 ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL 1 * MIN ( ALL + ( col1 ) ) FROM tab2
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2575
SELECT CAST( NULL AS DECIMAL ) * - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2575
SELECT CAST ( NULL AS REAL ) * - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2576
SELECT DISTINCT - SUM( + - 82 ) AS col2, + MIN( ALL col1 ) * + 32 col0 FROM tab1 AS cor0
----
246
160

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2576
SELECT DISTINCT - SUM ( + - 82 ) AS col2, + MIN ( ALL col1 ) * + 32 col0 FROM tab1 AS cor0
----
246
160

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT DISTINCT - + MIN( + 94 ) FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT - + MIN ( + 94 ) FROM tab2 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT ( + + COUNT( * ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2578
SELECT ( + + COUNT ( * ) ) AS col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - col1 + + col2 + + - col0 * + 6 + - 35 FROM tab1
----
-259
-491
-560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2580
SELECT ALL - 63 + + COUNT( 68 ) * - SUM( ALL col1 ) / - CAST( NULL AS SIGNED ) FROM tab1 WHERE - 45 >= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL - 63 + + COUNT ( 68 ) * - SUM ( ALL col1 ) / - CAST ( NULL AS INTEGER ) FROM tab1 WHERE - 45 >= col2
----
NULL

query I rowsort
SELECT + + 57 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2582
SELECT DISTINCT CAST( NULL AS SIGNED ) * + ( + + COUNT( * ) ) + - 0 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( + + COUNT ( * ) ) + - 0 AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT COUNT( * ) * - 11 AS col2 FROM tab0 WHERE NULL = ( + + 99 )
----
0

skipif mysql # not compatible
query I rowsort label-2583
SELECT COUNT ( * ) * - 11 AS col2 FROM tab0 WHERE NULL = ( + + 99 )
----
0

query I rowsort
SELECT + + col1 * - col2 + 75 * - col0 FROM tab1 AS cor0
----
-10021
-5169
-6670

onlyif mysql # DIV for integer division: 
query I rowsort label-2585
SELECT + - col2 + + 39 + - col1 DIV ( + 66 ) AS col0 FROM tab2 AS cor0
----
-2
-20
16

skipif mysql # not compatible
query I rowsort label-2585
SELECT + - col2 + + 39 + - col1 / ( + 66 ) AS col0 FROM tab2 AS cor0
----
-2
-20
16

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * + 92 * - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col2 AS col2, + col2 AS col1 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT - COUNT( * ) + + 43 AS col2 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-2588
SELECT - COUNT ( * ) + + 43 AS col2 FROM tab2 AS cor0
----
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 29 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2590
SELECT ALL + + CAST( NULL AS SIGNED ) + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL + + CAST ( NULL AS INTEGER ) + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2591
SELECT + col1 DIV + col2 + + + col2 * - + col1 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-2591
SELECT + col1 / + col2 + + + col2 * - + col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab1 WHERE ( 51 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT - - COUNT( * ) * 74 FROM tab0 WHERE col1 = + - 98
----
0

skipif mysql # not compatible
query I rowsort label-2593
SELECT - - COUNT ( * ) * 74 FROM tab0 WHERE col1 = + - 98
----
0

query I rowsort
SELECT DISTINCT col1 + - 3 FROM tab2 WHERE - 75 * 68 IS NULL
----

query I rowsort
SELECT ALL 92 + + 94 + + col2 FROM tab1
----
245
254
282

query III rowsort
SELECT * FROM tab1 WHERE + + col2 - - - 54 BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT ALL + 17 + - COUNT( + col0 ) FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL + 17 + - COUNT ( + col0 ) FROM tab1
----
14

query I rowsort
SELECT ALL 44 - + 76 FROM tab2 AS cor0
----
-32
-32
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 + 24 - col0 * 87 col0 FROM tab1 AS cor0
----
-3616
-3699
-6946

query I rowsort
SELECT - col2 * col1 - + + col0 + + 44 + + 90 FROM tab2 AS cor0
----
-1085
-3010
-3827

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT ALL + 66 - - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL + 66 - - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT DISTINCT SUM( DISTINCT - ( + col2 ) ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-2602
SELECT DISTINCT SUM ( DISTINCT - ( + col2 ) ) FROM tab2
----
-121

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2603
SELECT ALL MIN( ALL + col1 ) - + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL MIN ( ALL + col1 ) - + - CAST ( NULL AS REAL ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT ALL + ( + + MAX( + col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2604
SELECT ALL + ( + + MAX ( + col0 ) ) FROM tab0
----
97

query I rowsort
SELECT DISTINCT + ( - + col0 ) AS col0 FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2606
SELECT ALL - CAST( + ( + col2 ) AS SIGNED ), col0 AS col2 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

skipif mysql # not compatible
query II rowsort label-2606
SELECT ALL - CAST ( + ( + col2 ) AS INTEGER ), col0 AS col2 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT DISTINCT + col2 * + - ( + + col2 ) AS col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT ALL - - SUM( DISTINCT + - col2 ) * COUNT( ALL + - 48 ) FROM tab0 AS cor0
----
-468

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL - - SUM ( DISTINCT + - col2 ) * COUNT ( ALL + - 48 ) FROM tab0 AS cor0
----
-468

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2609
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2609
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + col1 IS NULL
----

query II rowsort
SELECT - col1 AS col2, col0 AS col2 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT ALL COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL <> + col2 * col1 - + col1 * + col0 * - col0 + 46 + + 18
----
0

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL <> + col2 * col1 - + col1 * + col0 * - col0 + 46 + + 18
----
0

query II rowsort
SELECT DISTINCT + + col2 AS col1, ( - 29 ) FROM tab0 AS cor0
----
10
-29
47
-29
99
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT - + MAX( ALL + ( + col0 ) ) FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2613
SELECT - + MAX ( ALL + ( + col0 ) ) FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----
NULL

query II rowsort
SELECT ALL - col2, col0 AS col0 FROM tab2
----
-23
46
-40
64
-58
75

query I rowsort
SELECT DISTINCT + 11 * - col1 FROM tab1
----
-154
-517
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 72 col2, col2 AS col1 FROM tab2
----
-72
23
-72
40
-72
58

query I rowsort
SELECT ALL + col2 * - - col0 AS col2 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2618
SELECT DISTINCT AVG ( ALL - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2618
SELECT DISTINCT AVG ( ALL - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - 11 * - - col0 * col1 FROM tab2
----
-25806
-54208
-55275

query I rowsort
SELECT DISTINCT - col0 * ( - + col2 ) AS col2 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT + 35 * - - COUNT( * ) FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-2621
SELECT + 35 * - - COUNT ( * ) FROM tab1 AS cor0
----
105

query I rowsort
SELECT DISTINCT col1 * - + col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query II rowsort
SELECT DISTINCT + - col1, col1 AS col0 FROM tab1 cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT DISTINCT - 30 - - 24 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT ALL + 32 + - MAX( ALL - + 85 ) AS col1 FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL + 32 + - MAX ( ALL - + 85 ) AS col1 FROM tab2
----
117

query I rowsort
SELECT ALL 3 + - col1 + + 3 FROM tab2
----
-45
-61
-71

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2627
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

skipif mysql # not compatible
query IIIIII rowsort label-2627
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT DISTINCT COUNT( * ) + + 92 AS col2 FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-2628
SELECT DISTINCT COUNT ( * ) + + 92 AS col2 FROM tab0 AS cor0
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-2629
SELECT ALL COUNT( * ), COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-2629
SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3
3

query I rowsort
SELECT - - col2 * + col1 - - col2 * - col1 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + 8 AS col2 FROM tab1 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT ALL + - ( - col2 ) * - col0 + col0 * + 95 AS col2 FROM tab2 AS cor0
----
2775
3312
3520

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT + 57 - + + SUM( col0 ) AS col1 FROM tab1 AS cor0
----
-170

skipif mysql # not compatible
query I rowsort label-2633
SELECT + 57 - + + SUM ( col0 ) AS col1 FROM tab1 AS cor0
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT - COUNT( ALL 62 ) FROM tab1 WHERE - - col0 BETWEEN NULL AND + 3 * - - col2
----
0

skipif mysql # not compatible
query I rowsort label-2634
SELECT - COUNT ( ALL 62 ) FROM tab1 WHERE - - col0 BETWEEN NULL AND + 3 * - - col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2635
SELECT col1 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2635
SELECT col1 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 78 + - 61 FROM tab0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-2637
SELECT ALL - 86 AS col2, - COUNT( * ) FROM tab1
----
-86
-3

skipif mysql # not compatible
query II rowsort label-2637
SELECT ALL - 86 AS col2, - COUNT ( * ) FROM tab1
----
-86
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2638
SELECT DISTINCT + 53 * - - ( + 37 ) + - ( col2 ) - - 81 + - ( + col2 ) + - col0 DIV + + col1 AS col1 FROM tab2
----
1925
1962
1996

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT + 53 * - - ( + 37 ) + - ( col2 ) - - 81 + - ( + col2 ) + - col0 / + + col1 AS col1 FROM tab2
----
1925
1962
1996

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2639
SELECT DISTINCT col1 DIV + col1 + + CAST( - - col2 AS SIGNED ) FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-2639
SELECT DISTINCT col1 / + col1 + + CAST ( - - col2 AS INTEGER ) FROM tab0
----
100
11
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2640
SELECT ALL - 9 + + 51 DIV + col2 AS col0 FROM tab2
----
-7
-8
-9

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL - 9 + + 51 / + col2 AS col0 FROM tab2
----
-7
-8
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 87 IN ( - col1, + 10, - col1 + + col1, col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + - 48 FROM tab2
----
-25
-8
10

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1, + col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2644
SELECT ALL CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + 22 IS NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT ALL CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + 22 IS NULL )
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col1 ) = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT - COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2646
SELECT - COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
-9

query I rowsort
SELECT 90 * - - 23 FROM tab0
----
2070
2070
2070

query I rowsort
SELECT - col1 * - 41 FROM tab2
----
2091
2747
3157

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1 / + 39, col0, + ( - col2 ) )
----

query I rowsort
SELECT + 24 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2651
SELECT DISTINCT - - ( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2651
SELECT DISTINCT - - ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2652
SELECT ALL - 95 col1, - col1 / - 9 * + CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0 WHERE ( NULL ) < + - 88
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2652
SELECT ALL - 95 col1, - col1 / - 9 * + CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0 WHERE ( NULL ) < + - 88
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - ( col1 ) AND + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2654
SELECT - SUM( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2654
SELECT - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * + 36 = - 73
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT DISTINCT 21 * + + COUNT( * ) * + - 84 col0 FROM tab0
----
-5292

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2656
SELECT DISTINCT 21 * + + COUNT ( * ) * + - 84 col0 FROM tab0
----
-5292

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT ALL + 50 * - COUNT( * ) AS col1 FROM tab1
----
-150

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL + 50 * - COUNT ( * ) AS col1 FROM tab1
----
-150

query III rowsort
SELECT * FROM tab1 WHERE NOT - - ( + ( col2 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query I rowsort
SELECT - - col0 * + - 36 FROM tab2 AS cor0
----
-1656
-2304
-2700

onlyif mysql # DIV for integer division: 
query I rowsort label-2661
SELECT DISTINCT + ( + col1 ) * 90 DIV + col0 FROM tab1 AS cor0
----
24
46
5

skipif mysql # not compatible
query I rowsort label-2661
SELECT DISTINCT + ( + col1 ) * 90 / + col0 FROM tab1 AS cor0
----
24
46
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT + + COUNT( * ) * + 93 AS col1 FROM tab2 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-2662
SELECT + + COUNT ( * ) * + 93 AS col1 FROM tab2 AS cor0
----
279

query I rowsort
SELECT ( + + 7 ) FROM tab2 AS cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT DISTINCT + COUNT( * ) * 11 col2 FROM tab2
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2664
SELECT DISTINCT + COUNT ( * ) * 11 col2 FROM tab2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT COUNT( * ) * 53 + + COUNT( * ) FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-2665
SELECT COUNT ( * ) * 53 + + COUNT ( * ) FROM tab1
----
162

query I rowsort
SELECT - col2 + - col2 * + ( col0 ) FROM tab1 AS cor0
----
-4992
-5074
-6256

query II rowsort
SELECT ALL 81 AS col0, + col0 + + col2 FROM tab0 AS cor0
----
81
196
81
62
81
97

query I rowsort
SELECT - - 11 + 22 AS col1 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT DISTINCT ( - - col1 ) - - + 68 FROM tab2 AS cor0
----
119
135
145

query I rowsort
SELECT col2 * 93 - + col1 - + col2 AS col1 FROM tab2
----
2065
3603
5269

onlyif mysql # DIV for integer division: 
query I rowsort label-2671
SELECT 55 DIV + col0 - 31 AS col0 FROM tab2
----
-30
-31
-31

skipif mysql # not compatible
query I rowsort label-2671
SELECT 55 / + col0 - 31 AS col0 FROM tab2
----
-30
-31
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT - - MIN( ALL + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2672
SELECT - - MIN ( ALL + col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL 21 * - col2 FROM tab2 AS cor0 WHERE NOT col2 * + col1 NOT BETWEEN NULL AND col0 * col2 + col1
----

query I rowsort
SELECT - - 35 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2675
SELECT ALL - col2 AS col0, + CAST( + - col0 AS SIGNED ) + - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-2675
SELECT ALL - col2 AS col0, + CAST ( + - col0 AS INTEGER ) + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

query II rowsort
SELECT DISTINCT - 52, 8 AS col1 FROM tab2
----
-52
8

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( NULL ) < NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2678
SELECT - - col0 AS col2, col0 DIV + col1 FROM tab2 AS cor0
----
46
0
64
0
75
1

skipif mysql # not compatible
query II rowsort label-2678
SELECT - - col0 AS col2, col0 / + col1 FROM tab2 AS cor0
----
46
0
64
0
75
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2679
SELECT + - 6 DIV + col1 FROM tab0 AS cor0
----
-6
0
0

skipif mysql # not compatible
query I rowsort label-2679
SELECT + - 6 / + col1 FROM tab0 AS cor0
----
-6
0
0

query I rowsort
SELECT + col0 * - col2 + + + col0 AS col1 FROM tab2 cor0
----
-1012
-2496
-4275

onlyif mysql # aggregate syntax: 
query II rowsort label-2681
SELECT - COUNT( * ) col2, 49 FROM tab2 AS cor0
----
-3
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2681
SELECT - COUNT ( * ) col2, 49 FROM tab2 AS cor0
----
-3
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT ALL + + COUNT( DISTINCT 58 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL + + COUNT ( DISTINCT 58 ) FROM tab2 AS cor0
----
1

query II rowsort
SELECT DISTINCT col0, + col0 AS col2 FROM tab1 cor0
----
51
51
85
85
91
91

query II rowsort
SELECT DISTINCT - - col2, col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query II rowsort
SELECT DISTINCT + - col0, col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT ALL + COUNT( - + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2686
SELECT ALL + COUNT ( - + col1 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT ALL MAX( - 21 ) FROM tab0 cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL MAX ( - 21 ) FROM tab0 cor0
----
-21

query I rowsort
SELECT - ( col0 ) FROM tab0 WHERE NOT + + 39 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 15 * - col0 NOT BETWEEN NULL AND + 59
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 40 * - - 48 AS col1 FROM tab2
----
1920
1920
1920

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 col2 FROM tab2
----
-64
-64
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - ( col0 ) col1 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT col1 * + 10 AS col2 FROM tab2
----
510
670
770

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 35 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - col2 ) col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL - - 86 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT DISTINCT - - 37 + COUNT( * ) - COUNT( * ) AS col1 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-2698
SELECT DISTINCT - - 37 + COUNT ( * ) - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 * + col0 col0 FROM tab1 AS cor0
----
-2193
-3655
-3913

query I rowsort
SELECT ALL - - col1 + 28 FROM tab1 cor0
----
33
42
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2702
SELECT ALL + col0 * + ( - CAST( ( col0 ) AS SIGNED ) ) + + - col2 col0 FROM tab0 AS cor0
----
-272
-7579
-9508

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2702
SELECT ALL + col0 * + ( - CAST ( ( col0 ) AS INTEGER ) ) + + - col2 col0 FROM tab0 AS cor0
----
-272
-7579
-9508

query I rowsort
SELECT 60 - + + col1 + - col1 FROM tab0 AS cor0
----
-102
18
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2704
SELECT ALL + col1 + + ( + + col1 ) + - CAST( - + col0 AS SIGNED ) FROM tab1
----
185
79
95

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL + col1 + + ( + + col1 ) + - CAST ( - + col0 AS INTEGER ) FROM tab1
----
185
79
95

query I rowsort
SELECT + 43 + - col1 + + + 4 + - col0 FROM tab2
----
-50
-94
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT - MIN( DISTINCT - 78 ) * - COUNT( * ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2706
SELECT - MIN ( DISTINCT - 78 ) * - COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT 27 + - 52 FROM tab1
----
-25
-25
-25

query I rowsort
SELECT ALL ( - + ( col2 ) ) FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2709
SELECT DISTINCT + 0 * 64 AS col0, CAST( + - col1 AS SIGNED ) + - + col1 + - + ( - + 40 ) + + col2 DIV col1 FROM tab1
----
0
-53
0
18
0
41

skipif mysql # not compatible
query II rowsort label-2709
SELECT DISTINCT + 0 * 64 AS col0, CAST ( + - col1 AS INTEGER ) + - + col1 + - + ( - + 40 ) + + col2 / col1 FROM tab1
----
0
-53
0
18
0
41

query I rowsort
SELECT DISTINCT 38 * - col0 * col2 FROM tab0 cor0
----
-26790
-33060
-364914

query I rowsort
SELECT DISTINCT col0 / col1 + col0 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2712
SELECT ALL - MIN( + 88 ) * 19 DIV - 86 AS col2 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL - MIN ( + 88 ) * 19 / - 86 AS col2 FROM tab0 AS cor0
----
19

query I rowsort
SELECT ALL + col0 * col2 + + col1 AS col2 FROM tab1 cor0
----
4910
5020
6235

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, 35 FROM tab1 AS cor0 WHERE - col2 * - + col2 IS NULL
----

query I rowsort
SELECT ALL + 10 * 77 * + col1 AS col0 FROM tab2
----
39270
51590
59290

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2716
SELECT ALL CAST( NULL AS DECIMAL ) * - - 85 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL CAST ( NULL AS REAL ) * - - 85 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2717
SELECT + COUNT( CAST( col2 AS SIGNED ) ) FROM tab1 cor0 WHERE NOT + col2 + + + col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2717
SELECT + COUNT ( CAST ( col2 AS INTEGER ) ) FROM tab1 cor0 WHERE NOT + col2 + + + col2 >= NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2718
SELECT + MAX( + - ( col0 ) ) DIV COUNT( * ) * ( + 65 ) AS col2 FROM tab1 AS cor0
----
-1105

skipif mysql # not compatible
query I rowsort label-2718
SELECT + MAX ( + - ( col0 ) ) / COUNT ( * ) * ( + 65 ) AS col2 FROM tab1 AS cor0
----
-1105

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT ALL - MAX( - - col1 ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL - MAX ( - - col1 ) FROM tab2 cor0
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-2720
SELECT ALL MIN( DISTINCT 21 ) AS col2, + COUNT( - 62 ) AS col2 FROM tab2 cor0
----
21
3

skipif mysql # not compatible
query II rowsort label-2720
SELECT ALL MIN ( DISTINCT 21 ) AS col2, + COUNT ( - 62 ) AS col2 FROM tab2 cor0
----
21
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2722
SELECT + - col0 + - + CAST( NULL AS SIGNED ) + - col0, - col1 col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2722
SELECT + - col0 + - + CAST ( NULL AS INTEGER ) + - col0, - col1 col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

query I rowsort
SELECT + - col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT - col0 + + - col0 AS col1 FROM tab0
----
-174
-194
-30

query I rowsort
SELECT + 25 * - - col1 + + + col2 + - - col1 + 28 * 29 FROM tab1
----
1001
1272
2102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2726
SELECT ALL + 5 + + COUNT( * ) + 76 * + SUM( - + CAST( NULL AS SIGNED ) ) + + 35 + - 30 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2726
SELECT ALL + 5 + + COUNT ( * ) + 76 * + SUM ( - + CAST ( NULL AS INTEGER ) ) + + 35 + - 30 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2727
SELECT ALL COUNT( * ) AS col2, 39 FROM tab1
----
3
39

skipif mysql # not compatible
query II rowsort label-2727
SELECT ALL COUNT ( * ) AS col2, 39 FROM tab1
----
3
39

onlyif mysql # DIV for integer division: 
query I rowsort label-2728
SELECT ALL - col1 DIV + - 15 AS col0 FROM tab1 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL - col1 / + - 15 AS col0 FROM tab1 AS cor0
----
0
0
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 19 / col2 AND - + 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT DISTINCT + - ( ( COUNT( * ) ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2730
SELECT DISTINCT + - ( ( COUNT ( * ) ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2731
SELECT + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2731
SELECT + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 94 - - col0 - + 76 AS col2 FROM tab2 AS cor0
----
64
82
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2733
SELECT DISTINCT col2 DIV + - col0 - + col1 AS col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2733
SELECT DISTINCT col2 / + - col0 - + col1 AS col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2734
SELECT DISTINCT - + col2 * - - col0 * - + CAST( NULL AS SIGNED ) * + col1 * - col1 * - col2 - - 22 AS col0 FROM tab1 WHERE NOT - - 75 + col2 + - - 59 BETWEEN col0 / - - 79 AND + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT - + col2 * - - col0 * - + CAST ( NULL AS INTEGER ) * + col1 * - col1 * - col2 - - 22 AS col0 FROM tab1 WHERE NOT - - 75 + col2 + - - 59 BETWEEN col0 / - - 79 AND + - col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2735
SELECT 3 DIV - MAX( + - col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2735
SELECT 3 / - MAX ( + - col0 ) FROM tab0
----
0

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2737
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col1, - col0, col0 * 33, - + 77 + - col0 + - CAST( col1 AS SIGNED ), + - col0 + + col0 * - 31, + col2 * + 97 )
----

skipif mysql # not compatible
query III rowsort label-2737
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col1, - col0, col0 * 33, - + 77 + - col0 + - CAST ( col1 AS INTEGER ), + - col0 + + col0 * - 31, + col2 * + 97 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2738
SELECT ( + - CAST( col1 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2738
SELECT ( + - CAST ( col1 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - col2 * - 41 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
2419
2788
3936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2740
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * + + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2740
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * + + col2 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2741
SELECT ALL + + col0 + + - 28 DIV - 45 + + - col1 + - 30 + - col1 AS col0 FROM tab1 AS cor0
----
-33
-7
45

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL + + col0 + + - 28 / - 45 + + - col1 + - 30 + - col1 AS col0 FROM tab1 AS cor0
----
-33
-7
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2742
SELECT - col0 DIV - 42 col0 FROM tab0
----
0
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2742
SELECT - col0 / - 42 col0 FROM tab0
----
0
2
2

query I rowsort
SELECT + 45 + 20 * - - col0 + col0 AS col2 FROM tab1
----
1116
1830
1956

query I rowsort
SELECT DISTINCT 3 * + col1 + + - col2 + col2 * + col2 * + 28 FROM tab0
----
274332
2853
62048

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT DISTINCT - COUNT( * ) + + MIN( DISTINCT + - col0 ) AS col1 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT - COUNT ( * ) + + MIN ( DISTINCT + - col0 ) AS col1 FROM tab1
----
-94

query II rowsort
SELECT col0 * - col0, col2 + - col2 * 22 FROM tab2 WHERE NULL = + + 86
----

query II rowsort
SELECT DISTINCT - 37, 25 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2748
SELECT - 11 DIV MIN( + - col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2748
SELECT - 11 / MIN ( + - col2 ) FROM tab1
----
0

query I rowsort
SELECT ALL - 65 FROM tab1 WHERE NOT NULL = 73
----

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-2750
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) NOT BETWEEN CAST( NULL AS DECIMAL ) AND + 44
----

skipif mysql # not compatible
query IIIIII rowsort label-2750
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) NOT BETWEEN CAST ( NULL AS REAL ) AND + 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT ALL COUNT( * ) - - 77 - - 54 AS col2 FROM tab0 cor0
----
134

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL COUNT ( * ) - - 77 - - 54 AS col2 FROM tab0 cor0
----
134

query I rowsort
SELECT + 53 * + col0 FROM tab1 cor0 WHERE col0 * + col0 + 82 IS NOT NULL
----
2703
4505
4823

query I rowsort
SELECT + 74 * + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3404
4736
5550

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT + + MAX( col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2754
SELECT + + MAX ( col0 ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT - - 91 * 29 FROM tab1 AS cor0
----
2639
2639
2639

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT DISTINCT COUNT( * ) * - 51 * + ( - + 23 ) * 0 + + 38 AS col2 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT COUNT ( * ) * - 51 * + ( - + 23 ) * 0 + + 38 AS col2 FROM tab2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT DISTINCT COUNT( * ) * - COUNT( * ) * COUNT( * ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) FROM tab1
----
-27

query I rowsort
SELECT - col0 * - - col2 * - 36 FROM tab2
----
156600
38088
92160

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT DISTINCT + COUNT( + ( - col0 ) ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2759
SELECT DISTINCT + COUNT ( + ( - col0 ) ) col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT DISTINCT MAX( ALL - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-2760
SELECT DISTINCT MAX ( ALL - col2 ) FROM tab0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2761
SELECT ALL - CAST( col0 AS SIGNED ) AS col0 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL - CAST ( col0 AS INTEGER ) AS col0 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT ALL - + COUNT( * ) AS col0 FROM tab2 cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL - + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT - col2 * - + 31 AS col2 FROM tab2 AS cor0
----
1240
1798
713

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT ( + 88 ) FROM tab2
----
88
88
88

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= + col2 + - - col2
----

query I rowsort
SELECT ALL - 88 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query I rowsort
SELECT - ( - 3 ) * - col1 FROM tab2 AS cor0
----
-153
-201
-231

query I rowsort
SELECT + 7 * - col0 + - col2 + + 74 * - col1 + col0 AS col1 FROM tab2 AS cor0
----
-4073
-5466
-6122

onlyif mysql # DIV for integer division: 
query I rowsort label-2770
SELECT - - col0 DIV - + col1 + 92 FROM tab2 AS cor0
----
91
92
92

skipif mysql # not compatible
query I rowsort label-2770
SELECT - - col0 / - + col1 + 92 FROM tab2 AS cor0
----
91
92
92

query II rowsort
SELECT ALL - col1 AS col1, col2 AS col1 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT DISTINCT - col2 * + - col1 FROM tab1 cor0 WHERE NOT + 93 <> - 17
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 64 AND + col0
----

query I rowsort
SELECT DISTINCT 35 + + 69 AS col2 FROM tab2
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-2775
SELECT col0 DIV + 66 col0 FROM tab0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2775
SELECT col0 / + 66 col0 FROM tab0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2776
SELECT DISTINCT col2 * - + col1 * + + col1 * col2 DIV - col2 + 94 FROM tab1
----
150306
1569
18910

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT col2 * - + col1 * + + col1 * col2 / - col2 + 94 FROM tab1
----
150306
1569
18910

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT ALL + 71 - + SUM( DISTINCT col0 ) FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL + 71 - + SUM ( DISTINCT col0 ) FROM tab2
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2778
SELECT ALL - col0 + + CAST( col2 AS SIGNED ) FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL - col0 + + CAST ( col2 AS INTEGER ) FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT - MIN( ALL col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2779
SELECT - MIN ( ALL col2 ) AS col2 FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2780
SELECT - CAST( NULL AS SIGNED ) / col1 - 51 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2780
SELECT - CAST ( NULL AS INTEGER ) / col1 - 51 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT - + 7 - ( COUNT( * ) ) FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2781
SELECT - + 7 - ( COUNT ( * ) ) FROM tab1 AS cor0
----
-10

query I rowsort
SELECT + + 53 + + ( + - 42 ) FROM tab1 AS cor0
----
11
11
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2783
SELECT - col1 + + - CAST( - - 25 AS SIGNED ) * col2 AS col2 FROM tab2
----
-1077
-1517
-626

skipif mysql # not compatible
query I rowsort label-2783
SELECT - col1 + + - CAST ( - - 25 AS INTEGER ) * col2 AS col2 FROM tab2
----
-1077
-1517
-626

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 94 IS NULL OR + 45 NOT BETWEEN 72 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 13 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT - + 50 + COUNT( * ) + - AVG ( - - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2786
SELECT - + 50 + COUNT ( * ) + - AVG ( - - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT - + ( MIN( ALL ( 18 ) ) ) AS col0 FROM tab0 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2787
SELECT - + ( MIN ( ALL ( 18 ) ) ) AS col0 FROM tab0 cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT + MIN( - + 10 ) FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2788
SELECT + MIN ( - + 10 ) FROM tab2 AS cor0
----
-10

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + ( - + col0 )
----

query I rowsort
SELECT DISTINCT ( + + ( - col0 ) ) FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT ALL - SUM( - col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL - SUM ( - col2 ) AS col1 FROM tab2
----
121

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( NOT NULL = - - col0 ) )
----

query I rowsort
SELECT 96 * + col0 FROM tab1
----
4896
8160
8736

query II rowsort
SELECT + 42, - col1 AS col0 FROM tab2
----
42
-51
42
-67
42
-77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + - col0 AND - 56 - 74
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2796
SELECT - + 72 DIV col2 FROM tab0 AS cor0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-2796
SELECT - + 72 / col2 FROM tab0 AS cor0
----
-1
-7
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2797
SELECT - + col1 + + CAST( NULL AS SIGNED ) / col1 AS col0, - col2 + - 60 FROM tab1 cor0
----
NULL
-119
NULL
-128
NULL
-156

skipif mysql # not compatible
query II rowsort label-2797
SELECT - + col1 + + CAST ( NULL AS INTEGER ) / col1 AS col0, - col2 + - 60 FROM tab1 cor0
----
NULL
-119
NULL
-128
NULL
-156

query II rowsort
SELECT DISTINCT + - 63 AS col2, - 73 FROM tab1 AS cor0
----
-63
-73

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NULL <> - col1
----

query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL = col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT + col2 * - CAST( - ( col2 ) * 19 AS SIGNED ) FROM tab0
----
186219
1900
41971

skipif mysql # not compatible
query I rowsort label-2801
SELECT + col2 * - CAST ( - ( col2 ) * 19 AS INTEGER ) FROM tab0
----
186219
1900
41971

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2802
SELECT DISTINCT 0 AS col2 FROM tab2 WHERE ( - 8 * + col2 ) NOT BETWEEN ( + CAST( - col0 AS SIGNED ) ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT 0 AS col2 FROM tab2 WHERE ( - 8 * + col2 ) NOT BETWEEN ( + CAST ( - col0 AS INTEGER ) ) AND ( NULL )
----
0

query I rowsort
SELECT 55 + 30 AS col2 FROM tab0 WHERE NOT NULL < col2
----

query I rowsort
SELECT 49 * 28 AS col1 FROM tab1
----
1372
1372
1372

query III rowsort
SELECT * FROM tab1 WHERE + col0 * - col2 NOT IN ( 67 * - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2807
SELECT ALL col2 DIV + ( + col1 ) - - col2 * ( - ( - col2 ) - + 49 * 15 ) col0 FROM tab0 WHERE - col0 < col1
----
-32336
-62865
-7250

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2807
SELECT ALL col2 / + ( + col1 ) - - col2 * ( - ( - col2 ) - + 49 * 15 ) col0 FROM tab0 WHERE - col0 < col1
----
-32336
-62865
-7250

query I rowsort
SELECT col2 - + col2 FROM tab1 WHERE NULL IS NULL
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 ) NOT IN ( - 70 + - 63 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 27 col0 FROM tab0
----
1269
2673
270

query I rowsort
SELECT col0 * + col0 + - ( 56 ) FROM tab2
----
2060
4040
5569

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 col0 FROM tab2
----
87
87
87

query I rowsort
SELECT ALL + 23 * + 68 AS col1 FROM tab2
----
1564
1564
1564

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 72 col2 FROM tab1
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT COUNT( DISTINCT + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2815
SELECT COUNT ( DISTINCT + col2 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT MAX( ALL + 46 ) AS col0 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-2816
SELECT MAX ( ALL + 46 ) AS col0 FROM tab0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2817
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2817
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) < 35 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT + 99 * - 16 + SUM( + 42 ) AS col0 FROM tab2
----
-1458

skipif mysql # not compatible
query I rowsort label-2819
SELECT + 99 * - 16 + SUM ( + 42 ) AS col0 FROM tab2
----
-1458

query I rowsort
SELECT DISTINCT + col0 - + 29 * col2 AS col2 FROM tab1
----
-1626
-1881
-2733

onlyif mysql # DIV for integer division: 
query I rowsort label-2821
SELECT 58 DIV col2 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-2821
SELECT 58 / col2 FROM tab0
----
0
1
5

query I rowsort
SELECT ALL 69 AS col2 FROM tab0 WHERE + 77 * - col1 + + col1 NOT BETWEEN 52 AND ( - 42 )
----
69
69
69

query I rowsort
SELECT DISTINCT 2 * 47 AS col2 FROM tab0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT - COUNT( * ) + + 63 * COUNT( * ) AS col0 FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-2824
SELECT - COUNT ( * ) + + 63 * COUNT ( * ) AS col0 FROM tab0
----
186

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT SUM( ALL col0 ) * COUNT( col2 ) FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-2826
SELECT SUM ( ALL col0 ) * COUNT ( col2 ) FROM tab0
----
597

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2827
SELECT DISTINCT + MAX( - 10 ) col1 FROM tab1 WHERE - col2 * CAST( NULL AS SIGNED ) - - 70 * - col1 > 32
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2827
SELECT DISTINCT + MAX ( - 10 ) col1 FROM tab1 WHERE - col2 * CAST ( NULL AS INTEGER ) - - 70 * - col1 > 32
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 <= col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2829
SELECT * FROM tab2 AS cor0 WHERE CAST( - 89 AS DECIMAL ) / col0 = NULL
----

skipif mysql # not compatible
query III rowsort label-2829
SELECT * FROM tab2 AS cor0 WHERE CAST ( - 89 AS REAL ) / col0 = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 > + col0 / col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * col2 + + col0 AS col2 FROM tab2 AS cor0
----
1219
3144
3961

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT + 99 * - COUNT( * ) FROM tab1 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-2832
SELECT + 99 * - COUNT ( * ) FROM tab1 AS cor0
----
-297

onlyif mysql # DIV for integer division: 
query I rowsort label-2833
SELECT DISTINCT + 68 DIV - 4 FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-2833
SELECT DISTINCT + 68 / - 4 FROM tab1 AS cor0
----
-17

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE ( col2 + 7 ) BETWEEN - col2 * + ( ( 28 ) * col1 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT ALL 36 * COUNT( * ) FROM tab2 cor0
----
108

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL 36 * COUNT ( * ) FROM tab2 cor0
----
108

query I rowsort
SELECT DISTINCT + col2 FROM tab1 cor0 WHERE NOT col2 + - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 - 31 FROM tab2
----
15
33
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2838
SELECT DISTINCT COUNT( * ) DIV 61 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2838
SELECT DISTINCT COUNT ( * ) / 61 AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col0 * 32 AS col2 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT + COUNT( DISTINCT col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2840
SELECT + COUNT ( DISTINCT col1 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT col1 FROM tab2 WHERE NOT + col1 * 46 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2842
SELECT * FROM tab2 WHERE NOT col0 > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2842
SELECT * FROM tab2 WHERE NOT col0 > + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 + - col1 IN ( - col0 )
----

query I rowsort
SELECT DISTINCT + 66 + + col2 AS col2 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2845
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col2 > + col1
----

skipif mysql # not compatible
query I rowsort label-2845
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col2 > + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2846
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col2 ) NOT BETWEEN - col2 - + CAST( 90 AS SIGNED ) * + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2846
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col2 ) NOT BETWEEN - col2 - + CAST ( 90 AS INTEGER ) * + col0 AND NULL
----

query I rowsort
SELECT ( + 12 ) FROM tab2 AS cor0 WHERE NOT ( + col0 ) < - 45 / + 69
----
12
12
12

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 ) NOT BETWEEN NULL AND col1
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT ( 47 ) FROM tab0 AS cor0
----
47

query I rowsort
SELECT DISTINCT 29 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT ALL + - MAX( 25 ) AS col1 FROM tab1 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-2851
SELECT ALL + - MAX ( 25 ) AS col1 FROM tab1 cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT COUNT( * ) col0 FROM tab1 WHERE NOT ( 21 + + col0 ) NOT BETWEEN 20 AND 12
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2852
SELECT COUNT ( * ) col0 FROM tab1 WHERE NOT ( 21 + + col0 ) NOT BETWEEN 20 AND 12
----
0

query I rowsort
SELECT col2 * - - col2 * col2 FROM tab1
----
205379
314432
884736

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IS NOT NULL OR NOT - 38 + + col1 * + 9 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - ( col1 ) * col0 FROM tab1
----
-201019
-2125
-9996

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN 82 AND + ( - col0 ) * 22
----

query I rowsort
SELECT ALL - ( + + col2 ) AS col1 FROM tab0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 WHERE NOT NULL <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT DISTINCT + MAX( + col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-2859
SELECT DISTINCT + MAX ( + col1 ) FROM tab1 cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT 39 + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) = ( ( 21 ) * col2 )
----
39

skipif mysql # not compatible
query I rowsort label-2860
SELECT 39 + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) = ( ( 21 ) * col2 )
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2861
SELECT - COUNT( * ) DIV - COUNT( + 74 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2861
SELECT - COUNT ( * ) / - COUNT ( + 74 ) AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT + ( - COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( - col2 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2862
SELECT + ( - COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( - col2 ) AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2863
SELECT + col1 * 85 DIV col0 FROM tab0 AS cor0
----
0
20
459

skipif mysql # not compatible
query I rowsort label-2863
SELECT + col1 * 85 / col0 FROM tab0 AS cor0
----
0
20
459

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT 86 * COUNT( * ) + 79 AS col2 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND ( + 12 - + 73 )
----
337

skipif mysql # not compatible
query I rowsort label-2864
SELECT 86 * COUNT ( * ) + 79 AS col2 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND ( + 12 - + 73 )
----
337

query I rowsort
SELECT DISTINCT + col1 + - 64 AS col2 FROM tab1 AS cor0
----
-17
-50
-59

query I rowsort
SELECT DISTINCT 28 + - 55 FROM tab1
----
-27

query I rowsort
SELECT - 84 + col1 AS col1 FROM tab0 AS cor0 WHERE + col0 > col1
----
-63
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2868
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2868
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2869
SELECT col0 + - col0 + - 33 * col0 DIV 75 FROM tab0 AS cor0
----
-38
-42
-6

skipif mysql # not compatible
query I rowsort label-2869
SELECT col0 + - col0 + - 33 * col0 / 75 FROM tab0 AS cor0
----
-38
-42
-6

query I rowsort
SELECT 23 FROM tab2 AS cor0 WHERE NULL >= col1 * - col1
----

query I rowsort
SELECT - col0 + + - col0 AS col1 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2872
SELECT ALL CAST( NULL AS SIGNED ) - 10 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL CAST ( NULL AS INTEGER ) - 10 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 75 * col1 FROM tab0 AS cor0
----
1575
6075
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN col1 / col1 - col1 * - col1 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT SUM( 31 ) AS col1 FROM tab2 cor0
----
93

skipif mysql # not compatible
query I rowsort label-2875
SELECT SUM ( 31 ) AS col1 FROM tab2 cor0
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 col0 FROM tab2 AS cor0
----
34
34
34

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND ( 73 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - - col2 - + col1 )
----

query I rowsort
SELECT DISTINCT - col2 + - ( col1 ) AS col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 96 - - 65 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 * col1 + - 6 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2882
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2882
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col2 + ( col0 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2884
SELECT * FROM tab0 WHERE + 70 + + CAST( 51 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2884
SELECT * FROM tab0 WHERE + 70 + + CAST ( 51 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2885
SELECT DISTINCT 3 DIV - col2 * + col1 + - 86 + + col0 * - col1 FROM tab2
----
-2432
-5014
-5111

skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT 3 / - col2 * + col1 + - 86 + + col0 * - col1 FROM tab2
----
-2432
-5014
-5111

query I rowsort
SELECT DISTINCT col2 - + - col2 + - col1 FROM tab0
----
-1
13
197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - col0 col2 FROM tab0 AS cor0
----
174
194
30

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 <= + col1
----
46
51
23
64
77
40

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE ( NOT ( 48 NOT BETWEEN - col1 AND NULL ) )
----

query I rowsort
SELECT ALL 48 * - 0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2892
SELECT 53 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2892
SELECT 53 / + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 35 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT SUM( ALL + - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2894
SELECT SUM ( ALL + - col0 ) FROM tab0
----
-199

query I rowsort
SELECT ALL col0 * - - col0 AS col1 FROM tab2 cor0
----
2116
4096
5625

query I rowsort
SELECT - 86 * ( col1 ) AS col1 FROM tab0 AS cor0
----
-1806
-6966
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col1 * - 23 * + col2 col0 FROM tab1 AS cor0
----
14
-30912
47
-73508
5
-6785

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 62 * + ( col0 ) col0 FROM tab1 AS cor0
----
3162
5270
5642

onlyif mysql # DIV for integer division: 
query I rowsort label-2899
SELECT + col2 DIV - + col1 + col2 + - col1 + col2 AS col1 FROM tab0 AS cor0
----
-1
13
98

skipif mysql # not compatible
query I rowsort label-2899
SELECT + col2 / - + col1 + col2 + - col1 + col2 AS col1 FROM tab0 AS cor0
----
-1
13
98

query I rowsort
SELECT ALL 5 FROM tab1 cor0 WHERE NULL > NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 * - + 70 - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2902
SELECT ALL - col1 DIV 55 - - - col0 * - col0 FROM tab0 AS cor0
----
224
7569
9409

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL - col1 / 55 - - - col0 * - col0 FROM tab0 AS cor0
----
224
7569
9409

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 48 NOT IN ( + col1 )
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - - ( + - 44 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> NULL AND NOT + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT DISTINCT COUNT( * ) * + COUNT( * ) + - ( + 77 ) FROM tab2 cor0
----
-68

skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) + - ( + 77 ) FROM tab2 cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT DISTINCT - 50 * MIN( + ( + 50 ) ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2907
SELECT DISTINCT - 50 * MIN ( + ( + 50 ) ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 42 ) IS NULL
----

query I rowsort
SELECT - 6 * ( - 11 ) * col0 FROM tab2
----
3036
4224
4950

query I rowsort
SELECT DISTINCT col0 * + ( col0 ) FROM tab0 WHERE ( 17 ) <= 92 / + 65 + + col2
----
225
9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2911
SELECT MIN( ALL - CAST( 84 AS SIGNED ) ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-2911
SELECT MIN ( ALL - CAST ( 84 AS INTEGER ) ) FROM tab0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2912
SELECT ALL * FROM tab1 WHERE NOT + + col2 - - 32 * + CAST( NULL AS SIGNED ) < - col1
----

skipif mysql # not compatible
query III rowsort label-2912
SELECT ALL * FROM tab1 WHERE NOT + + col2 - - 32 * + CAST ( NULL AS INTEGER ) < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT ALL + ( COUNT( * ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL + ( COUNT ( * ) ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2914
SELECT + MIN( DISTINCT + CAST( - 71 AS SIGNED ) ) AS col2 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-2914
SELECT + MIN ( DISTINCT + CAST ( - 71 AS INTEGER ) ) AS col2 FROM tab1
----
-71

query I rowsort
SELECT DISTINCT - 17 - + 69 AS col2 FROM tab0 WHERE NOT - + col2 / - + col0 - - col0 * + + 47 + + col2 * col0 < NULL
----

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 87 + - 73 AND + - 45
----

query I rowsort
SELECT + col2 + - col1 * + - col2 FROM tab0 AS cor0
----
198
220
3854

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2918
SELECT DISTINCT + CAST( NULL AS SIGNED ) col2, + ( col0 ) FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2918
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col2, + ( col0 ) FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( - - col1 ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2920
SELECT DISTINCT - ( + CAST( - col0 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2920
SELECT DISTINCT - ( + CAST ( - col0 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT DISTINCT - ( - MAX( + col2 ) ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT - ( - MAX ( + col2 ) ) FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2922
SELECT * FROM tab0 WHERE CAST( + col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2922
SELECT * FROM tab0 WHERE CAST ( + col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT - SUM( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2923
SELECT - SUM ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ALL col2 FROM tab1 cor0 WHERE - 59 * - - col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < col2 * - 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT DISTINCT + + 76 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT + + 76 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
73

query I rowsort
SELECT 20 + + - 11 FROM tab2
----
9
9
9

query I rowsort
SELECT + col2 + + + col1 + 79 + + 45 FROM tab0
----
155
224
252

query II rowsort
SELECT + 91 + + + col0 + 12, + col2 FROM tab2
----
149
23
167
40
178
58

query I rowsort
SELECT - col0 + - - 18 + - col2 * - col0 + + col1 FROM tab1
----
4877
4953
6162

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT DISTINCT 79 + + + COUNT( * ) FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT 79 + + + COUNT ( * ) FROM tab0
----
82

query I rowsort
SELECT + 57 + - - ( - col1 ) FROM tab2
----
-10
-20
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT ALL 97 + COUNT( * ) AS col0 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL 97 + COUNT ( * ) AS col0 FROM tab0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT ALL - - COUNT( + col2 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL - - COUNT ( + col2 ) AS col1 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL 33 AS col0 FROM tab0 AS cor0 WHERE ( + col2 + - col2 + + col0 ) > ( col1 )
----
33
33

query II rowsort
SELECT DISTINCT - col2 AS col0, + col2 * + col2 FROM tab0 AS cor0
----
-10
100
-47
2209
-99
9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2937
SELECT DISTINCT + - COUNT( DISTINCT + CAST( + col1 AS SIGNED ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2937
SELECT DISTINCT + - COUNT ( DISTINCT + CAST ( + col1 AS INTEGER ) ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL 91, - 71 AS col0 FROM tab1 AS cor0
----
91
-71
91
-71
91
-71

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col1 < NULL )
----

query I rowsort
SELECT ALL + 59 + col0 FROM tab1 WHERE NOT + ( + 46 ) * - - 3 * + 38 BETWEEN - col2 AND - + col2 + + 56
----
110
144
150

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT + COUNT( * ) * + 22 AS col0 FROM tab2 AS cor0 WHERE NOT ( 86 ) IS NULL
----
66

skipif mysql # not compatible
query I rowsort label-2941
SELECT + COUNT ( * ) * + 22 AS col0 FROM tab2 AS cor0 WHERE NOT ( 86 ) IS NULL
----
66

query I rowsort
SELECT - + 1 * + col0 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 19 ) col2 FROM tab1 AS cor0
----
-19

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 NOT IN ( - - ( + 37 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col2 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2946
SELECT + + CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2946
SELECT + + CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT - - COUNT( * ) * - 8 + - - 25 AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2947
SELECT - - COUNT ( * ) * - 8 + - - 25 AS col2 FROM tab0 AS cor0
----
1

query II rowsort
SELECT DISTINCT + 34 AS col2, col0 + 98 AS col2 FROM tab2
----
34
144
34
162
34
173

query I rowsort
SELECT - col1 + - - 72 AS col0 FROM tab2
----
-5
21
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2950
SELECT DISTINCT + - col0 FROM tab2 WHERE NOT - CAST( + col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT + - col0 FROM tab2 WHERE NOT - CAST ( + col0 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col1 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2952
SELECT * FROM tab0 WHERE ( - col0 ) NOT BETWEEN + CAST( NULL AS DECIMAL ) AND ( - - col1 )
----

skipif mysql # not compatible
query III rowsort label-2952
SELECT * FROM tab0 WHERE ( - col0 ) NOT BETWEEN + CAST ( NULL AS REAL ) AND ( - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT DISTINCT + - SUM( DISTINCT + 51 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT + - SUM ( DISTINCT + 51 ) FROM tab2 AS cor0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-2954
SELECT ALL - col0 DIV + + col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL - col0 / + + col0 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2955
SELECT + - ( - CAST( NULL AS SIGNED ) ) * - 6 AS col2, col2 col1 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-2955
SELECT + - ( - CAST ( NULL AS INTEGER ) ) * - 6 AS col2, col2 col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT ALL - ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL - ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT DISTINCT 89 * + - col1, - col2 * + col1 + + 28 + + + col0 AS col2 FROM tab2
----
-4539
-1099
-5963
-3783
-6853
-2988

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT ALL COUNT( * ) + 98 FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL COUNT ( * ) + 98 FROM tab0
----
101

query III rowsort
SELECT * FROM tab1 WHERE - 79 <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + + 19 + 19 + - col1 + + 37 * + 49 * - 56 FROM tab2
----
-101564
-101607
-101615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2961
SELECT + COUNT( * ) * + COUNT( * ) + + AVG ( + 70 ) * CAST( NULL AS SIGNED ) + - COUNT( ALL - - col1 ) - 38 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2961
SELECT + COUNT ( * ) * + COUNT ( * ) + + AVG ( + 70 ) * CAST ( NULL AS INTEGER ) + - COUNT ( ALL - - col1 ) - 38 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 + + 45 FROM tab1 AS cor0 WHERE NULL >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT ALL - COUNT( * ) * + - 75 FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-2963
SELECT ALL - COUNT ( * ) * + - 75 FROM tab0 AS cor0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT + COUNT( * ) * + 58 + 29 FROM tab1 cor0
----
203

skipif mysql # not compatible
query I rowsort label-2964
SELECT + COUNT ( * ) * + 58 + 29 FROM tab1 cor0
----
203

query II rowsort
SELECT - col0 AS col1, - 37 FROM tab1 AS cor0
----
-51
-37
-85
-37
-91
-37

query II rowsort
SELECT DISTINCT + 66, + col0 * 16 AS col0 FROM tab2 AS cor0
----
66
1024
66
1200
66
736

query I rowsort
SELECT DISTINCT + 69 - - col2 * - - 20 AS col1 FROM tab2 AS cor0
----
1229
529
869

query I rowsort
SELECT DISTINCT - col0 - + col1 - - 86 AS col1 FROM tab2 WHERE NOT ( - - col0 * - + 7 * + col0 ) IS NULL
----
-11
-55
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT + COUNT( DISTINCT + col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2969
SELECT + COUNT ( DISTINCT + col2 ) AS col1 FROM tab2
----
3

query II rowsort
SELECT DISTINCT 40, 26 AS col0 FROM tab1
----
40
26

query I rowsort
SELECT 24 * + 20 AS col1 FROM tab1
----
480
480
480

query I rowsort
SELECT - col2 * + + col2 FROM tab0 cor0
----
-100
-2209
-9801

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 21 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT ALL + - COUNT( * ) FROM tab0 AS cor0 WHERE NULL >= - col0
----
0

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL + - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL >= - col0
----
0

query I rowsort
SELECT ALL ( col2 ) + + col0 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2976
SELECT DISTINCT - 32 DIV + 38 + - + COUNT( * ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2976
SELECT DISTINCT - 32 / + 38 + - + COUNT ( * ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT SUM( col2 ) + 47 + 2 FROM tab0
----
205

skipif mysql # not compatible
query I rowsort label-2977
SELECT SUM ( col2 ) + 47 + 2 FROM tab0
----
205

query I rowsort
SELECT col0 + + col0 + + - col2 + + + col2 AS col0 FROM tab1
----
102
170
182

query I rowsort
SELECT DISTINCT + ( + - col2 ) * col0 + + - col2 FROM tab0
----
-752
-880
-9702

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT + 38 * - COUNT( * ) + + - COUNT( * ) FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-2980
SELECT + 38 * - COUNT ( * ) + + - COUNT ( * ) FROM tab0
----
-117

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2982
SELECT CAST( NULL AS SIGNED ) / 39 + + - col1 * 49 FROM tab1 AS cor0 WHERE + col0 / + + col1 / - ( + col1 ) BETWEEN - 40 + + col0 AND col0
----

skipif mysql # not compatible
query I rowsort label-2982
SELECT CAST ( NULL AS INTEGER ) / 39 + + - col1 * 49 FROM tab1 AS cor0 WHERE + col0 / + + col1 / - ( + col1 ) BETWEEN - 40 + + col0 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT ALL COUNT( * ) * + - 2 AS col2 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-2983
SELECT ALL COUNT ( * ) * + - 2 AS col2 FROM tab1
----
-6

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN NULL AND + 18 + 62
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2985
SELECT MIN( + CAST( NULL AS SIGNED ) ) FROM tab2 WHERE + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT + - COUNT( * ) AS col0 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-2986
SELECT + - COUNT ( * ) AS col0 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
-9

query I rowsort
SELECT ALL - + col1 + 19 - - col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + col1 + - 79 * - col1 + + col1 AS col1 FROM tab0 AS cor0
----
178
1788
6576

query I rowsort
SELECT + col1 - - col2 + 41 * + 0 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT ALL - - 78 - + col2 * col1 FROM tab2 cor0
----
-1095
-3002
-3808

query I rowsort
SELECT ALL - col0 - + 34 FROM tab1 cor0
----
-119
-125
-85

query I rowsort
SELECT DISTINCT - - col2 - + col1 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT - col2 + 37 / + + 67 + col1 * - col2 FROM tab2 AS cor0 WHERE ( NULL ) <= NULL
----

query II rowsort
SELECT col0 AS col0, col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( 41 ) * - col2 * - col2 + - - col1 / - col0 * + - col2 NOT IN ( + ( - 52 ) + + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2996
SELECT DISTINCT col2 DIV ( + col0 ) FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2996
SELECT DISTINCT col2 / ( + col0 ) FROM tab0
----
0
1
3

query III rowsort
SELECT * FROM tab2 WHERE NOT 66 NOT IN ( + 23, + 32 + + - col2 + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2998
SELECT CAST( col2 AS SIGNED ) * 7 AS col1 FROM tab1
----
413
476
672

skipif mysql # not compatible
query I rowsort label-2998
SELECT CAST ( col2 AS INTEGER ) * 7 AS col1 FROM tab1
----
413
476
672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2999
SELECT DISTINCT AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT col0 * - 27 AS col0 FROM tab2
----
-1242
-1728
-2025

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT NULL <= + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT ALL - COUNT( - - col2 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL - COUNT ( - - col2 ) AS col0 FROM tab2
----
-3

query II rowsort
SELECT + col1, + col1 AS col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 36, ( + col1 ) col2 FROM tab2 cor0
----
36
51
36
67
36
77

query II rowsort
SELECT - ( col2 ), + col2 FROM tab0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3006
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL - + 24 FROM tab2 cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-3008
SELECT ALL + + MIN( col0 ) AS col2, - SUM( - - 97 ) * + + 72 AS col0 FROM tab1 AS cor0
----
51
-20952

skipif mysql # not compatible
query II rowsort label-3008
SELECT ALL + + MIN ( col0 ) AS col2, - SUM ( - - 97 ) * + + 72 AS col0 FROM tab1 AS cor0
----
51
-20952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3009
SELECT + - 62 + + + 71 DIV + COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-3009
SELECT + - 62 + + + 71 / + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3010
SELECT ALL - col1 * + CAST( col0 AS SIGNED ) FROM tab0 cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL - col1 * + CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
15
87
97

query I rowsort
SELECT ALL 65 AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
65
65
65

query I rowsort
SELECT col1 + + + col2 AS col2 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT + + 38 + 73 FROM tab1 AS cor0
----
111
111
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3015
SELECT DISTINCT + MIN( ALL col2 ) * 12 DIV + - 84 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT + MIN ( ALL col2 ) * 12 / + - 84 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - col1 + + + 17 * col0 + - col0 * + 12 * - - col1 + + + 11 FROM tab2 AS cor0
----
-27410
-58114
-59081

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT COUNT( * ) + - 53 AS col2 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-3017
SELECT COUNT ( * ) + - 53 AS col2 FROM tab1
----
-50

query II rowsort
SELECT DISTINCT col0 AS col1, col1 AS col2 FROM tab1
----
51
14
85
5
91
47

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= - + col0
----

query I rowsort
SELECT DISTINCT + col2 + - - col2 * + 24 FROM tab1
----
1475
1700
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT ALL COUNT( ALL 89 ) + - - 47 FROM tab1, tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL COUNT ( ALL 89 ) + - - 47 FROM tab1, tab2 AS cor0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3022
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * col2 - - 76 AS col1, col2 + + ( 70 ) * + 72 col0 FROM tab0 AS cor0
----
175
5139
286
5050
3883
5087

query I rowsort
SELECT ALL + col0 * + 49 FROM tab0 AS cor0
----
4263
4753
735

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT DISTINCT - 24 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-3025
SELECT DISTINCT - 24 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3026
SELECT + col0 + col2 * ( CAST( + 50 AS SIGNED ) ) AS col0 FROM tab0
----
2365
5047
587

skipif mysql # not compatible
query I rowsort label-3026
SELECT + col0 + col2 * ( CAST ( + 50 AS INTEGER ) ) AS col0 FROM tab0
----
2365
5047
587

query I rowsort
SELECT ALL - 68 + - 66 * + 86 FROM tab2
----
-5744
-5744
-5744

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT DISTINCT - 74 + - + MAX( ALL + + col0 ) AS col1 FROM tab1
----
-165

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT - 74 + - + MAX ( ALL + + col0 ) AS col1 FROM tab1
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT DISTINCT - COUNT( * ) + + ( 48 ) AS col1 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-3029
SELECT DISTINCT - COUNT ( * ) + + ( 48 ) AS col1 FROM tab2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT - MIN( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3030
SELECT - MIN ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
-59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + 28 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3032
SELECT - + CAST( + + MIN( + 33 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3032
SELECT - + CAST ( + + MIN ( + 33 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-33

query I rowsort
SELECT - + 34 * + ( + 24 ) AS col0 FROM tab1 AS cor0
----
-816
-816
-816

query I rowsort
SELECT ALL + ( + col1 ) * 88 + + 33 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT NULL > + 30 + + - 28 - - col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 20 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3037
SELECT ALL col2 DIV + - col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3037
SELECT ALL col2 / + - col2 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT + SUM( + - 56 ) AS col0 FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-3038
SELECT + SUM ( + - 56 ) AS col0 FROM tab1
----
-168

query I rowsort
SELECT + col1 * + + ( col1 ) * + - ( + - col1 ) + - 25 - - col2 + + 9 FROM tab0
----
531472
84
9255

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT + ( - + 39 ) * + COUNT( * ) FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-3040
SELECT + ( - + 39 ) * + COUNT ( * ) FROM tab2
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT - COUNT( * ) * + ( + 47 ) FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-3041
SELECT - COUNT ( * ) * + ( + 47 ) FROM tab1
----
-141

query I rowsort
SELECT DISTINCT + 28 * + + col0 FROM tab1 AS cor0
----
1428
2380
2548

query II rowsort
SELECT 64, col1 AS col0 FROM tab0
----
64
1
64
21
64
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT 83 * COUNT( * ) * - - 52 FROM tab2
----
12948

skipif mysql # not compatible
query I rowsort label-3044
SELECT 83 * COUNT ( * ) * - - 52 FROM tab2
----
12948

query I rowsort
SELECT DISTINCT - ( + ( + 53 ) ) * + col0 + col1 AS col1 FROM tab1
----
-2689
-4500
-4776

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 5 + ( - - col2 ) NOT BETWEEN + 64 AND - 36
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * + - ( - 94 ) + - + 70 AS col2 FROM tab2
----
4254
5946
6980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3048
SELECT ALL 86 * - + CAST( NULL AS SIGNED ) + 37 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL 86 * - + CAST ( NULL AS INTEGER ) + 37 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT 21 + 3 AS col0, + 28 FROM tab1
----
24
28
24
28
24
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3050
SELECT ALL - CAST( NULL AS SIGNED ) + + 51 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL - CAST ( NULL AS INTEGER ) + + 51 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3051
SELECT - col1 DIV - + 47 + + col1 FROM tab1
----
14
48
5

skipif mysql # not compatible
query I rowsort label-3051
SELECT - col1 / - + 47 + + col1 FROM tab1
----
14
48
5

query I rowsort
SELECT DISTINCT - col2 * - col0 * - col2 + - - col0 FROM tab0
----
-33120
-8613
-950600

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT - SUM( - 58 ) + + 25 AS col0 FROM tab1
----
199

skipif mysql # not compatible
query I rowsort label-3053
SELECT - SUM ( - 58 ) + + 25 AS col0 FROM tab1
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT + 99 + - SUM( ALL - + col0 ) FROM tab2
----
284

skipif mysql # not compatible
query I rowsort label-3054
SELECT + 99 + - SUM ( ALL - + col0 ) FROM tab2
----
284

query I rowsort
SELECT + col2 + - 73 + + col2 + - 29 AS col2 FROM tab0
----
-8
-82
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT DISTINCT - COUNT( * ) + - 88 AS col1 FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-3056
SELECT DISTINCT - COUNT ( * ) + - 88 AS col1 FROM tab2
----
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 23 <= 58
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 75 > - col0 * - + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 63 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3060
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( + 74 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3060
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( + 74 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT 97 - + + col0 FROM tab1
----
12
46
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3062
SELECT + col1, - col1 AS col0 FROM tab2 AS cor0 WHERE NOT CAST( 2 AS SIGNED ) BETWEEN col1 AND + col2 * + col0 - - 92 + - col1 + + col0 - col0 * + col0 + - - 17
----
51
-51
67
-67
77
-77

skipif mysql # not compatible
query II rowsort label-3062
SELECT + col1, - col1 AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( 2 AS INTEGER ) BETWEEN col1 AND + col2 * + col0 - - 92 + - col1 + + col0 - col0 * + col0 + - - 17
----
51
-51
67
-67
77
-77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - ( + - col2 ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3064
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - col1
----

skipif mysql # not compatible
query I rowsort label-3064
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----
0

query II rowsort
SELECT - - 33, + ( col0 ) FROM tab1 AS cor0
----
33
51
33
85
33
91

query I rowsort
SELECT + + col2 FROM tab2 AS cor0 WHERE NOT 90 IS NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 93 + 12 * - ( - + 4 ) col2 FROM tab0 AS cor0
----
-1905
-45
-7485

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT ALL - ( COUNT( * ) ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3069
SELECT ALL - ( COUNT ( * ) ) col1 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT + 5 * col1 AS col1, col1 FROM tab1
----
235
47
25
5
70
14

onlyif mysql # DIV for integer division: 
query II rowsort label-3071
SELECT - 23 DIV + col2, col1 FROM tab0
----
-2
21
0
1
0
81

skipif mysql # not compatible
query II rowsort label-3071
SELECT - 23 / + col2, col1 FROM tab0
----
-2
21
0
1
0
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3072
SELECT + 72 * col0 AS col2, + 97 * + + col0 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
3672
NULL
6120
NULL
6552
NULL

skipif mysql # not compatible
query II rowsort label-3072
SELECT + 72 * col0 AS col2, + 97 * + + col0 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
3672
NULL
6120
NULL
6552
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab2 WHERE col0 BETWEEN + col1 * + 67 + - col1 AND col0 * 18
----
0

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab2 WHERE col0 BETWEEN + col1 * + 67 + - col1 AND col0 * 18
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + 20 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3075
SELECT + + SUM( - 64 ) AS col2, - 76 FROM tab1 AS cor0
----
-192
-76

skipif mysql # not compatible
query II rowsort label-3075
SELECT + + SUM ( - 64 ) AS col2, - 76 FROM tab1 AS cor0
----
-192
-76

query I rowsort
SELECT DISTINCT - + 85 * - col1 FROM tab0 AS cor0
----
1785
6885
85

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3077
SELECT DISTINCT + - ( col1 ), CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-3077
SELECT DISTINCT + - ( col1 ), CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 34 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT - - MAX( + 86 ) AS col2 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-3079
SELECT - - MAX ( + 86 ) AS col2 FROM tab0 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT - - MAX( - col1 ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3080
SELECT - - MAX ( - col1 ) AS col1 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT 57 + - col2 FROM tab0
----
-42
10
47

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 IS NULL AND - col1 + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - ( - col0 ) / - 86 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT DISTINCT MIN( 47 ) col1 FROM tab1 cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3084
SELECT DISTINCT MIN ( 47 ) col1 FROM tab1 cor0
----
47

query I rowsort
SELECT DISTINCT ( + + col2 ) * - - col1 + + col2 AS col0 FROM tab1 AS cor0
----
1440
3264
354

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3086
SELECT col1 * CAST( NULL AS DECIMAL ) + + + 34 AS col0, col1 AS col0 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-3086
SELECT col1 * CAST ( NULL AS REAL ) + + + 34 AS col0, col1 AS col0 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT - + 34 * 94 * 40 AS col2 FROM tab2 cor0
----
-127840
-127840
-127840

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT - 2 - - + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT MIN( + 5 ) FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-3089
SELECT MIN ( + 5 ) FROM tab0
----
5

query II rowsort
SELECT ALL - 41, + col1 * + col2 AS col1 FROM tab2
----
-41
1173
-41
3080
-41
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT ALL 35 * - COUNT( * ) + 96 AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL 35 * - COUNT ( * ) + 96 AS col1 FROM tab1
----
-9

query I rowsort
SELECT ALL + ( + col2 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + + 99 * 98 - 99 + col1 * - 34 * - 20
----

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE + + 76 * + 42 IS NULL
----

query I rowsort
SELECT + col1 - + + col1 + + ( + 58 ) AS col2 FROM tab0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT ALL + COUNT( * ) - - 74 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL + COUNT ( * ) - - 74 FROM tab1 AS cor0
----
77

query I rowsort
SELECT - col1 + 80 + + + col0 AS col0 FROM tab2 AS cor0
----
67
75
88

query I rowsort
SELECT DISTINCT - 9 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT + COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3099
SELECT + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT COUNT( * ) * + - COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3100
SELECT COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3101
SELECT - - col2 DIV + ( 74 ) col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3101
SELECT - - col2 / + ( 74 ) col0 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 col1 FROM tab2 AS cor0
----
-88
-88
-88

query II rowsort
SELECT ALL + ( - col1 ) AS col0, + col0 * + col2 FROM tab1 AS cor0
----
-14
4896
-47
6188
-5
5015

query I rowsort
SELECT ALL - + 46 AS col2 FROM tab0 AS cor0
----
-46
-46
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3105
SELECT DISTINCT - - MAX( CAST( + - col0 AS SIGNED ) ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3105
SELECT DISTINCT - - MAX ( CAST ( + - col0 AS INTEGER ) ) FROM tab1 cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3106
SELECT DISTINCT + - CAST( + 70 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-3106
SELECT DISTINCT + - CAST ( + 70 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT + COUNT( - col2 ) * + + 88 AS col0 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-3107
SELECT + COUNT ( - col2 ) * + + 88 AS col0 FROM tab2
----
264

query I rowsort
SELECT DISTINCT + col2 * ( + - col2 ) * - col1 AS col0 FROM tab1
----
129024
17405
217328

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 NOT IN ( + col0, + col1, - col2 * - col2 * - col1, + 71, - 89, ( ( - + 97 ) ) - - ( + col0 ) )
----

query II rowsort
SELECT + col0, 47 FROM tab1 WHERE NOT - ( + col1 ) + ( col0 ) + col0 IS NULL
----
51
47
85
47
91
47

query I rowsort
SELECT ALL col0 * 54 * + col0 AS col0 FROM tab2
----
114264
221184
303750

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 * - 15 * col1 col0 FROM tab2 AS cor0
----
-1989765
-4511445
-6847995

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3114
SELECT * FROM tab2 cor0 WHERE NOT ( NOT 55 >= - CAST( + 76 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3114
SELECT * FROM tab2 cor0 WHERE NOT ( NOT 55 >= - CAST ( + 76 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3115
SELECT DISTINCT - col1 DIV + CAST( + ( col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-3115
SELECT DISTINCT - col1 / + CAST ( + ( col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-5
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > ( - col1 )
----

query I rowsort
SELECT 80 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT - + ( + 44 ) FROM tab2 AS cor0
----
-44
-44
-44

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * - 35 IS NULL
----

query I rowsort
SELECT DISTINCT 37 - - + col2 AS col0 FROM tab1 AS cor0
----
105
133
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 col1 FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3122
SELECT ALL + - ( + MAX( CAST( + col0 AS SIGNED ) ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL + - ( + MAX ( CAST ( + col0 AS INTEGER ) ) ) FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3123
SELECT - 27 + 74 DIV - COUNT( DISTINCT col2 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3123
SELECT - 27 + 74 / - COUNT ( DISTINCT col2 ) AS col2 FROM tab1
----
-51

query I rowsort
SELECT col2 + ( 14 ) FROM tab0
----
113
24
61

query I rowsort
SELECT DISTINCT col0 + + 61 FROM tab0
----
148
158
76

query I rowsort
SELECT 52 + - 27 FROM tab0
----
25
25
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3127
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + AVG ( + - col1 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + AVG ( + - col1 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL col2 + - 6 FROM tab2
----
17
34
52

query I rowsort
SELECT DISTINCT 13 + - + col1 FROM tab1
----
-1
-34
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3130
SELECT CAST( - - col2 AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3130
SELECT CAST ( - - col2 AS INTEGER ) FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT ALL - COUNT( col1 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL - COUNT ( col1 ) FROM tab1 cor0
----
-3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL >= + ( + col2 ) * - - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3133
SELECT ALL 63 AS col0, + COUNT( * ) FROM tab0 AS cor0
----
63
3

skipif mysql # not compatible
query II rowsort label-3133
SELECT ALL 63 AS col0, + COUNT ( * ) FROM tab0 AS cor0
----
63
3

query I rowsort
SELECT ( - + 18 ) FROM tab2 AS cor0
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT - COUNT( DISTINCT - - 41 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3135
SELECT - COUNT ( DISTINCT - - 41 ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT DISTINCT ( - MIN( col1 ) ) col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3136
SELECT DISTINCT ( - MIN ( col1 ) ) col1 FROM tab2 AS cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * - col0 / + 33 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT - 3 / + 5 IS NOT NULL
----

query I rowsort
SELECT ALL col2 + + col0 * + col2 FROM tab1
----
4992
5074
6256

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3140
SELECT DISTINCT * FROM tab1 WHERE NOT ( CAST( NULL AS SIGNED ) ) * - - col1 - + col0 * + col2 + - col1 * col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3140
SELECT DISTINCT * FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) ) * - - col1 - + col0 * + col2 + - col1 * col2 IS NULL
----

query I rowsort
SELECT - col1 - - ( col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
37
44
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 58 * - col2 - + col1 col1 FROM tab0 cor0
----
-2807
-5743
-601

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3143
SELECT - 64 DIV COUNT( * ) * + 75 * 98 col2 FROM tab1 AS cor0
----
-154350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3143
SELECT - 64 / COUNT ( * ) * + 75 * 98 col2 FROM tab1 AS cor0
----
-154350

onlyif mysql # DIV for integer division: 
query I rowsort label-3144
SELECT ALL col0 + + col1 DIV col2 FROM tab2 AS cor0
----
48
65
76

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL col0 + + col1 / col2 FROM tab2 AS cor0
----
48
65
76

query I rowsort
SELECT - ( - 59 ) * - 25 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 351aefd18b1976bbcc084070775bc99e

query I rowsort
SELECT ALL ( col0 ) + + col0 FROM tab2 WHERE + 17 / col1 * col0 * - col1 <= + col0 + 4 + + ( + + 46 ) / - col2
----
128
150
92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 < col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3148
SELECT + - CAST( NULL AS DECIMAL ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT + - CAST ( NULL AS REAL ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3150
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) * col0 * - + 5 - + 53 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) * col0 * - + 5 - + 53 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT DISTINCT - SUM( - + 75 ) * - 28 - MAX( + 55 ) AS col0 FROM tab1 AS cor0
----
-6355

skipif mysql # not compatible
query I rowsort label-3151
SELECT DISTINCT - SUM ( - + 75 ) * - 28 - MAX ( + 55 ) AS col0 FROM tab1 AS cor0
----
-6355

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 / - + col0 * + col0 > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3153
SELECT DISTINCT - - CAST( NULL AS SIGNED ), + col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-3153
SELECT DISTINCT - - CAST ( NULL AS INTEGER ), + col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT + + col0 / + col1 * - col1 + col0 + - col1 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----

query II rowsort
SELECT col0, - 33 FROM tab0 cor0
----
15
-33
87
-33
97
-33

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 - - 76 IS NOT NULL
----

query I rowsort
SELECT ALL 5 * + + col1 AS col0 FROM tab0
----
105
405
5

query I rowsort
SELECT DISTINCT col0 * 82 FROM tab2
----
3772
5248
6150

query I rowsort
SELECT ALL + 7 * - col2 FROM tab2
----
-161
-280
-406

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3160
SELECT ALL - col2 + - 55 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL - col2 + - 55 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 ) NOT BETWEEN col0 * + + col1 AND NULL AND NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT DISTINCT COUNT( * ) - + - ( - COUNT( * ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3162
SELECT DISTINCT COUNT ( * ) - + - ( - COUNT ( * ) ) AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + 89 * ( - col0 ) AS col2 FROM tab0 AS cor0
----
-1335
-7743
-8633

query I rowsort
SELECT DISTINCT - col0 * - + ( col1 ) AS col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3165
SELECT ALL - - col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * CAST( NULL AS SIGNED ) * - col0 IS NOT NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL - - col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * CAST ( NULL AS INTEGER ) * - col0 IS NOT NULL
----
51
85
91

query II rowsort
SELECT - - col2 AS col0, 98 FROM tab2 AS cor0
----
23
98
40
98
58
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3167
SELECT DISTINCT + 95 AS col1, + 41 + - col2 + - col1 / + + CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab0 AS cor0
----
95
NULL

skipif mysql # not compatible
query II rowsort label-3167
SELECT DISTINCT + 95 AS col1, + 41 + - col2 + - col1 / + + CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab0 AS cor0
----
95
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 76 * - 64 >= - 32 / - + 50 * col1
----

query II rowsort
SELECT DISTINCT 17 AS col1, col0 FROM tab1 AS cor0
----
17
51
17
85
17
91

query II rowsort
SELECT - + col1 AS col1, - 21 * - + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-14
-102816
-47
-129948
-5
-105315

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT ALL COUNT( + col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL COUNT ( + col0 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3172
SELECT ALL CAST( NULL AS DECIMAL ) AS col2, - col0 * - + col1 * - col0 AS col0 FROM tab0 AS cor0
----
NULL
-158949
NULL
-18225
NULL
-9409

skipif mysql # not compatible
query II rowsort label-3172
SELECT ALL CAST ( NULL AS REAL ) AS col2, - col0 * - + col1 * - col0 AS col0 FROM tab0 AS cor0
----
NULL
-158949
NULL
-18225
NULL
-9409

query III rowsort
SELECT * FROM tab0 WHERE NOT 33 NOT IN ( + col2 / + col1, 99 + + col2, - - col1 * + - ( - 90 ) )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT ( - col1 ) BETWEEN col1 AND - - 26
----
59
68
96

query I rowsort
SELECT ALL col1 FROM tab0 WHERE - - ( + col0 ) IS NOT NULL
----
1
21
81

query II rowsort
SELECT DISTINCT + - col0 + - - col2 AS col2, + col2 AS col0 FROM tab2 AS cor0
----
-17
58
-23
23
-24
40

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 / - col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3178
SELECT ALL + + col0 - + col1 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + CAST( NULL AS SIGNED ) AND - ( + col0 ) - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3178
SELECT ALL + + col0 - + col1 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + CAST ( NULL AS INTEGER ) AND - ( + col0 ) - col1
----

query I rowsort
SELECT DISTINCT + 53 * - col0 * + + 8 AS col1 FROM tab1 AS cor0
----
-21624
-36040
-38584

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3180
SELECT + 45 * + - col2 * - col2 + CAST( NULL AS DECIMAL ) * + + 8 * - col1 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3180
SELECT + 45 * + - col2 * - col2 + CAST ( NULL AS REAL ) * + + 8 * - col1 col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3181
SELECT col1 + - ( + - CAST( NULL AS SIGNED ) ) + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3181
SELECT col1 + - ( + - CAST ( NULL AS INTEGER ) ) + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 20 * - + col2 AS col1 FROM tab0
----
1980
200
940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3183
SELECT ALL + 97 col0 FROM tab2 WHERE - - 19 + col1 = col1 - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3183
SELECT ALL + 97 col0 FROM tab2 WHERE - - 19 + col1 = col1 - - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE NOT - + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE NOT - + col1 IS NOT NULL
----
0

query I rowsort
SELECT col2 + col0 FROM tab0 WHERE NOT - col2 > col1
----
196
62
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3186
SELECT DISTINCT - COUNT( * ), + COUNT( 98 ) * 78 AS col2 FROM tab0 cor0
----
-3
234

skipif mysql # not compatible
query II rowsort label-3186
SELECT DISTINCT - COUNT ( * ), + COUNT ( 98 ) * 78 AS col2 FROM tab0 cor0
----
-3
234

query I rowsort
SELECT ALL - 2 * - col0 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3188
SELECT DISTINCT 25 DIV MIN( - - col0 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3188
SELECT DISTINCT 25 / MIN ( - - col0 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT ALL - COUNT( * ) + + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL - COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

query I rowsort
SELECT DISTINCT + ( - + 67 ) AS col1 FROM tab2, tab1 AS cor0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT ALL + + COUNT( * ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3191
SELECT ALL + + COUNT ( * ) col0 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT - 66 + + COUNT( * ) * - + 89 FROM tab2 AS cor0
----
-333

skipif mysql # not compatible
query I rowsort label-3192
SELECT - 66 + + COUNT ( * ) * - + 89 FROM tab2 AS cor0
----
-333

query I rowsort
SELECT - + col1 * + 44 + + col1 * + col1 + - ( col1 ) FROM tab0 AS cor0
----
-44
-504
2916

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 > col1 * + - col1 * col2 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT - COUNT( * ) + + - 78 AS col2 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3195
SELECT - COUNT ( * ) + + - 78 AS col2 FROM tab2 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3196
SELECT + col2 + - CAST( + + CAST( - 16 AS SIGNED ) AS SIGNED ) FROM tab0
----
115
26
63

skipif mysql # not compatible
query I rowsort label-3196
SELECT + col2 + - CAST ( + + CAST ( - 16 AS INTEGER ) AS INTEGER ) FROM tab0
----
115
26
63

query I rowsort
SELECT ALL + 43 + col2 AS col2 FROM tab2 WHERE ( + col2 ) = NULL
----

query I rowsort
SELECT col0 FROM tab0 WHERE - - col0 * - col2 + + - col0 + - col1 + + col1 + + col2 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT ALL - COUNT( * ) + + 18 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL - COUNT ( * ) + + 18 FROM tab1
----
15

query I rowsort
SELECT + + col0 * - - col1 AS col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL + + 49 + - col0 FROM tab1 AS cor0
----
-2
-36
-42

query I rowsort
SELECT ALL - - 50 * - 27 + - col1 AS col1 FROM tab2 AS cor0
----
-1401
-1417
-1427

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3203
SELECT ( + ( 6 ) ) DIV COUNT( * ) + - 49 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-3203
SELECT ( + ( 6 ) ) / COUNT ( * ) + - 49 FROM tab1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3204
SELECT - col1 - - + CAST( NULL AS SIGNED ) - - + col2 * + 32 + + col1 AS col1 FROM tab1 AS cor0 WHERE + 36 + - col2 * + - ( - col0 ) > NULL
----

skipif mysql # not compatible
query I rowsort label-3204
SELECT - col1 - - + CAST ( NULL AS INTEGER ) - - + col2 * + 32 + + col1 AS col1 FROM tab1 AS cor0 WHERE + 36 + - col2 * + - ( - col0 ) > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - 13 AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT ALL + - COUNT( * ) - - MAX( col2 ) FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL + - COUNT ( * ) - - MAX ( col2 ) FROM tab2 AS cor0
----
55

query II rowsort
SELECT DISTINCT - 74 AS col0, - 65 - + - 98 AS col1 FROM tab1 AS cor0
----
-74
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - col0 col1 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT + COUNT( * ) * - - COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3209
SELECT + COUNT ( * ) * - - COUNT ( * ) FROM tab1 AS cor0
----
9

query II rowsort
SELECT + - col2, 24 + - + col0 AS col1 FROM tab2 cor0
----
-23
-22
-40
-40
-58
-51

query I rowsort
SELECT DISTINCT - - 84 FROM tab0 AS cor0 WHERE NOT - col1 + + col2 < + col0
----
84

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab0 cor0 WHERE NOT col0 * - col2 IS NOT NULL
----

query I rowsort
SELECT ( - col0 ) - 97 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-143
-161
-172

query I rowsort
SELECT ( col0 ) * + - col0 FROM tab0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT ALL + SUM( col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL + SUM ( col2 ) FROM tab1
----
223

query II rowsort
SELECT DISTINCT 17 * col1 * 86 AS col0, + 57 FROM tab2
----
112574
57
74562
57
97954
57

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND col0 + col1
----

query I rowsort
SELECT 21 * + + col0 AS col1 FROM tab2
----
1344
1575
966

query I rowsort
SELECT + - 35 * - + 76 + + - 66 * + col1 FROM tab0 AS cor0
----
-2686
1274
2594

onlyif mysql # DIV for integer division: 
query II rowsort label-3220
SELECT ALL - col2 DIV - + 21, ( + ( - + 4 ) ) * + - col0 AS col2 FROM tab2 AS cor0
----
1
184
1
256
2
300

skipif mysql # not compatible
query II rowsort label-3220
SELECT ALL - col2 / - + 21, ( + ( - + 4 ) ) * + - col0 AS col2 FROM tab2 AS cor0
----
1
184
1
256
2
300

query I rowsort
SELECT - ( - + 85 ) FROM tab2 AS cor0
----
85
85
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3222
SELECT ALL + 26 DIV + ( + col2 ) col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3222
SELECT ALL + 26 / + ( + col2 ) col0 FROM tab2 AS cor0
----
0
0
1

query II rowsort
SELECT DISTINCT col0 AS col1, col1 + + col1 + col1 FROM tab0
----
15
243
87
63
97
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN col0 AND - 8 / - + 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT DISTINCT + + COUNT( * ) * - 87 FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-3225
SELECT DISTINCT + + COUNT ( * ) * - 87 FROM tab1 AS cor0
----
-261

query I rowsort
SELECT ALL - - 66 AS col0 FROM tab0 AS cor0
----
66
66
66

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3228
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3228
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + 68 + + 83 FROM tab1
----
151
151
151

query I rowsort
SELECT + 54 FROM tab1 WHERE - 7 * + col2 * - ( col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - - col1 FROM tab2 WHERE col2 * - 54 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT + COUNT( * ) + - + ( - + 74 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3232
SELECT + COUNT ( * ) + - + ( - + 74 ) FROM tab2
----
77

query I rowsort
SELECT + col1 + + + col2 FROM tab1
----
110
115
64

query I rowsort
SELECT DISTINCT + 26 FROM tab0 WHERE NOT + 76 IS NOT NULL
----

query I rowsort
SELECT + col2 + + ( + col1 ) FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3236
SELECT ALL - - CAST( NULL AS SIGNED ) + + 93 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 31 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL - - CAST ( NULL AS INTEGER ) + + 93 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 31 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT COUNT( * ) - + + 74 AS col2 FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-3237
SELECT COUNT ( * ) - + + 74 AS col2 FROM tab2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT ALL COUNT( * ) + - - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL COUNT ( * ) + - - COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT - 85 - + 13 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - ( + 41 ) col0 FROM tab2 AS cor0
----
64
81
99

query I rowsort
SELECT ALL - AVG ( DISTINCT + - col2 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 col2 FROM tab1 cor0
----
48
48
48

query I rowsort
SELECT DISTINCT + 70 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT ALL + - MAX( col2 ) FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL + - MAX ( col2 ) FROM tab2 cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( col1 ), + col2 col0 FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT - col2 > 59
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT ALL COUNT( + - 35 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3247
SELECT ALL COUNT ( + - 35 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 0 col2 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 + - 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT - COUNT( DISTINCT - - col0 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3250
SELECT - COUNT ( DISTINCT - - col0 ) AS col0 FROM tab2
----
-3

query II rowsort
SELECT DISTINCT - col1 AS col0, col0 FROM tab1 cor0
----
-14
51
-47
91
-5
85

query II rowsort
SELECT col1, + col0 AS col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 69 col2 FROM tab1 AS cor0
----
-69
-69
-69

query II rowsort
SELECT ALL - 35, 52 AS col1 FROM tab2 AS cor0
----
-35
52
-35
52
-35
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT - COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3255
SELECT - COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL 20 + - col0 * col0 FROM tab0 cor0
----
-205
-7549
-9389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3257
SELECT + col1 + 16 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3257
SELECT + col1 + 16 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 53 * + col2 FROM tab0 AS cor0
----
-2491
-5247
-530

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT - + 56 * - 77 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
4315

skipif mysql # not compatible
query I rowsort label-3259
SELECT - + 56 * - 77 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
4315

query I rowsort
SELECT - 11 + col2 AS col1 FROM tab2 cor0
----
12
29
47

query I rowsort
SELECT DISTINCT - col1 + - + col1 + - + ( - - 90 ) AS col1 FROM tab2 AS cor0
----
-192
-224
-244

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3262
SELECT - + col2 + - col1 + + ( col2 ) - col1 * + - 54 * - CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-23835
-354375
-55

skipif mysql # not compatible
query I rowsort label-3262
SELECT - + col2 + - col1 + + ( col2 ) - col1 * + - 54 * - CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-23835
-354375
-55

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 42 > + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <= - ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <= - ( + col2 )
----
0

query II rowsort
SELECT - ( + col1 ), 80 AS col1 FROM tab2 AS cor0
----
-51
80
-67
80
-77
80

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 + - col0 <> + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT 22 < NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3268
SELECT - ( col2 ) DIV 42 * + - col1 AS col0 FROM tab2
----
0
0
67

skipif mysql # not compatible
query I rowsort label-3268
SELECT - ( col2 ) / 42 * + - col1 AS col0 FROM tab2
----
0
0
67

query III rowsort
SELECT * FROM tab2 WHERE - + col0 * - col2 NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT col1 * 13 FROM tab0
----
1053
13
273

query I rowsort
SELECT DISTINCT + 42 FROM tab0 AS cor0 WHERE NOT + 94 BETWEEN - 92 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, + col0 AS col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( ( - - 35 ) ) IS NULL
----

query I rowsort
SELECT ( - col1 ) + + col0 + - ( - col2 ) + + 13 * - col0 + + col2 * + col1 FROM tab0 AS cor0
----
-845
-967
3593

query III rowsort
SELECT * FROM tab1 WHERE - col2 * col2 IS NULL
----

query I rowsort
SELECT col2 * ( + 65 ) AS col1 FROM tab1
----
3835
4420
6240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3277
SELECT CAST( 47 AS SIGNED ) * 15 AS col0 FROM tab0
----
705
705
705

skipif mysql # not compatible
query I rowsort label-3277
SELECT CAST ( 47 AS INTEGER ) * 15 AS col0 FROM tab0
----
705
705
705

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE NOT ( col2 + - 54 ) IS NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 7 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 62 ) NOT BETWEEN ( NULL ) AND + 69 + col0 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT DISTINCT SUM( ALL - 37 ) * + COUNT( DISTINCT col0 ) FROM tab1
----
-333

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT SUM ( ALL - 37 ) * + COUNT ( DISTINCT col0 ) FROM tab1
----
-333

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3282
SELECT DISTINCT + CAST( 28 AS SIGNED ) AS col2 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-3282
SELECT DISTINCT + CAST ( 28 AS INTEGER ) AS col2 FROM tab1
----
28

query I rowsort
SELECT ( 14 ) AS col0 FROM tab0
----
14
14
14

query I rowsort
SELECT + 84 * col1 + - col0 FROM tab0
----
-13
1677
6789

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT DISTINCT + ( + AVG ( - col0 ) ) * + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL >= 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT + ( + AVG ( - col0 ) ) * + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL >= 45
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * - col1 > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3287
SELECT ALL - 74 / + 94 FROM tab1 WHERE - CAST( col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL - 74 / + 94 FROM tab1 WHERE - CAST ( col2 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT MAX( col0 ) col0 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3288
SELECT MAX ( col0 ) col0 FROM tab2
----
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 BETWEEN ( NULL ) AND + col0 * 3
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3290
SELECT - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3290
SELECT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( col2 + + col1 )
----

query I rowsort
SELECT DISTINCT - col0 * col1 + 9 AS col2 FROM tab0
----
-1206
-1818
-88

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 NOT IN ( col2 + - col2 )
----

query I rowsort
SELECT - 17 * col2 + 98 * 73 FROM tab2
----
6168
6474
6763

query III rowsort
SELECT * FROM tab2 WHERE 78 NOT IN ( + col0 + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * ( - col0 ) + col2 FROM tab0
----
1262
1837
196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3297
SELECT + MAX( + 66 ) * + CAST( + 71 AS SIGNED ) col0 FROM tab2 WHERE NOT ( col0 * CAST( NULL AS SIGNED ) + col1 ) IS NOT NULL
----
4686

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3297
SELECT + MAX ( + 66 ) * + CAST ( + 71 AS INTEGER ) col0 FROM tab2 WHERE NOT ( col0 * CAST ( NULL AS INTEGER ) + col1 ) IS NOT NULL
----
4686

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3299
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT ALL + ( COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN - 40 * col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL + ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN - 40 * col2 AND NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 ) NOT BETWEEN 28 AND ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 95 + col0 col1 FROM tab1 AS cor0
----
-10
-4
-44

query I rowsort
SELECT - + 66 * + 12 FROM tab0 cor0
----
-792
-792
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL >= ( - 54 )
----
0

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL >= ( - 54 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT DISTINCT + 16 * MIN( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
736

skipif mysql # not compatible
query I rowsort label-3305
SELECT DISTINCT + 16 * MIN ( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
736

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col2 ) NOT IN ( + col0 - + 71 / - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col2 ) NOT IN ( + col0 - + 71 / - col1 )
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 16 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE col2 * + col1 = NULL
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE + col2 / - col1 + col2 IN ( - col0 )
----

query I rowsort
SELECT ALL + col1 * - 37 AS col0 FROM tab0
----
-2997
-37
-777

query I rowsort
SELECT DISTINCT 27 FROM tab0 WHERE NOT - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 + + 23 AS col2 FROM tab2
----
-17
-35
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT DISTINCT COUNT( * ) * ( COUNT( - ( col1 ) ) ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT COUNT ( * ) * ( COUNT ( - ( col1 ) ) ) FROM tab2
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 46 ) <> col1 * col1
----

query I rowsort
SELECT - col2 + + - col2 + + col0 * col2 FROM tab2
----
1012
2480
4234

query I rowsort
SELECT 93 + + col2 FROM tab2
----
116
133
151

query I rowsort
SELECT DISTINCT 42 + - + col0 * - ( + col2 ) FROM tab0
----
747
912
9645

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3318
SELECT * FROM tab0 AS cor0 WHERE + 14 = - ( + CAST( NULL AS SIGNED ) ) + + col0
----

skipif mysql # not compatible
query III rowsort label-3318
SELECT * FROM tab0 AS cor0 WHERE + 14 = - ( + CAST ( NULL AS INTEGER ) ) + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT DISTINCT ( 29 ) + + MIN( DISTINCT col1 - + 6 ) FROM tab1 AS cor0 WHERE NOT 94 >= col0 * 25 - + col0 * col1
----
28

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT ( 29 ) + + MIN ( DISTINCT col1 - + 6 ) FROM tab1 AS cor0 WHERE NOT 94 >= col0 * 25 - + col0 * col1
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-3320
SELECT ALL + col0 DIV - - 46 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3320
SELECT ALL + col0 / - - 46 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT 94 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query II rowsort
SELECT ALL - 80 AS col2, col0 AS col1 FROM tab2
----
-80
46
-80
64
-80
75

query I rowsort
SELECT DISTINCT + + 72 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT DISTINCT - MIN( DISTINCT - + 59 ) col1 FROM tab0 cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3324
SELECT DISTINCT - MIN ( DISTINCT - + 59 ) col1 FROM tab0 cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 <> ( 15 ) * 60
----

query II rowsort
SELECT col0 AS col0, col0 * + col0 * 41 AS col1 FROM tab1 cor0
----
51
106641
85
296225
91
339521

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT + - MAX( DISTINCT + 82 ) FROM tab0 AS cor0 WHERE NOT - 35 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3328
SELECT + - MAX ( DISTINCT + 82 ) FROM tab0 AS cor0 WHERE NOT - 35 NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE ( NULL ) >= ( col2 / col2 )
----

query I rowsort
SELECT 92 * + - col2 FROM tab2 AS cor0
----
-2116
-3680
-5336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3331
SELECT + 56 * - - CAST( + - ( COUNT( * ) ) AS SIGNED ) + - 0 FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-3331
SELECT + 56 * - - CAST ( + - ( COUNT ( * ) ) AS INTEGER ) + - 0 FROM tab2 AS cor0
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT DISTINCT - - COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3332
SELECT DISTINCT - - COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col2 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT DISTINCT - SUM( + 97 ) FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT - SUM ( + 97 ) FROM tab1
----
-291

query I rowsort
SELECT col1 / - 24 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col1 >= ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 col1 FROM tab2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT DISTINCT - 69 * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 66 <> - 57
----
0

skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT - 69 * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 66 <> - 57
----
0

query I rowsort
SELECT - ( + 47 ) AS col0 FROM tab0 AS cor0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT SUM( 10 ) + + 46 AS col0 FROM tab2 WHERE NULL IS NULL
----
76

skipif mysql # not compatible
query I rowsort label-3340
SELECT SUM ( 10 ) + + 46 AS col0 FROM tab2 WHERE NULL IS NULL
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT - + MAX( - col0 ) + - COUNT( + 73 ) AS col0 FROM tab0 cor0
----
12

skipif mysql # not compatible
query I rowsort label-3341
SELECT - + MAX ( - col0 ) + - COUNT ( + 73 ) AS col0 FROM tab0 cor0
----
12

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + + col0 = ( + 78 / - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 44 NOT BETWEEN + col1 + + col2 AND ( + col2 * - col0 - + col0 * 24 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col2 + - col0 - - col1 AS col0, + 48 * - + 38 FROM tab1 AS cor0
----
-21
-1824
24
-1824
59
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT DISTINCT + COUNT( * ) - + + COUNT( * ) AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT + COUNT ( * ) - + + COUNT ( * ) AS col0 FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3346
SELECT * FROM tab2 AS cor0 WHERE - col0 * - CAST( NULL AS SIGNED ) NOT IN ( + col1 / col1 + - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3346
SELECT * FROM tab2 AS cor0 WHERE - col0 * - CAST ( NULL AS INTEGER ) NOT IN ( + col1 / col1 + - CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT - 25 + col0 + + col2 * col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
1639
3414
550

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT + MIN( DISTINCT col1 ) col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3348
SELECT + MIN ( DISTINCT col1 ) col2 FROM tab2 AS cor0
----
51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT - COUNT( col1 ) - COUNT( * ) col1 FROM tab1 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3350
SELECT - COUNT ( col1 ) - COUNT ( * ) col1 FROM tab1 WHERE col1 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3351
SELECT DISTINCT col1 DIV - - col2 + - 17 DIV - ( + col1 ) FROM tab0
----
1
17
2

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT col1 / - - col2 + - 17 / - ( + col1 ) FROM tab0
----
1
17
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT ALL ( + COUNT( * ) ) FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL ( + COUNT ( * ) ) FROM tab0, tab2 AS cor0
----
9

query I rowsort
SELECT ALL ( col1 ) + - 38 AS col1 FROM tab0
----
-17
-37
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 92 + - 75 col1 FROM tab2
----
-167

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE 65 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NOT - 49 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT DISTINCT - MIN( col2 ) * + 70 AS col2 FROM tab1 WHERE ( NULL ) < 9 / - col1 + col1 * + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-3357
SELECT DISTINCT - MIN ( col2 ) * + 70 AS col2 FROM tab1 WHERE ( NULL ) < 9 / - col1 + col1 * + 87
----
NULL

query II rowsort
SELECT DISTINCT + - 27, + col1 AS col0 FROM tab2 AS cor0 WHERE col2 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT - COUNT( - 61 ) + + + 47 AS col0 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-3359
SELECT - COUNT ( - 61 ) + + + 47 AS col0 FROM tab0 AS cor0
----
44

query I rowsort
SELECT ALL - 95 * + 44 + + 19 FROM tab2 AS cor0
----
-4161
-4161
-4161

query II rowsort
SELECT ALL col1 * + col1, col1 AS col0 FROM tab2
----
2601
51
4489
67
5929
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3362
SELECT ALL + - col2 * 70, + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
-1610
NULL
-2800
NULL
-4060
NULL

skipif mysql # not compatible
query II rowsort label-3362
SELECT ALL + - col2 * 70, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
-1610
NULL
-2800
NULL
-4060
NULL

query I rowsort
SELECT + 86 FROM tab2 cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT MIN( DISTINCT ( col0 ) ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3364
SELECT MIN ( DISTINCT ( col0 ) ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT + col1 FROM tab0 cor0 WHERE NOT col1 IS NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col0 + + + col0 / + 44 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col1, 48 + + 92 FROM tab1
----
14
140
47
140
5
140

query I rowsort
SELECT DISTINCT col0 * - col1 * - - col2 AS col0 FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT col0 * - 46 FROM tab1
----
-2346
-3910
-4186

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT ALL COUNT( * ) * - - COUNT( + 94 ) * COUNT( * ) AS col1 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL COUNT ( * ) * - - COUNT ( + 94 ) * COUNT ( * ) AS col1 FROM tab0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3371
SELECT + col0 + - col0 DIV + col0 col2 FROM tab2
----
45
63
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3371
SELECT + col0 + - col0 / + col0 col2 FROM tab2
----
45
63
74

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - - 14 * + 17 + - col1 + col1 + - col2 AND + 25
----

query I rowsort
SELECT + 47 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2, - col0 * + col2 ) AND NOT ( NOT ( - + col1 ) <> NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( + - 30 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT COUNT( - + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3375
SELECT COUNT ( - + col2 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col2 >= - + 73
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + 92 + + col0 AS col1, + col2 AS col2 FROM tab2
----
138
23
156
40
167
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3378
SELECT - COUNT( * ) - + + COUNT( * ), + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-6
3

skipif mysql # not compatible
query II rowsort label-3378
SELECT - COUNT ( * ) - + + COUNT ( * ), + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-6
3

query II rowsort
SELECT DISTINCT + + 99 + + - 48, - 27 AS col2 FROM tab0 AS cor0
----
51
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3380
SELECT col2 - - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3380
SELECT col2 - - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT ALL + 57 - + COUNT( * ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL + 57 - + COUNT ( * ) FROM tab2 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT ALL - 49 - + + COUNT( + + 99 ) AS col1 FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL - 49 - + + COUNT ( + + 99 ) AS col1 FROM tab0 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT ALL COUNT( ALL col1 ) + - 85 * 44 AS col0 FROM tab2
----
-3737

skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL COUNT ( ALL col1 ) + - 85 * 44 AS col0 FROM tab2
----
-3737

query I rowsort
SELECT - col2 * - col2 + - col1 AS col1 FROM tab1
----
3476
4577
9202

query I rowsort
SELECT ALL - 38 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-38
-38
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 + col0 col0 FROM tab0
----
-72
0
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3387
SELECT COUNT( * ) + COUNT( DISTINCT + + col2 ) AS col2, + 57 FROM tab2
----
6
57

skipif mysql # not compatible
query II rowsort label-3387
SELECT COUNT ( * ) + COUNT ( DISTINCT + + col2 ) AS col2, + 57 FROM tab2
----
6
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3388
SELECT ALL - 96 - - - col2 + + - col1 - + - 79 DIV - - 77 AS col1 FROM tab1 WHERE NOT col0 * - 4 > - col1
----
-159
-205
-210

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL - 96 - - - col2 + + - col1 - + - 79 / - - 77 AS col1 FROM tab1 WHERE NOT col0 * - 4 > - col1
----
-159
-205
-210

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3389
SELECT col2, + CAST( NULL AS SIGNED ) + - + col1 * - col1 AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-3389
SELECT col2, + CAST ( NULL AS INTEGER ) + - + col1 * - col1 AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3390
SELECT DISTINCT + col1 + CAST( NULL AS SIGNED ) + + 63 + col1 * - col0 * + col2 col1, col1 + col1 + col0 FROM tab0
----
NULL
129
NULL
177
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3390
SELECT DISTINCT + col1 + CAST ( NULL AS INTEGER ) + + 63 + col1 * - col0 * + col2 col1, col1 + col1 + col0 FROM tab0
----
NULL
129
NULL
177
NULL
99

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 75 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3392
SELECT - 64 AS col1, - SUM( DISTINCT - col2 ) FROM tab2
----
-64
121

skipif mysql # not compatible
query II rowsort label-3392
SELECT - 64 AS col1, - SUM ( DISTINCT - col2 ) FROM tab2
----
-64
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT 29 * + MIN( ALL + + col2 ) FROM tab2
----
667

skipif mysql # not compatible
query I rowsort label-3393
SELECT 29 * + MIN ( ALL + + col2 ) FROM tab2
----
667

query I rowsort
SELECT - 67 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT IN ( + 29 )
----

query I rowsort
SELECT DISTINCT - 1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3396
SELECT + 82, + 35 + + 13 + + COUNT( * ) * - 25 AS col0 FROM tab0 cor0
----
82
-27

skipif mysql # not compatible
query II rowsort label-3396
SELECT + 82, + 35 + + 13 + + COUNT ( * ) * - 25 AS col0 FROM tab0 cor0
----
82
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT ALL - ( + COUNT( + 28 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL - ( + COUNT ( + 28 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3398
SELECT + ( - + col0 ) * + - 45 + + + col2 * + - col0 + - col1 + 64 + col2 + - - CAST( NULL AS SIGNED ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3398
SELECT + ( - + col0 ) * + - 45 + + + col2 * + - col0 + - col1 + 64 + col2 + - - CAST ( NULL AS INTEGER ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT DISTINCT COUNT( * ) * + 95 FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-3399
SELECT DISTINCT COUNT ( * ) * + 95 FROM tab1
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT ALL - 99 + - COUNT( 61 ) FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL - 99 + - COUNT ( 61 ) FROM tab0
----
-102

query II rowsort
SELECT + col0 * + - col0 - + - 44 * + + col0 * - + col0 * + col1, - col1 FROM tab0 WHERE ( NOT NULL >= ( NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3402
SELECT ALL - CAST( NULL AS SIGNED ) / - + ( - COUNT( * ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL - CAST ( NULL AS INTEGER ) / - + ( - COUNT ( * ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3403
SELECT + COUNT( * ) AS col2, 93 FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN NULL AND 29 * + - col1
----
3
93

skipif mysql # not compatible
query II rowsort label-3403
SELECT + COUNT ( * ) AS col2, 93 FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN NULL AND 29 * + - col1
----
3
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT + ( + MAX( - col2 ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3404
SELECT + ( + MAX ( - col2 ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + + 55 * col0 + + 68 FROM tab0 AS cor0
----
4853
5403
893

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT - 0 * + + COUNT( * ) - - COUNT( * ) AS col0 FROM tab2 cor0 WHERE 42 * + ( col0 ) * + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3406
SELECT - 0 * + + COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab2 cor0 WHERE 42 * + ( col0 ) * + col2 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab2 AS cor0 WHERE + col2 < col1
----
23
40
58

query I rowsort
SELECT ALL + 26 + col1 FROM tab0
----
107
27
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT - - MIN( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3409
SELECT - - MIN ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT ALL - - col1 - - ( col2 ) AS col2 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT - SUM( ALL + - col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3411
SELECT - SUM ( ALL + - col2 ) AS col2 FROM tab1 AS cor0
----
223

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = + col2 + + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT ALL - SUM( ALL + col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL - SUM ( ALL + col2 ) FROM tab0
----
-156

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND - - col1
----

query I rowsort
SELECT - + col2 * col1 + - col1 AS col2 FROM tab2 AS cor0
----
-1224
-3157
-3953

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3416
SELECT + - ( + + CAST( 57 AS SIGNED ) ) FROM tab2 AS cor0
----
-57
-57
-57

skipif mysql # not compatible
query I rowsort label-3416
SELECT + - ( + + CAST ( 57 AS INTEGER ) ) FROM tab2 AS cor0
----
-57
-57
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3417
SELECT ALL + CAST( NULL AS SIGNED ) * - 34 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL + CAST ( NULL AS INTEGER ) * - 34 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 99 * + col0 FROM tab0
----
1485
8613
9603

query I rowsort
SELECT ALL col0 * col0 * + col0 AS col0 FROM tab0
----
3375
658503
912673

query I rowsort
SELECT col0 * + - ( - - 99 ) FROM tab1 AS cor0
----
-5049
-8415
-9009

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 15 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 * + + ( - col2 ) FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT col1 * - col0 + ( col1 ) FROM tab2 AS cor0
----
-2295
-4851
-4958

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * - + 82 IS NOT NULL
----

query I rowsort
SELECT - col1 * + + ( - col1 ) FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3426
SELECT ALL - + CAST( NULL AS SIGNED ) + + MAX( ALL 36 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL - + CAST ( NULL AS INTEGER ) + + MAX ( ALL 36 ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 29 AS col1 FROM tab2 WHERE + + col1 >= - col0 + - col2 - 3
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT - COUNT( * ) + + - 39 + COUNT( * ) col2 FROM tab1
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3428
SELECT - COUNT ( * ) + + - 39 + COUNT ( * ) col2 FROM tab1
----
-39

query I rowsort
SELECT ALL - col2 * - - 23 AS col1 FROM tab1
----
-1357
-1564
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT - 2 + - COUNT( * ) AS col0 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-3430
SELECT - 2 + - COUNT ( * ) AS col0 FROM tab2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT DISTINCT - ( + - COUNT( * ) ) + - COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3431
SELECT DISTINCT - ( + - COUNT ( * ) ) + - COUNT ( * ) AS col1 FROM tab0
----
0

query I rowsort
SELECT 76 * - 25 + + col2 AS col2 FROM tab1
----
-1804
-1832
-1841

query I rowsort
SELECT + ( + + col0 ) + + col1 AS col2 FROM tab2
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3434
SELECT - col1 DIV - - col2 + + col2 + + 69 FROM tab2 AS cor0
----
108
126
90

skipif mysql # not compatible
query I rowsort label-3434
SELECT - col1 / - - col2 + + col2 + + 69 FROM tab2 AS cor0
----
108
126
90

query I rowsort
SELECT ALL + col2 * col1 * - col0 + + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3436
SELECT ALL COUNT( * ) * - ( CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL COUNT ( * ) * - ( CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT DISTINCT - 92 * - COUNT( * ) FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-3437
SELECT DISTINCT - 92 * - COUNT ( * ) FROM tab1
----
276

query III rowsort
SELECT * FROM tab0 WHERE NOT 38 <= - + col1 OR NOT - + 46 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 91 * + col2 FROM tab0
----
4277
9009
910

query I rowsort
SELECT - col0 - - 31 * + col2 * + ( - col1 ) FROM tab0
----
-118032
-3166
-6597

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3441
SELECT + CAST( - 85 AS SIGNED ) - 43 AS col0 FROM tab2
----
-128
-128
-128

skipif mysql # not compatible
query I rowsort label-3441
SELECT + CAST ( - 85 AS INTEGER ) - 43 AS col0 FROM tab2
----
-128
-128
-128

query I rowsort
SELECT DISTINCT col0 + 26 AS col1 FROM tab0
----
113
123
41

query I rowsort
SELECT ALL + + col0 * - - 35 * + col2 - - + col1 AS col0 FROM tab1 AS cor0
----
171374
175530
216627

query I rowsort
SELECT ALL - 96 FROM tab2 AS cor0 WHERE NOT NULL < 76 + - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - 86 col2 FROM tab2 WHERE ( NOT + col0 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, + 67 FROM tab0
----
1
67
21
67
81
67

query II rowsort
SELECT DISTINCT col1 AS col1, 43 AS col0 FROM tab1
----
14
43
47
43
5
43

query II rowsort
SELECT col2 * - 59 * 25 AS col1, - col2 FROM tab1
----
-100300
-68
-141600
-96
-87025
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT + 89 * - + COUNT( * ) FROM tab0
----
-267

skipif mysql # not compatible
query I rowsort label-3449
SELECT + 89 * - + COUNT ( * ) FROM tab0
----
-267

query III rowsort
SELECT * FROM tab0 WHERE NOT 82 / + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3451
SELECT DISTINCT - CAST( + + CAST( + ( + 36 ) AS SIGNED ) AS SIGNED ) * + col0 + + 49 FROM tab1 WHERE NOT col0 >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT - CAST ( + + CAST ( + ( + 36 ) AS INTEGER ) AS INTEGER ) * + col0 + + 49 FROM tab1 WHERE NOT col0 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3452
SELECT DISTINCT ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 + - 95 AS col2 FROM tab1
----
-100
-109
-142

query I rowsort
SELECT ALL - - 92 AS col2 FROM tab1 AS cor0
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3455
SELECT AVG ( + 20 ) * - CAST( NULL AS SIGNED ) + + + 44 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3455
SELECT AVG ( + 20 ) * - CAST ( NULL AS INTEGER ) + + + 44 AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT 77 + ( - col1 ) AS col0 FROM tab2 AS cor0
----
0
10
26

query I rowsort
SELECT + 84 + - - col2 FROM tab0 cor0
----
131
183
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 + - 44 col2 FROM tab1 cor0 WHERE NOT + col2 / - col2 + - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT ( + MAX( col0 ) ) col1 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3459
SELECT ( + MAX ( col0 ) ) col1 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT ALL + COUNT( * ) AS col1 FROM tab0 WHERE - 28 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 WHERE - 28 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3461
SELECT 90 / + - col1 + - col2 * - - CAST( NULL AS SIGNED ) FROM tab0 WHERE + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3461
SELECT 90 / + - col1 + - col2 * - - CAST ( NULL AS INTEGER ) FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT MIN( + + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3462
SELECT MIN ( + + col2 ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT DISTINCT - 54 + COUNT( * ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT - 54 + COUNT ( * ) AS col2 FROM tab2
----
-51

query III rowsort
SELECT * FROM tab2 WHERE 26 + col2 * + col0 IS NULL
----

query I rowsort
SELECT DISTINCT 27 * - - col2 + ( col0 ) AS col0 FROM tab1
----
1678
1927
2643

query I rowsort
SELECT ALL - - 4 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col0 * + ( - - col2 ) FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT DISTINCT + 27 + + + COUNT( * ) AS col2 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT + 27 + + + COUNT ( * ) AS col2 FROM tab0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3469
SELECT + CAST( - + 28 AS SIGNED ) AS col1 FROM tab0
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-3469
SELECT + CAST ( - + 28 AS INTEGER ) AS col1 FROM tab0
----
-28
-28
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab2 AS cor0 WHERE ( col0 ) > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3471
SELECT ALL - col1 * - CAST( NULL AS DECIMAL ) + + + col0 - - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL - col1 * - CAST ( NULL AS REAL ) + + + col0 - - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3472
SELECT ALL - 95 - + + CAST( - 43 AS SIGNED ), + ( + col2 ) FROM tab2 AS cor0
----
-52
23
-52
40
-52
58

skipif mysql # not compatible
query II rowsort label-3472
SELECT ALL - 95 - + + CAST ( - 43 AS INTEGER ), + ( + col2 ) FROM tab2 AS cor0
----
-52
23
-52
40
-52
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT - - SUM( + ( + col1 ) ) - - - 37 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3473
SELECT - - SUM ( + ( + col1 ) ) - - - 37 FROM tab0 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3474
SELECT - col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3474
SELECT - col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT + + SUM( + - col2 ) + + + COUNT( * ) FROM tab0 cor0
----
-153

skipif mysql # not compatible
query I rowsort label-3475
SELECT + + SUM ( + - col2 ) + + + COUNT ( * ) FROM tab0 cor0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT ALL + 86 - COUNT( * ) FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL + 86 - COUNT ( * ) FROM tab0 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT - COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3477
SELECT - COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-9

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NOT NULL < NULL
----

query II rowsort
SELECT - 95, col1 AS col0 FROM tab1
----
-95
14
-95
47
-95
5

query I rowsort
SELECT ALL + 55 - + ( + 15 ) AS col0 FROM tab0 cor0
----
40
40
40

query II rowsort
SELECT + - 17, + col1 AS col0 FROM tab0 cor0
----
-17
1
-17
21
-17
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT DISTINCT - + 69 * - + 94 - SUM( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
6685

skipif mysql # not compatible
query I rowsort label-3482
SELECT DISTINCT - + 69 * - + 94 - SUM ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
6685

query II rowsort
SELECT DISTINCT col1, 99 FROM tab1 AS cor0
----
14
99
47
99
5
99

query I rowsort
SELECT ALL + col2 * + + col2 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT + COUNT( + + col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3485
SELECT + COUNT ( + + col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 67 col2 FROM tab0 AS cor0
----
67
67
67

query II rowsort
SELECT 61, 76 AS col2 FROM tab2 AS cor0
----
61
76
61
76
61
76

query I rowsort
SELECT ALL + 52 * ( - 51 ) FROM tab1 AS cor0
----
-2652
-2652
-2652

query II rowsort
SELECT DISTINCT + col2, 71 AS col0 FROM tab2 AS cor0
----
23
71
40
71
58
71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3490
SELECT ALL - col0 DIV + - col2 AS col0, + 79 DIV + + ( + - CAST( col2 AS SIGNED ) ) AS col1 FROM tab0
----
0
-1
0
0
8
-7

skipif mysql # not compatible
query II rowsort label-3490
SELECT ALL - col0 / + - col2 AS col0, + 79 / + + ( + - CAST ( col2 AS INTEGER ) ) AS col1 FROM tab0
----
0
-1
0
0
8
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT MIN( - 3 ) * + 21 AS col1 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-3491
SELECT MIN ( - 3 ) * + 21 AS col1 FROM tab1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT ALL - + COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL > - - col1
----
0

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL - + COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL > - - col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 30 ) * - col2 * - 24 * + 53 col2 FROM tab2
----
-1526400
-2213280
-877680

onlyif mysql # DIV for integer division: 
query I rowsort label-3494
SELECT DISTINCT 42 DIV 54 * - - col0 * - 70 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3494
SELECT DISTINCT 42 / 54 * - - col0 * - 70 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col2 * + + col1 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT DISTINCT + col1 + + - col2 + - col0 * col2 FROM tab1 AS cor0
----
-4978
-5069
-6209

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3497
SELECT DISTINCT - 30 DIV - COUNT( * ) AS col1 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-3497
SELECT DISTINCT - 30 / - COUNT ( * ) AS col1 FROM tab1
----
10

query I rowsort
SELECT ALL + - 66 AS col1 FROM tab2 WHERE + col1 IS NULL
----

query I rowsort
SELECT + - 51 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT + + COUNT( * ) * - - 27 - MIN( + col2 ) AS col0 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-3500
SELECT + + COUNT ( * ) * - - 27 - MIN ( + col2 ) AS col0 FROM tab1 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT + COUNT( * ) * + + 96 AS col2 FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-3501
SELECT + COUNT ( * ) * + + 96 AS col2 FROM tab2 AS cor0
----
288

onlyif mysql # DIV for integer division: 
query II rowsort label-3502
SELECT DISTINCT - col1, - col0 DIV + + 58 AS col2 FROM tab2 AS cor0
----
-51
0
-67
-1
-77
-1

skipif mysql # not compatible
query II rowsort label-3502
SELECT DISTINCT - col1, - col0 / + + 58 AS col2 FROM tab2 AS cor0
----
-51
0
-67
-1
-77
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT + - COUNT( * ) * 51 AS col1 FROM tab2 cor0
----
-153

skipif mysql # not compatible
query I rowsort label-3503
SELECT + - COUNT ( * ) * 51 AS col1 FROM tab2 cor0
----
-153

query III rowsort
SELECT * FROM tab2 WHERE ( ( ( ( - 18 ) IS NULL ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3505
SELECT - CAST( - - COUNT( CAST( NULL AS SIGNED ) ) AS SIGNED ) + - ( - COUNT( * ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3505
SELECT - CAST ( - - COUNT ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) + - ( - COUNT ( * ) ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE - 85 IS NULL
----

query I rowsort
SELECT ALL col0 + - - col0 FROM tab1
----
102
170
182

onlyif mysql # DIV for integer division: 
query II rowsort label-3508
SELECT col1 * - 84 * + col1 + - col0 AS col0, col1 DIV + col2 FROM tab0
----
-181
0
-37131
2
-551139
1

skipif mysql # not compatible
query II rowsort label-3508
SELECT col1 * - 84 * + col1 + - col0 AS col0, col1 / + col2 FROM tab0
----
-181
0
-37131
2
-551139
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3509
SELECT + col1 DIV - col2 + col0 + + ( - col2 ) - - col1 + - + col0 * + col1 AS col2 FROM tab0
----
-1167
-1731
-98

skipif mysql # not compatible
query I rowsort label-3509
SELECT + col1 / - col2 + col0 + + ( - col2 ) - - col1 + - + col0 * + col1 AS col2 FROM tab0
----
-1167
-1731
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT ALL + 19 - + COUNT( * ) col2 FROM tab2
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3510
SELECT ALL + 19 - + COUNT ( * ) col2 FROM tab2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT ALL 10 + + SUM( ALL - col1 ) FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL 10 + + SUM ( ALL - col1 ) FROM tab1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT ALL + 88 * - - COUNT( * ) FROM tab2 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL + 88 * - - COUNT ( * ) FROM tab2 AS cor0
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT ALL MAX( DISTINCT - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-5

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL MAX ( DISTINCT - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT ALL - - 98 - - - SUM( DISTINCT + 99 ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL - - 98 - - - SUM ( DISTINCT + 99 ) FROM tab2 cor0
----
-1

query I rowsort
SELECT DISTINCT + ( - col1 ) * + 62 AS col2 FROM tab1 AS cor0
----
-2914
-310
-868

onlyif mysql # aggregate syntax: 
query II rowsort label-3516
SELECT 73 - - - 94 + + COUNT( * ), + 44 AS col1 FROM tab0
----
-18
44

skipif mysql # not compatible
query II rowsort label-3516
SELECT 73 - - - 94 + + COUNT ( * ), + 44 AS col1 FROM tab0
----
-18
44

onlyif mysql # DIV for integer division: 
query I rowsort label-3517
SELECT col1 DIV - + ( - + col2 ) - + col2 AS col1 FROM tab2
----
-21
-39
-57

skipif mysql # not compatible
query I rowsort label-3517
SELECT col1 / - + ( - + col2 ) - + col2 AS col1 FROM tab2
----
-21
-39
-57

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3520
SELECT ALL - col2 DIV + - 23 AS col2 FROM tab1 AS cor0
----
2
2
4

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL - col2 / + - 23 AS col2 FROM tab1 AS cor0
----
2
2
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT DISTINCT - MIN( ALL 2 ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-3521
SELECT DISTINCT - MIN ( ALL 2 ) FROM tab1
----
-2

query I rowsort
SELECT ALL + - 76 + + col2 FROM tab1 WHERE NULL NOT BETWEEN col1 AND col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 40 NOT BETWEEN + 17 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3524
SELECT 50 DIV + CAST( - col0 AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3524
SELECT 50 / + CAST ( - col0 AS INTEGER ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT DISTINCT COUNT( ALL + + 26 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3525
SELECT DISTINCT COUNT ( ALL + + 26 ) AS col0 FROM tab2
----
3

query II rowsort
SELECT + 15 AS col2, 98 FROM tab2
----
15
98
15
98
15
98

query II rowsort
SELECT ALL + col1, 64 FROM tab2
----
51
64
67
64
77
64

query I rowsort
SELECT DISTINCT + 86 * - col2 * - - 44 AS col1 FROM tab1
----
-223256
-257312
-363264

query I rowsort
SELECT ALL - ( + ( + col1 ) ) * + 33 * + + col2 FROM tab1
----
-105468
-44352
-9735

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT 16 * - COUNT( * ) FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-3530
SELECT 16 * - COUNT ( * ) FROM tab0
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-3531
SELECT DISTINCT - - col1 DIV - 77 + - 86 AS col0 FROM tab2 AS cor0
----
-86
-87

skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT - - col1 / - 77 + - 86 AS col0 FROM tab2 AS cor0
----
-86
-87

query II rowsort
SELECT DISTINCT 24, col2 AS col1 FROM tab1 cor0
----
24
59
24
68
24
96

query I rowsort
SELECT ALL - ( + + 19 ) FROM tab1 AS cor0
----
-19
-19
-19

query II rowsort
SELECT DISTINCT + 80 AS col0, + col0 AS col0 FROM tab0 AS cor0
----
80
15
80
87
80
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 col0 FROM tab2 AS cor0 WHERE NOT 69 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3536
SELECT ALL + - ( - col0 ) + + - 46 + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL + - ( - col0 ) + + - 46 + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + + col0 ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3538
SELECT - 58 * ( + CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NOT - col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3538
SELECT - 58 * ( + CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NOT - col2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT ALL + 97 * COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
873

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL + 97 * COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
873

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 + + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + col2 AS col0, 54 col1 FROM tab2 AS cor0
----
-28
54
-37
54
-9
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3542
SELECT DISTINCT - - 10 DIV - col1 + + ( + + 77 ) FROM tab0 AS cor0
----
67
77

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT - - 10 / - col1 + + ( + + 77 ) FROM tab0 AS cor0
----
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 21 + - col1 col0, + 30 * - ( 76 ) AS col0 FROM tab0 AS cor0
----
-60
-2280
0
-2280
20
-2280

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT - 11 * - - MIN( DISTINCT col1 ) + + COUNT( ALL + - col0 ) AS col0 FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-3544
SELECT - 11 * - - MIN ( DISTINCT col1 ) + + COUNT ( ALL + - col0 ) AS col0 FROM tab1 AS cor0
----
-52

query I rowsort
SELECT col0 * + col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + + 41 FROM tab0 cor0
----
128
138
56

query I rowsort
SELECT - + ( col0 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + + col0 * - + col2 AS col0 FROM tab0 cor0
----
-705
-870
-9603

query II rowsort
SELECT col2 * + 86 * - col0 AS col2, 26 AS col0 FROM tab1 AS cor0
----
-421056
26
-431290
26
-532168
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3550
SELECT CAST( + - 41 AS SIGNED ) FROM tab0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-3550
SELECT CAST ( + - 41 AS INTEGER ) FROM tab0
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT - + COUNT( * ) - - + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3551
SELECT - + COUNT ( * ) - - + COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 * + + col2 FROM tab0 AS cor0 WHERE - 71 IS NULL
----

query I rowsort
SELECT ALL + + 73 * col1 - + col0 * + col0 AS col2 FROM tab0 AS cor0
----
-6036
-9336
5688

query I rowsort
SELECT - 96 + + col1 FROM tab2 AS cor0
----
-19
-29
-45

query I rowsort
SELECT ALL 63 - - 94 * - col2 AS col0 FROM tab0 AS cor0
----
-4355
-877
-9243

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3556
SELECT * FROM tab0 AS cor0 WHERE NOT col1 - - 72 + - CAST( NULL AS SIGNED ) - + 32 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3556
SELECT * FROM tab0 AS cor0 WHERE NOT col1 - - 72 + - CAST ( NULL AS INTEGER ) - + 32 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, - col2 + 91 FROM tab1 AS cor0
----
51
-5
85
32
91
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT - 68 - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-59

skipif mysql # not compatible
query I rowsort label-3558
SELECT - 68 - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3559
SELECT CAST( - col2 AS SIGNED ) col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3559
SELECT CAST ( - col2 AS INTEGER ) col0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT + + col2 * + - col2 * 85 AS col2 FROM tab2 AS cor0
----
-136000
-285940
-44965

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3561
SELECT + col1 * + col0 * - col2 * + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-125375
-13669292
-959616

skipif mysql # not compatible
query I rowsort label-3561
SELECT + col1 * + col0 * - col2 * + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-125375
-13669292
-959616

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT DISTINCT + - 76 * COUNT( * ) FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-3562
SELECT DISTINCT + - 76 * COUNT ( * ) FROM tab2 AS cor0
----
-228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 66 col2 FROM tab2 cor0
----
-66
-66
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3564
SELECT ALL - 68 * + ( - - 0 ) + 83 + + CAST( NULL AS SIGNED ) + + col2 + + col0 + + + col0 + col2, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-3564
SELECT ALL - 68 * + ( - - 0 ) + 83 + + CAST ( NULL AS INTEGER ) + + col2 + + col0 + + + col0 + col2, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT ALL - 25 * + col2 AS col1 FROM tab0
----
-1175
-2475
-250

query I rowsort
SELECT DISTINCT - col2 * - 62 AS col2 FROM tab2
----
1426
2480
3596

query I rowsort
SELECT + col1 * col1 * - col0 AS col0 FROM tab1
----
-201019
-2125
-9996

query I rowsort
SELECT DISTINCT - 32 * + 87 * col2 FROM tab2
----
-111360
-161472
-64032

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( ( - 16 ) NOT BETWEEN 4 / + col0 AND + 16 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT - COUNT( * ) * + 98 AS col1 FROM tab2
----
-294

skipif mysql # not compatible
query I rowsort label-3570
SELECT - COUNT ( * ) * + 98 AS col1 FROM tab2
----
-294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3571
SELECT ALL 58 DIV - + COUNT( * ) AS col0 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-3571
SELECT ALL 58 / - + COUNT ( * ) AS col0 FROM tab1
----
-19

query I rowsort
SELECT + col2 * - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT - 13 IS NOT NULL
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-3573
SELECT ALL - col1 DIV + - 28 col2 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3573
SELECT ALL - col1 / + - 28 col2 FROM tab0 AS cor0
----
0
0
2

onlyif mysql # aggregate syntax: 
query II rowsort label-3574
SELECT DISTINCT - COUNT( * ) AS col0, 29 FROM tab2
----
-3
29

skipif mysql # not compatible
query II rowsort label-3574
SELECT DISTINCT - COUNT ( * ) AS col0, 29 FROM tab2
----
-3
29

query I rowsort
SELECT - - 2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ( 66 ) AS col2 FROM tab1
----
66
66
66

query II rowsort
SELECT - 25 AS col2, + col1 FROM tab0 AS cor0
----
-25
1
-25
21
-25
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT ALL MIN( + 79 ) + 6 AS col0 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL MIN ( + 79 ) + 6 AS col0 FROM tab2 AS cor0
----
85

query II rowsort
SELECT ALL + col1 AS col1, - col0 + - col0 FROM tab1 AS cor0
----
14
-102
47
-182
5
-170

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - col2 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + ( + 21 ) AS col2 FROM tab0 cor0
----
21

query I rowsort
SELECT DISTINCT - 24 - + + 93 + - 14 AS col2 FROM tab0 AS cor0
----
-131

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 15 = + 71
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT ALL - + SUM( DISTINCT - col2 ) AS col1 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL - + SUM ( DISTINCT - col2 ) AS col1 FROM tab1 cor0
----
223

query I rowsort
SELECT + col2 + + ( - col0 ) AS col1 FROM tab1
----
-23
-26
45

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND - 19 + col0
----

query I rowsort
SELECT ( - ( + ( + col0 ) ) ) AS col2 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NULL OR - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3589
SELECT DISTINCT * FROM tab1 WHERE + - CAST( + - col1 AS SIGNED ) * col0 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3589
SELECT DISTINCT * FROM tab1 WHERE + - CAST ( + - col1 AS INTEGER ) * col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT ALL 78 * + 96 + + COUNT( * ) FROM tab1
----
7491

skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL 78 * + 96 + + COUNT ( * ) FROM tab1
----
7491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3591
SELECT DISTINCT 49 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT 49 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3592
SELECT DISTINCT - COUNT( DISTINCT - - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3592
SELECT DISTINCT - COUNT ( DISTINCT - - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT + COUNT( ALL - - 52 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3593
SELECT + COUNT ( ALL - - 52 ) AS col1 FROM tab0 AS cor0
----
3

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= NULL
----

query I rowsort
SELECT 45 * - col1 FROM tab0
----
-3645
-45
-945

query III rowsort
SELECT * FROM tab2 WHERE NOT + 88 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 / - + 56 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 20 col1, + col0 + col2 FROM tab1 cor0
----
20
144
20
147
20
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT ALL MIN( DISTINCT - 44 ) FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL MIN ( DISTINCT - 44 ) FROM tab0 AS cor0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3600
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + - col1 * - - CAST( - col1 AS SIGNED ) <= - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3600
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + - col1 * - - CAST ( - col1 AS INTEGER ) <= - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT ALL + SUM( DISTINCT + - 33 ) AS col2 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL + SUM ( DISTINCT + - 33 ) AS col2 FROM tab2 AS cor0
----
-33

query I rowsort
SELECT - ( ( col2 ) ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL + 0 * 3 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3604
SELECT + 48 DIV - col0 + 73 + + col0 AS col2, col2 FROM tab0 AS cor0 WHERE NOT col2 * + col0 + + - 97 DIV - - col0 * col0 + 81 = + ( + + col2 ) + 54
----
160
10
170
99
85
47

skipif mysql # not compatible
query II rowsort label-3604
SELECT + 48 / - col0 + 73 + + col0 AS col2, col2 FROM tab0 AS cor0 WHERE NOT col2 * + col0 + + - 97 / - - col0 * col0 + 81 = + ( + + col2 ) + 54
----
160
10
170
99
85
47

query II rowsort
SELECT DISTINCT + - col0 AS col1, 32 FROM tab1 AS cor0
----
-51
32
-85
32
-91
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query II rowsort
SELECT col0 AS col2, - col0 + + col0 AS col2 FROM tab0 AS cor0
----
15
0
87
0
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT ALL COUNT( * ) * + + 2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL COUNT ( * ) * + + 2 FROM tab2
----
6

query I rowsort
SELECT ( + - 52 ) FROM tab0
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT - + SUM( - - 66 ) * 53 FROM tab1 AS cor0
----
-10494

skipif mysql # not compatible
query I rowsort label-3610
SELECT - + SUM ( - - 66 ) * 53 FROM tab1 AS cor0
----
-10494

query I rowsort
SELECT + col2 + + + 79 + col0 * - - 71 AS col1 FROM tab2
----
3368
4663
5462

query I rowsort
SELECT + + col0 AS col0 FROM tab2 WHERE + + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - - col1 + + - 10 AS col0, - col2 * + col1 col1 FROM tab0
----
200
-210
3797
-3807
89
-99

query I rowsort
SELECT ALL - col1 - 61 FROM tab0 AS cor0
----
-142
-62
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3615
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3615
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3616
SELECT DISTINCT - + ( + CAST( NULL AS SIGNED ) ) + - col1 / - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3616
SELECT DISTINCT - + ( + CAST ( NULL AS INTEGER ) ) + - col1 / - col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 * col0 col0 FROM tab0 AS cor0
----
-1455
-8439
-9409

query I rowsort
SELECT ALL col1 + - col2 + - ( - - col0 ) + - 64 * + + col1 - + col1 AS col1 FROM tab0 AS cor0
----
-1441
-260
-5246

query I rowsort
SELECT - - ( + 95 ) FROM tab2 AS cor0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT + MIN( - - 88 ) FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-3620
SELECT + MIN ( - - 88 ) FROM tab1 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT - MAX( + col1 ) * - 65 * 8 AS col1 FROM tab1 cor0
----
24440

skipif mysql # not compatible
query I rowsort label-3621
SELECT - MAX ( + col1 ) * - 65 * 8 AS col1 FROM tab1 cor0
----
24440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3622
SELECT ALL ( + col1 ) - + + CAST( + + 22 AS SIGNED ) FROM tab0 AS cor0
----
-1
-21
59

skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL ( + col1 ) - + + CAST ( + + 22 AS INTEGER ) FROM tab0 AS cor0
----
-1
-21
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT ALL - MAX( - 66 ) * + + 68 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3623
SELECT ALL - MAX ( - 66 ) * + + 68 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3624
SELECT DISTINCT ( 87 ) * CAST( NULL AS SIGNED ) + - col2 * + 64 * 89 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT ( 87 ) * CAST ( NULL AS INTEGER ) + - col2 * + 64 * 89 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * 73 FROM tab2
----
3723
4891
5621

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE - 4 IN ( col0, col0, + ( - col0 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3627
SELECT ALL + ( - COUNT( + 64 ) ) * - + COUNT( ALL + 6 ) - - CAST( 74 AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0
----
155

skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL + ( - COUNT ( + 64 ) ) * - + COUNT ( ALL + 6 ) - - CAST ( 74 AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0
----
155

query II rowsort
SELECT DISTINCT col2, 38 FROM tab2
----
23
38
40
38
58
38

query II rowsort
SELECT - - col1 AS col0, col2 AS col0 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT ALL - - col0 * - col1 + col2 - - 5 AS col2 FROM tab2 AS cor0
----
-2318
-4883
-4962

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3631
SELECT ALL CAST( - + ( + COUNT( * ) ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL CAST ( - + ( + COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT 88 IS NOT NULL
----

query II rowsort
SELECT ALL + col1 AS col2, col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 84 ) >= - col2 * - - col2 * + - ( 96 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT DISTINCT + MAX( col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3635
SELECT DISTINCT + MAX ( col1 ) AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3636
SELECT - + CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3636
SELECT - + CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT + - COUNT( + 79 ) * + + COUNT( * ) * + + 84 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > col0 + - 74
----
0

skipif mysql # not compatible
query I rowsort label-3637
SELECT + - COUNT ( + 79 ) * + + COUNT ( * ) * + + 84 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > col0 + - 74
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3638
SELECT - + col1 / + + CAST( NULL AS SIGNED ) / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3638
SELECT - + col1 / + + CAST ( NULL AS INTEGER ) / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT - 95 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3640
SELECT - CAST( NULL AS SIGNED ), - col0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-3640
SELECT - CAST ( NULL AS INTEGER ), - col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - ( - 1 ) AS col1 FROM tab1
----
1

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT + - 57, col1 * - 98 AS col0 FROM tab0 WHERE NULL IS NULL
----
-57
-2058
-57
-7938
-57
-98

query III rowsort
SELECT * FROM tab2 WHERE - 55 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 11 + 59 AS col2 FROM tab1
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT DISTINCT MIN( ALL + 29 ) AS col1 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT MIN ( ALL + 29 ) AS col1 FROM tab1
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - + 32 col0 FROM tab2
----
19
35
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3648
SELECT + COUNT( * ) DIV - COUNT( * ) + COUNT( * ) + + 86 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-3648
SELECT + COUNT ( * ) / - COUNT ( * ) + COUNT ( * ) + + 86 FROM tab1
----
88

onlyif mysql # DIV for integer division: 
query II rowsort label-3649
SELECT DISTINCT - col2, + 21 DIV col0 AS col0 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

skipif mysql # not compatible
query II rowsort label-3649
SELECT DISTINCT - col2, + 21 / col0 AS col0 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

query I rowsort
SELECT ALL + + 20 AS col1 FROM tab1 AS cor0
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT ALL + - ( - 86 ) * + COUNT( * ) * 47 FROM tab1 cor0
----
12126

skipif mysql # not compatible
query I rowsort label-3651
SELECT ALL + - ( - 86 ) * + COUNT ( * ) * 47 FROM tab1 cor0
----
12126

query I rowsort
SELECT DISTINCT + 20 + - col0 AS col1 FROM tab1
----
-31
-65
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3653
SELECT COUNT( * ) DIV - 53 - + 28 AS col0 FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-3653
SELECT COUNT ( * ) / - 53 - + 28 AS col0 FROM tab1 AS cor0
----
-28

query I rowsort
SELECT - 9 AS col0 FROM tab2 AS cor0 WHERE NULL <> col0 + 10
----

query I rowsort
SELECT - + col0 FROM tab0 AS cor0 WHERE col1 <> - col0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT - COUNT( * ) + + MAX( + 32 ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3656
SELECT - COUNT ( * ) + + MAX ( + 32 ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 - 91 * - 96 + - col2 col0, - col2 FROM tab1 cor0
----
8736
-59
8736
-68
8736
-96

query I rowsort
SELECT col1 * 81 FROM tab1
----
1134
3807
405

query I rowsort
SELECT DISTINCT + - 2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3660
SELECT ALL + 21 DIV - 42 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3660
SELECT ALL + 21 / - 42 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( - 16 ) AS col2 FROM tab2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3662
SELECT ALL COUNT( * ) * - + COUNT( * ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL COUNT ( * ) * - + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3663
SELECT ALL + col0 FROM tab1 AS cor0 WHERE ( NOT ( NOT col0 - - CAST( NULL AS SIGNED ) + - col0 * ( - col0 ) NOT BETWEEN NULL AND + col2 ) )
----

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL + col0 FROM tab1 AS cor0 WHERE ( NOT ( NOT col0 - - CAST ( NULL AS INTEGER ) + - col0 * ( - col0 ) NOT BETWEEN NULL AND + col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 75 * col0 col2 FROM tab1 AS cor0
----
3825
6375
6825

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT + SUM( ALL + + col2 ) col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3665
SELECT + SUM ( ALL + + col2 ) col1 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT MIN( + 33 ) col2 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3666
SELECT MIN ( + 33 ) col2 FROM tab2 AS cor0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-3667
SELECT DISTINCT + col2 DIV ( + col2 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3667
SELECT DISTINCT + col2 / ( + col2 ) AS col2 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3668
SELECT col0 * col2, + CAST( - - ( 79 ) AS SIGNED ) * + + col0 * 1 AS col1 FROM tab1
----
4896
4029
5015
6715
6188
7189

skipif mysql # not compatible
query II rowsort label-3668
SELECT col0 * col2, + CAST ( - - ( 79 ) AS INTEGER ) * + + col0 * 1 AS col1 FROM tab1
----
4896
4029
5015
6715
6188
7189

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3669
SELECT 4 * - + CAST( NULL AS SIGNED ) * col1 * - col2, + col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-3669
SELECT 4 * - + CAST ( NULL AS INTEGER ) * col1 * - col2, + col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT ALL ( + - col2 ) AS col0 FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3671
SELECT DISTINCT COUNT( * ) / + SUM( col2 ) + 26 AS col0, + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL > + CAST( NULL AS DECIMAL )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3671
SELECT DISTINCT COUNT ( * ) / + SUM ( col2 ) + 26 AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL > + CAST ( NULL AS REAL )
----
NULL
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 13 * + col2 * - 98 + + - col0
----

query I rowsort
SELECT - 38 + + col0 AS col0 FROM tab1 AS cor0
----
13
47
53

query I rowsort
SELECT + col2 + + 35 FROM tab1 AS cor0
----
103
131
94

query I rowsort
SELECT 64 + - 39 FROM tab0 AS cor0
----
25
25
25

query II rowsort
SELECT ALL 29 AS col0, ( + - col0 ) FROM tab0 AS cor0
----
29
-15
29
-87
29
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 33 BETWEEN + + 51 / col0 AND + 2 * - col0 AND NOT ( 40 ) + + + 20 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( + ( + 77 ) ) FROM tab0 AS cor0
----
-77

query III rowsort
SELECT * FROM tab2 WHERE col1 * - 61 = + col1
----

query I rowsort
SELECT + col1 FROM tab1 WHERE 95 >= NULL
----

query I rowsort
SELECT - col1 FROM tab2 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3682
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 + + col1 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3682
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 + + col1 col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT + col1 + + col0 <> 60
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3684
SELECT ALL - 70 + + col1 DIV col1 + + col2 + - col0 FROM tab1 cor0
----
-24
-92
-95

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL - 70 + + col1 / col1 + + col2 + - col0 FROM tab1 cor0
----
-24
-92
-95

query II rowsort
SELECT + col0 - - - col1, col0 AS col1 FROM tab0 AS cor0
----
-66
15
66
87
96
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT MIN( + col0 ) + + COUNT( * ) + MAX( + + 37 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3686
SELECT MIN ( + col0 ) + + COUNT ( * ) + MAX ( + + 37 ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT - ( + - col0 ) + col2 - - col1 FROM tab0
----
118
143
197

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT + + MAX( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3688
SELECT + + MAX ( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( col2 ) - - col0 >= NULL
----

query I rowsort
SELECT ( + + 40 ) AS col2 FROM tab2 AS cor0
----
40
40
40

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( + col1, + col2, - - 12, - + col1 + - col0 )
----

query II rowsort
SELECT col2 AS col0, + col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query II rowsort
SELECT ALL + 69, + ( + + col0 ) AS col2 FROM tab2 AS cor0
----
69
46
69
64
69
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3694
SELECT + col2 + - - col2 FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query I rowsort label-3694
SELECT + col2 + - - col2 FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT DISTINCT - SUM( ALL - + 10 ) AS col0 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-3695
SELECT DISTINCT - SUM ( ALL - + 10 ) AS col0 FROM tab1
----
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3696
SELECT - col1 * col1 / + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3696
SELECT - col1 * col1 / + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT 11 * MAX( + 79 ) FROM tab1 WHERE NOT ( - col2 ) IS NULL
----
869

skipif mysql # not compatible
query I rowsort label-3697
SELECT 11 * MAX ( + 79 ) FROM tab1 WHERE NOT ( - col2 ) IS NULL
----
869

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3698
SELECT + col0 AS col1 FROM tab1 WHERE NOT - CAST( - col1 AS SIGNED ) > 65
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3698
SELECT + col0 AS col1 FROM tab1 WHERE NOT - CAST ( - col1 AS INTEGER ) > 65
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 col1 FROM tab2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT + MIN( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3700
SELECT + MIN ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT - col0 * + 74 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 - + - 44 + + 97 + 57 * - 55 * col0 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * - - ( - col1 ) * col0 * col2 + - col1 AS col2 FROM tab2
----
-1241085
-16904167
-7884877

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + ( - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( + 10 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT SUM( ALL + + 57 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
513

skipif mysql # not compatible
query I rowsort label-3706
SELECT SUM ( ALL + + 57 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
513

onlyif mysql # DIV for integer division: 
query I rowsort label-3707
SELECT ALL - 83 DIV col1 - 77 FROM tab1 AS cor0
----
-78
-82
-93

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL - 83 / col1 - 77 FROM tab1 AS cor0
----
-78
-82
-93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 38 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT DISTINCT - - MIN( - ( col0 ) ) AS col0 FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT - - MIN ( - ( col0 ) ) AS col0 FROM tab1 cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 49 col1 FROM tab1 AS cor0 WHERE NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * - col0 IN ( + ( + - 67 ), + col0 * - - col1 )
----

query I rowsort
SELECT 42 * - 2 + col1 FROM tab0
----
-3
-63
-83

query I rowsort
SELECT - 13 + + col2 + + 83 * + col1 * col2 AS col1 FROM tab0
----
17427
316015
8303

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT ALL COUNT( ( - col1 ) ) + + - 77 + COUNT( * ) AS col2 FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL COUNT ( ( - col1 ) ) + + - 77 + COUNT ( * ) AS col2 FROM tab0
----
-71

query I rowsort
SELECT col1 * - col2 + - col2 AS col0 FROM tab2 WHERE col2 + + col2 >= NULL
----

query I rowsort
SELECT - ( - + col0 ) + col1 FROM tab2
----
141
142
97

query II rowsort
SELECT 57 AS col0, 58 AS col1 FROM tab2 AS cor0
----
57
58
57
58
57
58

query I rowsort
SELECT DISTINCT + + 2 * + col2 + col1 + col0 FROM tab1 AS cor0
----
208
257
274

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3719
SELECT DISTINCT - col1 + - + CAST( NULL AS SIGNED ) AS col1, col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-3719
SELECT DISTINCT - col1 + - + CAST ( NULL AS INTEGER ) AS col1, col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 - + col0 NOT BETWEEN NULL AND + - 63
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 30 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * + + col0 * - - col1 AS col2 FROM tab2 cor0
----
-197120
-291450
-53958

query I rowsort
SELECT DISTINCT + col1 FROM tab1 cor0 WHERE + 36 NOT BETWEEN col1 AND NULL
----
47

query I rowsort
SELECT - col0 * - + 6 FROM tab1 AS cor0
----
306
510
546

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3725
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 / CAST( NULL AS DECIMAL ) >= col1
----

skipif mysql # not compatible
query III rowsort label-3725
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 / CAST ( NULL AS REAL ) >= col1
----

query I rowsort
SELECT 33 * - col0 FROM tab2
----
-1518
-2112
-2475

query I rowsort
SELECT - col0 * + 18 AS col2 FROM tab1
----
-1530
-1638
-918

query II rowsort
SELECT 19 AS col2, 75 + + 6 AS col2 FROM tab0
----
19
81
19
81
19
81

query I rowsort
SELECT 2 * + ( - col0 ) AS col1 FROM tab2
----
-128
-150
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3730
SELECT ALL - CAST( NULL AS SIGNED ) col1 FROM tab0 WHERE NOT ( ( NULL ) IS NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3730
SELECT ALL - CAST ( NULL AS INTEGER ) col1 FROM tab0 WHERE NOT ( ( NULL ) IS NULL )
----

query I rowsort
SELECT ALL - col0 * - col2 * + - col2 * - col1 FROM tab0
----
182700
2683935
950697

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT MIN( - - col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3732
SELECT MIN ( - - col1 ) AS col1 FROM tab1
----
5

query II rowsort
SELECT 37 AS col0, - col2 FROM tab2
----
37
-23
37
-40
37
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 66 * - 22 col1 FROM tab0 AS cor0
----
1452
1452
1452

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3735
SELECT col0 col0 FROM tab2 AS cor0 WHERE NOT + 20 / CAST( NULL AS DECIMAL ) = ( - + col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3735
SELECT col0 col0 FROM tab2 AS cor0 WHERE NOT + 20 / CAST ( NULL AS REAL ) = ( - + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 col0 FROM tab1 AS cor0
----
35
35
35

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN 39 AND ( col0 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 84 col1 FROM tab0
----
-84
-84
-84

query III rowsort
SELECT * FROM tab1 WHERE + col2 * col2 + + col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 NOT BETWEEN 96 * - 26 AND - col1
----
87
21
10
97
1
99

query I rowsort
SELECT ALL + 60 * col0 AS col0 FROM tab2
----
2760
3840
4500

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 99 + - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3743
SELECT ALL 16 + + ( - 0 ) DIV - 39 FROM tab1
----
16
16
16

skipif mysql # not compatible
query I rowsort label-3743
SELECT ALL 16 + + ( - 0 ) / - 39 FROM tab1
----
16
16
16

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3745
SELECT ALL + col1 * - col1 + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE + col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL + col1 * - col1 + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE + col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT ALL + ( + 5 ) * - COUNT( * ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL + ( + 5 ) * - COUNT ( * ) FROM tab0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-3747
SELECT ALL - col2 + - col2 DIV col0 AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL - col2 + - col2 / col0 AS col2 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3748
SELECT + 45 + - SUM( col0 ) * - 59 AS col1 FROM tab2 WHERE NOT NULL IN ( - col2 * + CAST( col0 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT + 45 + - SUM ( col0 ) * - 59 AS col1 FROM tab2 WHERE NOT NULL IN ( - col2 * + CAST ( col0 AS INTEGER ) )
----
NULL

query I rowsort
SELECT - col0 * ( + 0 ) FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3750
SELECT DISTINCT + col0 + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT + col0 + CAST ( NULL AS REAL ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT - COUNT( * ) col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3751
SELECT - COUNT ( * ) col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT col0 FROM tab1 WHERE NOT 13 IS NULL
----
51
85
91

query I rowsort
SELECT 50 FROM tab1 WHERE ( NULL ) IS NULL
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT MAX( ALL - 69 ) + 77 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-3754
SELECT MAX ( ALL - 69 ) + 77 FROM tab0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT COUNT( + col0 ) + 84 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-3755
SELECT COUNT ( + col0 ) + 84 FROM tab2
----
87

query I rowsort
SELECT - ( + 64 ) + + 46 FROM tab1
----
-18
-18
-18

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 * col0 NOT BETWEEN - col1 + - 88 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3758
SELECT ALL - CAST( ( + 75 ) AS SIGNED ) AS col1 FROM tab2
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-3758
SELECT ALL - CAST ( ( + 75 ) AS INTEGER ) AS col1 FROM tab2
----
-75
-75
-75

query I rowsort
SELECT 98 FROM tab2 WHERE NOT NULL <= ( col0 * col2 + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3760
SELECT DISTINCT - COUNT( + CAST( NULL AS SIGNED ) ) * + MAX( ALL ( - col0 ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT - COUNT ( + CAST ( NULL AS INTEGER ) ) * + MAX ( ALL ( - col0 ) ) FROM tab1
----
0

query I rowsort
SELECT + col1 - - col1 AS col1 FROM tab1 WHERE 79 >= col0
----
28

query I rowsort
SELECT DISTINCT - col2 * - 56 AS col0 FROM tab0
----
2632
5544
560

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3764
SELECT + 45 DIV - 99 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3764
SELECT + 45 / - 99 AS col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3765
SELECT 35 + - 80 DIV - col2 FROM tab0
----
35
36
43

skipif mysql # not compatible
query I rowsort label-3765
SELECT 35 + - 80 / - col2 FROM tab0
----
35
36
43

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NOT ( NULL ) IN ( ( col2 ) / - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT DISTINCT - COUNT( * ) + + 31 AS col0 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-3767
SELECT DISTINCT - COUNT ( * ) + + 31 AS col0 FROM tab1
----
28

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND - 93
----

query I rowsort
SELECT + 74 - + col2 FROM tab2 AS cor0
----
16
34
51

query I rowsort
SELECT col1 * 48 + - 26 FROM tab2 AS cor0
----
2422
3190
3670

query I rowsort
SELECT ALL 10 - - col0 FROM tab0 AS cor0
----
107
25
97

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
85
91

query I rowsort
SELECT col0 AS col1 FROM tab1 cor0 WHERE + col2 * - col2 - 1 <> NULL
----

query I rowsort
SELECT + col0 + 43 FROM tab2 AS cor0
----
107
118
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT ALL SUM( ALL 28 ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL SUM ( ALL 28 ) FROM tab0 AS cor0
----
84

query I rowsort
SELECT + 57 + col2 AS col0 FROM tab0 cor0
----
104
156
67

query I rowsort
SELECT DISTINCT col1 + col2 FROM tab2 WHERE NOT - 97 * - col1 < col1 * + col1
----
117
125
74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3778
SELECT - col0 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 WHERE NOT 39 NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-3778
SELECT - col0 + - CAST ( NULL AS REAL ) AS col1 FROM tab0 WHERE NOT 39 NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT ALL COUNT( 67 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL COUNT ( 67 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

query I rowsort
SELECT ALL AVG ( ALL col1 ) FROM tab2 AS cor0 WHERE NOT - 60 NOT BETWEEN NULL AND - 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT + SUM( + col0 ) AS col1 FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-3781
SELECT + SUM ( + col0 ) AS col1 FROM tab2 cor0
----
185

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( - col2 ) <> NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * 62 col0 FROM tab2 AS cor0
----
1426
2480
3596

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 82 * 51 ) NOT BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 col2 FROM tab2 AS cor0
----
28
28
28

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 86 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT COUNT( * ) FROM tab0 WHERE NOT NULL BETWEEN + 17 AND - col0 * + col2
----
0

skipif mysql # not compatible
query I rowsort label-3788
SELECT COUNT ( * ) FROM tab0 WHERE NOT NULL BETWEEN + 17 AND - col0 * + col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3789
SELECT COUNT( + - ( + CAST( NULL AS SIGNED ) ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3789
SELECT COUNT ( + - ( + CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 col1 FROM tab1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT ( NULL ) = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) = ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT DISTINCT + 23 * - COUNT( * ) AS col2 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-3792
SELECT DISTINCT + 23 * - COUNT ( * ) AS col2 FROM tab0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT DISTINCT MIN( + col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3793
SELECT DISTINCT MIN ( + col2 ) AS col2 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT + - COUNT( * ) + + ( 70 ) - - 38 AS col2 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-3794
SELECT + - COUNT ( * ) + + ( 70 ) - - 38 AS col2 FROM tab1 AS cor0
----
105

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT NULL <> ( 63 ) + ( ( + ( 26 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-3797
SELECT COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT NULL <> ( 63 ) + ( ( + ( 26 ) ) )
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + 98 < ( NULL )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL >= NULL
----

query I rowsort
SELECT - 4 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE ( NULL NOT IN ( col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3801
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE ( NULL NOT IN ( col2 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3802
SELECT ALL 41 * - ( - ( CAST( NULL AS SIGNED ) ) ) + col1 / - 60 FROM tab0 AS cor0 WHERE NOT 90 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL 41 * - ( - ( CAST ( NULL AS INTEGER ) ) ) + col1 / - 60 FROM tab0 AS cor0 WHERE NOT 90 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3803
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 9 + - 68 + 22 ) BETWEEN NULL AND - CAST( NULL AS SIGNED ) * 74 - col2
----

skipif mysql # not compatible
query III rowsort label-3803
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 9 + - 68 + 22 ) BETWEEN NULL AND - CAST ( NULL AS INTEGER ) * 74 - col2
----

query II rowsort
SELECT 99 AS col0, col0 FROM tab2 AS cor0
----
99
46
99
64
99
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3805
SELECT - - CAST( + AVG ( + ( + col2 ) ) AS SIGNED ) * 73 FROM tab0 cor0
----
3796

skipif mysql # not compatible
query I rowsort label-3805
SELECT - - CAST ( + AVG ( + ( + col2 ) ) AS INTEGER ) * 73 FROM tab0 cor0
----
3796

query I rowsort
SELECT ALL + col1 * - 3 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-243
-3
-63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 / + col1 / col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col1 AS col2, + col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT DISTINCT + col1 * - - 88 AS col1 FROM tab2 AS cor0
----
4488
5896
6776

query I rowsort
SELECT DISTINCT + + ( - 18 ) FROM tab2 AS cor0
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 * - 12 col1 FROM tab1 AS cor0
----
-936
-936
-936

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT ALL SUM( - col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL SUM ( - col2 ) AS col0 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT ALL col1 * 77 FROM tab2 WHERE ( col0 + - + col2 ) IS NOT NULL AND NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3815
SELECT * FROM tab2 WHERE 77 + col0 / 23 BETWEEN - CAST( NULL AS SIGNED ) AND ( 38 )
----

skipif mysql # not compatible
query III rowsort label-3815
SELECT * FROM tab2 WHERE 77 + col0 / 23 BETWEEN - CAST ( NULL AS INTEGER ) AND ( 38 )
----

query I rowsort
SELECT col0 + + 57 * + 19 AS col2 FROM tab0
----
1098
1170
1180

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT ALL COUNT( * ) * - 63 FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL COUNT ( * ) * - 63 FROM tab2
----
-189

query I rowsort
SELECT - col0 + + ( + - col2 ) FROM tab1
----
-144
-147
-159

query I rowsort
SELECT + 19 * + col2 + + - 41 * - col1 AS col2 FROM tab0
----
1051
1922
4214

query II rowsort
SELECT DISTINCT col1 + - col0, + col1 AS col2 FROM tab1
----
-37
14
-44
47
-80
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT 70 + - - MIN( ALL - 79 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3821
SELECT 70 + - - MIN ( ALL - 79 ) FROM tab1
----
-9

query I rowsort
SELECT DISTINCT - 86 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3823
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT ALL COUNT( * ) - - 36 AS col1 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL COUNT ( * ) - - 36 AS col1 FROM tab2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3825
SELECT DISTINCT col2 FROM tab2 WHERE ( NULL ) <> ( - col0 ) + + CAST( + 26 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3825
SELECT DISTINCT col2 FROM tab2 WHERE ( NULL ) <> ( - col0 ) + + CAST ( + 26 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3826
SELECT DISTINCT - COUNT( * ) + - + 60 AS col2, ( 59 ) + - 88 AS col0 FROM tab2
----
-63
-29

skipif mysql # not compatible
query II rowsort label-3826
SELECT DISTINCT - COUNT ( * ) + - + 60 AS col2, ( 59 ) + - 88 AS col0 FROM tab2
----
-63
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3827
SELECT ALL + 75 - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL + 75 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 ) <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 67 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3830
SELECT ALL - col2 + + CAST( - 59 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL - col2 + + CAST ( - 59 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * - + 39 FROM tab1
----
-1989
-3315
-3549

onlyif mysql # DIV for integer division: 
query I rowsort label-3833
SELECT 38 DIV + col2 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3833
SELECT 38 / + col2 FROM tab0
----
0
0
3

query II rowsort
SELECT col0 * + ( - - col1 ) AS col0, col0 FROM tab0 cor0
----
1215
15
1827
87
97
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 76 * col1 + - 45 AS col1, col0 - col0 + + col1 AS col0 FROM tab0 AS cor0
----
1551
21
31
1
6111
81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 26 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 25, col1 col2 FROM tab2 AS cor0
----
25
51
25
67
25
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT ALL MAX( col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3839
SELECT ALL MAX ( col1 ) AS col1 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3840
SELECT 62 col1, - COUNT( DISTINCT - + 26 ) AS col0 FROM tab1
----
62
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3840
SELECT 62 col1, - COUNT ( DISTINCT - + 26 ) AS col0 FROM tab1
----
62
-1

query I rowsort
SELECT - ( 39 ) FROM tab0
----
-39
-39
-39

query I rowsort
SELECT col0 * - 33 * + 16 FROM tab0
----
-45936
-51216
-7920

query I rowsort
SELECT ALL col0 * 88 + + col1 AS col1 FROM tab0
----
1401
7677
8537

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT - ( + + COUNT( ALL - - col2 ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3844
SELECT - ( + + COUNT ( ALL - - col2 ) ) AS col1 FROM tab0
----
-3

query II rowsort
SELECT ALL - col1, col0 AS col1 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query II rowsort
SELECT - 0, col2 FROM tab2 cor0
----
0
23
0
40
0
58

query I rowsort
SELECT + 27 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3848
SELECT DISTINCT - 17 - + AVG ( ALL + ( - col2 ) ) + - ( + - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3848
SELECT DISTINCT - 17 - + AVG ( ALL + ( - col2 ) ) + - ( + - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 37 AS col0 FROM tab0 AS cor0
----
-37

query I rowsort
SELECT - col2 * + col1 + + col2 * - + col1 AS col1 FROM tab2 AS cor0
----
-2346
-6160
-7772

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT ALL - - 53 - + + SUM( ALL col1 ) col0 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3851
SELECT ALL - - 53 - + + SUM ( ALL col1 ) col0 FROM tab0 AS cor0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3852
SELECT ALL - - CAST( - + COUNT( * ) AS SIGNED ) * COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3852
SELECT ALL - - CAST ( - + COUNT ( * ) AS INTEGER ) * COUNT ( * ) FROM tab2 AS cor0
----
-9

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - col0 * + col0, + col1 + - - 81 )
----

query I rowsort
SELECT DISTINCT col0 + - 64 * - - 98 * + col1 FROM tab0
----
-131625
-508017
-6175

query I rowsort
SELECT + ( + + col0 ) * + + 38 FROM tab0
----
3306
3686
570

query I rowsort
SELECT ALL - 50 + col1 FROM tab2
----
1
17
27

query I rowsort
SELECT - 10 - - 80 FROM tab0
----
70
70
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 60 AS col1, + col2 * + 72 + + col1 col1 FROM tab0
----
60
3465
60
7129
60
741

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3859
SELECT ALL - col1 - + - CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL - col1 - + - CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * + + col0 NOT IN ( - - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 69 * + 88 - + - 37 FROM tab2 AS cor0
----
6109

query I rowsort
SELECT DISTINCT + col2 * - col2 + - col0 * + col1 * - col0 FROM tab2 AS cor0
----
107387
313792
373511

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT + MAX( DISTINCT - col2 ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3864
SELECT + MAX ( DISTINCT - col2 ) FROM tab1 cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3865
SELECT ALL + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE + col1 IN ( + 15, + col2 )
----

skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE + col1 IN ( + 15, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT + - COUNT( * ) * - - 87 AS col2 FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-3866
SELECT + - COUNT ( * ) * - - 87 AS col2 FROM tab1 AS cor0
----
-261

query I rowsort
SELECT - + 24 AS col2 FROM tab2 AS cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT MIN( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3868
SELECT MIN ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3869
SELECT + 63 DIV - COUNT( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-3869
SELECT + 63 / - COUNT ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
-21

query I rowsort
SELECT DISTINCT + 23 * col2 AS col1 FROM tab1 AS cor0
----
1357
1564
2208

onlyif mysql # DIV for integer division: 
query I rowsort label-3871
SELECT ALL - col1 DIV - 42 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL - col1 / - 42 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT - COUNT( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3872
SELECT - COUNT ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col2 * - col1 * + - col2 - 67 ) >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3875
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + - col0 NOT BETWEEN 17 AND NULL OR NOT - col2 BETWEEN ( + 64 ) AND 18 + + CAST( col2 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3875
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + - col0 NOT BETWEEN 17 AND NULL OR NOT - col2 BETWEEN ( + 64 ) AND 18 + + CAST ( col2 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + col1 col1 FROM tab2 AS cor0
----
1173
3080
3886

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 37 * - 52 - - - ( - + 34 ) * - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 + - 93 * 41 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT ALL + ( COUNT( * ) ) + SUM( DISTINCT 4 ) AS col0 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL + ( COUNT ( * ) ) + SUM ( DISTINCT 4 ) AS col0 FROM tab2
----
7

query I rowsort
SELECT ALL col1 + - + col1 - + col2 * - 84 FROM tab1
----
4956
5712
8064

query I rowsort
SELECT ALL 21 * + 64 FROM tab0
----
1344
1344
1344

query I rowsort
SELECT DISTINCT ( - + 82 ) AS col0 FROM tab2
----
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - ( - col2 ) col0 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 12 BETWEEN - - col1 AND + ( col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT + MAX( DISTINCT - col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-3885
SELECT + MAX ( DISTINCT - col2 ) AS col0 FROM tab0
----
-10

query I rowsort
SELECT ALL - col0 + - + col0 AS col0 FROM tab1
----
-102
-170
-182

query II rowsort
SELECT + 30 AS col1, - 88 AS col2 FROM tab2
----
30
-88
30
-88
30
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT ALL - SUM( DISTINCT + col2 ) - 96 AS col1 FROM tab2 AS cor0
----
-217

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL - SUM ( DISTINCT + col2 ) - 96 AS col1 FROM tab2 AS cor0
----
-217

onlyif mysql # DIV for integer division: 
query I rowsort label-3889
SELECT + 38 DIV + 69 * - col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3889
SELECT + 38 / + 69 * - col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 IS NULL AND NOT NULL BETWEEN NULL AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col2 FROM tab2 cor0 WHERE col2 IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT + 92 + - COUNT( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-3892
SELECT + 92 + - COUNT ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3893
SELECT - ( col2 ) + - col0 * CAST( 73 AS SIGNED ) AS col2 FROM tab0
----
-1142
-6361
-7180

skipif mysql # not compatible
query I rowsort label-3893
SELECT - ( col2 ) + - col0 * CAST ( 73 AS INTEGER ) AS col2 FROM tab0
----
-1142
-6361
-7180

onlyif mysql # DIV for integer division: 
query I rowsort label-3894
SELECT - 25 DIV 73 DIV + + col1 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3894
SELECT - 25 / 73 / + + col1 AS col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3895
SELECT + COUNT( * ) DIV - CAST( + 46 AS SIGNED ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3895
SELECT + COUNT ( * ) / - CAST ( + 46 AS INTEGER ) AS col2 FROM tab1
----
0

query I rowsort
SELECT ALL + col0 * + 73 AS col2 FROM tab1
----
3723
6205
6643

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 45 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - col1 ) * col2 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT DISTINCT + col1 * - ( 13 ) * 91 FROM tab2 AS cor0
----
-60333
-79261
-91091

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT ALL + COUNT( ALL col1 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL + COUNT ( ALL col1 ) AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT - 76 * - col2 * - 86 AS col0 FROM tab1 AS cor0
----
-385624
-444448
-627456

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3902
SELECT ALL * FROM tab1 WHERE NOT - 40 + + + CAST( NULL AS DECIMAL ) + + CAST( NULL AS SIGNED ) + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3902
SELECT ALL * FROM tab1 WHERE NOT - 40 + + + CAST ( NULL AS REAL ) + + CAST ( NULL AS INTEGER ) + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 77 + + + 38 AS col1 FROM tab1 WHERE NOT col1 + col2 + - 81 - + + 51 * + ( col1 ) >= + + 76
----
115
115
115

query I rowsort
SELECT DISTINCT + - 24 * + - col2 - + + col1 AS col1 FROM tab2 cor0
----
1325
501
883

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 48 = NULL
----

query I rowsort
SELECT + col0 + - 24 AS col2 FROM tab1 AS cor0
----
27
61
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT ALL + - SUM( - + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3907
SELECT ALL + - SUM ( - + col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - ( 0 ) * 86 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3908
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - ( 0 ) * 86 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT DISTINCT + + MIN( + col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3909
SELECT DISTINCT + + MIN ( + col0 ) AS col2 FROM tab2 AS cor0
----
46

query II rowsort
SELECT ALL - 29, + 97 AS col0 FROM tab2 AS cor0
----
-29
97
-29
97
-29
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 col0 FROM tab0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT ALL MIN( + col1 ) * + COUNT( * ) + + + COUNT( * ) AS col0 FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL MIN ( + col1 ) * + COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab2
----
156

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE - col1 = + + col1 + + 78
----

query II rowsort
SELECT DISTINCT col0 + + - col0, col2 FROM tab2
----
0
23
0
40
0
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3915
SELECT DISTINCT + col0 DIV - + col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-3915
SELECT DISTINCT + col0 / - + col2 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT DISTINCT + 61 + - + COUNT( * ) AS col2 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT + 61 + - + COUNT ( * ) AS col2 FROM tab1
----
58

query I rowsort
SELECT DISTINCT col1 - 41 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
26
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT COUNT( * ) + - 23 FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3918
SELECT COUNT ( * ) + - 23 FROM tab0 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT - 38 + + MIN( DISTINCT - - 73 ) FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-3919
SELECT - 38 + + MIN ( DISTINCT - - 73 ) FROM tab2 AS cor0
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 col0 FROM tab2
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT + SUM( 33 ) FROM tab0, tab2 AS cor0 WHERE NOT - 97 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3921
SELECT + SUM ( 33 ) FROM tab0, tab2 AS cor0 WHERE NOT - 97 <> NULL
----
NULL

query II rowsort
SELECT 75 AS col0, - col1 AS col0 FROM tab1 cor0
----
75
-14
75
-47
75
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-3923
SELECT DISTINCT - 13 - - COUNT( - - 66 ) col1, + 36 AS col0 FROM tab0 AS cor0
----
-10
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3923
SELECT DISTINCT - 13 - - COUNT ( - - 66 ) col1, + 36 AS col0 FROM tab0 AS cor0
----
-10
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3924
SELECT ALL - + ( + 21 ) - - 24 - - MAX( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL - + ( + 21 ) - - 24 - - MAX ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col1 * - 41 + col1 - - 25 AS col1 FROM tab2 AS cor0
----
-2015
-2655
-3055

onlyif mysql # aggregate syntax: 
query II rowsort label-3926
SELECT + + MIN( ALL + col1 ) * + - COUNT( * ) AS col0, 71 * + 69 AS col1 FROM tab2 AS cor0
----
-153
4899

skipif mysql # not compatible
query II rowsort label-3926
SELECT + + MIN ( ALL + col1 ) * + - COUNT ( * ) AS col0, 71 * + 69 AS col1 FROM tab2 AS cor0
----
-153
4899

onlyif mysql # aggregate syntax: 
query II rowsort label-3927
SELECT ALL - 95, COUNT( - 97 ) AS col0 FROM tab1
----
-95
3

skipif mysql # not compatible
query II rowsort label-3927
SELECT ALL - 95, COUNT ( - 97 ) AS col0 FROM tab1
----
-95
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT ALL - SUM( + 73 ) AS col0 FROM tab2
----
-219

skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL - SUM ( + 73 ) AS col0 FROM tab2
----
-219

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 * col2 + - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col1, col2 AS col0 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT DISTINCT + MIN( DISTINCT col0 ) * + + MIN( DISTINCT - col1 ) FROM tab2
----
-3542

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT + MIN ( DISTINCT col0 ) * + + MIN ( DISTINCT - col1 ) FROM tab2
----
-3542

query I rowsort
SELECT col0 * - ( - - col1 ) AS col2 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 84 >= - col1 + col0
----

query II rowsort
SELECT + 13 * - col1 + col2 AS col0, - col0 AS col1 FROM tab0 WHERE NOT - ( - 87 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT + MAX( ALL 87 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
87

skipif mysql # not compatible
query I rowsort label-3935
SELECT + MAX ( ALL 87 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
87

query I rowsort
SELECT ALL + col2 * - + col2 + + - col1 * + col1 + + col2 AS col2 FROM tab0 AS cor0
----
-531
-8723
-9703

query I rowsort
SELECT - 93 * + col0 + + 83 AS col2 FROM tab2 AS cor0
----
-4195
-5869
-6892

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT + MAX( ALL - col1 ) * + 24 + + COUNT( * ) FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-3938
SELECT + MAX ( ALL - col1 ) * + 24 + + COUNT ( * ) FROM tab0 AS cor0
----
-21

query I rowsort
SELECT ( + + col1 ) * - + col1 AS col2 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 43 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 43 IS NULL
----
-3

query I rowsort
SELECT ( + col1 ) * + 77 AS col0 FROM tab2 cor0
----
3927
5159
5929

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 56 < NULL
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
46
64
75

query I rowsort
SELECT 53 + + 95 - 80 * col0 * 99 AS col0 FROM tab0
----
-118652
-688892
-768092

query I rowsort
SELECT 86 + + - 16 FROM tab2
----
70
70
70

onlyif mysql # DIV for integer division: 
query I rowsort label-3946
SELECT col1 + - 5 DIV + 84 col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3946
SELECT col1 + - 5 / + 84 col1 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT + 51 + 8 - + + col0 * + col1 + - 51 AS col1 FROM tab2
----
-2338
-4920
-5017

query I rowsort
SELECT col1 + - 52 FROM tab1
----
-38
-47
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3949
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 NOT BETWEEN CAST( + col1 AS DECIMAL ) + col2 + - 64 * - + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3949
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 NOT BETWEEN CAST ( + col1 AS REAL ) + col2 + - 64 * - + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3950
SELECT col0 + - col1 + + col0 + + col0 DIV 9 FROM tab2 AS cor0
----
46
58
91

skipif mysql # not compatible
query I rowsort label-3950
SELECT col0 + - col1 + + col0 + + col0 / 9 FROM tab2 AS cor0
----
46
58
91

query I rowsort
SELECT - 44 + + col2 AS col2 FROM tab2 cor0
----
-21
-4
14

query I rowsort
SELECT 87 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT + col1 - - 61 AS col2 FROM tab0
----
142
62
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 * - 42 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7581a2ef7efd668e72a74432a2e2e3a1

query I rowsort
SELECT ALL col1 + - 2 AS col1 FROM tab1 cor0
----
12
3
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3956
SELECT ALL - - CAST( - - 96 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
96
96
96

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL - - CAST ( - - 96 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
96
96
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = col2 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3958
SELECT 75 DIV col0 AS col1 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-3958
SELECT 75 / col0 AS col1 FROM tab0
----
0
0
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3959
SELECT * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) * - col1 + + col1 + + + col0 / - - ( 8 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3959
SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) * - col1 + + col1 + + + col0 / - - ( 8 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3960
SELECT + 10 AS col0, ( + + SUM( ALL + 14 ) ) FROM tab2
----
10
42

skipif mysql # not compatible
query II rowsort label-3960
SELECT + 10 AS col0, ( + + SUM ( ALL + 14 ) ) FROM tab2
----
10
42

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 95 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3962
SELECT + CAST( NULL AS SIGNED ) AS col1, col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-3962
SELECT + CAST ( NULL AS INTEGER ) AS col1, col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT ALL - ( - SUM( DISTINCT - col2 ) ) AS col0 FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL - ( - SUM ( DISTINCT - col2 ) ) AS col0 FROM tab1 cor0
----
-223

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT ALL MIN( - + col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL MIN ( - + col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3966
SELECT CAST( NULL AS SIGNED ) * + 39 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT CAST ( NULL AS INTEGER ) * + 39 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col2 * - ( - col2 ) FROM tab2 cor0
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3968
SELECT ALL - CAST( - col0 AS SIGNED ) + + - 78 + 2 * - 72 AS col1 FROM tab2 AS cor0
----
-147
-158
-176

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL - CAST ( - col0 AS INTEGER ) + + - 78 + 2 * - 72 AS col1 FROM tab2 AS cor0
----
-147
-158
-176

query I rowsort
SELECT ALL - 53 FROM tab1 AS cor0 WHERE NOT - col0 * - col1 + - + col1 IS NULL OR NOT - col2 IS NOT NULL
----
-53
-53
-53

query II rowsort
SELECT ALL + col2 AS col2, col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3971
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( + ( - col2 ) AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3971
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( + ( - col2 ) AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3972
SELECT + - CAST( NULL AS SIGNED ) + - col1 FROM tab0 AS cor0 WHERE - 48 = NULL
----

skipif mysql # not compatible
query I rowsort label-3972
SELECT + - CAST ( NULL AS INTEGER ) + - col1 FROM tab0 AS cor0 WHERE - 48 = NULL
----

query I rowsort
SELECT 7 + 77 FROM tab2 AS cor0
----
84
84
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3974
SELECT - CAST( - col1 AS SIGNED ) * + 23 AS col0 FROM tab0 AS cor0
----
1863
23
483

skipif mysql # not compatible
query I rowsort label-3974
SELECT - CAST ( - col1 AS INTEGER ) * + 23 AS col0 FROM tab0 AS cor0
----
1863
23
483

query I rowsort
SELECT DISTINCT - + col1 + - col0 * - ( + + col1 ) * + + 33 FROM tab0 AS cor0
----
3200
40014
60270

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( + + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE - 82 + - ( + - col2 ) * + col1 + + 22 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3978
SELECT DISTINCT * FROM tab2 WHERE - + ( + col2 ) BETWEEN 48 AND ( CAST( 53 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3978
SELECT DISTINCT * FROM tab2 WHERE - + ( + col2 ) BETWEEN 48 AND ( CAST ( 53 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT ALL + COUNT( * ) * + MIN( DISTINCT col0 ) + - + ( - 74 ) * 88 AS col1 FROM tab1
----
6665

skipif mysql # not compatible
query I rowsort label-3979
SELECT ALL + COUNT ( * ) * + MIN ( DISTINCT col0 ) + - + ( - 74 ) * 88 AS col1 FROM tab1
----
6665

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT + MIN( ALL + 8 ) AS col1 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-3980
SELECT + MIN ( ALL + 8 ) AS col1 FROM tab2
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3981
SELECT DISTINCT CAST( NULL AS SIGNED ) + - MAX( + 98 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3981
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - MAX ( + 98 ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 + ( + - 63 ) FROM tab1
----
-16
-49
-58

query II rowsort
SELECT col1 + + + col1 AS col1, col2 AS col0 FROM tab2 WHERE col0 IS NOT NULL
----
102
23
134
58
154
40

query I rowsort
SELECT col2 * + col0 - - - col2 FROM tab2 AS cor0
----
1035
2520
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT + 75 - - 30 - MAX( DISTINCT 69 ) AS col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
36

skipif mysql # not compatible
query I rowsort label-3985
SELECT + 75 - - 30 - MAX ( DISTINCT 69 ) AS col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT ALL + + ( - 94 ) - - COUNT( * ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL + + ( - 94 ) - - COUNT ( * ) FROM tab1 AS cor0
----
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-3987
SELECT + 18 + + col0, 97 DIV + col2 AS col0 FROM tab2 AS cor0
----
64
4
82
2
93
1

skipif mysql # not compatible
query II rowsort label-3987
SELECT + 18 + + col0, 97 / + col2 AS col0 FROM tab2 AS cor0
----
64
4
82
2
93
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT DISTINCT - - 44 - COUNT( * ) AS col1 FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-3988
SELECT DISTINCT - - 44 - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
41

query I rowsort
SELECT - col1 + col2 FROM tab1 AS cor0 WHERE NULL = 64
----

query I rowsort
SELECT + 7 + + 52 * - 83 * + col0 FROM tab2 AS cor0
----
-198529
-276217
-323693

query I rowsort
SELECT DISTINCT + 83 + 82 AS col0 FROM tab0
----
165

query I rowsort
SELECT DISTINCT - col1 + + - 86 FROM tab0
----
-107
-167
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-3993
SELECT DISTINCT - 6 + - col0 DIV 11 AS col1, col2 AS col2 FROM tab1
----
-10
96
-13
59
-14
68

skipif mysql # not compatible
query II rowsort label-3993
SELECT DISTINCT - 6 + - col0 / 11 AS col1, col2 AS col2 FROM tab1
----
-10
96
-13
59
-14
68

query I rowsort
SELECT ALL col2 * + + col0 + 41 AS col0 FROM tab2
----
1099
2601
4391

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT DISTINCT SUM( + 15 ) FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT SUM ( + 15 ) FROM tab2 AS cor0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3996
SELECT COUNT( * ), + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3996
SELECT COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3
NULL

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT - COUNT( + + 97 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3998
SELECT - COUNT ( + + 97 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 94 - + col2 + 59 / + 94 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - 13 col2 FROM tab2 AS cor0
----
299
520
754

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > 51
----

query II rowsort
SELECT 81, + col1 FROM tab1 AS cor0
----
81
14
81
47
81
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4003
SELECT + COUNT( DISTINCT + + CAST( col1 AS SIGNED ) ) AS col0, MIN( col2 ) * + 95 AS col2 FROM tab1 AS cor0
----
3
5605

skipif mysql # not compatible
query II rowsort label-4003
SELECT + COUNT ( DISTINCT + + CAST ( col1 AS INTEGER ) ) AS col0, MIN ( col2 ) * + 95 AS col2 FROM tab1 AS cor0
----
3
5605

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4004
SELECT 68 + - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT 68 + - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( NOT ( NULL IS NOT NULL ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - ( - - 80 ) AS col1, - col2 FROM tab0
----
-80
-10
-80
-47
-80
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-4008
SELECT col1 DIV + col2, 30 AS col0 FROM tab2
----
1
30
1
30
2
30

skipif mysql # not compatible
query II rowsort label-4008
SELECT col1 / + col2, 30 AS col0 FROM tab2
----
1
30
1
30
2
30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 32 + - col0 = - 41
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 + col1 AS col2 FROM tab0 WHERE NOT ( NOT col2 - + col0 / 14 + 21 IS NULL )
----

query I rowsort
SELECT + col1 * - + 41 * - 17 * - - ( col2 ) AS col1 FROM tab0
----
146370
2653479
69003

query II rowsort
SELECT + 63 * + col0, col2 AS col2 FROM tab0
----
5481
10
6111
99
945
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT - + COUNT( * ) FROM tab0 cor0 WHERE NOT col1 + + 6 + + 35 + - - 79 / - col0 * + col0 + - - 16 <= - 71
----
-3

skipif mysql # not compatible
query I rowsort label-4013
SELECT - + COUNT ( * ) FROM tab0 cor0 WHERE NOT col1 + + 6 + + 35 + - - 79 / - col0 * + col0 + - - 16 <= - 71
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT DISTINCT - ( + - MIN( ALL - ( 9 ) ) ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4014
SELECT DISTINCT - ( + - MIN ( ALL - ( 9 ) ) ) AS col1 FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-4015
SELECT ALL - col0 DIV - col0 AS col0, - 45 + + col2 AS col1 FROM tab1 cor0
----
1
14
1
23
1
51

skipif mysql # not compatible
query II rowsort label-4015
SELECT ALL - col0 / - col0 AS col0, - 45 + + col2 AS col1 FROM tab1 cor0
----
1
14
1
23
1
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4016
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 43 * 84 * - CAST( 29 AS SIGNED ) * + col0 * + + 95, - col0, + 34 * col0 - - 30, CAST( NULL AS SIGNED ) + - - col1, - col0, - col0 )
----

skipif mysql # not compatible
query III rowsort label-4016
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 43 * 84 * - CAST ( 29 AS INTEGER ) * + col0 * + + 95, - col0, + 34 * col0 - - 30, CAST ( NULL AS INTEGER ) + - - col1, - col0, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT DISTINCT COUNT( * ) + + - 38 FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-4017
SELECT DISTINCT COUNT ( * ) + + - 38 FROM tab0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT + SUM( + 42 ) FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-4018
SELECT + SUM ( + 42 ) FROM tab1
----
126

query I rowsort
SELECT - ( + + 22 ) AS col1 FROM tab2 AS cor0
----
-22
-22
-22

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 65 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 60 AS col2, col1 * + + 94 * - col0 col2 FROM tab0 AS cor0
----
60
-114210
60
-171738
60
-9118

query I rowsort
SELECT ALL - 22 * - col1 AS col2 FROM tab2 AS cor0
----
1122
1474
1694

query I rowsort
SELECT DISTINCT col1 * - col0 AS col0 FROM tab1 AS cor0 WHERE + col1 * - 81 IS NOT NULL
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT DISTINCT + 51 * + COUNT( * ) AS col2 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-4024
SELECT DISTINCT + 51 * + COUNT ( * ) AS col2 FROM tab1
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4025
SELECT CAST( - col2 AS SIGNED ) + - col2 FROM tab1
----
-118
-136
-192

skipif mysql # not compatible
query I rowsort label-4025
SELECT CAST ( - col2 AS INTEGER ) + - col2 FROM tab1
----
-118
-136
-192

query I rowsort
SELECT - 34 + - 86 AS col1 FROM tab0
----
-120
-120
-120

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4027
SELECT + + col0 + - CAST( NULL AS DECIMAL ) + + 51 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4027
SELECT + + col0 + - CAST ( NULL AS REAL ) + + 51 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT 53 + - + ( + 0 ) FROM tab1
----
53
53
53

query I rowsort
SELECT ALL - 82 + - - 96 * + 72 AS col0 FROM tab0
----
6830
6830
6830

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 95 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4031
SELECT col1 * - ( + 17 ) * + 54 + + CAST( + 8 AS SIGNED ) FROM tab0 WHERE - 94 IS NOT NULL
----
-19270
-74350
-910

skipif mysql # not compatible
query I rowsort label-4031
SELECT col1 * - ( + 17 ) * + 54 + + CAST ( + 8 AS INTEGER ) FROM tab0 WHERE - 94 IS NOT NULL
----
-19270
-74350
-910

query I rowsort
SELECT - col1 + + ( col2 ) AS col2 FROM tab1
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4033
SELECT DISTINCT col0 + - col1 + + - CAST( - - col1 AS SIGNED ) FROM tab1
----
-3
23
75

skipif mysql # not compatible
query I rowsort label-4033
SELECT DISTINCT col0 + - col1 + + - CAST ( - - col1 AS INTEGER ) FROM tab1
----
-3
23
75

query I rowsort
SELECT ALL + 50 - - 92 AS col2 FROM tab0
----
142
142
142

query II rowsort
SELECT DISTINCT ( - col0 ) * - col2 * - 88 AS col2, col2 * + - 34 + - + ( - + col0 ) FROM tab0 AS cor0 WHERE col1 = ( NULL )
----

query I rowsort
SELECT ALL - col2 * - - col1 + col0 AS col0 FROM tab2 AS cor0
----
-1127
-3016
-3811

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT MIN( DISTINCT + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4037
SELECT MIN ( DISTINCT + col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4038
SELECT * FROM tab2 cor0 WHERE ( NULL ) NOT IN ( - - col2 + - col1, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4038
SELECT * FROM tab2 cor0 WHERE ( NULL ) NOT IN ( - - col2 + - col1, CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ( 26 ) FROM tab0 AS cor0 WHERE col2 NOT BETWEEN - - col1 * + + 35 + col0 AND - col0
----
26
26
26

query I rowsort
SELECT ALL + col0 - - col0 AS col2 FROM tab1 cor0
----
102
170
182

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - 50 ) > + 56 / col0 * + col0 + + col0 + - - ( + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - col2 <= + col1 - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT + SUM( ALL 24 ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4043
SELECT + SUM ( ALL 24 ) FROM tab1 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT DISTINCT - + 23 * COUNT( - col0 ) AS col2 FROM tab0 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4044
SELECT DISTINCT - + 23 * COUNT ( - col0 ) AS col2 FROM tab0 cor0
----
-69

query II rowsort
SELECT DISTINCT - 16 AS col1, + col1 + col2 FROM tab0
----
-16
100
-16
128
-16
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT ALL + COUNT( - col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL + COUNT ( - col0 ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4047
SELECT CAST( - col1 AS SIGNED ) * + 67, + 8 AS col1 FROM tab2
----
-3417
8
-4489
8
-5159
8

skipif mysql # not compatible
query II rowsort label-4047
SELECT CAST ( - col1 AS INTEGER ) * + 67, + 8 AS col1 FROM tab2
----
-3417
8
-4489
8
-5159
8

query I rowsort
SELECT ALL ( + 86 ) AS col1 FROM tab2
----
86
86
86

query I rowsort
SELECT DISTINCT + col0 * - col2 + + col1 AS col0 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL 93 * + 80 AS col1 FROM tab1
----
7440
7440
7440

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT + + 61 IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4052
SELECT ALL col0, - CAST( + - col1 AS SIGNED ) FROM tab0
----
15
81
87
21
97
1

skipif mysql # not compatible
query II rowsort label-4052
SELECT ALL col0, - CAST ( + - col1 AS INTEGER ) FROM tab0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4053
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( col2 NOT BETWEEN + CAST( NULL AS DECIMAL ) * + col1 AND col2 + + + 16 + 82 )
----
0

skipif mysql # not compatible
query I rowsort label-4053
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( col2 NOT BETWEEN + CAST ( NULL AS REAL ) * + col1 AND col2 + + + 16 + 82 )
----
0

query I rowsort
SELECT - col1 * + col2 * 14 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1386
-2940
-53298

query II rowsort
SELECT + - col0, col0 AS col2 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query I rowsort
SELECT + 28 + + + col2 FROM tab1 AS cor0
----
124
87
96

query I rowsort
SELECT DISTINCT - 13 + - col0 * + col1 AS col1 FROM tab0 AS cor0
----
-110
-1228
-1840

query I rowsort
SELECT col1 + + col2 * + - col2 AS col0 FROM tab0 AS cor0
----
-2128
-79
-9800

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - col1 IS NULL
----

query I rowsort
SELECT col2 * - - 49 * - - col1 FROM tab1 AS cor0
----
14455
156604
65856

query I rowsort
SELECT ALL ( col0 ) * - col1 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT + ( + 92 ) FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
92
92
92

query I rowsort
SELECT - + col1 * - - col1 AS col0 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query II rowsort label-4064
SELECT DISTINCT + 32, 25 + COUNT( * ) AS col1 FROM tab0
----
32
28

skipif mysql # not compatible
query II rowsort label-4064
SELECT DISTINCT + 32, 25 + COUNT ( * ) AS col1 FROM tab0
----
32
28

query III rowsort
SELECT * FROM tab0 WHERE + col0 - 88 <> + - 81
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4066
SELECT - + COUNT( * ) * CAST( NULL AS SIGNED ) + + CAST( + 33 AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4066
SELECT - + COUNT ( * ) * CAST ( NULL AS INTEGER ) + + CAST ( + 33 AS REAL ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 * - + col1 NOT BETWEEN + + col2 + - col0 * + col0 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT DISTINCT - SUM( ALL col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4068
SELECT DISTINCT - SUM ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4069
SELECT - 63 col2, + ( - COUNT( * ) ) + + CAST( + + 8 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-63
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4069
SELECT - 63 col2, + ( - COUNT ( * ) ) + + CAST ( + + 8 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-63
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT - SUM( - 51 ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-4070
SELECT - SUM ( - 51 ) FROM tab2 AS cor0
----
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col0 ) col2 FROM tab0 cor0
----
-15
-87
-97

query II rowsort
SELECT ALL + 75 AS col2, 60 FROM tab0 AS cor0
----
75
60
75
60
75
60

query I rowsort
SELECT DISTINCT - 83 * - + 2 AS col2 FROM tab0
----
166

query I rowsort
SELECT 37 * - - col1 + - - 18 AS col0 FROM tab0 WHERE NOT - 32 <= - col1 + + - col2
----
3015
55

query I rowsort
SELECT ALL + col2 + - - 28 FROM tab2
----
51
68
86

query III rowsort
SELECT + col2 * - col1 AS col2, + col0, - col1 FROM tab1
----
9 values hashing to 0888191793b54576e89662fb5267c9b6

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT DISTINCT + MIN( + col2 ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT + MIN ( + col2 ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4078
SELECT col1 * col1 DIV col0 FROM tab2
----
56
59
92

skipif mysql # not compatible
query I rowsort label-4078
SELECT col1 * col1 / col0 FROM tab2
----
56
59
92

query I rowsort
SELECT + col1 + - ( + 2 ) AS col2 FROM tab2
----
49
65
75

query I rowsort
SELECT DISTINCT + 11 FROM tab2 WHERE NULL BETWEEN + ( col1 ) + + - col1 AND col0
----

query I rowsort
SELECT ALL col0 * + - col2 * + - col2 * - + col0 FROM tab1
----
-23970816
-25150225
-38291344

query I rowsort
SELECT + + col0 + + col1 - + + ( + col1 ) * + + col2 FROM tab2 AS cor0
----
-1076
-2939
-3744

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 cor0 WHERE NOT col1 < + 41
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 col1 FROM tab0
----
73
73
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4085
SELECT col0 FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4085
SELECT col0 FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
15
87
97

query I rowsort
SELECT - 96 - col2 FROM tab1 cor0
----
-155
-164
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT - + COUNT( * ) + + 88 AS col2 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-4087
SELECT - + COUNT ( * ) + + 88 AS col2 FROM tab2 AS cor0
----
85

query I rowsort
SELECT DISTINCT col0 - - col1 AS col2 FROM tab0 cor0
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + col2 + + col2 * - 40 * - col2 * + 30 * + col2 col2 FROM tab1 AS cor0
----
1061683200
246454800
377318400

query I rowsort
SELECT ALL - col1 * - - col2 * col1 AS col1 FROM tab1 AS cor0
----
-1475
-150212
-18816

query I rowsort
SELECT ALL ( - 26 ) AS col1 FROM tab1
----
-26
-26
-26

query I rowsort
SELECT + 66 + - col1 - col0 FROM tab0 WHERE NULL NOT BETWEEN - col0 * - - col1 * col1 AND NULL
----

query I rowsort
SELECT ALL + col2 + - col1 * + col0 + col1 + - 31 AS col0 FROM tab2
----
-2303
-4842
-4931

query I rowsort
SELECT - + col0 FROM tab0 WHERE + - col2 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT ALL + ( + col1 ) AS col2 FROM tab0 WHERE + col2 - 75 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4096
SELECT COUNT( DISTINCT + 72 ) DIV - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4096
SELECT COUNT ( DISTINCT + 72 ) / - COUNT ( * ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + + 89 = col1 )
----

query I rowsort
SELECT - col2 * 31 + col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1376
-289
-3068

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 >= - col1
----
97
1
99

query I rowsort
SELECT - 97 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col1 ) / - col1 + + 91 + 99 + + 80 + - 31 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT - COUNT( * ) * 46 col0 FROM tab1
----
-138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4102
SELECT - COUNT ( * ) * 46 col0 FROM tab1
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4103
SELECT CAST( NULL AS SIGNED ) / - - 60 / + MIN( + 95 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4103
SELECT CAST ( NULL AS INTEGER ) / - - 60 / + MIN ( + 95 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - 27 * + col2 FROM tab2
----
-1080
-1566
-621

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT ALL - COUNT( + - 29 ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4105
SELECT ALL - COUNT ( + - 29 ) col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT + 93 * + + COUNT( * ) AS col0 FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-4106
SELECT + 93 * + + COUNT ( * ) AS col0 FROM tab2
----
279

query I rowsort
SELECT DISTINCT + + 62 * + 48 FROM tab1 AS cor0
----
2976

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 12 - - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 41 * + 23 * - + 12 * 65 + - 33 * - + ( + col2 ) + + 87 - + col2 + col2 * - 7 * + ( col1 ) * + + 21 * col2 + 8 AS col2 FROM tab2 AS cor0 WHERE + 34 IS NOT NULL
----
-17373485
-3229542
-32394545

query II rowsort
SELECT DISTINCT 4, + col2 AS col0 FROM tab1 AS cor0 WHERE - col0 * + - 65 + - - col1 IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - - ( + col0 ) col0 FROM tab2 AS cor0
----
104
133
69

query II rowsort
SELECT 62, + col1 FROM tab0
----
62
1
62
21
62
81

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN + col0 * + ( - + col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4114
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4114
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 5 * + col0 * + - col1 FROM tab1
----
-2125
-21385
-3570

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 < NULL
----

query I rowsort
SELECT 51 + - - 79 AS col1 FROM tab2 AS cor0
----
130
130
130

query I rowsort
SELECT DISTINCT 3 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
3

query I rowsort
SELECT ALL + 24 * 63 + col2 FROM tab1
----
1571
1580
1608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4120
SELECT DISTINCT - 87 DIV - - MAX( + + 15 ) - 75 - 84 + - 40 DIV 7 * COUNT( * ) FROM tab0 AS cor0
----
-179

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT - 87 / - - MAX ( + + 15 ) - 75 - 84 + - 40 / 7 * COUNT ( * ) FROM tab0 AS cor0
----
-179

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4121
SELECT + 68 * col0 DIV + CAST( + 61 AS SIGNED ) AS col0 FROM tab1 cor0
----
101
56
94

skipif mysql # not compatible
query I rowsort label-4121
SELECT + 68 * col0 / + CAST ( + 61 AS INTEGER ) AS col0 FROM tab1 cor0
----
101
56
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4122
SELECT + col1 + + col0, col1 * - col1 FROM tab2 AS cor0 WHERE ( NULL ) <> - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-4122
SELECT + col1 + + col0, col1 * - col1 FROM tab2 AS cor0 WHERE ( NULL ) <> - - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4123
SELECT CAST( NULL AS SIGNED ) * + - SUM( ALL + 68 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT CAST ( NULL AS INTEGER ) * + - SUM ( ALL + 68 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4124
SELECT + - col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4124
SELECT + - col2 / - col2 AS col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4125
SELECT + + COUNT( * ) DIV - COUNT( * ) - - COUNT( * ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-4125
SELECT + + COUNT ( * ) / - COUNT ( * ) - - COUNT ( * ) FROM tab2 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT 56 - - COUNT( * ) col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4126
SELECT 56 - - COUNT ( * ) col1 FROM tab1 AS cor0
----
59

query I rowsort
SELECT + col2 - - - col2 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT ALL + - COUNT( * ) col2 FROM tab1 WHERE NOT - col2 - ( + col2 ) * 50 = NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4128
SELECT ALL + - COUNT ( * ) col2 FROM tab1 WHERE NOT - col2 - ( + col2 ) * 50 = NULL
----
0

query II rowsort
SELECT ALL + 63 AS col2, + 78 FROM tab2
----
63
78
63
78
63
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4130
SELECT * FROM tab1 WHERE NOT - ( + + ( + + 22 ) ) + - ( + - col1 ) / - - 82 IN ( + ( - CAST( NULL AS SIGNED ) ), - col2 )
----

skipif mysql # not compatible
query III rowsort label-4130
SELECT * FROM tab1 WHERE NOT - ( + + ( + + 22 ) ) + - ( + - col1 ) / - - 82 IN ( + ( - CAST ( NULL AS INTEGER ) ), - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4131
SELECT DISTINCT - 27 DIV - col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-4131
SELECT DISTINCT - 27 / - col0 FROM tab0
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4132
SELECT DISTINCT - 69 * + - 71 + MIN( + CAST( CAST( col2 AS SIGNED ) AS SIGNED ) ) FROM tab0 WHERE - col1 IS NOT NULL
----
4909

skipif mysql # not compatible
query I rowsort label-4132
SELECT DISTINCT - 69 * + - 71 + MIN ( + CAST ( CAST ( col2 AS INTEGER ) AS INTEGER ) ) FROM tab0 WHERE - col1 IS NOT NULL
----
4909

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 74 col0 FROM tab0 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT + COUNT( * ) + - 65 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4134
SELECT + COUNT ( * ) + - 65 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-56

query I rowsort
SELECT - 77 * - 81 AS col0 FROM tab1
----
6237
6237
6237

query I rowsort
SELECT + 44 * - col2 AS col0 FROM tab2
----
-1012
-1760
-2552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 75 ) col0 FROM tab1 AS cor0
----
75
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4138
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( + col2 AS SIGNED ) / + - 48 <> CAST( + 18 AS SIGNED ) + + 47 * + 33
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4138
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( + col2 AS INTEGER ) / + - 48 <> CAST ( + 18 AS INTEGER ) + + 47 * + 33
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE NOT 41 IS NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN col1 * - col1 AND 49
----
64
77
40
75
67
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 59 NOT BETWEEN + 53 + + col0 + col0 + + col2 AND col1 * + ( + + 66 ) * 2 * - - col0 * + 87
----

query I rowsort
SELECT ALL 9 * - - col0 FROM tab0
----
135
783
873

query III rowsort
SELECT * FROM tab0 WHERE + ( - - col0 ) * - ( - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT DISTINCT COUNT( * ) + - - COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT ALL - COUNT( * ) + - - COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4145
SELECT ALL - COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 IN ( 94, - col2, - col0 )
----

query I rowsort
SELECT + col1 * col1 + - - col1 FROM tab1
----
210
2256
30

onlyif mysql # DIV for integer division: 
query I rowsort label-4148
SELECT ALL 29 DIV - ( + col2 ) + 94 AS col0 FROM tab1
----
94
94
94

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL 29 / - ( + col2 ) + 94 AS col0 FROM tab1
----
94
94
94

query I rowsort
SELECT - 37 * - + col0 + + 78 AS col1 FROM tab1
----
1965
3223
3445

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT ALL - SUM( + 13 ) FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-4150
SELECT ALL - SUM ( + 13 ) FROM tab0
----
-39

query I rowsort
SELECT - col0 * - 84 + - - col2 FROM tab0
----
1307
7318
8247

query I rowsort
SELECT 5 + - - 91 FROM tab2 AS cor0
----
96
96
96

query I rowsort
SELECT DISTINCT - 61 * col0 FROM tab1 AS cor0
----
-3111
-5185
-5551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4154
SELECT - COUNT( 66 ) * ( 82 ) * + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
738

skipif mysql # not compatible
query I rowsort label-4154
SELECT - COUNT ( 66 ) * ( 82 ) * + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
738

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT ALL + ( + COUNT( * ) ) FROM tab1 WHERE NOT ( + + 95 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4155
SELECT ALL + ( + COUNT ( * ) ) FROM tab1 WHERE NOT ( + + 95 ) IS NOT NULL
----
0

query I rowsort
SELECT 74 * - col1 FROM tab0
----
-1554
-5994
-74

query III rowsort
SELECT * FROM tab2 WHERE + 75 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL - + 0 + + COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL - + 0 + + COUNT ( * ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT ALL COUNT( * ) - - COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL COUNT ( * ) - - COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT + 27 * - COUNT( * ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4160
SELECT + 27 * - COUNT ( * ) FROM tab0 AS cor0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4161
SELECT ALL col0 DIV 56 AS col0 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL col0 / 56 AS col0 FROM tab0
----
0
1
1

query II rowsort
SELECT ( - col1 ) * - 94 + + 25 - col0, + col1 FROM tab2
----
4773
51
6248
67
7199
77

query I rowsort
SELECT 58 * 87 AS col0 FROM tab0
----
5046
5046
5046

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT + COUNT( * ) * - 46 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-138

skipif mysql # not compatible
query I rowsort label-4164
SELECT + COUNT ( * ) * - 46 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-138

query I rowsort
SELECT ALL + 11 * - ( - - col2 ) AS col1 FROM tab2
----
-253
-440
-638

onlyif mysql # aggregate syntax: 
query II rowsort label-4166
SELECT DISTINCT + COUNT( DISTINCT - 37 ) AS col1, 92 * - 12 FROM tab1
----
1
-1104

skipif mysql # not compatible
query II rowsort label-4166
SELECT DISTINCT + COUNT ( DISTINCT - 37 ) AS col1, 92 * - 12 FROM tab1
----
1
-1104

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NULL BETWEEN - col2 AND NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4168
SELECT + COUNT( * ) DIV + + 8 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4168
SELECT + COUNT ( * ) / + + 8 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT ALL MAX( DISTINCT - + ( - col2 ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL MAX ( DISTINCT - + ( - col2 ) ) FROM tab0
----
99

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT col0 + + + ( - ( + - col2 ) ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + - 83 AS col0 FROM tab1 cor0
----
-83
-83
-83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4172
SELECT ALL * FROM tab0 WHERE NOT + 5 < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4172
SELECT ALL * FROM tab0 WHERE NOT + 5 < + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT col1, col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
96
47
68
5
59

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * - 20 * - 85 * 23 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 38 + - - 72 + - col1 * - + col0 + + 34 FROM tab2 AS cor0
----
2490
5072
5169

query I rowsort
SELECT col1 + - + col2 + + 38 FROM tab2 AS cor0
----
47
66
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT DISTINCT - 98 - - + COUNT( * ) AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
-98

skipif mysql # not compatible
query I rowsort label-4177
SELECT DISTINCT - 98 - - + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
-98

query I rowsort
SELECT ALL 38 FROM tab0 AS cor0 WHERE ( NOT 3 * - col2 IS NOT NULL )
----

query I rowsort
SELECT - col0 + - col2 AS col2 FROM tab1 AS cor0 WHERE + 52 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT - COUNT( DISTINCT + - col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4180
SELECT - COUNT ( DISTINCT + - col2 ) FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col0, - col0 AS col0 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT + COUNT( DISTINCT - col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4182
SELECT + COUNT ( DISTINCT - col2 ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4183
SELECT + MAX( DISTINCT + + col0 ) AS col2, CAST( COUNT( * ) AS SIGNED ) FROM tab2
----
75
3

skipif mysql # not compatible
query II rowsort label-4183
SELECT + MAX ( DISTINCT + + col0 ) AS col2, CAST ( COUNT ( * ) AS INTEGER ) FROM tab2
----
75
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT - MIN( DISTINCT + ( + col2 ) ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4184
SELECT - MIN ( DISTINCT + ( + col2 ) ) AS col1 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT DISTINCT COUNT( col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT COUNT ( col1 ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4186
SELECT ALL * FROM tab1 WHERE NOT col2 - + col1 + + col0 - + col0 * - - CAST( col0 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-4186
SELECT ALL * FROM tab1 WHERE NOT col2 - + col1 + + col0 - + col0 * - - CAST ( col0 AS INTEGER ) = NULL
----

query I rowsort
SELECT - col0 + ( + 24 ) AS col0 FROM tab2 AS cor0
----
-22
-40
-51

query I rowsort
SELECT - col0 * + - col1 * - + 74 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col0 + + 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT DISTINCT - SUM( col1 ) * + 81 AS col0 FROM tab2 AS cor0
----
-15795

skipif mysql # not compatible
query I rowsort label-4189
SELECT DISTINCT - SUM ( col1 ) * + 81 AS col0 FROM tab2 AS cor0
----
-15795

query I rowsort
SELECT + col0 + + + col1 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4191
SELECT ALL - - CAST( NULL AS SIGNED ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - 19 - - col0 + - 65 * - ( - col0 ) * + 79 + 11 FROM tab1 cor0
----
-261842
-436398
-467202

query I rowsort
SELECT ALL + col0 * 54 - - - col0 + 47 * - + 27 * - - col0 AS col0 FROM tab1 AS cor0
----
-103360
-110656
-62016

onlyif mysql # DIV for integer division: 
query I rowsort label-4194
SELECT ALL + 79 * - col1 DIV col1 + - col2 + - col2 FROM tab0 AS cor0
----
-173
-277
-99

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL + 79 * - col1 / col1 + - col2 + - col2 FROM tab0 AS cor0
----
-173
-277
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT MAX( ALL col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-4195
SELECT MAX ( ALL col1 ) FROM tab1 cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT + COUNT( col0 ) * - 13 AS col0 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-4196
SELECT + COUNT ( col0 ) * - 13 AS col0 FROM tab2 AS cor0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-4197
SELECT DISTINCT 24 DIV - col2 + col1 FROM tab2 AS cor0
----
50
67
77

skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT 24 / - col2 + col1 FROM tab2 AS cor0
----
50
67
77

query II rowsort
SELECT DISTINCT 76, 8 * col1 * + 28 AS col0 FROM tab1 cor0 WHERE NOT + 54 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col1, col0 AS col0 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4200
SELECT ALL CAST( + 27 AS SIGNED ), col2 * col1 AS col1 FROM tab2
----
27
1173
27
3080
27
3886

skipif mysql # not compatible
query II rowsort label-4200
SELECT ALL CAST ( + 27 AS INTEGER ), col2 * col1 AS col1 FROM tab2
----
27
1173
27
3080
27
3886

query I rowsort
SELECT - - ( 45 ) + - col2 / + col2 AS col2 FROM tab0 WHERE NOT NULL > NULL
----

query II rowsort
SELECT col0 AS col1, + ( col2 ) FROM tab1
----
51
96
85
59
91
68

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * + 60 + col0 = 25
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col1 * col2 AS col1, col2 FROM tab0
----
-210
10
-3807
47
-99
99

query I rowsort
SELECT ALL - col0 * 7 FROM tab1
----
-357
-595
-637

query II rowsort
SELECT 48 AS col0, - col0 FROM tab0 AS cor0
----
48
-15
48
-87
48
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT ALL 31 + + + COUNT( * ) * - 98 FROM tab1
----
-263

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL 31 + + + COUNT ( * ) * - 98 FROM tab1
----
-263

query I rowsort
SELECT + ( col1 ) * - + col1 + + col1 FROM tab0 AS cor0
----
-420
-6480
0

query I rowsort
SELECT - col1 * - - 10 FROM tab2 AS cor0
----
-510
-670
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT ALL + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2, + ( + col1 ), - col0, - 55, 28 + - - 43 )
----
0

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2, + ( + col1 ), - col0, - 55, 28 + - - 43 )
----
0

query I rowsort
SELECT - col0 / - col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT - MIN( ALL + 78 ) AS col2 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-4212
SELECT - MIN ( ALL + 78 ) AS col2 FROM tab1 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT ALL + - SUM( 39 ) FROM tab1 cor0
----
-117

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL + - SUM ( 39 ) FROM tab1 cor0
----
-117

query I rowsort
SELECT + 36 * ( 41 ) + + col0 FROM tab1
----
1527
1561
1567

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4215
SELECT col2 + + ( - + CAST( NULL AS DECIMAL ) ) * - 37 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4215
SELECT col2 + + ( - + CAST ( NULL AS REAL ) ) * - 37 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + ( + col0 ) col1 FROM tab1
----
138
65
90

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT + 84 * - 71 FROM tab2
----
-5964
-5964
-5964

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0 * - col0
----

query I rowsort
SELECT DISTINCT - 2 - + 73 FROM tab1 cor0
----
-75

query I rowsort
SELECT ALL + col0 - - + col1 AS col2 FROM tab0 AS cor0 WHERE NULL > col1
----

query II rowsort
SELECT DISTINCT + 65, col1 - col1 - + + 17 * 31 AS col2 FROM tab2 cor0
----
65
-527

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 / + col1 col0 FROM tab0 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL + 30 + - 10 FROM tab2
----
20
20
20

onlyif mysql # DIV for integer division: 
query I rowsort label-4225
SELECT col0 DIV 3 FROM tab1
----
17
28
30

skipif mysql # not compatible
query I rowsort label-4225
SELECT col0 / 3 FROM tab1
----
17
28
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT COUNT( * ) * MIN( - 86 * - col2 ) FROM tab0
----
2580

skipif mysql # not compatible
query I rowsort label-4226
SELECT COUNT ( * ) * MIN ( - 86 * - col2 ) FROM tab0
----
2580

query I rowsort
SELECT col2 FROM tab0 WHERE NOT + col2 >= col2
----

query I rowsort
SELECT DISTINCT ( AVG ( + col0 ) ) FROM tab1 WHERE 1 IN ( 69 )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 61 BETWEEN ( - 96 * - 20 ) AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( 37 ) + - col0 * 77 AS col1 FROM tab0
----
-1192
-6736
-7506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4231
SELECT DISTINCT - CAST( MIN( DISTINCT - 80 ) AS SIGNED ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT - CAST ( MIN ( DISTINCT - 80 ) AS INTEGER ) FROM tab2
----
80

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4233
SELECT ALL * FROM tab1 WHERE NOT ( + 65 ) * + col0 + col1 * CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4233
SELECT ALL * FROM tab1 WHERE NOT ( + 65 ) * + col0 + col1 * CAST ( NULL AS REAL ) NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 + col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 84 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * - col0 - + 99 AS col2 FROM tab0
----
-1314
-1926
-196

query III rowsort
SELECT * FROM tab1 WHERE + 11 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 13 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4239
SELECT col2 * ( 42 ) AS col1 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
1680
2436
966

skipif mysql # not compatible
query I rowsort label-4239
SELECT col2 * ( 42 ) AS col1 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
1680
2436
966

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT 15 + COUNT( * ) col2 FROM tab2
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4240
SELECT 15 + COUNT ( * ) col2 FROM tab2
----
18

query I rowsort
SELECT ALL + ( + 31 ) FROM tab1
----
31
31
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4242
SELECT col2 DIV + 22 + col0 * + col0 AS col2 FROM tab2
----
2117
4097
5627

skipif mysql # not compatible
query I rowsort label-4242
SELECT col2 / + 22 + col0 * + col0 AS col2 FROM tab2
----
2117
4097
5627

query I rowsort
SELECT 6 * col1 + 54 AS col1 FROM tab0
----
180
540
60

query I rowsort
SELECT DISTINCT + ( 3 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT ( col1 ) * + col1 AS col0 FROM tab1 cor0
----
196
2209
25

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 60 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT ALL 28 + MAX( + 19 ) FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL 28 + MAX ( + 19 ) FROM tab0 AS cor0
----
47

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NULL < ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 - col1 FROM tab0 WHERE ( col1 - - col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 15 AS col0 FROM tab2 AS cor0 WHERE col2 / col1 + + col0 NOT BETWEEN col0 + - col2 AND col2 * - col0
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT ALL - MIN( - 72 ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL - MIN ( - 72 ) FROM tab1 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT - COUNT( * ) + MIN( + col2 ) AS col0 FROM tab2 AS cor0 WHERE ( 89 ) / col1 IS NOT NULL
----
20

skipif mysql # not compatible
query I rowsort label-4252
SELECT - COUNT ( * ) + MIN ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE ( 89 ) / col1 IS NOT NULL
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 col1 FROM tab0 AS cor0 WHERE NOT col2 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4254
SELECT DISTINCT COUNT( * ) DIV + ( COUNT( * ) * + 64 + COUNT( * ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT COUNT ( * ) / + ( COUNT ( * ) * + 64 + COUNT ( * ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + col2 + 83 FROM tab1 cor0
----
142
151
179

onlyif mysql # DIV for integer division: 
query I rowsort label-4256
SELECT + 87 DIV + 26 AS col1 FROM tab1 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-4256
SELECT + 87 / + 26 AS col1 FROM tab1 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT DISTINCT MAX( ALL ( - col0 ) ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4257
SELECT DISTINCT MAX ( ALL ( - col0 ) ) FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT - COUNT( * ) * ( + 86 ) AS col0 FROM tab2 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-4258
SELECT - COUNT ( * ) * ( + 86 ) AS col0 FROM tab2 AS cor0
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT COUNT( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4259
SELECT COUNT ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT ALL + COUNT( * ) + + + ( - 74 ) - ( + COUNT( * ) ) AS col2 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL + COUNT ( * ) + + + ( - 74 ) - ( + COUNT ( * ) ) AS col2 FROM tab1
----
-74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4261
SELECT + CAST( + col2 AS SIGNED ) DIV col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4261
SELECT + CAST ( + col2 AS INTEGER ) / col2 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4262
SELECT ALL + col2 + CAST( col0 AS SIGNED ) AS col1 FROM tab0 WHERE ( + col2 ) = NULL
----

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL + col2 + CAST ( col0 AS INTEGER ) AS col1 FROM tab0 WHERE ( + col2 ) = NULL
----

query I rowsort
SELECT 41 * - - col0 AS col2 FROM tab0
----
3567
3977
615

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT - COUNT( * ) FROM tab0 WHERE ( + 82 * - 31 + + ( 12 ) / col1 ) > 18
----
0

skipif mysql # not compatible
query I rowsort label-4264
SELECT - COUNT ( * ) FROM tab0 WHERE ( + 82 * - 31 + + ( 12 ) / col1 ) > 18
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT COUNT( 57 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4265
SELECT COUNT ( 57 ) FROM tab2
----
3

query I rowsort
SELECT - col1 - + 0 AS col2 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL 23 AS col0 FROM tab1 WHERE col2 BETWEEN + 79 AND + col0 * col1 - - col0
----
23

query I rowsort
SELECT ( - col0 ) + col1 * col0 FROM tab2 WHERE NULL IS NULL
----
2300
4864
4950

query III rowsort
SELECT * FROM tab1 WHERE - 14 NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4270
SELECT + col0 * + col0 + CAST( 87 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
2203
4183
5712

skipif mysql # not compatible
query I rowsort label-4270
SELECT + col0 * + col0 + CAST ( 87 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
2203
4183
5712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4271
SELECT COUNT( * ) * + COUNT( * ) + - 21 + + SUM( 24 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4271
SELECT COUNT ( * ) * + COUNT ( * ) + - 21 + + SUM ( 24 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col2 + + - 87 * col2 AS col2 FROM tab0 AS cor0
----
-4042
-8514
-860

query I rowsort
SELECT ( 96 ) * - 94 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6b7cc9d69ba793d1d92a8d7bf2d64867

query I rowsort
SELECT DISTINCT 37 * 4 + 12 FROM tab1 WHERE - - 86 / col1 BETWEEN col2 AND - col1
----

query I rowsort
SELECT 65 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT DISTINCT - + MAX( DISTINCT + + 80 ) AS col0 FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-4276
SELECT DISTINCT - + MAX ( DISTINCT + + 80 ) AS col0 FROM tab1 AS cor0
----
-80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4277
SELECT CAST( 84 AS SIGNED ) DIV - + 58 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4277
SELECT CAST ( 84 AS INTEGER ) / - + 58 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 17 NOT BETWEEN + - col1 AND ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT DISTINCT - ( - ( - MIN( - 41 ) ) ) FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-4279
SELECT DISTINCT - ( - ( - MIN ( - 41 ) ) ) FROM tab2 AS cor0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4280
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab0 AS cor0 WHERE ( col2 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab0 AS cor0 WHERE ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT DISTINCT + + COUNT( * ) FROM tab2 AS cor0 WHERE + 64 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4281
SELECT DISTINCT + + COUNT ( * ) FROM tab2 AS cor0 WHERE + 64 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4282
SELECT ALL + 66 * col0 col1 FROM tab2 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) IS NULL
----
3036
4224
4950

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4282
SELECT ALL + 66 * col0 col1 FROM tab2 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NULL
----
3036
4224
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT + - COUNT( * ) * - - 95 col0 FROM tab2 AS cor0
----
-285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4283
SELECT + - COUNT ( * ) * - - 95 col0 FROM tab2 AS cor0
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT DISTINCT + MAX( ALL + + 20 ) AS col0 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT + MAX ( ALL + + 20 ) AS col0 FROM tab0 AS cor0
----
20

query I rowsort
SELECT col2 + + col2 * + 0 AS col0 FROM tab2 WHERE NOT ( col1 ) IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - ( + col0 ) * + - col0 AS col2 FROM tab1
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4287
SELECT DISTINCT - ( - col2 ) * - col2 AS col2 FROM tab0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-4287
SELECT DISTINCT - ( - col2 ) * - col2 AS col2 FROM tab0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
-100
-2209
-9801

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 NOT BETWEEN col2 AND col1 * col0
----
15
81
47
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + + ( - col0 ) ) * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4290
SELECT - CAST( NULL AS SIGNED ) + - - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4290
SELECT - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4291
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( + + col0 AS SIGNED ) - + - col1 BETWEEN ( 77 * col0 ) AND ( + col2 + CAST( NULL AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4291
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( + + col0 AS INTEGER ) - + - col1 BETWEEN ( 77 * col0 ) AND ( + col2 + CAST ( NULL AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE ( NULL ) >= + col2 * + col0 * col0 + col0
----

query III rowsort
SELECT * FROM tab1 WHERE ( col0 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT 22 AS col1 FROM tab2 WHERE + col0 IS NULL
----

query I rowsort
SELECT 89 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # DIV for integer division: 
query I rowsort label-4296
SELECT DISTINCT col2 + + col2 * - - 90 - + col0 DIV col1 FROM tab2
----
2093
3640
5277

skipif mysql # not compatible
query I rowsort label-4296
SELECT DISTINCT col2 + + col2 * - - 90 - + col0 / col1 FROM tab2
----
2093
3640
5277

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE 88 IS NULL
----

query I rowsort
SELECT + 90 * col2 AS col1 FROM tab2 AS cor0
----
2070
3600
5220

query I rowsort
SELECT ALL + - 34 + + 45 FROM tab1 AS cor0
----
11
11
11

query I rowsort
SELECT DISTINCT 60 + 45 + col1 FROM tab0 AS cor0
----
106
126
186

query II rowsort
SELECT DISTINCT col1 AS col2, - col0 AS col1 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

query I rowsort
SELECT ALL - col0 * - + 42 AS col0 FROM tab1 AS cor0
----
2142
3570
3822

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 <= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4304
SELECT ALL + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0 * - 0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 76 * - ( - col1 * col1 ) col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL AND NOT ( + + ( - - col2 ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 54 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4308
SELECT + CAST( + col0 AS SIGNED ) + col2 * col1 * col1 + 35 * col0 AS col0 FROM tab1 AS cor0
----
153488
20652
4535

skipif mysql # not compatible
query I rowsort label-4308
SELECT + CAST ( + col0 AS INTEGER ) + col2 * col1 * col1 + 35 * col0 AS col0 FROM tab1 AS cor0
----
153488
20652
4535

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT ( NOT - col0 * + 29 IS NULL )
----

query I rowsort
SELECT col0 + - - 16 AS col0 FROM tab0
----
103
113
31

query III rowsort
SELECT * FROM tab1 WHERE ( 81 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT ALL 9 - + - COUNT( * ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL 9 - + - COUNT ( * ) FROM tab2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4313
SELECT col1 DIV - 35 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4313
SELECT col1 / - 35 FROM tab0
----
-2
0
0

query I rowsort
SELECT + 91 FROM tab0 WHERE NULL IS NULL
----
91
91
91

onlyif mysql # aggregate syntax: 
query III rowsort label-4315
SELECT - 14 AS col0, COUNT( * ) AS col2, 34 FROM tab1
----
-14
3
34

skipif mysql # not compatible
query III rowsort label-4315
SELECT - 14 AS col0, COUNT ( * ) AS col2, 34 FROM tab1
----
-14
3
34

query I rowsort
SELECT 55 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4317
SELECT ALL 30 DIV 34 AS col1, + COUNT( * ) * + + 34 FROM tab0
----
0
102

skipif mysql # not compatible
query II rowsort label-4317
SELECT ALL 30 / 34 AS col1, + COUNT ( * ) * + + 34 FROM tab0
----
0
102

query I rowsort
SELECT + - 21 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT + 76 * - 62 AS col1 FROM tab0
----
-4712
-4712
-4712

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT ALL + COUNT( * ) * COUNT( * ) - - COUNT( * ) - - 53 AS col2 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL + COUNT ( * ) * COUNT ( * ) - - COUNT ( * ) - - 53 AS col2 FROM tab1 AS cor0
----
65

query I rowsort
SELECT ALL + + 49 * + ( 42 ) FROM tab2 AS cor0
----
2058
2058
2058

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT DISTINCT + COUNT( * ) col2 FROM tab1 AS cor0 WHERE 52 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4322
SELECT DISTINCT + COUNT ( * ) col2 FROM tab1 AS cor0 WHERE 52 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE NOT + 5 <= ( col2 + - 1 * + + 57 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE NOT + 5 <= ( col2 + - 1 * + + 57 + + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( 7 + + 41 * + 79 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT ( - + ( + SUM( ALL col1 ) ) ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4325
SELECT ( - + ( + SUM ( ALL col1 ) ) ) FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT ALL + ( + - ( + + COUNT( * ) ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL + ( + - ( + + COUNT ( * ) ) ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ( 55 ) * + 42 FROM tab0 AS cor0 WHERE NOT - ( col0 ) * + - 86 * - - col1 + - + col2 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 / + 26 + - col1 + 98 * + col1 IS NULL
----

query II rowsort
SELECT 27 AS col2, + 66 + + col1 AS col1 FROM tab1
----
27
113
27
71
27
80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 <> - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT MIN( + 89 ) FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-4331
SELECT MIN ( + 89 ) FROM tab2
----
89

query II rowsort
SELECT col1, + col0 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4333
SELECT 32 * - 60 * CAST( 66 AS SIGNED ) FROM tab0
----
-126720
-126720
-126720

skipif mysql # not compatible
query I rowsort label-4333
SELECT 32 * - 60 * CAST ( 66 AS INTEGER ) FROM tab0
----
-126720
-126720
-126720

query III rowsort
SELECT * FROM tab1 WHERE NOT 52 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT MIN( DISTINCT - + col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4335
SELECT MIN ( DISTINCT - + col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 4 ) col0 FROM tab1 AS cor0
----
-4
-4
-4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 41 + + col2 + - col0 > - ( 50 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4338
SELECT + col0 * - - col1 + col2 AS col1, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
4345
NULL
484
NULL
810
NULL

skipif mysql # not compatible
query II rowsort label-4338
SELECT + col0 * - - col1 + col2 AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
4345
NULL
484
NULL
810
NULL

query I rowsort
SELECT DISTINCT 87 + + 44 FROM tab2
----
131

query I rowsort
SELECT ALL - 57 * - + col2 + + - 12 + 81 - - col2 * 82 AS col1 FROM tab0
----
13830
1459
6602

query I rowsort
SELECT DISTINCT - + 30 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-30

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 80 IN ( + 81 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 15 * col0 IN ( + col0, col1 - + - col1, col2, - + 72 + col0 + + 11 / 59 )
----

query I rowsort
SELECT DISTINCT - col0 * + - 55 * - 68 - col1 FROM tab0 AS cor0
----
-325401
-362781
-56181

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( - - col2 NOT BETWEEN ( + ( col2 ) ) AND ( - col1 ) ) ) OR NOT + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 71 * 29 AS col1 FROM tab1 AS cor0
----
-2059
-2059
-2059

query II rowsort
SELECT 4 AS col2, col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 * - + col1 + + 55 + - col0 FROM tab2 AS cor0
----
2355
4919
5005

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT DISTINCT MAX( + col1 ) * - 79 FROM tab2 AS cor0
----
-6083

skipif mysql # not compatible
query I rowsort label-4349
SELECT DISTINCT MAX ( + col1 ) * - 79 FROM tab2 AS cor0
----
-6083

onlyif mysql # DIV for integer division: 
query I rowsort label-4350
SELECT DISTINCT ( - col2 ) DIV 42 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT ( - col2 ) / 42 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT ALL + 1 * COUNT( * ) + + 38 FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL + 1 * COUNT ( * ) + + 38 FROM tab1 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT DISTINCT - 60 / + + MAX( ALL col2 ) + - ( COUNT( * ) ) + - COUNT( * ) FROM tab0 WHERE NULL >= + col2 + - col0 AND NOT + 44 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT DISTINCT - 60 / + + MAX ( ALL col2 ) + - ( COUNT ( * ) ) + - COUNT ( * ) FROM tab0 WHERE NULL >= + col2 + - col0 AND NOT + 44 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT ALL - SUM( + 39 ) FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL - SUM ( + 39 ) FROM tab2
----
-117

query I rowsort
SELECT col1 + - - 13 AS col0 FROM tab1
----
18
27
60

query I rowsort
SELECT DISTINCT - col1 * + col1 + - col0 * + ( + col2 ) * - 45 FROM tab0
----
25164
38709
432134

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL BETWEEN + col1 AND + - ( 34 ) )
----

query I rowsort
SELECT ALL - 81 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT DISTINCT MAX( ALL + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4358
SELECT DISTINCT MAX ( ALL + col0 ) FROM tab0
----
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> + 25
----

query I rowsort
SELECT ALL 40 * + ( col1 ) FROM tab0
----
3240
40
840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4361
SELECT - COUNT( * ) DIV 12 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4361
SELECT - COUNT ( * ) / 12 AS col2 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( col1 ) = - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 * + col1 - col2 FROM tab0 AS cor0 WHERE NULL < col0 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL <> - col1
----
0

skipif mysql # not compatible
query I rowsort label-4364
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL <> - col1
----
0

query I rowsort
SELECT DISTINCT + + 70 * - + col2 FROM tab1 cor0
----
-4130
-4760
-6720

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT DISTINCT - SUM( + - col0 ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
555

skipif mysql # not compatible
query I rowsort label-4366
SELECT DISTINCT - SUM ( + - col0 ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
555

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4367
SELECT - - 85 DIV - + COUNT( * ) + + 64 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-4367
SELECT - - 85 / - + COUNT ( * ) + + 64 FROM tab1 AS cor0
----
36

query I rowsort
SELECT ALL + col0 * - + col0 AS col1 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-4369
SELECT ALL + - 74 DIV 82 + - col1 * - col0 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-4369
SELECT ALL + - 74 / 82 + - col1 * - col0 FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 3 ) <= NULL
----

query I rowsort
SELECT - col2 * - 61 * + col0 FROM tab0 AS cor0
----
43005
53070
585783

onlyif mysql # DIV for integer division: 
query II rowsort label-4372
SELECT + col0, 37 DIV - col2 FROM tab1 cor0
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-4372
SELECT + col0, 37 / - col2 FROM tab1 cor0
----
51
0
85
0
91
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4373
SELECT ALL 25 DIV + col2 col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4373
SELECT ALL 25 / + col2 col1 FROM tab2
----
0
0
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 46 IS NOT NULL
----

query I rowsort
SELECT + col2 + ( col0 ) + 11 FROM tab1
----
155
158
170

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT COUNT( * ) + 87 AS col0 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-4376
SELECT COUNT ( * ) + 87 AS col0 FROM tab2
----
90

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4377
SELECT + col2 - + 61 FROM tab0 cor0 WHERE + CAST( NULL AS SIGNED ) < - + col0 * - CAST( + - col0 AS DECIMAL ) + - col2 + col0
----

skipif mysql # not compatible
query I rowsort label-4377
SELECT + col2 - + 61 FROM tab0 cor0 WHERE + CAST ( NULL AS INTEGER ) < - + col0 * - CAST ( + - col0 AS REAL ) + - col2 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT MIN( col2 ) FROM tab2 AS cor0 WHERE ( + 82 ) IS NOT NULL
----
23

skipif mysql # not compatible
query I rowsort label-4378
SELECT MIN ( col2 ) FROM tab2 AS cor0 WHERE ( + 82 ) IS NOT NULL
----
23

query I rowsort
SELECT DISTINCT - 78 AS col1 FROM tab2 WHERE - col2 / - col2 NOT BETWEEN col2 AND NULL
----
-78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4380
SELECT + CAST( NULL AS DECIMAL ) * COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4380
SELECT + CAST ( NULL AS REAL ) * COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col1 + - - col2 FROM tab1
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT - 0 * - COUNT( * ) - + COUNT( * ) - - COUNT( col2 ) + COUNT( * ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4382
SELECT - 0 * - COUNT ( * ) - + COUNT ( * ) - - COUNT ( col2 ) + COUNT ( * ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4383
SELECT ALL - 7 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL - 7 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - + col0 ) + - col2 FROM tab0
----
-196
-62
-97

query I rowsort
SELECT ALL + col2 + + - 76 FROM tab2 AS cor0
----
-18
-36
-53

query I rowsort
SELECT DISTINCT + ( - 13 ) * + col1 * + col0 FROM tab1 AS cor0
----
-5525
-55601
-9282

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( + col1 IN ( + col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( + col1 IN ( + col1 ) )
----
0

query I rowsort
SELECT ALL col0 * 56 * - 7 + + col2 FROM tab0 AS cor0
----
-34094
-37925
-5833

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 34 + + 55 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 56 AS col0 FROM tab2 AS cor0 WHERE col0 * - + 74 / 43 IS NOT NULL
----
56
56
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4391
SELECT 69 DIV + + 90 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4391
SELECT 69 / + + 90 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL + - 44 AS col2, + ( - - col1 ) FROM tab0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT 17 * + - col2 AS col1 FROM tab0
----
-1683
-170
-799

query I rowsort
SELECT DISTINCT - col0 * 22 AS col0 FROM tab2
----
-1012
-1408
-1650

query II rowsort
SELECT DISTINCT 63 * - col2, 40 AS col1 FROM tab1
----
-3717
40
-4284
40
-6048
40

query II rowsort
SELECT col2 * col2, col0 FROM tab0
----
100
87
2209
15
9801
97

query I rowsort
SELECT + + 93 AS col1 FROM tab2 cor0 WHERE NOT + col2 / 20 IS NOT NULL
----

query I rowsort
SELECT + + col2 * 65 + col1 AS col1 FROM tab2 AS cor0
----
1546
2677
3837

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT + COUNT( ALL - - 19 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4399
SELECT + COUNT ( ALL - - 19 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col1 * 30 AS col1 FROM tab2
----
1530
2010
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT - SUM( ALL col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-4401
SELECT - SUM ( ALL col0 ) AS col1 FROM tab0
----
-199

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4402
SELECT COUNT( * ) DIV - 27 * - + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4402
SELECT COUNT ( * ) / - 27 * - + COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT ALL ( + 69 ) AS col0 FROM tab1
----
69
69
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4404
SELECT DISTINCT - col0 DIV - 51 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT - col0 / - 51 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT ALL SUM( ALL - + 62 ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
558

skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL SUM ( ALL - + 62 ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4406
SELECT DISTINCT + AVG ( - col1 ) + - 30 * - 7 AS col1 FROM tab0 AS cor0 WHERE + 39 + + col1 - - 14 + + 99 - - col0 / col2 * - col1 * - CAST( - - col0 AS SIGNED ) = - CAST( 10 AS SIGNED ) * + col2 * col1 - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4406
SELECT DISTINCT + AVG ( - col1 ) + - 30 * - 7 AS col1 FROM tab0 AS cor0 WHERE + 39 + + col1 - - 14 + + 99 - - col0 / col2 * - col1 * - CAST ( - - col0 AS INTEGER ) = - CAST ( 10 AS INTEGER ) * + col2 * col1 - col0
----
NULL

query II rowsort
SELECT + col1 * - col2 + + - 92, + col2 * + col2 AS col0 FROM tab0 AS cor0
----
-191
9801
-302
100
-3899
2209

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT MIN( - 5 ) * + SUM( + col0 ) * + COUNT( * ) col1 FROM tab0 AS cor0
----
-2985

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4408
SELECT MIN ( - 5 ) * + SUM ( + col0 ) * + COUNT ( * ) col1 FROM tab0 AS cor0
----
-2985

query I rowsort
SELECT ALL - col1 * + + 87 + - col1 AS col2 FROM tab0 AS cor0
----
-1848
-7128
-88

query I rowsort
SELECT ALL - - 84 AS col0 FROM tab1 AS cor0
----
84
84
84

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 95 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT DISTINCT + SUM( + col1 ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4412
SELECT DISTINCT + SUM ( + col1 ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4413
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 IN ( - + col1, CAST( NULL AS SIGNED ) + 61 + + 14 * + + 59 * - + col1, + 84 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4413
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 IN ( - + col1, CAST ( NULL AS INTEGER ) + 61 + + 14 * + + 59 * - + col1, + 84 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( + + col2 ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query II rowsort
SELECT + col0 AS col0, - 58 AS col0 FROM tab0
----
15
-58
87
-58
97
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4416
SELECT ALL + CAST( NULL AS SIGNED ) / 16 + + 19 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL + CAST ( NULL AS INTEGER ) / 16 + + 19 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4417
SELECT DISTINCT col0 + + + CAST( + col0 AS SIGNED ) + - col2 + + - col2 + col1 FROM tab2
----
101
125
97

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT col0 + + + CAST ( + col0 AS INTEGER ) + - col2 + + - col2 + col1 FROM tab2
----
101
125
97

query III rowsort
SELECT * FROM tab2 WHERE col2 <= + 49 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 * + col1 * + - col0 + + 34 AS col2 FROM tab1
----
-200985
-2091
-9962

query III rowsort
SELECT * FROM tab1 WHERE ( col0 + + + col0 ) > col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4421
SELECT ALL col2 DIV + ( + + col0 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL col2 / + ( + + col0 ) AS col1 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL - col1 AS col0, 90 + - 34 AS col1 FROM tab0 AS cor0
----
-1
56
-21
56
-81
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( - + 48 ) col0 FROM tab2 cor0
----
-106
-71
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-4424
SELECT + col0 DIV col0 * + + col0 + col0 FROM tab2
----
128
150
92

skipif mysql # not compatible
query I rowsort label-4424
SELECT + col0 / col0 * + + col0 + col0 FROM tab2
----
128
150
92

query II rowsort
SELECT ALL + col0 - - 18 - + - col2 AS col0, 47 * col2 FROM tab1
----
162
2773
165
4512
177
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + - 44 col2, + 19 * + - 54 FROM tab1 AS cor0
----
41
-1026
47
-1026
7
-1026

query I rowsort
SELECT DISTINCT + col0 - - col0 * col2 * + 10 * ( - col2 ) FROM tab0 AS cor0
----
-331335
-86913
-9506873

query I rowsort
SELECT + - ( - 97 ) * col2 - + col2 FROM tab2 AS cor0
----
2208
3840
5568

onlyif mysql # DIV for integer division: 
query I rowsort label-4429
SELECT ALL + col2 * 14 DIV - col2 - 71 AS col0 FROM tab2 AS cor0
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL + col2 * 14 / - col2 - 71 AS col0 FROM tab2 AS cor0
----
-85
-85
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4430
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) - + + 5 - + - 38 AS col0 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-4430
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) - + + 5 - + - 38 AS col0 FROM tab1 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT - ( + - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4431
SELECT - ( + - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + 89 AS col1 FROM tab0 AS cor0
----
-89

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col2 * + + ( - + 76 ) + - - col1 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * + col2 - + + 94 + - col0 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 56 AS col1, 6 col2 FROM tab1
----
56
6

query II rowsort
SELECT ALL col2 AS col1, - col1 AS col2 FROM tab2
----
23
-51
40
-77
58
-67

query II rowsort
SELECT - - col0 AS col2, + 45 AS col1 FROM tab0 AS cor0
----
15
45
87
45
97
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT ALL + + MAX( + 30 ) AS col1 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL + + MAX ( + 30 ) AS col1 FROM tab1 AS cor0
----
30

query I rowsort
SELECT ALL - 8 * + + col0 AS col0 FROM tab1
----
-408
-680
-728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4440
SELECT + col1 * - CAST( 28 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1428
-1876
-2156

skipif mysql # not compatible
query I rowsort label-4440
SELECT + col1 * - CAST ( 28 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1428
-1876
-2156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4441
SELECT DISTINCT + 11 DIV + SUM( ALL col1 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT + 11 / + SUM ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4442
SELECT col1 DIV + - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4442
SELECT col1 / + - col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 82 col0 FROM tab0 AS cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT 23 * MIN( ALL - - col2 ) + + MAX( col0 ) AS col1 FROM tab1 AS cor0
----
1448

skipif mysql # not compatible
query I rowsort label-4444
SELECT 23 * MIN ( ALL - - col2 ) + + MAX ( col0 ) AS col1 FROM tab1 AS cor0
----
1448

query III rowsort
SELECT * FROM tab0 WHERE + col2 + + col1 < NULL
----

query I rowsort
SELECT DISTINCT col0 + + 38 AS col1 FROM tab0
----
125
135
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT ALL COUNT( * ) + - - ( - - 18 ) AS col1 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL COUNT ( * ) + - - ( - - 18 ) AS col1 FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT - ( + - COUNT( * ) ) + + - SUM( DISTINCT 20 ) FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-4448
SELECT - ( + - COUNT ( * ) ) + + - SUM ( DISTINCT 20 ) FROM tab0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT DISTINCT - COUNT( * ) + + + COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT - COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4450
SELECT ALL * FROM tab1 WHERE NOT CAST( col1 AS DECIMAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4450
SELECT ALL * FROM tab1 WHERE NOT CAST ( col1 AS REAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT + COUNT( * ) + - ( - 94 ) + - ( SUM( col1 ) ) * + COUNT( - 82 ) FROM tab1
----
-101

skipif mysql # not compatible
query I rowsort label-4451
SELECT + COUNT ( * ) + - ( - 94 ) + - ( SUM ( col1 ) ) * + COUNT ( - 82 ) FROM tab1
----
-101

query I rowsort
SELECT col1 + - ( + - 89 ) FROM tab2 WHERE + col1 + 17 IS NOT NULL
----
140
156
166

query I rowsort
SELECT + col2 + - 61 FROM tab2
----
-21
-3
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT ALL + SUM( - - 85 ) AS col1 FROM tab0 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL + SUM ( - - 85 ) AS col1 FROM tab0 AS cor0
----
255

query II rowsort
SELECT DISTINCT - col0 AS col1, 2 AS col0 FROM tab2 AS cor0
----
-46
2
-64
2
-75
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4456
SELECT + CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4456
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT 22 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
22

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 / + 39 )
----

query I rowsort
SELECT ALL + col0 * col0 / + ( col0 ) AS col0 FROM tab1 cor0 WHERE + col0 NOT BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 43, 95 col0 FROM tab0 AS cor0
----
43
95
43
95
43
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT DISTINCT + + ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4461
SELECT DISTINCT + + ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - ( 26 ) FROM tab0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4463
SELECT DISTINCT CAST( - col2 AS SIGNED ) * + - col2 AS col2 FROM tab2
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-4463
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * + - col2 AS col2 FROM tab2
----
1600
3364
529

query I rowsort
SELECT col0 * + 88 * + 23 AS col1 FROM tab0
----
176088
196328
30360

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT 40 * + MAX( + - 64 ) AS col2 FROM tab1
----
-2560

skipif mysql # not compatible
query I rowsort label-4465
SELECT 40 * + MAX ( + - 64 ) AS col2 FROM tab1
----
-2560

query I rowsort
SELECT 15 AS col1 FROM tab0 WHERE NOT + + 93 IS NULL
----
15
15
15

query I rowsort
SELECT + ( - - col1 ) * + col1 * + col2 FROM tab0
----
308367
4410
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 col1 FROM tab0 AS cor0
----
34
34
34

onlyif mysql # aggregate syntax: 
query II rowsort label-4469
SELECT ( 4 ), - COUNT( * ) col0 FROM tab1 AS cor0
----
4
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4469
SELECT ( 4 ), - COUNT ( * ) col0 FROM tab1 AS cor0
----
4
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4470
SELECT DISTINCT ( + - col1 ) DIV + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT ( + - col1 ) / + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1

query I rowsort
SELECT - + 90 * + col0 * - - col1 - - + col1 AS col1 FROM tab1 AS cor0
----
-38245
-384883
-64246

query II rowsort
SELECT DISTINCT ( - col2 ) * + 17 AS col1, - col2 AS col0 FROM tab1 cor0
----
-1003
-59
-1156
-68
-1632
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * + col2 >= + col2 * col2 + - 24 * - col1 * col0
----

query I rowsort
SELECT ALL + ( 35 ) FROM tab1 cor0
----
35
35
35

query I rowsort
SELECT + - 21 * + col0 FROM tab1 AS cor0
----
-1071
-1785
-1911

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT - MAX( col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4476
SELECT - MAX ( col2 ) AS col1 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT COUNT( * ) + + + MAX( DISTINCT - col0 ) AS col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN + col2 AND col1 * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4477
SELECT COUNT ( * ) + + + MAX ( DISTINCT - col0 ) AS col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN + col2 AND col1 * 12
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4478
SELECT SUM( + ( - CAST( - col0 AS SIGNED ) ) ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4478
SELECT SUM ( + ( - CAST ( - col0 AS INTEGER ) ) ) AS col2 FROM tab2 AS cor0
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT 8 / + col2 IS NOT NULL )
----

query I rowsort
SELECT ALL col0 + 67 FROM tab0
----
154
164
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT 37 - - + 94 + COUNT( * ) FROM tab0 AS cor0
----
134

skipif mysql # not compatible
query I rowsort label-4482
SELECT 37 - - + 94 + COUNT ( * ) FROM tab0 AS cor0
----
134

query I rowsort
SELECT ALL col1 * - col1 * - - 51 AS col2 FROM tab0 AS cor0
----
-22491
-334611
-51

query I rowsort
SELECT 88 + - - col1 FROM tab1 AS cor0
----
102
135
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4485
SELECT + + 81 DIV + col1 + - col0 AS col0 FROM tab0 AS cor0
----
-14
-16
-84

skipif mysql # not compatible
query I rowsort label-4485
SELECT + + 81 / + col1 + - col0 AS col0 FROM tab0 AS cor0
----
-14
-16
-84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 IN ( col0 + 12, + 71, - 9 - - + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <= - 84
----

query II rowsort
SELECT - 65 AS col0, 31 FROM tab2 AS cor0
----
-65
31
-65
31
-65
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT - + COUNT( DISTINCT + 21 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4489
SELECT - + COUNT ( DISTINCT + 21 ) FROM tab1 AS cor0
----
-1

query II rowsort
SELECT DISTINCT 0 AS col1, + col2 FROM tab0 AS cor0
----
0
10
0
47
0
99

query I rowsort
SELECT ALL + - col1 * - col1 + - 29 FROM tab1 AS cor0
----
-4
167
2180

query I rowsort
SELECT DISTINCT - 16 * - + col0 AS col2 FROM tab1 AS cor0
----
1360
1456
816

query II rowsort
SELECT + 21 AS col0, col1 + + col1 AS col1 FROM tab0 AS cor0
----
21
162
21
2
21
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col0 + + col0 col1 FROM tab1
----
51
102
85
170
91
182

query I rowsort
SELECT DISTINCT - 46 AS col1 FROM tab1 WHERE NOT + col1 NOT BETWEEN NULL AND - - 56
----

query I rowsort
SELECT ( + 78 ) * - col1 AS col0 FROM tab0
----
-1638
-6318
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT DISTINCT - MAX( + - 62 ) FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT - MAX ( + - 62 ) FROM tab2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT - + SUM( DISTINCT - col0 ) AS col1 FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-4498
SELECT - + SUM ( DISTINCT - col0 ) AS col1 FROM tab0 cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4499
SELECT - CAST( NULL AS SIGNED ) AS col0, - col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-4499
SELECT - CAST ( NULL AS INTEGER ) AS col0, - col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4500
SELECT CAST( - - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4500
SELECT CAST ( - - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 col0 FROM tab2 AS cor0
----
24

query I rowsort
SELECT ALL + 82 AS col1 FROM tab1 cor0
----
82
82
82

query I rowsort
SELECT DISTINCT + ( + + 62 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
81

skipif mysql # not compatible
query I rowsort label-4504
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
81

query I rowsort
SELECT DISTINCT + - 6 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-6

query I rowsort
SELECT 47 * - 7 AS col1 FROM tab2
----
-329
-329
-329

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4507
SELECT ALL + col2 FROM tab2 AS cor0 WHERE col2 <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL + col2 FROM tab2 AS cor0 WHERE col2 <> + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 54 + - col0 FROM tab2 AS cor0 WHERE NULL <> ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT COUNT( DISTINCT + col0 ) * - 20 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-4509
SELECT COUNT ( DISTINCT + col0 ) * - 20 FROM tab2 AS cor0
----
-60

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE ( + + col2 ) IN ( + col2 * - col1 + - + col1 * + + col2 * + + col1, 31 + - col2 * - col1, - 96 * + col1 * + 76, col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col1 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT + 10 + + 85 FROM tab0 AS cor0
----
95
95
95

onlyif mysql # aggregate syntax: 
query II rowsort label-4513
SELECT DISTINCT + COUNT( * ) * + 66 AS col0, SUM( + 81 ) + - + 76 AS col1 FROM tab2 AS cor0
----
198
167

skipif mysql # not compatible
query II rowsort label-4513
SELECT DISTINCT + COUNT ( * ) * + 66 AS col0, SUM ( + 81 ) + - + 76 AS col1 FROM tab2 AS cor0
----
198
167

query I rowsort
SELECT ALL - 64 + + 15 * + + 7 AS col2 FROM tab1 cor0
----
41
41
41

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = - col1
----

query II rowsort
SELECT ALL + col2, + 89 * + col0 FROM tab1
----
59
7565
68
8099
96
4539

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT DISTINCT MIN( ALL + col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4517
SELECT DISTINCT MIN ( ALL + col0 ) AS col2 FROM tab0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4518
SELECT ALL - col0 + col1 + + 0 DIV + col2 AS col1 FROM tab0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL - col0 + col1 + + 0 / + col2 AS col1 FROM tab0
----
-66
-96
66

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 - 67 + col1 + - col0 IS NULL
----

query II rowsort
SELECT + 91 AS col2, + 14 AS col2 FROM tab0
----
91
14
91
14
91
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT DISTINCT MIN( ( col2 ) ) - - 2 AS col0 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-4521
SELECT DISTINCT MIN ( ( col2 ) ) - - 2 AS col0 FROM tab0
----
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4522
SELECT ALL + + col1 FROM tab0 AS cor0 WHERE - col0 / + CAST( col0 AS DECIMAL ) * + col2 < NULL
----

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL + + col1 FROM tab0 AS cor0 WHERE - col0 / + CAST ( col0 AS REAL ) * + col2 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4523
SELECT ALL - - ( - col2 ) * - - 88 * CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4523
SELECT ALL - - ( - col2 ) * - - 88 * CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 - col1 + + col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT - col2 * + 74 AS col1 FROM tab1
----
-4366
-5032
-7104

query I rowsort
SELECT DISTINCT + 49 * - + col2 AS col2 FROM tab1 AS cor0
----
-2891
-3332
-4704

onlyif mysql # DIV for integer division: 
query I rowsort label-4527
SELECT ALL - col1 DIV - - ( + - 22 ) AS col1 FROM tab2 AS cor0
----
2
3
3

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL - col1 / - - ( + - 22 ) AS col1 FROM tab2 AS cor0
----
2
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 99 col2 FROM tab1 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4529
SELECT DISTINCT col0 DIV 21 DIV + - col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT col0 / 21 / + - col2 FROM tab0
----
0

query I rowsort
SELECT + col2 * 45 AS col1 FROM tab0
----
2115
4455
450

query I rowsort
SELECT 81 * + ( col2 ) AS col1 FROM tab2
----
1863
3240
4698

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT DISTINCT MAX( DISTINCT - + 48 ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT MAX ( DISTINCT - + 48 ) FROM tab2
----
-48

query II rowsort
SELECT ALL + - col0, + col0 AS col2 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4534
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) * + col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4534
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) * + col2 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4535
SELECT DISTINCT + COUNT( * ) + + MIN( - - ( col1 ) ) AS col1, + 56 AS col1 FROM tab0
----
4
56

skipif mysql # not compatible
query II rowsort label-4535
SELECT DISTINCT + COUNT ( * ) + + MIN ( - - ( col1 ) ) AS col1, + 56 AS col1 FROM tab0
----
4
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4536
SELECT * FROM tab1 WHERE ( col0 ) IS NOT NULL AND NULL <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4536
SELECT * FROM tab1 WHERE ( col0 ) IS NOT NULL AND NULL <= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 90 * + col1 + - 7 AS col1 FROM tab2
----
4583
6023
6923

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( 70 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4539
SELECT + 4 DIV 28 * - col2 + CAST( + + 71 AS SIGNED ) FROM tab2
----
71
71
71

skipif mysql # not compatible
query I rowsort label-4539
SELECT + 4 / 28 * - col2 + CAST ( + + 71 AS INTEGER ) FROM tab2
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4540
SELECT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) / - 81 > CAST( col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4540
SELECT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) / - 81 > CAST ( col1 AS REAL )
----

query I rowsort
SELECT ALL + - 42 + - + col1 AS col1 FROM tab0 AS cor0
----
-123
-43
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 29 AS col2, - col2 col1 FROM tab2 AS cor0
----
-29
-23
-29
-40
-29
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT DISTINCT + ( - + 6 ) + + + 91 * - + COUNT( * ) + + MIN( - col2 ) + + COUNT( * ) AS col2 FROM tab0 cor0
----
-375

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT + ( - + 6 ) + + + 91 * - + COUNT ( * ) + + MIN ( - col2 ) + + COUNT ( * ) AS col2 FROM tab0 cor0
----
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT DISTINCT - - MAX( - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4544
SELECT DISTINCT - - MAX ( - col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4545
SELECT + col1 * + - 89 * + col0 + + CAST( NULL AS SIGNED ) + 87 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4545
SELECT + col1 * + - 89 * + col0 + + CAST ( NULL AS INTEGER ) + 87 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + - col1 ) * + + col1 + col2 * ( + 34 ) FROM tab0 cor0
----
3367
781
8159

query I rowsort
SELECT DISTINCT - col2 * - col0 * - ( - col0 ) AS col0 FROM tab1 AS cor0
----
249696
426275
563108

query I rowsort
SELECT col2 * - col0 * + 63 AS col2 FROM tab1 AS cor0
----
-308448
-315945
-389844

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query II rowsort
SELECT DISTINCT - 95 AS col0, + col2 FROM tab2 AS cor0
----
-95
23
-95
40
-95
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4551
SELECT 6 * - SUM( DISTINCT + - col1 ) * ( + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) ) + - CAST( + MIN( - + 17 ) AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4551
SELECT 6 * - SUM ( DISTINCT + - col1 ) * ( + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) + - CAST ( + MIN ( - + 17 ) AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 41 + col2 * - 60 AS col2 FROM tab1
----
-3581
-4121
-5801

onlyif mysql # DIV for integer division: 
query II rowsort label-4553
SELECT DISTINCT 85 DIV col1 + - 18, col0 AS col1 FROM tab1
----
-1
85
-12
51
-17
91

skipif mysql # not compatible
query II rowsort label-4553
SELECT DISTINCT 85 / col1 + - 18, col0 AS col1 FROM tab1
----
-1
85
-12
51
-17
91

query I rowsort
SELECT ALL - + col2 + + col1 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + col2 / col0 * col2 + - + col1 FROM tab2 WHERE - 62 NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT col2 * col1 FROM tab2 WHERE - + 69 * - col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4557
SELECT DISTINCT + 79 + + CAST( NULL AS SIGNED ), col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-4557
SELECT DISTINCT + 79 + + CAST ( NULL AS INTEGER ), col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT ALL - 61 - + COUNT( * ) col1 FROM tab0 cor0
----
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4558
SELECT ALL - 61 - + COUNT ( * ) col1 FROM tab0 cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT - COUNT( * ) + - 20 FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4559
SELECT - COUNT ( * ) + - 20 FROM tab0 AS cor0
----
-23

query I rowsort
SELECT ALL + 62 AS col1 FROM tab1 cor0 WHERE NOT + 34 <= NULL
----

query I rowsort
SELECT ( - + 31 ) FROM tab1 AS cor0
----
-31
-31
-31

query I rowsort
SELECT + + col1 / + - col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT ( 82 ) AS col1 FROM tab1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT DISTINCT + COUNT( * ) * - MAX( - - 2 ) AS col2 FROM tab2 cor0 WHERE NOT col2 * + col2 * - + 8 * - col1 + - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT + COUNT ( * ) * - MAX ( - - 2 ) AS col2 FROM tab2 cor0 WHERE NOT col2 * + col2 * - + 8 * - col1 + - col0 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IS NOT NULL OR NULL >= - - col0
----

query II rowsort
SELECT - + col0 AS col2, col1 AS col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 89 = NULL
----

query II rowsort
SELECT DISTINCT + 55 AS col0, - col2 + - + col2 AS col2 FROM tab2 AS cor0
----
55
-116
55
-46
55
-80

query I rowsort
SELECT DISTINCT 39 + 82 AS col1 FROM tab0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT DISTINCT COUNT( DISTINCT + col2 ) * COUNT( * ) col2 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4570
SELECT DISTINCT COUNT ( DISTINCT + col2 ) * COUNT ( * ) col2 FROM tab0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 90 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4572
SELECT ALL - SUM( - CAST( NULL AS SIGNED ) ) + 57 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL - SUM ( - CAST ( NULL AS INTEGER ) ) + 57 AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT ALL MIN( ALL col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL MIN ( ALL col2 ) AS col0 FROM tab1
----
59

query I rowsort
SELECT + 61 + - - col1 FROM tab1
----
108
66
75

query I rowsort
SELECT DISTINCT - 77 * - + ( 10 ) FROM tab0 AS cor0
----
770

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT + COUNT( * ) + - - 24 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4577
SELECT + COUNT ( * ) + - - 24 FROM tab2 AS cor0
----
27

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col1 > ( + col1 * - + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4579
SELECT DISTINCT + + COUNT( * ) + + - CAST( NULL AS SIGNED ) * COUNT( + 62 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4579
SELECT DISTINCT + + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * COUNT ( + 62 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT col2 - + - col2 AS col2 FROM tab1
----
118
136
192

query I rowsort
SELECT DISTINCT + - ( 43 ) FROM tab1 AS cor0
----
-43

query I rowsort
SELECT - 91 + 52 FROM tab1 AS cor0
----
-39
-39
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4583
SELECT DISTINCT - + SUM( - col2 ) DIV 78 + COUNT( * ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4583
SELECT DISTINCT - + SUM ( - col2 ) / 78 + COUNT ( * ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT 29 + 89 AS col2 FROM tab1 AS cor0
----
118
118
118

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT DISTINCT + COUNT( ALL + + 71 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT + COUNT ( ALL + + 71 ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT DISTINCT + MAX( col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4586
SELECT DISTINCT + MAX ( col0 ) FROM tab1 AS cor0
----
91

query III rowsort
SELECT * FROM tab0 WHERE + + 26 BETWEEN NULL AND - col2
----

query I rowsort
SELECT DISTINCT ( - 35 ) + + col1 AS col1 FROM tab2
----
16
32
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4589
SELECT 82 * + CAST( NULL AS SIGNED ) * + - 77 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4589
SELECT 82 * + CAST ( NULL AS INTEGER ) * + - 77 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4590
SELECT - CAST( + 81 AS SIGNED ) FROM tab2
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-4590
SELECT - CAST ( + 81 AS INTEGER ) FROM tab2
----
-81
-81
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4591
SELECT COUNT( * ) AS col0, 7 FROM tab1 WHERE + col1 + - CAST( - col1 AS SIGNED ) + col1 >= NULL
----
0
7

skipif mysql # not compatible
query II rowsort label-4591
SELECT COUNT ( * ) AS col0, 7 FROM tab1 WHERE + col1 + - CAST ( - col1 AS INTEGER ) + col1 >= NULL
----
0
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT MIN( DISTINCT - ( - - col0 ) ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4592
SELECT MIN ( DISTINCT - ( - - col0 ) ) FROM tab0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4593
SELECT * FROM tab0 WHERE NOT - col2 + ( + - 53 ) + - CAST( + + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4593
SELECT * FROM tab0 WHERE NOT - col2 + ( + - 53 ) + - CAST ( + + col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT DISTINCT - - COUNT( * ) col0 FROM tab2 AS cor0 WHERE 94 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4594
SELECT DISTINCT - - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE 94 IS NULL
----
0

query II rowsort
SELECT - + 36, 49 AS col1 FROM tab1 AS cor0
----
-36
49
-36
49
-36
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT DISTINCT + COUNT( * ) * + - 9 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-4596
SELECT DISTINCT + COUNT ( * ) * + - 9 FROM tab2
----
-27

query I rowsort
SELECT ALL 14 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * + col1 + - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4599
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4599
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 87 NOT BETWEEN - col2 AND - + 42 * - ( 69 ) * + col2 + + - col1 + col2
----

query I rowsort
SELECT - - 59 FROM tab0 cor0
----
59
59
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - col2 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4603
SELECT col1 * col2 * + col1 AS col0, CAST( NULL AS SIGNED ) + + 17 + - col1 + + + 37 + - 23 * - 47 FROM tab1
----
1475
NULL
150212
NULL
18816
NULL

skipif mysql # not compatible
query II rowsort label-4603
SELECT col1 * col2 * + col1 AS col0, CAST ( NULL AS INTEGER ) + + 17 + - col1 + + + 37 + - 23 * - 47 FROM tab1
----
1475
NULL
150212
NULL
18816
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT DISTINCT COUNT( * ) * + 50 FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-4604
SELECT DISTINCT COUNT ( * ) * + 50 FROM tab2
----
150

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4605
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + + 37 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4605
SELECT DISTINCT CAST ( NULL AS REAL ) * + + 37 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT col2 - - 53 AS col0 FROM tab2 WHERE NOT NULL < ( + col0 )
----

query I rowsort
SELECT ALL - col1 + col1 * + col1 * col0 AS col2 FROM tab1
----
200972
2120
9982

onlyif mysql # DIV for integer division: 
query I rowsort label-4608
SELECT DISTINCT 24 DIV - 79 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4608
SELECT DISTINCT 24 / - 79 AS col1 FROM tab0
----
0

query II rowsort
SELECT 89 AS col0, - col2 FROM tab1
----
89
-59
89
-68
89
-96

query I rowsort
SELECT ALL - col2 * - + col0 * + - 48 * - - col1 FROM tab2
----
-13989600
-2589984
-9461760

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT COUNT( DISTINCT - 18 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4611
SELECT COUNT ( DISTINCT - 18 ) FROM tab2
----
1

query I rowsort
SELECT - 78 AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT DISTINCT - 3 * - COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4613
SELECT DISTINCT - 3 * - COUNT ( * ) FROM tab1
----
9

query I rowsort
SELECT DISTINCT - 36 AS col0 FROM tab0 AS cor0 WHERE NOT ( - + col1 ) BETWEEN - + 58 AND NULL
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4615
SELECT DISTINCT - col2, CAST( - 15 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
-15
-40
-15
-58
-15

skipif mysql # not compatible
query II rowsort label-4615
SELECT DISTINCT - col2, CAST ( - 15 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
-15
-40
-15
-58
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT 16 + COUNT( * ) + + ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-4616
SELECT 16 + COUNT ( * ) + + ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
22

query I rowsort
SELECT ALL + ( + + 1 ) + + + 97 * col2 - - col1 * col2 AS col0 FROM tab0 AS cor0
----
1181
8367
9703

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE ( 47 IS NULL )
----

query I rowsort
SELECT + col1 + + 54 FROM tab1
----
101
59
68

query I rowsort
SELECT col0 + - ( + 65 ) + + col2 + - - 46 AS col1 FROM tab0
----
177
43
78

query I rowsort
SELECT DISTINCT col0 - + - 30 AS col2 FROM tab0
----
117
127
45

query I rowsort
SELECT DISTINCT col2 - + col1 + - 80 FROM tab1 AS cor0
----
-26
-59
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT ALL + + COUNT( * ) + 16 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL + + COUNT ( * ) + 16 FROM tab2 AS cor0
----
19

query I rowsort
SELECT - - 27 * + 28 FROM tab2 AS cor0
----
756
756
756

onlyif mysql # DIV for integer division: 
query II rowsort label-4625
SELECT ALL + col1 - + col1 col1, col2 + + col2 DIV 90 * - ( - - col0 ) FROM tab1 AS cor0
----
0
45
0
59
0
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4625
SELECT ALL + col1 - + col1 col1, col2 + + col2 / 90 * - ( - - col0 ) FROM tab1 AS cor0
----
0
45
0
59
0
68

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE - col0 + + + 84 * - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4627
SELECT + - 1 DIV + - ( + col0 ) - col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4627
SELECT + - 1 / + - ( + col0 ) - col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4628
SELECT ALL + CAST( col1 AS SIGNED ) AS col2, 18 FROM tab1 AS cor0
----
14
18
47
18
5
18

skipif mysql # not compatible
query II rowsort label-4628
SELECT ALL + CAST ( col1 AS INTEGER ) AS col2, 18 FROM tab1 AS cor0
----
14
18
47
18
5
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT DISTINCT MIN( ALL col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT MIN ( ALL col1 ) AS col2 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT DISTINCT - 68 + - - MIN( + + col1 ) * - SUM( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-1203

skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT - 68 + - - MIN ( + + col1 ) * - SUM ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-1203

query I rowsort
SELECT - col1 - 68 AS col1 FROM tab2
----
-119
-135
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT + 76 - - - COUNT( * ) AS col0 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-4632
SELECT + 76 - - - COUNT ( * ) AS col0 FROM tab2
----
73

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT - COUNT( ALL + col0 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4634
SELECT - COUNT ( ALL + col0 ) AS col2 FROM tab2
----
-3

query II rowsort
SELECT DISTINCT - + col0 AS col0, 44 FROM tab0 AS cor0
----
-15
44
-87
44
-97
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 - col0 + - 54 + + + col1 + + + ( - col1 ) * - - ( + - col2 ) + + col0 * - - col1 + - col1 + - - 78 * + 4 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3774
8245
9137

onlyif mysql # aggregate syntax: 
query II rowsort label-4637
SELECT + + 41 AS col2, COUNT( * ) * + + 12 FROM tab2 AS cor0
----
41
36

skipif mysql # not compatible
query II rowsort label-4637
SELECT + + 41 AS col2, COUNT ( * ) * + + 12 FROM tab2 AS cor0
----
41
36

query I rowsort
SELECT ALL 41 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 91 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT DISTINCT - SUM( ALL - col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4640
SELECT DISTINCT - SUM ( ALL - col2 ) FROM tab0
----
156

query II rowsort
SELECT DISTINCT - - col2 AS col0, col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT ALL - ( - 8 ) FROM tab1 AS cor0
----
8
8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, - 67 * 48 * + 60 col1 FROM tab0 AS cor0
----
-1
-192960
-21
-192960
-81
-192960

query I rowsort
SELECT + col1 * + + 62 * - + 46 FROM tab1 AS cor0
----
-134044
-14260
-39928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4645
SELECT - ( + COUNT( * ) ) * - - CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4645
SELECT - ( + COUNT ( * ) ) * - - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT DISTINCT + MIN( 13 ) AS col2 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT + MIN ( 13 ) AS col2 FROM tab2 AS cor0
----
13

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + ( + 37 ) * col2 * - 43 + + 34 + - ( + 97 ) * + 88 * + col2 BETWEEN - + 67 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT ALL - COUNT( col1 ) + + COUNT( - - col1 ) AS col1 FROM tab0 AS cor0 WHERE + 52 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL - COUNT ( col1 ) + + COUNT ( - - col1 ) AS col1 FROM tab0 AS cor0 WHERE + 52 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT ALL COUNT( * ) + + COUNT( * ) + - 83 FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL COUNT ( * ) + + COUNT ( * ) + - 83 FROM tab0
----
-77

query III rowsort
SELECT * FROM tab2 WHERE - col1 - col1 NOT BETWEEN + col1 AND + col2 * - 39
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + + 4 AS col0 FROM tab1
----
55
89
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT - 40 + - COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
-43

skipif mysql # not compatible
query I rowsort label-4652
SELECT - 40 + - COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
-43

query I rowsort
SELECT ALL col2 * col0 FROM tab0 WHERE NOT + 23 + - col2 NOT BETWEEN NULL AND + 68
----

query I rowsort
SELECT col2 + + 43 * + - col1 FROM tab2
----
-2170
-2823
-3271

query I rowsort
SELECT ALL - ( + 66 ) + - col1 FROM tab0 AS cor0
----
-147
-67
-87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 14 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT MIN( - col1 ) * - COUNT( ALL + - 19 ) FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-4657
SELECT MIN ( - col1 ) * - COUNT ( ALL + - 19 ) FROM tab2 AS cor0
----
231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4658
SELECT - CAST( NULL AS SIGNED ) * + 60 + 49 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4658
SELECT - CAST ( NULL AS INTEGER ) * + 60 + 49 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4659
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + CAST( + + col2 AS SIGNED ) + - 69 - + col2 + - col0 + + + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4659
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + CAST ( + + col2 AS INTEGER ) + - 69 - + col2 + - col0 + + + col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT ( + + COUNT( * ) ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4660
SELECT ( + + COUNT ( * ) ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT - col0 * 53 + - ( 76 ) - col0 * - col2 FROM tab1 cor0
----
1289
2117
434

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 46 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col0 + + - 42 FROM tab1 AS cor0
----
-127
-133
-93

query I rowsort
SELECT + 59 * + 50 FROM tab2
----
2950
2950
2950

query I rowsort
SELECT + 36 AS col2 FROM tab1 WHERE NOT ( + ( + col1 ) + - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4666
SELECT ALL - COUNT( * ) / + COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4666
SELECT ALL - COUNT ( * ) / + COUNT ( * ) * + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4667
SELECT ALL 87 * - + 42 * + CAST( col1 AS SIGNED ) FROM tab0 cor0
----
-295974
-3654
-76734

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL 87 * - + 42 * + CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
-295974
-3654
-76734

query I rowsort
SELECT 60 AS col0 FROM tab0 cor0 WHERE NOT + 63 BETWEEN col2 - + + col0 AND 46
----
60
60
60

query I rowsort
SELECT 79 * + col0 AS col1 FROM tab1
----
4029
6715
7189

query I rowsort
SELECT ALL + 71 * - + ( + ( - col0 ) ) FROM tab2
----
3266
4544
5325

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT ALL - + MIN( - 7 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
7

skipif mysql # not compatible
query I rowsort label-4671
SELECT ALL - + MIN ( - 7 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
7

query I rowsort
SELECT - 23 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT + - 96 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + + col0 + - col0 * + 98
----

query II rowsort
SELECT ALL - col1 AS col0, ( + col2 ) AS col1 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT 63 AS col1 FROM tab1 cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT DISTINCT - + 45 * + 63 * + - MIN( DISTINCT - 61 ) FROM tab0 AS cor0
----
-172935

skipif mysql # not compatible
query I rowsort label-4677
SELECT DISTINCT - + 45 * + 63 * + - MIN ( DISTINCT - 61 ) FROM tab0 AS cor0
----
-172935

query I rowsort
SELECT ALL ( + 44 ) FROM tab0 AS cor0
----
44
44
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4679
SELECT ALL - CAST( NULL AS SIGNED ) + + AVG ( ALL - col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL - CAST ( NULL AS INTEGER ) + + AVG ( ALL - col1 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4680
SELECT ( CAST( + - col0 AS SIGNED ) ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4680
SELECT ( CAST ( + - col0 AS INTEGER ) ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT + - SUM( - col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4681
SELECT + - SUM ( - col1 ) AS col1 FROM tab0 AS cor0
----
103

query II rowsort
SELECT col0, - 83 AS col2 FROM tab0
----
15
-83
87
-83
97
-83

query I rowsort
SELECT + ( + 67 ) AS col0 FROM tab0
----
67
67
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4684
SELECT + 36 AS col1, COUNT( * ) AS col1 FROM tab1
----
36
3

skipif mysql # not compatible
query II rowsort label-4684
SELECT + 36 AS col1, COUNT ( * ) AS col1 FROM tab1
----
36
3

query II rowsort
SELECT DISTINCT 52 * col2 + - col1 + + 42, + col0 AS col1 FROM tab0
----
2405
15
5189
97
541
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT ALL - COUNT( * ) + - 66 AS col1 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL - COUNT ( * ) + - 66 AS col1 FROM tab0
----
-69

query I rowsort
SELECT ALL + + 60 AS col0 FROM tab2 WHERE NOT - - 20 > NULL
----

query I rowsort
SELECT 27 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + + 21 AS col2 FROM tab1
----
106
112
72

query I rowsort
SELECT DISTINCT 34 - + 13 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT DISTINCT COUNT( * ) + MAX( + 63 ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-4691
SELECT DISTINCT COUNT ( * ) + MAX ( + 63 ) FROM tab0
----
66

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 24 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT DISTINCT + COUNT( * ) + + - 64 + + MAX( + + col2 ) AS col0 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT + COUNT ( * ) + + - 64 + + MAX ( + + col2 ) AS col0 FROM tab0
----
38

query I rowsort
SELECT DISTINCT - - 91 + + - col0 FROM tab2 AS cor0
----
16
27
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4695
SELECT ALL + + CAST( NULL AS SIGNED ) * col1 * + 8 * + + 93 - + 93 + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL + + CAST ( NULL AS INTEGER ) * col1 * + 8 * + + 93 - + 93 + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4696
SELECT ALL - 42 * + col2 + col1 DIV - + col0 FROM tab1 AS cor0
----
-2478
-2856
-4032

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL - 42 * + col2 + col1 / - + col0 FROM tab1 AS cor0
----
-2478
-2856
-4032

query I rowsort
SELECT DISTINCT + col2 * 30 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 68 AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 52 IS NOT NULL
----

query II rowsort
SELECT col0 * - col0 * + col1 AS col1, + col2 AS col2 FROM tab1
----
-36125
59
-36414
96
-389207
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4700
SELECT + 84 * + - CAST( NULL AS SIGNED ) * + 42 * - COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4700
SELECT + 84 * + - CAST ( NULL AS INTEGER ) * + 42 * - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - ( - col2 ) * col1 FROM tab1
----
1344
295
3196

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col0 + 64 * + + col1 * + col0 BETWEEN NULL AND col2 + 26 * 93 / - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 col1 FROM tab0 cor0
----
-71
-71
-71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4704
SELECT ALL * FROM tab1 WHERE - col0 / CAST( NULL AS SIGNED ) <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4704
SELECT ALL * FROM tab1 WHERE - col0 / CAST ( NULL AS INTEGER ) <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN ( NULL ) AND ( + 55 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT DISTINCT 66 + - COUNT( * ) AS col1 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-4706
SELECT DISTINCT 66 + - COUNT ( * ) AS col1 FROM tab1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4707
SELECT col1 / CAST( - 67 / - 18 AS SIGNED ) col1 FROM tab0 WHERE NOT 78 + CAST( NULL AS SIGNED ) IN ( + col2 * col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4707
SELECT col1 / CAST ( - 67 / - 18 AS INTEGER ) col1 FROM tab0 WHERE NOT 78 + CAST ( NULL AS INTEGER ) IN ( + col2 * col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 70 NOT BETWEEN + col1 AND - 40
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + + 0 AS col2 FROM tab2
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col0 col2 FROM tab2
----
104
133
69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + 15 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT + SUM( DISTINCT 30 ) AS col2 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-4712
SELECT + SUM ( DISTINCT 30 ) AS col2 FROM tab0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4713
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4713
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( 53 ) AS col0 FROM tab2
----
53
53
53

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE NOT col2 NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT DISTINCT SUM( - 43 ) col2 FROM tab0
----
-129

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4716
SELECT DISTINCT SUM ( - 43 ) col2 FROM tab0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT + 80 * - 42 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4717
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT + 80 * - 42 > NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 72 + + col2 ) = col2 / + 83
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 20 + col1 AS col2 FROM tab0
----
-19
1
61

query III rowsort
SELECT ALL * FROM tab0 WHERE + 76 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT ALL + COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT - 10 + - COUNT( * ) AS col2 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-4722
SELECT - 10 + - COUNT ( * ) AS col2 FROM tab1
----
-13

query I rowsort
SELECT - 94 * + col2 AS col1 FROM tab1
----
-5546
-6392
-9024

query I rowsort
SELECT + 84 * col1 FROM tab0
----
1764
6804
84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) BETWEEN ( + 61 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4726
SELECT DISTINCT col0 FROM tab0 WHERE NULL IN ( 6 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT col0 FROM tab0 WHERE NULL IN ( 6 + + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + col2 * 78 FROM tab1
----
4602
5304
7488

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + col1 * + col0 )
----

query I rowsort
SELECT col0 * 38 AS col2 FROM tab0
----
3306
3686
570

query I rowsort
SELECT DISTINCT col0 * - 64 FROM tab0
----
-5568
-6208
-960

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 ) > ( 74 * + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NULL <> ( 8 )
----

query I rowsort
SELECT ALL + 36 FROM tab1 WHERE NOT 83 = NULL
----

query I rowsort
SELECT 91 * + col0 AS col0 FROM tab1 AS cor0
----
4641
7735
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE - 40 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4735
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE - 40 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col2 * col2 + - col1 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT ALL - COUNT( * ) * SUM( - 48 ) AS col0 FROM tab0
----
432

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL - COUNT ( * ) * SUM ( - 48 ) AS col0 FROM tab0
----
432

query I rowsort
SELECT ALL - + 16 * col0 FROM tab2 AS cor0
----
-1024
-1200
-736

query I rowsort
SELECT ALL + - col0 * + ( + 69 ) AS col2 FROM tab0 cor0
----
-1035
-6003
-6693

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT DISTINCT COUNT( - 31 ) * ( COUNT( * ) ) FROM tab1 AS cor0 WHERE 5 + col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT COUNT ( - 31 ) * ( COUNT ( * ) ) FROM tab1 AS cor0 WHERE 5 + col1 > NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 col1 FROM tab2 AS cor0 WHERE NOT ( 3 * + 18 ) BETWEEN NULL AND - 16 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT ALL - 86 + COUNT( * ) FROM tab0 AS cor0 WHERE - 63 - col0 * col2 <> col2 * - col1
----
-83

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL - 86 + COUNT ( * ) FROM tab0 AS cor0 WHERE - 63 - col0 * col2 <> col2 * - col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT ALL SUM( - col2 ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL SUM ( - col2 ) AS col2 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NULL BETWEEN 20 AND ( NULL )
----

query I rowsort
SELECT 24 AS col0 FROM tab0 WHERE NOT ( col1 ) > ( NULL )
----

query I rowsort
SELECT 8 * - + 12 AS col0 FROM tab1
----
-96
-96
-96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 47 * - + 75 * - 89 AS col0 FROM tab0
----
313725
313725
313725

query I rowsort
SELECT DISTINCT 84 FROM tab1 WHERE 31 - col1 * + 0 NOT BETWEEN col0 + 53 AND ( col1 * - col2 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT - MIN( DISTINCT + col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4751
SELECT - MIN ( DISTINCT + col0 ) AS col0 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT DISTINCT 45 * + MIN( DISTINCT 34 ) AS col2 FROM tab1
----
1530

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT 45 * + MIN ( DISTINCT 34 ) AS col2 FROM tab1
----
1530

query I rowsort
SELECT DISTINCT ( - col0 ) FROM tab1 WHERE NOT col2 + + col2 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT ALL - ( ( - COUNT( * ) ) ) * 11 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-4754
SELECT ALL - ( ( - COUNT ( * ) ) ) * 11 FROM tab1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT DISTINCT COUNT( * ) * - + 84 FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-4755
SELECT DISTINCT COUNT ( * ) * - + 84 FROM tab1
----
-252

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 82 * 37 IS NOT NULL
----

query I rowsort
SELECT ALL + + 91 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query III rowsort
SELECT * FROM tab1 WHERE - + col2 > - col1
----

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 93 col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE NOT - 87 BETWEEN - col0 * 93 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT DISTINCT - ( + SUM( DISTINCT - col2 ) ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4763
SELECT DISTINCT - ( + SUM ( DISTINCT - col2 ) ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4764
SELECT ALL ( + + COUNT( col2 ) ) DIV - COUNT( * ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL ( + + COUNT ( col2 ) ) / - COUNT ( * ) FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4765
SELECT 45 DIV + col2 * + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4765
SELECT 45 / + col2 * + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT ALL + - col0, col0 AS col2 FROM tab2 cor0
----
-46
46
-64
64
-75
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4767
SELECT - CAST( NULL AS SIGNED ) AS col2, + col0 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
-425
NULL
-4277
NULL
-714

skipif mysql # not compatible
query II rowsort label-4767
SELECT - CAST ( NULL AS INTEGER ) AS col2, + col0 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
-425
NULL
-4277
NULL
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT + - 3 * + COUNT( * ) * + MAX( ALL + col0 ) + 63 FROM tab1 cor0
----
-756

skipif mysql # not compatible
query I rowsort label-4768
SELECT + - 3 * + COUNT ( * ) * + MAX ( ALL + col0 ) + 63 FROM tab1 cor0
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT DISTINCT MAX( col1 ) FROM tab0 WHERE NOT - ( 76 ) / - 83 + col0 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT MAX ( col1 ) FROM tab0 WHERE NOT - ( 76 ) / - 83 + col0 <= NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 + + 50 AS col1 FROM tab1
----
101
135
141

query III rowsort
SELECT * FROM tab2 WHERE + 11 < col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 - + + 24 FROM tab0
----
-105
-25
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT DISTINCT COUNT( * ) - - MAX( col0 ) AS col0 FROM tab0 WHERE + 1 IS NOT NULL AND - 98 * col0 >= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4773
SELECT DISTINCT COUNT ( * ) - - MAX ( col0 ) AS col0 FROM tab0 WHERE + 1 IS NOT NULL AND - 98 * col0 >= col2
----
NULL

query I rowsort
SELECT ALL + col0 - - - col1 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT - - col1 + - - col2 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - 69 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4776
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - 69 IS NULL
----
0

query I rowsort
SELECT DISTINCT 91 - + col1 AS col2 FROM tab1 AS cor0
----
44
77
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IN ( + + 50 )
----
0

skipif mysql # not compatible
query I rowsort label-4778
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IN ( + + 50 )
----
0

query I rowsort
SELECT DISTINCT - col2 * 84 * + - col2 + - + 12 FROM tab2 AS cor0
----
134388
282564
44424

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT DISTINCT SUM( + ( + col0 ) ) col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4780
SELECT DISTINCT SUM ( + ( + col0 ) ) col0 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT - SUM( ALL 77 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-693

skipif mysql # not compatible
query I rowsort label-4781
SELECT - SUM ( ALL 77 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT COUNT( DISTINCT - 91 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4782
SELECT COUNT ( DISTINCT - 91 ) FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4783
SELECT ALL + CAST( + - col2 AS SIGNED ) FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL + CAST ( + - col2 AS INTEGER ) FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL col0 * col2 * - ( - - col2 ) FROM tab2
----
-102400
-24334
-252300

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NOT ( - 87 ) BETWEEN ( col1 * - col2 + col2 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + ( - col1 ) * + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 ) NOT IN ( - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col2 ) < ( 78 * 60 + + + 66 + col1 / col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4789
SELECT DISTINCT - col0 + - CAST( + col2 AS SIGNED ) + + 2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-102
-131
-67

skipif mysql # not compatible
query I rowsort label-4789
SELECT DISTINCT - col0 + - CAST ( + col2 AS INTEGER ) + + 2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-102
-131
-67

query I rowsort
SELECT ALL ( + - col1 ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) = + 84 * + 58
----

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT col2 <> - + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4793
SELECT 75 * + col1 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 WHERE NOT - ( 94 ) + - 41 < ( - 71 )
----

skipif mysql # not compatible
query I rowsort label-4793
SELECT 75 * + col1 + + CAST ( NULL AS REAL ) AS col0 FROM tab1 WHERE NOT - ( 94 ) + - 41 < ( - 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT NULL BETWEEN + 1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4794
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT NULL BETWEEN + 1 AND NULL
----
0

query I rowsort
SELECT - 72 + + 57 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

onlyif mysql # DIV for integer division: 
query I rowsort label-4796
SELECT - col1 * + + 47 + - col2 DIV + 86 FROM tab2
----
-2397
-3149
-3619

skipif mysql # not compatible
query I rowsort label-4796
SELECT - col1 * + + 47 + - col2 / + 86 FROM tab2
----
-2397
-3149
-3619

query II rowsort
SELECT DISTINCT + 0, col2 * + 77 AS col0 FROM tab2
----
0
1771
0
3080
0
4466

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + - - 84 * - 74 + - + ( - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( - + col0 ) * col1 + + 67 + col0 AS col0 FROM tab2 cor0
----
-2233
-4797
-4883

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT + COUNT( * ) + - 11 AS col0 FROM tab0 cor0 WHERE NOT col0 IS NULL
----
-8

skipif mysql # not compatible
query I rowsort label-4800
SELECT + COUNT ( * ) + - 11 AS col0 FROM tab0 cor0 WHERE NOT col0 IS NULL
----
-8

query II rowsort
SELECT col0, col2 + - col2 FROM tab0 AS cor0
----
15
0
87
0
97
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 66 - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4803
SELECT DISTINCT 85 AS col2, COUNT( * ) FROM tab1 AS cor0
----
85
3

skipif mysql # not compatible
query II rowsort label-4803
SELECT DISTINCT 85 AS col2, COUNT ( * ) FROM tab1 AS cor0
----
85
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4804
SELECT ALL 62 DIV + 5 + - col0 FROM tab2 AS cor0
----
-34
-52
-63

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL 62 / + 5 + - col0 FROM tab2 AS cor0
----
-34
-52
-63

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL col1 * - 36 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4807
SELECT 18 + - + col1 FROM tab2 WHERE 20 <= + + CAST( NULL AS SIGNED ) + + col0
----

skipif mysql # not compatible
query I rowsort label-4807
SELECT 18 + - + col1 FROM tab2 WHERE 20 <= + + CAST ( NULL AS INTEGER ) + + col0
----

query I rowsort
SELECT - 34 + + + col0 AS col0 FROM tab1
----
17
51
57

query I rowsort
SELECT ALL - col2 * 48 FROM tab1
----
-2832
-3264
-4608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4810
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) + + CAST( NULL AS SIGNED ) * + col1 * + - col0 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4810
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) * + col1 * + - col0 AS col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4811
SELECT 35 DIV col2 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4811
SELECT 35 / col2 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * - 44 + ( + col1 ) * + 60 FROM tab1 WHERE - col1 - - col0 >= col0 * + col2 * - col1 + - col0
----
-172
-2296
-3384

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4813
SELECT DISTINCT col0 - - col2 + CAST( NULL AS DECIMAL ) * + - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4813
SELECT DISTINCT col0 - - col2 + CAST ( NULL AS REAL ) * + - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4814
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-4814
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - CAST ( NULL AS INTEGER ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT - 7 + 50 * COUNT( * ) FROM tab0 cor0 WHERE NOT - ( + col2 ) * + col1 + col1 + col1 BETWEEN ( NULL ) AND ( + col1 )
----
-7

skipif mysql # not compatible
query I rowsort label-4815
SELECT - 7 + 50 * COUNT ( * ) FROM tab0 cor0 WHERE NOT - ( + col2 ) * + col1 + col1 + col1 BETWEEN ( NULL ) AND ( + col1 )
----
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-4816
SELECT DISTINCT col0 DIV 51 * + col2 * - 53 AS col1, - col1 AS col2 FROM tab0
----
-5247
-1
-530
-21
0
-81

skipif mysql # not compatible
query II rowsort label-4816
SELECT DISTINCT col0 / 51 * + col2 * - 53 AS col1, - col1 AS col2 FROM tab0
----
-5247
-1
-530
-21
0
-81

query III rowsort
SELECT * FROM tab2 WHERE NOT + 74 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT + ( + MAX( ( - - col2 ) ) ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4818
SELECT + ( + MAX ( ( - - col2 ) ) ) AS col0 FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4819
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col1 * + CAST( col0 AS SIGNED ) ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-4819
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col1 * + CAST ( col0 AS INTEGER ) ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT DISTINCT - ( - MIN( - col1 ) ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4820
SELECT DISTINCT - ( - MIN ( - col1 ) ) FROM tab1 AS cor0
----
-47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col2 * + - 64 ) BETWEEN col1 * - col2 + - - col2 + - col1 AND + + col1 * - 15 + + col2 + col0
----
64
77
40
75
67
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - 33 <> NULL
----

query I rowsort
SELECT + + ( + col1 ) * + + 99 FROM tab0 AS cor0
----
2079
8019
99

query I rowsort
SELECT DISTINCT - ( - - 25 ) FROM tab2 cor0
----
-25

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT ALL - + COUNT( * ) + - 10 AS col2 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL - + COUNT ( * ) + - 10 AS col2 FROM tab0 AS cor0
----
-13

query I rowsort
SELECT DISTINCT 6 + - col1 + - + col2 FROM tab2
----
-111
-119
-68

query I rowsort
SELECT - col0 + + col1 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + ( + 85 ) AS col1 FROM tab1
----
85
85
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4830
SELECT ALL - CAST( + + SUM( - 41 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL - CAST ( + + SUM ( - 41 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
123

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN col2 AND NULL
----

query II rowsort
SELECT DISTINCT + 80, col2 AS col0 FROM tab0 AS cor0
----
80
10
80
47
80
99

query I rowsort
SELECT - col0 + - + col2 AS col1 FROM tab1 cor0
----
-144
-147
-159

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( + col2, - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4835
SELECT col0 + - + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4835
SELECT col0 + - + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE col2 < + 42
----
87
21
10

query I rowsort
SELECT 61 + col2 FROM tab1
----
120
129
157

query I rowsort
SELECT + 99 * - 28 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4839
SELECT ALL + + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * + COUNT( - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT + CAST( - 65 AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * + COUNT ( - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT + CAST ( - 65 AS INTEGER ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL ( + 9 ) * - col2 AS col0 FROM tab2 AS cor0
----
-207
-360
-522

onlyif mysql # DIV for integer division: 
query I rowsort label-4841
SELECT - col1 DIV + + 58 col2 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4841
SELECT - col1 / + + 58 col2 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4842
SELECT ALL 15 DIV + + col1 col1 FROM tab1 AS cor0
----
0
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4842
SELECT ALL 15 / + + col1 col1 FROM tab1 AS cor0
----
0
1
3

query II rowsort
SELECT + 85 * + + 96, - col0 AS col1 FROM tab2 cor0
----
8160
-46
8160
-64
8160
-75

query I rowsort
SELECT DISTINCT - + col2 * - 51 + + col1 FROM tab1 AS cor0
----
3014
3515
4910

query II rowsort
SELECT DISTINCT + col2 AS col1, + col0 AS col2 FROM tab1 AS cor0
----
59
85
68
91
96
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 = - - col1 + + col0 * - - 40
----

query I rowsort
SELECT + 94 - - + 90 AS col1 FROM tab1 AS cor0
----
184
184
184

query I rowsort
SELECT + 92 - col0 FROM tab0
----
-5
5
77

query I rowsort
SELECT DISTINCT - col2 * + 44 FROM tab2
----
-1012
-1760
-2552

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0 WHERE NOT 81 * - 34 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4851
SELECT DISTINCT - col0 + + - col2 AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-196
NULL
-62
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-4851
SELECT DISTINCT - col0 + + - col2 AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-196
NULL
-62
NULL
-97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT - 58 + - 98 - ( - COUNT( * ) ) * COUNT( * ) * + COUNT( * ) FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-4852
SELECT - 58 + - 98 - ( - COUNT ( * ) ) * COUNT ( * ) * + COUNT ( * ) FROM tab1
----
-129

query I rowsort
SELECT DISTINCT 97 + - ( - + col0 ) FROM tab1
----
148
182
188

query III rowsort
SELECT * FROM tab1 WHERE NULL <> col1 + + 39 * + col1 + + col1 * - col2 - - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT DISTINCT + MIN( ALL + 7 ) * - 63 FROM tab0 AS cor0
----
-441

skipif mysql # not compatible
query I rowsort label-4855
SELECT DISTINCT + MIN ( ALL + 7 ) * - 63 FROM tab0 AS cor0
----
-441

query I rowsort
SELECT col0 * - 33 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT - + 45 AS col1 FROM tab1 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT ALL - + COUNT( * ) FROM tab2 WHERE NOT col1 > col1
----
-3

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL - + COUNT ( * ) FROM tab2 WHERE NOT col1 > col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4859
SELECT - col0 DIV + 19 FROM tab2
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-4859
SELECT - col0 / + 19 FROM tab2
----
-2
-3
-3

query I rowsort
SELECT DISTINCT + 59 * col0 AS col2 FROM tab0
----
5133
5723
885

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 92 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 * col2 * + + col1 - - 27 * - col2 col1 FROM tab2 AS cor0
----
28704
75920
95584

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT DISTINCT - SUM( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT - SUM ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT + 31 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 37 + - col1 + + + col0 AS col0 FROM tab1
----
0
43
7

query II rowsort
SELECT + col1 * - 1 + 12 * - col0 AS col1, - col2 AS col2 FROM tab2
----
-603
-23
-845
-40
-967
-58

query I rowsort
SELECT col1 + - + col1 + col0 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL + 19 AS col1 FROM tab2 cor0
----
19
19
19

query I rowsort
SELECT DISTINCT 46 * - - 30 AS col1 FROM tab0 cor0
----
1380

query I rowsort
SELECT DISTINCT ( col1 ) * 53 AS col1 FROM tab1 WHERE - + ( 40 ) * - - col1 IS NOT NULL
----
2491
265
742

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT - 36 - COUNT( * ) AS col0 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-4872
SELECT - 36 - COUNT ( * ) AS col0 FROM tab1
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - + 90 col0 FROM tab2
----
-136
-154
-165

query II rowsort
SELECT ALL ( + - col0 ) * - 80 AS col1, - col1 AS col0 FROM tab0 AS cor0
----
1200
-81
6960
-21
7760
-1

query I rowsort
SELECT - 2 + - + 44 AS col1 FROM tab1 AS cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT ALL SUM( + col2 ) - - COUNT( * ) FROM tab1 AS cor0
----
226

skipif mysql # not compatible
query I rowsort label-4876
SELECT ALL SUM ( + col2 ) - - COUNT ( * ) FROM tab1 AS cor0
----
226

query I rowsort
SELECT + col2 + col1 AS col2 FROM tab2 AS cor0 WHERE + 33 + - + col2 NOT BETWEEN + 45 AND NULL
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT ALL COUNT( * ) * - MAX( - col1 ) FROM tab2 cor0
----
153

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL COUNT ( * ) * - MAX ( - col1 ) FROM tab2 cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT - COUNT( ALL + ( + ( 64 ) ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4879
SELECT - COUNT ( ALL + ( + ( 64 ) ) ) FROM tab0
----
-3

query II rowsort
SELECT ALL + 28 * - - 59 AS col2, 19 * - + col2 FROM tab1
----
1652
-1121
1652
-1292
1652
-1824

query II rowsort
SELECT col2, - 86 * - + col2 FROM tab2
----
23
1978
40
3440
58
4988

query I rowsort
SELECT DISTINCT ( - + 43 ) AS col0 FROM tab1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT ALL + COUNT( * ) * + + 74 FROM tab2 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL + COUNT ( * ) * + + 74 FROM tab2 AS cor0
----
222

onlyif mysql # DIV for integer division: 
query II rowsort label-4885
SELECT ALL + + col1, + 83 DIV + col1 AS col0 FROM tab0 cor0
----
1
83
21
3
81
1

skipif mysql # not compatible
query II rowsort label-4885
SELECT ALL + + col1, + 83 / + col1 AS col0 FROM tab0 cor0
----
1
83
21
3
81
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> 34
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT ALL COUNT( * ) * + 81 AS col1 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL COUNT ( * ) * + 81 AS col1 FROM tab0
----
243

query I rowsort
SELECT - 56 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4890
SELECT - + SUM( + + 33 ) + - + COUNT( * ) DIV 82 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4890
SELECT - + SUM ( + + 33 ) + - + COUNT ( * ) / 82 FROM tab2 AS cor0
----
-99

query I rowsort
SELECT + col0 * - - col0 FROM tab0 AS cor0 WHERE NOT + ( col0 ) NOT IN ( col0, 98 * + + col0, 32 )
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT DISTINCT - MAX( - + col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4892
SELECT DISTINCT - MAX ( - + col2 ) AS col1 FROM tab0 AS cor0
----
10

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT - 62 IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT - MAX( DISTINCT + - col1 ) * - 67 AS col1 FROM tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-4894
SELECT - MAX ( DISTINCT + - col1 ) * - 67 AS col1 FROM tab0 AS cor0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT - + COUNT( * ) * + 2 col0 FROM tab0 cor0 WHERE col2 - - 85 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4895
SELECT - + COUNT ( * ) * + 2 col0 FROM tab0 cor0 WHERE col2 - - 85 IS NULL
----
0

query I rowsort
SELECT DISTINCT ( + 61 ) FROM tab1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT ALL + COUNT( + 13 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL + COUNT ( + 13 ) FROM tab0
----
3

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE + 58 IS NULL
----

query II rowsort
SELECT DISTINCT + col2 + col0 + + col2, col2 AS col0 FROM tab2
----
144
40
191
58
92
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 85 + + - col2 - - 44 col2 FROM tab1
----
108
47
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT ALL COUNT( * ) * + COUNT( * ) + COUNT( * ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL COUNT ( * ) * + COUNT ( * ) + COUNT ( * ) FROM tab1
----
12

query I rowsort
SELECT DISTINCT - col1 * + col1 + - col1 * - 40 AS col0 FROM tab0
----
-3321
39
399

query I rowsort
SELECT 74 + + col2 FROM tab1 AS cor0
----
133
142
170

onlyif mysql # DIV for integer division: 
query I rowsort label-4904
SELECT - - 58 DIV - col2 - - + col2 * col1 + - - col2 AS col0 FROM tab0 AS cor0
----
198
215
3853

skipif mysql # not compatible
query I rowsort label-4904
SELECT - - 58 / - col2 - - + col2 * col1 + - - col2 AS col0 FROM tab0 AS cor0
----
198
215
3853

query I rowsort
SELECT DISTINCT col2 + + + col0 * + 18 * - col1 * - 85 AS col1 FROM tab1 AS cor0
----
1092516
650309
6543878

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4906
SELECT DISTINCT + 96 * - + CAST( NULL AS SIGNED ) + 79 + - + 63 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4906
SELECT DISTINCT + 96 * - + CAST ( NULL AS INTEGER ) + 79 + - + 63 AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE + 75 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE + 75 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4908
SELECT - 8 + 0 FROM tab2 AS cor0 WHERE + col1 IN ( - ( ( - ( CAST( NULL AS DECIMAL ) ) ) ) * 48, col0 + - - col1, - + col2 + + 32 + + + 84 + - ( col2 ) * - + col0 - - CAST( + col0 AS SIGNED ) * 33 * col0 - col0 )
----

skipif mysql # not compatible
query I rowsort label-4908
SELECT - 8 + 0 FROM tab2 AS cor0 WHERE + col1 IN ( - ( ( - ( CAST ( NULL AS REAL ) ) ) ) * 48, col0 + - - col1, - + col2 + + 32 + + + 84 + - ( col2 ) * - + col0 - - CAST ( + col0 AS INTEGER ) * 33 * col0 - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4909
SELECT - col1 DIV + col0 + + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
22
39
58

skipif mysql # not compatible
query I rowsort label-4909
SELECT - col1 / + col0 + + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
22
39
58

query I rowsort
SELECT 78 * + col2 FROM tab0 AS cor0
----
3666
7722
780

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 < + + col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4913
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col1 * - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4913
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col1 * - CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT + 41 * + col1 FROM tab0 AS cor0
----
3321
41
861

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + - 42 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( + - col1 ) AS col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT ALL + SUM( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL + SUM ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT ALL + - col0 AS col2 FROM tab2 WHERE NOT - 76 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT 72 * COUNT( * ) * + 53 FROM tab1 AS cor0
----
11448

skipif mysql # not compatible
query I rowsort label-4919
SELECT 72 * COUNT ( * ) * + 53 FROM tab1 AS cor0
----
11448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 AS col2, col0 col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT 6 * - 34 AS col0 FROM tab1 AS cor0
----
-204
-204
-204

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + - col2 + + + 15 + - col1 + 40 * - 98 * - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT - 65 * - COUNT( DISTINCT + col0 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4923
SELECT - 65 * - COUNT ( DISTINCT + col0 ) FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT - COUNT( * ) * - 48 AS col2 FROM tab0 cor0
----
144

skipif mysql # not compatible
query I rowsort label-4924
SELECT - COUNT ( * ) * - 48 AS col2 FROM tab0 cor0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT + - MAX( col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4925
SELECT + - MAX ( col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4926
SELECT DISTINCT + ( CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT + ( CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 55 + 98 FROM tab0 cor0 WHERE 93 > col2
----
153

query II rowsort
SELECT col1 + - col1, + col1 * + + ( + col1 ) - + - col1 AS col1 FROM tab2 AS cor0
----
0
2652
0
4556
0
6006

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 / + 91 >= col2
----

query I rowsort
SELECT ALL - ( col0 ) + col0 + - - col0 - + col1 * + col0 FROM tab0
----
-1200
-1740
0

query I rowsort
SELECT ALL - 92 + 30 * + + col2 - - col0 + + + col2 + + + col1 FROM tab0
----
1461
3075
326

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4932
SELECT * FROM tab2 AS cor0 WHERE ( + col1 * - col0 + + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4932
SELECT * FROM tab2 AS cor0 WHERE ( + col1 * - col0 + + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT + - col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4934
SELECT + col1 - + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4934
SELECT + col1 - + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + 86 + + 80 FROM tab2
----
-4306
-5682
-6542

query I rowsort
SELECT + col2 + - col0 + - - 84 FROM tab2
----
60
61
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4937
SELECT + COUNT( * ) DIV - ( - ( - ( 24 ) ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4937
SELECT + COUNT ( * ) / - ( - ( - ( 24 ) ) ) FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 AS col0, + 36 col0 FROM tab0 AS cor0
----
-15
36
-87
36
-97
36

query II rowsort
SELECT DISTINCT - - col0 AS col2, 62 FROM tab0 cor0
----
15
62
87
62
97
62

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 1 ) IS NOT NULL
----

query II rowsort
SELECT - 11, + 91 AS col1 FROM tab1 AS cor0
----
-11
91
-11
91
-11
91

query I rowsort
SELECT DISTINCT col2 * + 99 AS col0 FROM tab2
----
2277
3960
5742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4943
SELECT ( MAX( DISTINCT CAST( NULL AS DECIMAL ) ) ) FROM tab1 WHERE NOT + + col0 - - + col0 BETWEEN + - CAST( - col0 AS SIGNED ) AND - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4943
SELECT ( MAX ( DISTINCT CAST ( NULL AS REAL ) ) ) FROM tab1 WHERE NOT + + col0 - - + col0 BETWEEN + - CAST ( - col0 AS INTEGER ) AND - 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT DISTINCT ( - SUM( DISTINCT - col0 ) ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT ( - SUM ( DISTINCT - col0 ) ) AS col2 FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-4945
SELECT + MIN( - 30 ) AS col0, COUNT( * ) FROM tab0
----
-30
3

skipif mysql # not compatible
query II rowsort label-4945
SELECT + MIN ( - 30 ) AS col0, COUNT ( * ) FROM tab0
----
-30
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4946
SELECT 47 DIV - 95 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4946
SELECT 47 / - 95 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

query I rowsort
SELECT - + 72 AS col2 FROM tab0 AS cor0
----
-72
-72
-72

query II rowsort
SELECT col1, - col2 AS col1 FROM tab0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT + 99 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # DIV for integer division: 
query I rowsort label-4951
SELECT - col1 + col1 + + col2 + col0 + - 69 DIV + 93 * - + col2 AS col2 FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-4951
SELECT - col1 + col1 + + col2 + col0 + - 69 / + 93 * - + col2 AS col2 FROM tab2
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 col2 FROM tab1 cor0
----
-196
-2209
-25

query I rowsort
SELECT ALL + - 86 + - + ( - col1 ) * + + col0 * - - col1 FROM tab2 AS cor0
----
119560
336589
379370

query I rowsort
SELECT DISTINCT + col1 FROM tab0 cor0 WHERE NOT ( + col2 - ( - 13 ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( ( NOT + col0 IS NOT NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4956
SELECT - - CAST( NULL AS SIGNED ) / - col1 * + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4956
SELECT - - CAST ( NULL AS INTEGER ) / - col1 * + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col2, + 18 FROM tab1
----
59
18
68
18
96
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT 31 * MIN( DISTINCT - col1 ) col1 FROM tab2
----
-2387

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4958
SELECT 31 * MIN ( DISTINCT - col1 ) col1 FROM tab2
----
-2387

query I rowsort
SELECT - 48 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + + ( - 69 ) + col2 + - ( col1 ) * - 62 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - 26 + - - 59 AS col1, + ( - - col1 ) FROM tab1
----
33
14
33
47
33
5

query I rowsort
SELECT ALL + col2 + col0 + + 13 AS col1 FROM tab1
----
157
160
172

query I rowsort
SELECT ALL + col2 + - + ( - col1 ) AS col0 FROM tab0
----
100
128
31

query I rowsort
SELECT DISTINCT col0 + + - ( - col0 ) AS col2 FROM tab2
----
128
150
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4965
SELECT ALL - 0 * + ( - col0 ) DIV - - col0 + 70 FROM tab1 AS cor0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL - 0 * + ( - col0 ) / - - col0 + 70 FROM tab1 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4966
SELECT + 83 DIV + COUNT( DISTINCT + col0 ) + 64 AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4966
SELECT + 83 / + COUNT ( DISTINCT + col0 ) + 64 AS col2 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT ALL + SUM( - 62 ) * + ( ( - + 89 ) ) * + 65 - 82 * + 33 + - COUNT( * ) * 84 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
1072548

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL + SUM ( - 62 ) * + ( ( - + 89 ) ) * + 65 - 82 * + 33 + - COUNT ( * ) * 84 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
1072548

query I rowsort
SELECT 69 + + 55 AS col2 FROM tab0 AS cor0
----
124
124
124

query I rowsort
SELECT DISTINCT - col1 * ( + col0 ) AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT + COUNT( * ) * 41 FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-4970
SELECT + COUNT ( * ) * 41 FROM tab0 AS cor0
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-4971
SELECT ALL + 3 DIV col1 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4971
SELECT ALL + 3 / col1 col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT + - 35 * COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 28 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4972
SELECT + - 35 * COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 28 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT DISTINCT SUM( ALL - ( + 18 ) ) AS col1 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4973
SELECT DISTINCT SUM ( ALL - ( + 18 ) ) AS col1 FROM tab1 AS cor0
----
-54

query I rowsort
SELECT + ( + 81 ) FROM tab2 AS cor0
----
81
81
81

query II rowsort
SELECT ALL ( + col0 ) AS col1, - ( - 63 ) AS col0 FROM tab2 AS cor0
----
46
63
64
63
75
63

query I rowsort
SELECT ALL - ( col0 ) * - 56 FROM tab2 AS cor0
----
2576
3584
4200

onlyif mysql # DIV for integer division: 
query I rowsort label-4977
SELECT ALL - col0 DIV + 98 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL - col0 / + 98 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT ALL + + MIN( + 34 ) AS col2 FROM tab1 WHERE NOT - - 66 IS NULL
----
34

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL + + MIN ( + 34 ) AS col2 FROM tab1 WHERE NOT - - 66 IS NULL
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT ALL - COUNT( * ) * - 48 FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL - COUNT ( * ) * - 48 FROM tab2
----
144

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 93 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 48 * + col2 IS NOT NULL
----

query I rowsort
SELECT + 65 * + col0 FROM tab1
----
3315
5525
5915

query II rowsort
SELECT ALL col2, - col0 * + 31 + - col1 * - col1 FROM tab2
----
23
1175
40
3945
58
2164

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4984
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( col1 AS SIGNED ) * - 16 * - - col1 * + col2 * - + col2 = NULL
----

skipif mysql # not compatible
query III rowsort label-4984
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( col1 AS INTEGER ) * - 16 * - - col1 * + col2 * - + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT AVG ( DISTINCT + + col2 ) + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4985
SELECT AVG ( DISTINCT + + col2 ) + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4986
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4986
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 * - - col1 / - col2 > NULL
----

query II rowsort
SELECT col1, - col1 * - col0 AS col0 FROM tab2 AS cor0
----
51
2346
67
5025
77
4928

query I rowsort
SELECT DISTINCT - col1 + + 88 AS col2 FROM tab1
----
41
74
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4990
SELECT ( - 63 ) / 32 / + 91 + - CAST( NULL AS SIGNED ) * - col0 / - col2 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4990
SELECT ( - 63 ) / 32 / + 91 + - CAST ( NULL AS INTEGER ) * - col0 / - col2 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 * - - 44 AS col2 FROM tab1 cor0
----
2244
3740
4004

query I rowsort
SELECT DISTINCT - - 92 * - + col2 FROM tab0 AS cor0
----
-4324
-9108
-920

query II rowsort
SELECT - col2 + + - col0, col1 AS col2 FROM tab2 cor0
----
-104
77
-133
67
-69
51

query I rowsort
SELECT col2 + - col1 FROM tab2 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT + 7 + + col0 * + 83 FROM tab0 AS cor0
----
1252
7228
8058

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT + COUNT( + 44 ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4996
SELECT + COUNT ( + 44 ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - 26 * - col1 FROM tab2 AS cor0
----
1326
1742
2002

query I rowsort
SELECT DISTINCT - ( - 31 ) * + col0 FROM tab1 cor0
----
1581
2635
2821

query I rowsort
SELECT ALL - 66 * + 72 FROM tab0
----
-4752
-4752
-4752

query I rowsort
SELECT + 37 + - col2 + ( - col0 ) FROM tab1
----
-107
-110
-122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5001
SELECT - + ( + CAST( NULL AS SIGNED ) ) + + col2 FROM tab2 WHERE 39 / 85 + CAST( NULL AS SIGNED ) + - col0 * - col2 + - - col2 * - col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5001
SELECT - + ( + CAST ( NULL AS INTEGER ) ) + + col2 FROM tab2 WHERE 39 / 85 + CAST ( NULL AS INTEGER ) + - col0 * - col2 + - - col2 * - col2 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 30 + + - col1 AS col2 FROM tab1
----
-17
16
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT ALL + 39 + + + 90 - - + COUNT( DISTINCT - 64 ) * - 7 FROM tab2
----
122

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL + 39 + + + 90 - - + COUNT ( DISTINCT - 64 ) * - 7 FROM tab2
----
122

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5004
SELECT + 24 AS col2, + CAST( NULL AS DECIMAL ) / + col1 + - col1 AS col1 FROM tab0
----
24
NULL
24
NULL
24
NULL

skipif mysql # not compatible
query II rowsort label-5004
SELECT + 24 AS col2, + CAST ( NULL AS REAL ) / + col1 + - col1 AS col1 FROM tab0
----
24
NULL
24
NULL
24
NULL

query I rowsort
SELECT - ( ( 90 ) ) FROM tab0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT ALL - COUNT( * ) - 34 FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL - COUNT ( * ) - 34 FROM tab0 AS cor0
----
-37

query I rowsort
SELECT DISTINCT ( + 46 ) FROM tab0
----
46

query II rowsort
SELECT ALL + 43 * - + 26 AS col0, col0 * 67 * - + ( 28 ) FROM tab1
----
-1118
-159460
-1118
-170716
-1118
-95676

query I rowsort
SELECT ALL ( 11 ) AS col0 FROM tab0
----
11
11
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, 21 AS col0 FROM tab2
----
51
21
67
21
77
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 53 col2 FROM tab1
----
-53
-53
-53

query I rowsort
SELECT ALL - col2 * ( + 79 ) FROM tab0 AS cor0
----
-3713
-7821
-790

query I rowsort
SELECT ALL - + 14 * - col1 FROM tab2 AS cor0
----
1078
714
938

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 33 col1 FROM tab0 AS cor0
----
-1551
-3267
-330

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5015
SELECT + ( - + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT + ( - + CAST ( NULL AS REAL ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - ( + col0 ) FROM tab1
----
-425
-4277
-714

query II rowsort
SELECT col2 * - + col1 AS col1, - col2 * col1 FROM tab2
----
-1173
-1173
-3080
-3080
-3886
-3886

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 / col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 29 FROM tab0 cor0
----
-29

query I rowsort
SELECT - 6 + col2 FROM tab0 AS cor0
----
4
41
93

query I rowsort
SELECT DISTINCT + 49 + + 48 FROM tab1 AS cor0
----
97

query I rowsort
SELECT ALL 22 + + col2 AS col1 FROM tab0
----
121
32
69

query I rowsort
SELECT col2 * col2 * - col0 + - - col2 AS col1 FROM tab1
----
-295826
-420716
-469920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5024
SELECT DISTINCT COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5024
SELECT DISTINCT COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * - - 37 AS col0 FROM tab2 AS cor0
----
1887
2479
2849

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 68 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT ALL MIN( ALL + - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL MIN ( ALL + - col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT - COUNT( * ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5029
SELECT - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT - + col2 AS col2 FROM tab2 AS cor0 WHERE 32 / - + 85 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5031
SELECT col0 DIV - + 29 AS col2 FROM tab1 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5031
SELECT col0 / - + 29 AS col2 FROM tab1 AS cor0
----
-1
-2
-3

query I rowsort
SELECT - 90 * - - col1 FROM tab2 cor0
----
-4590
-6030
-6930

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5033
SELECT + CAST( 0 AS SIGNED ) DIV 57 * col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5033
SELECT + CAST ( 0 AS INTEGER ) / 57 * col0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT COUNT( * ) * - COUNT( + - col2 ) - - COUNT( * ) AS col0 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-5034
SELECT COUNT ( * ) * - COUNT ( + - col2 ) - - COUNT ( * ) AS col0 FROM tab2
----
-6

query I rowsort
SELECT ( col2 ) - col1 FROM tab1
----
21
54
82

query I rowsort
SELECT DISTINCT - col1 - + - col0 + - 38 * ( + col0 ) + - col2 FROM tab1
----
-1997
-3209
-3482

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 4 + - - col0 col1, + col1 AS col2 FROM tab1
----
55
14
89
5
95
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + - - 96 AS col1, col2 col2 FROM tab2 AS cor0
----
119
23
136
40
154
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( col1 + + - col1 - - - col0 IS NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - 30 + + - col0 col1 FROM tab2 AS cor0
----
-17
-25
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - ( + col0 ) ) col1 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT - - col0 * - ( + col2 ) + - col0 FROM tab2 AS cor0
----
-1104
-2624
-4425

query I rowsort
SELECT - ( + col1 ) * + col0 + - col2 FROM tab0
----
-1262
-1837
-196

query I rowsort
SELECT ALL - 94 * + 38 * - col0 * col0 FROM tab0
----
27036468
33608948
803700

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= + + col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT - - 70 - + ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
61

skipif mysql # not compatible
query I rowsort label-5046
SELECT - - 70 - + ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-5047
SELECT ALL + + col2 DIV - 22 AS col1 FROM tab1 cor0
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL + + col2 / - 22 AS col1 FROM tab1 cor0
----
-2
-3
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT ALL + COUNT( * ) * 93 col1 FROM tab2 AS cor0
----
279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5048
SELECT ALL + COUNT ( * ) * 93 col1 FROM tab2 AS cor0
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5049
SELECT 26 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 * + col0 - + col2 + - + CAST( + + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5049
SELECT 26 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 * + col0 - + col2 + - + CAST ( + + col1 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5050
SELECT ALL - col1 DIV 4 FROM tab2 cor0
----
-12
-16
-19

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL - col1 / 4 FROM tab2 cor0
----
-12
-16
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, + col2 + - 31 * 56 AS col2 FROM tab1 AS cor0
----
51
-1640
85
-1677
91
-1668

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5052
SELECT + 30, + col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col0 * + CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query II rowsort label-5052
SELECT + 30, + col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col0 * + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 63 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col0, - col1 AS col1 FROM tab0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT ALL 5 + - col2 + + 55 FROM tab2
----
2
20
37

query I rowsort
SELECT DISTINCT - col0 * + + ( + - col2 ) FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT COUNT( * ) + + 20 * + - MAX( DISTINCT + col0 ) col1 FROM tab2
----
-1497

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5057
SELECT COUNT ( * ) + + 20 * + - MAX ( DISTINCT + col0 ) col1 FROM tab2
----
-1497

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT - MIN( ALL col0 ) + - + COUNT( * ) * + COUNT( ALL + - 50 ) - - - MIN( col2 ) + 89 AS col1 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-5058
SELECT - MIN ( ALL col0 ) + - + COUNT ( * ) * + COUNT ( ALL + - 50 ) - - - MIN ( col2 ) + 89 AS col1 FROM tab1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT 1 + + COUNT( * ) * - 95 FROM tab1 AS cor0
----
-284

skipif mysql # not compatible
query I rowsort label-5059
SELECT 1 + + COUNT ( * ) * - 95 FROM tab1 AS cor0
----
-284

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT DISTINCT + SUM( - - col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT + SUM ( - - col2 ) FROM tab0 AS cor0
----
156

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + + 29 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 JOIN tab1 AS cor1 ON NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 78 IS NULL
----

query I rowsort
SELECT 8 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT DISTINCT - ( - 3 ) * COUNT( - col1 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT - ( - 3 ) * COUNT ( - col1 ) FROM tab0
----
9

query II rowsort
SELECT + col1 + + + col0, col1 FROM tab1
----
138
47
65
14
90
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5067
SELECT ALL col2 * + col0 * + CAST( - - 95 AS SIGNED ) + - col1 * - col2 - + 39 AS col1 FROM tab1 AS cor0
----
466425
476681
591017

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL col2 * + col0 * + CAST ( - - 95 AS INTEGER ) + - col1 * - col2 - + 39 AS col1 FROM tab1 AS cor0
----
466425
476681
591017

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( - col0 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5069
SELECT + col1 + + + col2 DIV 73 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5069
SELECT + col1 + + + col2 / 73 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT + + col2 - ( - col2 ) FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE 61 * - 34 - + + 38 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL - col2 * + col2 - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1664
-3439
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT DISTINCT 73 - 52 * 26 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3983

skipif mysql # not compatible
query I rowsort label-5073
SELECT DISTINCT 73 - 52 * 26 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3983

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + + 55 ) col1 FROM tab1 AS cor0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5075
SELECT ALL + CAST( NULL AS SIGNED ) - - - ( + - 48 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL + CAST ( NULL AS INTEGER ) - - - ( + - 48 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT DISTINCT - + ( + MIN( - - 92 ) ) FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT - + ( + MIN ( - - 92 ) ) FROM tab1 AS cor0
----
-92

query I rowsort
SELECT DISTINCT - 7 FROM tab0 AS cor0 WHERE NOT + col1 > - - 74
----
-7

query II rowsort
SELECT + col1, col2 + - col2 AS col0 FROM tab1
----
14
0
47
0
5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT DISTINCT SUM( DISTINCT + 77 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5079
SELECT DISTINCT SUM ( DISTINCT + 77 ) AS col2 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT DISTINCT MAX( DISTINCT - - col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT MAX ( DISTINCT - - col1 ) AS col1 FROM tab0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5081
SELECT COUNT( * ) DIV - - 21 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5081
SELECT COUNT ( * ) / - - 21 AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5082
SELECT DISTINCT 4 * - col1 + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5082
SELECT DISTINCT 4 * - col1 + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT ALL + - SUM( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL + - SUM ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
195

query II rowsort
SELECT DISTINCT + + 75 AS col2, + col1 * - + 34 AS col0 FROM tab1 cor0
----
75
-1598
75
-170
75
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT DISTINCT + - COUNT( * ) col1 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-5085
SELECT DISTINCT + - COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT ALL + SUM( ALL + ( col1 ) ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL + SUM ( ALL + ( col1 ) ) AS col2 FROM tab0
----
103

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT DISTINCT - MAX( DISTINCT - 31 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
31

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT - MAX ( DISTINCT - 31 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT ALL + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT ALL SUM( DISTINCT - col1 ) col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5090
SELECT ALL SUM ( DISTINCT - col1 ) col2 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT ALL - - col1 * + + 76 FROM tab0 cor0
----
1596
6156
76

query I rowsort
SELECT DISTINCT 36 * - col0 AS col1 FROM tab2 AS cor0
----
-1656
-2304
-2700

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 42 * + + col2 + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT + ( COUNT( * ) ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5094
SELECT + ( COUNT ( * ) ) col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 19 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col1 + - col1 AS col2, col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

query I rowsort
SELECT - ( + 69 ) AS col1 FROM tab0
----
-69
-69
-69

query II rowsort
SELECT - 13 AS col0, 93 + col0 FROM tab1
----
-13
144
-13
178
-13
184

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT COUNT( - col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5099
SELECT COUNT ( - col1 ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5100
SELECT DISTINCT CAST( - ( + col0 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5100
SELECT DISTINCT CAST ( - ( + col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT DISTINCT + SUM( ALL - - 52 ) FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT + SUM ( ALL - - 52 ) FROM tab1 AS cor0
----
156

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= 80
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5103
SELECT - - ( + COUNT( * ) ) DIV + 4 + - - COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5103
SELECT - - ( + COUNT ( * ) ) / + 4 + - - COUNT ( * ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col0 * - 25 * col1 FROM tab0 AS cor0
----
2425
30375
45675

query II rowsort
SELECT + + 47 AS col1, col0 AS col1 FROM tab1 AS cor0
----
47
51
47
85
47
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - ( - col2 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col1 AS col0, + col0 * - col1 FROM tab0 AS cor0
----
1
-97
21
-1827
81
-1215

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT 82 - + COUNT( * ) * 76 FROM tab1 cor0
----
-146

skipif mysql # not compatible
query I rowsort label-5108
SELECT 82 - + COUNT ( * ) * 76 FROM tab1 cor0
----
-146

query I rowsort
SELECT ALL - 89 - col2 FROM tab0 cor0
----
-136
-188
-99

query I rowsort
SELECT DISTINCT + 40 * + + 47 * col0 - col2 FROM tab0 AS cor0
----
163550
182261
28153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5111
SELECT + 29 DIV - + 50 - - - COUNT( * ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5111
SELECT + 29 / - + 50 - - - COUNT ( * ) col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - col2 - ( - col1 ) + 61 FROM tab1 AS cor0
----
-21
40
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 + 63 col2 FROM tab1 AS cor0
----
143
143
143

query I rowsort
SELECT DISTINCT - 16 * - + col1 AS col1 FROM tab1 AS cor0
----
224
752
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT COUNT( * ) - - 26 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-5115
SELECT COUNT ( * ) - - 26 FROM tab2 AS cor0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5116
SELECT DISTINCT CAST( - col0 AS SIGNED ) AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5116
SELECT DISTINCT CAST ( - col0 AS INTEGER ) AS col2 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL col0 + 76 FROM tab0
----
163
173
91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 2 >= - 40
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5119
SELECT + - 45 * - COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-5119
SELECT + - 45 * - COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-5120
SELECT ALL COUNT( * ), COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5120
SELECT ALL COUNT ( * ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5121
SELECT DISTINCT - COUNT( - - 25 ) * + 46 AS col2, COUNT( * ) FROM tab1 AS cor0
----
-138
3

skipif mysql # not compatible
query II rowsort label-5121
SELECT DISTINCT - COUNT ( - - 25 ) * + 46 AS col2, COUNT ( * ) FROM tab1 AS cor0
----
-138
3

query I rowsort
SELECT DISTINCT 89 * + 66 + + col0 + - col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
5829
5897
5900

query II rowsort
SELECT col1 AS col2, + col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5124
SELECT - SUM( DISTINCT + - CAST( NULL AS DECIMAL ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5124
SELECT - SUM ( DISTINCT + - CAST ( NULL AS REAL ) ) FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT - COUNT( * ) AS col1 FROM tab0 WHERE 5 + col2 * + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5125
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE 5 + col2 * + col0 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT col0 * - - col2 + 59 + + + col2 FROM tab1
----
5051
5133
6315

query I rowsort
SELECT DISTINCT 11 + - col1 FROM tab1
----
-3
-36
6

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE + 1 + - col0 IS NULL
----

query I rowsort
SELECT ALL col2 * + - col1 + - col0 AS col2 FROM tab0
----
-196
-297
-3822

query I rowsort
SELECT + col0 + - + col2 FROM tab1
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5131
SELECT DISTINCT + col0 + - CAST( + col0 AS SIGNED ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5131
SELECT DISTINCT + col0 + - CAST ( + col0 AS INTEGER ) FROM tab2
----
0

query I rowsort
SELECT 45 * - + 7 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 * + + col0 FROM tab2
----
2116
4096
5625

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 ) BETWEEN 74 AND - ( + col1 ) + + col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT - col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5136
SELECT DISTINCT ( col2 ) + CAST( + 54 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
101
153
64

skipif mysql # not compatible
query I rowsort label-5136
SELECT DISTINCT ( col2 ) + CAST ( + 54 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
101
153
64

query I rowsort
SELECT DISTINCT - 73 * - 3 - - col1 FROM tab2 AS cor0
----
270
286
296

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 - + col0 * + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col1 * - - 20
----

query II rowsort
SELECT DISTINCT + col1 AS col2, - col2 AS col0 FROM tab0 cor0
----
1
-99
21
-10
81
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5141
SELECT DISTINCT - - 10 * col2 DIV + 67 FROM tab0 AS cor0
----
1
14
7

skipif mysql # not compatible
query I rowsort label-5141
SELECT DISTINCT - - 10 * col2 / + 67 FROM tab0 AS cor0
----
1
14
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5142
SELECT ALL - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col0 / + ( + ( - col0 ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5142
SELECT ALL - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col0 / + ( + ( - col0 ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 20 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT DISTINCT + ( + - COUNT( * ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT + ( + - COUNT ( * ) ) FROM tab1
----
-3

query I rowsort
SELECT col0 * + 27 * - 51 FROM tab1
----
-117045
-125307
-70227

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5147
SELECT - COUNT( * ), - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-5147
SELECT - COUNT ( * ), - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-3
NULL

query II rowsort
SELECT ALL col2 AS col0, col1 * + col2 * - ( 71 ) FROM tab1
----
59
-20945
68
-226916
96
-95424

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5149
SELECT ALL * FROM tab2 WHERE NOT + - CAST( - + 31 AS SIGNED ) * + + col2 <> NULL
----

skipif mysql # not compatible
query III rowsort label-5149
SELECT ALL * FROM tab2 WHERE NOT + - CAST ( - + 31 AS INTEGER ) * + + col2 <> NULL
----

query I rowsort
SELECT - ( ( + 97 ) ) AS col2 FROM tab1 AS cor0
----
-97
-97
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 AND + col2
----

query I rowsort
SELECT ALL 2 + - 61 FROM tab2
----
-59
-59
-59

query I rowsort
SELECT 73 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT - ( + MAX( ALL + + 99 ) ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5154
SELECT - ( + MAX ( ALL + + 99 ) ) FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT DISTINCT + - SUM( DISTINCT - + 94 ) AS col1 FROM tab0 cor0
----
94

skipif mysql # not compatible
query I rowsort label-5155
SELECT DISTINCT + - SUM ( DISTINCT - + 94 ) AS col1 FROM tab0 cor0
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + col0 col1 FROM tab1 AS cor0 WHERE + 30 * - col1 >= NULL
----

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5158
SELECT - 61 / - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5158
SELECT - 61 / - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 79 AS col2, - col1 FROM tab1
----
79
-14
79
-47
79
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-5160
SELECT 85, + SUM( 98 ) col0 FROM tab0
----
85
294

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5160
SELECT 85, + SUM ( 98 ) col0 FROM tab0
----
85
294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5161
SELECT DISTINCT - col0 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT - 35 * COUNT( * ) AS col1 FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-5162
SELECT - 35 * COUNT ( * ) AS col1 FROM tab0
----
-105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col2 ) col1 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT DISTINCT + 73 + + 12 + + - COUNT( * ) AS col0 FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-5164
SELECT DISTINCT + 73 + + 12 + + - COUNT ( * ) AS col0 FROM tab2
----
82

query I rowsort
SELECT + col2 - + 2 FROM tab1
----
57
66
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT ALL + SUM( + col2 ) + + 61 AS col1 FROM tab1
----
284

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL + SUM ( + col2 ) + + 61 AS col1 FROM tab1
----
284

query I rowsort
SELECT ALL + 94 * + - col1 + + col1 - col2 FROM tab0 AS cor0
----
-192
-1963
-7580

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT - + 55 + - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5168
SELECT - + 55 + - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-58

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col1 * 81 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT ( - 11 ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5171
SELECT DISTINCT 88 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5171
SELECT DISTINCT 88 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - col2 * - 23 AS col0 FROM tab2
----
1334
529
920

query I rowsort
SELECT DISTINCT + ( ( col0 ) ) AS col2 FROM tab1 WHERE ( + col0 / 9 ) BETWEEN + 85 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) * + col0 + 76 col2 FROM tab0
----
1291
173
1903

query III rowsort
SELECT * FROM tab2 WHERE col2 * 64 < NULL
----

query I rowsort
SELECT - col2 * + col0 FROM tab2 WHERE NOT col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT + MIN( + 81 ) col1 FROM tab1
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5177
SELECT + MIN ( + 81 ) col1 FROM tab1
----
81

query I rowsort
SELECT 53 + + col1 * + col1 AS col2 FROM tab1
----
2262
249
78

query I rowsort
SELECT col1 - 64 FROM tab2 WHERE NULL IN ( col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( col2 / + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT + 62 + - MAX( DISTINCT + col2 + col0 ) FROM tab1 WHERE NOT ( - 67 * 72 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5181
SELECT + 62 + - MAX ( DISTINCT + col2 + col0 ) FROM tab1 WHERE NOT ( - 67 * 72 ) IS NOT NULL
----
NULL

query I rowsort
SELECT ( ( col1 ) ) FROM tab2 WHERE col2 IN ( + col1 * col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 + col1 col0 FROM tab1
----
118
76
85

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 9 + - col1 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 BETWEEN col0 AND ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5187
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5188
SELECT ALL col0 DIV col0 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL col0 / col0 AS col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5189
SELECT - col2 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5189
SELECT - col2 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 * 55 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5190
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 * 55 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT ALL + COUNT( col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL + COUNT ( col2 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5192
SELECT ( col2 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT ( col2 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT - 85 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT DISTINCT + MIN( ALL - col1 ) * - COUNT( * ) + + 11 AS col0 FROM tab0
----
254

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT + MIN ( ALL - col1 ) * - COUNT ( * ) + + 11 AS col0 FROM tab0
----
254

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT ALL COUNT( * ) * + 11 + COUNT( * ) AS col0 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL COUNT ( * ) * + 11 + COUNT ( * ) AS col0 FROM tab2
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-5196
SELECT DISTINCT 33 + + 81 DIV ( 84 + + col1 ) AS col2 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-5196
SELECT DISTINCT 33 + + 81 / ( 84 + + col1 ) AS col2 FROM tab1
----
33

query I rowsort
SELECT ALL - - 76 * 31 AS col1 FROM tab0 AS cor0
----
2356
2356
2356

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT + COUNT( * ) + MAX( col2 ) AS col2 FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-5198
SELECT + COUNT ( * ) + MAX ( col2 ) AS col2 FROM tab0 AS cor0
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-5199
SELECT - - col1 + - col1 DIV 90 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5199
SELECT - - col1 + - col1 / 90 FROM tab1 cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5200
SELECT ALL - + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5200
SELECT ALL - + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( col2 ) AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-5201
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( col2 ) AND + col2
----
0

query I rowsort
SELECT + 76 + + 39 FROM tab2 AS cor0
----
115
115
115

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT ALL - MIN( col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL - MIN ( col2 ) AS col1 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT DISTINCT - + col2 + 59 * col0 FROM tab0 cor0
----
5123
5624
838

query I rowsort
SELECT DISTINCT col0 + col1 * 67 FROM tab0 AS cor0
----
1494
164
5442

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE ( - 55 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5206
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( - 55 ) IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + 8 * col0 - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT ALL SUM( DISTINCT + col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL SUM ( DISTINCT + col2 ) FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT + COUNT( * ) + + 94 * - COUNT( * ) AS col0 FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-5209
SELECT + COUNT ( * ) + + 94 * - COUNT ( * ) AS col0 FROM tab0
----
-279

query I rowsort
SELECT ALL + 51 FROM tab0 WHERE NULL IS NULL
----
51
51
51

query III rowsort
SELECT * FROM tab1 WHERE ( col2 + + col0 ) <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE 73 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT MIN( DISTINCT + - col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-5213
SELECT MIN ( DISTINCT + - col1 ) AS col0 FROM tab1
----
-47

query I rowsort
SELECT DISTINCT - col0 - + - col0 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5215
SELECT - col1 - + - col2 DIV + col0 FROM tab1 AS cor0
----
-13
-47
-5

skipif mysql # not compatible
query I rowsort label-5215
SELECT - col1 - + - col2 / + col0 FROM tab1 AS cor0
----
-13
-47
-5

query I rowsort
SELECT ALL - 28 FROM tab2 WHERE NOT - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT ALL - COUNT( - 86 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL - COUNT ( - 86 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5218
SELECT + CAST( NULL AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5218
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT 76, col2 AS col1 FROM tab1 AS cor0
----
76
59
76
68
76
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5220
SELECT col1 + - CAST( 29 AS SIGNED ) FROM tab1 cor0 WHERE NOT ( CAST( NULL AS SIGNED ) * + 9 ) IS NOT NULL
----
-15
-24
18

skipif mysql # not compatible
query I rowsort label-5220
SELECT col1 + - CAST ( 29 AS INTEGER ) FROM tab1 cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) * + 9 ) IS NOT NULL
----
-15
-24
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT ALL - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - 16 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - 16 <= NULL
----
0

query I rowsort
SELECT DISTINCT + + col1 * 56 * - 99 + col0 * ( - col2 ) FROM tab0 cor0
----
-117294
-15147
-449769

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 + + + col1 * col0 BETWEEN NULL AND ( + col0 ) * 70
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 18 * - + 1 col2 FROM tab2 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT - - COUNT( * ) * + + 84 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
756

skipif mysql # not compatible
query I rowsort label-5225
SELECT - - COUNT ( * ) * + + 84 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
756

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5226
SELECT ALL + + MAX( + col0 ) DIV + + 60 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL + + MAX ( + col0 ) / + + 60 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5227
SELECT DISTINCT COUNT( col1 ) FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + - col1 + col0 * + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT COUNT ( col1 ) FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + - col1 + col0 * + col1 IS NOT NULL
----
3

query II rowsort
SELECT - ( - col1 ) AS col2, col0 * - col2 AS col1 FROM tab0
----
1
-9603
21
-870
81
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT + COUNT( * ) * + 69 FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-5229
SELECT + COUNT ( * ) * + 69 FROM tab2
----
207

onlyif mysql # DIV for integer division: 
query I rowsort label-5230
SELECT col1 DIV + + col1 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5230
SELECT col1 / + + col1 AS col0 FROM tab0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 / - + 27 + + 22 / col2 NOT BETWEEN + col2 AND ( + 66 )
----

query II rowsort
SELECT - col0 * - col1, 6 * ( col0 ) * + ( col2 ) + - col1 AS col0 FROM tab1
----
425
30085
4277
37081
714
29362

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5233
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT CAST( col1 AS SIGNED ) NOT BETWEEN + 59 * col1 AND - CAST( 52 AS SIGNED ) + col2 * 18
----
0

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT CAST ( col1 AS INTEGER ) NOT BETWEEN + 59 * col1 AND - CAST ( 52 AS INTEGER ) + col2 * 18
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT DISTINCT COUNT( * ) * - ( - SUM( ALL + + 77 ) ) FROM tab0
----
693

skipif mysql # not compatible
query I rowsort label-5234
SELECT DISTINCT COUNT ( * ) * - ( - SUM ( ALL + + 77 ) ) FROM tab0
----
693

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5235
SELECT + col1 * col2 AS col1 FROM tab2 WHERE NOT 33 + CAST( NULL AS DECIMAL ) / col0 IN ( + 99 * + col1 )
----

skipif mysql # not compatible
query I rowsort label-5235
SELECT + col1 * col2 AS col1 FROM tab2 WHERE NOT 33 + CAST ( NULL AS REAL ) / col0 IN ( + 99 * + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5236
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE col1 / + ( - + CAST( NULL AS SIGNED ) ) <= + col0
----

skipif mysql # not compatible
query I rowsort label-5236
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE col1 / + ( - + CAST ( NULL AS INTEGER ) ) <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT DISTINCT - MIN( 39 ) FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-5237
SELECT DISTINCT - MIN ( 39 ) FROM tab0 AS cor0
----
-39

query III rowsort
SELECT * FROM tab2 WHERE NULL >= - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5239
SELECT DISTINCT + 69 DIV 87 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5239
SELECT DISTINCT + 69 / 87 AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
51
67
77

query I rowsort
SELECT col2 * - - col0 * - + col2 + + - col2 + + col1 AS col2 FROM tab2 AS cor0
----
-102363
-24306
-252291

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5242
SELECT COUNT( * ) DIV + MAX( DISTINCT 51 ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5242
SELECT COUNT ( * ) / + MAX ( DISTINCT 51 ) AS col1 FROM tab1 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 >= ( + - col0 / + col0 )
----

query I rowsort
SELECT col0 * 6 AS col0 FROM tab2
----
276
384
450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5245
SELECT ALL + COUNT( * ) FROM tab0 WHERE - CAST( + + 53 AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL + COUNT ( * ) FROM tab0 WHERE - CAST ( + + 53 AS INTEGER ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5246
SELECT ALL col0 + + 56 + + ( - col2 ) DIV + - col2 - - - 81 * col1 AS col0 FROM tab2
----
-4028
-5295
-6116

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL col0 + + 56 + + ( - col2 ) / + - col2 - - - 81 * col1 AS col0 FROM tab2
----
-4028
-5295
-6116

query I rowsort
SELECT 95 - - col2 FROM tab2
----
118
135
153

query I rowsort
SELECT col2 + + + col2 AS col1 FROM tab0
----
198
20
94

query III rowsort
SELECT * FROM tab0 WHERE - col1 IN ( - + col2 )
----

query I rowsort
SELECT ALL col0 + - 45 - + col2 * + 99 + - 38 AS col1 FROM tab0
----
-4721
-9787
-986

query I rowsort
SELECT ALL - ( - - 83 ) + + 73 AS col0 FROM tab0
----
-10
-10
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5252
SELECT DISTINCT + col0 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col1 - - col0 - + 22 + + ( ( - col1 ) ) * col1 >= col2 - + ( + 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5252
SELECT DISTINCT + col0 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col1 - - col0 - + 22 + + ( ( - col1 ) ) * col1 >= col2 - + ( + 22 )
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN 6 AND + 42
----

query I rowsort
SELECT - 83 + + 81 AS col0 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT - 91 + - ( + 2 ) AS col0 FROM tab1 AS cor0
----
-93
-93
-93

query I rowsort
SELECT ALL + col0 * - 82 - + 55 FROM tab0 AS cor0 WHERE NOT - col1 * + col1 > + col1 * - 1 - + col1 * - col0
----
-1285
-7189
-8009

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( 77 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - + col1 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5260
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT + + SUM( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5261
SELECT + + SUM ( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 * - col2 col2 FROM tab0 AS cor0
----
-2632
-5544
-560

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 39 ) = + col2 - + ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 61 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5265
SELECT ALL - + AVG ( ALL CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL - + AVG ( ALL CAST ( NULL AS REAL ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + 49 AS col2 FROM tab0 AS cor0
----
49
49
49

query I rowsort
SELECT + + 50 AS col1 FROM tab2 AS cor0
----
50
50
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 * - col0 * 70 - + + 41 - + 59 * - 77 col2 FROM tab2 AS cor0
----
-111978
-131998
-79218

query I rowsort
SELECT ALL + 95 * - + 53 FROM tab0
----
-5035
-5035
-5035

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 col2 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT + - COUNT( * ) * - - 82 AS col2 FROM tab2 cor0
----
-246

skipif mysql # not compatible
query I rowsort label-5271
SELECT + - COUNT ( * ) * - - 82 AS col2 FROM tab2 cor0
----
-246

query I rowsort
SELECT DISTINCT 71 FROM tab0 cor0 WHERE NOT col0 * + 81 IS NOT NULL
----

query I rowsort
SELECT ALL + + 11 * col0 AS col1 FROM tab2 AS cor0 WHERE NOT + 54 IS NULL
----
506
704
825

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT COUNT( * ) * - 46 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
-414

skipif mysql # not compatible
query I rowsort label-5274
SELECT COUNT ( * ) * - 46 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
-414

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL = ( NULL )
----

query I rowsort
SELECT 78 FROM tab0, tab1 cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5277
SELECT - 24 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5277
SELECT - 24 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 75 + - col0 * - + 14 IS NULL
----

query I rowsort
SELECT DISTINCT - - col0 + + col0 - - col1 + + col1 FROM tab2 AS cor0
----
194
282
284

query I rowsort
SELECT ALL 32 + - col0 AS col0 FROM tab2 AS cor0
----
-14
-32
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 * - - col0 NOT BETWEEN + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5281
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 * - - col0 NOT BETWEEN + col2 AND NULL
----
0

query I rowsort
SELECT + 22 + + col2 AS col0 FROM tab2 AS cor0
----
45
62
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - ( - 58 ) ) + - 18 col1 FROM tab0 cor0
----
40
40
40

query I rowsort
SELECT ALL col1 + col2 * - 50 FROM tab0
----
-2269
-479
-4949

onlyif mysql # DIV for integer division: 
query I rowsort label-5285
SELECT col2 DIV col0 * + 27 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5285
SELECT col2 / col0 * + 27 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE + 2 BETWEEN - col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5288
SELECT + COUNT( * ) DIV + 41 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5288
SELECT + COUNT ( * ) / + 41 FROM tab2
----
0

query I rowsort
SELECT ALL + ( - col0 ) + - - col2 + col0 FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + - col1 col1 FROM tab2
----
-13
-5
8

query I rowsort
SELECT DISTINCT col2 - + 36 FROM tab1
----
23
32
60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5292
SELECT ALL * FROM tab2 WHERE NOT col2 - + 98 IN ( - - 51, col2 - + CAST( NULL AS SIGNED ), + col0 )
----

skipif mysql # not compatible
query III rowsort label-5292
SELECT ALL * FROM tab2 WHERE NOT col2 - + 98 IN ( - - 51, col2 - + CAST ( NULL AS INTEGER ), + col0 )
----

query I rowsort
SELECT 82 * - col0 * col0 AS col0 FROM tab1
----
-213282
-592450
-679042

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT - MAX( ALL + + 95 ) AS col2 FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-5294
SELECT - MAX ( ALL + + 95 ) AS col2 FROM tab2
----
-95

query II rowsort
SELECT col1 * + col0 * col2 AS col0, - 29 AS col0 FROM tab0
----
18270
-29
57105
-29
9603
-29

query I rowsort
SELECT DISTINCT col2 - 21 FROM tab2 AS cor0
----
19
2
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT + + MIN( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5297
SELECT + + MIN ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 52 col1 FROM tab0 AS cor0
----
52
52
52

query I rowsort
SELECT - - col2 FROM tab1 cor0 WHERE NOT ( NULL ) = col1
----

query I rowsort
SELECT col2 * + - 47 AS col0 FROM tab1
----
-2773
-3196
-4512

query I rowsort
SELECT ALL + + 19 AS col1 FROM tab1 cor0
----
19
19
19

query I rowsort
SELECT DISTINCT col0 + + - 41 * + 28 AS col2 FROM tab2
----
-1073
-1084
-1102

query II rowsort
SELECT ALL col0 + + 59 AS col0, - col1 * - col2 FROM tab1
----
110
1344
144
295
150
3196

query I rowsort
SELECT - 86 - + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-133
-185
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT ALL + MAX( ALL - + col0 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL + MAX ( ALL - + col0 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 28 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5307
SELECT DISTINCT + col1 AS col1, + col1 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-5307
SELECT DISTINCT + col1 AS col1, + col1 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT DISTINCT ( + MAX( ALL - col1 ) ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT ( + MAX ( ALL - col1 ) ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT + ( + 74 ) + col2 + + col1 FROM tab2 AS cor0
----
148
191
199

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5310
SELECT - CAST( NULL AS DECIMAL ) + + 48 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5310
SELECT - CAST ( NULL AS REAL ) + + 48 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + + - col2 * + - col2 FROM tab0
----
110
2256
9900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5312
SELECT ALL 90 * 90 - + CAST( NULL AS SIGNED ) AS col0, + COUNT( * ) col0 FROM tab1
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5312
SELECT ALL 90 * 90 - + CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) col0 FROM tab1
----
NULL
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5313
SELECT ALL 16 + + col0 DIV col0 * - 17 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL 16 + + col0 / col0 * - 17 AS col0 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 14 * - col1 - - + col1 + - ( - col0 ) FROM tab0 cor0
----
-1038
-186
84

query I rowsort
SELECT DISTINCT + + ( + 82 ) * col2 * + - ( + col2 ) AS col1 FROM tab2 AS cor0
----
-131200
-275848
-43378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5317
SELECT + col1 * + col1 FROM tab0 AS cor0 WHERE col2 + - col1 = col0 + + ( + 31 ) * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5317
SELECT + col1 * + col1 FROM tab0 AS cor0 WHERE col2 + - col1 = col0 + + ( + 31 ) * - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 41 - 11 + + col1 col1 FROM tab1 AS cor0
----
35
44
77

query I rowsort
SELECT DISTINCT 96 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5320
SELECT ALL - col1 DIV - col1 + - CAST( - ( + col2 ) AS SIGNED ) DIV + col2 AS col2, 87 * + + ( col2 ) FROM tab2 AS cor0
----
2
2001
2
3480
2
5046

skipif mysql # not compatible
query II rowsort label-5320
SELECT ALL - col1 / - col1 + - CAST ( - ( + col2 ) AS INTEGER ) / + col2 AS col2, 87 * + + ( col2 ) FROM tab2 AS cor0
----
2
2001
2
3480
2
5046

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT DISTINCT + COUNT( * ) * + 93 + SUM( DISTINCT col1 ) FROM tab1
----
345

skipif mysql # not compatible
query I rowsort label-5321
SELECT DISTINCT + COUNT ( * ) * + 93 + SUM ( DISTINCT col1 ) FROM tab1
----
345

query I rowsort
SELECT DISTINCT 16 + - col0 + - 54 AS col0 FROM tab0
----
-125
-135
-53

query I rowsort
SELECT ALL - 90 * + col1 FROM tab1 AS cor0
----
-1260
-4230
-450

query I rowsort
SELECT DISTINCT + ( col0 ) * + + col1 * + - 14 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-5950
-59878
-9996

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT - col1 / - col2 FROM tab2 WHERE NOT + - col1 / - 83 + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5327
SELECT - 98 DIV + 87 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5327
SELECT - 98 / + 87 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5328
SELECT - col1 / + CAST( NULL AS SIGNED ) / + 18 * 82 * + - col0, - 0 col0 FROM tab1 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5328
SELECT - col1 / + CAST ( NULL AS INTEGER ) / + 18 * 82 * + - col0, - 0 col0 FROM tab1 AS cor0
----
NULL
0
NULL
0
NULL
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( col0 ) NOT BETWEEN + 15 + + col0 AND NULL
----

query I rowsort
SELECT - ( + + ( - - col1 ) ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

query II rowsort
SELECT 42, + col1 AS col2 FROM tab1 AS cor0
----
42
14
42
47
42
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5332
SELECT ALL - 69 + + ( col2 ) + + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5332
SELECT ALL - 69 + + ( col2 ) + + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 27 + - + col2 AS col2 FROM tab0
----
-126
-37
-74

query I rowsort
SELECT ALL + 0 + - 41 FROM tab2
----
-41
-41
-41

query I rowsort
SELECT + ( + + col1 ) * - 87 AS col1 FROM tab2 AS cor0
----
-4437
-5829
-6699

query I rowsort
SELECT - + ( - 27 ) AS col1 FROM tab1 AS cor0
----
27
27
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5337
SELECT + - 22 / + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5337
SELECT + - 22 / + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + 81 - col0 FROM tab0 AS cor0
----
-178
-1788
-6576

query II rowsort
SELECT DISTINCT + + 13, + 53 AS col2 FROM tab0 AS cor0
----
13
53

onlyif mysql # DIV for integer division: 
query II rowsort label-5340
SELECT col1 DIV - + col2 - col0 AS col1, col2 AS col2 FROM tab1
----
-51
96
-85
59
-91
68

skipif mysql # not compatible
query II rowsort label-5340
SELECT col1 / - + col2 - col0 AS col1, col2 AS col2 FROM tab1
----
-51
96
-85
59
-91
68

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 BETWEEN + 5 + col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5342
SELECT ALL 64 * - + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * - 33 * - - COUNT( ALL + col0 ) + - 28 - - - COUNT( * ) + COUNT( col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5342
SELECT ALL 64 * - + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * - 33 * - - COUNT ( ALL + col0 ) + - 28 - - - COUNT ( * ) + COUNT ( col0 ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 89 * col1 ) BETWEEN + col0 AND + ( - + col0 )
----

query I rowsort
SELECT 52 + 26 FROM tab0 AS cor0
----
78
78
78

onlyif mysql # DIV for integer division: 
query II rowsort label-5345
SELECT DISTINCT + + col2 DIV + + 50 - col1 + + col0 + col1, col1 AS col1 FROM tab0 AS cor0
----
15
81
87
21
98
1

skipif mysql # not compatible
query II rowsort label-5345
SELECT DISTINCT + + col2 / + + 50 - col1 + + col0 + col1, col1 AS col1 FROM tab0 AS cor0
----
15
81
87
21
98
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE 93 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT + SUM( DISTINCT 69 ) FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-5347
SELECT + SUM ( DISTINCT 69 ) FROM tab0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-5348
SELECT DISTINCT 85 AS col2, MAX( DISTINCT - + col0 ) FROM tab1
----
85
-51

skipif mysql # not compatible
query II rowsort label-5348
SELECT DISTINCT 85 AS col2, MAX ( DISTINCT - + col0 ) FROM tab1
----
85
-51

query I rowsort
SELECT ALL col0 * 58 AS col0 FROM tab2
----
2668
3712
4350

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE NOT col0 IN ( + col1, col0 * - 59 * col2 )
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - + 25 AS col2 FROM tab0 AS cor0
----
-25

query I rowsort
SELECT - 74 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5353
SELECT CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5353
SELECT CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT DISTINCT + 69 * + COUNT( + 36 ) AS col2 FROM tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-5354
SELECT DISTINCT + 69 * + COUNT ( + 36 ) AS col2 FROM tab0 AS cor0
----
207

onlyif mysql # DIV for integer division: 
query II rowsort label-5355
SELECT DISTINCT col2 DIV + + 1 AS col0, col0 AS col0 FROM tab2 cor0
----
23
46
40
64
58
75

skipif mysql # not compatible
query II rowsort label-5355
SELECT DISTINCT col2 / + + 1 AS col0, col0 AS col0 FROM tab2 cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT + ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT ( NOT + col1 + - ( - + col0 ) + + + 12 <= NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5356
SELECT + ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT ( NOT + col1 + - ( - + col0 ) + + + 12 <= NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5357
SELECT - col2 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5357
SELECT - col2 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-5358
SELECT DISTINCT - COUNT( - - col0 ) col0, 12 col1 FROM tab0 AS cor0
----
-3
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5358
SELECT DISTINCT - COUNT ( - - col0 ) col0, 12 col1 FROM tab0 AS cor0
----
-3
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT ALL + COUNT( + 11 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5359
SELECT ALL + COUNT ( + 11 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT ALL + 41 + + COUNT( * ) FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL + 41 + + COUNT ( * ) FROM tab2 AS cor0
----
44

query I rowsort
SELECT + col1 * + + 93 FROM tab0
----
1953
7533
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5362
SELECT ALL - SUM( - CAST( - col0 AS SIGNED ) ) col2 FROM tab2
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5362
SELECT ALL - SUM ( - CAST ( - col0 AS INTEGER ) ) col2 FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT DISTINCT 51 + + - COUNT( * ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-5363
SELECT DISTINCT 51 + + - COUNT ( * ) FROM tab1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT DISTINCT 91 + - COUNT( * ) FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT 91 + - COUNT ( * ) FROM tab1
----
88

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NULL IN ( - col1 * - col2 + col0, - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col1 col0 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT ALL 36 + + + col0 AS col1 FROM tab0
----
123
133
51

query I rowsort
SELECT col2 + + - ( + - 65 ) FROM tab0 AS cor0
----
112
164
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT + + COUNT( * ) + + 39 AS col0 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-5369
SELECT + + COUNT ( * ) + + 39 AS col0 FROM tab2 AS cor0
----
42

query I rowsort
SELECT ALL + 46 + - - col0 AS col1 FROM tab1 AS cor0
----
131
137
97

query I rowsort
SELECT DISTINCT + 26 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
26

query I rowsort
SELECT DISTINCT + 80 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5373
SELECT * FROM tab2 AS cor0 WHERE - col0 NOT IN ( + col1 * - CAST( NULL AS SIGNED ), col2, 53 )
----

skipif mysql # not compatible
query III rowsort label-5373
SELECT * FROM tab2 AS cor0 WHERE - col0 NOT IN ( + col1 * - CAST ( NULL AS INTEGER ), col2, 53 )
----

query I rowsort
SELECT DISTINCT - ( 48 ) AS col1 FROM tab0 AS cor0
----
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 41 col0 FROM tab2 cor0
----
41
41
41

query I rowsort
SELECT ALL - - col1 * + col2 + 30 AS col1 FROM tab1 AS cor0
----
1374
3226
325

query I rowsort
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
1
21
81

query II rowsort
SELECT + - 75 AS col2, + col2 + col0 * + - ( - - 75 ) * + col1 * - 26 AS col0 FROM tab1 AS cor0
----
-75
1392396
-75
828809
-75
8340218

query I rowsort
SELECT - - 77 AS col1 FROM tab0 AS cor0
----
77
77
77

query I rowsort
SELECT DISTINCT + ( - - 49 ) AS col0 FROM tab2 AS cor0
----
49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 29 IS NOT NULL
----

query I rowsort
SELECT + col0 * 54 FROM tab1
----
2754
4590
4914

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 + + + col1 NOT BETWEEN - + 51 * - col0 + col0 + + col0 - + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT ALL ( - SUM( + - 78 ) ) FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL ( - SUM ( + - 78 ) ) FROM tab0
----
234

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NOT NULL >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT DISTINCT MAX( DISTINCT 82 ) AS col2 FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-5386
SELECT DISTINCT MAX ( DISTINCT 82 ) AS col2 FROM tab2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT ALL - COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 / col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 18 * - 74 FROM tab0
----
1332

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 + 59 ) NOT IN ( - 49 )
----

query I rowsort
SELECT - ( - + ( - - 23 ) ) * - 15 FROM tab2 AS cor0
----
-345
-345
-345

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 63, - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 21 col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
21
21
21

query I rowsort
SELECT - + 99 AS col0 FROM tab0 cor0
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT ALL MAX( DISTINCT - 24 ) FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-5395
SELECT ALL MAX ( DISTINCT - 24 ) FROM tab2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT DISTINCT + 46 * + - COUNT( * ) FROM tab1
----
-138

skipif mysql # not compatible
query I rowsort label-5396
SELECT DISTINCT + 46 * + - COUNT ( * ) FROM tab1
----
-138

query I rowsort
SELECT DISTINCT + 22 * - col2 AS col2 FROM tab2
----
-1276
-506
-880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5398
SELECT DISTINCT 0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT 0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ( - + col1 ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT + COUNT( * ) * + 28 AS col2 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-5400
SELECT + COUNT ( * ) * + 28 AS col2 FROM tab2 AS cor0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5401
SELECT ALL + + CAST( 47 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
47
47
47

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL + + CAST ( 47 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
47
47
47

query I rowsort
SELECT ALL + col0 * + col0 * + col1 FROM tab1 AS cor0
----
36125
36414
389207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5403
SELECT 20 DIV COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5403
SELECT 20 / COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT - col0 FROM tab0 cor0 WHERE NULL <= NULL
----

query II rowsort
SELECT - col1, - col1 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 * + 21 * col2 <= + col2
----

query I rowsort
SELECT ALL - - col0 + - col1 + - col2 AS col0 FROM tab1 AS cor0
----
-24
-59
21

query I rowsort
SELECT DISTINCT col0 + + col0 + + + 31 * - + col2 FROM tab2
----
-1112
-1648
-621

query I rowsort
SELECT - col0 + ( - + col0 ) FROM tab1
----
-102
-170
-182

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + - 22 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5411
SELECT DISTINCT + - COUNT( * ) col0, COUNT( * ) + + 30 FROM tab0 WHERE NOT - col2 IS NOT NULL
----
0
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5411
SELECT DISTINCT + - COUNT ( * ) col0, COUNT ( * ) + + 30 FROM tab0 WHERE NOT - col2 IS NOT NULL
----
0
30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col2 * col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) + 51 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5414
SELECT DISTINCT 64 * + + COUNT( * ) DIV 55 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5414
SELECT DISTINCT 64 * + + COUNT ( * ) / 55 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT - COUNT( * ) + 35 * + + 73 FROM tab1
----
2552

skipif mysql # not compatible
query I rowsort label-5415
SELECT - COUNT ( * ) + 35 * + + 73 FROM tab1
----
2552

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 51 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5417
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE CAST( + - col1 AS SIGNED ) IS NOT NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE CAST ( + - col1 AS INTEGER ) IS NOT NULL
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 55 * - 65 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 87 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT + ( - + col0 ) FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 95 col1 FROM tab0 cor0
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-5423
SELECT COUNT( * ) col1, + MAX( ALL - ( - col1 ) ) FROM tab0
----
3
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5423
SELECT COUNT ( * ) col1, + MAX ( ALL - ( - col1 ) ) FROM tab0
----
3
81

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 >= + col1
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT DISTINCT - 57 * + ( - - COUNT( * ) ) FROM tab0
----
-171

skipif mysql # not compatible
query I rowsort label-5425
SELECT DISTINCT - 57 * + ( - - COUNT ( * ) ) FROM tab0
----
-171

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + col1 * + col1, col1, + + col1 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col1 ) col2 FROM tab2 AS cor0
----
51
67
77

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 51 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT 63 + COUNT( * ) + + 82 + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
145

skipif mysql # not compatible
query I rowsort label-5429
SELECT 63 + COUNT ( * ) + + 82 + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
145

query I rowsort
SELECT DISTINCT 91 AS col1 FROM tab2 cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT ALL - 75 * - COUNT( + col1 ) FROM tab1 cor0
----
225

skipif mysql # not compatible
query I rowsort label-5431
SELECT ALL - 75 * - COUNT ( + col1 ) FROM tab1 cor0
----
225

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT - 18 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5433
SELECT DISTINCT - - MAX( + 15 ), COUNT( * ) col0 FROM tab1 AS cor0
----
15
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5433
SELECT DISTINCT - - MAX ( + 15 ), COUNT ( * ) col0 FROM tab1 AS cor0
----
15
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT - COUNT( - + col0 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5434
SELECT - COUNT ( - + col0 ) AS col1 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 54 col0 FROM tab0 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5436
SELECT col1 AS col1, + col2 + - + CAST( col1 AS SIGNED ) AS col1 FROM tab2
----
51
-28
67
-9
77
-37

skipif mysql # not compatible
query II rowsort label-5436
SELECT col1 AS col1, + col2 + - + CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
51
-28
67
-9
77
-37

query I rowsort
SELECT ALL + 51 + - col0 FROM tab1
----
-34
-40
0

query II rowsort
SELECT col2, + col0 AS col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT ALL 93 * - - 30 + MIN( + + 32 ) FROM tab0
----
2822

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL 93 * - - 30 + MIN ( + + 32 ) FROM tab0
----
2822

query I rowsort
SELECT 86 - + col1 AS col1 FROM tab1
----
39
72
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT DISTINCT + COUNT( * ) - + 85 FROM tab2
----
-82

skipif mysql # not compatible
query I rowsort label-5441
SELECT DISTINCT + COUNT ( * ) - + 85 FROM tab2
----
-82

query II rowsort
SELECT ALL col0, + col0 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT ALL - col1 + - - col0 AS col1 FROM tab2
----
-13
-5
8

query I rowsort
SELECT DISTINCT 95 * 62 + col0 + - col0 FROM tab0 AS cor0
----
5890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5445
SELECT DISTINCT - 61 * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5445
SELECT DISTINCT - 61 * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 + + - 52 AS col1 FROM tab2
----
-110
-75
-92

query I rowsort
SELECT col2 * - 26 AS col0 FROM tab1
----
-1534
-1768
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT - + SUM( ALL col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5448
SELECT - + SUM ( ALL col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT + SUM( 99 ) AS col1 FROM tab1 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-5449
SELECT + SUM ( 99 ) AS col1 FROM tab1 AS cor0
----
297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 97 col1 FROM tab1 AS cor0
----
97

query I rowsort
SELECT 85 * - + col1 FROM tab1
----
-1190
-3995
-425

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 91 / + + col0 AND NULL
----

query I rowsort
SELECT DISTINCT 43 + + ( - col2 ) * + col1 FROM tab2 AS cor0
----
-1130
-3037
-3843

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5454
SELECT DISTINCT + MIN( + CAST( - 4 AS SIGNED ) ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-5454
SELECT DISTINCT + MIN ( + CAST ( - 4 AS INTEGER ) ) FROM tab0
----
-4

query I rowsort
SELECT ALL col1 * + 45 FROM tab0 AS cor0
----
3645
45
945

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col0 + - 32 col2 FROM tab1 AS cor0
----
106
33
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5457
SELECT - - col1 + - - col2 DIV col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5457
SELECT - - col1 + - - col2 / col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT DISTINCT + + MIN( - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5458
SELECT DISTINCT + + MIN ( - col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT ALL + 84 + 3 AS col1 FROM tab1 AS cor0
----
87
87
87

query I rowsort
SELECT ALL + + col0 * - - col2 AS col2 FROM tab1 cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT ALL COUNT( * ) * + 9 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL COUNT ( * ) * + 9 FROM tab0
----
27

query I rowsort
SELECT ALL col2 + + + 24 + - col2 + 81 + + + col2 * + col0 AS col0 FROM tab2
----
1163
2665
4455

query III rowsort
SELECT * FROM tab0 WHERE + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 + 97 * - + col1 AS col0 FROM tab0
----
-1950
-7842
0

query I rowsort
SELECT DISTINCT + 28 + 16 AS col2 FROM tab1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT ALL ( COUNT( ALL col0 ) ) - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL ( COUNT ( ALL col0 ) ) - COUNT ( * ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT - MIN( + - 35 ) FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-5467
SELECT - MIN ( + - 35 ) FROM tab2 AS cor0
----
35

query I rowsort
SELECT DISTINCT col2 - 13 AS col2 FROM tab1 AS cor0
----
46
55
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 55, + 63 col2 FROM tab2
----
-55
63

query I rowsort
SELECT 78 AS col0 FROM tab0 WHERE NOT + + 19 IS NOT NULL
----

query I rowsort
SELECT ALL 19 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT DISTINCT MAX( DISTINCT - col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5473
SELECT DISTINCT MAX ( DISTINCT - col0 ) FROM tab1
----
-51

query I rowsort
SELECT DISTINCT 30 AS col0 FROM tab2 cor0
----
30

query I rowsort
SELECT DISTINCT ( + - col1 ) * col1 AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT ALL + col0 * - 18 * col2 + - col0 AS col2 FROM tab1 AS cor0
----
-111475
-88179
-90355

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT + COUNT( ALL col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5477
SELECT + COUNT ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5478
SELECT DISTINCT - col2 DIV + col0 FROM tab0 cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5478
SELECT DISTINCT - col2 / + col0 FROM tab0 cor0
----
-1
-3
0

query II rowsort
SELECT DISTINCT - - 61, 31 AS col2 FROM tab0 AS cor0
----
61
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 83 col2, + col0 + + col0 FROM tab2 AS cor0
----
83
128
83
150
83
92

query I rowsort
SELECT + + col1 AS col2 FROM tab0 WHERE NOT - 83 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - ( + 80 ) ) FROM tab2
----
-80

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + - col1 * - - col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT - SUM( - col2 ) + - 55 AS col1 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5485
SELECT - SUM ( - col2 ) + - 55 AS col1 FROM tab2 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5486
SELECT ALL - col0 + - + 58 - - - CAST( + col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
-127
-162
-191

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5486
SELECT ALL - col0 + - + 58 - - - CAST ( + col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
-127
-162
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT + MAX( DISTINCT - + col2 ) + + - 93 AS col0 FROM tab1 AS cor0
----
-152

skipif mysql # not compatible
query I rowsort label-5487
SELECT + MAX ( DISTINCT - + col2 ) + + - 93 AS col0 FROM tab1 AS cor0
----
-152

query I rowsort
SELECT col0 + - 5 AS col2 FROM tab2
----
41
59
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT DISTINCT + COUNT( * ) * - 17 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-5489
SELECT DISTINCT + COUNT ( * ) * - 17 FROM tab2
----
-51

query I rowsort
SELECT DISTINCT + - col2 * + col2 - - - col2 + + col1 FROM tab2 cor0
----
-1563
-3355
-501

query I rowsort
SELECT ALL 68 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT ALL + COUNT( * ) - 35 FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL + COUNT ( * ) - 35 FROM tab1 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT ALL MIN( + 79 ) FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL MIN ( + 79 ) FROM tab0 AS cor0
----
79

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 / - col2 / + 53 + - col0 NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT DISTINCT - COUNT( * ) * - 15 + + SUM( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-5495
SELECT DISTINCT - COUNT ( * ) * - 15 + + SUM ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-150

query I rowsort
SELECT - ( - 72 ) FROM tab2 AS cor0
----
72
72
72

query II rowsort
SELECT ALL - + col0 AS col2, + ( col0 ) AS col1 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT ALL + ( - + ( - 75 ) ) * - col0 * 82 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5499
SELECT + col0 DIV 88 DIV - 48 - col0 AS col1 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5499
SELECT + col0 / 88 / - 48 - col0 AS col1 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5500
SELECT CAST( NULL AS DECIMAL ) - + col2 + + - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5500
SELECT CAST ( NULL AS REAL ) - + col2 + + - col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5501
SELECT DISTINCT - ( + - 61 ) DIV - col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT - ( + - 61 ) / - col2 FROM tab1
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + 47 * - + col0 col2 FROM tab0
----
-4002
-4462
-690

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT DISTINCT + 83 * COUNT( * ) + COUNT( * ) FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT + 83 * COUNT ( * ) + COUNT ( * ) FROM tab2
----
252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5504
SELECT col1 / - - CAST( NULL AS SIGNED ) + + - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5504
SELECT col1 / - - CAST ( NULL AS INTEGER ) + + - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5505
SELECT ALL SUM( DISTINCT + ( + 31 ) ) FROM tab2 WHERE NULL <= - CAST( col1 AS SIGNED ) * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-5505
SELECT ALL SUM ( DISTINCT + ( + 31 ) ) FROM tab2 WHERE NULL <= - CAST ( col1 AS INTEGER ) * 28
----
NULL

query I rowsort
SELECT ALL + 6 + col2 + - + 25 + - 14 AS col1 FROM tab2
----
-10
25
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT DISTINCT 86 * - COUNT( * ) + 4 FROM tab1
----
-254

skipif mysql # not compatible
query I rowsort label-5507
SELECT DISTINCT 86 * - COUNT ( * ) + 4 FROM tab1
----
-254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5508
SELECT ALL CAST( NULL AS SIGNED ) * - col0 - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5509
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - ( - col2 ) AS col1, col0 AS col2 FROM tab0 AS cor0
----
10
87
47
15
99
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 < - col2
----

query I rowsort
SELECT DISTINCT - col1 * - col2 + - col0 AS col0 FROM tab0 AS cor0
----
123
2
3792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5513
SELECT AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5513
SELECT AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT COUNT( ALL + 61 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5514
SELECT COUNT ( ALL + 61 ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5516
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col2 col2 FROM tab2 AS cor0 WHERE ( ( NOT + col0 + - + col2 IS NULL ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5516
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col2 col2 FROM tab2 AS cor0 WHERE ( ( NOT + col0 + - + col2 IS NULL ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5517
SELECT col2 DIV + - col1 col0 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5517
SELECT col2 / + - col1 col0 FROM tab1 AS cor0
----
-1
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT ALL MIN( ALL 97 ) col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5518
SELECT ALL MIN ( ALL 97 ) col0 FROM tab0 AS cor0
----
97

query I rowsort
SELECT + 80 FROM tab0 cor0 WHERE NOT 19 IS NULL
----
80
80
80

query I rowsort
SELECT ALL + col0 * - - 62 * - - col2 AS col0 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT - + 43 AS col0 FROM tab2 cor0
----
-43
-43
-43

query I rowsort
SELECT ALL + col2 + - + col0 AS col2 FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT ALL + COUNT( + 42 ) + - MAX( - col1 ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-5523
SELECT ALL + COUNT ( + 42 ) + - MAX ( - col1 ) FROM tab1
----
8

query I rowsort
SELECT DISTINCT 8 + - col0 - + + ( + col1 ) * + + 27 FROM tab0
----
-116
-2194
-646

query I rowsort
SELECT + 61 + + ( + + col1 ) FROM tab2
----
112
128
138

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 WHERE - col1 * - col2 > NULL
----

query I rowsort
SELECT + + 6 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT col2 + - 24 + + 60 FROM tab0
----
135
46
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5529
SELECT DISTINCT + + 57 - - + ( - MAX( + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5529
SELECT DISTINCT + + 57 - - + ( - MAX ( + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT 37 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-5530
SELECT 37 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
40

query I rowsort
SELECT - ( + col1 ) + - 85 FROM tab2 AS cor0
----
-136
-152
-162

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5532
SELECT DISTINCT + ( + 83 ) col0 FROM tab2 cor0 WHERE NOT + col0 IN ( + + col2 - + 66, col2 * + 10 + + col0 - + col0 * + col2, - 46, CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5532
SELECT DISTINCT + ( + 83 ) col0 FROM tab2 cor0 WHERE NOT + col0 IN ( + + col2 - + 66, col2 * + 10 + + col0 - + col0 * + col2, - 46, CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT DISTINCT + - 68 * - 1 * col0 FROM tab2 WHERE NOT 76 >= NULL
----

query I rowsort
SELECT - col0 FROM tab2 WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 89 * - col0 + 89 * 20 <= + - col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - col2 * + - 18 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 24 * + 98 + + 40 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5538
SELECT DISTINCT - CAST( + 86 AS SIGNED ) FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-5538
SELECT DISTINCT - CAST ( + 86 AS INTEGER ) FROM tab1
----
-86

query II rowsort
SELECT ALL col1 AS col0, col1 AS col1 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL ( - col1 ) * + + col2 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT 47 * + COUNT( * ) col1 FROM tab1
----
141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5541
SELECT 47 * + COUNT ( * ) col1 FROM tab1
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5542
SELECT DISTINCT - col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + col1 + 86 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5544
SELECT ALL col1 DIV + - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5544
SELECT ALL col1 / + - col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5545
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT - - COUNT( - ( - 6 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5546
SELECT - - COUNT ( - ( - 6 ) ) AS col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT + col0 AS col0, col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5548
SELECT ALL col1 + + col0 AS col1, col1 * + col0 * - col2, + CAST( + - 0 AS SIGNED ) AS col1 FROM tab1
----
9 values hashing to 417c288921895f31abb4f3fceeaa6fe1

skipif mysql # not compatible
query III rowsort label-5548
SELECT ALL col1 + + col0 AS col1, col1 * + col0 * - col2, + CAST ( + - 0 AS INTEGER ) AS col1 FROM tab1
----
9 values hashing to 417c288921895f31abb4f3fceeaa6fe1

onlyif mysql # DIV for integer division: 
query I rowsort label-5549
SELECT DISTINCT 5 * - 2 DIV ( 35 ) col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5549
SELECT DISTINCT 5 * - 2 / ( 35 ) col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT 60 * 76 + - col0 AS col1 FROM tab0
----
4463
4473
4545

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT COUNT( * ) col1 FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5551
SELECT COUNT ( * ) col1 FROM tab2, tab0 AS cor0
----
9

query I rowsort
SELECT ALL - + col2 * - 93 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( + col1 <= - 45 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5554
SELECT + COUNT( * ), COUNT( * ) FROM tab1 AS cor0 WHERE - ( - col1 ) * - col0 * col1 / - col2 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-5554
SELECT + COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 WHERE - ( - col1 ) * - col0 * col1 / - col2 IS NULL
----
0
0

query I rowsort
SELECT DISTINCT - - 88 * + 48 AS col2 FROM tab1 AS cor0
----
4224

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 52 * + 74 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 + - - 83, col0 col0 FROM tab0 AS cor0
----
2
15
62
87
82
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT 35 + COUNT( * ) AS col2 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-5558
SELECT 35 + COUNT ( * ) AS col2 FROM tab2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT DISTINCT + COUNT( * ) + + - 36 AS col1 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT + COUNT ( * ) + + - 36 AS col1 FROM tab1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT ( COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5560
SELECT ( COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query II rowsort
SELECT - ( - + 75 ) AS col1, - col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col0, 8 / col2, + col2 * + - 24, - 13, col1 )
----

query I rowsort
SELECT ALL col0 + + 55 FROM tab1 AS cor0
----
106
140
146

query I rowsort
SELECT col2 - + 72 FROM tab1 cor0
----
-13
-4
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5564
SELECT col1 - CAST( NULL AS SIGNED ) - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5564
SELECT col1 - CAST ( NULL AS INTEGER ) - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + 62 FROM tab1 AS cor0
----
3162
5270
5642

query I rowsort
SELECT ALL - col0 * - col0 * col2 AS col0 FROM tab1 AS cor0
----
249696
426275
563108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5567
SELECT - + COUNT( * ) - + MIN( - + col1 ) * + + COUNT( * ) * + 19 + - MIN( - col0 ) * + - CAST( NULL AS SIGNED ), + ( - - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5567
SELECT - + COUNT ( * ) - + MIN ( - + col1 ) * + + COUNT ( * ) * + 19 + - MIN ( - col0 ) * + - CAST ( NULL AS INTEGER ), + ( - - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5568
SELECT + CAST( - + col0 AS SIGNED ) * col2 + + 20 FROM tab2
----
-1038
-2540
-4330

skipif mysql # not compatible
query I rowsort label-5568
SELECT + CAST ( - + col0 AS INTEGER ) * col2 + + 20 FROM tab2
----
-1038
-2540
-4330

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT MIN( DISTINCT + - col2 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-5569
SELECT MIN ( DISTINCT + - col2 ) AS col1 FROM tab2
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( + - 15 ), - 68 col0 FROM tab2
----
-15
-68
-15
-68
-15
-68

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * 67 < + - col1 * + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5572
SELECT ALL - col2 * - + CAST( NULL AS SIGNED ) / + + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL - col2 * - + CAST ( NULL AS INTEGER ) / + + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 + ( + - 64 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT ALL MIN( - col2 ) AS col2 FROM tab2 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL MIN ( - col2 ) AS col2 FROM tab2 WHERE - col0 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + + 51 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5576
SELECT ALL + CAST( - COUNT( ALL - col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL + CAST ( - COUNT ( ALL - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5577
SELECT - COUNT( ALL CAST( NULL AS DECIMAL ) ) / - + CAST( NULL AS SIGNED ) + - + COUNT( * ) * + - ( - COUNT( * ) ) + + 83 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5577
SELECT - COUNT ( ALL CAST ( NULL AS REAL ) ) / - + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) * + - ( - COUNT ( * ) ) + + 83 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5578
SELECT COUNT( ( 11 ) ) * ( - COUNT( * ) ) + + + 2 + + ( - 13 ) DIV - 98 AS col2 FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-5578
SELECT COUNT ( ( 11 ) ) * ( - COUNT ( * ) ) + + + 2 + + ( - 13 ) / - 98 AS col2 FROM tab1 AS cor0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-5579
SELECT - 3 DIV + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5579
SELECT - 3 / + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT + col1 * + + col2 - - col0 * + 27 + 91 AS col0, 11 * - 62 * 49 + + - col0 + - col1 AS col2 FROM tab1 AS cor0
----
2681
-33508
2812
-33483
5744
-33556

onlyif mysql # DIV for integer division: 
query I rowsort label-5581
SELECT col1 DIV 45 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5581
SELECT col1 / 45 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT + + MIN( + + col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5582
SELECT + + MIN ( + + col0 ) AS col0 FROM tab2 AS cor0
----
46

query I rowsort
SELECT - col1 + 20 AS col1 FROM tab0 AS cor0
----
-1
-61
19

query I rowsort
SELECT DISTINCT ( col2 ) + + - 7 - - col1 AS col0 FROM tab2
----
110
118
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5585
SELECT ALL + col2 DIV + 60 + + 62 FROM tab1
----
62
63
63

skipif mysql # not compatible
query I rowsort label-5585
SELECT ALL + col2 / + 60 + + 62 FROM tab1
----
62
63
63

query II rowsort
SELECT DISTINCT + col2 AS col0, col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT ALL + COUNT( + col0 ) + + - SUM( ALL - col2 ) col1 FROM tab2
----
124

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5587
SELECT ALL + COUNT ( + col0 ) + + - SUM ( ALL - col2 ) col1 FROM tab2
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT ALL COUNT( * ) + - 16 AS col1 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL COUNT ( * ) + - 16 AS col1 FROM tab2
----
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col1, col2 * col1 * - - col1 + - 88 col1 FROM tab1 AS cor0
----
-59
1387
-68
150124
-96
18728

query I rowsort
SELECT DISTINCT + 74 * - 72 - 72 FROM tab2 AS cor0
----
-5400

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE ( NOT ( NOT NULL IS NOT NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * 5 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 col2 FROM tab1 AS cor0 WHERE NOT ( NOT - 40 >= - 17 )
----

query I rowsort
SELECT DISTINCT - col0 * - col2 + 87 FROM tab2 AS cor0
----
1145
2647
4437

query II rowsort
SELECT DISTINCT col1 + - 71, + col0 FROM tab1
----
-24
91
-57
51
-66
85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 / - ( + + col0 ) > - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 + col1 + - 41 < - 26
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT ALL + - ( - MIN( 25 ) ) * 19 AS col2 FROM tab2 AS cor0
----
475

skipif mysql # not compatible
query I rowsort label-5599
SELECT ALL + - ( - MIN ( 25 ) ) * 19 AS col2 FROM tab2 AS cor0
----
475

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT SUM( col1 ) col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5600
SELECT SUM ( col1 ) col2 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT DISTINCT - - COUNT( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5601
SELECT DISTINCT - - COUNT ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> + - col0 * 98 * + 28
----

query II rowsort
SELECT DISTINCT + col0 AS col2, col0 * + col0 FROM tab0
----
15
225
87
7569
97
9409

onlyif mysql # DIV for integer division: 
query I rowsort label-5604
SELECT + col0 DIV - - col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5604
SELECT + col0 / - - col0 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT DISTINCT + MIN( ALL - 69 ) FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-5605
SELECT DISTINCT + MIN ( ALL - 69 ) FROM tab1
----
-69

query II rowsort
SELECT DISTINCT 91 AS col0, col0 * - col1 AS col2 FROM tab1
----
91
-425
91
-4277
91
-714

query II rowsort
SELECT - 36, + col1 FROM tab2
----
-36
51
-36
67
-36
77

onlyif mysql # aggregate syntax: 
query II rowsort label-5608
SELECT ALL + 66 AS col1, ( SUM( ALL + + 81 ) ) + - 20 FROM tab0 AS cor0
----
66
223

skipif mysql # not compatible
query II rowsort label-5608
SELECT ALL + 66 AS col1, ( SUM ( ALL + + 81 ) ) + - 20 FROM tab0 AS cor0
----
66
223

query I rowsort
SELECT - + col0 * 80 AS col0 FROM tab1 AS cor0
----
-4080
-6800
-7280

onlyif mysql # DIV for integer division: 
query I rowsort label-5610
SELECT DISTINCT + + col1 * col0 + + col2 + 28 DIV - 98 AS col2 FROM tab0 AS cor0
----
1262
1837
196

skipif mysql # not compatible
query I rowsort label-5610
SELECT DISTINCT + + col1 * col0 + + col2 + 28 / - 98 AS col2 FROM tab0 AS cor0
----
1262
1837
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5611
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 - - col1 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5611
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 - - col1 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT - col2 / - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 9 IS NOT NULL
----

query I rowsort
SELECT ALL + ( 57 ) + - col2 FROM tab0
----
-42
10
47

query I rowsort
SELECT ALL col1 FROM tab2 WHERE ( col1 ) NOT IN ( col0 + 14 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT + 19 * - COUNT( * ) AS col0 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-5616
SELECT + 19 * - COUNT ( * ) AS col0 FROM tab0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT - MAX( + col0 ) * 53 AS col0 FROM tab2
----
-3975

skipif mysql # not compatible
query I rowsort label-5617
SELECT - MAX ( + col0 ) * 53 AS col0 FROM tab2
----
-3975

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT - COUNT( * ) * SUM( DISTINCT - col0 ) AS col2 FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-5618
SELECT - COUNT ( * ) * SUM ( DISTINCT - col0 ) AS col2 FROM tab2
----
555

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5619
SELECT 75 DIV 17 - - COUNT( * ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-5619
SELECT 75 / 17 - - COUNT ( * ) FROM tab1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5620
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - 9 FROM tab1 WHERE + 53 / - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5620
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - 9 FROM tab1 WHERE + 53 / - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT + SUM( DISTINCT - col2 ) AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-5621
SELECT + SUM ( DISTINCT - col2 ) AS col0 FROM tab1
----
-223

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 26 * 26 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= col1 - col2 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT + 9 - - COUNT( col2 ) AS col0 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-5624
SELECT + 9 - - COUNT ( col2 ) AS col0 FROM tab0
----
12

query I rowsort
SELECT DISTINCT + 67 + - col1 * + ( col2 * col1 ) AS col1 FROM tab2
----
-237093
-260295
-59756

query I rowsort
SELECT DISTINCT + col2 * 43 + + 51 * col2 AS col1 FROM tab1 WHERE ( + 86 / - 22 ) < col0
----
5546
6392
9024

query I rowsort
SELECT DISTINCT 70 + col1 FROM tab1
----
117
75
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5628
SELECT col0 / ( CAST( NULL AS SIGNED ) * - col1 ) + 32 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5628
SELECT col0 / ( CAST ( NULL AS INTEGER ) * - col1 ) + 32 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 89 * + col0 ) IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE col1 * - col2 > col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 BETWEEN + 60 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + - 43 AS col2 FROM tab2
----
-20
-3
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT ALL 13 * + COUNT( - col1 ) AS col1 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL 13 * + COUNT ( - col1 ) AS col1 FROM tab2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5634
SELECT - col0 DIV + 21 FROM tab0
----
-4
-4
0

skipif mysql # not compatible
query I rowsort label-5634
SELECT - col0 / + 21 FROM tab0
----
-4
-4
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5635
SELECT - col1 DIV 28 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5635
SELECT - col1 / 28 AS col2 FROM tab1
----
-1
0
0

query I rowsort
SELECT 18 * - col2 AS col1 FROM tab2
----
-1044
-414
-720

query I rowsort
SELECT - 48 * + 56 AS col1 FROM tab1
----
-2688
-2688
-2688

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE ( NULL ) NOT BETWEEN 73 * - col0 AND col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= - 86 * + col0
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND + col2 + + 70 / 50
----

query I rowsort
SELECT + 65 + + col2 AS col1 FROM tab1 cor0
----
124
133
161

query I rowsort
SELECT ALL - 48 * 31 FROM tab0 AS cor0
----
-1488
-1488
-1488

query I rowsort
SELECT ALL 35 - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-12
21
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5644
SELECT ALL ( - CAST( 96 AS SIGNED ) ) * + col0 FROM tab2 AS cor0
----
-4416
-6144
-7200

skipif mysql # not compatible
query I rowsort label-5644
SELECT ALL ( - CAST ( 96 AS INTEGER ) ) * + col0 FROM tab2 AS cor0
----
-4416
-6144
-7200

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT + col1 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-5646
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT ALL COUNT( * ) * - ( COUNT( * ) * COUNT( * ) ) AS col2 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL COUNT ( * ) * - ( COUNT ( * ) * COUNT ( * ) ) AS col2 FROM tab1
----
-27

query I rowsort
SELECT ALL 18 - col0 * col0 AS col0 FROM tab2
----
-2098
-4078
-5607

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT + 64 * + COUNT( * ) FROM tab1 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-5649
SELECT + 64 * + COUNT ( * ) FROM tab1 AS cor0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT + COUNT( * ) * + 83 FROM tab0 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-5650
SELECT + COUNT ( * ) * + 83 FROM tab0 AS cor0
----
249

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 cor0 WHERE NULL NOT BETWEEN ( - col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT + 53 * + col2 AS col0 FROM tab2 AS cor0
----
1219
2120
3074

onlyif mysql # DIV for integer division: 
query I rowsort label-5653
SELECT DISTINCT + - col0 DIV col0 AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5653
SELECT DISTINCT + - col0 / col0 AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5654
SELECT ALL ( - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5654
SELECT ALL ( - CAST ( NULL AS REAL ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT 11 FROM tab2 WHERE NOT - col1 IS NULL
----
11
11
11

query I rowsort
SELECT ALL 44 FROM tab1 WHERE NOT 92 IS NULL
----
44
44
44

query I rowsort
SELECT DISTINCT - ( 15 ) * - col1 AS col1 FROM tab0
----
1215
15
315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5659
SELECT ALL CAST( NULL AS SIGNED ) * 54 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5659
SELECT ALL CAST ( NULL AS INTEGER ) * 54 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT ( - col2 ) <= NULL
----

query I rowsort
SELECT + - 48 * col1 AS col1 FROM tab2 AS cor0
----
-2448
-3216
-3696

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT MAX( + + col0 ) col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5662
SELECT MAX ( + + col0 ) col2 FROM tab2 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5663
SELECT ( + 48 ) DIV 73 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5663
SELECT ( + 48 ) / 73 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT ALL - SUM( DISTINCT + + 91 ) AS col0 FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL - SUM ( DISTINCT + + 91 ) AS col0 FROM tab2
----
-91

query I rowsort
SELECT 15 AS col2 FROM tab2 WHERE NOT - 48 / + col2 NOT IN ( - ( - col1 ) )
----

query I rowsort
SELECT + col1 * + 88 AS col1 FROM tab0
----
1848
7128
88

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col1 < - col1 + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + - col0 + - 58 + - col1 FROM tab1 AS cor0
----
-105
-63
-72

query II rowsort
SELECT ALL + col1 AS col2, 12 AS col1 FROM tab1 AS cor0
----
14
12
47
12
5
12

query I rowsort
SELECT DISTINCT + ( + 82 ) + - 26 FROM tab0 AS cor0
----
56

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 37 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 89 + col1 col0 FROM tab0 AS cor0
----
19
7
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 / - col0 + + col2 IN ( - col1 * col0 )
----

query I rowsort
SELECT - col2 - - col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-21
-54
-82

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 40 ) IS NULL
----

query I rowsort
SELECT ALL col0 + col2 + - 61 FROM tab1
----
83
86
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5677
SELECT ALL COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL BETWEEN + col2 AND col1 + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL BETWEEN + col2 AND col1 + - 26
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + 4 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 18 + col2 / - 35 >= 0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5680
SELECT DISTINCT col0 * col1 - - CAST( + col1 AS SIGNED ) + + 71 AS col2 FROM tab1
----
4395
501
799

skipif mysql # not compatible
query I rowsort label-5680
SELECT DISTINCT col0 * col1 - - CAST ( + col1 AS INTEGER ) + + 71 AS col2 FROM tab1
----
4395
501
799

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT ALL - + COUNT( * ) - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL - + COUNT ( * ) - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT DISTINCT col1 * + 84 + 85 FROM tab2 AS cor0
----
4369
5713
6553

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT ALL - ( MIN( + col2 ) ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL - ( MIN ( + col2 ) ) FROM tab0 cor0
----
-10

query I rowsort
SELECT DISTINCT - - 72 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + + 15 AS col0 FROM tab2 AS cor0
----
-31
-49
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT ALL ( - + MAX( - - ( - 51 ) ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL ( - + MAX ( - - ( - 51 ) ) ) FROM tab1
----
51

query I rowsort
SELECT DISTINCT + col2 + col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ( - 84 ) FROM tab2 cor0
----
-84
-84
-84

query I rowsort
SELECT - 35 * col2 FROM tab0 AS cor0
----
-1645
-3465
-350

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - 58 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5691
SELECT ALL 47 FROM tab0 cor0 WHERE col0 / + col2 <> 82 * + CAST( + 6 AS DECIMAL ) - - 81
----
47
47
47

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL 47 FROM tab0 cor0 WHERE col0 / + col2 <> 82 * + CAST ( + 6 AS REAL ) - - 81
----
47
47
47

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE ( - col1 ) = NULL
----

query II rowsort
SELECT ALL + col0 AS col2, + col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 24 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5694
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 24 IS NULL
----
-3

query I rowsort
SELECT - 48 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 43 * - col0 AS col2 FROM tab1 cor0
----
-2193
-3655
-3913

query I rowsort
SELECT ALL - ( 16 ) FROM tab1 AS cor0
----
-16
-16
-16

query I rowsort
SELECT col1 * - ( - col1 ) * + col1 FROM tab2
----
132651
300763
456533

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( - ( + col0 ) ) + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - col0 col2, ( ( - + col0 ) ) AS col1 FROM tab2
----
-2116
-46
-4096
-64
-5625
-75

query II rowsort
SELECT DISTINCT col0 AS col1, + col1 - - + col0 FROM tab0
----
15
96
87
108
97
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT + SUM( - col1 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5702
SELECT + SUM ( - col1 ) AS col1 FROM tab1
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 55 col2, col2 * + col2 AS col0 FROM tab2
----
55
1600
55
3364
55
529

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > ( - 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT SUM( ALL - - 14 ) * - + MAX( - + 95 ) * 95 FROM tab2
----
379050

skipif mysql # not compatible
query I rowsort label-5705
SELECT SUM ( ALL - - 14 ) * - + MAX ( - + 95 ) * 95 FROM tab2
----
379050

onlyif mysql # DIV for integer division: 
query I rowsort label-5706
SELECT ALL - 81 DIV col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL - 81 / col0 FROM tab0
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT ALL MIN( DISTINCT col0 ) * + COUNT( - + col2 ) AS col1 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL MIN ( DISTINCT col0 ) * + COUNT ( - + col2 ) AS col1 FROM tab0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5708
SELECT DISTINCT + col1 DIV - + 57 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-5708
SELECT DISTINCT + col1 / - + 57 FROM tab2
----
-1
0

query II rowsort
SELECT DISTINCT col0, ( 42 ) AS col1 FROM tab0 AS cor0
----
15
42
87
42
97
42

query II rowsort
SELECT - + 17 + - col0, + col2 * + - col2 AS col1 FROM tab0 AS cor0
----
-104
-100
-114
-9801
-32
-2209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) col0 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5712
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab1 WHERE + 26 * + CAST( NULL AS DECIMAL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5712
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 WHERE + 26 * + CAST ( NULL AS REAL ) > NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5713
SELECT + col1 + col1 DIV + col2 FROM tab2
----
53
68
78

skipif mysql # not compatible
query I rowsort label-5713
SELECT + col1 + col1 / + col2 FROM tab2
----
53
68
78

query I rowsort
SELECT ALL 20 + + col0 * - 47 FROM tab2
----
-2142
-2988
-3505

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT - - col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + 89 + + - col2 + + + col1 FROM tab0 AS cor0
----
-9
100
123

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5718
SELECT ALL * FROM tab2 WHERE + CAST( + + col0 AS SIGNED ) - col2 = ( + 13 )
----

skipif mysql # not compatible
query III rowsort label-5718
SELECT ALL * FROM tab2 WHERE + CAST ( + + col0 AS INTEGER ) - col2 = ( + 13 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col2, col2 * - 21 col1 FROM tab2
----
51
-483
67
-1218
77
-840

query I rowsort
SELECT - - col2 FROM tab1 WHERE + - col1 * + col1 < - col1 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT 79 - + - 4 + MAX( DISTINCT - - 7 ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-5721
SELECT 79 - + - 4 + MAX ( DISTINCT - - 7 ) FROM tab0
----
90

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + 73 + - col1, 99 / + + 81 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT - 51 + - + COUNT( * ) FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-5723
SELECT - 51 + - + COUNT ( * ) FROM tab1
----
-54

query I rowsort
SELECT ALL 4 + - 49 + 43 + - 36 * - - col0 AS col1 FROM tab0
----
-3134
-3494
-542

query I rowsort
SELECT ALL - 57 * + 35 - + + 62 * + col1 AS col1 FROM tab2
----
-5157
-6149
-6769

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5726
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) + + + col2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5726
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) + + + col2 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT - 78 + 17 AS col1 FROM tab2 AS cor0
----
-61
-61
-61

query II rowsort
SELECT ALL - - 50 * + col0 - col2, col2 FROM tab0 AS cor0
----
4340
10
4751
99
703
47

query I rowsort
SELECT 69 / + - ( + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT + + MIN( ALL - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5730
SELECT + + MIN ( ALL - col0 ) FROM tab1 AS cor0
----
-91

query II rowsort
SELECT DISTINCT + 76 * + col0 AS col1, - col0 FROM tab0
----
1140
-15
6612
-87
7372
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 / col0 + col2 - + 33 * - col1 + + - col0 ) IS NULL
----

query I rowsort
SELECT ALL + 58 * col0 FROM tab0 cor0
----
5046
5626
870

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT ALL + - COUNT( + col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL + - COUNT ( + col2 ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 col1 FROM tab0 AS cor0
----
-80
-80
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5736
SELECT DISTINCT - 85 * CAST( NULL AS SIGNED ) - - + col1 + - CAST( col0 AS SIGNED ) FROM tab2 AS cor0 WHERE col1 BETWEEN - + col0 * col2 * + + col0 AND - 87
----

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT - 85 * CAST ( NULL AS INTEGER ) - - + col1 + - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0 WHERE col1 BETWEEN - + col0 * col2 * + + col0 AND - 87
----

query I rowsort
SELECT + col2 * col0 + 33 - + - 87 FROM tab0 AS cor0
----
825
9723
990

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5738
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( + 32 AS SIGNED ) - 67 + - 84 + col2 + 42 > NULL
----

skipif mysql # not compatible
query III rowsort label-5738
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( + 32 AS INTEGER ) - 67 + - 84 + col2 + 42 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT + COUNT( - 36 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5739
SELECT + COUNT ( - 36 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT - COUNT( + col1 ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5740
SELECT - COUNT ( + col1 ) col0 FROM tab1
----
-3

query II rowsort
SELECT col0 AS col2, 13 AS col0 FROM tab2 WHERE NOT NULL <> + 75 * - - col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 + - 98 * col1 * + + col2 * - col2 * - col0 = - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5743
SELECT DISTINCT col0 DIV - 99 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5743
SELECT DISTINCT col0 / - 99 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5744
SELECT ALL - 20 * - CAST( + ( col0 ) AS SIGNED ) AS col0 FROM tab2
----
1280
1500
920

skipif mysql # not compatible
query I rowsort label-5744
SELECT ALL - 20 * - CAST ( + ( col0 ) AS INTEGER ) AS col0 FROM tab2
----
1280
1500
920

query I rowsort
SELECT DISTINCT + 71 FROM tab1 WHERE NOT - col0 IS NULL
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT + + MIN( - col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5746
SELECT + + MIN ( - col2 ) AS col1 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT ALL - col0 * - ( + - col0 ) FROM tab0 AS cor0
----
-225
-7569
-9409

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * 49 NOT BETWEEN - + col1 + - ( col2 ) AND - 53
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 12 col0 FROM tab1 AS cor0
----
-168
-564
-60

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 61 * + 43 - - 99 * - + col2 NOT BETWEEN ( col0 ) AND NULL )
----
15
81
47
97
1
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( - 20 ) AND - col2 + - col2
----

query I rowsort
SELECT DISTINCT + + 65 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5753
SELECT + col0, + 23 * + 30 + + col0 / col1 AS col0 FROM tab2 WHERE + col0 - + + col2 IN ( + - col2 * - col0 * CAST( - + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query II rowsort label-5753
SELECT + col0, + 23 * + 30 + + col0 / col1 AS col0 FROM tab2 WHERE + col0 - + + col2 IN ( + - col2 * - col0 * CAST ( - + col0 AS INTEGER ) )
----

query I rowsort
SELECT - col1 + col1 * + col2 + - col1 AS col1 FROM tab0 AS cor0
----
168
3645
97

query I rowsort
SELECT DISTINCT + col0 - + - 92 FROM tab1 AS cor0
----
143
177
183

query I rowsort
SELECT DISTINCT col1 * + + col2 * 11 * col2 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) IN ( + col1, - col2 )
----

query I rowsort
SELECT ALL 66 + 65 FROM tab1 cor0
----
131
131
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5758
SELECT - - col1 / - CAST( NULL AS SIGNED ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5758
SELECT - - col1 / - CAST ( NULL AS INTEGER ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * col1 col0, + ( + - 48 ) FROM tab2
----
-2601
-48
-4489
-48
-5929
-48

query I rowsort
SELECT - col0 * + ( - col1 ) * - col1 AS col2 FROM tab2
----
-119646
-336675
-379456

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT - COUNT( DISTINCT + 16 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5761
SELECT - COUNT ( DISTINCT + 16 ) FROM tab2
----
-1

query I rowsort
SELECT DISTINCT - 87 + 86 AS col0 FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5763
SELECT DISTINCT + 69 * - col1 + - col0 DIV + col0 AS col1 FROM tab1
----
-3244
-346
-967

skipif mysql # not compatible
query I rowsort label-5763
SELECT DISTINCT + 69 * - col1 + - col0 / + col0 AS col1 FROM tab1
----
-3244
-346
-967

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5764
SELECT - - SUM( - - CAST( - + col0 AS SIGNED ) ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5764
SELECT - - SUM ( - - CAST ( - + col0 AS INTEGER ) ) FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT SUM( ALL - + col1 ) FROM tab2 AS cor0 WHERE NOT + 1 < - col0 * - ( 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5765
SELECT SUM ( ALL - + col1 ) FROM tab2 AS cor0 WHERE NOT + 1 < - col0 * - ( 98 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5766
SELECT MIN( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5766
SELECT MIN ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5767
SELECT - col0 * + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5767
SELECT - col0 * + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5768
SELECT 83 DIV col0 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5768
SELECT 83 / col0 AS col0 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5769
SELECT + CAST( 37 AS SIGNED ) col1 FROM tab2 AS cor0
----
37
37
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5769
SELECT + CAST ( 37 AS INTEGER ) col1 FROM tab2 AS cor0
----
37
37
37

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN + 81 AND NULL
----

query I rowsort
SELECT - 3 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 >= col0
----
-3
-3
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = 58
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - 77 ) col2 FROM tab1 cor0
----
77
77
77

query I rowsort
SELECT DISTINCT - 81 * + - col1 FROM tab2
----
4131
5427
6237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5775
SELECT + CAST( - + col0 AS SIGNED ) col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5775
SELECT + CAST ( - + col0 AS INTEGER ) col1 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND col0 * - col1
----

query I rowsort
SELECT DISTINCT 58 FROM tab2 WHERE NOT NULL NOT IN ( + 2, col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5778
SELECT COUNT( * ), 66 col1 FROM tab1 WHERE ( - + col2 ) IS NOT NULL
----
3
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5778
SELECT COUNT ( * ), 66 col1 FROM tab1 WHERE ( - + col2 ) IS NOT NULL
----
3
66

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 30 IS NOT NULL
----

query I rowsort
SELECT ALL + 28 + + 87 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8ea29c11e2d920a09e8656cafe5a9642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 75 - 95 * - + col2 col0 FROM tab1
----
5680
6535
9195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5782
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5782
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) col0 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 + - 29 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col2 - - - 38 FROM tab1 AS cor0
----
-106
-134
-97

query I rowsort
SELECT ALL - ( col2 ) * - 30 * col1 * - col0 FROM tab0 AS cor0
----
-1713150
-288090
-548100

query I rowsort
SELECT ALL + 64 * + col0 + - col2 AS col1 FROM tab0 AS cor0
----
5558
6109
913

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5787
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * col1 * col1 / + CAST( + CAST( + - col1 AS DECIMAL ) AS SIGNED ) + col1 + - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5787
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * col1 * col1 / + CAST ( + CAST ( + - col1 AS REAL ) AS INTEGER ) + col1 + - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5788
SELECT - 58 - + 22 DIV 7 AS col2 FROM tab0 AS cor0
----
-61
-61
-61

skipif mysql # not compatible
query I rowsort label-5788
SELECT - 58 - + 22 / 7 AS col2 FROM tab0 AS cor0
----
-61
-61
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + 78 col1 FROM tab1 cor0
----
-10
-19
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT - COUNT( * ) + - - ( + + 21 ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-5790
SELECT - COUNT ( * ) + - - ( + + 21 ) FROM tab2
----
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5791
SELECT ALL + col2 + - col0 * + 6 + + col1 / col0 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5791
SELECT ALL + col2 + - col0 * + 6 + + col1 / col0 + - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - - 44 FROM tab0
----
-3828
-4268
-660

query I rowsort
SELECT col1 * - + 26 AS col0 FROM tab1
----
-1222
-130
-364

query II rowsort
SELECT ALL - col2, + col2 AS col1 FROM tab2
----
-23
23
-40
40
-58
58

query I rowsort
SELECT + - col2 / col1 + - 8 * + 42 AS col2 FROM tab0 WHERE NOT + col2 * 79 * col0 * + col1 + + 66 + col2 + - + ( + - 83 ) * - col0 * - - col0 / + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 30 * col0 NOT BETWEEN NULL AND col2 / + + ( col1 ) + - 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - + 44, + col0 AS col1 FROM tab1 AS cor0
----
-44
51
-44
85
-44
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT ALL COUNT( * ) + 9 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
12

skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL COUNT ( * ) + 9 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
12

query I rowsort
SELECT - 37 * - 13 AS col0 FROM tab0 cor0
----
481
481
481

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + col2 ) col2, 87 FROM tab0
----
10
87
47
87
99
87

query I rowsort
SELECT - - col2 * - + col2 AS col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT - 25 AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= col1 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5803
SELECT - CAST( - AVG ( + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-5803
SELECT - CAST ( - AVG ( + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
40

query I rowsort
SELECT - + 90 + + 84 * + - col1 FROM tab2 AS cor0
----
-4374
-5718
-6558

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5805
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 / 90 NOT BETWEEN 25 + + CAST( NULL AS SIGNED ) + + + ( col2 ) * + 59 + + col1 AND + ( - 12 ) + + CAST( NULL AS SIGNED ) * col2
----

skipif mysql # not compatible
query III rowsort label-5805
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 / 90 NOT BETWEEN 25 + + CAST ( NULL AS INTEGER ) + + + ( col2 ) * + 59 + + col1 AND + ( - 12 ) + + CAST ( NULL AS INTEGER ) * col2
----

query I rowsort
SELECT DISTINCT - col0 + 80 * + - col0 + col1 FROM tab1
----
-4117
-6880
-7324

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 16 col1 FROM tab0
----
16

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 21 - + - 58 + + col1 * - + col2 * 44 + - col0 ) >= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT MIN( ALL - col1 ) FROM tab1 WHERE NULL IS NULL
----
-47

skipif mysql # not compatible
query I rowsort label-5809
SELECT MIN ( ALL - col1 ) FROM tab1 WHERE NULL IS NULL
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5810
SELECT ALL - 96 DIV + 5 + + col1 * 23 * - col2 * + col2 + + ( + 97 ) + - col1 + ( - col1 ) FROM tab2 AS cor0
----
-2833676
-5183980
-620541

skipif mysql # not compatible
query I rowsort label-5810
SELECT ALL - 96 / + 5 + + col1 * 23 * - col2 * + col2 + + ( + 97 ) + - col1 + ( - col1 ) FROM tab2 AS cor0
----
-2833676
-5183980
-620541

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5811
SELECT + + ( + col0 ) + - - CAST( NULL AS DECIMAL ) * + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5811
SELECT + + ( + col0 ) + - - CAST ( NULL AS REAL ) * + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 58 * ( + + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT DISTINCT 42 - - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-5813
SELECT DISTINCT 42 - - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
39

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = col2 * 1
----

query I rowsort
SELECT ALL + 46 * - 39 AS col1 FROM tab2 AS cor0
----
-1794
-1794
-1794

query I rowsort
SELECT DISTINCT - - 6 * + 10 AS col1 FROM tab2 AS cor0
----
60

query I rowsort
SELECT + ( - - col1 ) FROM tab1 WHERE NOT + - col0 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT - SUM( DISTINCT ( - 53 ) ) AS col2 FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-5818
SELECT - SUM ( DISTINCT ( - 53 ) ) AS col2 FROM tab0
----
53

query I rowsort
SELECT DISTINCT - 42 * + col2 * col0 AS col1 FROM tab0
----
-29610
-36540
-403326

query I rowsort
SELECT DISTINCT 10 * + - col2 FROM tab2 AS cor0
----
-230
-400
-580

onlyif mysql # DIV for integer division: 
query I rowsort label-5821
SELECT DISTINCT col1 DIV + col0 + col1 + - + 24 FROM tab2 cor0
----
28
43
54

skipif mysql # not compatible
query I rowsort label-5821
SELECT DISTINCT col1 / + col0 + col1 + - + 24 FROM tab2 cor0
----
28
43
54

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 70 - - 47 - + + col0
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
59
68
96

query I rowsort
SELECT col0 + 92 FROM tab1
----
143
177
183

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5825
SELECT * FROM tab0 WHERE NOT - CAST( + 48 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5825
SELECT * FROM tab0 WHERE NOT - CAST ( + 48 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5826
SELECT * FROM tab1 cor0 WHERE CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5826
SELECT * FROM tab1 cor0 WHERE CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5827
SELECT DISTINCT + COUNT( * ) AS col2, + ( - MIN( DISTINCT col1 ) ) * - COUNT( col2 ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5827
SELECT DISTINCT + COUNT ( * ) AS col2, + ( - MIN ( DISTINCT col1 ) ) * - COUNT ( col2 ) FROM tab0 AS cor0
----
3
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col1 * - + 56 / + - col2 AND 0 / col1
----

query I rowsort
SELECT DISTINCT col1 + + 64 FROM tab2 AS cor0
----
115
131
141

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT + MIN( - - ( + col0 ) ) AS col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-5830
SELECT + MIN ( - - ( + col0 ) ) AS col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5831
SELECT ALL + 36 + 93 DIV 92 * col0 * 60 col2 FROM tab0
----
5256
5856
936

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5831
SELECT ALL + 36 + 93 / 92 * col0 * 60 col2 FROM tab0
----
5256
5856
936

query I rowsort
SELECT ALL - col0 + - col2 * + col0 FROM tab1
----
-4947
-5100
-6279

onlyif mysql # DIV for integer division: 
query I rowsort label-5833
SELECT col2 * col2 DIV col0 * col0 + col1 - + - col2 FROM tab0
----
118
2333
9897

skipif mysql # not compatible
query I rowsort label-5833
SELECT col2 * col2 / col0 * col0 + col1 - + - col2 FROM tab0
----
118
2333
9897

query I rowsort
SELECT ALL + + col1 * col1 * 29 FROM tab0 cor0
----
12789
190269
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5835
SELECT ALL - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col1, COUNT( * ) DIV COUNT( * ) FROM tab1 AS cor0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5835
SELECT ALL - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) / COUNT ( * ) FROM tab1 AS cor0
----
NULL
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 24 AS col1, col1 * - col1 col1 FROM tab0
----
-24
-1
-24
-441
-24
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5837
SELECT * FROM tab0 WHERE CAST( - 73 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5837
SELECT * FROM tab0 WHERE CAST ( - 73 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 1 + - col0 AS col2 FROM tab0
----
-14
-86
-96

query III rowsort
SELECT col1 AS col2, col0, + - col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to f3a14c9fab1d27b9829155421f22b53e

query I rowsort
SELECT DISTINCT 13 * - + col2 FROM tab0 cor0
----
-1287
-130
-611

query I rowsort
SELECT ALL - ( + - 24 ) AS col0 FROM tab0 AS cor0
----
24
24
24

query II rowsort
SELECT DISTINCT - col1, ( - - col2 ) AS col0 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 90 col1 FROM tab1 AS cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT ALL + + COUNT( ALL - - col2 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5844
SELECT ALL + + COUNT ( ALL - - col2 ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 95 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5847
SELECT - 48 * + MAX( ALL + col0 ) * - - ( + CAST( + COUNT( * ) AS SIGNED ) ) FROM tab0
----
-13968

skipif mysql # not compatible
query I rowsort label-5847
SELECT - 48 * + MAX ( ALL + col0 ) * - - ( + CAST ( + COUNT ( * ) AS INTEGER ) ) FROM tab0
----
-13968

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT DISTINCT COUNT( * ) * - MAX( ALL + 54 ) + - COUNT( * ) AS col0 FROM tab0, tab2 AS cor0
----
-495

skipif mysql # not compatible
query I rowsort label-5848
SELECT DISTINCT COUNT ( * ) * - MAX ( ALL + 54 ) + - COUNT ( * ) AS col0 FROM tab0, tab2 AS cor0
----
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab1 WHERE + col0 < + col2 - col2
----
0

skipif mysql # not compatible
query I rowsort label-5849
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab1 WHERE + col0 < + col2 - col2
----
0

query I rowsort
SELECT DISTINCT + 27 FROM tab0 WHERE NOT - col0 IS NULL
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT ALL - ( 22 ) * + COUNT( * ) AS col0 FROM tab0 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5851
SELECT ALL - ( 22 ) * + COUNT ( * ) AS col0 FROM tab0 cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 4 * - + col1 AS col2, + col2 col2 FROM tab2 AS cor0
----
-204
23
-268
58
-308
40

onlyif mysql # aggregate syntax: 
query II rowsort label-5853
SELECT - - MAX( DISTINCT - col1 ) AS col1, SUM( ALL - 8 ) FROM tab1 AS cor0
----
-5
-24

skipif mysql # not compatible
query II rowsort label-5853
SELECT - - MAX ( DISTINCT - col1 ) AS col1, SUM ( ALL - 8 ) FROM tab1 AS cor0
----
-5
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT + MIN( DISTINCT + 37 ) AS col1 FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-5854
SELECT + MIN ( DISTINCT + 37 ) AS col1 FROM tab1 AS cor0
----
37

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN + col0 / - - col1 - + + col2 AND 99 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT DISTINCT - - MAX( DISTINCT + col1 ) AS col2 FROM tab1 WHERE NOT - - col2 = col0 - + - col2
----
47

skipif mysql # not compatible
query I rowsort label-5856
SELECT DISTINCT - - MAX ( DISTINCT + col1 ) AS col2 FROM tab1 WHERE NOT - - col2 = col0 - + - col2
----
47

query I rowsort
SELECT - 34 + + col1 AS col1 FROM tab0 AS cor0
----
-13
-33
47

query I rowsort
SELECT + col2 * - 69 + col0 * - col0 + + - 83 + 82 AS col0 FROM tab2 AS cor0
----
-3704
-6857
-9628

query I rowsort
SELECT 64 + + + col1 + - + 0 + - ( ( - + col0 ) ) FROM tab0 AS cor0
----
160
162
172

query II rowsort
SELECT + - col0 AS col0, col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL > - col0 )
----

query I rowsort
SELECT DISTINCT + + 20 AS col1 FROM tab2 cor0
----
20

query I rowsort
SELECT - 99 + - col0 FROM tab0 AS cor0
----
-114
-186
-196

query I rowsort
SELECT ALL - 75 + - + col0 AS col0 FROM tab0
----
-162
-172
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 WHERE NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5864
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 WHERE NULL <= ( NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5865
SELECT DISTINCT + ( + - AVG ( ALL - - col1 ) ) / CAST( NULL AS SIGNED ) * + COUNT( * ) + 98 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5865
SELECT DISTINCT + ( + - AVG ( ALL - - col1 ) ) / CAST ( NULL AS INTEGER ) * + COUNT ( * ) + 98 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 49 + col1 AS col1 FROM tab1
----
54
63
96

query II rowsort
SELECT - 5 AS col0, + col1 AS col2 FROM tab2
----
-5
51
-5
67
-5
77

query I rowsort
SELECT ALL + col0 * + 8 + + 83 AS col1 FROM tab0
----
203
779
859

query I rowsort
SELECT DISTINCT 12 - - 86 FROM tab0
----
98

query II rowsort
SELECT 60 AS col1, 37 - - col1 FROM tab2
----
60
104
60
114
60
88

query I rowsort
SELECT + col2 * - + ( - + col2 ) * + - col2 FROM tab1 AS cor0
----
-205379
-314432
-884736

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT - + COUNT( - 9 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5872
SELECT - + COUNT ( - 9 ) AS col0 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL col2 AS col1, + 43 AS col1 FROM tab0 cor0
----
10
43
47
43
99
43

query I rowsort
SELECT - col2 + + 61 AS col2 FROM tab1
----
-35
-7
2

query III rowsort
SELECT 69 + 46, 92 AS col1, + 14 AS col1 FROM tab2
----
9 values hashing to 4e49151efa9914237bd468f51dd8d24d

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT + ( + - 55 ) + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( col1 * - col1 ) IS NULL
----
-52

skipif mysql # not compatible
query I rowsort label-5876
SELECT + ( + - 55 ) + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( col1 * - col1 ) IS NULL
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-5877
SELECT ALL - 51 * + 51 AS col2, COUNT( * ) FROM tab0 AS cor0
----
-2601
3

skipif mysql # not compatible
query II rowsort label-5877
SELECT ALL - 51 * + 51 AS col2, COUNT ( * ) FROM tab0 AS cor0
----
-2601
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT DISTINCT 58 + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
61

skipif mysql # not compatible
query I rowsort label-5878
SELECT DISTINCT 58 + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5879
SELECT + MIN( - CAST( + col1 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5879
SELECT + MIN ( - CAST ( + col1 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5880
SELECT ALL - 81 * MAX( ALL + - CAST( NULL AS SIGNED ) ) * - 97 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL - 81 * MAX ( ALL + - CAST ( NULL AS INTEGER ) ) * - 97 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 96 AS col1 FROM tab2 AS cor0
----
96
96
96

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 51 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT ALL MIN( - 23 ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-5883
SELECT ALL MIN ( - 23 ) AS col2 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT ALL - COUNT( * ) * - - 64 AS col1 FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL - COUNT ( * ) * - - 64 AS col1 FROM tab1
----
-192

query III rowsort
SELECT * FROM tab2 WHERE NOT 76 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5886
SELECT - CAST( + COUNT( ALL + - col2 ) AS SIGNED ) * - 10 * - + 8 FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-5886
SELECT - CAST ( + COUNT ( ALL + - col2 ) AS INTEGER ) * - 10 * - + 8 FROM tab1
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT DISTINCT + COUNT( * ) * 5 AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5887
SELECT DISTINCT + COUNT ( * ) * 5 AS col2 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT ALL 16 * + MIN( DISTINCT ( - - ( - 7 ) ) ) col1 FROM tab1
----
-112

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5888
SELECT ALL 16 * + MIN ( DISTINCT ( - - ( - 7 ) ) ) col1 FROM tab1
----
-112

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * - - ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL ( 77 ) * - col1 AS col2 FROM tab1 AS cor0
----
-1078
-3619
-385

query II rowsort
SELECT + 11 AS col0, col0 AS col1 FROM tab2 AS cor0
----
11
46
11
64
11
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 42 NOT BETWEEN + - col2 AND 50 / col0 * - 4
----

query I rowsort
SELECT DISTINCT + 59 + - col1 AS col0 FROM tab0 cor0
----
-22
38
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 71 col1 FROM tab1 cor0
----
3621
6035
6461

query I rowsort
SELECT 60 + + 7 FROM tab2
----
67
67
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT + + col1 - - 42 AS col2 FROM tab2 AS cor0 WHERE col0 + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col0 + + - col1 col0 FROM tab1 AS cor0
----
420
4230
700

onlyif mysql # aggregate syntax: 
query II rowsort label-5899
SELECT DISTINCT SUM( DISTINCT - col2 ) * - 11 + COUNT( * ) AS col2, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
1334
3

skipif mysql # not compatible
query II rowsort label-5899
SELECT DISTINCT SUM ( DISTINCT - col2 ) * - 11 + COUNT ( * ) AS col2, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
1334
3

query I rowsort
SELECT ALL - col0 * - 98 FROM tab0 AS cor0 WHERE NOT ( - col0 ) NOT BETWEEN ( NULL ) AND - 77 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5901
SELECT ALL - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-5901
SELECT ALL - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT DISTINCT - SUM( ALL + - col0 ) * - 92 AS col0 FROM tab2 AS cor0
----
-17020

skipif mysql # not compatible
query I rowsort label-5902
SELECT DISTINCT - SUM ( ALL + - col0 ) * - 92 AS col0 FROM tab2 AS cor0
----
-17020

query I rowsort
SELECT DISTINCT - - 77 + + + 56 AS col0 FROM tab1 AS cor0
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-5904
SELECT + MIN( ALL + - col2 ) - - 48 AS col2, COUNT( * ) FROM tab1
----
-48
3

skipif mysql # not compatible
query II rowsort label-5904
SELECT + MIN ( ALL + - col2 ) - - 48 AS col2, COUNT ( * ) FROM tab1
----
-48
3

query I rowsort
SELECT DISTINCT 22 + - col1 AS col0 FROM tab1
----
-25
17
8

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 + - col0 <> - 36
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-5907
SELECT ALL 20 + - + ( + COUNT( * ) ) col0, + 69 FROM tab2
----
17
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5907
SELECT ALL 20 + - + ( + COUNT ( * ) ) col0, + 69 FROM tab2
----
17
69

query I rowsort
SELECT + 69 + - col0 * + 55 + 20 FROM tab2
----
-2441
-3431
-4036

query I rowsort
SELECT - col0 + 65 FROM tab0
----
-22
-32
50

query I rowsort
SELECT 18 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT ALL COUNT( * ) + - 1 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5911
SELECT ALL COUNT ( * ) + - 1 FROM tab1 AS cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5912
SELECT DISTINCT - 67 DIV + col0 - + 70 col0 FROM tab0 AS cor0
----
-70
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5912
SELECT DISTINCT - 67 / + col0 - + 70 col0 FROM tab0 AS cor0
----
-70
-74

query I rowsort
SELECT DISTINCT - col2 - + col2 + - - 20 * + col2 AS col2 FROM tab2 cor0
----
1044
414
720

query II rowsort
SELECT DISTINCT + col1, col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5915
SELECT DISTINCT - CAST( + col1 AS SIGNED ) AS col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5915
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) AS col1 FROM tab0
----
-1
-21
-81

query II rowsort
SELECT ALL + 27 AS col0, + col2 FROM tab2 AS cor0
----
27
23
27
40
27
58

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----

query II rowsort
SELECT + + 8, 12 AS col0 FROM tab0 AS cor0
----
8
12
8
12
8
12

onlyif mysql # aggregate syntax: 
query II rowsort label-5919
SELECT ALL - COUNT( * ) AS col0, 37 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
37

skipif mysql # not compatible
query II rowsort label-5919
SELECT ALL - COUNT ( * ) AS col0, 37 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
37

query I rowsort
SELECT + 13 FROM tab0 AS cor0 WHERE NOT + 30 < NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5922
SELECT - COUNT( * ) AS col1, 70 + - 0 AS col2 FROM tab1 cor0
----
-3
70

skipif mysql # not compatible
query II rowsort label-5922
SELECT - COUNT ( * ) AS col1, 70 + - 0 AS col2 FROM tab1 cor0
----
-3
70

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5923
SELECT ALL * FROM tab2 WHERE NOT col1 * 17 > + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5923
SELECT ALL * FROM tab2 WHERE NOT col1 * 17 > + CAST ( NULL AS REAL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 62 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + - col2 + - + ( col1 ) AS col1, 99 FROM tab1 AS cor0
----
-110
99
-115
99
-64
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT DISTINCT - + SUM( DISTINCT - 65 ) FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT - + SUM ( DISTINCT - 65 ) FROM tab2 AS cor0
----
65

query I rowsort
SELECT - - 80 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT + + 89 * - col1 AS col1 FROM tab0 WHERE NULL BETWEEN + 22 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 + + - col2 < + col1 * ( 98 ) * ( + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-5930
SELECT DISTINCT + col0 DIV - 56 + + + col1, col2 * + col1 AS col1 FROM tab0
----
0
99
20
210
81
3807

skipif mysql # not compatible
query II rowsort label-5930
SELECT DISTINCT + col0 / - 56 + + + col1, col2 * + col1 AS col1 FROM tab0
----
0
99
20
210
81
3807

onlyif mysql # DIV for integer division: 
query II rowsort label-5931
SELECT - col1 DIV + col0 + + col1 col1, col2 FROM tab0
----
1
99
21
10
76
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5931
SELECT - col1 / + col0 + + col1 col1, col2 FROM tab0
----
1
99
21
10
76
47

query I rowsort
SELECT ( 62 ) + 20 + - + col1 * + - col1 AS col1 FROM tab1 AS cor0
----
107
2291
278

query I rowsort
SELECT DISTINCT + 99 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 * + col1 col2 FROM tab1 cor0
----
1050
3525
375

query I rowsort
SELECT - ( - col2 ) * + 79 + - 87 FROM tab0 AS cor0
----
3626
703
7734

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT + COUNT( DISTINCT col1 ) + 43 - + 4 * - COUNT( * ) FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5936
SELECT + COUNT ( DISTINCT col1 ) + 43 - + 4 * - COUNT ( * ) FROM tab0 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5937
SELECT DISTINCT - col0 * + - CAST( - col2 AS SIGNED ) + + col1 AS col2 FROM tab1 AS cor0
----
-4882
-5010
-6141

skipif mysql # not compatible
query I rowsort label-5937
SELECT DISTINCT - col0 * + - CAST ( - col2 AS INTEGER ) + + col1 AS col2 FROM tab1 AS cor0
----
-4882
-5010
-6141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5938
SELECT - + CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5938
SELECT - + CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 2 + col1 + - 92 * - - 56 FROM tab2 AS cor0
----
-5077
-5087
-5103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5940
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 WHERE col2 + + - 76 NOT IN ( col2 + + col2, CAST( - + col0 AS SIGNED ) + - col0, 32 * col2, col2 + - col2 / - col2 * + col0 * + + col2 + + col0, + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 WHERE col2 + + - 76 NOT IN ( col2 + + col2, CAST ( - + col0 AS INTEGER ) + - col0, 32 * col2, col2 + - col2 / - col2 * + col0 * + + col2 + + col0, + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + col0 * + - ( - col0 ) - + col0, col1 * + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 - 60 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT ALL 48 + MIN( DISTINCT - + col2 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-10

skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL 48 + MIN ( DISTINCT - + col2 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-10

query I rowsort
SELECT - col1 + - - 42 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( - col0 ) - - ( + col1 ) - 93 FROM tab2
----
-101
-80
-88

query I rowsort
SELECT + ( - + col0 ) - - - col0 AS col1 FROM tab2
----
-128
-150
-92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5947
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5947
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT 26 - + col0 + + col0 AS col2 FROM tab0 AS cor0
----
26
26
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN NULL AND ( + col1 * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - 29 ) * + 96 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 452fbbdc8da4aae6f9bef738f51fe5aa

query I rowsort
SELECT ALL - - 43 * - col0 AS col0 FROM tab2 AS cor0
----
-1978
-2752
-3225

query I rowsort
SELECT ALL + col1 * + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
425
4277
714

query I rowsort
SELECT ALL - 47 + - + col1 FROM tab1
----
-52
-61
-94

query I rowsort
SELECT - ( - 54 ) FROM tab0
----
54
54
54

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 92 * - + col1 * + ( + + 28 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT + COUNT( ALL + 18 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5956
SELECT + COUNT ( ALL + 18 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT ALL - SUM( ( 37 ) ) AS col1 FROM tab2
----
-111

skipif mysql # not compatible
query I rowsort label-5957
SELECT ALL - SUM ( ( 37 ) ) AS col1 FROM tab2
----
-111

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5958
SELECT ALL + + 97 AS col1 FROM tab2 WHERE NOT - CAST( - col0 AS DECIMAL ) IS NULL
----
97
97
97

skipif mysql # not compatible
query I rowsort label-5958
SELECT ALL + + 97 AS col1 FROM tab2 WHERE NOT - CAST ( - col0 AS REAL ) IS NULL
----
97
97
97

query I rowsort
SELECT DISTINCT - + 23 AS col0 FROM tab1 WHERE NOT ( NULL ) <= col1 + + - col1 - - - 45 + col0
----

query II rowsort
SELECT DISTINCT + - col0 + - col2, col1 FROM tab0 WHERE NOT ( + col0 * ( col1 ) * ( - col0 ) >= + col1 )
----
-196
1
-62
81
-97
21

query I rowsort
SELECT 64 AS col1 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE - 32 IS NOT NULL
----
-51
-67
-77

query II rowsort
SELECT ALL col2 + + col1, col2 AS col2 FROM tab1
----
110
96
115
68
64
59

query II rowsort
SELECT ALL col0 + col1, 70 * - - 56 * - col1 AS col1 FROM tab0
----
108
-82320
96
-317520
98
-3920

query I rowsort
SELECT ALL + - 34 AS col2 FROM tab0 AS cor0
----
-34
-34
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-5966
SELECT DISTINCT 9 DIV 71 * - 98 - + col1 col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5966
SELECT DISTINCT 9 / 71 * - 98 - + col1 col1 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col1 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 AS cor0 WHERE col2 >= + + 28
----
1
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT + - 20 - - COUNT( * ) FROM tab1 cor0
----
-17

skipif mysql # not compatible
query I rowsort label-5969
SELECT + - 20 - - COUNT ( * ) FROM tab1 cor0
----
-17

query I rowsort
SELECT - - col2 * - col1 - + + col2 FROM tab0 AS cor0
----
-198
-220
-3854

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT ALL + MIN( - - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL + MIN ( - - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT ( col0 ) + ( + - col1 ) AS col0 FROM tab0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT ALL - SUM( + col2 ) + + 31 col2 FROM tab2
----
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5973
SELECT ALL - SUM ( + col2 ) + + 31 col2 FROM tab2
----
-90

query II rowsort
SELECT + 60 * 18 + col0, - 44 * + - 10 AS col2 FROM tab0
----
1095
440
1167
440
1177
440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 + + - col2 col2 FROM tab2
----
-16
19
2

query I rowsort
SELECT ALL + - 57 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 + - + col2 AS col0 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT DISTINCT - MIN( + col2 ) FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5978
SELECT DISTINCT - MIN ( + col2 ) FROM tab2 cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT - ( COUNT( * ) ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5979
SELECT - ( COUNT ( * ) ) AS col0 FROM tab2 cor0
----
-3

query I rowsort
SELECT col1 * - ( col2 ) AS col2 FROM tab2
----
-1173
-3080
-3886

query II rowsort
SELECT ALL col0 * + col2 AS col1, col0 AS col0 FROM tab1 AS cor0
----
4896
51
5015
85
6188
91

query I rowsort
SELECT - + col0 * 2 FROM tab1 AS cor0
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT - ( - SUM( DISTINCT + - col0 ) ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-5983
SELECT - ( - SUM ( DISTINCT + - col0 ) ) AS col0 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ALL - ( - 82 ) FROM tab1 AS cor0
----
82
82
82

query I rowsort
SELECT col2 - - + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT ALL SUM( DISTINCT + - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL SUM ( DISTINCT + - col2 ) FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5987
SELECT ALL - - COUNT( * ) DIV ( 9 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL - - COUNT ( * ) / ( 9 ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT - SUM( - 87 ) + + COUNT( * ) FROM tab1 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-5988
SELECT - SUM ( - 87 ) + + COUNT ( * ) FROM tab1 AS cor0
----
264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5989
SELECT DISTINCT - - COUNT( ALL + 54 ) DIV - ( COUNT( * ) ) AS col0 FROM tab2 WHERE - ( 77 ) + + col0 IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-5989
SELECT DISTINCT - - COUNT ( ALL + 54 ) / - ( COUNT ( * ) ) AS col0 FROM tab2 WHERE - ( 77 ) + + col0 IS NOT NULL
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-5990
SELECT DISTINCT + 4 DIV - col0 + + 61 * - 99 + - col2, - col0 - + col0 AS col0 FROM tab1
----
-6098
-170
-6107
-182
-6135
-102

skipif mysql # not compatible
query II rowsort label-5990
SELECT DISTINCT + 4 / - col0 + + 61 * - 99 + - col2, - col0 - + col0 AS col0 FROM tab1
----
-6098
-170
-6107
-182
-6135
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-5991
SELECT ALL + 10 + - col0 + col0 DIV 22 * - col2 FROM tab1
----
-233
-252
-353

skipif mysql # not compatible
query I rowsort label-5991
SELECT ALL + 10 + - col0 + col0 / 22 * - col2 FROM tab1
----
-233
-252
-353

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT DISTINCT COUNT( * ) + 51 AS col2 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-5992
SELECT DISTINCT COUNT ( * ) + 51 AS col2 FROM tab0
----
54

query III rowsort
SELECT * FROM tab2 WHERE col0 = 12
----

query I rowsort
SELECT ALL col0 + + 1 AS col1 FROM tab2
----
47
65
76

query II rowsort
SELECT + col2, col2 AS col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5996
SELECT DISTINCT - + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL <= col1
----

skipif mysql # not compatible
query I rowsort label-5996
SELECT DISTINCT - + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL <= col1
----

query II rowsort
SELECT - col0 + + col2 AS col1, + 73 FROM tab2
----
-17
73
-23
73
-24
73

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN 17 AND + - col2
----

query I rowsort
SELECT + 31 + - ( - - 48 ) FROM tab1 AS cor0
----
-17
-17
-17

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 > NULL
----

query I rowsort
SELECT ALL - + ( - + col0 ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT - - col1 + col2 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
117
125
74

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 25 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6004
SELECT col1 DIV 31 AS col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6004
SELECT col1 / 31 AS col2 FROM tab0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT SUM( DISTINCT - col0 ) * COUNT( * ) AS col0 FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-6005
SELECT SUM ( DISTINCT - col0 ) * COUNT ( * ) AS col0 FROM tab1
----
-681

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6006
SELECT 83 * + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT ( NOT NULL > NULL )
----

skipif mysql # not compatible
query I rowsort label-6006
SELECT 83 * + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT ( NOT NULL > NULL )
----

query II rowsort
SELECT ALL + col2 * - + 84, - 9 AS col2 FROM tab1
----
-4956
-9
-5712
-9
-8064
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-6008
SELECT - ( + 97 ) AS col2, 34 DIV + 85 * + col2 FROM tab2 AS cor0
----
-97
0
-97
0
-97
0

skipif mysql # not compatible
query II rowsort label-6008
SELECT - ( + 97 ) AS col2, 34 / + 85 * + col2 FROM tab2 AS cor0
----
-97
0
-97
0
-97
0

query I rowsort
SELECT - 96 * 15 AS col0 FROM tab0
----
-1440
-1440
-1440

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT - COUNT( * ) * - + MAX( - ( - 82 ) ) AS col0 FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-6010
SELECT - COUNT ( * ) * - + MAX ( - ( - 82 ) ) AS col0 FROM tab1
----
246

query II rowsort
SELECT ALL + 18 AS col2, ( col2 ) FROM tab1
----
18
59
18
68
18
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT DISTINCT - MIN( col1 ) * COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6012
SELECT DISTINCT - MIN ( col1 ) * COUNT ( * ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT DISTINCT - COUNT( * ) * + 66 FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-6013
SELECT DISTINCT - COUNT ( * ) * + 66 FROM tab2
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT - - COUNT( - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6014
SELECT - - COUNT ( - col2 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT + col2, - col0 + 3 FROM tab2 AS cor0
----
23
-43
40
-61
58
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT - - ( - MAX( + col2 ) ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-6016
SELECT - - ( - MAX ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT DISTINCT + - COUNT( DISTINCT - + ( + col1 ) ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6017
SELECT DISTINCT + - COUNT ( DISTINCT - + ( + col1 ) ) col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 25 + - col1 AS col0 FROM tab1 AS cor0
----
-30
-39
-72

query I rowsort
SELECT + ( 17 ) AS col1 FROM tab1 cor0
----
17
17
17

query II rowsort
SELECT ALL + col0 AS col1, - col0 * - col0 * + + col2 * 49 AS col0 FROM tab1 AS cor0
----
51
12235104
85
20887475
91
27592292

query II rowsort
SELECT ALL col2 + + - col2, col2 FROM tab0
----
0
10
0
47
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT + COUNT( DISTINCT col1 ) * + 75 AS col0 FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-6022
SELECT + COUNT ( DISTINCT col1 ) * + 75 AS col0 FROM tab1
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT ALL - MIN( - - col0 ) + 51 AS col0 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL - MIN ( - - col0 ) + 51 AS col0 FROM tab0
----
36

query I rowsort
SELECT 4 * ( + - 17 ) FROM tab0
----
-68
-68
-68

query III rowsort
SELECT * FROM tab0 WHERE NULL >= - col0
----

query I rowsort
SELECT ALL 30 + - col2 FROM tab2
----
-10
-28
7

query III rowsort
SELECT * FROM tab2 WHERE + col1 > + col1
----

query I rowsort
SELECT col1 + col1 - + + col2 + + col0 FROM tab1
----
-17
117
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 + + col0 col2 FROM tab1
----
-340
-4186
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT + 76 + - COUNT( * ) col2 FROM tab2
----
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6030
SELECT + 76 + - COUNT ( * ) col2 FROM tab2
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + - col0 col0, 61 * - - col2 FROM tab0
----
-66
610
-96
6039
66
2867

query I rowsort
SELECT ALL 6 * + + col1 + - col2 * - col2 AS col2 FROM tab2
----
2062
3766
835

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT DISTINCT - - COUNT( * ) - + - COUNT( DISTINCT + col0 ) FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-6033
SELECT DISTINCT - - COUNT ( * ) - + - COUNT ( DISTINCT + col0 ) FROM tab2 cor0
----
6

query I rowsort
SELECT - col1 - + 94 AS col0 FROM tab2 AS cor0
----
-145
-161
-171

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6035
SELECT + col0 - + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6035
SELECT + col0 - + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL + 50 * col0 FROM tab1
----
2550
4250
4550

query III rowsort
SELECT * FROM tab1 WHERE NOT - 53 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 15 AS col1 FROM tab0 WHERE col1 * col2 BETWEEN NULL AND 4
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 col0 FROM tab2 WHERE - + col1 + - col0 * col2 IS NOT NULL
----
23
40
58

query II rowsort
SELECT DISTINCT col0, 20 FROM tab0
----
15
20
87
20
97
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT COUNT( ALL - - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6042
SELECT COUNT ( ALL - - col0 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT - 79, - col2 * + col0 AS col0 FROM tab0 AS cor0
----
-79
-705
-79
-870
-79
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6044
SELECT 2 + COUNT( * ) - - - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6044
SELECT 2 + COUNT ( * ) - - - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT col1 * + ( - - 35 ) AS col2 FROM tab2
----
1785
2345
2695

onlyif mysql # DIV for integer division: 
query I rowsort label-6046
SELECT ALL col0 DIV - col1 + + + col0 AS col2 FROM tab2
----
46
64
74

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL col0 / - col1 + + + col0 AS col2 FROM tab2
----
46
64
74

query I rowsort
SELECT + col2 * - 82 * - col0 + col1 AS col1 FROM tab2 AS cor0
----
209997
356767
86807

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT + 36 + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
39

skipif mysql # not compatible
query I rowsort label-6048
SELECT + 36 + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
39

query I rowsort
SELECT col0 * + + 3 + + col1 * + 55 FROM tab0 AS cor0
----
1416
346
4500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6050
SELECT ALL + + 42 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL + + 42 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + col1 + 2 AS col1 FROM tab0 AS cor0
----
3
443
6563

onlyif mysql # DIV for integer division: 
query I rowsort label-6052
SELECT DISTINCT - + 61 DIV + - col1 + + 21 AS col0 FROM tab2 cor0
----
21
22

skipif mysql # not compatible
query I rowsort label-6052
SELECT DISTINCT - + 61 / + - col1 + + 21 AS col0 FROM tab2 cor0
----
21
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT DISTINCT + COUNT( * ) * - - ( + 2 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-6053
SELECT DISTINCT + COUNT ( * ) * - - ( + 2 ) FROM tab2
----
6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL >= col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6055
SELECT DISTINCT 95 / CAST( NULL AS SIGNED ) + COUNT( * ), - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6055
SELECT DISTINCT 95 / CAST ( NULL AS INTEGER ) + COUNT ( * ), - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL

query II rowsort
SELECT DISTINCT + col1 AS col1, col2 AS col2 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT - + col2 FROM tab1 WHERE - 57 + - + col1 IS NULL
----

query I rowsort
SELECT + 59 * - - 41 AS col0 FROM tab0
----
2419
2419
2419

query I rowsort
SELECT ALL + col0 - - 89 AS col1 FROM tab1
----
140
174
180

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT + + COUNT( * ) * + - 93 FROM tab0 cor0
----
-279

skipif mysql # not compatible
query I rowsort label-6060
SELECT + + COUNT ( * ) * + - 93 FROM tab0 cor0
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT ALL - COUNT( * ) - MAX( ALL + col2 - ( + 66 - - col1 ) ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-6061
SELECT ALL - COUNT ( * ) - MAX ( ALL + col2 - ( + 66 - - col1 ) ) FROM tab2
----
72

query III rowsort
SELECT ALL * FROM tab2 WHERE 59 IN ( col1 * 36 )
----

query I rowsort
SELECT 84 * 57 FROM tab2
----
4788
4788
4788

query I rowsort
SELECT ALL col0 * 42 + 51 AS col0 FROM tab1
----
2193
3621
3873

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT COUNT( DISTINCT - col0 ) * COUNT( * ) col0 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6065
SELECT COUNT ( DISTINCT - col0 ) * COUNT ( * ) col0 FROM tab2
----
9

query I rowsort
SELECT ALL col2 * ( + col1 * 71 ) FROM tab1
----
20945
226916
95424

query III rowsort
SELECT * FROM tab2 WHERE col1 / + 19 - 44 = NULL
----

query I rowsort
SELECT ALL - col1 + 76 AS col1 FROM tab1
----
29
62
71

onlyif mysql # DIV for integer division: 
query I rowsort label-6069
SELECT ALL - 93 DIV - col0 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL - 93 / - col0 FROM tab0
----
0
1
6

query I rowsort
SELECT + 7 * + col0 FROM tab1
----
357
595
637

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT + COUNT( * ) * - MIN( ALL col0 ) AS col2 FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-6071
SELECT + COUNT ( * ) * - MIN ( ALL col0 ) AS col2 FROM tab2
----
-138

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN ( + col2 + - 64 * 37 ) AND ( col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 71 ) NOT IN ( + 83 * 6 + 41 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6074
SELECT col1 + 79 * + CAST( 24 AS SIGNED ) AS col2 FROM tab1 WHERE NOT 78 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6074
SELECT col1 + 79 * + CAST ( 24 AS INTEGER ) AS col2 FROM tab1 WHERE NOT 78 IS NOT NULL
----

query I rowsort
SELECT ( + 60 ) FROM tab2 WHERE ( col0 ) BETWEEN ( col1 ) AND col0 + 81 * col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT COUNT( * ) + + 23 AS col0 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-6076
SELECT COUNT ( * ) + + 23 AS col0 FROM tab0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT DISTINCT COUNT( + 26 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT COUNT ( + 26 ) FROM tab2
----
3

query I rowsort
SELECT ALL col2 * col0 + + ( 84 ) FROM tab2 WHERE NOT - 23 - 32 IS NULL
----
1142
2644
4434

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6079
SELECT DISTINCT + col2 * 59 + CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6079
SELECT DISTINCT + col2 * 59 + CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT - 67 FROM tab2 WHERE + col2 * col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6081
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6081
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT col0 * 25 + ( col0 ) FROM tab1
----
1326
2210
2366

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 21 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT + COUNT( * ) FROM tab1 WHERE NULL < ( - col1 + 91 )
----
0

skipif mysql # not compatible
query I rowsort label-6085
SELECT + COUNT ( * ) FROM tab1 WHERE NULL < ( - col1 + 91 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6086
SELECT ALL + 67 AS col2 FROM tab1 WHERE - CAST( NULL AS SIGNED ) * col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL + 67 AS col2 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6087
SELECT DISTINCT - col2 + + CAST( NULL AS SIGNED ) * + col0 col0 FROM tab0 AS cor0 WHERE NOT col0 = NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6087
SELECT DISTINCT - col2 + + CAST ( NULL AS INTEGER ) * + col0 col0 FROM tab0 AS cor0 WHERE NOT col0 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 / col2 > ( col2 * + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 37 + + col0 AS col2 FROM tab2
----
101
112
83

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT + col1 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT DISTINCT - MAX( col2 ) + - COUNT( DISTINCT ( col0 ) ) * 71 FROM tab0
----
-312

skipif mysql # not compatible
query I rowsort label-6091
SELECT DISTINCT - MAX ( col2 ) + - COUNT ( DISTINCT ( col0 ) ) * 71 FROM tab0
----
-312

query I rowsort
SELECT DISTINCT - 54 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col1 * 24 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6093
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col1 * 24 IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col1 * - col1 ) IN ( + col0 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 * ( - col2 ) + col0 col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 53 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE 99 / col0 IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT COUNT( + col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6098
SELECT COUNT ( + col1 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT ( - 45 ) FROM tab0
----
-45
-45
-45

query I rowsort
SELECT ALL - ( + - ( ( - 39 ) ) ) + 42 FROM tab1
----
3
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 77 col1 FROM tab0
----
158
78
98

query I rowsort
SELECT col0 FROM tab1 WHERE ( 81 ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL - col2 + + - ( + col2 ) AS col0 FROM tab1
----
-118
-136
-192

query I rowsort
SELECT ALL + ( + col2 ) FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT 6 + + col1 FROM tab2 AS cor0
----
57
73
83

query I rowsort
SELECT ( - + 24 ) FROM tab0 cor0
----
-24
-24
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6107
SELECT ALL - COUNT( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + col2 * + col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6107
SELECT ALL - COUNT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + col2 * + col2 ) IS NOT NULL
----
0

query II rowsort
SELECT col1 AS col1, 69 AS col0 FROM tab1
----
14
69
47
69
5
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 col2 FROM tab1
----
-30
-30
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 46 col1 FROM tab2
----
2346
3082
3542

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 47 ) <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6112
SELECT + - CAST( + col1 AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-6112
SELECT + - CAST ( + col1 AS REAL ) FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT ALL + 35 * - - SUM( DISTINCT 69 ) AS col2 FROM tab2 AS cor0
----
2415

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL + 35 * - - SUM ( DISTINCT 69 ) AS col2 FROM tab2 AS cor0
----
2415

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE NOT NULL = - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + 70 + + col1 - - ( + col1 ) col2 FROM tab2 AS cor0
----
-3468
-4556
-5236

query I rowsort
SELECT DISTINCT + col1 * + + col2 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN - col2 * col0 AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

query II rowsort
SELECT col2, 83 AS col2 FROM tab0 cor0
----
10
83
47
83
99
83

query II rowsort
SELECT ALL - col2 AS col2, col0 AS col1 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( ( - + col0 ) ) NOT BETWEEN + col0 + 73 AND col1 / col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 24 ) col1 FROM tab2 AS cor0
----
24

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( + col0 )
----

query I rowsort
SELECT ( + col2 ) FROM tab2 WHERE NOT - + ( - 64 ) IS NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 69 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6126
SELECT ALL * FROM tab2 WHERE NOT ( + 47 + + CAST( NULL AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6126
SELECT ALL * FROM tab2 WHERE NOT ( + 47 + + CAST ( NULL AS REAL ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT DISTINCT - SUM( ALL - col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-6127
SELECT DISTINCT - SUM ( ALL - col1 ) FROM tab1
----
66

query I rowsort
SELECT - + 56 * + col2 + - - 84 FROM tab2 AS cor0
----
-1204
-2156
-3164

onlyif mysql # DIV for integer division: 
query I rowsort label-6129
SELECT ALL + col0 DIV col1 * + - 23 FROM tab2 AS cor0
----
-23
0
0

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL + col0 / col1 * + - 23 FROM tab2 AS cor0
----
-23
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6130
SELECT - - col0 DIV + 37 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-6130
SELECT - - col0 / + 37 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT DISTINCT + col2 + - col2 * col0 + col0 FROM tab0
----
-643
-773
-9407

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6132
SELECT * FROM tab2 AS cor0 WHERE ( col1 + + CAST( NULL AS SIGNED ) * + - ( + - 41 ) ) BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-6132
SELECT * FROM tab2 AS cor0 WHERE ( col1 + + CAST ( NULL AS INTEGER ) * + - ( + - 41 ) ) BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( + 87 ) ) <> NULL AND col1 NOT IN ( + 54 - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT - COUNT( * ) + ( + + COUNT( * ) ) col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6134
SELECT - COUNT ( * ) + ( + + COUNT ( * ) ) col0 FROM tab0 cor0
----
0

query I rowsort
SELECT col2 + + - col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT col1 * + - col2 + + + col2 AS col0, col2 FROM tab2 AS cor0
----
-1150
23
-3040
40
-3828
58

query I rowsort
SELECT DISTINCT AVG ( - 88 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6138
SELECT ALL - ( - 63 ) * + col2 + + col2 DIV col2 + 74 AS col0 FROM tab1 AS cor0
----
3792
4359
6123

skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL - ( - 63 ) * + col2 + + col2 / col2 + 74 AS col0 FROM tab1 AS cor0
----
3792
4359
6123

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - col0 AND + + col1
----

query I rowsort
SELECT ALL col2 * - 33 + - 35 FROM tab0
----
-1586
-3302
-365

query II rowsort
SELECT + ( - + col0 ) AS col0, 72 AS col1 FROM tab0
----
-15
72
-87
72
-97
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6142
SELECT SUM( DISTINCT + col0 ) * 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-6142
SELECT SUM ( DISTINCT + col0 ) * CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + + 43 <= - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 91 AS col2, + 68 col0 FROM tab0
----
91
68
91
68
91
68

query II rowsort
SELECT + col2 * - ( - col0 ) AS col0, + ( col1 ) AS col0 FROM tab0
----
705
81
870
21
9603
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6146
SELECT CAST( + + 99 AS SIGNED ) AS col1 FROM tab0
----
99
99
99

skipif mysql # not compatible
query I rowsort label-6146
SELECT CAST ( + + 99 AS INTEGER ) AS col1 FROM tab0
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT ALL + COUNT( * ) AS col1 FROM tab2 WHERE + + col2 BETWEEN NULL AND col0 + - col2
----
0

skipif mysql # not compatible
query I rowsort label-6147
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 WHERE + + col2 BETWEEN NULL AND col0 + - col2
----
0

query I rowsort
SELECT DISTINCT 31 * + 46 * + col2 FROM tab1 AS cor0
----
136896
84134
96968

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col1 + - col2 NOT BETWEEN NULL AND ( - - 94 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6150
SELECT - ( col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND - CAST( - ( col2 ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6150
SELECT - ( col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND - CAST ( - ( col2 ) AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab1 AS cor0 WHERE NOT - 6 IS NULL
----
-59
-68
-96

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE - 95 NOT IN ( col2 )
----
51
85
91

query I rowsort
SELECT - 27 * col2 FROM tab0 AS cor0
----
-1269
-2673
-270

query I rowsort
SELECT - col2 + col2 AS col2 FROM tab1 AS cor0 WHERE NOT - 34 * + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 39 * + - col2 FROM tab2
----
-1560
-2262
-897

query I rowsort
SELECT - col0 * + + 15 AS col2 FROM tab0
----
-1305
-1455
-225

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 WHERE - 28 NOT BETWEEN - col2 AND ( - 83 )
----
-10
-47
-99

query I rowsort
SELECT ALL 33 FROM tab2 WHERE NOT - + col0 * 51 IS NOT NULL
----

query I rowsort
SELECT + ( - col0 ) * - - 32 FROM tab0
----
-2784
-3104
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT - 93 * - - COUNT( * ) FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-6160
SELECT - 93 * - - COUNT ( * ) FROM tab0
----
-279

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - + col0 * + - 59 * - 84 + col2 + - col2 / - 55 ) NOT BETWEEN + col2 AND NULL
----

query II rowsort
SELECT ALL - 80 AS col0, col2 * - + col1 FROM tab1
----
-80
-1344
-80
-295
-80
-3196

onlyif mysql # aggregate syntax: 
query II rowsort label-6163
SELECT ALL + COUNT( * ) AS col2, + 35 AS col1 FROM tab0
----
3
35

skipif mysql # not compatible
query II rowsort label-6163
SELECT ALL + COUNT ( * ) AS col2, + 35 AS col1 FROM tab0
----
3
35

query II rowsort
SELECT col2 AS col1, 64 + - 23 + col0 FROM tab2
----
23
87
40
105
58
116

query I rowsort
SELECT 74 + col2 + col2 AS col2 FROM tab0 AS cor0
----
168
272
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT + COUNT( * ) + + MIN( ALL + + col1 ) + - 48 FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-6166
SELECT + COUNT ( * ) + + MIN ( ALL + + col1 ) + - 48 FROM tab1 AS cor0
----
-40

query I rowsort
SELECT - col1 * + + 10 + - 39 FROM tab0 AS cor0
----
-249
-49
-849

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6168
SELECT + CAST( NULL AS SIGNED ) + - - col1 AS col1 FROM tab2 WHERE + ( 51 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6168
SELECT + CAST ( NULL AS INTEGER ) + - - col1 AS col1 FROM tab2 WHERE + ( 51 ) IS NOT NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 48 + + - col0 col1 FROM tab0
----
-39
-49
33

query III rowsort
SELECT * FROM tab2 WHERE NULL > - + 33
----

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT 65 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= + 76 * + + 13 + + 57 OR NOT 0 <> ( - 85 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT DISTINCT - - SUM( - 94 ) FROM tab2 AS cor0 WHERE NOT NULL <= + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6173
SELECT DISTINCT - - SUM ( - 94 ) FROM tab2 AS cor0 WHERE NOT NULL <= + col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 AS cor0 WHERE 93 NOT IN ( - ( - 89 ) * - - col1, + 65 )
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6175
SELECT DISTINCT + 80 DIV 69 AS col0, COUNT( col2 ) FROM tab1 AS cor0
----
1
3

skipif mysql # not compatible
query II rowsort label-6175
SELECT DISTINCT + 80 / 69 AS col0, COUNT ( col2 ) FROM tab1 AS cor0
----
1
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 - col1 + + ( + 16 ) AS col0 FROM tab0 cor0
----
-18
114
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6178
SELECT - 88 * - col2 + CAST( - 27 AS SIGNED ) * - 86 - col1 FROM tab2
----
4295
5765
7359

skipif mysql # not compatible
query I rowsort label-6178
SELECT - 88 * - col2 + CAST ( - 27 AS INTEGER ) * - 86 - col1 FROM tab2
----
4295
5765
7359

query II rowsort
SELECT DISTINCT - col0, col1 FROM tab2
----
-46
51
-64
77
-75
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6180
SELECT 50 DIV + col2 + + col2 AS col0 FROM tab0
----
15
48
99

skipif mysql # not compatible
query I rowsort label-6180
SELECT 50 / + col2 + + col2 AS col0 FROM tab0
----
15
48
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6181
SELECT DISTINCT + 11 + + col0 DIV - col2 FROM tab1
----
10
11

skipif mysql # not compatible
query I rowsort label-6181
SELECT DISTINCT + 11 + + col0 / - col2 FROM tab1
----
10
11

query I rowsort
SELECT ALL + 6 - col2 AS col0 FROM tab2
----
-17
-34
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6183
SELECT - - COUNT( * ) col0 FROM tab2 WHERE - col2 * - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) BETWEEN + + col1 + col1 AND - + 16 * + 56
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6183
SELECT - - COUNT ( * ) col0 FROM tab2 WHERE - col2 * - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) BETWEEN + + col1 + col1 AND - + 16 * + 56
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6184
SELECT ALL - col1 + - CAST( NULL AS DECIMAL ) - - - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL - col1 + - CAST ( NULL AS REAL ) - - - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6185
SELECT ALL 30 - CAST( + - col1 AS SIGNED ) + - + ( - col0 ) - col0 FROM tab1
----
35
44
77

skipif mysql # not compatible
query I rowsort label-6185
SELECT ALL 30 - CAST ( + - col1 AS INTEGER ) + - + ( - col0 ) - col0 FROM tab1
----
35
44
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT - COUNT( 88 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6186
SELECT - COUNT ( 88 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6187
SELECT COUNT( * ) AS col0, 87 AS col1 FROM tab1
----
3
87

skipif mysql # not compatible
query II rowsort label-6187
SELECT COUNT ( * ) AS col0, 87 AS col1 FROM tab1
----
3
87

query I rowsort
SELECT ALL col1 + + col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
108
96
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - + 3 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6190
SELECT + + AVG ( ALL - CAST( NULL AS SIGNED ) ) / - 24 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6190
SELECT + + AVG ( ALL - CAST ( NULL AS INTEGER ) ) / - 24 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + ( - + col2 ) AS col2 FROM tab2 cor0
----
-23
-40
-58

query II rowsort
SELECT DISTINCT + col0, 25 FROM tab1 AS cor0
----
51
25
85
25
91
25

query II rowsort
SELECT DISTINCT + + 61 * - + ( - 80 ) + + - col1 AS col0, col2 FROM tab1 AS cor0
----
4833
68
4866
96
4875
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 col1 FROM tab2 cor0
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT + - MAX( + col1 ) AS col0 FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6195
SELECT + - MAX ( + col1 ) AS col0 FROM tab2 cor0
----
-77

query II rowsort
SELECT col0 * - col2 + + col0 * - col1 AS col0, 24 * - col1 + + col0 + - 56 FROM tab2 cor0
----
-3404
-1234
-7488
-1840
-9375
-1589

onlyif mysql # DIV for integer division: 
query I rowsort label-6197
SELECT ALL + 78 + + + col2 DIV - col0 AS col1 FROM tab0
----
75
77
78

skipif mysql # not compatible
query I rowsort label-6197
SELECT ALL + 78 + + + col2 / - col0 AS col1 FROM tab0
----
75
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * col2 * col0 + + col1 * - + col2 col0, + 63 FROM tab2
----
-200200
63
-295336
63
-55131
63

query II rowsort
SELECT ALL col0 * 9, col0 * + col0 - col0 AS col0 FROM tab1
----
459
2550
765
7140
819
8190

query I rowsort
SELECT DISTINCT - 10 * - col2 FROM tab1
----
590
680
960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6201
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) * + - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6201
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) * + - col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6202
SELECT DISTINCT + - col1 DIV - col0 + - col0 FROM tab0 AS cor0
----
-10
-87
-97

skipif mysql # not compatible
query I rowsort label-6202
SELECT DISTINCT + - col1 / - col0 + - col0 FROM tab0 AS cor0
----
-10
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT ALL + - SUM( DISTINCT - col0 ) col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6203
SELECT ALL + - SUM ( DISTINCT - col0 ) col0 FROM tab1 AS cor0
----
227

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 >= NULL
----

query I rowsort
SELECT + + col0 * - 24 + + col2 - - + col1 AS col0 FROM tab1 cor0
----
-1114
-1976
-2069

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6207
SELECT + col1 + - - 20 * + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6207
SELECT + col1 + - - 20 * + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT DISTINCT - 73 - + - COUNT( DISTINCT - - col0 ) FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-6208
SELECT DISTINCT - 73 - + - COUNT ( DISTINCT - - col0 ) FROM tab1
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 0 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL = NULL )
----

query II rowsort
SELECT ALL - + col2 AS col2, + col2 AS col0 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT + col0 * - 49 + - - col1 + - col2 FROM tab0 cor0
----
-4252
-4851
-701

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT ALL + COUNT( * ) * + 40 + + SUM( 69 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL + COUNT ( * ) * + 40 + + SUM ( 69 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN - col2 AND - - col2 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6215
SELECT ALL - + col0 - - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6215
SELECT ALL - + col0 - - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + + 44 FROM tab2 AS cor0
----
102
67
84

query II rowsort
SELECT DISTINCT col1 AS col0, + col0 * + + col1 AS col0 FROM tab1 AS cor0
----
14
714
47
4277
5
425

query I rowsort
SELECT ALL col1 + + 64 FROM tab1 AS cor0 WHERE NOT 59 * + col2 * - ( - col0 ) IS NULL
----
111
69
78

query II rowsort
SELECT ALL + - 61 AS col0, col0 FROM tab1 AS cor0
----
-61
51
-61
85
-61
91

query III rowsort
SELECT * FROM tab2 cor0 WHERE 40 * - 36 <= - + col0 / - col1 * 32 + col2 + + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6221
SELECT COUNT( * ) DIV 9 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6221
SELECT COUNT ( * ) / 9 AS col0 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + - col0 )
----

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT ALL COUNT( * ) + + 19 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL COUNT ( * ) + + 19 FROM tab1
----
22

query I rowsort
SELECT col2 * + + col1 - - 61 AS col2 FROM tab2
----
1234
3141
3947

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT COUNT( * ) FROM tab2 WHERE NOT col0 * - 54 NOT IN ( + 22 )
----
0

skipif mysql # not compatible
query I rowsort label-6226
SELECT COUNT ( * ) FROM tab2 WHERE NOT col0 * - 54 NOT IN ( + 22 )
----
0

query I rowsort
SELECT ALL + + 45 AS col1 FROM tab2 AS cor0
----
45
45
45

query I rowsort
SELECT - - 38 * - col0 * - col0 FROM tab0 AS cor0
----
287622
357542
8550

query I rowsort
SELECT 21 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT MAX( + 66 ) AS col1 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-6230
SELECT MAX ( + 66 ) AS col1 FROM tab0
----
66

query I rowsort
SELECT 21 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT ALL - 89 AS col0 FROM tab0 cor0 WHERE 75 IS NOT NULL
----
-89
-89
-89

query I rowsort
SELECT DISTINCT col1 + + - col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 70 * + + col0 + + col0 FROM tab2
----
3266
4544
5325

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT col0 + + 27 - + ( + 97 ) AS col0 FROM tab0
----
-55
17
27

query I rowsort
SELECT DISTINCT + ( col0 ) + - col0 FROM tab0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6238
SELECT + - col2 - - - col2 * - col1, col2 * col2 AS col0 FROM tab1 WHERE + CAST( NULL AS DECIMAL ) IS NULL
----
1248
9216
236
3481
3128
4624

skipif mysql # not compatible
query II rowsort label-6238
SELECT + - col2 - - - col2 * - col1, col2 * col2 AS col0 FROM tab1 WHERE + CAST ( NULL AS REAL ) IS NULL
----
1248
9216
236
3481
3128
4624

onlyif mysql # DIV for integer division: 
query I rowsort label-6239
SELECT ALL col2 * col1 DIV + col2 + - col1 - - col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6239
SELECT ALL col2 * col1 / + col2 + - col1 - - col1 FROM tab2
----
51
67
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + col0 BETWEEN ( + col2 * - col2 / + col0 ) AND col0 * + 10
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * 10 AS col2 FROM tab0
----
100
470
990

onlyif mysql # aggregate syntax: 
query II rowsort label-6242
SELECT DISTINCT - COUNT( * ) + - - COUNT( * ) AS col2, 51 AS col2 FROM tab1
----
0
51

skipif mysql # not compatible
query II rowsort label-6242
SELECT DISTINCT - COUNT ( * ) + - - COUNT ( * ) AS col2, 51 AS col2 FROM tab1
----
0
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT DISTINCT 45 * - 3 * + SUM( + - ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
13905

skipif mysql # not compatible
query I rowsort label-6243
SELECT DISTINCT 45 * - 3 * + SUM ( + - ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
13905

query I rowsort
SELECT - - col0 * + col1 + + 39 FROM tab0 cor0 WHERE col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6245
SELECT + 23 / col0 * col2 / - + col2 AS col1 FROM tab1 AS cor0 WHERE 55 BETWEEN col0 / - + ( - + CAST( NULL AS SIGNED ) ) AND ( - col1 * col2 + - 87 )
----

skipif mysql # not compatible
query I rowsort label-6245
SELECT + 23 / col0 * col2 / - + col2 AS col1 FROM tab1 AS cor0 WHERE 55 BETWEEN col0 / - + ( - + CAST ( NULL AS INTEGER ) ) AND ( - col1 * col2 + - 87 )
----

query II rowsort
SELECT + col0 + col1, - 77 + col1 AS col2 FROM tab0 AS cor0
----
108
-56
96
4
98
-76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < - ( 65 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6248
SELECT ALL - 43 * - CAST( - col0 AS SIGNED ) AS col0 FROM tab1
----
-2193
-3655
-3913

skipif mysql # not compatible
query I rowsort label-6248
SELECT ALL - 43 * - CAST ( - col0 AS INTEGER ) AS col0 FROM tab1
----
-2193
-3655
-3913

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT ( - + MIN( ALL 12 ) ) FROM tab0 WHERE ( NULL NOT BETWEEN - col0 * - + ( - + 32 ) AND - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6249
SELECT ( - + MIN ( ALL 12 ) ) FROM tab0 WHERE ( NULL NOT BETWEEN - col0 * - + ( - + 32 ) AND - col2 )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 NOT IN ( + 27 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> 0 * 64 * + col0 / col1
----

query I rowsort
SELECT DISTINCT - ( + 45 ) FROM tab1 AS cor0
----
-45

query II rowsort
SELECT DISTINCT - ( + + col2 ) * 10 AS col2, - col0 FROM tab1 AS cor0
----
-590
-85
-680
-91
-960
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT MAX( + col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6254
SELECT MAX ( + col0 ) AS col0 FROM tab2 AS cor0
----
75

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 39 + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6256
SELECT 14 DIV + col0 * - col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6256
SELECT 14 / + col0 * - col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL - + 44 FROM tab0 cor0 WHERE NOT NULL <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( + 17 / + col0 * + - 79 + - col2 ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6258
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( + 17 / + col0 * + - 79 + - col2 ) NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT - COUNT( * ) + - COUNT( * ) + 54 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-6259
SELECT - COUNT ( * ) + - COUNT ( * ) + 54 FROM tab1 AS cor0
----
48

query I rowsort
SELECT ALL - col1 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 * - col1 col0 FROM tab2 AS cor0
----
-2754
-3618
-4158

query I rowsort
SELECT + 21 + ( - col2 ) + - col0 * + + 96 * + col2 AS col0 FROM tab0 AS cor0
----
-67706
-83509
-921966

query I rowsort
SELECT - 25 + - 8 * - col1 FROM tab2 AS cor0
----
383
511
591

onlyif mysql # DIV for integer division: 
query I rowsort label-6264
SELECT + col2 + - + col0 DIV - col0 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-6264
SELECT + col2 + - + col0 / - col0 FROM tab2 AS cor0
----
24
41
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col0 * - + col1 + + 61 col2 FROM tab0
----
159010
18286
9470

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 * - 4 / col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( col0 ) * 29 AS col1 FROM tab1 AS cor0
----
1479
2465
2639

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NULL < + 19 + 84
----

query I rowsort
SELECT + 90 * - 66 FROM tab1 AS cor0
----
-5940
-5940
-5940

query II rowsort
SELECT DISTINCT - col0 AS col2, 31 + + 93 FROM tab1 AS cor0
----
-51
124
-85
124
-91
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6271
SELECT ALL CAST( + - ( MAX( DISTINCT col2 ) ) AS SIGNED ) + + 23 AS col2 FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-6271
SELECT ALL CAST ( + - ( MAX ( DISTINCT col2 ) ) AS INTEGER ) + + 23 AS col2 FROM tab0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6272
SELECT col1 + + 72 - + CAST( + col0 AS SIGNED ) FROM tab1
----
-8
28
35

skipif mysql # not compatible
query I rowsort label-6272
SELECT col1 + + 72 - + CAST ( + col0 AS INTEGER ) FROM tab1
----
-8
28
35

onlyif mysql # DIV for integer division: 
query I rowsort label-6273
SELECT DISTINCT col2 DIV - 27 - + 11 AS col2 FROM tab0
----
-11
-12
-14

skipif mysql # not compatible
query I rowsort label-6273
SELECT DISTINCT col2 / - 27 - + 11 AS col2 FROM tab0
----
-11
-12
-14

query I rowsort
SELECT + 32 + 66 AS col0 FROM tab2 AS cor0
----
98
98
98

query I rowsort
SELECT + ( - col1 ) AS col1 FROM tab1 AS cor0 WHERE col0 * col1 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 40 col1, - col0 FROM tab0 AS cor0
----
-40
-15
-40
-87
-40
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6277
SELECT CAST( NULL AS DECIMAL ) 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-6277
SELECT CAST ( NULL AS REAL ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 46 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6279
SELECT ALL ( + COUNT( * ) ) * - CAST( - - COUNT( * ) AS SIGNED ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL ( + COUNT ( * ) ) * - CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab0
----
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 22 IS NOT NULL
----

query I rowsort
SELECT + col2 + ( + - ( + + col1 ) ) FROM tab2 WHERE NOT - 39 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT DISTINCT 1 * COUNT( DISTINCT ( + col1 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT 1 * COUNT ( DISTINCT ( + col1 ) ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-6283
SELECT DISTINCT + col0 DIV + - 11, + 1 AS col1 FROM tab2
----
-4
1
-5
1
-6
1

skipif mysql # not compatible
query II rowsort label-6283
SELECT DISTINCT + col0 / + - 11, + 1 AS col1 FROM tab2
----
-4
1
-5
1
-6
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6284
SELECT + col1 * + + col0 * 4, CAST( NULL AS SIGNED ) col2 FROM tab2
----
19712
NULL
20100
NULL
9384
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6284
SELECT + col1 * + + col0 * 4, CAST ( NULL AS INTEGER ) col2 FROM tab2
----
19712
NULL
20100
NULL
9384
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6285
SELECT + col2 DIV - CAST( - col1 AS SIGNED ) * - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6285
SELECT + col2 / - CAST ( - col1 AS INTEGER ) * - col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT - ( + + MIN( ALL col0 ) ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-6286
SELECT - ( + + MIN ( ALL col0 ) ) AS col0 FROM tab1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-6287
SELECT col2 DIV - + col1 col0 FROM tab0
----
-99
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6287
SELECT col2 / - + col1 col0 FROM tab0
----
-99
0
0

query I rowsort
SELECT - 14 * + col2 FROM tab2
----
-322
-560
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT SUM( DISTINCT - 3 ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6289
SELECT SUM ( DISTINCT - 3 ) col2 FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL <= col2
----

query I rowsort
SELECT DISTINCT + 84 * 21 + + col1 FROM tab1 AS cor0
----
1769
1778
1811

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( col2 ) * col2 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT col2 * - - col0 AS col0 FROM tab0
----
705
870
9603

query I rowsort
SELECT - col2 * col1 FROM tab1 WHERE NOT 80 + + 79 >= + col0
----

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE + 65 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT ALL - + MIN( DISTINCT + + col1 ) * + 35 FROM tab0 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-6297
SELECT ALL - + MIN ( DISTINCT + + col1 ) * + 35 FROM tab0 AS cor0
----
-35

query I rowsort
SELECT ALL + 61 + + + col0 * + 59 + col2 AS col2 FROM tab1 AS cor0
----
3166
5135
5498

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6299
SELECT CAST( - + ( COUNT( * ) ) AS SIGNED ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6299
SELECT CAST ( - + ( COUNT ( * ) ) AS INTEGER ) FROM tab0
----
-3

query II rowsort
SELECT + - 2, + col2 FROM tab0 WHERE - - col0 IS NOT NULL
----
-2
10
-2
47
-2
99

query I rowsort
SELECT DISTINCT + 73 + col2 * - + col2 * + - col0 FROM tab0
----
33208
8773
950770

query III rowsort
SELECT ALL * FROM tab0 WHERE 88 BETWEEN - col0 AND + col2
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT ALL COUNT( * ) + 76 AS col0 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL COUNT ( * ) + 76 AS col0 FROM tab0
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + + + col1 col1, + 94 * - 92 * col1 FROM tab2
----
0
-441048
0
-579416
0
-665896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6305
SELECT DISTINCT - CAST( - - 8 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-6305
SELECT DISTINCT - CAST ( - - 8 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-8

query I rowsort
SELECT DISTINCT + + col2 * + col0 + - col2 + col2 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT ALL + ( - + 90 ) AS col1 FROM tab0 AS cor0
----
-90
-90
-90

query I rowsort
SELECT DISTINCT - col1 + + col2 + + - col0 AS col0 FROM tab2
----
-101
-74
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6309
SELECT col0 AS col2 FROM tab0 WHERE - col2 <> - + CAST( + + 36 AS SIGNED ) * + 57 * + - col1 + - 9
----
15
87
97

skipif mysql # not compatible
query I rowsort label-6309
SELECT col0 AS col2 FROM tab0 WHERE - col2 <> - + CAST ( + + 36 AS INTEGER ) * + 57 * + - col1 + - 9
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT ALL + COUNT( * ) * - 67 * + 32 FROM tab1 AS cor0
----
-6432

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL + COUNT ( * ) * - 67 * + 32 FROM tab1 AS cor0
----
-6432

query I rowsort
SELECT + + col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 0 * - col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6312
SELECT - COUNT( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6312
SELECT - COUNT ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - col1 * - 66 AS col2 FROM tab0 AS cor0
----
-1386
-5346
-66

query I rowsort
SELECT DISTINCT - 7 * - + col2 * + col0 AS col0 FROM tab2 AS cor0
----
17920
30450
7406

query II rowsort
SELECT ALL - col0, col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query II rowsort
SELECT 0, + col1 FROM tab0 AS cor0
----
0
1
0
21
0
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT + MAX( col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6317
SELECT + MAX ( col0 ) AS col1 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT - MIN( + col0 ) * + + SUM( 2 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6318
SELECT - MIN ( + col0 ) * + + SUM ( 2 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT + ( - MIN( - col1 ) ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6319
SELECT + ( - MIN ( - col1 ) ) FROM tab0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6320
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6320
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6321
SELECT ALL + COUNT( * ) AS col0, + MAX( - - 46 ) col0 FROM tab2
----
3
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6321
SELECT ALL + COUNT ( * ) AS col0, + MAX ( - - 46 ) col0 FROM tab2
----
3
46

query I rowsort
SELECT + 11 AS col2 FROM tab0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT ALL COUNT( ALL 53 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL COUNT ( ALL 53 ) FROM tab0
----
3

query I rowsort
SELECT ALL + 33 * - + 96 FROM tab2
----
-3168
-3168
-3168

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT DISTINCT COUNT( * ) * - 5 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6325
SELECT DISTINCT COUNT ( * ) * - 5 FROM tab0 cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6326
SELECT - - col0 * col0 / - - col0 / - - CAST( NULL AS SIGNED ) * + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6326
SELECT - - col0 * col0 / - - col0 / - - CAST ( NULL AS INTEGER ) * + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 85, col2 + + col0 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN 46 + - col2 AND - ( + - 19 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, ( col2 ) AS col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 46 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col2 * + col2 + - 61 * col0 AS col1 FROM tab0
----
-5207
1294
3884

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT DISTINCT - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-6332
SELECT DISTINCT - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6333
SELECT DISTINCT ( + 30 ) AS col2, - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
30
NULL

skipif mysql # not compatible
query II rowsort label-6333
SELECT DISTINCT ( + 30 ) AS col2, - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
30
NULL

query I rowsort
SELECT + 2 + col2 * + + col0 - - ( - ( + - col0 ) ) FROM tab0 AS cor0
----
722
959
9702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col2 + 21 col2 FROM tab2 AS cor0
----
1194
3101
3907

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6336
SELECT DISTINCT + COUNT( * ) * MIN( ALL - + 51 ) + - 61 * - ( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6336
SELECT DISTINCT + COUNT ( * ) * MIN ( ALL - + 51 ) + - 61 * - ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + 48 + - - col0 * + col1 AS col0 FROM tab0 AS cor0
----
1167
1779
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT - COUNT( DISTINCT + - 4 ) + MAX( DISTINCT - col1 ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6338
SELECT - COUNT ( DISTINCT + - 4 ) + MAX ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-6

query I rowsort
SELECT + col0 + + 67 AS col1 FROM tab0 cor0
----
154
164
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT DISTINCT + COUNT( * ) + - 67 AS col1 FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-6340
SELECT DISTINCT + COUNT ( * ) + - 67 AS col1 FROM tab2
----
-64

query III rowsort
SELECT * FROM tab0 WHERE + col2 NOT BETWEEN NULL AND col0 / - - 55 + + ( + + 86 ) / col1 * - 39
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 38 + - col2 FROM tab0
----
-61
-9
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6343
SELECT DISTINCT - COUNT( * ) DIV - ( SUM( col1 ) ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6343
SELECT DISTINCT - COUNT ( * ) / - ( SUM ( col1 ) ) AS col1 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6344
SELECT ALL + col0 + + 65 DIV + col2 FROM tab2
----
48
65
76

skipif mysql # not compatible
query I rowsort label-6344
SELECT ALL + col0 + + 65 / + col2 FROM tab2
----
48
65
76

onlyif mysql # aggregate syntax: 
query II rowsort label-6345
SELECT DISTINCT AVG ( col2 ), - MIN( col1 ) + + COUNT( * ) AS col1 FROM tab2 WHERE - + col2 * col1 IS NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6345
SELECT DISTINCT AVG ( col2 ), - MIN ( col1 ) + + COUNT ( * ) AS col1 FROM tab2 WHERE - + col2 * col1 IS NULL
----
NULL
NULL

query I rowsort
SELECT - - 71 AS col2 FROM tab2 WHERE NULL > - + 13 * - 92
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6347
SELECT - col2 - + + 29 + + CAST( - col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
-139
-144
-93

skipif mysql # not compatible
query I rowsort label-6347
SELECT - col2 - + + 29 + + CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
-139
-144
-93

query I rowsort
SELECT - col2 - + 57 FROM tab0 cor0
----
-104
-156
-67

query I rowsort
SELECT ALL 8 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col0 FROM tab2
----
65
65
65

query I rowsort
SELECT DISTINCT - + 11 * - col2 - - - col1 * - 56 AS col2 FROM tab0 AS cor0
----
1145
1286
5053

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT MIN( + ( - col1 ) ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-6352
SELECT MIN ( + ( - col1 ) ) FROM tab1 AS cor0
----
-47

query II rowsort
SELECT col2 AS col2, + ( col2 ) + ( + - col0 ) * - + 74 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
6448
47
1157
99
7277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 col2 FROM tab1 AS cor0
----
-49

query I rowsort
SELECT - 93 FROM tab0 WHERE NOT NULL > - - 79
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab2 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( - 25 ) * - col2 + - col2 FROM tab0
----
1128
2376
240

query I rowsort
SELECT ( - ( - col1 ) ) * - col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT DISTINCT + COUNT( * ) * + 19 col2 FROM tab1
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6359
SELECT DISTINCT + COUNT ( * ) * + 19 col2 FROM tab1
----
57

query II rowsort
SELECT - col2 * + col0 + 72, - col1 * - - col2 AS col1 FROM tab1 cor0
----
-4824
-1344
-4943
-295
-6116
-3196

query II rowsort
SELECT ALL + col1 AS col0, col0 + - 98 AS col1 FROM tab2 AS cor0
----
51
-52
67
-23
77
-34

query I rowsort
SELECT col1 * + + col1 * col0 + + col1 AS col0 FROM tab1
----
10010
201066
2130

query I rowsort
SELECT ALL 89 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE 10 IS NULL
----

query II rowsort
SELECT DISTINCT - 5 AS col2, + col0 FROM tab2
----
-5
46
-5
64
-5
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6365
SELECT DISTINCT - 31 + + col1 * + - 30 * - col2 * + col2 DIV + col2 FROM tab2 cor0 WHERE NOT ( NOT NULL IS NULL )
----
116549
35159
92369

skipif mysql # not compatible
query I rowsort label-6365
SELECT DISTINCT - 31 + + col1 * + - 30 * - col2 * + col2 / + col2 FROM tab2 cor0 WHERE NOT ( NOT NULL IS NULL )
----
116549
35159
92369

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6366
SELECT - CAST( - 26 AS SIGNED ) FROM tab1 AS cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-6366
SELECT - CAST ( - 26 AS INTEGER ) FROM tab1 AS cor0
----
26
26
26

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 56 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 96 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + 71, - col2 + + col2 )
----

query I rowsort
SELECT + 37 * + col1 AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL >= + 63 * + col1 + + col1 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6371
SELECT col1 * + col1 / - + CAST( NULL AS SIGNED ) - + col2 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6371
SELECT col1 * + col1 / - + CAST ( NULL AS INTEGER ) - + col2 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT - + MAX( col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6372
SELECT - + MAX ( col2 ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT col2 - col0 + 61 + + col2 AS col0 FROM tab0
----
-6
140
162

query I rowsort
SELECT DISTINCT + 36 AS col0 FROM tab1
----
36

query I rowsort
SELECT ALL 12 + + - col2 AS col1 FROM tab0
----
-35
-87
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT ALL - MIN( - - ( + - 30 ) ) * + 19 + COUNT( ALL - col2 ) FROM tab1
----
573

skipif mysql # not compatible
query I rowsort label-6376
SELECT ALL - MIN ( - - ( + - 30 ) ) * + 19 + COUNT ( ALL - col2 ) FROM tab1
----
573

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6377
SELECT * FROM tab0 WHERE + col1 NOT BETWEEN - + col1 * ( + col2 ) + + CAST( NULL AS SIGNED ) + - col0 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6377
SELECT * FROM tab0 WHERE + col1 NOT BETWEEN - + col1 * ( + col2 ) + + CAST ( NULL AS INTEGER ) + - col0 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col0 AS col2, col0 * + col2 * col0 FROM tab0 WHERE - 75 BETWEEN 42 AND - col0 - + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6379
SELECT - 89 * - - 52 + 29 AS col2, - SUM( col0 ) AS col2 FROM tab2
----
-4599
-185

skipif mysql # not compatible
query II rowsort label-6379
SELECT - 89 * - - 52 + 29 AS col2, - SUM ( col0 ) AS col2 FROM tab2
----
-4599
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6380
SELECT - - CAST( + 55 AS SIGNED ) FROM tab2 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-6380
SELECT - - CAST ( + 55 AS INTEGER ) FROM tab2 AS cor0
----
55
55
55

query I rowsort
SELECT DISTINCT 39 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 - col0 AND NULL
----

query I rowsort
SELECT + 9 * + col0 * 39 FROM tab1 cor0
----
17901
29835
31941

query I rowsort
SELECT + col2 * - 7 * + 48 FROM tab2
----
-13440
-19488
-7728

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT DISTINCT + SUM( DISTINCT - 5 ) FROM tab0 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-6384
SELECT DISTINCT + SUM ( DISTINCT - 5 ) FROM tab0 cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT - MIN( - 29 ) AS col2 FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-6385
SELECT - MIN ( - 29 ) AS col2 FROM tab0 AS cor0
----
29

query II rowsort
SELECT + + 88, col1 * - 15 + - 27 AS col2 FROM tab0 AS cor0
----
88
-1242
88
-342
88
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-6387
SELECT COUNT( * ) AS col0, COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6387
SELECT COUNT ( * ) AS col0, COUNT ( * ) FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT - 51 * col2 FROM tab0 cor0
----
-2397
-5049
-510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6389
SELECT + 54 * CAST( NULL AS SIGNED ) * - - AVG ( + + col2 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6389
SELECT + 54 * CAST ( NULL AS INTEGER ) * - - AVG ( + + col2 ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6390
SELECT + + col0 AS col1, ( + 87 ) + - col0 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-6390
SELECT + + col0 AS col1, ( + 87 ) + - col0 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6391
SELECT ALL + 13 * COUNT( * ) DIV - - 8 AS col1 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-6391
SELECT ALL + 13 * COUNT ( * ) / - - 8 AS col1 FROM tab0 AS cor0
----
4

query I rowsort
SELECT DISTINCT 35 * - - col0 * - + 14 * - - 16 AS col1 FROM tab2 AS cor0
----
-360640
-501760
-588000

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT DISTINCT COUNT( ALL - + col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6393
SELECT DISTINCT COUNT ( ALL - + col1 ) FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6394
SELECT ALL - COUNT( + ( - CAST( NULL AS DECIMAL ) ) ) AS col2 FROM tab1 WHERE NULL <= + col0
----
0

skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL - COUNT ( + ( - CAST ( NULL AS REAL ) ) ) AS col2 FROM tab1 WHERE NULL <= + col0
----
0

query I rowsort
SELECT 43 * - col0 * + + 41 + - 82 AS col1 FROM tab1 cor0
----
-149937
-160515
-89995

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT - SUM( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-227

skipif mysql # not compatible
query I rowsort label-6396
SELECT - SUM ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-227

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + col1 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 + + 3 col1 FROM tab2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT ALL + MAX( + 88 ) FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-6399
SELECT ALL + MAX ( + 88 ) FROM tab2 AS cor0
----
88

query I rowsort
SELECT ALL - 24 * + + col1 FROM tab2 cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT - + 89 AS col0 FROM tab0 cor0 WHERE col2 + + col1 IS NOT NULL
----
-89
-89
-89

query II rowsort
SELECT ALL + - 71 AS col0, - col1 * + - col1 FROM tab2 AS cor0
----
-71
2601
-71
4489
-71
5929

query I rowsort
SELECT 2 + + 33 AS col1 FROM tab2 cor0
----
35
35
35

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 26 > col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 89 + - 77 * - col2 FROM tab0 AS cor0
----
3708
7712
859

query I rowsort
SELECT ALL + col1 * + + 96 FROM tab0 AS cor0
----
2016
7776
96

query I rowsort
SELECT ALL - 40 * + 97 FROM tab0 AS cor0
----
-3880
-3880
-3880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 * col0 col1 FROM tab2
----
107916
315392
376875

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT ALL - COUNT( * ) * ( COUNT( * ) ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL - COUNT ( * ) * ( COUNT ( * ) ) AS col1 FROM tab1
----
-9

query I rowsort
SELECT + 75 - col0 FROM tab2
----
0
11
29

query I rowsort
SELECT ALL 54 + - 57 AS col0 FROM tab2
----
-3
-3
-3

query I rowsort
SELECT col2 - - 6 + - 67 AS col1 FROM tab1
----
-2
35
7

query III rowsort
SELECT * FROM tab2 WHERE NULL IS NULL AND ( NULL IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + - col0 AND 21
----

query I rowsort
SELECT + ( - - 73 ) FROM tab0 AS cor0
----
73
73
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 * + + 85 col1 FROM tab2 AS cor0
----
179860
348160
478125

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT + SUM( ALL + - 17 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-6417
SELECT + SUM ( ALL + - 17 ) AS col1 FROM tab1
----
-51

query III rowsort
SELECT * FROM tab0 WHERE NOT + 29 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * + ( - 35 ) * - col0 * col1 AS col0 FROM tab0
----
1998675
336105
639450

query II rowsort
SELECT - 55, + col2 FROM tab1
----
-55
59
-55
68
-55
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT - COUNT( * ) * + 79 col2 FROM tab1
----
-237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6421
SELECT - COUNT ( * ) * + 79 col2 FROM tab1
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT DISTINCT COUNT( * ) * ( + + 38 ) + + SUM( - 84 ) AS col0 FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-6422
SELECT DISTINCT COUNT ( * ) * ( + + 38 ) + + SUM ( - 84 ) AS col0 FROM tab2
----
-138

query I rowsort
SELECT - 46 * + col1 * - col0 FROM tab0
----
4462
55890
84042

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT ALL + MIN( + 1 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6424
SELECT ALL + MIN ( + 1 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL - + 69 AS col1 FROM tab1 AS cor0
----
-69
-69
-69

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + - + 8 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6427
SELECT + CAST( - ( COUNT( * ) ) AS SIGNED ) FROM tab2 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6427
SELECT + CAST ( - ( COUNT ( * ) ) AS INTEGER ) FROM tab2 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT DISTINCT + - col2 - - - 69 AS col0 FROM tab1 AS cor0
----
-128
-137
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT + COUNT( * ) - ( - 75 ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-6429
SELECT + COUNT ( * ) - ( - 75 ) FROM tab1 AS cor0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 38 - + col2 col2 FROM tab2 AS cor0
----
-2
-20
15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 86 / + col1 + + col0 = col1 * - 15 - - col1 - + col2 * + - col1 + - - col2 * - col2 * + + col0 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 18 + + col1 + - col0 * - 79 col2 FROM tab0 AS cor0
----
1248
6876
7646

query I rowsort
SELECT - + col1 + + 4 + 33 AS col0 FROM tab1 cor0
----
-10
23
32

query I rowsort
SELECT DISTINCT - 78 * ( - - 89 ) FROM tab1 AS cor0
----
-6942

query I rowsort
SELECT 12 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 + + 47 FROM tab1 AS cor0
----
52
61
94

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 72 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT + SUM( ALL 41 ) * + 74 + - - 91 AS col2 FROM tab0
----
9193

skipif mysql # not compatible
query I rowsort label-6438
SELECT + SUM ( ALL 41 ) * + 74 + - - 91 AS col2 FROM tab0
----
9193

query I rowsort
SELECT 9 * + - 59 + 71 AS col0 FROM tab2
----
-460
-460
-460

query I rowsort
SELECT DISTINCT - ( + - ( - ( + col0 ) ) ) AS col0 FROM tab1 WHERE 45 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + col0 * + + col2 AS col1 FROM tab0
----
705
870
9603

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 <= - 87 + - 82 + + col2
----

query II rowsort
SELECT col1 AS col1, col1 * + 63 FROM tab2 AS cor0
----
51
3213
67
4221
77
4851

query II rowsort
SELECT + 63, col2 AS col0 FROM tab1 cor0
----
63
59
63
68
63
96

query I rowsort
SELECT ALL 65 * + col2 FROM tab1 AS cor0
----
3835
4420
6240

query I rowsort
SELECT ALL - AVG ( + 99 ) FROM tab0 WHERE NOT + 13 / + 88 + col1 NOT BETWEEN NULL AND - col2 * col2 + col1
----
NULL

query I rowsort
SELECT ALL 52 * + - col0 * + + col0 AS col2 FROM tab1
----
-135252
-375700
-430612

onlyif mysql # aggregate syntax: 
query II rowsort label-6448
SELECT DISTINCT + COUNT( * ) AS col0, - COUNT( * ) FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-6448
SELECT DISTINCT + COUNT ( * ) AS col0, - COUNT ( * ) FROM tab2
----
3
-3

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE - 26 = + - col1
----

query I rowsort
SELECT DISTINCT 68 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT DISTINCT - - COUNT( + + col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6451
SELECT DISTINCT - - COUNT ( + + col1 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6452
SELECT + COUNT( * ) AS col1, SUM( DISTINCT + - CAST( - + col2 AS SIGNED ) ) FROM tab0 AS cor0
----
3
156

skipif mysql # not compatible
query II rowsort label-6452
SELECT + COUNT ( * ) AS col1, SUM ( DISTINCT + - CAST ( - + col2 AS INTEGER ) ) FROM tab0 AS cor0
----
3
156

query II rowsort
SELECT DISTINCT + col0, ( 44 ) FROM tab2 cor0
----
46
44
64
44
75
44

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 14 <> 83
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-6455
SELECT COUNT( * ), - MIN( DISTINCT 84 ) AS col1 FROM tab0 AS cor0
----
3
-84

skipif mysql # not compatible
query II rowsort label-6455
SELECT COUNT ( * ), - MIN ( DISTINCT 84 ) AS col1 FROM tab0 AS cor0
----
3
-84

query I rowsort
SELECT ALL col1 * + + col1 * + 70 FROM tab2 AS cor0
----
182070
314230
415030

onlyif mysql # aggregate syntax: 
query II rowsort label-6457
SELECT DISTINCT ( 75 ), MIN( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
75
-91

skipif mysql # not compatible
query II rowsort label-6457
SELECT DISTINCT ( 75 ), MIN ( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
75
-91

query I rowsort
SELECT + ( + 30 ) + + col0 FROM tab0 AS cor0
----
117
127
45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 20 * col2 - - 33 + - - 14 + col1 IS NOT NULL
----

query I rowsort
SELECT 73 * + 1 + - - 32 * + + ( - col0 ) FROM tab1
----
-1559
-2647
-2839

query I rowsort
SELECT col0 * col1 AS col0 FROM tab0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT - ( col2 ) + 78 AS col1 FROM tab0
----
-21
31
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6463
SELECT DISTINCT + 99 + + - CAST( - 71 AS SIGNED ) AS col1, 1 FROM tab0
----
170
1

skipif mysql # not compatible
query II rowsort label-6463
SELECT DISTINCT + 99 + + - CAST ( - 71 AS INTEGER ) AS col1, 1 FROM tab0
----
170
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6464
SELECT ALL + 61 DIV - 7 AS col0 FROM tab1
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-6464
SELECT ALL + 61 / - 7 AS col0 FROM tab1
----
-8
-8
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-6465
SELECT + ( 36 ) * + 63 + - col1 + - - col2 + + + col2 DIV + - 14 FROM tab0
----
2231
2257
2359

skipif mysql # not compatible
query I rowsort label-6465
SELECT + ( 36 ) * + 63 + - col1 + - - col2 + + + col2 / + - 14 FROM tab0
----
2231
2257
2359

query II rowsort
SELECT DISTINCT col0 * + col2 AS col2, 49 AS col2 FROM tab1
----
4896
49
5015
49
6188
49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > + 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT ALL + SUM( DISTINCT + - col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL + SUM ( DISTINCT + - col2 ) AS col0 FROM tab0
----
-156

query I rowsort
SELECT col1 + col0 + - 67 * + 49 + + + 11 AS col1 FROM tab2
----
-3130
-3131
-3175

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT 26 + - COUNT( * ) FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-6470
SELECT 26 + - COUNT ( * ) FROM tab0
----
23

query I rowsort
SELECT DISTINCT 97 * 90 * - 89 - - col1 FROM tab2 AS cor0
----
-776893
-776903
-776919

query I rowsort
SELECT + col0 + - col1 * + - col1 FROM tab2 AS cor0
----
2647
4564
5993

query I rowsort
SELECT ALL + + col0 * - + col1 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL 8 - + - 39 AS col2 FROM tab1 cor0
----
47
47
47

query I rowsort
SELECT - + col2 FROM tab2 WHERE NOT col0 * - 47 * 84 IS NOT NULL
----

query I rowsort
SELECT ALL - 56 AS col1 FROM tab0
----
-56
-56
-56

query I rowsort
SELECT + col1 * 50 AS col0 FROM tab2
----
2550
3350
3850

onlyif mysql # aggregate syntax: 
query II rowsort label-6478
SELECT + MIN( ALL - col0 ) col1, MIN( + + 71 ) + - + 17 AS col1 FROM tab0
----
-97
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6478
SELECT + MIN ( ALL - col0 ) col1, MIN ( + + 71 ) + - + 17 AS col1 FROM tab0
----
-97
54

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6480
SELECT col2 DIV + + 71 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6480
SELECT col2 / + + 71 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col2 * - - ( + 70 ) FROM tab0
----
3290
6930
700

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + 33 ) * col2 + - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT DISTINCT + + COUNT( * ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6483
SELECT DISTINCT + + COUNT ( * ) col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT col0 AS col2, col1 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6485
SELECT ALL COUNT( * ) DIV - - 68 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL COUNT ( * ) / - - 68 AS col2 FROM tab1
----
0

query II rowsort
SELECT col1, col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6487
SELECT ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6487
SELECT ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( + + 86 ) ) * - col0 + + ( - col2 ) <= + col0 / col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6489
SELECT - CAST( + 39 AS SIGNED ) DIV col2 DIV - - 95 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6489
SELECT - CAST ( + 39 AS INTEGER ) / col2 / - - 95 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT + col2, + 17 FROM tab2
----
23
17
40
17
58
17

onlyif mysql # DIV for integer division: 
query I rowsort label-6491
SELECT ALL - col2 DIV + col2 + - 56 AS col1 FROM tab0
----
-57
-57
-57

skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL - col2 / + col2 + - 56 AS col1 FROM tab0
----
-57
-57
-57

query II rowsort
SELECT ALL 39 AS col2, - col1 * - col2 + col2 AS col2 FROM tab1
----
39
1440
39
3264
39
354

query II rowsort
SELECT col2 AS col1, col2 AS col1 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT DISTINCT + 41 + + + col2 AS col2 FROM tab2
----
64
81
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT DISTINCT - SUM( - col2 ) + + ( + COUNT( * ) ) FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-6495
SELECT DISTINCT - SUM ( - col2 ) + + ( + COUNT ( * ) ) FROM tab2
----
124

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 = NULL
----

query I rowsort
SELECT col2 + + + 30 AS col1 FROM tab2
----
53
70
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT COUNT( + 78 ) + + 46 FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-6498
SELECT COUNT ( + 78 ) + + 46 FROM tab0
----
49

query I rowsort
SELECT + + 71 + - col1 * - col1 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT + + ( + col2 ) + - ( + 7 ) AS col1 FROM tab2 AS cor0
----
16
33
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 * - 93 + + col0 col1 FROM tab1 AS cor0
----
-3350
-3356
-3390

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6502
SELECT + col1 FROM tab0 cor0 WHERE CAST( NULL AS DECIMAL ) IS NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-6502
SELECT + col1 FROM tab0 cor0 WHERE CAST ( NULL AS REAL ) IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT - MIN( DISTINCT - + 33 ) AS col2 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-6503
SELECT - MIN ( DISTINCT - + 33 ) AS col2 FROM tab1 AS cor0
----
33

query I rowsort
SELECT - col1 * - 52 * - + col1 FROM tab2
----
-135252
-233428
-308308

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT - 0 + - + COUNT( * ) + COUNT( * ) * + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-90

skipif mysql # not compatible
query I rowsort label-6505
SELECT - 0 + - + COUNT ( * ) + COUNT ( * ) * + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 36 + - ( 63 ) col0 FROM tab1
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT - ( 45 ) * + + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col2 * col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6507
SELECT - ( 45 ) * + + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col2 * col2 IS NOT NULL
----
0

query I rowsort
SELECT ALL + col1 * 20 AS col2 FROM tab1
----
100
280
940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6509
SELECT - COUNT( * ) * - COUNT( * ) * + + 85, MAX( ALL + CAST( + col1 AS SIGNED ) ) AS col2 FROM tab1
----
765
47

skipif mysql # not compatible
query II rowsort label-6509
SELECT - COUNT ( * ) * - COUNT ( * ) * + + 85, MAX ( ALL + CAST ( + col1 AS INTEGER ) ) AS col2 FROM tab1
----
765
47

query II rowsort
SELECT - col1 AS col2, 23 FROM tab2
----
-51
23
-67
23
-77
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, col1 + + 77 FROM tab2
----
23
128
40
154
58
144

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT ALL MAX( ALL + + col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-6512
SELECT ALL MAX ( ALL + + col0 ) FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT - 36 * + + SUM( 83 ) * 82 col2 FROM tab0 WHERE NOT ( NOT + col2 * 73 NOT BETWEEN + col2 AND + - 80 + + + col1 )
----
-735048

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6513
SELECT - 36 * + + SUM ( 83 ) * 82 col2 FROM tab0 WHERE NOT ( NOT + col2 * 73 NOT BETWEEN + col2 AND + - 80 + + + col1 )
----
-735048

query I rowsort
SELECT ALL - - col0 + col0 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( + col2 * col1 + - - 26 + col0, - 71, + 36 / + col2, + col0 - + - col1 * - + col1, + 3 )
----

query I rowsort
SELECT ALL + 2 * - + 47 FROM tab1 AS cor0
----
-94
-94
-94

query I rowsort
SELECT - 6 AS col2 FROM tab0 AS cor0 WHERE NOT + ( - 42 ) * col0 IS NULL
----
-6
-6
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6517
SELECT ALL COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL <> col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL <> col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT DISTINCT + - COUNT( + 3 ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6518
SELECT DISTINCT + - COUNT ( + 3 ) col1 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + - 11 AS col2, 43 + - col2 FROM tab2 AS cor0
----
-11
-15
-11
20
-11
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT ALL + + SUM( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL + + SUM ( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-103

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 26 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 88 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-2024
-3520
-5104

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 / + 68 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE 92 BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT DISTINCT MAX( - col0 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-6525
SELECT DISTINCT MAX ( - col0 ) AS col0 FROM tab2
----
-46

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NOT ( NULL ) < - 56 + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6527
SELECT ALL + ( 16 ) * MIN( - col1 DIV CAST( 19 AS SIGNED ) ) AS col1 FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL + ( 16 ) * MIN ( - col1 / CAST ( 19 AS INTEGER ) ) AS col1 FROM tab2
----
-64

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 + 89 NOT BETWEEN ( col2 + 32 ) AND ( NULL )
----

query I rowsort
SELECT ALL - 89 * 75 FROM tab2
----
-6675
-6675
-6675

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NOT + col0 * - 28 NOT IN ( + col1 + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( + 82 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + ( + col0 ) FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - ( - 65 ) FROM tab0
----
65
65
65

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT + 35 IS NOT NULL
----

query I rowsort
SELECT - 83 * + col2 FROM tab1
----
-4897
-5644
-7968

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT DISTINCT - 1 * + COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6536
SELECT DISTINCT - 1 * + COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT ALL COUNT( + 2 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6537
SELECT ALL COUNT ( + 2 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE + 93 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6538
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE + 93 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT - COUNT( * ) * - 2 AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-6539
SELECT - COUNT ( * ) * - 2 AS col2 FROM tab2
----
6

query I rowsort
SELECT col2 FROM tab1 WHERE 78 >= NULL
----

query I rowsort
SELECT ALL col0 - 9 AS col1 FROM tab1
----
42
76
82

query I rowsort
SELECT 17 * + col2 FROM tab2
----
391
680
986

query I rowsort
SELECT 23 * col1 AS col0 FROM tab1
----
1081
115
322

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT ALL - COUNT( - col2 ) * - 64 AS col2 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL - COUNT ( - col2 ) * - 64 AS col2 FROM tab1
----
192

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * 90 IN ( ( + col2 ) * col0 )
----

query I rowsort
SELECT + 97 * + col1 FROM tab0
----
2037
7857
97

query III rowsort
SELECT * FROM tab2 WHERE NOT - 27 * col1 NOT IN ( ( col1 ) * col1 + - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 93 - 39 * + col0 <= - col0
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE NOT ( NULL ) <> - 53 * 20
----

query I rowsort
SELECT ALL 65 * col2 + 86 FROM tab0 WHERE NOT - col0 + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 NOT BETWEEN NULL AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 + + 49 * + 85 col2 FROM tab0
----
4262
5380
5992

query I rowsort
SELECT col2 + - ( col2 ) AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT - COUNT( 79 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6554
SELECT - COUNT ( 79 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6555
SELECT ALL CAST( COUNT( * ) AS SIGNED ) * + 79 AS col0 FROM tab1
----
237

skipif mysql # not compatible
query I rowsort label-6555
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) * + 79 AS col0 FROM tab1
----
237

query I rowsort
SELECT DISTINCT - col1 * - 79 FROM tab2
----
4029
5293
6083

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT DISTINCT - MAX( DISTINCT col0 ) col2 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6557
SELECT DISTINCT - MAX ( DISTINCT col0 ) col2 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT ALL 66 * - COUNT( * ) AS col2 FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL 66 * - COUNT ( * ) AS col2 FROM tab1
----
-198

query I rowsort
SELECT - 68 AS col1 FROM tab0 WHERE NULL IS NULL
----
-68
-68
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6560
SELECT DISTINCT CAST( NULL AS SIGNED ) - 85 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6560
SELECT DISTINCT CAST ( NULL AS INTEGER ) - 85 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT COUNT( * ) * + 96 col2 FROM tab2 AS cor0
----
288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6561
SELECT COUNT ( * ) * + 96 col2 FROM tab2 AS cor0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT DISTINCT - MIN( DISTINCT col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NULL
----
-46

skipif mysql # not compatible
query I rowsort label-6562
SELECT DISTINCT - MIN ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NULL
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT DISTINCT + COUNT( col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6563
SELECT DISTINCT + COUNT ( col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6564
SELECT - col1 / CAST( NULL AS SIGNED ) - col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6564
SELECT - col1 / CAST ( NULL AS INTEGER ) - col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6565
SELECT ALL - col2 DIV + col0 - - col1 * - col0 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL - col2 / + col0 - - col1 * - col0 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT + 82 - - col1 AS col2 FROM tab0 AS cor0
----
103
163
83

query I rowsort
SELECT DISTINCT - ( - ( + col0 ) ) * + 46 FROM tab0 AS cor0
----
4002
4462
690

query I rowsort
SELECT - 89 + ( - col2 ) FROM tab0
----
-136
-188
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT DISTINCT + COUNT( * ) * - 23 FROM tab0 WHERE ( NULL ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6569
SELECT DISTINCT + COUNT ( * ) * - 23 FROM tab0 WHERE ( NULL ) = NULL
----
0

query I rowsort
SELECT ALL 36 - + col2 FROM tab2
----
-22
-4
13

query I rowsort
SELECT DISTINCT - col2 - + col2 FROM tab2
----
-116
-46
-80

query I rowsort
SELECT - ( 60 ) FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT + MIN( + 46 ) FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6573
SELECT + MIN ( + 46 ) FROM tab1 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT + COUNT( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6574
SELECT + COUNT ( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6575
SELECT DISTINCT 72 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE 68 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6575
SELECT DISTINCT 72 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE 68 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 50 * col0 + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
2249
3123
3683

query I rowsort
SELECT ALL - + 53 FROM tab2 cor0
----
-53
-53
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 38 col1 FROM tab2 AS cor0
----
1520
2204
874

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 + - col1 ) = ( + col1 * - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT MAX( 48 ) AS col2 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-6580
SELECT MAX ( 48 ) AS col2 FROM tab0
----
48

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN 21 AND NULL
----

query I rowsort
SELECT ALL - ( 34 ) FROM tab0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT col1 * + col1 AS col2 FROM tab2 WHERE NOT - col1 NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT + MIN( - col2 ) * - COUNT( * ) FROM tab0 WHERE NOT 29 NOT IN ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6584
SELECT + MIN ( - col2 ) * - COUNT ( * ) FROM tab0 WHERE NOT 29 NOT IN ( - col0 )
----
NULL

query I rowsort
SELECT - col2 * - col0 * - col0 FROM tab2
----
-163840
-326250
-48668

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6586
SELECT * FROM tab0 WHERE NOT ( 75 / CAST( NULL AS SIGNED ) ) IN ( - col2 * col1 )
----

skipif mysql # not compatible
query III rowsort label-6586
SELECT * FROM tab0 WHERE NOT ( 75 / CAST ( NULL AS INTEGER ) ) IN ( - col2 * col1 )
----

query I rowsort
SELECT ALL ( + + 21 ) FROM tab2
----
21
21
21

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 ) = ( NULL )
----

query I rowsort
SELECT ( col0 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6590
SELECT - COUNT( * ) DIV MAX( + col0 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6590
SELECT - COUNT ( * ) / MAX ( + col0 ) AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - 23 AS col0 FROM tab2 WHERE NOT ( + col1 ) IS NULL OR col1 < ( + col0 + + col2 / 33 )
----
-23

query I rowsort
SELECT ALL 10 AS col1 FROM tab2 AS cor0 WHERE NOT col2 / col0 = col1
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL >= + col0 * col0
----
0

skipif mysql # not compatible
query I rowsort label-6593
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL >= + col0 * col0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 73 + - col1 <= ( col0 * col2 )
----

query I rowsort
SELECT DISTINCT 96 - + col2 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col1 + - col2 IS NULL
----

query I rowsort
SELECT ALL ( + 31 ) FROM tab0 AS cor0
----
31
31
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6598
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IN ( - col2 * + + 32 * + 57 - 72 )
----
0

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IN ( - col2 * + + 32 * + 57 - 72 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + col0 * - col0 NOT BETWEEN ( - col1 ) AND + col2 + - col2
----

query I rowsort
SELECT 25 AS col2 FROM tab2 AS cor0 WHERE 17 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT DISTINCT MAX( + + col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6601
SELECT DISTINCT MAX ( + + col2 ) AS col0 FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6602
SELECT + CAST( + col1 AS SIGNED ) AS col2 FROM tab2 cor0 WHERE ( ( - col2 ) ) <> col1
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6602
SELECT + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 cor0 WHERE ( ( - col2 ) ) <> col1
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT DISTINCT COUNT( DISTINCT 62 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6603
SELECT DISTINCT COUNT ( DISTINCT 62 ) FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6604
SELECT ALL + col2 + + col2 AS col0, + col2 DIV - - col2 FROM tab1
----
118
1
136
1
192
1

skipif mysql # not compatible
query II rowsort label-6604
SELECT ALL + col2 + + col2 AS col0, + col2 / - - col2 FROM tab1
----
118
1
136
1
192
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6605
SELECT DISTINCT 75 * - - CAST( NULL AS SIGNED ) + SUM( + col1 ) * COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6605
SELECT DISTINCT 75 * - - CAST ( NULL AS INTEGER ) + SUM ( + col1 ) * COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6606
SELECT ALL - 82 * - CAST( NULL AS SIGNED ) * + col2 * 9 + + 55 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL - 82 * - CAST ( NULL AS INTEGER ) * + col2 * 9 + + 55 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 96 + col1 FROM tab0
----
117
177
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( + col0 ) AND NOT col1 + - ( col2 + col2 * - col0 ) / - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6609
SELECT DISTINCT CAST( + 8 AS SIGNED ) col1 FROM tab0 WHERE NOT 87 < + CAST( 59 AS DECIMAL ) - + col1 AND NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6609
SELECT DISTINCT CAST ( + 8 AS INTEGER ) col1 FROM tab0 WHERE NOT 87 < + CAST ( 59 AS REAL ) - + col1 AND NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6610
SELECT DISTINCT + CAST( + col2 AS SIGNED ) - + 69 * + col0 FROM tab1 AS cor0
----
-3423
-5806
-6211

skipif mysql # not compatible
query I rowsort label-6610
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) - + 69 * + col0 FROM tab1 AS cor0
----
-3423
-5806
-6211

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE NOT 82 + - col2 IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6612
SELECT DISTINCT - 88 - - COUNT( * ) + - - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6612
SELECT DISTINCT - 88 - - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT - 71 * col0 AS col0 FROM tab0 AS cor0
----
-1065
-6177
-6887

query I rowsort
SELECT ALL - col2 + + 67 AS col1 FROM tab1 AS cor0
----
-1
-29
8

query I rowsort
SELECT ALL col0 + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT ALL 8 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT ( + ( col0 ) ) > 26 + - col2 )
----
8
8
8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 - - col1 >= ( + + col1 + - col1 )
----

query I rowsort
SELECT col2 * - col2 FROM tab2 WHERE - + ( col2 ) BETWEEN - 86 AND col2 - + 12 * 32
----

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE + 47 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6620
SELECT DISTINCT + col0 + - + col2 DIV - ( - + col0 ) * - col2 AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6620
SELECT DISTINCT + col0 + - + col2 / - ( - + col0 ) * - col2 AS col1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT ALL - SUM( ALL + + 38 ) FROM tab2 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL - SUM ( ALL + + 38 ) FROM tab2 AS cor0
----
-114

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6622
SELECT 63 + col1 / - 21 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 * + 96 BETWEEN CAST( NULL AS DECIMAL ) * + col0 AND 19
----

skipif mysql # not compatible
query I rowsort label-6622
SELECT 63 + col1 / - 21 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 * + 96 BETWEEN CAST ( NULL AS REAL ) * + col0 AND 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT MIN( ALL + + 69 ) FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-6623
SELECT MIN ( ALL + + 69 ) FROM tab0 AS cor0
----
69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND ( ( 29 ) )
----

query I rowsort
SELECT DISTINCT 26 * col2 AS col2 FROM tab0 AS cor0
----
1222
2574
260

onlyif mysql # DIV for integer division: 
query I rowsort label-6626
SELECT ALL - - col2 DIV + 56 AS col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6626
SELECT ALL - - col2 / + 56 AS col1 FROM tab2 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6628
SELECT ALL - 5 DIV + col1 + - - 75 - 39 + + 40 FROM tab2 AS cor0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-6628
SELECT ALL - 5 / + col1 + - - 75 - 39 + + 40 FROM tab2 AS cor0
----
76
76
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6629
SELECT CAST( NULL AS SIGNED ) + col1 + + 72 * + CAST( col2 / - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6629
SELECT CAST ( NULL AS INTEGER ) + col1 + + 72 * + CAST ( col2 / - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 76 AS col2, + col1 + + col2 FROM tab0
----
-76
100
-76
128
-76
31

query II rowsort
SELECT DISTINCT + 17 AS col0, - 19 FROM tab2
----
17
-19

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 - - + 95 ) > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) FROM tab2, tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6633
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) FROM tab2, tab1 AS cor0
----
81

query I rowsort
SELECT DISTINCT 18 * + - col0 AS col0 FROM tab0
----
-1566
-1746
-270

onlyif mysql # DIV for integer division: 
query I rowsort label-6635
SELECT - col2 DIV + + 38 AS col0 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6635
SELECT - col2 / + + 38 AS col0 FROM tab0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT + 70 * - COUNT( * ) FROM tab2 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-6636
SELECT + 70 * - COUNT ( * ) FROM tab2 AS cor0
----
-210

query I rowsort
SELECT 29 + - 35 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IS NOT NULL AND NOT - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6639
SELECT - col1 + + + ( col1 ) DIV + - 15 AS col2 FROM tab1 cor0
----
-14
-5
-50

skipif mysql # not compatible
query I rowsort label-6639
SELECT - col1 + + + ( col1 ) / + - 15 AS col2 FROM tab1 cor0
----
-14
-5
-50

query I rowsort
SELECT 86 + + col0 + - 47 AS col1 FROM tab2 AS cor0
----
103
114
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6641
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( - col2 AS SIGNED ) <> ( + col2 * + - col2 - col0 )
----

skipif mysql # not compatible
query III rowsort label-6641
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( - col2 AS INTEGER ) <> ( + col2 * + - col2 - col0 )
----

query I rowsort
SELECT 87 + ( + + col1 ) FROM tab1 AS cor0
----
101
134
92

query I rowsort
SELECT ALL + ( - col2 ) * + col1 AS col2 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT + 16 + + ( - + col0 ) * + 61 * - 7 + - ( - + col0 ) * ( col2 ) FROM tab0 AS cor0
----
38035
51038
7126

onlyif mysql # DIV for integer division: 
query I rowsort label-6645
SELECT + col1 DIV - + 39 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6645
SELECT + col1 / - + 39 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6646
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN + CAST( NULL AS SIGNED ) AND ( + ( + + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-6646
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN + CAST ( NULL AS INTEGER ) AND ( + ( + + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE ( NOT ( NULL ) >= ( - col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6647
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NOT ( NULL ) >= ( - col2 ) )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6648
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6648
SELECT DISTINCT + CAST ( NULL AS REAL ) * - - col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 24 + - + 14 FROM tab0
----
10

query I rowsort
SELECT + - ( + + col2 ) FROM tab1 WHERE NULL IS NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - 97 - - 72 FROM tab1
----
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col2 FROM tab2
----
63
63
63

query I rowsort
SELECT DISTINCT + col2 * + col0 * - + 25 AS col0 FROM tab0 AS cor0
----
-17625
-21750
-240075

query I rowsort
SELECT + + 1 + col2 FROM tab0 AS cor0
----
100
11
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6655
SELECT ALL + col2 DIV - - col2 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL + col2 / - - col2 AS col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT COUNT( * ) * + 49 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
441

skipif mysql # not compatible
query I rowsort label-6656
SELECT COUNT ( * ) * + 49 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
441

query I rowsort
SELECT ALL - + 4 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT DISTINCT + MAX( col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-6658
SELECT DISTINCT + MAX ( col0 ) FROM tab0
----
97

query I rowsort
SELECT - + 12 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 col1 FROM tab0
----
97
97
97

query I rowsort
SELECT 50 AS col2 FROM tab0 cor0
----
50
50
50

query I rowsort
SELECT DISTINCT - 10 * + 28 * - ( + 24 ) AS col0 FROM tab0 AS cor0
----
6720

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + - col1 + - col1 + + + col2 + + col1 * - col0 NOT BETWEEN ( NULL ) AND - col1 + - - col0
----

query I rowsort
SELECT ALL - col2 * col2 * col0 FROM tab2 cor0
----
-102400
-24334
-252300

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT col0 <> + col2
----

query I rowsort
SELECT ALL ( + col2 ) * - + 23 FROM tab2 AS cor0
----
-1334
-529
-920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6667
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) / - 98 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6667
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) / - 98 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT MIN( DISTINCT - 2 ) FROM tab2 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-6668
SELECT MIN ( DISTINCT - 2 ) FROM tab2 cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT 5 * + - COUNT( * ) AS col0 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-6669
SELECT 5 * + - COUNT ( * ) AS col0 FROM tab1
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-6670
SELECT - MIN( DISTINCT - - ( col1 ) ) AS col2, + COUNT( * ) AS col0 FROM tab0
----
-1
3

skipif mysql # not compatible
query II rowsort label-6670
SELECT - MIN ( DISTINCT - - ( col1 ) ) AS col2, + COUNT ( * ) AS col0 FROM tab0
----
-1
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col2 / - col0 BETWEEN ( NULL ) AND + col1 / - 22
----
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT DISTINCT COUNT( - + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6672
SELECT DISTINCT COUNT ( - + col2 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT - COUNT( DISTINCT + 6 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6673
SELECT - COUNT ( DISTINCT + 6 ) FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6674
SELECT ALL col0 * - + CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6674
SELECT ALL col0 * - + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 53 * + 7 FROM tab2
----
371
371
371

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + + 65 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6677
SELECT DISTINCT col0 * 80 DIV 7 AS col0, - col0 FROM tab2
----
525
-46
731
-64
857
-75

skipif mysql # not compatible
query II rowsort label-6677
SELECT DISTINCT col0 * 80 / 7 AS col0, - col0 FROM tab2
----
525
-46
731
-64
857
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * col1 IS NOT NULL
----

query I rowsort
SELECT + col0 + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-1012
-2496
-4275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 col1 FROM tab2
----
11
11
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 + + 40 col0 FROM tab1
----
55
55
55

query I rowsort
SELECT ALL + 97 + - ( + col1 ) FROM tab1
----
50
83
92

query I rowsort
SELECT DISTINCT - col1 - + col1 - + 81 AS col2 FROM tab0
----
-123
-243
-83

query II rowsort
SELECT ALL + col1 AS col2, 45 AS col2 FROM tab2 AS cor0 WHERE NOT + ( - 72 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6685
SELECT ALL - col1 DIV + 75 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6685
SELECT ALL - col1 / + 75 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT DISTINCT COUNT( * ) - + - 96 + ( + - ( + COUNT( * ) ) ) * + + COUNT( * ) + + - 93 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT COUNT ( * ) - + - 96 + ( + - ( + COUNT ( * ) ) ) * + + COUNT ( * ) + + - 93 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL 6 FROM tab0 cor0
----
6
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 - + + col2 col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + + col2 IS NOT NULL AND NULL NOT BETWEEN col1 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT DISTINCT + - MAX( ALL - col0 ) col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6690
SELECT DISTINCT + - MAX ( ALL - col0 ) col1 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6691
SELECT - CAST( - col2 AS SIGNED ) DIV 52 * - col1 + - - col1 + - col1 * - col2 FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-6691
SELECT - CAST ( - col2 AS INTEGER ) / 52 * - col1 + - - col1 + - col1 * - col2 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT ALL + col2 * + - col0 * - col2 + + - 45 AS col2 FROM tab2 AS cor0
----
102355
24289
252255

query I rowsort
SELECT + - 60 * + - 54 + ( - col2 ) + col0 FROM tab1 AS cor0
----
3195
3263
3266

query II rowsort
SELECT - col2 * col0 + + col1 + + 95 * - 9 AS col0, + col1 FROM tab1
----
-5737
14
-5865
5
-6996
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6695
SELECT + - 81 + + CAST( + + ( + ( - + 14 ) ) AS SIGNED ) FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6695
SELECT + - 81 + + CAST ( + + ( + ( - + 14 ) ) AS INTEGER ) FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT - 33 + - COUNT( * ) + ( + + COUNT( * ) ) FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-6696
SELECT - 33 + - COUNT ( * ) + ( + + COUNT ( * ) ) FROM tab2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6697
SELECT ALL CAST( NULL AS SIGNED ) - - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6697
SELECT ALL CAST ( NULL AS INTEGER ) - - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 1 + - col1 + + col1 * - col1 * - 1 AS col0 FROM tab2
----
2551
4423
5853

query I rowsort
SELECT DISTINCT col1 + - - col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( - - 99 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - 96 AS col1, + col2 FROM tab2
----
-96
23
-96
40
-96
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 18, 48 * 15 col2 FROM tab1
----
18
720
18
720
18
720

query I rowsort
SELECT ALL + col2 * - - col1 FROM tab0 WHERE NOT + - col2 + + col2 + - col0 IS NOT NULL
----

query II rowsort
SELECT + col1, + col2 + + + col1 FROM tab0 AS cor0
----
1
100
21
31
81
128

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT DISTINCT MAX( DISTINCT + 32 ) AS col0 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-6705
SELECT DISTINCT MAX ( DISTINCT + 32 ) AS col0 FROM tab0 AS cor0
----
32

query I rowsort
SELECT DISTINCT + 70 + + 64 FROM tab0 AS cor0 WHERE ( NOT - 20 * + + col1 * col0 IS NOT NULL )
----

query I rowsort
SELECT - ( - 97 ) FROM tab2 AS cor0
----
97
97
97

query I rowsort
SELECT - - 81 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ALL 9 FROM tab2 cor0 WHERE - 14 IS NOT NULL
----
9
9
9

query I rowsort
SELECT + ( col1 ) + - 90 + - col1 AS col2 FROM tab1
----
-90
-90
-90

query I rowsort
SELECT DISTINCT + col1 + + col0 + col2 FROM tab0
----
118
143
197

onlyif mysql # aggregate syntax: 
query II rowsort label-6712
SELECT ALL + 68 + COUNT( * ) AS col1, MIN( ALL col0 ) * + COUNT( * ) FROM tab2
----
71
138

skipif mysql # not compatible
query II rowsort label-6712
SELECT ALL + 68 + COUNT ( * ) AS col1, MIN ( ALL col0 ) * + COUNT ( * ) FROM tab2
----
71
138

query I rowsort
SELECT DISTINCT - col1 * - - 46 FROM tab1
----
-2162
-230
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT ALL - + ( + COUNT( * ) ) + + + 98 FROM tab1 WHERE NOT NULL <= + col1
----
98

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL - + ( + COUNT ( * ) ) + + + 98 FROM tab1 WHERE NOT NULL <= + col1
----
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab2 WHERE NOT 86 > ( + col1 - 31 )
----

query II rowsort
SELECT ALL col2 * col2 AS col2, + col0 FROM tab0
----
100
87
2209
15
9801
97

query I rowsort
SELECT DISTINCT col0 * + ( col2 ) * + 99 FROM tab0 WHERE NOT NULL BETWEEN col1 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT DISTINCT + COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6718
SELECT DISTINCT + COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6719
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 * + col0 < CAST( col0 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6719
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 * + col0 < CAST ( col0 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 * - 97 AS col2 FROM tab1 AS cor0
----
1358
4559
485

query I rowsort
SELECT DISTINCT - - ( - - col2 ) AS col0 FROM tab2 AS cor0
----
23
40
58

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 10 * - + 36 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, - ( - col1 ) + - col1 FROM tab2
----
-46
0
-64
0
-75
0

query I rowsort
SELECT DISTINCT col1 * - col1 + - col1 / - 42 * + + 26 + col0 AS col2 FROM tab0 WHERE NULL <= NULL
----

query I rowsort
SELECT + col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 * col1 AS col1 FROM tab0 AS cor0 WHERE - 1 NOT BETWEEN ( col0 * + 14 * - + 52 ) AND col1 * - + 73 * - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6727
SELECT + ( - col2 ) + - col2 + + col1 DIV + 56 AS col0 FROM tab1 AS cor0
----
-118
-136
-192

skipif mysql # not compatible
query I rowsort label-6727
SELECT + ( - col2 ) + - col2 + + col1 / + 56 AS col0 FROM tab1 AS cor0
----
-118
-136
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-6728
SELECT + col1 DIV 50 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-6728
SELECT + col1 / 50 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT DISTINCT ( ( - + MIN( - col2 ) ) ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6729
SELECT DISTINCT ( ( - + MIN ( - col2 ) ) ) AS col2 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT + + COUNT( 8 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6730
SELECT + + COUNT ( 8 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT ALL SUM( + - 54 ) FROM tab1 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL SUM ( + - 54 ) FROM tab1 AS cor0
----
-162

onlyif mysql # DIV for integer division: 
query I rowsort label-6732
SELECT - col0 DIV - + col1 AS col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-6732
SELECT - col0 / - + col1 AS col1 FROM tab1
----
1
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT ALL - COUNT( - 3 ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6733
SELECT ALL - COUNT ( - 3 ) col0 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 52 = - col0
----

query I rowsort
SELECT ALL col0 + - + 81 + + - col0 * - col0 AS col1 FROM tab1
----
2571
7229
8291

query I rowsort
SELECT DISTINCT - col2 * + - 30 + + + col1 AS col1 FROM tab1
----
1775
2087
2894

query I rowsort
SELECT - 18 * - 76 FROM tab2
----
1368
1368
1368

query I rowsort
SELECT DISTINCT + 10 FROM tab0 WHERE NOT 36 <> + 11
----

query II rowsort
SELECT - col1 AS col1, col0 AS col1 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # DIV for integer division: 
query I rowsort label-6740
SELECT col1 * + col1 + + col0 DIV + col0 AS col1 FROM tab1 cor0
----
197
2210
26

skipif mysql # not compatible
query I rowsort label-6740
SELECT col1 * + col1 + + col0 / + col0 AS col1 FROM tab1 cor0
----
197
2210
26

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( 94 ) IS NOT NULL
----

query I rowsort
SELECT ALL + - col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT + - col0, 14 AS col0, col1 + - + 16 AS col2 FROM tab1 AS cor0
----
9 values hashing to 4217757cb952a15d6bcf4ffc723efcdf

query II rowsort
SELECT ALL + col0 AS col0, - col0 FROM tab1 cor0
----
51
-51
85
-85
91
-91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 27 + + + 25 + col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 = + col1 - - + 38
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT ALL - SUM( ALL + ( 41 ) ) FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-6747
SELECT ALL - SUM ( ALL + ( 41 ) ) FROM tab1
----
-123

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6749
SELECT + col0 * col2 DIV - + col2 col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6749
SELECT + col0 * col2 / - + col2 col2 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 65 NOT BETWEEN - 58 + - 35 AND - + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 > - ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6752
SELECT CAST( + + 19 AS SIGNED ) AS col2, col0 - - - col1 AS col1 FROM tab2 AS cor0
----
19
-13
19
-5
19
8

skipif mysql # not compatible
query II rowsort label-6752
SELECT CAST ( + + 19 AS INTEGER ) AS col2, col0 - - - col1 AS col1 FROM tab2 AS cor0
----
19
-13
19
-5
19
8

query II rowsort
SELECT - col0 AS col2, 41 AS col0 FROM tab2
----
-46
41
-64
41
-75
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 * + col1 col1 FROM tab1
----
1128
120
336

query II rowsort
SELECT + col1, 16 * + col0 + + + 58 * - 19 FROM tab1
----
14
-286
47
354
5
258

onlyif mysql # aggregate syntax: 
query II rowsort label-6756
SELECT + 56 * COUNT( * ) * - 20 AS col2, 83 col1 FROM tab2
----
-3360
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6756
SELECT + 56 * COUNT ( * ) * - 20 AS col2, 83 col1 FROM tab2
----
-3360
83

query III rowsort
SELECT ALL - ( + 22 ) * + 78 + + col2, + col2, 83 FROM tab1 WHERE NULL > ( + - 98 + 85 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6759
SELECT DISTINCT COUNT( * ) DIV + 40 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6759
SELECT DISTINCT COUNT ( * ) / + 40 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT COUNT( * ) + + + 20 AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-6760
SELECT COUNT ( * ) + + + 20 AS col0 FROM tab2
----
23

query I rowsort
SELECT + - col2 + col0 AS col0 FROM tab1 cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * col2 * - col2 / col2 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT DISTINCT - + MIN( 33 ) AS col2 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-6763
SELECT DISTINCT - + MIN ( 33 ) AS col2 FROM tab0 AS cor0
----
-33

query I rowsort
SELECT 11 + + col2 FROM tab2 AS cor0
----
34
51
69

query I rowsort
SELECT DISTINCT + 88 FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN - 95 AND - 89
----
88

query III rowsort
SELECT ALL - - col0 AS col0, 17 * + col2 + + col0 AS col1, 57 AS col2 FROM tab2 cor0
----
9 values hashing to 79329b7a576257c8ae54a158ef092ded

query I rowsort
SELECT ALL + + 49 * - col2 * col0 + - 16 + - col2 AS col1 FROM tab1 cor0
----
-240016
-245810
-303296

onlyif mysql # DIV for integer division: 
query I rowsort label-6768
SELECT + col0 DIV + + col1 + + col1 * + 15 col0 FROM tab2 AS cor0
----
1006
1155
765

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6768
SELECT + col0 / + + col1 + + col1 * + 15 col0 FROM tab2 AS cor0
----
1006
1155
765

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6769
SELECT DISTINCT + MAX( DISTINCT - col0 ) + + 32 + - - CAST( NULL AS DECIMAL ) * + 39 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6769
SELECT DISTINCT + MAX ( DISTINCT - col0 ) + + 32 + - - CAST ( NULL AS REAL ) * + 39 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT ALL 85 + + 69 + + COUNT( * ) FROM tab2 AS cor0
----
157

skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL 85 + + 69 + + COUNT ( * ) FROM tab2 AS cor0
----
157

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 * - col0 NOT BETWEEN NULL AND + col2 * - col0
----

query III rowsort
SELECT * FROM tab0 WHERE + + col2 / + + 28 + col1 - + 0 + - col0 * - + 72 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT DISTINCT 10 + + - COUNT( * ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-6773
SELECT DISTINCT 10 + + - COUNT ( * ) FROM tab1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT ( - MAX( col0 ) ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-6774
SELECT ( - MAX ( col0 ) ) AS col2 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT ALL + 58 - - + 89 + + - MAX( ( + - ( - + col1 ) ) ) FROM tab1 cor0
----
100

skipif mysql # not compatible
query I rowsort label-6775
SELECT ALL + 58 - - + 89 + + - MAX ( ( + - ( - + col1 ) ) ) FROM tab1 cor0
----
100

query I rowsort
SELECT + 72 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
72
72
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 49 col0 FROM tab1 AS cor0 WHERE 37 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT DISTINCT MAX( + 69 ) FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-6778
SELECT DISTINCT MAX ( + 69 ) FROM tab0 AS cor0
----
69

query I rowsort
SELECT ALL 74 FROM tab2 AS cor0 WHERE NOT + 33 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6780
SELECT DISTINCT COUNT( * ) DIV + 18 - - 97 + + MAX( + col2 ) FROM tab0 AS cor0
----
196

skipif mysql # not compatible
query I rowsort label-6780
SELECT DISTINCT COUNT ( * ) / + 18 - - 97 + + MAX ( + col2 ) FROM tab0 AS cor0
----
196

query II rowsort
SELECT DISTINCT + 78 AS col2, col0 + - col0 * + col2 FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
78
-4845
78
-4930
78
-6097

query II rowsort
SELECT 50 + + col1, + col0 AS col0 FROM tab0 AS cor0
----
131
15
51
97
71
87

query I rowsort
SELECT ALL - - 79 * + col2 AS col1 FROM tab2 AS cor0
----
1817
3160
4582

query II rowsort
SELECT DISTINCT + col2 * + - 95 AS col2, - col1 FROM tab1 AS cor0
----
-5605
-5
-6460
-47
-9120
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6785
SELECT ALL 80 DIV + MIN( col0 ) FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-6785
SELECT ALL 80 / + MIN ( col0 ) FROM tab0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6786
SELECT ALL + 74 DIV + col2 AS col0 FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-6786
SELECT ALL + 74 / + col2 AS col0 FROM tab0
----
0
1
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6787
SELECT DISTINCT * FROM tab2 WHERE ( CAST( - col1 AS SIGNED ) ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-6787
SELECT DISTINCT * FROM tab2 WHERE ( CAST ( - col1 AS INTEGER ) ) >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6788
SELECT DISTINCT - COUNT( * ) AS col1, 42 col2 FROM tab2
----
-3
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6788
SELECT DISTINCT - COUNT ( * ) AS col1, 42 col2 FROM tab2
----
-3
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6789
SELECT - - col0 + + col0 * - CAST( 50 AS SIGNED ) col2 FROM tab1 WHERE NOT + + col1 IS NULL
----
-2499
-4165
-4459

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6789
SELECT - - col0 + + col0 * - CAST ( 50 AS INTEGER ) col2 FROM tab1 WHERE NOT + + col1 IS NULL
----
-2499
-4165
-4459

query II rowsort
SELECT ALL col0, 8 AS col2 FROM tab1
----
51
8
85
8
91
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE NOT - col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6791
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col2 <= NULL
----
0

query I rowsort
SELECT DISTINCT + - 34 AS col0 FROM tab0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6793
SELECT + + CAST( NULL AS SIGNED ) AS col1, + col0 col2 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6793
SELECT + + CAST ( NULL AS INTEGER ) AS col1, + col0 col2 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6794
SELECT DISTINCT COUNT( * ) + - + 48 col2 FROM tab0 AS cor0 WHERE 7 < ( col2 DIV col0 * + col2 * col0 )
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6794
SELECT DISTINCT COUNT ( * ) + - + 48 col2 FROM tab0 AS cor0 WHERE 7 < ( col2 / col0 * + col2 * col0 )
----
-46

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 <> + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6796
SELECT - - CAST( - + MAX( DISTINCT + col1 ) AS SIGNED ), - 5 AS col1 FROM tab2 AS cor0
----
-77
-5

skipif mysql # not compatible
query II rowsort label-6796
SELECT - - CAST ( - + MAX ( DISTINCT + col1 ) AS INTEGER ), - 5 AS col1 FROM tab2 AS cor0
----
-77
-5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT DISTINCT COUNT( DISTINCT - 38 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6798
SELECT DISTINCT COUNT ( DISTINCT - 38 ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - - 86 AS col0 FROM tab2 AS cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT ALL COUNT( ALL + 28 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL COUNT ( ALL + 28 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT - COUNT( ALL + 99 ) + - 94 AS col0 FROM tab1 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-6801
SELECT - COUNT ( ALL + 99 ) + - 94 AS col0 FROM tab1 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT ALL + MIN( col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6802
SELECT ALL + MIN ( col1 ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + - 75 + - ( + 91 ) + - - col2 AS col2 FROM tab1 AS cor0
----
-107
-70
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6804
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + - CAST( NULL AS SIGNED ) AND + + col2
----
0

skipif mysql # not compatible
query I rowsort label-6804
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + - CAST ( NULL AS INTEGER ) AND + + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT ALL + COUNT( * ) + 54 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL + COUNT ( * ) + 54 FROM tab0 AS cor0
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - - 60 col0 FROM tab1
----
107
65
74

query III rowsort
SELECT ALL * FROM tab1 WHERE 32 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT DISTINCT COUNT( * ) * - 94 + + COUNT( + 41 ) + - 74 + - 36 AS col0 FROM tab0
----
-389

skipif mysql # not compatible
query I rowsort label-6808
SELECT DISTINCT COUNT ( * ) * - 94 + + COUNT ( + 41 ) + - 74 + - 36 AS col0 FROM tab0
----
-389

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT - MIN( DISTINCT - 83 ) col1 FROM tab0
----
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6809
SELECT - MIN ( DISTINCT - 83 ) col1 FROM tab0
----
83

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= ( - col2 )
----

query I rowsort
SELECT + ( 48 ) - - 45 FROM tab1 cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query II rowsort label-6812
SELECT ALL COUNT( * ), MAX( ALL 26 ) * + ( 72 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9
1872

skipif mysql # not compatible
query II rowsort label-6812
SELECT ALL COUNT ( * ), MAX ( ALL 26 ) * + ( 72 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9
1872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6813
SELECT ALL + MAX( + col1 ) - + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6813
SELECT ALL + MAX ( + col1 ) - + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * + - col2 + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT DISTINCT + SUM( ALL + - 48 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6817
SELECT DISTINCT + SUM ( ALL + - 48 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6818
SELECT 39 DIV - - COUNT( * ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-6818
SELECT 39 / - - COUNT ( * ) FROM tab0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT ALL + MIN( DISTINCT + ( + - col0 ) ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL + MIN ( DISTINCT + ( + - col0 ) ) FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT NULL <> - col0
----
0

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT NULL <> - col0
----
0

query I rowsort
SELECT ALL + 57 * - col2 AS col1 FROM tab1
----
-3363
-3876
-5472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6822
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 95 / col2 col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6822
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 95 / col2 col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - + ( - ( + + 74 ) ) * + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-16650
-560106
-696266

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = - col0 + - col0 + 39 * - 87
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT DISTINCT COUNT( * ) + 45 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-6826
SELECT DISTINCT COUNT ( * ) + 45 FROM tab2
----
48

query I rowsort
SELECT ALL - col0 + - 67 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-118
-152
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT ALL + + COUNT( * ) * + 17 col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6828
SELECT ALL + + COUNT ( * ) * + 17 col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT + col1 * ( + 97 ) AS col2 FROM tab2 AS cor0
----
4947
6499
7469

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - + col1 + - - col1 + col1 * - col0 * - col2 * col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6831
SELECT DISTINCT - ( - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT + col2 * - CAST( NULL AS DECIMAL ) IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-6831
SELECT DISTINCT - ( - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT + col2 * - CAST ( NULL AS REAL ) IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 69 * col2 IS NULL
----

query II rowsort
SELECT col1 AS col1, + col0 * - 91 AS col1 FROM tab1 AS cor0
----
14
-4641
47
-8281
5
-7735

query I rowsort
SELECT ALL ( 82 ) AS col1 FROM tab1
----
82
82
82

query I rowsort
SELECT ALL 29 + col2 + + + col0 FROM tab0
----
126
225
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6836
SELECT ALL * FROM tab1 WHERE NOT - - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6836
SELECT ALL * FROM tab1 WHERE NOT - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 + + col1 * - col2 FROM tab0
----
-200
-3760
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6838
SELECT DISTINCT * FROM tab2 WHERE 61 * - + col0 * - + CAST( NULL AS SIGNED ) + - col1 / - - CAST( - col0 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6838
SELECT DISTINCT * FROM tab2 WHERE 61 * - + col0 * - + CAST ( NULL AS INTEGER ) + - col1 / - - CAST ( - col0 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 86 + + col1 FROM tab2
----
137
153
163

onlyif mysql # DIV for integer division: 
query I rowsort label-6840
SELECT ALL col0 + 20 DIV 26 AS col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6840
SELECT ALL col0 + 20 / 26 AS col2 FROM tab1
----
51
85
91

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND 46
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 61 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 67 * - col0 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 - + 40 AS col2 FROM tab2
----
11
27
37

query I rowsort
SELECT + - 33 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query I rowsort
SELECT + 8 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + + + col2 NOT IN ( col1, col1 * + + 91 + col2, - col2 + + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT DISTINCT MAX( ALL col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-6848
SELECT DISTINCT MAX ( ALL col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT MIN( - + col2 ) col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6849
SELECT MIN ( - + col2 ) col0 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT col1 * 68 AS col1 FROM tab2 AS cor0
----
3468
4556
5236

query I rowsort
SELECT ALL - 30 * - col0 * - 13 + + col1 FROM tab2 AS cor0
----
-17889
-24883
-29183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-6852
SELECT DISTINCT COUNT( * ) DIV + 94 AS col1, - CAST( NULL AS SIGNED ) DIV + AVG ( - + col1 ) AS col1, + 23 FROM tab1 AS cor0
----
0
NULL
23

skipif mysql # not compatible
query III rowsort label-6852
SELECT DISTINCT COUNT ( * ) / + 94 AS col1, - CAST ( NULL AS INTEGER ) / + AVG ( - + col1 ) AS col1, + 23 FROM tab1 AS cor0
----
0
NULL
23

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + - - ( - 34 ) - + + col1 = 43
----

query I rowsort
SELECT + + 61 * - col0 FROM tab0 cor0
----
-5307
-5917
-915

query I rowsort
SELECT - 47 * + col2 FROM tab1
----
-2773
-3196
-4512

onlyif mysql # DIV for integer division: 
query I rowsort label-6856
SELECT 77 DIV - 35 AS col2 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-6856
SELECT 77 / - 35 AS col2 FROM tab2
----
-2
-2
-2

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NOT - - col2 + 67 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT ALL MIN( ALL + - 12 ) FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-6858
SELECT ALL MIN ( ALL + - 12 ) FROM tab1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6859
SELECT ALL col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6859
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6860
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-6860
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT ( + + 88 ) AS col0 FROM tab0
----
88
88
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6862
SELECT - - 35 * - CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-6862
SELECT - - 35 * - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-105

query I rowsort
SELECT DISTINCT - col0 * - - ( + + col2 ) AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 + - 77 col1 FROM tab1 cor0
----
67
70
82

onlyif mysql # aggregate syntax: 
query II rowsort label-6865
SELECT - 96, - MIN( ALL - - col1 ) AS col0 FROM tab1 AS cor0
----
-96
-5

skipif mysql # not compatible
query II rowsort label-6865
SELECT - 96, - MIN ( ALL - - col1 ) AS col0 FROM tab1 AS cor0
----
-96
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT ALL + 31 + - - 79 + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL > col0
----
110

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL + 31 + - - 79 + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL > col0
----
110

onlyif mysql # DIV for integer division: 
query II rowsort label-6867
SELECT ALL + col2 DIV - col1, - 78 * - - col0 + + - col2 AS col1 FROM tab2 AS cor0
----
0
-3611
0
-5032
0
-5908

skipif mysql # not compatible
query II rowsort label-6867
SELECT ALL + col2 / - col1, - 78 * - - col0 + + - col2 AS col1 FROM tab2 AS cor0
----
0
-3611
0
-5032
0
-5908

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6868
SELECT - col0 + - ( - + col2 ) + 55 AS col1, - col0 * ( CAST( NULL AS SIGNED ) ) + + 13 + - col1 FROM tab0 AS cor0
----
-22
NULL
57
NULL
87
NULL

skipif mysql # not compatible
query II rowsort label-6868
SELECT - col0 + - ( - + col2 ) + 55 AS col1, - col0 * ( CAST ( NULL AS INTEGER ) ) + + 13 + - col1 FROM tab0 AS cor0
----
-22
NULL
57
NULL
87
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6869
SELECT - col2 * col1 DIV col1 + + 14 AS col1 FROM tab0 AS cor0
----
-33
-85
4

skipif mysql # not compatible
query I rowsort label-6869
SELECT - col2 * col1 / col1 + + 14 AS col1 FROM tab0 AS cor0
----
-33
-85
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + + col1 ) col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6871
SELECT DISTINCT + col1 + + col1 DIV - + col1 AS col0 FROM tab0 AS cor0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-6871
SELECT DISTINCT + col1 + + col1 / - + col1 AS col0 FROM tab0 AS cor0
----
0
20
80

query II rowsort
SELECT ALL - col1, ( col0 ) AS col0 FROM tab2
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT DISTINCT MIN( ALL + col0 ) + - 20 AS col0 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-6873
SELECT DISTINCT MIN ( ALL + col0 ) + - 20 AS col0 FROM tab1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT + MAX( DISTINCT - + col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-6874
SELECT + MAX ( DISTINCT - + col2 ) FROM tab0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6875
SELECT ALL col0 - - CAST( + col1 AS SIGNED ) AS col0, - col2 * - 50 + + col2 * 5 AS col0 FROM tab0
----
108
550
96
2585
98
5445

skipif mysql # not compatible
query II rowsort label-6875
SELECT ALL col0 - - CAST ( + col1 AS INTEGER ) AS col0, - col2 * - 50 + + col2 * 5 AS col0 FROM tab0
----
108
550
96
2585
98
5445

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6876
SELECT DISTINCT CAST( + col1 AS SIGNED ) - - col0 + + CAST( - 29 AS SIGNED ) + + col2 + col2 * col1 * + 79 * + ( + 1 ) FROM tab2
----
243472
307165
92758

skipif mysql # not compatible
query I rowsort label-6876
SELECT DISTINCT CAST ( + col1 AS INTEGER ) - - col0 + + CAST ( - 29 AS INTEGER ) + + col2 + col2 * col1 * + 79 * + ( + 1 ) FROM tab2
----
243472
307165
92758

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 / + col1 IS NULL
----

query I rowsort
SELECT 45 / + 58 * col0 * col2 - + col1 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL + col0 + - 96 FROM tab0
----
-81
-9
1

query I rowsort
SELECT DISTINCT + col2 * + 49 * + 18 + col0 AS col0 FROM tab2
----
20332
35344
51231

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT + - COUNT( * ) - - - 80 AS col0 FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-6881
SELECT + - COUNT ( * ) - - - 80 AS col0 FROM tab0 AS cor0
----
-83

query I rowsort
SELECT - + col1 + + 74 AS col2 FROM tab0 AS cor0
----
-7
53
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6883
SELECT ALL - + MAX( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL - + MAX ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT DISTINCT + MIN( DISTINCT + col2 ) * - 24 AS col0 FROM tab1
----
-1416

skipif mysql # not compatible
query I rowsort label-6884
SELECT DISTINCT + MIN ( DISTINCT + col2 ) * - 24 AS col0 FROM tab1
----
-1416

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col2 = + 72
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT - MIN( - 48 ) AS col2 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-6886
SELECT - MIN ( - 48 ) AS col2 FROM tab0 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT + ( + - ( SUM( - + 34 ) ) ) AS col2 FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-6887
SELECT + ( + - ( SUM ( - + 34 ) ) ) AS col2 FROM tab1 AS cor0
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6888
SELECT ALL COUNT( 83 ) FROM tab2 cor0 WHERE col2 * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6888
SELECT ALL COUNT ( 83 ) FROM tab2 cor0 WHERE col2 * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT ALL ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 * + 89 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6891
SELECT + - COUNT( * ), - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-6891
SELECT + - COUNT ( * ), - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 59, col2 + col0 col0 FROM tab2 cor0
----
-59
104
-59
133
-59
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6893
SELECT + CAST( + - COUNT( * ) AS SIGNED ) * + - 64 FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-6893
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) * + - 64 FROM tab0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT COUNT( * ) * + - MIN( - + col0 ) AS col0 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-6894
SELECT COUNT ( * ) * + - MIN ( - + col0 ) AS col0 FROM tab2
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT DISTINCT SUM( - 46 ) FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-6895
SELECT DISTINCT SUM ( - 46 ) FROM tab0
----
-138

query I rowsort
SELECT - 97 * col0 AS col1 FROM tab2
----
-4462
-6208
-7275

query I rowsort
SELECT ALL - 30 * + col1 FROM tab2
----
-1530
-2010
-2310

query I rowsort
SELECT col0 * col2 * + + col1 FROM tab0
----
18270
57105
9603

query I rowsort
SELECT ALL - 80 * + + col0 FROM tab1
----
-4080
-6800
-7280

query I rowsort
SELECT + col2 * 23 AS col0 FROM tab1
----
1357
1564
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT - COUNT( * ) * - SUM( - - col1 ) FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-6901
SELECT - COUNT ( * ) * - SUM ( - - col1 ) FROM tab2
----
585

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 88 + - col1 col2 FROM tab1 AS cor0
----
1218
4089
435

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT ALL - COUNT( * ) FROM tab1, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL - COUNT ( * ) FROM tab1, tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6904
SELECT DISTINCT - COUNT( * ) DIV 37 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-6904
SELECT DISTINCT - COUNT ( * ) / 37 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6905
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + col1 * - col1 * + - 99 - + + 12, col1 - - CAST( + col0 AS SIGNED ), - col0 * col1 + col0 )
----

skipif mysql # not compatible
query III rowsort label-6905
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + col1 * - col1 * + - 99 - + + 12, col1 - - CAST ( + col0 AS INTEGER ), - col0 * col1 + col0 )
----

query I rowsort
SELECT - col1 * 71 * - + 33 + ( + 50 ) AS col0 FROM tab0 cor0
----
189833
2393
49253

onlyif mysql # aggregate syntax: 
query III rowsort label-6907
SELECT ALL ( 99 ) + + COUNT( * ) AS col0, 81, 63 col2 FROM tab1 AS cor0
----
102
81
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-6907
SELECT ALL ( 99 ) + + COUNT ( * ) AS col0, 81, 63 col2 FROM tab1 AS cor0
----
102
81
63

query I rowsort
SELECT DISTINCT + col2 * 66 FROM tab2 cor0
----
1518
2640
3828

query I rowsort
SELECT - - col2 * + - col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT - 55 - 43 AS col0 FROM tab0 AS cor0
----
-98
-98
-98

query II rowsort
SELECT DISTINCT - col2 AS col2, - col2 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

query I rowsort
SELECT ALL + col1 + - - 2 + - col0 FROM tab0 cor0
----
-64
-94
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= ( + col1 )
----

query I rowsort
SELECT + ( - col1 ) + - col1 + col2 FROM tab1
----
-26
49
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT 2 + + SUM( - + ( col0 ) ) AS col2 FROM tab0
----
-197

skipif mysql # not compatible
query I rowsort label-6915
SELECT 2 + + SUM ( - + ( col0 ) ) AS col2 FROM tab0
----
-197

query I rowsort
SELECT - 37 + - + 89 AS col2 FROM tab1
----
-126
-126
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT ALL COUNT( * ) + - MIN( DISTINCT + col0 ) FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-6917
SELECT ALL COUNT ( * ) + - MIN ( DISTINCT + col0 ) FROM tab2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT ALL + MIN( DISTINCT 87 ) * 71 FROM tab1 WHERE + col1 + + col2 <> - col1
----
6177

skipif mysql # not compatible
query I rowsort label-6918
SELECT ALL + MIN ( DISTINCT 87 ) * 71 FROM tab1 WHERE + col1 + + col2 <> - col1
----
6177

query I rowsort
SELECT 50 + col1 FROM tab1
----
55
64
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6920
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6920
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - + col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 * + col2 col1 FROM tab1 AS cor0
----
-295885
-420784
-470016

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN + + col0 AND - ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col2 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6925
SELECT CAST( + 84 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
84
84
84

skipif mysql # not compatible
query I rowsort label-6925
SELECT CAST ( + 84 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT DISTINCT - ( SUM( - col2 ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-6926
SELECT DISTINCT - ( SUM ( - col2 ) ) FROM tab0
----
156

query I rowsort
SELECT DISTINCT - col0 * 45 AS col2 FROM tab0
----
-3915
-4365
-675

query I rowsort
SELECT - - col2 - - + col1 AS col0 FROM tab0 WHERE NOT - - col2 IS NULL
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT ALL + COUNT( * ) * + - MAX( - col0 ) AS col0 FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL + COUNT ( * ) * + - MAX ( - col0 ) AS col0 FROM tab2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT - 17 * 28 * SUM( + ( - col1 ) ) + - + COUNT( * ) * - 75 AS col0 FROM tab0 AS cor0
----
49253

skipif mysql # not compatible
query I rowsort label-6930
SELECT - 17 * 28 * SUM ( + ( - col1 ) ) + - + COUNT ( * ) * - 75 AS col0 FROM tab0 AS cor0
----
49253

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6931
SELECT ALL ( CAST( NULL AS SIGNED ) ), - COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6931
SELECT ALL ( CAST ( NULL AS INTEGER ) ), - COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT BETWEEN 77 AND + - 22
----

query III rowsort
SELECT + - 24, col1 * - col1 + - col1 AS col2, - col2 AS col0 FROM tab0 AS cor0
----
9 values hashing to 3ff6d2a4da3e5ea8a47384301e09213f

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + ( + col1 ) OR ( + col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT + ( + MAX( DISTINCT col1 ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6935
SELECT + ( + MAX ( DISTINCT col1 ) ) FROM tab0 AS cor0
----
81

query II rowsort
SELECT DISTINCT - - 53 AS col2, 85 FROM tab1 AS cor0
----
53
85

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 NOT BETWEEN + col1 * - + col1 * + - col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-6938
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT ALL + 19 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT ALL - - 34 AS col0 FROM tab2 AS cor0
----
34
34
34

onlyif mysql # DIV for integer division: 
query I rowsort label-6941
SELECT DISTINCT + col1 * + col1 DIV + + col1 AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6941
SELECT DISTINCT + col1 * + col1 / + + col1 AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL + 21 * 5 + + 75 FROM tab1 AS cor0
----
180
180
180

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT 80 + SUM( DISTINCT col2 ) col0 FROM tab0 AS cor0
----
236

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6943
SELECT 80 + SUM ( DISTINCT col2 ) col0 FROM tab0 AS cor0
----
236

query I rowsort
SELECT ALL col2 * - + col0 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT - col1 * - - col0 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT - - COUNT( * ) * + + 84 FROM tab2 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-6946
SELECT - - COUNT ( * ) * + + 84 FROM tab2 AS cor0
----
252

query I rowsort
SELECT DISTINCT - + 27 AS col2 FROM tab0 AS cor0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-6948
SELECT ALL + col2 + + col0 + 5 DIV 22 AS col0 FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-6948
SELECT ALL + col2 + + col0 + 5 / 22 AS col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6949
SELECT * FROM tab1 AS cor0 WHERE ( + + CAST( NULL AS SIGNED ) > + - col1 )
----

skipif mysql # not compatible
query III rowsort label-6949
SELECT * FROM tab1 AS cor0 WHERE ( + + CAST ( NULL AS INTEGER ) > + - col1 )
----

query I rowsort
SELECT DISTINCT + - 94 * + - col2 FROM tab2 AS cor0
----
2162
3760
5452

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT - 85 - - COUNT( * ) FROM tab2
----
-82

skipif mysql # not compatible
query I rowsort label-6951
SELECT - 85 - - COUNT ( * ) FROM tab2
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6952
SELECT col2 col0 FROM tab1 WHERE col1 * + + 51 + - CAST( NULL AS SIGNED ) + + 96 - - + col2 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6952
SELECT col2 col0 FROM tab1 WHERE col1 * + + 51 + - CAST ( NULL AS INTEGER ) + + 96 - - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT ALL + MIN( DISTINCT + - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL + MIN ( DISTINCT + - col2 ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT ALL + 99 + 13 / - 10 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6955
SELECT COUNT( * ) * 58 * 4 - - - CAST( - COUNT( ALL + col1 ) AS SIGNED ) + + CAST( NULL AS DECIMAL ) * 4 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6955
SELECT COUNT ( * ) * 58 * 4 - - - CAST ( - COUNT ( ALL + col1 ) AS INTEGER ) + + CAST ( NULL AS REAL ) * 4 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - - ( + + col1 ) AS col2 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 17 <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 = - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6959
SELECT ALL + CAST( + MAX( DISTINCT + col0 ) AS SIGNED ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL + CAST ( + MAX ( DISTINCT + col0 ) AS INTEGER ) FROM tab0 cor0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 32 col2 FROM tab2 AS cor0
----
-32
-32
-32

query I rowsort
SELECT + 74 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6962
SELECT ALL COUNT( * ) * - - CAST( - 10 AS SIGNED ) FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-6962
SELECT ALL COUNT ( * ) * - - CAST ( - 10 AS INTEGER ) FROM tab2
----
-30

query I rowsort
SELECT ALL - 82 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> - 12 OR NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) col0 FROM tab1 cor0
----
59
68
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT ALL + COUNT( * ) * 35 AS col0 FROM tab2 cor0
----
105

skipif mysql # not compatible
query I rowsort label-6967
SELECT ALL + COUNT ( * ) * 35 AS col0 FROM tab2 cor0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT ALL - COUNT( + col2 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6968
SELECT ALL - COUNT ( + col2 ) AS col0 FROM tab2 cor0
----
-3

query I rowsort
SELECT - + 46 / 51 * + col1 * 62 * - - col2 FROM tab0 AS cor0 WHERE NOT NULL >= col2
----

query I rowsort
SELECT + - col2 FROM tab1 AS cor0 WHERE NOT 6 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 + + - col0 + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT MIN( + 61 ) FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-6972
SELECT MIN ( + 61 ) FROM tab2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT ALL COUNT( * ) + + COUNT( * ) + - 15 AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-6973
SELECT ALL COUNT ( * ) + + COUNT ( * ) + - 15 AS col1 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-6974
SELECT - COUNT( * ) col0, - 98 AS col2 FROM tab2
----
-3
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6974
SELECT - COUNT ( * ) col0, - 98 AS col2 FROM tab2
----
-3
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6975
SELECT + CAST( COUNT( - 27 ) AS SIGNED ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6975
SELECT + CAST ( COUNT ( - 27 ) AS INTEGER ) AS col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT 70 * - col1 + - col2 FROM tab1
----
-1076
-3358
-409

query II rowsort
SELECT col0 * - + 50 + + + col0, - 38 AS col0 FROM tab2
----
-2254
-38
-3136
-38
-3675
-38

query I rowsort
SELECT ALL - - col1 FROM tab2 WHERE NOT + 2 <> col2 * - - 30 * + col0 / - + 38 + - col2 + col2 + + col1 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT ALL - MIN( + col0 ) * - 38 FROM tab2 AS cor0
----
1748

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL - MIN ( + col0 ) * - 38 FROM tab2 AS cor0
----
1748

query I rowsort
SELECT DISTINCT 77 + + - col0 AS col1 FROM tab0
----
-10
-20
62

query I rowsort
SELECT DISTINCT + 10 AS col1 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT ALL + COUNT( * ) + - MAX( DISTINCT - ( - col2 ) ) FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL + COUNT ( * ) + - MAX ( DISTINCT - ( - col2 ) ) FROM tab2
----
-55

query I rowsort
SELECT col2 + + col0 * + col2 + - 1 FROM tab2 AS cor0
----
1080
2599
4407

query I rowsort
SELECT + + 40 + - col2 FROM tab2 cor0
----
-18
0
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 + ( - 28 ) col2 FROM tab0 AS cor0
----
42
42
42

query I rowsort
SELECT ALL + col2 * + ( + col2 ) AS col2 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6987
SELECT + CAST( NULL AS DECIMAL ) + + col0 * + - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6987
SELECT + CAST ( NULL AS REAL ) + + col0 * + - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6988
SELECT + COUNT( * ) DIV - - 14 * - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6988
SELECT + COUNT ( * ) / - - 14 * - COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT ALL ( - 97 ) FROM tab0
----
-97
-97
-97

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 47
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE - col0 * col1 IS NOT NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 * col0 col2, col0 AS col2 FROM tab2 AS cor0
----
2346
46
4928
64
5025
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6993
SELECT ALL + col2 * CAST( col2 AS SIGNED ) * - 76 * - - col2 col2 FROM tab0 AS cor0
----
-73742724
-76000
-7890548

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6993
SELECT ALL + col2 * CAST ( col2 AS INTEGER ) * - 76 * - - col2 col2 FROM tab0 AS cor0
----
-73742724
-76000
-7890548

onlyif mysql # aggregate syntax: 
query II rowsort label-6994
SELECT - COUNT( + 44 ), 63 AS col1 FROM tab0 AS cor0
----
-3
63

skipif mysql # not compatible
query II rowsort label-6994
SELECT - COUNT ( + 44 ), 63 AS col1 FROM tab0 AS cor0
----
-3
63

onlyif mysql # aggregate syntax: 
query II rowsort label-6995
SELECT + COUNT( ALL + col0 ) AS col2, COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6995
SELECT + COUNT ( ALL + col0 ) AS col2, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT ALL ( + MIN( DISTINCT 65 ) ) FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-6996
SELECT ALL ( + MIN ( DISTINCT 65 ) ) FROM tab1 AS cor0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6997
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6997
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT + col2 * + + col1 * + - ( col1 ) FROM tab0
----
-308367
-4410
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT - COUNT( * ) * 41 AS col0 FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-6999
SELECT - COUNT ( * ) * 41 AS col0 FROM tab1
----
-123

query II rowsort
SELECT DISTINCT - + col1 AS col1, - ( - 19 ) AS col0 FROM tab2 cor0
----
-51
19
-67
19
-77
19

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 <> + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 * + + 26 col2 FROM tab2 AS cor0 WHERE NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, col1 col2 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7004
SELECT ALL * FROM tab1 AS cor0 WHERE ( - - CAST( + col1 AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-7004
SELECT ALL * FROM tab1 AS cor0 WHERE ( - - CAST ( + col1 AS INTEGER ) IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7005
SELECT ALL + - col1 DIV col2 * col0 + + col1 AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL + - col1 / col2 * col0 + + col1 AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT col0 + col2 + - col1 + + col1 AS col1 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT + 91 + col2 - + + col0 FROM tab1 cor0
----
136
65
68

query I rowsort
SELECT + col2 * col1 - + - 91 + + 16 FROM tab2 AS cor0
----
1280
3187
3993

query I rowsort
SELECT ALL + + 79 + - col0 FROM tab1 AS cor0
----
-12
-6
28

query I rowsort
SELECT - + col2 * col0 * + col2 - col2 * + - ( + col2 ) + 30 * + 41 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT col2 + - col2 * 33 + - - col1 AS col0 FROM tab1
----
-1883
-2129
-3058

query I rowsort
SELECT DISTINCT 10 * + - col1 + col1 FROM tab2
----
-459
-603
-693

query III rowsort
SELECT * FROM tab0 WHERE + ( + - col2 ) IS NULL
----

query I rowsort
SELECT ALL - 62 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 + - col2 > NULL
----

query I rowsort
SELECT col2 * - 41 AS col1 FROM tab2 AS cor0
----
-1640
-2378
-943

query I rowsort
SELECT ALL + 88 FROM tab2 cor0 WHERE NOT + col1 * col2 IS NOT NULL
----

query I rowsort
SELECT - col1 * - col1 * - col2 AS col2 FROM tab0 AS cor0
----
-308367
-4410
-99

query I rowsort
SELECT - 41 AS col2 FROM tab0 cor0
----
-41
-41
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7019
SELECT + - col0 - - - CAST( - col0 AS SIGNED ) AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7019
SELECT + - col0 - - - CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT DISTINCT + COUNT( * ) + + + MAX( - 96 ) AS col1 FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-7020
SELECT DISTINCT + COUNT ( * ) + + + MAX ( - 96 ) AS col1 FROM tab0 AS cor0
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7021
SELECT DISTINCT COUNT( col2 ) AS col2 FROM tab0 WHERE col1 + + - col1 + 14 NOT BETWEEN - + 86 + + col1 AND + - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7021
SELECT DISTINCT COUNT ( col2 ) AS col2 FROM tab0 WHERE col1 + + - col1 + 14 NOT BETWEEN - + 86 + + col1 AND + - CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT - col2 + + 82 * + - col0 FROM tab1
----
-4278
-7029
-7530

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab0 cor0 WHERE ( NULL ) BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT MIN( + col1 ) * - - ( - - MIN( - col2 ) ) - - MAX( - col2 ) FROM tab1 AS cor0
----
-539

skipif mysql # not compatible
query I rowsort label-7024
SELECT MIN ( + col1 ) * - - ( - - MIN ( - col2 ) ) - - MAX ( - col2 ) FROM tab1 AS cor0
----
-539

query I rowsort
SELECT - col1 * ( + - col1 ) * + col1 FROM tab0 AS cor0
----
1
531441
9261

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = + 93 * ( col1 )
----

query I rowsort
SELECT DISTINCT col0 - + - 50 FROM tab0 AS cor0
----
137
147
65

query I rowsort
SELECT DISTINCT 22 AS col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT ALL + MIN( col2 ) col0 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7029
SELECT ALL + MIN ( col2 ) col0 FROM tab0
----
10

query II rowsort
SELECT + col0 AS col0, + col0 AS col2 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7031
SELECT - 7 DIV - + col2 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7031
SELECT - 7 / - + col2 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7032
SELECT ALL COUNT( * ), 11 - 55 AS col1 FROM tab2
----
3
-44

skipif mysql # not compatible
query II rowsort label-7032
SELECT ALL COUNT ( * ), 11 - 55 AS col1 FROM tab2
----
3
-44

query I rowsort
SELECT 70 * + - col0 * - + 51 AS col1 FROM tab2
----
164220
228480
267750

onlyif mysql # aggregate syntax: 
query II rowsort label-7034
SELECT 49 AS col0, COUNT( * ) FROM tab2
----
49
3

skipif mysql # not compatible
query II rowsort label-7034
SELECT 49 AS col0, COUNT ( * ) FROM tab2
----
49
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 col2 FROM tab1
----
6

query I rowsort
SELECT DISTINCT - col2 * + 4 AS col0 FROM tab0
----
-188
-396
-40

query I rowsort
SELECT - + col2 AS col2 FROM tab0 WHERE NOT 32 * + col2 - + 65 BETWEEN NULL AND - col0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-7038
SELECT COUNT( * ), + 35 AS col1 FROM tab0 AS cor0
----
3
35

skipif mysql # not compatible
query II rowsort label-7038
SELECT COUNT ( * ), + 35 AS col1 FROM tab0 AS cor0
----
3
35

onlyif mysql # DIV for integer division: 
query II rowsort label-7039
SELECT DISTINCT col1 DIV + 41 AS col1, ( 70 ) FROM tab1 AS cor0
----
0
70
1
70

skipif mysql # not compatible
query II rowsort label-7039
SELECT DISTINCT col1 / + 41 AS col1, ( 70 ) FROM tab1 AS cor0
----
0
70
1
70

onlyif mysql # aggregate syntax: 
query II rowsort label-7040
SELECT + COUNT( * ) AS col2, 63 * - + 31 AS col2 FROM tab2 AS cor0
----
3
-1953

skipif mysql # not compatible
query II rowsort label-7040
SELECT + COUNT ( * ) AS col2, 63 * - + 31 AS col2 FROM tab2 AS cor0
----
3
-1953

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT ALL COUNT( * ) * - COUNT( * ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL COUNT ( * ) * - COUNT ( * ) FROM tab1 cor0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7042
SELECT ALL - COUNT( * ), + COUNT( * ) AS col2 FROM tab2 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-7042
SELECT ALL - COUNT ( * ), + COUNT ( * ) AS col2 FROM tab2 cor0
----
-3
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7043
SELECT ALL CAST( NULL AS DECIMAL ) + CAST( + col1 AS DECIMAL ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7043
SELECT ALL CAST ( NULL AS REAL ) + CAST ( + col1 AS REAL ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7044
SELECT ALL + SUM( DISTINCT - col0 ) AS col0, + 55 FROM tab2
----
-185
55

skipif mysql # not compatible
query II rowsort label-7044
SELECT ALL + SUM ( DISTINCT - col0 ) AS col0, + 55 FROM tab2
----
-185
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7045
SELECT + CAST( + - col1 AS SIGNED ) * 3 + + col2 + - 55 * + col1 AS col1 FROM tab2
----
-2935
-3828
-4426

skipif mysql # not compatible
query I rowsort label-7045
SELECT + CAST ( + - col1 AS INTEGER ) * 3 + + col2 + - 55 * + col1 AS col1 FROM tab2
----
-2935
-3828
-4426

onlyif mysql # DIV for integer division: 
query II rowsort label-7046
SELECT - 88 DIV - - col1 + col2, - col2 - + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
11
-98
46
34
6
11

skipif mysql # not compatible
query II rowsort label-7046
SELECT - 88 / - - col1 + col2, - col2 - + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
11
-98
46
34
6
11

query I rowsort
SELECT ALL 69 * + col2 AS col2 FROM tab1 AS cor0
----
4071
4692
6624

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 65 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT ALL - COUNT( * ) + 81 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-7049
SELECT ALL - COUNT ( * ) + 81 FROM tab0 AS cor0
----
78

query I rowsort
SELECT DISTINCT - col0 + - col0 + + 72 AS col2 FROM tab2 cor0
----
-20
-56
-78

query I rowsort
SELECT DISTINCT col0 + - col1 + + 76 * + col1 + - col2 FROM tab0
----
1652
6043
73

query I rowsort
SELECT - 66 * - col2 AS col0 FROM tab0 WHERE NULL IS NULL
----
3102
6534
660

query II rowsort
SELECT 51 + + col2 * - 92 * - 91 AS col0, - 4 * - + ( 40 ) * + + col0 AS col1 FROM tab2
----
192607
7360
334931
10240
485627
12000

query I rowsort
SELECT ALL col0 + - col2 - 65 * 79 - - col0 FROM tab2
----
-5043
-5047
-5066

query I rowsort
SELECT + 78 + col0 AS col2 FROM tab1
----
129
163
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7056
SELECT - CAST( NULL AS SIGNED ) + + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7056
SELECT - CAST ( NULL AS INTEGER ) + + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col1 / + 37 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7058
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7058
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) FROM tab1 AS cor0
----
-1

query II rowsort
SELECT - col0 AS col1, 49 + - col2 FROM tab0 AS cor0
----
-15
2
-87
39
-97
-50

query I rowsort
SELECT DISTINCT 73 AS col2 FROM tab2 WHERE NOT ( NULL ) IN ( ( 29 ) )
----

query I rowsort
SELECT 31 - + col2 FROM tab0
----
-16
-68
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT COUNT( DISTINCT 56 ) - COUNT( * ) AS col0 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-7062
SELECT COUNT ( DISTINCT 56 ) - COUNT ( * ) AS col0 FROM tab1
----
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7063
SELECT CAST( + 31 AS SIGNED ) DIV col1 FROM tab0
----
0
1
31

skipif mysql # not compatible
query I rowsort label-7063
SELECT CAST ( + 31 AS INTEGER ) / col1 FROM tab0
----
0
1
31

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) NOT IN ( + col1 - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 82 / + 22 >= - col2 + 26
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * + 63 FROM tab0 WHERE ( + 20 - + col1 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT ALL COUNT( DISTINCT 32 ) FROM tab0 WHERE ( + col1 ) < ( col2 )
----
1

skipif mysql # not compatible
query I rowsort label-7067
SELECT ALL COUNT ( DISTINCT 32 ) FROM tab0 WHERE ( + col1 ) < ( col2 )
----
1

query I rowsort
SELECT ALL + ( + 9 ) + 54 FROM tab2
----
63
63
63

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 BETWEEN NULL AND - 24
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7070
SELECT col0 DIV 14 AS col2 FROM tab0
----
1
6
6

skipif mysql # not compatible
query I rowsort label-7070
SELECT col0 / 14 AS col2 FROM tab0
----
1
6
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7071
SELECT + 70 DIV - col2 FROM tab2
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-7071
SELECT + 70 / - col2 FROM tab2
----
-1
-1
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT ALL COUNT( ALL - 77 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7072
SELECT ALL COUNT ( ALL - 77 ) col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT col1 + - 52 FROM tab0
----
-31
-51
29

query I rowsort
SELECT - 89 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT - SUM( DISTINCT col0 ) FROM tab2 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7075
SELECT - SUM ( DISTINCT col0 ) FROM tab2 WHERE + col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7076
SELECT + COUNT( * ) + SUM( ALL ( - col1 ) + 29 * col1 ) DIV COUNT( * ) AS col1 FROM tab0
----
964

skipif mysql # not compatible
query I rowsort label-7076
SELECT + COUNT ( * ) + SUM ( ALL ( - col1 ) + 29 * col1 ) / COUNT ( * ) AS col1 FROM tab0
----
964

query I rowsort
SELECT DISTINCT - col0 - + ( col1 ) * col0 AS col2 FROM tab2
----
-2392
-4992
-5100

query I rowsort
SELECT col2 + + col2 * + col2 AS col2 FROM tab1
----
3540
4692
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT ALL COUNT( * ) * 47 AS col2 FROM tab1 WHERE ( col0 ) >= ( col1 )
----
141

skipif mysql # not compatible
query I rowsort label-7079
SELECT ALL COUNT ( * ) * 47 AS col2 FROM tab1 WHERE ( col0 ) >= ( col1 )
----
141

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 NOT BETWEEN + 32 * 14 AND 95
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 < ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT COUNT( * ) * COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> + col0
----
0

skipif mysql # not compatible
query I rowsort label-7082
SELECT COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT ALL - 52 + + COUNT( * ) * + 18 FROM tab1 cor0 CROSS JOIN tab1 WHERE NOT NULL IS NULL
----
-52

skipif mysql # not compatible
query I rowsort label-7083
SELECT ALL - 52 + + COUNT ( * ) * + 18 FROM tab1 cor0 CROSS JOIN tab1 WHERE NOT NULL IS NULL
----
-52

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 ) > col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 * + 63 FROM tab1
----
2961
315
882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7086
SELECT CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2 cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-7086
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 cor0 CROSS JOIN tab0
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col1 * 39 ) IS NULL
----

query I rowsort
SELECT - + ( + col0 ) * col2 + + col0 AS col1 FROM tab1 AS cor0
----
-4845
-4930
-6097

onlyif mysql # DIV for integer division: 
query I rowsort label-7089
SELECT - + 90 DIV + col0 + 95 AS col0 FROM tab2 AS cor0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-7089
SELECT - + 90 / + col0 + 95 AS col0 FROM tab2 AS cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT DISTINCT + 70 * + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + 22
----
0

skipif mysql # not compatible
query I rowsort label-7090
SELECT DISTINCT + 70 * + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + 22
----
0

query I rowsort
SELECT + ( - col2 ) FROM tab2 cor0 WHERE ( NULL ) = + 61 + - 66
----

query I rowsort
SELECT + 31 + + 45 FROM tab1 AS cor0
----
76
76
76

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 79 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT ALL - COUNT( * ) + - - 49 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-7094
SELECT ALL - COUNT ( * ) + - - 49 FROM tab1
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7095
SELECT ALL * FROM tab0 WHERE ( CAST( NULL AS SIGNED ) ) NOT BETWEEN - col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7095
SELECT ALL * FROM tab0 WHERE ( CAST ( NULL AS INTEGER ) ) NOT BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7096
SELECT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN ( col2 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7096
SELECT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN ( col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7097
SELECT DISTINCT - CAST( - 37 AS SIGNED ) + col1 FROM tab2
----
104
114
88

skipif mysql # not compatible
query I rowsort label-7097
SELECT DISTINCT - CAST ( - 37 AS INTEGER ) + col1 FROM tab2
----
104
114
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query I rowsort
SELECT + 8 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query III rowsort
SELECT * FROM tab0 WHERE 58 / - col2 = NULL
----

query I rowsort
SELECT - 48 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query II rowsort
SELECT + col2 AS col2, - col0 + + col1 FROM tab0 AS cor0
----
10
-66
47
66
99
-96

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( + 32 - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT + 83 > ( - - ( + 54 ) + + col1 )
----
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 27 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT DISTINCT COUNT( + 87 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7106
SELECT DISTINCT COUNT ( + 87 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 20 <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 80 col1, col0 AS col0 FROM tab1 cor0
----
80
51
80
85
80
91

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 >= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - 43 ) FROM tab2
----
-43
-43
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7111
SELECT DISTINCT col0 * col1 + ( CAST( NULL AS SIGNED ) ) / col0 FROM tab1 WHERE NOT NULL <= col0 + - 50
----

skipif mysql # not compatible
query I rowsort label-7111
SELECT DISTINCT col0 * col1 + ( CAST ( NULL AS INTEGER ) ) / col0 FROM tab1 WHERE NOT NULL <= col0 + - 50
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7112
SELECT col2 DIV 70 * - col0 AS col0 FROM tab0
----
-97
0
0

skipif mysql # not compatible
query I rowsort label-7112
SELECT col2 / 70 * - col0 AS col0 FROM tab0
----
-97
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 ) NOT BETWEEN - col2 AND ( - col0 )
----

query I rowsort
SELECT col2 * + col1 + 65 * col1 FROM tab2 WHERE NOT + + ( + col1 ) IS NULL
----
4488
8085
8241

query I rowsort
SELECT ALL + ( 76 ) * + 89 * - - 50 - 26 AS col0 FROM tab0
----
338174
338174
338174

query I rowsort
SELECT ALL col2 + col0 FROM tab2 WHERE NOT ( NULL ) > ( 20 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7117
SELECT col0 DIV - + col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7117
SELECT col0 / - + col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7118
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 IN ( - + col2 / - 74 + col0 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7118
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 IN ( - + col2 / - 74 + col0 * + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7119
SELECT + col1 * 99 + col2 + + ( - col2 ) + col2 DIV col1 FROM tab2 AS cor0
----
5049
6633
7623

skipif mysql # not compatible
query I rowsort label-7119
SELECT + col1 * 99 + col2 + + ( - col2 ) + col2 / col1 FROM tab2 AS cor0
----
5049
6633
7623

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7120
SELECT - col2 + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
17
23
24

skipif mysql # not compatible
query I rowsort label-7120
SELECT - col2 + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT col2 + 71 + - 56 + - col0 FROM tab0
----
-62
17
47

query I rowsort
SELECT 67 * col0 AS col2 FROM tab0
----
1005
5829
6499

query I rowsort
SELECT 38 FROM tab2 AS cor0 WHERE NULL IS NULL
----
38
38
38

query I rowsort
SELECT 39 AS col1 FROM tab0 AS cor0 WHERE col2 < - col2 + + col1
----
39

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + col2 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - 42 ) AND + 37
----

query I rowsort
SELECT + + ( - col2 ) - - - col2 FROM tab1 AS cor0
----
-118
-136
-192

query I rowsort
SELECT - col2 + + + col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT ALL col0 * col2 * - 81 AS col2 FROM tab2
----
-207360
-352350
-85698

query I rowsort
SELECT ALL col2 * + + 97 + 79 FROM tab0
----
1049
4638
9682

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT + 86 + - COUNT( * ) col2 FROM tab0
----
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7131
SELECT + 86 + - COUNT ( * ) col2 FROM tab0
----
83

query I rowsort
SELECT ALL - 21 + + 53 * + + 40 AS col1 FROM tab0
----
2099
2099
2099

query I rowsort
SELECT - 57 * + 2 + + 19 AS col1 FROM tab1
----
-95
-95
-95

query I rowsort
SELECT DISTINCT - col0 - + + 0 + + col1 AS col2 FROM tab2
----
-8
13
5

query I rowsort
SELECT ( + - col0 ) + + ( + + 65 ) FROM tab1
----
-20
-26
14

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) > + col1 * - - col0
----

query I rowsort
SELECT DISTINCT - - col2 - - col2 AS col1 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT ALL 60 * - col0 * + 7 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN col2 AND ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7141
SELECT DISTINCT ( - CAST( - 31 AS SIGNED ) ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 > ( col2 )
----
31

skipif mysql # not compatible
query I rowsort label-7141
SELECT DISTINCT ( - CAST ( - 31 AS INTEGER ) ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 > ( col2 )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-7142
SELECT ALL - 25 DIV - col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7142
SELECT ALL - 25 / - col2 FROM tab2
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 93 ) col0 FROM tab1
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7144
SELECT ALL + ( - MAX( - CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7144
SELECT ALL + ( - MAX ( - CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN ( col1 * - + col2 ) AND 67
----

query I rowsort
SELECT ALL + 15 * col0 FROM tab0 AS cor0
----
1305
1455
225

query II rowsort
SELECT - - col0 * + 69, col2 FROM tab1 AS cor0
----
3519
96
5865
59
6279
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab0 cor0 WHERE ( - + col0 IS NOT NULL )
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-7149
SELECT MAX( + + col0 ) AS col0, 64 FROM tab0 AS cor0
----
97
64

skipif mysql # not compatible
query II rowsort label-7149
SELECT MAX ( + + col0 ) AS col0, 64 FROM tab0 AS cor0
----
97
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7150
SELECT ALL + COUNT( * ) DIV + + MAX( col0 ) col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7150
SELECT ALL + COUNT ( * ) / + + MAX ( col0 ) col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT - MIN( ALL + 31 ) AS col0 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-7151
SELECT - MIN ( ALL + 31 ) AS col0 FROM tab0 AS cor0
----
-31

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) IN ( - 89 )
----

query I rowsort
SELECT DISTINCT + ( - 47 ) AS col1 FROM tab2 AS cor0
----
-47

query II rowsort
SELECT + + 37 * + - ( 51 ) AS col1, col0 FROM tab1 AS cor0
----
-1887
51
-1887
85
-1887
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= 1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 47 * col1 * + 75 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 81 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT DISTINCT - 42 * + + COUNT( * ) + - + 18 AS col2 FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-7158
SELECT DISTINCT - 42 * + + COUNT ( * ) + - + 18 AS col2 FROM tab2
----
-144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT ALL + col2 + col2 - col1 + 69 AS col1 FROM tab1 cor0
----
158
182
247

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT 60 + COUNT( * ) FROM tab1 cor0 WHERE NULL > NULL
----
60

skipif mysql # not compatible
query I rowsort label-7161
SELECT 60 + COUNT ( * ) FROM tab1 cor0 WHERE NULL > NULL
----
60

query II rowsort
SELECT + - ( + col0 ) + + 37 + + 41 AS col1, 18 FROM tab1 AS cor0
----
-13
18
-7
18
27
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT DISTINCT + + ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7163
SELECT DISTINCT + + ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 - - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - - 84 AS col2 FROM tab0 AS cor0
----
84
84
84

query I rowsort
SELECT DISTINCT 15 + + col2 FROM tab0
----
114
25
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT ALL - SUM( - col0 ) + - ( 21 ) + + 32 FROM tab2
----
196

skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL - SUM ( - col0 ) + - ( 21 ) + + 32 FROM tab2
----
196

query I rowsort
SELECT DISTINCT + 55 + - + 20 AS col2 FROM tab1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7169
SELECT col1, CAST( - ( col1 ) AS SIGNED ) FROM tab1 WHERE ( + col0 - - 93 ) <= NULL
----

skipif mysql # not compatible
query II rowsort label-7169
SELECT col1, CAST ( - ( col1 ) AS INTEGER ) FROM tab1 WHERE ( + col0 - - 93 ) <= NULL
----

query I rowsort
SELECT ALL - 87 - + + 47 FROM tab0
----
-134
-134
-134

query I rowsort
SELECT DISTINCT + ( - ( - 11 ) ) + - - col2 AS col1 FROM tab0
----
110
21
58

query I rowsort
SELECT DISTINCT - col1 - 32 FROM tab2
----
-109
-83
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT ALL MAX( ALL + col0 ) * + 46 col0 FROM tab2
----
3450

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7173
SELECT ALL MAX ( ALL + col0 ) * + 46 col0 FROM tab2
----
3450

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 53 - col1 FROM tab0 AS cor0
----
-134
-54
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7176
SELECT DISTINCT MIN( DISTINCT + + col0 ) AS col1 FROM tab2 cor0 WHERE NOT ( NOT col0 IN ( + CAST( + - col0 AS SIGNED ) / 81 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7176
SELECT DISTINCT MIN ( DISTINCT + + col0 ) AS col1 FROM tab2 cor0 WHERE NOT ( NOT col0 IN ( + CAST ( + - col0 AS INTEGER ) / 81 ) )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - col1 ) col0 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( + ( - - 98 ) ) AND - ( - 83 ) / - col0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7179
SELECT * FROM tab2 AS cor0 WHERE NOT ( + CAST( - 44 AS DECIMAL ) ) NOT IN ( + CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7179
SELECT * FROM tab2 AS cor0 WHERE NOT ( + CAST ( - 44 AS REAL ) ) NOT IN ( + CAST ( + col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT ALL COUNT( DISTINCT - 4 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7180
SELECT ALL COUNT ( DISTINCT - 4 ) AS col0 FROM tab0
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 * + col2 * + col1 * - + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col0 ) / + 72 * col1 + - ( - + 22 ) col1 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + 32 AS col2, - col2 + - ( - col2 ) AS col2 FROM tab0
----
32
0
32
0
32
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - 66 <= - col2
----

query I rowsort
SELECT - col1 * - 80 * - + 96 FROM tab2 AS cor0
----
-391680
-514560
-591360

query I rowsort
SELECT ALL - col2 * - col0 - - col0 AS col0 FROM tab2 AS cor0
----
1104
2624
4425

query I rowsort
SELECT DISTINCT + 13 AS col1 FROM tab2 AS cor0 WHERE NOT - 29 - 71 / col2 + + col2 * - col0 IN ( - ( - col2 ) * - col0 )
----
13

query I rowsort
SELECT col1 * 23 + col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7189
SELECT ALL + col2 DIV - - 18 FROM tab1 cor0
----
3
3
5

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL + col2 / - - 18 FROM tab1 cor0
----
3
3
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 >= + col2 + - - 91
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + 5 IS NOT NULL
----

query I rowsort
SELECT ALL - 76 AS col2 FROM tab2 cor0
----
-76
-76
-76

query I rowsort
SELECT ALL + + col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT + SUM( DISTINCT + col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-7194
SELECT + SUM ( DISTINCT + col2 ) AS col2 FROM tab0
----
156

query I rowsort
SELECT DISTINCT 53 + + col1 * - col1 * - col1 FROM tab1
----
103876
178
2797

query I rowsort
SELECT DISTINCT ( col2 ) * + + col0 AS col2 FROM tab0
----
705
870
9603

query I rowsort
SELECT ALL - col1 + 44 AS col0 FROM tab0
----
-37
23
43

onlyif mysql # DIV for integer division: 
query I rowsort label-7198
SELECT DISTINCT - col0 DIV + ( 10 ) AS col2 FROM tab1
----
-5
-8
-9

skipif mysql # not compatible
query I rowsort label-7198
SELECT DISTINCT - col0 / + ( 10 ) AS col2 FROM tab1
----
-5
-8
-9

query I rowsort
SELECT 26 AS col2 FROM tab2 WHERE NOT ( NOT col2 > NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) < + col2
----

query IIIIII rowsort
SELECT * FROM tab2, tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + - 26 AS col2 FROM tab0 AS cor0
----
-26
-26
-26

query I rowsort
SELECT + - col2 / - + 76 + - col1 + - col1 * - 83 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 25 + + - 98 FROM tab1 AS cor0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT + 25 - COUNT( * ) FROM tab2 WHERE ( NULL ) <= 18
----
25

skipif mysql # not compatible
query I rowsort label-7205
SELECT + 25 - COUNT ( * ) FROM tab2 WHERE ( NULL ) <= 18
----
25

query II rowsort
SELECT + col0 AS col1, - col2 * - col0 FROM tab2
----
46
1058
64
2560
75
4350

query I rowsort
SELECT ALL + col1 - + col0 + - col1 + + col2 FROM tab0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT ALL + + MIN( - col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7208
SELECT ALL + + MIN ( - col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT DISTINCT + - ( - - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7209
SELECT DISTINCT + - ( - - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - ( col2 ) AS col2 FROM tab1 AS cor0 WHERE - col2 * + + col2 BETWEEN + 33 * - col1 + + col2 * 18 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 89 col0 FROM tab2 cor0
----
-135
-153
-164

query I rowsort
SELECT ALL + col1 + + ( + col1 ) AS col1 FROM tab1
----
10
28
94

query I rowsort
SELECT col2 + + - 82 AS col0 FROM tab1
----
-14
-23
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 * col1 + col0 col1 FROM tab2
----
2851
3760
4299

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + 14, + col2 * - col0 + - - 5 col1 FROM tab0
----
113
-9598
24
-865
61
-700

query I rowsort
SELECT ALL - 26 + - 26 AS col1 FROM tab2
----
-52
-52
-52

query I rowsort
SELECT ALL + ( - + 63 ) + - + col1 FROM tab2
----
-114
-130
-140

query I rowsort
SELECT DISTINCT 98 - + col1 + - col2 AS col1 FROM tab1
----
-12
-17
34

query I rowsort
SELECT ALL - 20 * - 94 + + col0 AS col1 FROM tab1
----
1931
1965
1971

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 * + col1 * 24 * 19 col0 FROM tab0
----
11400
239400
923400

query II rowsort
SELECT col2 * + col2, + 22 * + col2 AS col1 FROM tab1 AS cor0
----
3481
1298
4624
1496
9216
2112

query I rowsort
SELECT ( - col2 ) * + ( col1 ) FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-7223
SELECT + col2 DIV + + col0 col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7223
SELECT + col2 / + + col0 col0 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT ALL - COUNT( * ) * COUNT( ALL - col2 ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7224
SELECT ALL - COUNT ( * ) * COUNT ( ALL - col2 ) AS col0 FROM tab0
----
-9

query I rowsort
SELECT - 95 + + - 65 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b2d877c40510a3d56d933bf79baf22

onlyif mysql # DIV for integer division: 
query I rowsort label-7226
SELECT col0 * col0 DIV + 40 - + col1 DIV col1 * + ( + col1 ) FROM tab0 AS cor0
----
-76
168
234

skipif mysql # not compatible
query I rowsort label-7226
SELECT col0 * col0 / + 40 - + col1 / col1 * + ( + col1 ) FROM tab0 AS cor0
----
-76
168
234

query I rowsort
SELECT 60 + - 79 * - 39 FROM tab1 cor0
----
3141
3141
3141

query I rowsort
SELECT - + col1 * - - col1 * + col2 + + col2 AS col2 FROM tab1 AS cor0
----
-1416
-150144
-18720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col0, 25 col2 FROM tab0
----
10
25
47
25
99
25

query I rowsort
SELECT DISTINCT - 93 * 61 * - - col1 FROM tab1
----
-266631
-28365
-79422

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7231
SELECT DISTINCT - 43 DIV - COUNT( * ) FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-7231
SELECT DISTINCT - 43 / - COUNT ( * ) FROM tab0
----
14

query I rowsort
SELECT - col1 * 39 AS col2 FROM tab1 WHERE NULL NOT IN ( + col1 - - ( - - col2 ), + col0 / + + col1, - col0 * col0 + ( 54 ) )
----

query I rowsort
SELECT ( - 17 ) FROM tab1
----
-17
-17
-17

query I rowsort
SELECT DISTINCT col1 + + + col2 + + - col2 + 86 AS col0 FROM tab0
----
107
167
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7235
SELECT DISTINCT + ( - + 46 ) - + CAST( + col0 AS SIGNED ) + - CAST( NULL AS SIGNED ) * + 91 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7235
SELECT DISTINCT + ( - + 46 ) - + CAST ( + col0 AS INTEGER ) + - CAST ( NULL AS INTEGER ) * + 91 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + col2 + + - 49 AS col2 FROM tab2 AS cor0
----
-26
-9
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( col0, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT + - ( + ( - - COUNT( * ) ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7238
SELECT + - ( + ( - - COUNT ( * ) ) ) FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7239
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * + - 38 * - ( - ( - col1 ) ) + + - CAST( NULL AS SIGNED ) <> + + 9 * + CAST( - 76 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7239
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * + - 38 * - ( - ( - col1 ) ) + + - CAST ( NULL AS INTEGER ) <> + + 9 * + CAST ( - 76 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) * + 56 col2 FROM tab0 AS cor0
----
-2632
-5544
-560

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7241
SELECT - col1 DIV - CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-7241
SELECT - col1 / - CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
0
0
5

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 WHERE - col2 IS NOT NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7243
SELECT 23 DIV - + 33 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7243
SELECT 23 / - + 33 AS col2 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT 7 NOT BETWEEN - col2 AND + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT DISTINCT COUNT( ALL - 98 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7245
SELECT DISTINCT COUNT ( ALL - 98 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7246
SELECT DISTINCT + + MIN( - - ( + 63 ) ) AS col1, - ( - + MAX( ALL col1 ) ) AS col0 FROM tab2 AS cor0
----
63
77

skipif mysql # not compatible
query II rowsort label-7246
SELECT DISTINCT + + MIN ( - - ( + 63 ) ) AS col1, - ( - + MAX ( ALL col1 ) ) AS col0 FROM tab2 AS cor0
----
63
77

query II rowsort
SELECT + ( + + col0 ), col2 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query II rowsort label-7248
SELECT ALL + ( 0 ) AS col2, SUM( - - col0 ) col1 FROM tab1 AS cor0
----
0
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7248
SELECT ALL + ( 0 ) AS col2, SUM ( - - col0 ) col1 FROM tab1 AS cor0
----
0
227

query I rowsort
SELECT DISTINCT + + 36 AS col1 FROM tab2 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col1 + - 29 + + + 49 <= - col2
----
0

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col1 + - 29 + + + 49 <= - col2
----
0

query I rowsort
SELECT ALL + 53 AS col2 FROM tab1 cor0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT COUNT( 80 ) + COUNT( * ) - - ( - - 53 ) * + COUNT( * ) * + + COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7252
SELECT COUNT ( 80 ) + COUNT ( * ) - - ( - - 53 ) * + COUNT ( * ) * + + COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col0 > NULL
----
0

query I rowsort
SELECT DISTINCT + col0 + - - 67 * col1 AS col1 FROM tab2 AS cor0
----
3463
4564
5223

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT DISTINCT 26 + - ( MIN( ALL + + col2 ) ) AS col0 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-7255
SELECT DISTINCT 26 + - ( MIN ( ALL + + col2 ) ) AS col0 FROM tab0
----
16

query I rowsort
SELECT DISTINCT + 83 + col0 * col0 * - 46 FROM tab0
----
-10267
-348091
-432731

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT 3 + COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7257
SELECT 3 + COUNT ( * ) AS col1 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT COUNT( * ) + - + 25 AS col1 FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-7258
SELECT COUNT ( * ) + - + 25 AS col1 FROM tab0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7259
SELECT + 94 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7259
SELECT + 94 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 0 + 72 FROM tab1
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-7261
SELECT ALL 7 AS col2, COUNT( * ) FROM tab0 AS cor0
----
7
3

skipif mysql # not compatible
query II rowsort label-7261
SELECT ALL 7 AS col2, COUNT ( * ) FROM tab0 AS cor0
----
7
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT + - MIN( - col0 ) * - + 90 + 40 FROM tab0 AS cor0
----
-8690

skipif mysql # not compatible
query I rowsort label-7262
SELECT + - MIN ( - col0 ) * - + 90 + 40 FROM tab0 AS cor0
----
-8690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7263
SELECT - + 71 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7263
SELECT - + 71 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * 66 FROM tab2
----
1518
2640
3828

query I rowsort
SELECT DISTINCT + col1 + + col0 * + - ( col0 ) AS col1 FROM tab1
----
-2587
-7220
-8234

query I rowsort
SELECT DISTINCT + 44 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
44

query I rowsort
SELECT ALL col0 - - col0 AS col0 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT DISTINCT + col2 - + + 0 AS col0 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL 17 * - col1 FROM tab2 AS cor0
----
-1139
-1309
-867

query I rowsort
SELECT DISTINCT + - 42 * 73 AS col0 FROM tab2 AS cor0
----
-3066

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT + + MIN( + 41 ) + + - 48 AS col1 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-7271
SELECT + + MIN ( + 41 ) + + - 48 AS col1 FROM tab0 AS cor0
----
-7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7272
SELECT ALL - - 2, 61 DIV - CAST( - + 82 AS SIGNED ) + - 6 AS col0 FROM tab1 AS cor0
----
2
-6
2
-6
2
-6

skipif mysql # not compatible
query II rowsort label-7272
SELECT ALL - - 2, 61 / - CAST ( - + 82 AS INTEGER ) + - 6 AS col0 FROM tab1 AS cor0
----
2
-6
2
-6
2
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 col0 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 7 * + + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 55 * - 48 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 32 * - col0 FROM tab0 cor0
----
2784
3104
480

query I rowsort
SELECT + col1 + - 19 AS col1 FROM tab2 AS cor0
----
32
48
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 8, ( + - col0 ) col0 FROM tab0 AS cor0
----
8
-15
8
-87
8
-97

query I rowsort
SELECT col0 + + 26 AS col0 FROM tab0 AS cor0
----
113
123
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT ALL - + MAX( col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL - + MAX ( col1 ) AS col0 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( - + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT ALL + COUNT( * ) FROM tab1 WHERE ( NOT col1 <= + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7282
SELECT ALL + COUNT ( * ) FROM tab1 WHERE ( NOT col1 <= + col0 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - ( 63 ) >= + + ( + + col0 )
----
51
14
96

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 * + 28 < 24 * + col1
----
15
81
47
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-7285
SELECT 65 DIV + col2 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7285
SELECT 65 / + col2 AS col0 FROM tab1
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 < + - 56
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1 * - - col1 + + col2 AS col2, - col2 AS col2 FROM tab1
----
2277
-68
292
-96
84
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7288
SELECT CAST( - 96 AS SIGNED ) * COUNT( * ) + + 83 AS col0 FROM tab2
----
-205

skipif mysql # not compatible
query I rowsort label-7288
SELECT CAST ( - 96 AS INTEGER ) * COUNT ( * ) + + 83 AS col0 FROM tab2
----
-205

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT DISTINCT + 98 - + COUNT( * ) * - 14 + - + 98 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-7290
SELECT DISTINCT + 98 - + COUNT ( * ) * - 14 + - + 98 FROM tab2 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT ALL - - SUM( DISTINCT col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL - - SUM ( DISTINCT col1 ) FROM tab2 AS cor0
----
195

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * - + col1 + 68 > + - col1
----

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 cor0 WHERE NULL BETWEEN + 96 * - 51 * + col0 * - - 39 + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7294
SELECT ALL 89 DIV col2 AS col0 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7294
SELECT ALL 89 / col2 AS col0 FROM tab2 AS cor0
----
1
2
3

query I rowsort
SELECT DISTINCT - + 70 * - 58 AS col2 FROM tab0 AS cor0
----
4060

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7296
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
0

query I rowsort
SELECT col2 * - col0 * col1 FROM tab2 AS cor0 WHERE NOT NULL = - col2 - - 76
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 ) NOT IN ( + col1, + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 49 * - 74 AS col0 FROM tab0
----
-3626
-3626
-3626

query II rowsort
SELECT ALL - 46 AS col0, 64 AS col1 FROM tab2
----
-46
64
-46
64
-46
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7301
SELECT ALL * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7301
SELECT ALL * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * ( - col2 ) AS col1 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL + + 50 AS col2 FROM tab0 AS cor0
----
50
50
50

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * + - col0 <= + 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT DISTINCT + - COUNT( DISTINCT - 76 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7306
SELECT DISTINCT + - COUNT ( DISTINCT - 76 ) FROM tab2 AS cor0
----
-1

query II rowsort
SELECT ALL - col0 + 76 AS col1, col2 AS col2 FROM tab0 AS cor0
----
-11
10
-21
99
61
47

query I rowsort
SELECT ALL - - 44 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 58 - - col0 * col1 col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-7310
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NULL > + 95 + - ( - CAST( - 10 AS DECIMAL ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-7310
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NULL > + 95 + - ( - CAST ( - 10 AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7311
SELECT DISTINCT CAST( col0 AS SIGNED ) AS col0 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7311
SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col0 FROM tab1 cor0
----
51
85
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT + 62 * COUNT( * ) * - ( 72 ) FROM tab1 AS cor0
----
-13392

skipif mysql # not compatible
query I rowsort label-7313
SELECT + 62 * COUNT ( * ) * - ( 72 ) FROM tab1 AS cor0
----
-13392

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT + + 94 + + - MIN( ALL - + col1 ) col1 FROM tab1 WHERE + col2 IS NOT NULL
----
141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7314
SELECT + + 94 + + - MIN ( ALL - + col1 ) col1 FROM tab1 WHERE + col2 IS NOT NULL
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT DISTINCT - COUNT( * ) + COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7315
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL - col2 + + 21 FROM tab2
----
-19
-2
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7317
SELECT DISTINCT - 59 DIV + - 52 + + COUNT( - col2 ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-7317
SELECT DISTINCT - 59 / + - 52 + + COUNT ( - col2 ) FROM tab1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT ALL - MIN( DISTINCT - col2 ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-7318
SELECT ALL - MIN ( DISTINCT - col2 ) AS col2 FROM tab2
----
58

query II rowsort
SELECT ALL - + col2, + 49 AS col0 FROM tab0 AS cor0
----
-10
49
-47
49
-99
49

query II rowsort
SELECT - 41 * + col1 * + col0 AS col2, - col1 FROM tab1 AS cor0
----
-17425
-5
-175357
-47
-29274
-14

query I rowsort
SELECT + 98 * + col1 AS col2 FROM tab1 cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT ALL + COUNT( DISTINCT + - col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7322
SELECT ALL + COUNT ( DISTINCT + - col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT - COUNT( - + 17 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7323
SELECT - COUNT ( - + 17 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT - COUNT( * ) * + 74 FROM tab1 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-7324
SELECT - COUNT ( * ) * + 74 FROM tab1 AS cor0
----
-222

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0 + col0
----

query II rowsort
SELECT col2 * - - 85 AS col1, + col0 FROM tab2 cor0
----
1955
46
3400
64
4930
75

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 11 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT 80 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7329
SELECT 25 * + - col1 * - + CAST( col0 AS SIGNED ) AS col0 FROM tab0
----
2425
30375
45675

skipif mysql # not compatible
query I rowsort label-7329
SELECT 25 * + - col1 * - + CAST ( col0 AS INTEGER ) AS col0 FROM tab0
----
2425
30375
45675

query I rowsort
SELECT col1 * + + 31 AS col1 FROM tab2
----
1581
2077
2387

query II rowsort
SELECT DISTINCT 12 * + + ( - 86 ) AS col1, - 44 FROM tab0
----
-1032
-44

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 74 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7333
SELECT ALL 39 DIV col0 * ( + 81 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7333
SELECT ALL 39 / col0 * ( + 81 ) FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7334
SELECT DISTINCT + 27 * - + CAST( CAST( + col1 AS SIGNED ) AS SIGNED ) * - CAST( + col1 AS SIGNED ) FROM tab0
----
11907
177147
27

skipif mysql # not compatible
query I rowsort label-7334
SELECT DISTINCT + 27 * - + CAST ( CAST ( + col1 AS INTEGER ) AS INTEGER ) * - CAST ( + col1 AS INTEGER ) FROM tab0
----
11907
177147
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT ALL + MAX( - 40 ) FROM tab1 cor0
----
-40

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL + MAX ( - 40 ) FROM tab1 cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT COUNT( - - ( + + col1 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7336
SELECT COUNT ( - - ( + + col1 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7337
SELECT DISTINCT - - ( + 72 ) DIV + col0 + - - 48 AS col2 FROM tab2 AS cor0
----
48
49

skipif mysql # not compatible
query I rowsort label-7337
SELECT DISTINCT - - ( + 72 ) / + col0 + - - 48 AS col2 FROM tab2 AS cor0
----
48
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7338
SELECT + + CAST( + - col2 AS SIGNED ) AS col1 FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7338
SELECT + + CAST ( + - col2 AS INTEGER ) AS col1 FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT - 98 + + - 90 FROM tab1
----
-188
-188
-188

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE 39 IN ( + col2, - col1, + 91 + + 80, - col2 )
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL = col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7342
SELECT ( - CAST( - + ( + + col0 ) AS SIGNED ) ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7342
SELECT ( - CAST ( - + ( + + col0 ) AS INTEGER ) ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT - + 94 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-7343
SELECT - + 94 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-282

query I rowsort
SELECT DISTINCT 92 * + col0 + col0 - - col0 FROM tab2
----
4324
6016
7050

query I rowsort
SELECT 3 - - 67 + + col0 AS col0 FROM tab0
----
157
167
85

query I rowsort
SELECT col2 * - 69 - + col2 FROM tab0
----
-3290
-6930
-700

query III rowsort
SELECT * FROM tab2 WHERE - - 78 > + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) + - - 92 AS col1 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-7348
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) + - - 92 AS col1 FROM tab1
----
92

query I rowsort
SELECT ALL + col0 - + 18 FROM tab0 AS cor0
----
-3
69
79

query II rowsort
SELECT ALL col2, + 12 FROM tab0
----
10
12
47
12
99
12

query I rowsort
SELECT DISTINCT + 44 * 24 FROM tab1 AS cor0
----
1056

query I rowsort
SELECT DISTINCT - - 33 FROM tab1 cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7353
SELECT DISTINCT - col2 * - 8 * - col0 * col2 * CAST( NULL AS SIGNED ) / 43 / - + 56 / + 31 + 17 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7353
SELECT DISTINCT - col2 * - 8 * - col0 * col2 * CAST ( NULL AS INTEGER ) / 43 / - + 56 / + 31 + 17 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( 90 ) AS col0 FROM tab0 AS cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT - MIN( 29 ) AS col1 FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-7355
SELECT - MIN ( 29 ) AS col1 FROM tab0 AS cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT SUM( + - col1 ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7356
SELECT SUM ( + - col1 ) FROM tab1 cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7357
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 42 - + CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-7357
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 42 - + CAST ( NULL AS INTEGER ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT ALL - MAX( DISTINCT 52 ) FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL - MAX ( DISTINCT 52 ) FROM tab1 AS cor0
----
-52

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 89 + + 88 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT COUNT( * ) * - - ( 0 ) col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7361
SELECT COUNT ( * ) * - - ( 0 ) col2 FROM tab1
----
0

query I rowsort
SELECT - col1 * + col2 * - col0 AS col2 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT col2 * - col2 * 97 AS col1 FROM tab0
----
-214273
-950697
-9700

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 NOT BETWEEN 87 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT + + 64 + - - COUNT( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN + col2 AND - col0 + col1 / - col1
----
64

skipif mysql # not compatible
query I rowsort label-7365
SELECT + + 64 + - - COUNT ( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN + col2 AND - col0 + col1 / - col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT DISTINCT - MIN( - ( + - 75 ) ) AS col0 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7366
SELECT DISTINCT - MIN ( - ( + - 75 ) ) AS col0 FROM tab0 AS cor0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7367
SELECT + COUNT( * ) col2, CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7367
SELECT + COUNT ( * ) col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
3
NULL

query I rowsort
SELECT ALL - col1 - + 26 AS col0 FROM tab0 AS cor0
----
-107
-27
-47

query I rowsort
SELECT ALL + 5 * + - 73 FROM tab1 AS cor0 WHERE NOT + + 55 + + col0 IS NOT NULL AND NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT 20 + 53 * MAX( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
4843

skipif mysql # not compatible
query I rowsort label-7370
SELECT 20 + 53 * MAX ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
4843

query I rowsort
SELECT 53 FROM tab1 AS cor0 WHERE + 69 IS NOT NULL
----
53
53
53

query I rowsort
SELECT 56 + + 3 FROM tab0 AS cor0
----
59
59
59

query I rowsort
SELECT ALL 36 + 16 FROM tab0 AS cor0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT ALL 41 + + ( + - COUNT( * ) ) AS col2 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL 41 + + ( + - COUNT ( * ) ) AS col2 FROM tab2
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 + col0 col1 FROM tab0
----
100
172
182

query II rowsort
SELECT ALL col2, 48 * - - col2 AS col0 FROM tab0
----
10
480
47
2256
99
4752

onlyif mysql # DIV for integer division: 
query I rowsort label-7377
SELECT DISTINCT - col1 + 85 DIV col2 * + col0 FROM tab1
----
-14
44
80

skipif mysql # not compatible
query I rowsort label-7377
SELECT DISTINCT - col1 + 85 / col2 * + col0 FROM tab1
----
-14
44
80

onlyif mysql # DIV for integer division: 
query I rowsort label-7378
SELECT col2 DIV + col1 + - col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7378
SELECT col2 / + col1 + - col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ALL col1 * - - 65 * + col2 + - + 18 AS col0 FROM tab2
----
200182
252572
76227

query I rowsort
SELECT col0 + + 48 FROM tab2
----
112
123
94

query I rowsort
SELECT ALL col1 - 45 - col2 FROM tab0
----
-11
-143
-34

query I rowsort
SELECT ALL - - col1 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7384
SELECT 34 + col0 + - 74 + col2 + + CAST( NULL AS SIGNED ) * + - col1 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7384
SELECT 34 + col0 + - 74 + col2 + + CAST ( NULL AS INTEGER ) * + - col1 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE + 35 IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL + 37 - + col2 FROM tab1 cor0
----
-22
-31
-59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 * + col1 AND - col0
----

query III rowsort
SELECT ALL + ( + col1 ) AS col0, 87 * + - col1 AS col2, col1 FROM tab1 AS cor0
----
9 values hashing to 3cb11852da6f1b912b4f0e50b5e71f7c

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT + - COUNT( - col2 ) * 12 AS col1 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-7389
SELECT + - COUNT ( - col2 ) * 12 AS col1 FROM tab1 AS cor0
----
-36

query II rowsort
SELECT ALL - ( col2 ) AS col2, ( + - col1 ) FROM tab1
----
-59
-5
-68
-47
-96
-14

query I rowsort
SELECT + ( - + 46 ) AS col2 FROM tab1
----
-46
-46
-46

query I rowsort
SELECT DISTINCT + ( - + 5 ) FROM tab0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7393
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - ( 12 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7393
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - ( 12 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query II rowsort
SELECT - col1, - ( - col1 ) + - + 38 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
-51
13
-67
29
-77
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT 46 + + SUM( ALL + ( + + col2 ) ) FROM tab1 AS cor0 WHERE NOT ( NOT - col0 IS NOT NULL )
----
269

skipif mysql # not compatible
query I rowsort label-7395
SELECT 46 + + SUM ( ALL + ( + + col2 ) ) FROM tab1 AS cor0 WHERE NOT ( NOT - col0 IS NOT NULL )
----
269

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT DISTINCT + COUNT( DISTINCT col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7396
SELECT DISTINCT + COUNT ( DISTINCT col1 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 24 > - 65
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 81 col0 FROM tab0 AS cor0
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT + MIN( + col0 ) * 24 * - 54 FROM tab2 AS cor0
----
-59616

skipif mysql # not compatible
query I rowsort label-7399
SELECT + MIN ( + col0 ) * 24 * - 54 FROM tab2 AS cor0
----
-59616

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT COUNT( ALL col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT 51 <= + col2 * col0
----
0

skipif mysql # not compatible
query I rowsort label-7400
SELECT COUNT ( ALL col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT 51 <= + col2 * col0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 BETWEEN NULL AND col0 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col1 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7403
SELECT ALL * FROM tab1 WHERE NULL > + 98 * - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7403
SELECT ALL * FROM tab1 WHERE NULL > + 98 * - + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * col1 * + col0 = + col1 + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7405
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) * - MIN( ALL col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7405
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) * - MIN ( ALL col0 ) FROM tab0
----
NULL

query I rowsort
SELECT ALL + 32 * - col0 AS col2 FROM tab2
----
-1472
-2048
-2400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7407
SELECT - - COUNT( + col0 ) * + COUNT( * ) - - - COUNT( * ), + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
6
NULL

skipif mysql # not compatible
query II rowsort label-7407
SELECT - - COUNT ( + col0 ) * + COUNT ( * ) - - - COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
6
NULL

query I rowsort
SELECT DISTINCT + col1 * - col2 * - 14 * - col0 AS col2 FROM tab1 cor0
----
-351050
-4071704
-959616

query I rowsort
SELECT DISTINCT col0 + - + 19 FROM tab1
----
32
66
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7410
SELECT - ( - - 19 ) + - CAST( NULL AS SIGNED ) AS col0 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7410
SELECT - ( - - 19 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7411
SELECT DISTINCT ( + + col2 ) - + col0 - + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7411
SELECT DISTINCT ( + + col2 ) - + col0 - + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + - col2 + - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT DISTINCT - 33 * + - COUNT( ALL + col1 ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7413
SELECT DISTINCT - 33 * + - COUNT ( ALL + col1 ) FROM tab1 AS cor0
----
99

query I rowsort
SELECT col1 * + 1 + - + 5 FROM tab1 AS cor0
----
0
42
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 67 ) BETWEEN - col0 AND + col2 + 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT ALL SUM( - col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL SUM ( - col0 ) AS col1 FROM tab0 AS cor0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7417
SELECT DISTINCT col2 - - CAST( col0 AS SIGNED ) + + + col0 * col0 AS col2 FROM tab0 AS cor0
----
287
7666
9605

skipif mysql # not compatible
query I rowsort label-7417
SELECT DISTINCT col2 - - CAST ( col0 AS INTEGER ) + + + col0 * col0 AS col2 FROM tab0 AS cor0
----
287
7666
9605

query I rowsort
SELECT + 23 * - col1 * + - col0 AS col2 FROM tab2 AS cor0
----
113344
115575
53958

query I rowsort
SELECT ALL - col2 + + - 44 FROM tab1 AS cor0
----
-103
-112
-140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 * - col1 col0 FROM tab2 AS cor0
----
-4998
-6566
-7546

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT ALL - SUM( - - col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL - SUM ( - - col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-66

query I rowsort
SELECT + col1 FROM tab1 WHERE + + col1 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7423
SELECT DISTINCT + 84 + CAST( NULL AS SIGNED ) * - MIN( + col2 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7423
SELECT DISTINCT + 84 + CAST ( NULL AS INTEGER ) * - MIN ( + col2 ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7424
SELECT + col0 - col1 + - col1 DIV col2 - + + col2 AS col0 FROM tab1
----
-24
-59
21

skipif mysql # not compatible
query I rowsort label-7424
SELECT + col0 - col1 + - col1 / col2 - + + col2 AS col0 FROM tab1
----
-24
-59
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 12 col2 FROM tab1 cor0
----
-12
-12
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7426
SELECT DISTINCT CAST( - - col1 AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7426
SELECT DISTINCT CAST ( - - col1 AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + + 63 FROM tab2 cor0
----
63
63
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7428
SELECT ALL - 16 DIV - + COUNT( * ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7428
SELECT ALL - 16 / - + COUNT ( * ) FROM tab1
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + 49 col1 FROM tab0
----
-4263
-4753
-735

query I rowsort
SELECT + 64 * + col2 AS col0 FROM tab2
----
1472
2560
3712

onlyif mysql # DIV for integer division: 
query I rowsort label-7431
SELECT + col2 DIV + + 13 FROM tab0
----
0
3
7

skipif mysql # not compatible
query I rowsort label-7431
SELECT + col2 / + + 13 FROM tab0
----
0
3
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7432
SELECT ALL + 7 col2, + ( + CAST( NULL AS SIGNED ) ) FROM tab1
----
7
NULL
7
NULL
7
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7432
SELECT ALL + 7 col2, + ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
7
NULL
7
NULL
7
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7433
SELECT - - 74 DIV COUNT( * ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-7433
SELECT - - 74 / COUNT ( * ) FROM tab0 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT + + SUM( ALL - 4 ) AS col2 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-7434
SELECT + + SUM ( ALL - 4 ) AS col2 FROM tab0 AS cor0
----
-12

query I rowsort
SELECT DISTINCT + - 6 FROM tab0 AS cor0
----
-6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 <= + 42
----
91
47
68

query II rowsort
SELECT DISTINCT col1 AS col0, ( - - 46 ) AS col2 FROM tab2 AS cor0
----
51
46
67
46
77
46

query II rowsort
SELECT + col1, + 73 FROM tab0 AS cor0
----
1
73
21
73
81
73

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 < - 64
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT + 51 + - + col0 FROM tab2
----
-13
-24
5

query I rowsort
SELECT ALL + col1 + + + col1 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT DISTINCT COUNT( * ) + - - COUNT( + ( - col2 ) ) + + + 25 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-7442
SELECT DISTINCT COUNT ( * ) + - - COUNT ( + ( - col2 ) ) + + + 25 FROM tab1
----
31

query I rowsort
SELECT DISTINCT ( - + col1 ) AS col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE - col2 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT ALL + COUNT( + 21 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7445
SELECT ALL + COUNT ( + 21 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT + + 26 + + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7446
SELECT + + 26 + + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
23

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT ALL COUNT( * ) * COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7448
SELECT ALL COUNT ( * ) * COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT ( + + 84 ) + - col0 AS col1 FROM tab1
----
-1
-7
33

query II rowsort
SELECT - col0, col2 - + - col2 AS col2 FROM tab0
----
-15
94
-87
20
-97
198

query I rowsort
SELECT ALL - 87 - + + col0 AS col2 FROM tab0
----
-102
-174
-184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 col1 FROM tab2 AS cor0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7453
SELECT - col2 + + CAST( NULL AS SIGNED ) * - 46 * + 92 + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7453
SELECT - col2 + + CAST ( NULL AS INTEGER ) * - 46 * + 92 + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7454
SELECT ALL + COUNT( DISTINCT - + col2 ) * + - 84 AS col0, + 88 col2 FROM tab0 AS cor0
----
-252
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7454
SELECT ALL + COUNT ( DISTINCT - + col2 ) * + - 84 AS col0, + 88 col2 FROM tab0 AS cor0
----
-252
88

query I rowsort
SELECT + col0 + + - col2 AS col1 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7456
SELECT DISTINCT - ( + col1 ) DIV + col2 FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-7456
SELECT DISTINCT - ( + col1 ) / + col2 FROM tab2 AS cor0
----
-1
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7457
SELECT + COUNT( * ) + + 96 + + 48 DIV + 95 AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7457
SELECT + COUNT ( * ) + + 96 + + 48 / + 95 AS col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT 57 * + 6 + 76 + 1 FROM tab0
----
419
419
419

query I rowsort
SELECT DISTINCT - 62 * + col0 + - - col2 + + + col2 FROM tab1
----
-2970
-5152
-5506

query I rowsort
SELECT + col2 + - 42 FROM tab0 WHERE NOT + col1 IS NULL
----
-32
5
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT DISTINCT - COUNT( * ) * SUM( + - col2 ) col1 FROM tab1
----
669

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7461
SELECT DISTINCT - COUNT ( * ) * SUM ( + - col2 ) col1 FROM tab1
----
669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7462
SELECT + + col2 AS col1 FROM tab1 WHERE NOT 69 * - - col0 * + 5 * CAST( - + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7462
SELECT + + col2 AS col1 FROM tab1 WHERE NOT 69 * - - col0 * + 5 * CAST ( - + col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7463
SELECT CAST( - + COUNT( * ) AS SIGNED ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7463
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) col2 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - col1 * - 32 FROM tab2 AS cor0
----
1632
2144
2464

onlyif mysql # DIV for integer division: 
query I rowsort label-7465
SELECT col2 DIV + + col0 AS col2 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7465
SELECT col2 / + + col0 AS col2 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT DISTINCT 52 * + COUNT( * ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT 52 * + COUNT ( * ) FROM tab0
----
156

query I rowsort
SELECT DISTINCT - col1 * + - 24 FROM tab2 AS cor0 WHERE NOT + col1 <= 12
----
1224
1608
1848

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 + + 13 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT + + 44 + - - COUNT( * ) + + + ( - + 80 ) * - 18 FROM tab2 AS cor0
----
1487

skipif mysql # not compatible
query I rowsort label-7469
SELECT + + 44 + - - COUNT ( * ) + + + ( - + 80 ) * - 18 FROM tab2 AS cor0
----
1487

query I rowsort
SELECT - 59 + 37 AS col0 FROM tab1 AS cor0
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT + COUNT( DISTINCT - col0 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7471
SELECT + COUNT ( DISTINCT - col0 ) col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7472
SELECT ALL col2, CAST( NULL AS SIGNED ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-7472
SELECT ALL col2, CAST ( NULL AS INTEGER ) FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT DISTINCT ( + + MIN( ALL - - 52 ) ) AS col1 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-7473
SELECT DISTINCT ( + + MIN ( ALL - - 52 ) ) AS col1 FROM tab0 AS cor0
----
52

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > - col0
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN - 96 + + + 90 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7476
SELECT DISTINCT - COUNT( * ) + - COUNT( - + 81 ) + SUM( DISTINCT - 84 ) DIV + - COUNT( * ) AS col1 FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-7476
SELECT DISTINCT - COUNT ( * ) + - COUNT ( - + 81 ) + SUM ( DISTINCT - 84 ) / + - COUNT ( * ) AS col1 FROM tab2
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 82 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT ALL + col0 * + - col0 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT ALL - MIN( DISTINCT - + 55 ) AS col2 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-7479
SELECT ALL - MIN ( DISTINCT - + 55 ) AS col2 FROM tab2 AS cor0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-7480
SELECT DISTINCT col2 - - col2 * - col0 + + col2 DIV - - 67 * col0 FROM tab2 AS cor0
----
-1035
-2520
-4292

skipif mysql # not compatible
query I rowsort label-7480
SELECT DISTINCT col2 - - col2 * - col0 + + col2 / - - 67 * col0 FROM tab2 AS cor0
----
-1035
-2520
-4292

query I rowsort
SELECT DISTINCT - - ( + + col2 ) AS col0 FROM tab1 cor0
----
59
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7482
SELECT ALL COUNT( * ) DIV COUNT( * ) * + 7 FROM tab2 cor0
----
7

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL COUNT ( * ) / COUNT ( * ) * + 7 FROM tab2 cor0
----
7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( + 4, col0, - col1 + col0, ( - - 58 ), + 69 + + col0 )
----

query II rowsort
SELECT DISTINCT col2, - 31 * - col2 FROM tab2
----
23
713
40
1240
58
1798

query I rowsort
SELECT ALL col0 * + + ( - 73 ) FROM tab1
----
-3723
-6205
-6643

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT ALL - SUM( ALL - - 80 ) AS col1 FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL - SUM ( ALL - - 80 ) AS col1 FROM tab1
----
-240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7487
SELECT COUNT( DISTINCT col0 ) DIV COUNT( * ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7487
SELECT COUNT ( DISTINCT col0 ) / COUNT ( * ) AS col2 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7488
SELECT CAST( 21 AS SIGNED ) FROM tab1
----
21
21
21

skipif mysql # not compatible
query I rowsort label-7488
SELECT CAST ( 21 AS INTEGER ) FROM tab1
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT DISTINCT + + 46 * COUNT( * ) * 19 + + COUNT( * ) FROM tab1 AS cor0
----
2625

skipif mysql # not compatible
query I rowsort label-7489
SELECT DISTINCT + + 46 * COUNT ( * ) * 19 + + COUNT ( * ) FROM tab1 AS cor0
----
2625

query I rowsort
SELECT DISTINCT 46 AS col2 FROM tab2 AS cor0 WHERE NULL <> - col0 * - - col2
----

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 * + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NULL NOT IN ( 18 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 95 ) NOT IN ( ( 59 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT MIN( col1 ) FROM tab0 WHERE ( NULL ) NOT IN ( + 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7494
SELECT MIN ( col1 ) FROM tab0 WHERE ( NULL ) NOT IN ( + 45 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 col2 FROM tab0 WHERE - ( col0 ) < + 50
----
96

query I rowsort
SELECT + col1 + col1 FROM tab1 WHERE col2 - - col1 * col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( - 97 ) IS NULL
----

query I rowsort
SELECT ALL - 74 + col2 AS col1 FROM tab2
----
-16
-34
-51

query III rowsort
SELECT * FROM tab0 WHERE + 94 NOT IN ( + col1 * - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT ALL MAX( DISTINCT + col2 ) + 58 AS col2 FROM tab2
----
116

skipif mysql # not compatible
query I rowsort label-7500
SELECT ALL MAX ( DISTINCT + col2 ) + 58 AS col2 FROM tab2
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7501
SELECT - CAST( + 64 AS SIGNED ) AS col0 FROM tab1
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-7501
SELECT - CAST ( + 64 AS INTEGER ) AS col0 FROM tab1
----
-64
-64
-64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 91 ) BETWEEN NULL AND col1
----

query I rowsort
SELECT DISTINCT - ( - 70 ) FROM tab1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-7504
SELECT ALL ( - col1 ) DIV col2 + - 62 AS col2 FROM tab0
----
-62
-63
-64

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL ( - col1 ) / col2 + - 62 AS col2 FROM tab0
----
-62
-63
-64

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 99 ) NOT IN ( - 51 + 58 )
----

query I rowsort
SELECT DISTINCT + 75 * + 16 + - col0 FROM tab2
----
1125
1136
1154

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7507
SELECT 89 * + col0 + CAST( - ( CAST( NULL AS SIGNED ) ) + + col2 AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7507
SELECT 89 * + col0 + CAST ( - ( CAST ( NULL AS INTEGER ) ) + + col2 AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT ALL - MIN( + col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL - MIN ( + col0 ) AS col0 FROM tab0
----
-15

query III rowsort
SELECT * FROM tab0 WHERE ( col1 ) - + 83 * + col0 > ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT COUNT( DISTINCT - 95 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7510
SELECT COUNT ( DISTINCT - 95 ) AS col0 FROM tab2
----
1

query I rowsort
SELECT + ( - ( col0 ) ) * 98 AS col2 FROM tab2
----
-4508
-6272
-7350

query I rowsort
SELECT - col2 * - 43 FROM tab1
----
2537
2924
4128

query I rowsort
SELECT ALL - 9 + - col2 * - 7 AS col0 FROM tab1
----
404
467
663

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + col0 NOT IN ( col2 * col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE col2 + - 89 IS NULL
----

query I rowsort
SELECT + col1 * - col1 + col2 AS col0 FROM tab2 WHERE NOT - 61 * + 39 IN ( col2 )
----
-2578
-4431
-5889

onlyif mysql # DIV for integer division: 
query I rowsort label-7517
SELECT DISTINCT + col1 DIV col2 + 94 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-7517
SELECT DISTINCT + col1 / col2 + 94 FROM tab1
----
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7518
SELECT col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7518
SELECT col0 * CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + + col0 FROM tab2 AS cor0 WHERE ( + 98 ) = ( - ( + col0 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + ( 17 ) ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 28 + col2 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * col0 - - 7 * + 89 AS col2 FROM tab0
----
10032
8192
848

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT ALL COUNT( * ) FROM tab2 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL COUNT ( * ) FROM tab2 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT DISTINCT + 49 / col1 + col1 FROM tab1 WHERE col1 IN ( - col1 )
----

query I rowsort
SELECT + col2 - col1 * + col0 AS col2 FROM tab0
----
-1168
-1817
2

query I rowsort
SELECT col1 / - col1 - col1 * + 52 FROM tab1 AS cor0 WHERE 61 BETWEEN col2 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT - COUNT( * ) * - 84 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7527
SELECT - COUNT ( * ) * - 84 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL - 17 * col0 FROM tab2 cor0
----
-1088
-1275
-782

query I rowsort
SELECT - col2 + - 80 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-139
-148
-176

query I rowsort
SELECT 25 FROM tab0 cor0
----
25
25
25

query I rowsort
SELECT col2 * + col1 AS col2 FROM tab0 AS cor0 WHERE NOT - 53 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 8 col0 FROM tab0 AS cor0
----
8
8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 34 col1 FROM tab1
----
34
34
34

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> - col2 * - col1
----

query I rowsort
SELECT DISTINCT 1 FROM tab1 WHERE NOT ( NULL ) = ( + 45 / 89 + + col1 )
----

query I rowsort
SELECT + col2 * - col1 * - col1 FROM tab1
----
1475
150212
18816

query I rowsort
SELECT ALL + col2 * + col2 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 31 * - col1 FROM tab2
----
-1581
-2077
-2387

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 ) IN ( col2 + 71 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col1 ) NOT BETWEEN ( col0 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT DISTINCT - SUM( DISTINCT 6 ) AS col0 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-7541
SELECT DISTINCT - SUM ( DISTINCT 6 ) AS col0 FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT ALL MAX( DISTINCT - + 93 ) AS col2 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-7542
SELECT ALL MAX ( DISTINCT - + 93 ) AS col2 FROM tab1 AS cor0
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7543
SELECT ALL - + 67 DIV - COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
7

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL - + 67 / - COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7544
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 WHERE NOT - - 41 * col1 + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7544
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 WHERE NOT - - 41 * col1 + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7545
SELECT DISTINCT - + col2 DIV col0 AS col1 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7545
SELECT DISTINCT - + col2 / col0 AS col1 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT - ( ( ( + col0 ) ) ) FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7547
SELECT + col1 + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7547
SELECT + col1 + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 4 * + col1 * - col2 + 8 * - 56 FROM tab0 AS cor0
----
-1288
-15676
-844

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND + ( + col0 ) * - col1 + col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 < ( 59 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7551
SELECT ALL - col2 * - + 95 * 14 + 90 * CAST( - 29 * 68 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-49800
-87040
-99010

skipif mysql # not compatible
query I rowsort label-7551
SELECT ALL - col2 * - + 95 * 14 + 90 * CAST ( - 29 * 68 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-49800
-87040
-99010

query I rowsort
SELECT DISTINCT - 70 + + col0 FROM tab0 AS cor0
----
-55
17
27

onlyif mysql # DIV for integer division: 
query I rowsort label-7553
SELECT - col1 DIV - 28 AS col1 FROM tab2 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-7553
SELECT - col1 / - 28 AS col1 FROM tab2 AS cor0
----
1
2
2

query I rowsort
SELECT DISTINCT + col0 * col2 + - + col2 + 5 * col1 * col1 FROM tab0 AS cor0
----
3065
33463
9509

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 col0 FROM tab0 WHERE + col2 * - 59 + col2 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL 4 FROM tab0 WHERE + ( + col1 ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 + + 61 col1 FROM tab1 WHERE ( col1 ) <= 95
----
152
152
152

query I rowsort
SELECT DISTINCT - 9 FROM tab1 WHERE NULL IN ( 16 * - + col0 + + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 5 <> NULL
----

query I rowsort
SELECT DISTINCT col1 / + col2 FROM tab1 WHERE - - col0 BETWEEN NULL AND - + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7561
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + - col0 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7561
SELECT DISTINCT - CAST ( NULL AS REAL ) + + - col0 AS col0 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 + - + col0 = ( NULL )
----

query I rowsort
SELECT ALL 19 + + + 94 FROM tab1
----
113
113
113

query I rowsort
SELECT ALL 86 + + + col1 * - - 27 FROM tab1
----
1355
221
464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7565
SELECT DISTINCT 4 + + AVG ( - CAST( NULL AS SIGNED ) ) - + 57 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7565
SELECT DISTINCT 4 + + AVG ( - CAST ( NULL AS INTEGER ) ) - + 57 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 62 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 * - col0 <= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) > + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 51 IN ( 99 * + col2 / 20 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 / + col0 col1 FROM tab1 WHERE NOT - + 48 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7571
SELECT ALL - MIN( - + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL - MIN ( - + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN col2 * - col0 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7573
SELECT ALL - col0 col2, CAST( + - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7573
SELECT ALL - col0 col2, CAST ( + - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 > ( + 52 )
----
87
21
10
97
1
99

query I rowsort
SELECT ALL ( - 14 ) AS col2 FROM tab0 AS cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-7576
SELECT 33, COUNT( * ) AS col0 FROM tab0
----
33
3

skipif mysql # not compatible
query II rowsort label-7576
SELECT 33, COUNT ( * ) AS col0 FROM tab0
----
33
3

query I rowsort
SELECT DISTINCT + 12 * col2 * col0 FROM tab1
----
58752
60180
74256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7578
SELECT MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab2, tab2 AS cor0 WHERE NOT - - 84 * 25 >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7578
SELECT MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2, tab2 AS cor0 WHERE NOT - - 84 * 25 >= ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7579
SELECT ALL - CAST( + col2 AS SIGNED ) * - col1 AS col2 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL - CAST ( + col2 AS INTEGER ) * - col1 AS col2 FROM tab1
----
1344
295
3196

query II rowsort
SELECT 51 AS col1, + col1 + + col0 AS col0 FROM tab1
----
51
138
51
65
51
90

onlyif mysql # aggregate syntax: 
query II rowsort label-7581
SELECT + 3 * + ( + COUNT( ALL + col0 ) ) AS col2, - SUM( - + col1 ) AS col2 FROM tab0
----
9
103

skipif mysql # not compatible
query II rowsort label-7581
SELECT + 3 * + ( + COUNT ( ALL + col0 ) ) AS col2, - SUM ( - + col1 ) AS col2 FROM tab0
----
9
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT 96 * SUM( col2 ) AS col1 FROM tab0 WHERE NOT + 24 * - 52 IS NULL
----
14976

skipif mysql # not compatible
query I rowsort label-7582
SELECT 96 * SUM ( col2 ) AS col1 FROM tab0 WHERE NOT + 24 * - 52 IS NULL
----
14976

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= ( 71 * - 24 )
----

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT col1 - col0 * 22 < + - col2 + - ( 52 ) + 75 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7585
SELECT DISTINCT CAST( - CAST( + col2 AS SIGNED ) AS SIGNED ) col2 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7585
SELECT DISTINCT CAST ( - CAST ( + col2 AS INTEGER ) AS INTEGER ) col2 FROM tab2 cor0
----
-23
-40
-58

query II rowsort
SELECT ALL + col2 AS col0, 88 FROM tab0 WHERE NOT - - col0 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT DISTINCT COUNT( * ) * - 99 + - 0 FROM tab0 cor0
----
-297

skipif mysql # not compatible
query I rowsort label-7587
SELECT DISTINCT COUNT ( * ) * - 99 + - 0 FROM tab0 cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT ALL + + MAX( DISTINCT + col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL + + MAX ( DISTINCT + col0 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT DISTINCT - - 86 AS col1 FROM tab0 cor0
----
86

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 + + - col1 ) <> 55 - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * - 87 + + + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + 99 ) AND NULL
----

query II rowsort
SELECT 21 + - col1 AS col0, - col0 FROM tab1 AS cor0
----
-26
-91
16
-85
7
-51

query I rowsort
SELECT DISTINCT col0 - ( - - col2 ) + + 84 * - col1 + + col2 FROM tab2
----
-4238
-5553
-6404

query III rowsort
SELECT * FROM tab0 WHERE + col0 * 29 / + + col1 IS NULL
----

query I rowsort
SELECT + col2 * + + 27 + col2 * - col0 AS col2 FROM tab1
----
-2304
-3422
-4352

query I rowsort
SELECT ALL 95 - + - 26 FROM tab1
----
121
121
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT - - COUNT( * ) AS col1 FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7598
SELECT - - COUNT ( * ) AS col1 FROM tab0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT col1 + - - col0 AS col2 FROM tab1
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + + col1 ) + + ( + 69 ) col2 FROM tab0 AS cor0 WHERE - col0 <= col2
----
150
70
90

query I rowsort
SELECT DISTINCT + - 47 * - col0 * - - 28 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT + - MAX( ALL + 50 ) AS col0 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-7602
SELECT + - MAX ( ALL + 50 ) AS col0 FROM tab1 AS cor0
----
-50

query I rowsort
SELECT ALL + col2 - - + col2 FROM tab1 cor0
----
118
136
192

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT ( NOT ( 75 + - + col0 * - - col2 * - ( + + 66 ) - - + col0 * col1 ) < NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 68 + 19 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT ALL - + SUM( - - 8 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-72

skipif mysql # not compatible
query I rowsort label-7606
SELECT ALL - + SUM ( - - 8 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-72

query I rowsort
SELECT DISTINCT 42 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
42

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <> ( col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * - 30 NOT IN ( ( + - col2 ) * + 14 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7610
SELECT - CAST( + - AVG ( + 72 ) AS DECIMAL ) * SUM( ALL + + 41 ) FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7610
SELECT - CAST ( + - AVG ( + 72 ) AS REAL ) * SUM ( ALL + + 41 ) FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT - + SUM( DISTINCT - 32 ) FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-7611
SELECT - + SUM ( DISTINCT - 32 ) FROM tab2 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT SUM( - - col0 ) AS col0 FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-7612
SELECT SUM ( - - col0 ) AS col0 FROM tab1 cor0
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7613
SELECT col2 * - ( CAST( col2 AS SIGNED ) ) AS col2 FROM tab1
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-7613
SELECT col2 * - ( CAST ( col2 AS INTEGER ) ) AS col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT DISTINCT - COUNT( - - col1 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7614
SELECT DISTINCT - COUNT ( - - col1 ) AS col0 FROM tab1
----
-3

query II rowsort
SELECT ALL - col2, col2 AS col0 FROM tab0
----
-10
10
-47
47
-99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7616
SELECT - + col1 DIV - - col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7616
SELECT - + col1 / - - col1 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + col2 <> col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7618
SELECT + - col1 DIV - col1 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7618
SELECT + - col1 / - col1 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + - 28 FROM tab1 cor0
----
-28
-28
-28

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( + + col2 ) < col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT IN ( + 41 - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7622
SELECT DISTINCT + COUNT( * ) col1, COUNT( * ) AS col1 FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7622
SELECT DISTINCT + COUNT ( * ) col1, COUNT ( * ) AS col1 FROM tab0
----
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7623
SELECT ALL + MIN( ALL + CAST( + col0 AS SIGNED ) ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7623
SELECT ALL + MIN ( ALL + CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT - COUNT( * ) + - 9 AS col1 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-7624
SELECT - COUNT ( * ) + - 9 AS col1 FROM tab1 AS cor0
----
-12

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7625
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7625
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - CAST ( NULL AS REAL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 91 * + col1 <= - - 66 + - 99 * + - ( + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT DISTINCT + - MAX( DISTINCT - 96 ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7627
SELECT DISTINCT + - MAX ( DISTINCT - 96 ) FROM tab2 AS cor0
----
96

query I rowsort
SELECT + col1 * + + col1 - col1 FROM tab2 AS cor0
----
2550
4422
5852

query I rowsort
SELECT DISTINCT + - col2 * - + col2 AS col2 FROM tab1 AS cor0
----
3481
4624
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) + - 35 * + col2 col2 FROM tab2
----
-1440
-2088
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT DISTINCT + 50 + + + MAX( ALL + ( 45 ) ) AS col2 FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-7631
SELECT DISTINCT + 50 + + + MAX ( ALL + ( 45 ) ) AS col2 FROM tab1
----
95

query I rowsort
SELECT ALL col2 * - col1 - + - 31 + 93 AS col0 FROM tab0
----
-3683
-86
25

query I rowsort
SELECT DISTINCT col0 + + + col0 + 75 * - col0 * - col2 AS col0 FROM tab0
----
52905
65424
720419

query I rowsort
SELECT ALL col2 * col0 + col2 - - col2 FROM tab2
----
1104
2640
4466

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 61 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7636
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) - + col0 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7636
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ) - + col0 col1 FROM tab2
----
NULL

query I rowsort
SELECT - 48 + + 51 * col0 FROM tab2 AS cor0
----
2298
3216
3777

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT - COUNT( * ) + - 6 * 28 AS col1 FROM tab1 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-7638
SELECT - COUNT ( * ) + - 6 * 28 AS col1 FROM tab1 AS cor0
----
-171

query I rowsort
SELECT DISTINCT - 55 + - col0 * - + 13 + + col2 FROM tab2 AS cor0
----
566
817
978

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7640
SELECT ALL CAST( NULL AS SIGNED ) * AVG ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7640
SELECT ALL CAST ( NULL AS INTEGER ) * AVG ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT ALL + ( MAX( DISTINCT + 52 ) ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
52

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL + ( MAX ( DISTINCT + 52 ) ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT ALL - COUNT( * ) + + COUNT( * ) FROM tab1 WHERE NOT NULL = + col2
----
0

skipif mysql # not compatible
query I rowsort label-7642
SELECT ALL - COUNT ( * ) + + COUNT ( * ) FROM tab1 WHERE NOT NULL = + col2
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( NULL >= - 83 ) )
----

query I rowsort
SELECT ALL - col0 * 94 + - col1 AS col1 FROM tab2 AS cor0
----
-4375
-6093
-7117

query I rowsort
SELECT + 79 * - col1 AS col0 FROM tab1 AS cor0
----
-1106
-3713
-395

query II rowsort
SELECT ALL - + col1, col1 * 31 AS col1 FROM tab0 AS cor0
----
-1
31
-21
651
-81
2511

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT DISTINCT + MAX( - 19 ) col0 FROM tab2 cor0
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7647
SELECT DISTINCT + MAX ( - 19 ) col0 FROM tab2 cor0
----
-19

query I rowsort
SELECT - 73 + - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7649
SELECT + CAST( - 23 AS SIGNED ) * + - COUNT( * ) col0 FROM tab2
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7649
SELECT + CAST ( - 23 AS INTEGER ) * + - COUNT ( * ) col0 FROM tab2
----
69

onlyif mysql # DIV for integer division: 
query II rowsort label-7650
SELECT ALL 45 DIV - 69 AS col2, col0 * + col0 AS col2 FROM tab1
----
0
2601
0
7225
0
8281

skipif mysql # not compatible
query II rowsort label-7650
SELECT ALL 45 / - 69 AS col2, col0 * + col0 AS col2 FROM tab1
----
0
2601
0
7225
0
8281

query I rowsort
SELECT ALL + 17 + - - col0 FROM tab1
----
102
108
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7652
SELECT ALL + 12 * ( + 41 ) DIV - 92 - - COUNT( * ) + + COUNT( * ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL + 12 * ( + 41 ) / - 92 - - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
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-7653
SELECT DISTINCT + COUNT ( ALL - + col0 ) col0 FROM tab0
----
3

query I rowsort
SELECT + ( 16 ) FROM tab0
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT 59 * + COUNT( * ) AS col1 FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-7655
SELECT 59 * + COUNT ( * ) AS col1 FROM tab0
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-7656
SELECT - 15 + - col0 DIV - 23 FROM tab0 AS cor0
----
-11
-12
-15

skipif mysql # not compatible
query I rowsort label-7656
SELECT - 15 + - col0 / - 23 FROM tab0 AS cor0
----
-11
-12
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7657
SELECT col1 + + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7657
SELECT col1 + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - ( + 9 ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT + + 15 + - col2 + + ( + - 68 ) + col2 * + col2 * - - ( - + 1 ) + + col1 FROM tab0 AS cor0
----
-142
-2228
-9952

query I rowsort
SELECT ALL + - 85 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT DISTINCT - - COUNT( * ) + + 57 * + + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
522

skipif mysql # not compatible
query I rowsort label-7661
SELECT DISTINCT - - COUNT ( * ) + + 57 * + + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7662
SELECT DISTINCT COUNT( * ) - CAST( - - COUNT( * ) AS SIGNED ) - - MAX( + 71 ) * - 44 AS col0 FROM tab0
----
-3124

skipif mysql # not compatible
query I rowsort label-7662
SELECT DISTINCT COUNT ( * ) - CAST ( - - COUNT ( * ) AS INTEGER ) - - MAX ( + 71 ) * - 44 AS col0 FROM tab0
----
-3124

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT DISTINCT + COUNT( * ) + - 28 * 31 + 65 + - 10 AS col2 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
-804

skipif mysql # not compatible
query I rowsort label-7663
SELECT DISTINCT + COUNT ( * ) + - 28 * 31 + 65 + - 10 AS col2 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
-804

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + col2 - - - 49 col0 FROM tab1 AS cor0
----
1295
246
3147

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - - col2 * col1
----

query I rowsort
SELECT DISTINCT + col2 - - col1 AS col1 FROM tab1 cor0
----
110
115
64

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + - 91 ) + col1 IN ( col2, col0, - + 23 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 + + + 70 > ( - col0 )
----

query I rowsort
SELECT - - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT + + col1 IS NULL
----
10
47
99

query I rowsort
SELECT + 57 + - 65 FROM tab1 AS cor0
----
-8
-8
-8

query I rowsort
SELECT - ( - col2 ) + 20 AS col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
43
60
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT + 61 + + COUNT( * ) FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-7672
SELECT + 61 + + COUNT ( * ) FROM tab0 AS cor0
----
64

query I rowsort
SELECT + ( - col1 ) * + col0 + + 23 FROM tab2 AS cor0
----
-2323
-4905
-5002

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col1 ) + - col1 + + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL > - col1 * + - col1
----

query I rowsort
SELECT col0 FROM tab2 WHERE col1 IS NULL
----

query I rowsort
SELECT - 2 + - + 54 FROM tab1
----
-56
-56
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7678
SELECT DISTINCT + col1 + + col0 - - col1 + + - CAST( - col2 AS SIGNED ) col2 FROM tab2
----
171
258
267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7678
SELECT DISTINCT + col1 + + col0 - - col1 + + - CAST ( - col2 AS INTEGER ) col2 FROM tab2
----
171
258
267

query I rowsort
SELECT DISTINCT + col0 - col0 + + col0 AS col2 FROM tab1
----
51
85
91

query II rowsort
SELECT 84, + col2 * + col1 AS col2 FROM tab0
----
84
210
84
3807
84
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT SUM( ALL - 40 ) FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-7681
SELECT SUM ( ALL - 40 ) FROM tab2
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT DISTINCT + MIN( DISTINCT col0 ) FROM tab2 AS cor0 WHERE ( NOT - - 98 = - + col0 )
----
46

skipif mysql # not compatible
query I rowsort label-7682
SELECT DISTINCT + MIN ( DISTINCT col0 ) FROM tab2 AS cor0 WHERE ( NOT - - 98 = - + col0 )
----
46

query I rowsort
SELECT DISTINCT + col0 - - 82 FROM tab0 AS cor0 WHERE NOT + col2 <> - + col0
----

query I rowsort
SELECT + + 74 FROM tab2 cor0 WHERE NOT - 71 IS NULL
----
74
74
74

query I rowsort
SELECT - - 75 * + 25 AS col0 FROM tab2 AS cor0
----
1875
1875
1875

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT ALL + - MIN( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL + - MIN ( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7687
SELECT + col2 * + CAST( NULL AS SIGNED ) * col2 + + ( + + col1 ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7687
SELECT + col2 * + CAST ( NULL AS INTEGER ) * col2 + + ( + + col1 ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7688
SELECT DISTINCT + 23 DIV - col1, col0 AS col0 FROM tab0 AS cor0
----
-1
87
-23
97
0
15

skipif mysql # not compatible
query II rowsort label-7688
SELECT DISTINCT + 23 / - col1, col0 AS col0 FROM tab0 AS cor0
----
-1
87
-23
97
0
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7689
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NULL = - CAST( - + col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7689
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NULL = - CAST ( - + col0 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > + col0 * 15
----

query I rowsort
SELECT + + 65 + + col1 * col1 FROM tab2 cor0
----
2666
4554
5994

query I rowsort
SELECT ALL - 50 * 60 AS col1 FROM tab1 AS cor0
----
-3000
-3000
-3000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 29 * + - 10 + + col0 col0 FROM tab0 AS cor0
----
305
377
387

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT ALL - 76 * - ( - MIN( ALL + 19 ) ) + - + 35 AS col2 FROM tab0 AS cor0 WHERE NULL = + col1 * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL - 76 * - ( - MIN ( ALL + 19 ) ) + - + 35 AS col2 FROM tab0 AS cor0 WHERE NULL = + col1 * - 63
----
NULL

query II rowsort
SELECT + col1 * - 80 * col2 * 97, + col0 AS col1 FROM tab0
----
-1629600
87
-29542320
15
-768240
97

onlyif mysql # aggregate syntax: 
query II rowsort label-7696
SELECT DISTINCT COUNT( * ), MIN( DISTINCT 49 ) AS col1 FROM tab0
----
3
49

skipif mysql # not compatible
query II rowsort label-7696
SELECT DISTINCT COUNT ( * ), MIN ( DISTINCT 49 ) AS col1 FROM tab0
----
3
49

query I rowsort
SELECT ALL - - 22 - + 66 AS col2 FROM tab0 WHERE NOT NULL > + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( - col0 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col2 * + - 36 * - col2, - 94 AS col0 FROM tab2 AS cor0
----
-121104
-94
-19044
-94
-57600
-94

query II rowsort
SELECT - - 1 AS col2, col2 FROM tab1 AS cor0 WHERE NULL > - col0
----

query I rowsort
SELECT ALL + + 55 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7703
SELECT * FROM tab0 WHERE NULL <= - CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7703
SELECT * FROM tab0 WHERE NULL <= - CAST ( - col0 AS INTEGER )
----

query I rowsort
SELECT + 80 + - col2 FROM tab1
----
-16
12
21

query I rowsort
SELECT ALL + 10 - - 47 FROM tab2 AS cor0
----
57
57
57

query I rowsort
SELECT col1 * 82 AS col2 FROM tab1 AS cor0
----
1148
3854
410

onlyif mysql # DIV for integer division: 
query I rowsort label-7707
SELECT - - col1 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7707
SELECT - - col1 / + col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - + col2 ) col2 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT ALL col2 - + col0 AS col0, ( + + col2 ) AS col1 FROM tab1 AS cor0
----
-23
68
-26
59
45
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7710
SELECT - + COUNT( * ) - - - COUNT( ALL - col1 ) - - CAST( - 21 AS SIGNED ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-7710
SELECT - + COUNT ( * ) - - - COUNT ( ALL - col1 ) - - CAST ( - 21 AS INTEGER ) FROM tab1 AS cor0
----
-27

query I rowsort
SELECT DISTINCT ( - ( - col2 ) ) FROM tab2 cor0
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) = - 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT - - 22 - - COUNT( * ) + - + 58 AS col0 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-7713
SELECT - - 22 - - COUNT ( * ) + - + 58 AS col0 FROM tab2 AS cor0
----
-33

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT + 89 < ( + - col1 )
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, 96 * + col1 AS col2 FROM tab1
----
51
1344
85
480
91
4512

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 - + + col1 + + col1 + + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 28 = NULL
----

query I rowsort
SELECT DISTINCT ( + + col2 ) AS col1 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7719
SELECT DISTINCT + ( + CAST( col1 AS SIGNED ) ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7719
SELECT DISTINCT + ( + CAST ( col1 AS INTEGER ) ) FROM tab1
----
14
47
5

query II rowsort
SELECT 68, col1 FROM tab0 cor0
----
68
1
68
21
68
81

query II rowsort
SELECT ALL - col0, - 90 AS col2 FROM tab1 AS cor0
----
-51
-90
-85
-90
-91
-90

query I rowsort
SELECT DISTINCT 44 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
44

query I rowsort
SELECT DISTINCT - ( 16 ) FROM tab0
----
-16

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL <= col2 )
----

query I rowsort
SELECT + 42 AS col2 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT + 51 * - + col2 FROM tab2
----
-1173
-2040
-2958

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT ALL + MIN( col0 ) col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7727
SELECT ALL + MIN ( col0 ) col2 FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT - + 54 + col2 FROM tab2 AS cor0
----
-14
-31
4

query I rowsort
SELECT ALL col1 * + col2 + + - 17 FROM tab2
----
1156
3063
3869

query I rowsort
SELECT ( + 68 ) + + 23 + - col2 FROM tab1
----
-5
23
32

query I rowsort
SELECT - col2 + + 77 FROM tab1
----
-19
18
9

query I rowsort
SELECT 51 + - col0 - col1 FROM tab0
----
-45
-47
-57

query I rowsort
SELECT DISTINCT + 58 AS col2 FROM tab0 WHERE NOT + 3 IS NULL
----
58

query I rowsort
SELECT DISTINCT - col0 * + col2 + - col0 FROM tab1
----
-4947
-5100
-6279

query I rowsort
SELECT + 84 + + - 43 FROM tab0
----
41
41
41

query I rowsort
SELECT ALL - ( + 49 ) AS col0 FROM tab1 AS cor0
----
-49
-49
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 * 99, col2 col2 FROM tab2 AS cor0 WHERE NOT col2 * 90 / - 9 + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * + col1 + + + ( - 9 ) AS col0 FROM tab0
----
1206
1818
88

onlyif mysql # DIV for integer division: 
query I rowsort label-7739
SELECT ALL col0 - 29 DIV - col0 - + + 60 + - ( - col2 ) - col2 DIV 33 DIV - col1 - col1 FROM tab1 cor0
----
52
73
79

skipif mysql # not compatible
query I rowsort label-7739
SELECT ALL col0 - 29 / - col0 - + + 60 + - ( - col2 ) - col2 / 33 / - col1 - col1 FROM tab1 cor0
----
52
73
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT DISTINCT - - SUM( + col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7740
SELECT DISTINCT - - SUM ( + col1 ) AS col1 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT DISTINCT - COUNT( * ) * - 81 col0 FROM tab1 AS cor0 WHERE NOT col1 >= + col1 * 57
----
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7741
SELECT DISTINCT - COUNT ( * ) * - 81 col0 FROM tab1 AS cor0 WHERE NOT col1 >= + col1 * 57
----
243

query II rowsort
SELECT - col0 AS col0, + col2 AS col0 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query II rowsort
SELECT - + col0 AS col1, col0 AS col1 FROM tab1 cor0 WHERE NOT + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT DISTINCT + - MAX( - col0 ) col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7744
SELECT DISTINCT + - MAX ( - col0 ) col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + col1 + col2
----

query I rowsort
SELECT ALL - ( - + col2 ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7748
SELECT col1 AS col1 FROM tab0 WHERE NOT - ( - + 41 ) * - + CAST( col2 AS SIGNED ) NOT BETWEEN + col2 AND col2 - - 5
----

skipif mysql # not compatible
query I rowsort label-7748
SELECT col1 AS col1 FROM tab0 WHERE NOT - ( - + 41 ) * - + CAST ( col2 AS INTEGER ) NOT BETWEEN + col2 AND col2 - - 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT DISTINCT - SUM( - col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7749
SELECT DISTINCT - SUM ( - col1 ) FROM tab2
----
195

query II rowsort
SELECT 42 * - + col0, col0 AS col0 FROM tab0
----
-3654
87
-4074
97
-630
15

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT - col2 NOT BETWEEN NULL AND 43 + + col0 + - col2 * + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7752
SELECT CAST( - col0 AS SIGNED ) FROM tab0 WHERE NOT + 41 BETWEEN col0 + - 75 AND + ( + ( + - col2 ) ) / 97 - col0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7752
SELECT CAST ( - col0 AS INTEGER ) FROM tab0 WHERE NOT + 41 BETWEEN col0 + - 75 AND + ( + ( + - col2 ) ) / 97 - col0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7753
SELECT - 38 AS col1, col1 - ( ( col1 ) ) * - - CAST( NULL AS SIGNED ) - - + col2 FROM tab2 WHERE NOT CAST( + - col1 AS SIGNED ) * - 0 * + col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-7753
SELECT - 38 AS col1, col1 - ( ( col1 ) ) * - - CAST ( NULL AS INTEGER ) - - + col2 FROM tab2 WHERE NOT CAST ( + - col1 AS INTEGER ) * - 0 * + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7754
SELECT col0 * + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7754
SELECT col0 * + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - col2, + ( + 64 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 91 + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 36 / - col1 AS col1 FROM tab2 AS cor0 WHERE 30 + col1 NOT BETWEEN + col0 / col0 * + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 col2 FROM tab0 AS cor0
----
6
6
6

query I rowsort
SELECT + ( - + 88 ) AS col1 FROM tab0 AS cor0
----
-88
-88
-88

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 32 - + col1 > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + + col0 * + col1 AS col2 FROM tab0 AS cor0
----
1230
1914
194

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT ALL COUNT( * ) + 83 * - - 10 AS col1 FROM tab0 AS cor0
----
833

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL COUNT ( * ) + 83 * - - 10 AS col1 FROM tab0 AS cor0
----
833

query II rowsort
SELECT ALL + 66 * - ( col1 ) + + + col1, col1 FROM tab1
----
-3055
47
-325
5
-910
14

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7766
SELECT ALL col0 + col2 + + col1 + col0 * col1 * + col0 + - + CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) + + + col1 / - col2 / - col2, - col1 - - + col2 AS col2 FROM tab2
----
NULL
-28
NULL
-37
NULL
-9

skipif mysql # not compatible
query II rowsort label-7766
SELECT ALL col0 + col2 + + col1 + col0 * col1 * + col0 + - + CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) + + + col1 / - col2 / - col2, - col1 - - + col2 AS col2 FROM tab2
----
NULL
-28
NULL
-37
NULL
-9

query I rowsort
SELECT ALL 46 + col2 + + col0 FROM tab1
----
190
193
205

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT ALL + COUNT( * ) + - 98 FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL + COUNT ( * ) + - 98 FROM tab2
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7769
SELECT + AVG ( + + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7769
SELECT + AVG ( + + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + - 68 ) * + + col0 col1 FROM tab1 cor0
----
3468
5780
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT DISTINCT COUNT( * ) * - 68 AS col1 FROM tab1 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-7771
SELECT DISTINCT COUNT ( * ) * - 68 AS col1 FROM tab1 AS cor0
----
-204

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7772
SELECT + 36, col1 AS col2 FROM tab0 AS cor0 WHERE col1 NOT IN ( + 85 * - - 51, - CAST( NULL AS SIGNED ), - col2 )
----

skipif mysql # not compatible
query II rowsort label-7772
SELECT + 36, col1 AS col2 FROM tab0 AS cor0 WHERE col1 NOT IN ( + 85 * - - 51, - CAST ( NULL AS INTEGER ), - col2 )
----

query I rowsort
SELECT + - col2 + - 77 AS col0 FROM tab0 AS cor0
----
-124
-176
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT DISTINCT - 92 * + COUNT( * ) col2 FROM tab1 cor0
----
-276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7774
SELECT DISTINCT - 92 * + COUNT ( * ) col2 FROM tab1 cor0
----
-276

query I rowsort
SELECT ALL + 84 FROM tab2 WHERE NOT ( ( 58 ) >= 51 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col0 + 55 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 45 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT - + col1 AS col2 FROM tab0 WHERE ( ( + - col1 ) IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7779
SELECT DISTINCT + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7779
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT ( + col1 ) FROM tab1 cor0
----
14
47
5

query III rowsort
SELECT * FROM tab1 WHERE NOT + 64 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * + ( + + col1 ) BETWEEN NULL AND ( + - ( col0 ) * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) col1 FROM tab2
----
46
64
75

query II rowsort
SELECT - col0 AS col1, - 15 FROM tab2
----
-46
-15
-64
-15
-75
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7785
SELECT CAST( - - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7785
SELECT CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT - - 13 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-7787
SELECT DISTINCT COUNT( * ) AS col2, 34 AS col2 FROM tab1 cor0
----
3
34

skipif mysql # not compatible
query II rowsort label-7787
SELECT DISTINCT COUNT ( * ) AS col2, 34 AS col2 FROM tab1 cor0
----
3
34

query II rowsort
SELECT DISTINCT - + col0 AS col0, + 64 FROM tab1 AS cor0
----
-51
64
-85
64
-91
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7789
SELECT DISTINCT * FROM tab2 WHERE NOT + + 60 IN ( 49 / + CAST( NULL AS SIGNED ) + + col2, - col2, col0, - + col2 )
----

skipif mysql # not compatible
query III rowsort label-7789
SELECT DISTINCT * FROM tab2 WHERE NOT + + 60 IN ( 49 / + CAST ( NULL AS INTEGER ) + + col2, - col2, col0, - + col2 )
----

query I rowsort
SELECT - 66 * - - col1 AS col2 FROM tab0 AS cor0
----
-1386
-5346
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT + COUNT( * ) col1 FROM tab0 cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7791
SELECT + COUNT ( * ) col1 FROM tab0 cor0 WHERE NULL > NULL
----
0

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT 3 + - col0 AS col2 FROM tab1
----
-48
-82
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT + - SUM( DISTINCT - + col1 ) - + 76 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7794
SELECT + - SUM ( DISTINCT - + col1 ) - + 76 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7795
SELECT 60 DIV col0 * - - col1 + + col2 FROM tab1
----
110
59
68

skipif mysql # not compatible
query I rowsort label-7795
SELECT 60 / col0 * - - col1 + + col2 FROM tab1
----
110
59
68

query I rowsort
SELECT + col2 + - - 70 AS col0 FROM tab2
----
110
128
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT - 10 + + COUNT( * ) FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-7797
SELECT - 10 + + COUNT ( * ) FROM tab1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7798
SELECT DISTINCT col1 * - + CAST( - col0 AS SIGNED ) FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-7798
SELECT DISTINCT col1 * - + CAST ( - col0 AS INTEGER ) FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT DISTINCT SUM( - 55 ) - + 18 AS col2 FROM tab1 cor0
----
-183

skipif mysql # not compatible
query I rowsort label-7799
SELECT DISTINCT SUM ( - 55 ) - + 18 AS col2 FROM tab1 cor0
----
-183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) - - - col2 * + - col1 * col2 col2 FROM tab0 AS cor0
----
178848
2079
9800

query I rowsort
SELECT ALL 51 / + col1 * - + 81 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 43 * 40 FROM tab2
----
1720

query I rowsort
SELECT - col2 + - - 79 FROM tab1 AS cor0 WHERE NOT NULL = 91
----

query II rowsort
SELECT ALL - col1, col2 FROM tab0 cor0
----
-1
99
-21
10
-81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7805
SELECT + ( + ( + CAST( col2 AS SIGNED ) ) ) * - col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-7805
SELECT + ( + ( + CAST ( col2 AS INTEGER ) ) ) * - col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col1, + col1 AS col0 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7808
SELECT ALL - + COUNT( * ) * COUNT( * ) DIV - - 26 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL - + COUNT ( * ) * COUNT ( * ) / - - 26 AS col1 FROM tab0 AS cor0
----
0

query II rowsort
SELECT - col1 AS col0, - 88 + + col2 FROM tab1 cor0
----
-14
8
-47
-20
-5
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-7810
SELECT DISTINCT - COUNT( * ) AS col2, COUNT( DISTINCT - + 3 ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-7810
SELECT DISTINCT - COUNT ( * ) AS col2, COUNT ( DISTINCT - + 3 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 col0 FROM tab1
----
-5
-5
-5

query I rowsort
SELECT + col2 * 53 AS col1 FROM tab0
----
2491
5247
530

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT ALL - SUM( - 84 ) AS col2 FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-7813
SELECT ALL - SUM ( - 84 ) AS col2 FROM tab1
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT - COUNT( DISTINCT - + col2 ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7814
SELECT - COUNT ( DISTINCT - + col2 ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7815
SELECT - col1 * - + CAST( NULL AS SIGNED ) / + col1 * 39 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7815
SELECT - col1 * - + CAST ( NULL AS INTEGER ) / + col1 * 39 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT DISTINCT - MIN( 79 ) AS col2 FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT - MIN ( 79 ) AS col2 FROM tab1
----
-79

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT NULL = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7818
SELECT ALL + - col0 DIV col2 AS col2, col1 + 80 FROM tab0 AS cor0
----
-8
101
0
161
0
81

skipif mysql # not compatible
query II rowsort label-7818
SELECT ALL + - col0 / col2 AS col2, col1 + 80 FROM tab0 AS cor0
----
-8
101
0
161
0
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7819
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = CAST( + 75 AS SIGNED ) * + col1 * col1 / + - col2 - + col2
----

skipif mysql # not compatible
query III rowsort label-7819
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = CAST ( + 75 AS INTEGER ) * + col1 * col1 / + - col2 - + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - col0 ) + + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + col2 + + 47 * + + 86 * + + 49 FROM tab2
----
198132
198175
198183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7822
SELECT col1 + + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7822
SELECT col1 + + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col0 * + 24 - + - col0 AS col1 FROM tab0 AS cor0
----
2175
2425
375

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT - 24 + - - COUNT( DISTINCT 45 ) FROM tab0 AS cor0 WHERE 20 IS NOT NULL
----
-23

skipif mysql # not compatible
query I rowsort label-7824
SELECT - 24 + - - COUNT ( DISTINCT 45 ) FROM tab0 AS cor0 WHERE 20 IS NOT NULL
----
-23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7825
SELECT CAST( + - 34 AS SIGNED ) DIV + - col1 + col1 FROM tab0 AS cor0
----
22
35
81

skipif mysql # not compatible
query I rowsort label-7825
SELECT CAST ( + - 34 AS INTEGER ) / + - col1 + col1 FROM tab0 AS cor0
----
22
35
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7826
SELECT ALL + - col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7826
SELECT ALL + - col2 / + col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 53 * + col1 AS col0, + col2 + + + col0 + + - col1 * + + 80 col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - ( + 79 ) - - col2 AS col1 FROM tab1
----
-11
-20
17

query I rowsort
SELECT 5 - - + 20 * + col0 FROM tab2
----
1285
1505
925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7830
SELECT DISTINCT col1 * + col0 - - col2 + col2 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7830
SELECT DISTINCT col1 * + col0 - - col2 + col2 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - + 47 AS col2 FROM tab1 AS cor0 WHERE + 87 BETWEEN + col1 * col1 AND + col1
----

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE ( col1 NOT BETWEEN NULL AND NULL )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7834
SELECT DISTINCT - ( 84 ) FROM tab1 AS cor0 WHERE NOT 74 + col1 < + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7834
SELECT DISTINCT - ( 84 ) FROM tab1 AS cor0 WHERE NOT 74 + col1 < + + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT col1 + col1 AS col2, + col2 * + 35 * + col0 + + col1 AS col2 FROM tab2 cor0
----
102
37081
134
152317
154
89677

onlyif mysql # aggregate syntax: 
query II rowsort label-7836
SELECT - COUNT( * ) AS col2, + COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9
9

skipif mysql # not compatible
query II rowsort label-7836
SELECT - COUNT ( * ) AS col2, + COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7837
SELECT ALL + SUM( DISTINCT + 23 ) * COUNT( DISTINCT - CAST( - + 27 AS SIGNED ) ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7837
SELECT ALL + SUM ( DISTINCT + 23 ) * COUNT ( DISTINCT - CAST ( - + 27 AS INTEGER ) ) AS col2 FROM tab2
----
23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7838
SELECT DISTINCT col2 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7838
SELECT DISTINCT col2 * + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7839
SELECT CAST( 14 AS SIGNED ) AS col0 FROM tab2
----
14
14
14

skipif mysql # not compatible
query I rowsort label-7839
SELECT CAST ( 14 AS INTEGER ) AS col0 FROM tab2
----
14
14
14

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 40 IS NULL
----

query I rowsort
SELECT - + col0 * + 19 FROM tab0 AS cor0
----
-1653
-1843
-285

query I rowsort
SELECT ALL + col2 * - + col2 AS col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7843
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + 19 * + 49 + - col1 + CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7843
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + 19 * + 49 + - col1 + CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + 25 IN ( - col1, col2, - ( - col1 ) + - 0 + + + 92, col1 + col1 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + - col2 AS col0, col1 FROM tab1 cor0
----
-59
5
-68
47
-96
14

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 10 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT ALL - MAX( - col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7847
SELECT ALL - MAX ( - col1 ) AS col0 FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL + + 36 FROM tab0 cor0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT 96 * - SUM( DISTINCT col1 ) AS col1 FROM tab2
----
-18720

skipif mysql # not compatible
query I rowsort label-7849
SELECT 96 * - SUM ( DISTINCT col1 ) AS col1 FROM tab2
----
-18720

onlyif mysql # DIV for integer division: 
query I rowsort label-7850
SELECT + col1 DIV + + 83 * + 41 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7850
SELECT + col1 / + + 83 * + 41 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 95 * + col2 AS col1 FROM tab0
----
4465
9405
950

query I rowsort
SELECT DISTINCT + col2 * + ( - + col2 ) AS col2 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT + AVG ( ALL + + col0 ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT 23 + + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-7854
SELECT 23 + + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
26

query II rowsort
SELECT DISTINCT + - col1, + ( + + col2 ) AS col0 FROM tab2 cor0
----
-51
23
-67
58
-77
40

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT + 39 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 6 * + - 6 BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7859
SELECT DISTINCT - + col2 DIV col0 DIV - 40 * CAST( col2 AS SIGNED ) - 31 FROM tab0 cor0
----
-31

skipif mysql # not compatible
query I rowsort label-7859
SELECT DISTINCT - + col2 / col0 / - 40 * CAST ( col2 AS INTEGER ) - 31 FROM tab0 cor0
----
-31

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( col0 ) + - - col1 - + 13 NOT BETWEEN + col1 + - 96 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 74 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7861
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 74 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 86 + - 32 + + col2 + - 21 col1 FROM tab1 AS cor0
----
5080
5863
8299

onlyif mysql # DIV for integer division: 
query I rowsort label-7863
SELECT - col0 DIV + col2 + col1 + col2 * + 10 * ( 50 ) + - 75 FROM tab2 AS cor0
----
11474
20001
28991

skipif mysql # not compatible
query I rowsort label-7863
SELECT - col0 / + col2 + col1 + col2 * + 10 * ( 50 ) + - 75 FROM tab2 AS cor0
----
11474
20001
28991

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7864
SELECT SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + 35 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7864
SELECT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + 35 col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT ALL - + COUNT( * ) AS col0 FROM tab0 WHERE - - 8 + col1 - + col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL - + COUNT ( * ) AS col0 FROM tab0 WHERE - - 8 + col1 - + col2 IS NOT NULL
----
-3

query I rowsort
SELECT ALL col0 - + + col1 AS col1 FROM tab2
----
-13
-5
8

query I rowsort
SELECT DISTINCT col1 - - 18 FROM tab2
----
69
85
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col2, col2 * col2 col2 FROM tab0 AS cor0
----
1
9801
21
100
81
2209

query II rowsort
SELECT DISTINCT col0 AS col1, 31 + col1 FROM tab0 AS cor0
----
15
112
87
52
97
32

query I rowsort
SELECT 79 * - - 6 FROM tab0
----
474
474
474

query I rowsort
SELECT + + 11 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT DISTINCT COUNT( * ) * COUNT( - - 39 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7872
SELECT DISTINCT COUNT ( * ) * COUNT ( - - 39 ) FROM tab0
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-7873
SELECT - - col0 DIV - col1 col1, - 13 FROM tab0 AS cor0
----
-4
-13
-97
-13
0
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7873
SELECT - - col0 / - col1 col1, - 13 FROM tab0 AS cor0
----
-4
-13
-97
-13
0
-13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7874
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 ) * - - CAST( 34 AS SIGNED ) + 33 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7874
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 ) * - - CAST ( 34 AS INTEGER ) + 33 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT ALL - + MIN( ALL ( - 61 ) ) FROM tab0 cor0
----
61

skipif mysql # not compatible
query I rowsort label-7875
SELECT ALL - + MIN ( ALL ( - 61 ) ) FROM tab0 cor0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7876
SELECT CAST( - 34 AS SIGNED ) FROM tab0 AS cor0
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-7876
SELECT CAST ( - 34 AS INTEGER ) FROM tab0 AS cor0
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT + + SUM( ALL + + col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-7877
SELECT + + SUM ( ALL + + col1 ) AS col2 FROM tab0 AS cor0
----
103

query I rowsort
SELECT col1 * - 58 FROM tab0
----
-1218
-4698
-58

query I rowsort
SELECT DISTINCT - ( 96 ) FROM tab0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7880
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7880
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + col0 - 35 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-20
52
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 col2 FROM tab2 WHERE NOT - col2 IS NULL
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT DISTINCT - COUNT( * ) * + - 51 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-7883
SELECT DISTINCT - COUNT ( * ) * + - 51 FROM tab1
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT COUNT( * ) * COUNT( + + ( + col1 ) ) * SUM( 68 ) FROM tab0
----
1836

skipif mysql # not compatible
query I rowsort label-7884
SELECT COUNT ( * ) * COUNT ( + + ( + col1 ) ) * SUM ( 68 ) FROM tab0
----
1836

query II rowsort
SELECT DISTINCT - col1 * - col2 - - col0, col1 FROM tab1 AS cor0
----
1395
14
3287
47
380
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7886
SELECT ALL COUNT( * ) + - + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL COUNT ( * ) + - + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7887
SELECT ALL + COUNT( * ) - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7887
SELECT ALL + COUNT ( * ) - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 * 44 FROM tab2 AS cor0
----
-2024
-2816
-3300

query I rowsort
SELECT - 81 * - - 61 FROM tab0 cor0
----
-4941
-4941
-4941

query I rowsort
SELECT DISTINCT - col1 * 55 AS col0 FROM tab2 AS cor0
----
-2805
-3685
-4235

query I rowsort
SELECT - col0 * 69 AS col2 FROM tab2 AS cor0
----
-3174
-4416
-5175

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT + COUNT( * ) - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7892
SELECT + COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT DISTINCT COUNT( * ) * + 66 col0 FROM tab0
----
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7893
SELECT DISTINCT COUNT ( * ) * + 66 col0 FROM tab0
----
198

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND col1 * + - 0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col2 <> NULL
----

query I rowsort
SELECT ALL - - 2 AS col0 FROM tab1 AS cor0
----
2
2
2

query II rowsort
SELECT ALL col0, col1 AS col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7898
SELECT DISTINCT + CAST( + col0 AS SIGNED ) FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7898
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) FROM tab0 cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT - - COUNT( * ) col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7899
SELECT - - COUNT ( * ) col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT ( + COUNT( * ) ) col0 FROM tab2 AS cor0 WHERE NOT col2 = - 83
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7900
SELECT ( + COUNT ( * ) ) col0 FROM tab2 AS cor0 WHERE NOT col2 = - 83
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7901
SELECT + 80 / - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7901
SELECT + 80 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + - col2 AS col2, col2 AS col0 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # DIV for integer division: 
query II rowsort label-7903
SELECT DISTINCT - 88 AS col2, 93 DIV - - 17 AS col2 FROM tab0 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
-88
5

skipif mysql # not compatible
query II rowsort label-7903
SELECT DISTINCT - 88 AS col2, 93 / - - 17 AS col2 FROM tab0 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
-88
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 19 * + col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( - 24 * 13 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT ALL COUNT( * ) + 59 + MIN( 87 ) * + ( - 39 ) col0 FROM tab1
----
-3331

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7906
SELECT ALL COUNT ( * ) + 59 + MIN ( 87 ) * + ( - 39 ) col0 FROM tab1
----
-3331

query I rowsort
SELECT col2 + - - col0 FROM tab0
----
196
62
97

query I rowsort
SELECT col0 + + 5 AS col2 FROM tab2
----
51
69
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7909
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + col0 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7909
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + col0 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT - 26 + col0 + 92 AS col1 FROM tab0 AS cor0
----
153
163
81

query I rowsort
SELECT DISTINCT + col2 - 57 AS col0 FROM tab2
----
-17
-34
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * col1 - - - col1 NOT BETWEEN NULL AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7913
SELECT DISTINCT 32 DIV col2 - + + col0 + + + 2 + + - col1 * + 45 AS col0 FROM tab2 AS cor0
----
-2338
-3088
-3527

skipif mysql # not compatible
query I rowsort label-7913
SELECT DISTINCT 32 / col2 - + + col0 + + + 2 + + - col1 * + 45 AS col0 FROM tab2 AS cor0
----
-2338
-3088
-3527

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 <> + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 - - - col1 AS col0 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT ALL - MIN( + - col1 ) * + 37 AS col0 FROM tab0 AS cor0
----
2997

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL - MIN ( + - col1 ) * + 37 AS col0 FROM tab0 AS cor0
----
2997

onlyif mysql # DIV for integer division: 
query I rowsort label-7917
SELECT DISTINCT col2 DIV + col0 col0 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7917
SELECT DISTINCT col2 / + col0 col0 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7918
SELECT DISTINCT COUNT( * ) * - - CAST( NULL AS SIGNED ) / - 69 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7918
SELECT DISTINCT COUNT ( * ) * - - CAST ( NULL AS INTEGER ) / - 69 AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL col2 * col1 * col2 FROM tab2 cor0
----
123200
225388
26979

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( + 35 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT - MAX( ALL - col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-7921
SELECT - MAX ( ALL - col1 ) FROM tab2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7922
SELECT + col0 DIV + 2 AS col1 FROM tab0
----
43
48
7

skipif mysql # not compatible
query I rowsort label-7922
SELECT + col0 / + 2 AS col1 FROM tab0
----
43
48
7

query II rowsort
SELECT ALL col0, - 90 FROM tab0
----
15
-90
87
-90
97
-90

query I rowsort
SELECT DISTINCT + ( col2 ) * - + col0 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 19 * - 91 NOT BETWEEN + 48 AND + - 60
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7926
SELECT DISTINCT + 15, COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
15
9

skipif mysql # not compatible
query II rowsort label-7926
SELECT DISTINCT + 15, COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
15
9

query I rowsort
SELECT ALL - - col2 + + col2 + ( - 64 ) * + col2 FROM tab1 AS cor0 WHERE NOT NULL > + col2 + + - col1 + - col1
----

query I rowsort
SELECT DISTINCT + 33 AS col1 FROM tab1 cor0
----
33

query I rowsort
SELECT - col1 + + - col2 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7930
SELECT CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7930
SELECT CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT - COUNT( * ) + + + 43 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-7931
SELECT - COUNT ( * ) + + + 43 FROM tab2 AS cor0
----
40

query I rowsort
SELECT DISTINCT - 87 * - col2 + + col1 AS col2 FROM tab2 AS cor0
----
2052
3557
5113

query I rowsort
SELECT DISTINCT + ( + 72 ) + - - col2 + + col0 + - col1 * + + col0 + - 92 - 15 FROM tab1 AS cor0
----
-316
-4153
-602

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7934
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) - - CAST( NULL AS SIGNED ) BETWEEN + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7934
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) - - CAST ( NULL AS INTEGER ) BETWEEN + col2 AND NULL
----

query I rowsort
SELECT - col2 AS col0 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7936
SELECT ALL * FROM tab1 WHERE + CAST( col0 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7936
SELECT ALL * FROM tab1 WHERE + CAST ( col0 AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT ALL + COUNT( * ) + - 52 col0 FROM tab0
----
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7937
SELECT ALL + COUNT ( * ) + - 52 col0 FROM tab0
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-7938
SELECT - COUNT( DISTINCT - ( + 12 ) ) AS col0, 14 AS col0 FROM tab0
----
-1
14

skipif mysql # not compatible
query II rowsort label-7938
SELECT - COUNT ( DISTINCT - ( + 12 ) ) AS col0, 14 AS col0 FROM tab0
----
-1
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - - col1 col1 FROM tab2
----
117
125
74

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 81 >= - ( + - ( - col2 ) ) + - 24 / - col1
----
85
5
59
91
47
68

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 21 < NULL
----

query I rowsort
SELECT ALL ( - - 76 ) FROM tab2 AS cor0
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT + 99 + - COUNT( * ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7943
SELECT + 99 + - COUNT ( * ) FROM tab0 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 col0, - col1 * + 85 FROM tab0 cor0
----
-15
-6885
-87
-1785
-97
-85

query I rowsort
SELECT ALL col2 * - col0 + col1 + + col1 FROM tab2 AS cor0
----
-2406
-4216
-956

query I rowsort
SELECT - 85 * 10 AS col0 FROM tab1
----
-850
-850
-850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7947
SELECT ALL COUNT( col2 ) DIV - 32 FROM tab1 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL COUNT ( col2 ) / - 32 FROM tab1 WHERE NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT MAX( DISTINCT 68 ) AS col0 FROM tab0 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7948
SELECT MAX ( DISTINCT 68 ) AS col0 FROM tab0 WHERE NULL <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT COUNT( * ) FROM tab1 WHERE NOT + col0 < ( 47 + col1 )
----
1

skipif mysql # not compatible
query I rowsort label-7949
SELECT COUNT ( * ) FROM tab1 WHERE NOT + col0 < ( 47 + col1 )
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 >= col1
----
15
81
47

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - 19 * col1 AS col1 FROM tab0
----
-1539
-19
-399

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT - col0 < col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7954
SELECT CAST( + 53 AS SIGNED ) AS col2 FROM tab0
----
53
53
53

skipif mysql # not compatible
query I rowsort label-7954
SELECT CAST ( + 53 AS INTEGER ) AS col2 FROM tab0
----
53
53
53

onlyif mysql # DIV for integer division: 
query I rowsort label-7955
SELECT ALL - col1 DIV 99 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7955
SELECT ALL - col1 / 99 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT 64 NOT IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) <> - col1
----

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT - 58 IS NULL
----
15
87
97

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT ( NULL ) > ( - 48 )
----

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7961
SELECT ALL 67 DIV 32 FROM tab0 WHERE NOT ( - 59 ) IS NULL
----
2
2
2

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL 67 / 32 FROM tab0 WHERE NOT ( - 59 ) IS NULL
----
2
2
2

query I rowsort
SELECT + 92 * - col0 FROM tab0 WHERE col0 NOT IN ( - col1 / + 57 )
----
-1380
-8004
-8924

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT DISTINCT COUNT( * ) + - 59 col1 FROM tab0
----
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7963
SELECT DISTINCT COUNT ( * ) + - 59 col1 FROM tab0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT ALL ( - MAX( col1 ) ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL ( - MAX ( col1 ) ) AS col2 FROM tab1
----
-47

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE col2 <= col0 + col0 * 98
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 WHERE + ( 69 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 WHERE col2 >= NULL
----

query I rowsort
SELECT - ( + col2 ) + 62 FROM tab0
----
-37
15
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7969
SELECT ALL + CAST( NULL AS SIGNED ) + COUNT( * ) * - 9 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL + CAST ( NULL AS INTEGER ) + COUNT ( * ) * - 9 AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7970
SELECT ALL col1 DIV + col2 FROM tab1 WHERE NOT col0 DIV col0 IN ( 69 * - 63 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7970
SELECT ALL col1 / + col2 FROM tab1 WHERE NOT col0 / col0 IN ( 69 * - 63 )
----
0
0
0

query I rowsort
SELECT ALL 30 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col1 + ( + col1 ) * col0 AS col0 FROM tab1
----
430
4324
728

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= col2 * + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT + MIN( col0 ) * + 16 AS col0 FROM tab2 AS cor0
----
736

skipif mysql # not compatible
query I rowsort label-7975
SELECT + MIN ( col0 ) * + 16 AS col0 FROM tab2 AS cor0
----
736

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 + + col0 * + 6 BETWEEN col2 AND NULL
----

query I rowsort
SELECT ALL ( col0 ) * col0 AS col1 FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7978
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) * col1 + 4 NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-7978
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) * col1 + 4 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 94 FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NULL IN ( 34 * 37 )
----

query I rowsort
SELECT DISTINCT 73 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col1 + col1 IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT DISTINCT + COUNT( * ) * - 43 FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-7983
SELECT DISTINCT + COUNT ( * ) * - 43 FROM tab1 AS cor0
----
-129

query I rowsort
SELECT - + 91 AS col0 FROM tab1 AS cor0
----
-91
-91
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 14 / - ( + col0 * - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT + - 75 + - COUNT( * ) * + SUM( ( col0 ) * col2 ) FROM tab2 AS cor0
----
-23979

skipif mysql # not compatible
query I rowsort label-7986
SELECT + - 75 + - COUNT ( * ) * + SUM ( ( col0 ) * col2 ) FROM tab2 AS cor0
----
-23979

onlyif mysql # DIV for integer division: 
query I rowsort label-7987
SELECT + 79 + - col1 DIV + 60 FROM tab0
----
78
79
79

skipif mysql # not compatible
query I rowsort label-7987
SELECT + 79 + - col1 / + 60 FROM tab0
----
78
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT + 46 + - COUNT( * ) + - COUNT( * ) FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-7988
SELECT + 46 + - COUNT ( * ) + - COUNT ( * ) FROM tab0
----
40

query I rowsort
SELECT ALL col0 + 51 FROM tab0
----
138
148
66

query I rowsort
SELECT ALL col1 * + col0 AS col0 FROM tab0 WHERE col1 * + col2 + 7 IS NULL
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE NOT ( col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7992
SELECT DISTINCT + col0 + + CAST( NULL AS SIGNED ) + col2 * + col0 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7992
SELECT DISTINCT + col0 + + CAST ( NULL AS INTEGER ) + col2 * + col0 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL col0 FROM tab2 WHERE - 73 NOT IN ( - ( col0 ) )
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7994
SELECT 90 * - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7994
SELECT 90 * - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT col1 FROM tab0 WHERE ( col2 ) IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 col2 FROM tab1 WHERE NOT - ( + 92 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7997
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) >= + col0 + col1 * 99
----

skipif mysql # not compatible
query III rowsort label-7997
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) >= + col0 + col1 * 99
----

query I rowsort
SELECT DISTINCT + - 96 + + 88 * col1 AS col0 FROM tab0 AS cor0
----
-8
1752
7032

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE 1 / + 51 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT + ( + 33 ) - - COUNT( * ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-8000
SELECT + ( + 33 ) - - COUNT ( * ) FROM tab0
----
36

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - 38 ) FROM tab2
----
38

query I rowsort
SELECT DISTINCT 5 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8004
SELECT CAST( NULL AS DECIMAL ) + 25 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE - CAST( NULL AS SIGNED ) = - 1
----

skipif mysql # not compatible
query I rowsort label-8004
SELECT CAST ( NULL AS REAL ) + 25 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE - CAST ( NULL AS INTEGER ) = - 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT DISTINCT 85 * ( - + MAX( - 24 ) ) * + 34 AS col0 FROM tab2
----
69360

skipif mysql # not compatible
query I rowsort label-8005
SELECT DISTINCT 85 * ( - + MAX ( - 24 ) ) * + 34 AS col0 FROM tab2
----
69360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( col1 ) col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + + col2 * + 59 FROM tab1 cor0
----
3481
4012
5664

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> ( + 36 * + - col2 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT 86 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8009
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 86 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT col0 + - 43 BETWEEN - 8 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 39 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT DISTINCT MAX( - col2 ) col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8012
SELECT DISTINCT MAX ( - col2 ) col0 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 * 80 + - 46 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8013
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 * 80 + - 46 IS NULL
----
3

query I rowsort
SELECT + ( + - col1 ) - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10
-28
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8015
SELECT ALL + MIN( + ( + - ( CAST( NULL AS SIGNED ) ) ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8015
SELECT ALL + MIN ( + ( + - ( CAST ( NULL AS INTEGER ) ) ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
4
4
4

query I rowsort
SELECT - - col0 * - - ( + col1 ) + col2 FROM tab0 AS cor0
----
1262
1837
196

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT DISTINCT - SUM( + ( col0 ) ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT - SUM ( + ( col0 ) ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT - 41 - 15 * + 0 FROM tab2 WHERE NOT NULL <= ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col2 - - 55 + 63 * + col2 >= ( 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT + COUNT( * ) FROM tab1 WHERE NOT ( + + col1 ) < - col2
----
3

skipif mysql # not compatible
query I rowsort label-8021
SELECT + COUNT ( * ) FROM tab1 WHERE NOT ( + + col1 ) < - col2
----
3

query I rowsort
SELECT DISTINCT + col0 * + + col0 FROM tab0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8023
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 / + CAST( NULL AS SIGNED ) + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8023
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 / + CAST ( NULL AS INTEGER ) + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 / - + 84 ) IN ( col1 + 24 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 - + ( - col0 ) IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8026
SELECT + ( - ( - col1 ) ) FROM tab2 WHERE NOT - + 88 <> + ( 55 ) * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8026
SELECT + ( - ( - col1 ) ) FROM tab2 WHERE NOT - + 88 <> + ( 55 ) * + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 11 NOT BETWEEN NULL AND col0 * ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8028
SELECT DISTINCT + 75 DIV + + col2 FROM tab2
----
1
3

skipif mysql # not compatible
query I rowsort label-8028
SELECT DISTINCT + 75 / + + col2 FROM tab2
----
1
3

query II rowsort
SELECT ALL col1, - 61 AS col2 FROM tab0
----
1
-61
21
-61
81
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8030
SELECT ALL - CAST( + 59 AS SIGNED ) AS col0 FROM tab1
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL - CAST ( + 59 AS INTEGER ) AS col0 FROM tab1
----
-59
-59
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 * - - 42 * col2 * + + col1 col1 FROM tab1 AS cor0
----
3655050
429005472
75866112

onlyif mysql # aggregate syntax: 
query II rowsort label-8032
SELECT 24 + - 86 + COUNT( * ) AS col1, + ( - 66 ) FROM tab1 AS cor0
----
-59
-66

skipif mysql # not compatible
query II rowsort label-8032
SELECT 24 + - 86 + COUNT ( * ) AS col1, + ( - 66 ) FROM tab1 AS cor0
----
-59
-66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col2 + + + col1 + + col2 / + col1 + + 93 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT DISTINCT + + MIN( ALL + - col1 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT + + MIN ( ALL + - col1 ) AS col2 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8035
SELECT DISTINCT - CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) / - col0 AS col2, + + col2 AS col2 FROM tab2 AS cor0
----
9 values hashing to 9fa2025c83cf24515980540baa0650e1

skipif mysql # not compatible
query III rowsort label-8035
SELECT DISTINCT - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) / - col0 AS col2, + + col2 AS col2 FROM tab2 AS cor0
----
9 values hashing to 9fa2025c83cf24515980540baa0650e1

query I rowsort
SELECT ALL + col0 + 96 FROM tab1 cor0
----
147
181
187

query I rowsort
SELECT - - 30 AS col0 FROM tab1 AS cor0
----
30
30
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8038
SELECT ALL ( - MAX( DISTINCT - ( col0 ) ) ) / - CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE ( + 1 ) NOT IN ( + CAST( - - col1 AS SIGNED ) * - col2 + + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL ( - MAX ( DISTINCT - ( col0 ) ) ) / - CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE ( + 1 ) NOT IN ( + CAST ( - - col1 AS INTEGER ) * - col2 + + col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8039
SELECT ALL + + CAST( NULL AS SIGNED ) + + ( - - col2 ) * - 48 AS col0 FROM tab1 cor0 WHERE NOT 43 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL + + CAST ( NULL AS INTEGER ) + + ( - - col2 ) * - 48 AS col0 FROM tab1 cor0 WHERE NOT 43 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8040
SELECT + 7, + COUNT( * ) DIV + 69 AS col1 FROM tab1 AS cor0
----
7
0

skipif mysql # not compatible
query II rowsort label-8040
SELECT + 7, + COUNT ( * ) / + 69 AS col1 FROM tab1 AS cor0
----
7
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8041
SELECT + col0 DIV col1 * - 80 FROM tab0 cor0
----
-320
-7760
0

skipif mysql # not compatible
query I rowsort label-8041
SELECT + col0 / col1 * - 80 FROM tab0 cor0
----
-320
-7760
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8042
SELECT ALL - 67 DIV 73 + - col2 + - + col1 * - + col2 + ( col0 ) * + col1 + 32 * + col0 AS col1 FROM tab0 AS cor0
----
3201
4811
5455

skipif mysql # not compatible
query I rowsort label-8042
SELECT ALL - 67 / 73 + - col2 + - + col1 * - + col2 + ( col0 ) * + col1 + 32 * + col0 AS col1 FROM tab0 AS cor0
----
3201
4811
5455

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT + MIN( DISTINCT - - 76 ) FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-8043
SELECT + MIN ( DISTINCT - - 76 ) FROM tab1
----
76

query I rowsort
SELECT DISTINCT + col0 * col2 + + - col1 + col2 + - col0 AS col2 FROM tab1
----
4927
4984
6118

query III rowsort
SELECT * FROM tab2 WHERE + col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( ( NOT ( NULL ) IS NOT NULL ) ) )
----

query I rowsort
SELECT + 44 - - - col2 FROM tab2
----
-14
21
4

query II rowsort
SELECT ALL + col0 AS col2, col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT + - col1 + - col1 AS col0 FROM tab2 AS cor0
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT DISTINCT MAX( 7 ) AS col0 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-8050
SELECT DISTINCT MAX ( 7 ) AS col0 FROM tab2 AS cor0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8051
SELECT ALL col2 * + col1 + - col1 * col1 * 2 / ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8051
SELECT ALL col2 * + col1 + - col1 * col1 * 2 / ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 * 50 FROM tab0 WHERE NOT NULL NOT BETWEEN + col2 AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT - MAX( + col2 ) col2 FROM tab1 cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8054
SELECT - MAX ( + col2 ) col2 FROM tab1 cor0
----
-96

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT 0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL AVG ( ALL + 64 ) FROM tab2 AS cor0 WHERE + col0 + + + ( 55 ) IN ( + col1 )
----
NULL

query I rowsort
SELECT DISTINCT - ( - - 7 ) FROM tab0 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT - - ( - + col0 ) * + col0 AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8060
SELECT - CAST( - - SUM( ALL + - col0 ) AS DECIMAL ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col0 * + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8060
SELECT - CAST ( - - SUM ( ALL + - col0 ) AS REAL ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col0 * + col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8061
SELECT + col2 AS col2, + col0 DIV col2 * col1 FROM tab1
----
59
5
68
47
96
0

skipif mysql # not compatible
query II rowsort label-8061
SELECT + col2 AS col2, + col0 / col2 * col1 FROM tab1
----
59
5
68
47
96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT DISTINCT - ( - 12 ) * - COUNT( * ) * + 27 FROM tab2
----
-972

skipif mysql # not compatible
query I rowsort label-8062
SELECT DISTINCT - ( - 12 ) * - COUNT ( * ) * + 27 FROM tab2
----
-972

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8063
SELECT SUM( DISTINCT + 0 ) DIV + - 80 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8063
SELECT SUM ( DISTINCT + 0 ) / + - 80 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2, col2 * - col0 col0 FROM tab1
----
59
-5015
68
-6188
96
-4896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8065
SELECT col1 * - 54 * + CAST( + 94 AS SIGNED ) AS col2 FROM tab2 cor0
----
-258876
-340092
-390852

skipif mysql # not compatible
query I rowsort label-8065
SELECT col1 * - 54 * + CAST ( + 94 AS INTEGER ) AS col2 FROM tab2 cor0
----
-258876
-340092
-390852

query I rowsort
SELECT ALL - 48 * - + ( + + col1 ) * + col0 + 68 * - - ( - + 84 ) AS col0 FROM tab1 AS cor0
----
14688
199584
28560

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + + - ( col1 ) + + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8068
SELECT DISTINCT + 16 DIV 24 + COUNT( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 10 * - 7 * + ( + + col1 ) + - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8068
SELECT DISTINCT + 16 / 24 + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 10 * - 7 * + ( + + col1 ) + - col2 AND NULL
----
0

query II rowsort
SELECT ALL - col2 AS col2, + col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( + 5, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT - COUNT( * ) + - + COUNT( * ) * + ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8071
SELECT - COUNT ( * ) + - + COUNT ( * ) * + ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT + col0 + 71 AS col0 FROM tab2
----
117
135
146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8073
SELECT DISTINCT + 65 DIV - COUNT( ALL - - col1 ) AS col0 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-8073
SELECT DISTINCT + 65 / - COUNT ( ALL - - col1 ) AS col0 FROM tab1
----
-21

query I rowsort
SELECT - 97 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

onlyif mysql # aggregate syntax: 
query II rowsort label-8075
SELECT COUNT( ALL ( 79 ) ), COUNT( * ) * - - 64 AS col0 FROM tab1 AS cor0 WHERE NULL <> NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-8075
SELECT COUNT ( ALL ( 79 ) ), COUNT ( * ) * - - 64 AS col0 FROM tab1 AS cor0 WHERE NULL <> NULL
----
0
0

query I rowsort
SELECT + col0 + 32 + - col2 AS col0 FROM tab1 AS cor0
----
-13
55
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 = - 43 * - col1 - - + col1 * col0 * + 54 - - col1 * + + col1
----

query II rowsort
SELECT DISTINCT + col1 + - ( col2 ) AS col0, col0 * + - 33 AS col2 FROM tab0
----
-98
-3201
11
-2871
34
-495

query I rowsort
SELECT col1 + - 0 AS col1 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL + ( ( + 79 ) ) + 22 * col2 FROM tab0
----
1113
2257
299

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 col2 FROM tab1 WHERE col2 * + 14 + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + + 28 FROM tab2
----
-23
-39
-49

query I rowsort
SELECT ALL col0 * - 85 AS col1 FROM tab0
----
-1275
-7395
-8245

onlyif mysql # DIV for integer division: 
query I rowsort label-8084
SELECT DISTINCT col0 * + + col1 - - - col0 DIV + + 12 + 15 + col0 FROM tab0
----
1244
1922
201

skipif mysql # not compatible
query I rowsort label-8084
SELECT DISTINCT col0 * + + col1 - - - col0 / + + 12 + 15 + col0 FROM tab0
----
1244
1922
201

query I rowsort
SELECT ALL + 31 * + col0 + - + col1 AS col0 FROM tab1 AS cor0
----
1567
2630
2774

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0 + - + ( - + 50 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT DISTINCT MIN( DISTINCT + - col1 ) * - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT MIN ( DISTINCT + - col1 ) * - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8088
SELECT + 18 DIV + 85 * - CAST( SUM( - 50 ) AS SIGNED ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8088
SELECT + 18 / + 85 * - CAST ( SUM ( - 50 ) AS INTEGER ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 18 * col2 AS col2 FROM tab0
----
-1782
-180
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT DISTINCT - SUM( DISTINCT 23 ) col2 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8090
SELECT DISTINCT - SUM ( DISTINCT 23 ) col2 FROM tab2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8091
SELECT + col1 / - + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8091
SELECT + col1 / - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + ( - col0 ) + - 32, col2 FROM tab1 WHERE + + 98 > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8093
SELECT DISTINCT - col1, + col1 DIV + 2 AS col0 FROM tab0 AS cor0
----
-1
0
-21
10
-81
40

skipif mysql # not compatible
query II rowsort label-8093
SELECT DISTINCT - col1, + col1 / + 2 AS col0 FROM tab0 AS cor0
----
-1
0
-21
10
-81
40

query II rowsort
SELECT col2 AS col0, + col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8095
SELECT DISTINCT - - col2 + - 16 AS col0 FROM tab2 AS cor0 WHERE - CAST( ( - - col0 ) AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8095
SELECT DISTINCT - - col2 + - 16 AS col0 FROM tab2 AS cor0 WHERE - CAST ( ( - - col0 ) AS REAL ) IS NULL
----

query I rowsort
SELECT - + col0 * + col1 * - col2 * 50 FROM tab2 cor0
----
14572500
2697900
9856000

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT MAX( DISTINCT - + 76 ) FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-8097
SELECT MAX ( DISTINCT - + 76 ) FROM tab2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT MIN( DISTINCT + col0 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8098
SELECT MIN ( DISTINCT + col0 ) AS col1 FROM tab2
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab0 WHERE NOT + col1 + - - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 83 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 0 * + 80 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL 70 * - col0 AS col1 FROM tab2 AS cor0
----
-3220
-4480
-5250

query I rowsort
SELECT + col1 * + 71 AS col1 FROM tab0 cor0
----
1491
5751
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-8104
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
3

query I rowsort
SELECT ( - - col1 ) * - - 42 AS col1 FROM tab0 AS cor0
----
3402
42
882

onlyif mysql # DIV for integer division: 
query I rowsort label-8106
SELECT - col2 DIV + + col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-8106
SELECT - col2 / + + col0 FROM tab0 AS cor0
----
-1
-3
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8107
SELECT DISTINCT + 8 * - col1 AS col1, + 59 DIV - - col0 AS col1 FROM tab2
----
-408
1
-536
0
-616
0

skipif mysql # not compatible
query II rowsort label-8107
SELECT DISTINCT + 8 * - col1 AS col1, + 59 / - - col0 AS col1 FROM tab2
----
-408
1
-536
0
-616
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT ALL 17 + - + COUNT( * ) FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL 17 + - + COUNT ( * ) FROM tab0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8110
SELECT DISTINCT - COUNT( + CAST( NULL AS SIGNED ) ) - + 29 col0 FROM tab2
----
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8110
SELECT DISTINCT - COUNT ( + CAST ( NULL AS INTEGER ) ) - + 29 col0 FROM tab2
----
-29

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( 25, - 13, + - col2 / + col2, - - 59 + - - 23 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8112
SELECT - col2 DIV + col1 AS col2, 27 AS col2 FROM tab0 AS cor0
----
-99
27
0
27
0
27

skipif mysql # not compatible
query II rowsort label-8112
SELECT - col2 / + col1 AS col2, 27 AS col2 FROM tab0 AS cor0
----
-99
27
0
27
0
27

query I rowsort
SELECT DISTINCT + 4 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8114
SELECT - col0 DIV - + col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8114
SELECT - col0 / - + col0 FROM tab0
----
1
1
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 >= - 51
----
75
67
58

query I rowsort
SELECT - 37 * 19 AS col0 FROM tab2 AS cor0
----
-703
-703
-703

query I rowsort
SELECT ALL - 31 AS col0 FROM tab0 AS cor0 WHERE 18 <> + col1
----
-31
-31
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8118
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + 52 + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8118
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + 52 + col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL - col1 + + - col0 * + - col1 AS col0 FROM tab0
----
1134
1806
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8120
SELECT - + CAST( NULL AS SIGNED ) + - 5 FROM tab0 WHERE NOT + col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8120
SELECT - + CAST ( NULL AS INTEGER ) + - 5 FROM tab0 WHERE NOT + col1 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT 69 * - - 62 * 51 * - + col0 FROM tab1
----
-11127078
-18545130
-19854198

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8124
SELECT - ( + - col1 ) + CAST( + ( + - col2 ) AS SIGNED ) AS col2 FROM tab0
----
-98
11
34

skipif mysql # not compatible
query I rowsort label-8124
SELECT - ( + - col1 ) + CAST ( + ( + - col2 ) AS INTEGER ) AS col2 FROM tab0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8125
SELECT + - col1 + - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8125
SELECT + - col1 + - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 75 + col0 FROM tab2 AS cor0
----
-11
-29
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 49 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8128
SELECT + - CAST( NULL AS SIGNED ) AS col2, col0 AS col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-8128
SELECT + - CAST ( NULL AS INTEGER ) AS col2, col0 AS col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT ALL col1 + + - 76 AS col2 FROM tab1
----
-29
-62
-71

query I rowsort
SELECT DISTINCT - - 47 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
47

query I rowsort
SELECT DISTINCT + 60 * - - ( - + 54 ) FROM tab1 AS cor0
----
-3240

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT 4 - + COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8132
SELECT 4 - + COUNT ( * ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT - + col0 * + + col1 FROM tab1 cor0 WHERE NOT NULL <= - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 79 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1 + + col1, col1 FROM tab0 cor0
----
162
81
2
1
42
21

query I rowsort
SELECT col2 + - col2 - - col1 FROM tab2
----
51
67
77

query III rowsort
SELECT * FROM tab2 WHERE col0 / - ( + - 7 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT 67 * + COUNT( * ) FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-8138
SELECT 67 * + COUNT ( * ) FROM tab2
----
201

onlyif mysql # aggregate syntax: 
query II rowsort label-8139
SELECT - 1 AS col2, COUNT( * ) FROM tab1
----
-1
3

skipif mysql # not compatible
query II rowsort label-8139
SELECT - 1 AS col2, COUNT ( * ) FROM tab1
----
-1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8140
SELECT CAST( NULL AS SIGNED ) col1 FROM tab2 WHERE NOT - col1 NOT BETWEEN - - 42 AND ( + + col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8140
SELECT CAST ( NULL AS INTEGER ) col1 FROM tab2 WHERE NOT - col1 NOT BETWEEN - - 42 AND ( + + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 32 IS NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - col1 + - 13 ) >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8143
SELECT DISTINCT + 26 DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-8143
SELECT DISTINCT + 26 / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-8

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8145
SELECT - CAST( AVG ( - - col2 ) AS SIGNED ) FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-8145
SELECT - CAST ( AVG ( - - col2 ) AS INTEGER ) FROM tab1
----
-74

query I rowsort
SELECT ALL - col0 * + + 76 FROM tab1
----
-3876
-6460
-6916

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8147
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 IN ( - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8147
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 IN ( - - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + - 67 ) NOT BETWEEN - - col0 + 40 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT ALL 44 * + MAX( ALL col2 ) + - 75 + + ( + 0 ) col2 FROM tab2 cor0
----
2477

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8149
SELECT ALL 44 * + MAX ( ALL col2 ) + - 75 + + ( + 0 ) col2 FROM tab2 cor0
----
2477

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT DISTINCT SUM( col2 ) col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8150
SELECT DISTINCT SUM ( col2 ) col2 FROM tab1 AS cor0
----
223

query I rowsort
SELECT - ( - + 45 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
45
45
45

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( 58, + col2 * + + col1 + - col0 - + - 23, + col2 * col2, + - 84 )
----

query I rowsort
SELECT DISTINCT col0 * col0 + + col1 AS col1 FROM tab0 AS cor0
----
306
7590
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 * col0 col0 FROM tab1 AS cor0
----
3723
6205
6643

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT - + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8155
SELECT - + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT ALL - col0 * col0 + col2 * col1 AS col1 FROM tab2
----
-1016
-1739
-943

query II rowsort
SELECT ALL 27 * - + 33, - col0 FROM tab1 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT + COUNT( DISTINCT + 28 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8158
SELECT + COUNT ( DISTINCT + 28 ) FROM tab1
----
1

query II rowsort
SELECT ALL + 7 * - col2 * col1 AS col0, + 91 FROM tab0
----
-1470
91
-26649
91
-693
91

query I rowsort
SELECT ALL + 58 * - col2 AS col2 FROM tab2
----
-1334
-2320
-3364

query I rowsort
SELECT - - col2 + 36 * - 84 AS col2 FROM tab0 AS cor0
----
-2925
-2977
-3014

query I rowsort
SELECT 32 * - + col1 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8163
SELECT - - 11 * COUNT( * ), - 44 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
99
-44

skipif mysql # not compatible
query II rowsort label-8163
SELECT - - 11 * COUNT ( * ), - 44 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
99
-44

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT DISTINCT COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8165
SELECT DISTINCT COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
0

query II rowsort
SELECT + col1 - + col0 + - ( - col1 ) + + col2 * + col0, col1 AS col1 FROM tab1 AS cor0
----
4873
14
4940
5
6191
47

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col2 + + col2 <> NULL
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NOT col0 <> - - 44 * - 61
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8169
SELECT - COUNT( * ), - COUNT( ALL - 86 ) AS col2 FROM tab1 WHERE NOT NULL = col2 + - col1 / 69 + + + col0
----
0
0

skipif mysql # not compatible
query II rowsort label-8169
SELECT - COUNT ( * ), - COUNT ( ALL - 86 ) AS col2 FROM tab1 WHERE NOT NULL = col2 + - col1 / 69 + + + col0
----
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8170
SELECT MIN( ALL + CAST( + - col0 AS SIGNED ) ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8170
SELECT MIN ( ALL + CAST ( + - col0 AS INTEGER ) ) FROM tab1
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + ( + + col1 ) NOT BETWEEN NULL AND + 58
----

query II rowsort
SELECT ALL + 9 * + + col0 AS col2, col2 AS col2 FROM tab2 AS cor0
----
414
23
576
40
675
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT ALL - 84 * - + MAX( + col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
8064

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL - 84 * - + MAX ( + col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
8064

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT - 21 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-8175
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT - 21 IS NOT NULL )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 69 col0, - col0 * + + col2 AS col0 FROM tab2
----
69
-1058
69
-2560
69
-4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8177
SELECT ALL - CAST( MAX( - col1 ) AS SIGNED ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL - CAST ( MAX ( - col1 ) AS INTEGER ) FROM tab2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8178
SELECT - CAST( NULL AS SIGNED ) * + - 60 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8178
SELECT - CAST ( NULL AS INTEGER ) * + - 60 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8179
SELECT DISTINCT 3 * - col0 * + ( - CAST( NULL AS SIGNED ) ) / - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8179
SELECT DISTINCT 3 * - col0 * + ( - CAST ( NULL AS INTEGER ) ) / - col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 70 AS col0 FROM tab0 AS cor0
----
70

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8181
SELECT DISTINCT 36 AS col0, 12 + + + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0
----
36
NULL

skipif mysql # not compatible
query II rowsort label-8181
SELECT DISTINCT 36 AS col0, 12 + + + CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0
----
36
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT + + 84 + - + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( - 46 ) IS NOT NULL
----
84

skipif mysql # not compatible
query I rowsort label-8182
SELECT + + 84 + - + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( - 46 ) IS NOT NULL
----
84

query II rowsort
SELECT DISTINCT + col0 AS col1, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT ALL ( + col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT + col0 + - 83 + - + 47 * col1 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8185
SELECT ALL CAST( + - COUNT( ALL + 31 ) AS SIGNED ) AS col1, 59 + - 44 FROM tab2 cor0
----
-3
15

skipif mysql # not compatible
query II rowsort label-8185
SELECT ALL CAST ( + - COUNT ( ALL + 31 ) AS INTEGER ) AS col1, 59 + - 44 FROM tab2 cor0
----
-3
15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( col0, col2, + 82 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 82 = - col0
----

query I rowsort
SELECT + col2 + - + col0 FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT ALL + 80 + COUNT( * ) AS col2 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL + 80 + COUNT ( * ) AS col2 FROM tab0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT - 95 + - + COUNT( * ) * COUNT( 34 ) FROM tab1
----
-104

skipif mysql # not compatible
query I rowsort label-8190
SELECT - 95 + - + COUNT ( * ) * COUNT ( 34 ) FROM tab1
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8191
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + COUNT( ALL col1 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8191
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + COUNT ( ALL col1 ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col1 BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT ALL - COUNT( * ) + + + ( + COUNT( * ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL - COUNT ( * ) + + + ( + COUNT ( * ) ) FROM tab1
----
0

query II rowsort
SELECT + 23 * col1, col0 FROM tab2 AS cor0
----
1173
46
1541
75
1771
64

query I rowsort
SELECT ALL col0 * + col2 * ( + col0 ) AS col2 FROM tab2
----
163840
326250
48668

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8196
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8196
SELECT DISTINCT - CAST ( NULL AS REAL ) - - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 21 ) * 18 - 13 * col1 - - 31 * + 3 * + - col2 col1 FROM tab0 AS cor0
----
-1581
-5802
-9598

query II rowsort
SELECT DISTINCT + 17, - col0 + + + col0 AS col1 FROM tab0 AS cor0
----
17
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8199
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - ( - - col1 ) * - - 62 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8199
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - ( - - col1 ) * - - 62 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + 45 <= NULL
----

query II rowsort
SELECT DISTINCT - 0, - col0 * + 88 AS col0 FROM tab2
----
0
-4048
0
-5632
0
-6600

query I rowsort
SELECT - 0 * - 69 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8203
SELECT - col0, + CAST( NULL AS SIGNED ) - + 5 AS col0 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-8203
SELECT - col0, + CAST ( NULL AS INTEGER ) - + 5 AS col0 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8204
SELECT DISTINCT CAST( - + col1 AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT CAST ( - + col1 AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

query II rowsort
SELECT ALL + col1 AS col0, + ( + col2 ) * col1 FROM tab1 cor0
----
14
1344
47
3196
5
295

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT ALL - ( ( - COUNT( * ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL - ( ( - COUNT ( * ) ) ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - col2 ) col1 FROM tab0 cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 93 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8209
SELECT + AVG ( - CAST( NULL AS SIGNED ) ) * - 52 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8209
SELECT + AVG ( - CAST ( NULL AS INTEGER ) ) * - 52 AS col2 FROM tab2 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 NOT BETWEEN NULL AND - - 80 + + col1 + + col1
----

query I rowsort
SELECT ALL - 31 + + + col1 FROM tab0
----
-10
-30
50

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + - 26
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8213
SELECT DISTINCT - COUNT( * ) + - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8213
SELECT DISTINCT - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL 16 * - + col0 FROM tab1 cor0
----
-1360
-1456
-816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 * ( + col2 ) col2 FROM tab0 AS cor0
----
-3055
-6435
-650

query I rowsort
SELECT DISTINCT - - 76 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8217
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8217
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * col2 IS NULL
----

query I rowsort
SELECT ALL - col2 * + ( + col2 ) FROM tab2 WHERE NOT ( col1 * col1 > - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8219
SELECT + col2 * + + col2 DIV + col2 AS col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8219
SELECT + col2 * + + col2 / + col2 AS col1 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT ALL MIN( ALL - + ( - col2 ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL MIN ( ALL - + ( - col2 ) ) FROM tab2
----
23

query I rowsort
SELECT - ( - 56 ) * + col2 AS col0 FROM tab0
----
2632
5544
560

query I rowsort
SELECT + 5 AS col0 FROM tab1 cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT ALL + COUNT( * ) + + 74 + - + 36 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL + COUNT ( * ) + + 74 + - + 36 FROM tab2 AS cor0
----
41

query I rowsort
SELECT ALL - + 37 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 15 * - - 2 * col0 FROM tab1
----
-1530
-2550
-2730

query I rowsort
SELECT - - ( 91 ) * + col1 AS col1 FROM tab2 cor0
----
4641
6097
7007

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8228
SELECT + + col0 AS col0, - col2 AS col1 FROM tab0 cor0 WHERE CAST( - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-8228
SELECT + + col0 AS col0, - col2 AS col1 FROM tab0 cor0 WHERE CAST ( - col1 AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( - col2 ) * + + col0 ) >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 72 col0 FROM tab2
----
-14
-32
-49

query I rowsort
SELECT DISTINCT col0 * 86 + + col2 FROM tab1
----
4482
7369
7894

query I rowsort
SELECT ALL 50 - + - 47 AS col2 FROM tab0
----
97
97
97

query II rowsort
SELECT ( ( col0 ) ) * + 12 + - 76, col2 AS col2 FROM tab2
----
476
23
692
40
824
58

query I rowsort
SELECT 16 * + 50 + + col2 FROM tab1
----
859
868
896

query I rowsort
SELECT DISTINCT col2 * col1 - - col0 AS col2 FROM tab2
----
1219
3144
3961

query I rowsort
SELECT ALL - col2 * 10 * col1 + + 66 - - col2 AS col2 FROM tab1 AS cor0
----
-13278
-2825
-31826

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8237
SELECT DISTINCT - CAST( - 23 AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0
----
-2001
-2231
-345

skipif mysql # not compatible
query I rowsort label-8237
SELECT DISTINCT - CAST ( - 23 AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0
----
-2001
-2231
-345

query I rowsort
SELECT ALL - col1 * + col0 - ( - 49 ) FROM tab1 cor0
----
-376
-4228
-665

query I rowsort
SELECT DISTINCT ( col1 ) * + + col2 FROM tab0 cor0
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * - col2 + + 15 + - - 81 col1 FROM tab2 AS cor0
----
1154
2656
4446

query I rowsort
SELECT + col0 - - + 5 + + 21 FROM tab1 AS cor0
----
111
117
77

query I rowsort
SELECT - 55 - + col2 - + 49 AS col2 FROM tab2 AS cor0
----
-127
-144
-162

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8243
SELECT 96 / + + col0 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8243
SELECT 96 / + + col0 * + CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + 71 AS col0, 34 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 9eef9f9d0d44162c167327eeed7738b3

query III rowsort
SELECT * FROM tab1 WHERE NOT - 87 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT + COUNT( * ) FROM tab2 WHERE NOT ( NOT - col1 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8246
SELECT + COUNT ( * ) FROM tab2 WHERE NOT ( NOT - col1 IS NULL )
----
0

query I rowsort
SELECT DISTINCT col0 * - col1 * + col0 FROM tab0
----
-158949
-18225
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8248
SELECT DISTINCT - 96 / + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8248
SELECT DISTINCT - 96 / + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 * 57 FROM tab2 AS cor0
----
2907
3819
4389

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT MAX( ALL + - col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8250
SELECT MAX ( ALL + - col2 ) AS col1 FROM tab1 AS cor0
----
-59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 / - 24 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( - + col1 ) / + 25 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8252
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( - + col1 ) / + 25 > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8253
SELECT DISTINCT CAST( - 29 AS SIGNED ) * + col0 AS col2 FROM tab1 AS cor0
----
-1479
-2465
-2639

skipif mysql # not compatible
query I rowsort label-8253
SELECT DISTINCT CAST ( - 29 AS INTEGER ) * + col0 AS col2 FROM tab1 AS cor0
----
-1479
-2465
-2639

onlyif mysql # DIV for integer division: 
query I rowsort label-8254
SELECT DISTINCT - 73 DIV + + ( - col1 ) FROM tab0 AS cor0
----
0
3
73

skipif mysql # not compatible
query I rowsort label-8254
SELECT DISTINCT - 73 / + + ( - col1 ) FROM tab0 AS cor0
----
0
3
73

query I rowsort
SELECT ALL - 23 * + - 43 FROM tab0 AS cor0
----
989
989
989

query I rowsort
SELECT 80 * - col0 * + col0 AS col1 FROM tab2
----
-169280
-327680
-450000

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT ALL COUNT( * ) * 63 AS col1 FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL COUNT ( * ) * 63 AS col1 FROM tab1
----
189

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 - + - col0 * 52 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT + MIN( - col0 ) FROM tab1 AS cor0 WHERE NOT NULL = col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8259
SELECT + MIN ( - col0 ) FROM tab1 AS cor0 WHERE NOT NULL = col2
----
NULL

query I rowsort
SELECT col1 * col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8261
SELECT DISTINCT col0 DIV + - ( col1 ) FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-8261
SELECT DISTINCT col0 / + - ( col1 ) FROM tab0
----
-4
-97
0

query I rowsort
SELECT ALL + col1 * - + 8 AS col2 FROM tab2
----
-408
-536
-616

query I rowsort
SELECT ALL + ( - 32 ) * + + col2 + - + col2 AS col2 FROM tab1
----
-1947
-2244
-3168

query III rowsort
SELECT * FROM tab2 WHERE + + 12 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 / + col1 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8266
SELECT ALL + ( 47 ) DIV 64 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL + ( 47 ) / 64 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT - - COUNT( * ) * + 38 FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-8267
SELECT - - COUNT ( * ) * + 38 FROM tab2 AS cor0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT ALL SUM( ALL col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8268
SELECT ALL SUM ( ALL col1 ) FROM tab0 AS cor0
----
103

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8269
SELECT - col2 * col0 + - - col2 - - + CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8269
SELECT - col2 * col0 + - - col2 - - + CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8270
SELECT - + SUM( - CAST( + - col1 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8270
SELECT - + SUM ( - CAST ( + - col1 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT DISTINCT + SUM( DISTINCT - - col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8271
SELECT DISTINCT + SUM ( DISTINCT - - col1 ) FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT ALL COUNT( * ) + COUNT( * ) - + 91 FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL COUNT ( * ) + COUNT ( * ) - + 91 FROM tab0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8273
SELECT - CAST( NULL AS SIGNED ) + + + 49 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8273
SELECT - CAST ( NULL AS INTEGER ) + + + 49 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - - col2 + + - 60 AS col1 FROM tab0
----
-29
40
68

query I rowsort
SELECT + col0 + - 5 FROM tab1 AS cor0
----
46
80
86

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 BETWEEN + 71 - - 7 AND ( 11 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 AS col1, col1 col0 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT ALL - - 7 * + COUNT( * ) * + 61 AS col1 FROM tab2 AS cor0
----
1281

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL - - 7 * + COUNT ( * ) * + 61 AS col1 FROM tab2 AS cor0
----
1281

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8279
SELECT col0 / - CAST( NULL AS SIGNED ) - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8279
SELECT col0 / - CAST ( NULL AS INTEGER ) - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8280
SELECT DISTINCT - col1 DIV 69 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT - col1 / 69 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 WHERE NOT - - col0 + - + col2 < col1 * - col2
----
3

skipif mysql # not compatible
query I rowsort label-8282
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT - - col0 + - + col2 < col1 * - col2
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-8283
SELECT DISTINCT - col2 col1, 50 * col0 DIV + 79 FROM tab2
----
-23
29
-40
40
-58
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8283
SELECT DISTINCT - col2 col1, 50 * col0 / + 79 FROM tab2
----
-23
29
-40
40
-58
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col0, col1 col1 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT - 37 * + - col2 AS col0 FROM tab1
----
2183
2516
3552

query I rowsort
SELECT col1 * - + 34 FROM tab0
----
-2754
-34
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8287
SELECT - CAST( NULL AS SIGNED ) * col0 + - col1 * - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8287
SELECT - CAST ( NULL AS INTEGER ) * col0 + - col1 * - col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) * + col2 * - 64 col2 FROM tab2
----
163840
278400
67712

query I rowsort
SELECT ALL col2 + + 52 FROM tab2 AS cor0
----
110
75
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col1 - - + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8290
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col1 - - + col0 IS NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 86 * - 84 + - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab1 WHERE + + 98 + + 29 + + 40 + col0 + + col0 * + + 14 = ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT 64 * + MIN( ALL 7 ) AS col1 FROM tab1
----
448

skipif mysql # not compatible
query I rowsort label-8293
SELECT 64 * + MIN ( ALL 7 ) AS col1 FROM tab1
----
448

query I rowsort
SELECT DISTINCT col2 * + + col0 - + 13 - - col2 - col0 + + 10 + - col0 * + - 28 AS col0 FROM tab1
----
6366
7366
8710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8295
SELECT SUM( - - col1 ) - + 89 * CAST( NULL AS SIGNED ) * + - 27 + - + 66 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8295
SELECT SUM ( - - col1 ) - + 89 * CAST ( NULL AS INTEGER ) * + - 27 + - + 66 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-1
-21
-81

query III rowsort
SELECT * FROM tab2 cor0 WHERE 13 + - col0 + col1 IS NULL
----

query I rowsort
SELECT col1 + + + 5 FROM tab1 AS cor0
----
10
19
52

query II rowsort
SELECT ALL + col2 + - col2 + - ( + 26 ) AS col0, - ( col1 ) AS col2 FROM tab2 AS cor0
----
-26
-51
-26
-67
-26
-77

query I rowsort
SELECT DISTINCT col2 + + 47 AS col0 FROM tab1
----
106
115
143

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT COUNT( * ) * + 76 FROM tab2
----
228

skipif mysql # not compatible
query I rowsort label-8301
SELECT COUNT ( * ) * + 76 FROM tab2
----
228

query I rowsort
SELECT ALL ( + col2 ) + col0 FROM tab0
----
196
62
97

query III rowsort
SELECT * FROM tab2 WHERE + col0 + col1 IN ( - col0, + 64 )
----

query III rowsort
SELECT * FROM tab1 WHERE - - 19 = ( NULL )
----

query I rowsort
SELECT DISTINCT 59 * - col0 - + col2 FROM tab2
----
-2737
-3816
-4483

query III rowsort
SELECT * FROM tab0 WHERE - col0 BETWEEN + col1 AND col1 + - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT DISTINCT + + MIN( + + 80 ) AS col1 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-8307
SELECT DISTINCT + + MIN ( + + 80 ) AS col1 FROM tab0 AS cor0
----
80

query II rowsort
SELECT + col0 AS col1, col1 + col0 FROM tab1
----
51
65
85
90
91
138

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8309
SELECT DISTINCT + 93 AS col1, CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
93
NULL

skipif mysql # not compatible
query II rowsort label-8309
SELECT DISTINCT + 93 AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
93
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8310
SELECT ALL + 37 * CAST( NULL AS SIGNED ) * 77 * - 36 - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL + 37 * CAST ( NULL AS INTEGER ) * 77 * - 36 - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - 72 AS col0, col2 AS col0 FROM tab0 AS cor0
----
-72
10
-72
47
-72
99

query II rowsort
SELECT - - col2 AS col1, 69 FROM tab1 AS cor0
----
59
69
68
69
96
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8313
SELECT ALL + CAST( NULL AS SIGNED ), 3 * + - CAST( NULL AS SIGNED ) + + - COUNT( * ) FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8313
SELECT ALL + CAST ( NULL AS INTEGER ), 3 * + - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) FROM tab2 AS cor0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8314
SELECT + 29, MAX( + + col0 ) AS col1 FROM tab2 AS cor0
----
29
75

skipif mysql # not compatible
query II rowsort label-8314
SELECT + 29, MAX ( + + col0 ) AS col1 FROM tab2 AS cor0
----
29
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT + + MAX( ALL - - col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8315
SELECT + + MAX ( ALL - - col1 ) AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT + - MAX( DISTINCT - + col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8316
SELECT + - MAX ( DISTINCT - + col2 ) AS col1 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ( - + col0 ) AS col0 FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT ALL + col1 * - - col1 + col2 + - col1 FROM tab0
----
430
6527
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT SUM( - ( col1 ) ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8319
SELECT SUM ( - ( col1 ) ) FROM tab1
----
-66

query II rowsort
SELECT DISTINCT 34 * - 5, col1 AS col0 FROM tab1
----
-170
14
-170
47
-170
5

query I rowsort
SELECT DISTINCT 0 * + col0 AS col2 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE ( ( NOT ( - col0 ) IN ( + col0 * + col1, + 15, + col2 - - ( - + 74 ) ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8324
SELECT ALL + 28 DIV 73 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8324
SELECT ALL + 28 / 73 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8326
SELECT COUNT( * ) + - ( - COUNT( * ) ) AS col1, 75 * + CAST( 12 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
6
900

skipif mysql # not compatible
query II rowsort label-8326
SELECT COUNT ( * ) + - ( - COUNT ( * ) ) AS col1, 75 * + CAST ( 12 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
6
900

query I rowsort
SELECT DISTINCT + 77 + - - col2 AS col2 FROM tab1
----
136
145
173

query II rowsort
SELECT ALL 21, col1 + col1 * + + col1 FROM tab1 WHERE NOT NULL BETWEEN col0 AND + col1 / - 88
----

query I rowsort
SELECT ALL - col0 - + col2 + + + col0 + - - 71 FROM tab1 AS cor0
----
-25
12
3

query I rowsort
SELECT col1 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL <= col2 * + col2 * - - col0
----

query II rowsort
SELECT + col1 AS col0, - col2 + - + 85 FROM tab0 AS cor0
----
1
-184
21
-95
81
-132

query I rowsort
SELECT + - ( + - 41 ) FROM tab0 AS cor0
----
41
41
41

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 7 AND - col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 * 70 BETWEEN - 92 AND NULL
----

query II rowsort
SELECT - + col1 * + col1 * + col1, 71 AS col1 FROM tab0 AS cor0
----
-1
71
-531441
71
-9261
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 col1, 42 FROM tab2 AS cor0
----
51
42
67
42
77
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8338
SELECT - col2 - + CAST( - - ( 20 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-116
-79
-88

skipif mysql # not compatible
query I rowsort label-8338
SELECT - col2 - + CAST ( - - ( 20 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-116
-79
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, 90 col2 FROM tab1 AS cor0
----
59
90
68
90
96
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT COUNT( * ) FROM tab0 cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8340
SELECT COUNT ( * ) FROM tab0 cor0 WHERE NULL >= NULL
----
0

query I rowsort
SELECT ALL 70 * col1 * col1 FROM tab1 AS cor0
----
13720
154630
1750

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT DISTINCT COUNT( * ) + 90 AS col2 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-8342
SELECT DISTINCT COUNT ( * ) + 90 AS col2 FROM tab2
----
93

query I rowsort
SELECT col2 FROM tab0 WHERE NOT ( - col2 * - col1 ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT DISTINCT - ( MAX( - 65 ) ) AS col0 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-8344
SELECT DISTINCT - ( MAX ( - 65 ) ) AS col0 FROM tab1
----
65

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 30 < + ( - 86 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT ALL MIN( ALL - + col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL MIN ( ALL - + col2 ) FROM tab0
----
-99

query II rowsort
SELECT ALL + ( + col2 ), - col0 FROM tab0
----
10
-87
47
-15
99
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8349
SELECT + CAST( ( + col2 ) AS SIGNED ) col1 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8349
SELECT + CAST ( ( + col2 ) AS INTEGER ) col1 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT col1 * - col0, col2 AS col2 FROM tab2 cor0
----
-2346
23
-4928
40
-5025
58

query I rowsort
SELECT ALL - + 67 + + 13 - + col2 AS col1 FROM tab1 AS cor0 WHERE NOT - ( col0 ) * - 62 + col2 + col0 + - 93 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 22 col0 FROM tab1 cor0
----
-22

query I rowsort
SELECT + 86 + col0 - 5 FROM tab0 WHERE NOT ( NOT 87 = NULL )
----

query I rowsort
SELECT 57 * + 53 AS col1 FROM tab0
----
3021
3021
3021

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8356
SELECT + + 55 DIV + + COUNT( * ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8356
SELECT + + 55 / + + COUNT ( * ) FROM tab0 AS cor0
----
18

query I rowsort
SELECT ALL ( - - 89 ) AS col0 FROM tab1 AS cor0
----
89
89
89

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 * + 71 / 36 / + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT - COUNT( * ) + + 95 + - 66 * + SUM( ALL 71 ) FROM tab1 AS cor0 WHERE NOT col1 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8359
SELECT - COUNT ( * ) + + 95 + - 66 * + SUM ( ALL 71 ) FROM tab1 AS cor0 WHERE NOT col1 <> NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN NULL AND 25
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT MIN( + col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8361
SELECT MIN ( + col2 ) AS col1 FROM tab1
----
59

query I rowsort
SELECT ALL col0 + + 22 + + col0 FROM tab2
----
114
150
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8363
SELECT + col2 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8363
SELECT + col2 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 52 FROM tab1 WHERE + col0 NOT IN ( 76 * + 82, col0 * col1, - - col1 )
----
52
52
52

query I rowsort
SELECT - col2 + + 79 + + 96 + + - ( - 42 ) AS col0 FROM tab1
----
121
149
158

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 4 * + col0 = col1 / - 96 / 9
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT DISTINCT + COUNT( * ) + - + 61 AS col1 FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-8367
SELECT DISTINCT + COUNT ( * ) + - + 61 AS col1 FROM tab1
----
-58

query I rowsort
SELECT ALL col0 + - col0 + - - col0 + + + 59 FROM tab0
----
146
156
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 60 col2, + col1 FROM tab2
----
60
51
60
67
60
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8370
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE col1 <> - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE col1 <> - col2
----
NULL

query I rowsort
SELECT ALL + ( - 40 ) FROM tab2
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT DISTINCT - ( + SUM( DISTINCT 17 ) ) FROM tab2 WHERE NOT + col1 <> col1
----
-17

skipif mysql # not compatible
query I rowsort label-8372
SELECT DISTINCT - ( + SUM ( DISTINCT 17 ) ) FROM tab2 WHERE NOT + col1 <> col1
----
-17

query I rowsort
SELECT - 97 + - 53 FROM tab0
----
-150
-150
-150

query I rowsort
SELECT - - 33 * col2 AS col0 FROM tab2 WHERE NULL IS NULL
----
1320
1914
759

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8375
SELECT CAST( NULL AS SIGNED ) AS col0, - 60 AS col1 FROM tab2 AS cor0
----
NULL
-60
NULL
-60
NULL
-60

skipif mysql # not compatible
query II rowsort label-8375
SELECT CAST ( NULL AS INTEGER ) AS col0, - 60 AS col1 FROM tab2 AS cor0
----
NULL
-60
NULL
-60
NULL
-60

query I rowsort
SELECT - + col2 FROM tab1 WHERE + col1 * + col0 NOT IN ( - 81 * + - ( - 20 ), ( - 38 ), - col1 )
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT ALL 83 + COUNT( * ) AS col0 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-8377
SELECT ALL 83 + COUNT ( * ) AS col0 FROM tab2
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-8378
SELECT DISTINCT 28 + + - 39 AS col1, + MAX( - col1 ) + MAX( - 32 ) FROM tab1
----
-11
-37

skipif mysql # not compatible
query II rowsort label-8378
SELECT DISTINCT 28 + + - 39 AS col1, + MAX ( - col1 ) + MAX ( - 32 ) FROM tab1
----
-11
-37

query II rowsort
SELECT ALL - ( - col1 ) * - 14 * - 38 - - 75, + col1 FROM tab0
----
11247
21
43167
81
607
1

query I rowsort
SELECT DISTINCT - + col0 * - + 70 + col1 + - 50 + - - 93 AS col2 FROM tab1 cor0
----
3627
5998
6460

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8381
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 IN ( - CAST( + - ( col2 ) AS DECIMAL ), 77, col2 )
----

skipif mysql # not compatible
query III rowsort label-8381
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 IN ( - CAST ( + - ( col2 ) AS REAL ), 77, col2 )
----

query I rowsort
SELECT + + col0 + + col0 * ( + col2 ) + + col2 FROM tab1 AS cor0
----
5043
5159
6347

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) = + 89 / + col0 + + - col2 - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8384
SELECT DISTINCT - col1 DIV - + 66 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8384
SELECT DISTINCT - col1 / - + 66 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT DISTINCT - - MIN( - + col0 ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-8385
SELECT DISTINCT - - MIN ( - + col0 ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
225

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + - - col0 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8387
SELECT DISTINCT 1 DIV + - COUNT( * ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8387
SELECT DISTINCT 1 / + - COUNT ( * ) col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8388
SELECT + ( - 94 ) * - col1 DIV + ( ( col1 ) ) AS col2, ( - col1 ) + - - col0 FROM tab1
----
94
37
94
44
94
80

skipif mysql # not compatible
query II rowsort label-8388
SELECT + ( - 94 ) * - col1 / + ( ( col1 ) ) AS col2, ( - col1 ) + - - col0 FROM tab1
----
94
37
94
44
94
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT MIN( - 81 ) AS col0 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-8389
SELECT MIN ( - 81 ) AS col0 FROM tab2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT + SUM( ALL col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-8390
SELECT + SUM ( ALL col2 ) AS col2 FROM tab1
----
223

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8391
SELECT ALL + ( + 2 ) DIV + MIN( + - 97 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8391
SELECT ALL + ( + 2 ) / + MIN ( + - 97 ) AS col0 FROM tab0
----
0

query II rowsort
SELECT ALL col0 AS col1, col1 - - col1 + - col0 AS col0 FROM tab2
----
46
56
64
90
75
59

query I rowsort
SELECT ALL - 94 FROM tab2 AS cor0 WHERE + col2 + col2 < - col1
----

query II rowsort
SELECT DISTINCT 78 AS col1, col0 FROM tab0 cor0
----
78
15
78
87
78
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT ALL + COUNT( 53 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8395
SELECT ALL + COUNT ( 53 ) col2 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 10 ) col0 FROM tab1
----
10
10
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8397
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) + - ( COUNT( * ) ) col2 FROM tab0 WHERE NOT col2 NOT IN ( - col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8397
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) + - ( COUNT ( * ) ) col2 FROM tab0 WHERE NOT col2 NOT IN ( - col0 )
----
NULL

query I rowsort
SELECT DISTINCT 81 AS col2 FROM tab0 WHERE NOT NULL >= 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT - COUNT( * ) col0 FROM tab1 WHERE NOT + 83 / 28 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8399
SELECT - COUNT ( * ) col0 FROM tab1 WHERE NOT + 83 / 28 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT - MAX( ALL - 78 ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-8400
SELECT - MAX ( ALL - 78 ) FROM tab0
----
78

query I rowsort
SELECT ALL 85 - 62 * - ( - ( col0 ) * + 13 ) FROM tab1
----
-41021
-68425
-73261

query I rowsort
SELECT - 96 * col2 AS col2 FROM tab1
----
-5664
-6528
-9216

query I rowsort
SELECT + 86 * + 24 FROM tab0
----
2064
2064
2064

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT DISTINCT + MIN( + col2 ) + + ( + COUNT( * ) ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-8404
SELECT DISTINCT + MIN ( + col2 ) + + ( + COUNT ( * ) ) FROM tab0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT ALL COUNT( * ) * 80 + COUNT( DISTINCT - col1 ) AS col1 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL COUNT ( * ) * 80 + COUNT ( DISTINCT - col1 ) AS col1 FROM tab0
----
243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8406
SELECT DISTINCT COUNT( * ) * CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8406
SELECT DISTINCT COUNT ( * ) * CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
9

query I rowsort
SELECT DISTINCT + col0 * col1 + - 95 FROM tab1
----
330
4182
619

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8408
SELECT ALL col1 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-8409
SELECT COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-9

query I rowsort
SELECT ALL 80 * col1 FROM tab1
----
1120
3760
400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8411
SELECT - col2 + + CAST( NULL AS SIGNED ) col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8411
SELECT - col2 + + CAST ( NULL AS INTEGER ) col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col1 * col1 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND + 20 - col2 * 47
----

query III rowsort
SELECT * FROM tab2 WHERE 17 * + col2 NOT IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT ALL - SUM( ( 9 ) ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL - SUM ( ( 9 ) ) FROM tab2
----
-27

query I rowsort
SELECT col0 - - 39 FROM tab0 AS cor0
----
126
136
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT - 39 + - MAX( DISTINCT col2 ) FROM tab2 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8416
SELECT - 39 + - MAX ( DISTINCT col2 ) FROM tab2 cor0
----
-97

query I rowsort
SELECT ALL - ( col2 ) + col1 * col0 AS col2 FROM tab2 AS cor0
----
2323
4888
4967

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 <> ( - col1 )
----

query I rowsort
SELECT col2 * 51 AS col0 FROM tab2
----
1173
2040
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT ALL 13 - - ( COUNT( * ) ) AS col2 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL 13 - - ( COUNT ( * ) ) AS col2 FROM tab0
----
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 35 col1 FROM tab1 AS cor0
----
-35
-35
-35

query I rowsort
SELECT ALL - + 45 AS col1 FROM tab2 AS cor0
----
-45
-45
-45

query I rowsort
SELECT ALL + col0 * - 75 FROM tab1 AS cor0
----
-3825
-6375
-6825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8424
SELECT DISTINCT col0 AS col0 FROM tab1 cor0 WHERE NOT CAST( ( col1 ) AS SIGNED ) <> col2 / - col0 + 18
----

skipif mysql # not compatible
query I rowsort label-8424
SELECT DISTINCT col0 AS col0 FROM tab1 cor0 WHERE NOT CAST ( ( col1 ) AS INTEGER ) <> col2 / - col0 + 18
----

query I rowsort
SELECT 7 * - 15 FROM tab0 AS cor0
----
-105
-105
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT DISTINCT - 16 * + MIN( + col2 + - col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8426
SELECT DISTINCT - 16 * + MIN ( + col2 + - col2 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 80 - 97 IS NOT NULL
----

query I rowsort
SELECT 79 FROM tab2 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT - 66 + - col2 FROM tab1 WHERE NOT 85 / + 51 NOT IN ( col0 )
----

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8431
SELECT ALL + CAST( + 48 AS SIGNED ) * col2 AS col1 FROM tab0
----
2256
4752
480

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL + CAST ( + 48 AS INTEGER ) * col2 AS col1 FROM tab0
----
2256
4752
480

onlyif mysql # DIV for integer division: 
query I rowsort label-8432
SELECT ( ( + ( + col0 ) ) ) DIV col1 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8432
SELECT ( ( + ( + col0 ) ) ) / col1 AS col1 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT ALL 29 * + MAX( ALL 93 ) FROM tab0 WHERE NOT ( + col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8433
SELECT ALL 29 * + MAX ( ALL 93 ) FROM tab0 WHERE NOT ( + col0 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8434
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8434
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col2 * - 18 FROM tab1
----
-1062
-1224
-1728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8436
SELECT COUNT( ALL col0 ) DIV + COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8436
SELECT COUNT ( ALL col0 ) / + COUNT ( * ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8437
SELECT DISTINCT CAST( + CAST( 53 AS SIGNED ) AS SIGNED ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-8437
SELECT DISTINCT CAST ( + CAST ( 53 AS INTEGER ) AS INTEGER ) FROM tab2
----
53

query I rowsort
SELECT DISTINCT + col1 * + col0 AS col2 FROM tab0 AS cor0 WHERE NOT + 23 BETWEEN col0 AND + col0 + col1
----
1827
97

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 INNER JOIN tab2 AS cor1 ON NOT ( NULL ) < ( NULL )
----

query I rowsort
SELECT + ( - ( ( col1 ) ) ) AS col0 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8442
SELECT DISTINCT + 13 AS col2, - col0 + - col1 - + 60 DIV - col1 col1 FROM tab1
----
13
-137
13
-61
13
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8442
SELECT DISTINCT + 13 AS col2, - col0 + - col1 - + 60 / - col1 col1 FROM tab1
----
13
-137
13
-61
13
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8443
SELECT DISTINCT - 63 DIV + COUNT( * ) AS col0 FROM tab1 cor0 WHERE ( + 0 ) NOT IN ( col0 )
----
-21

skipif mysql # not compatible
query I rowsort label-8443
SELECT DISTINCT - 63 / + COUNT ( * ) AS col0 FROM tab1 cor0 WHERE ( + 0 ) NOT IN ( col0 )
----
-21

query I rowsort
SELECT ALL + col1 * + col0 + col2 FROM tab2 AS cor0
----
2369
4968
5083

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8445
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8445
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT DISTINCT - SUM( - 1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8446
SELECT DISTINCT - SUM ( - 1 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8447
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8447
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab2 AS cor0 WHERE NULL IN ( ( - - col0 ) * 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT + - 10 * 93 * - + 99 + + COUNT( * ) FROM tab0 AS cor0
----
92073

skipif mysql # not compatible
query I rowsort label-8449
SELECT + - 10 * 93 * - + 99 + + COUNT ( * ) FROM tab0 AS cor0
----
92073

query I rowsort
SELECT col0 + + + col1 AS col2 FROM tab2
----
141
142
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 37 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8452
SELECT ALL ( + - col2 ) * - col2 * - CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8452
SELECT ALL ( + - col2 ) * - col2 * - CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT ALL COUNT( * ) + + COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0
----
6

query I rowsort
SELECT 92 + col1 * + + col1 FROM tab2
----
2693
4581
6021

query I rowsort
SELECT DISTINCT 71 FROM tab2 WHERE NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT COUNT( - 58 ) + - 52 * + 10 * - COUNT( * ) FROM tab2
----
1563

skipif mysql # not compatible
query I rowsort label-8456
SELECT COUNT ( - 58 ) + - 52 * + 10 * - COUNT ( * ) FROM tab2
----
1563

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT ALL - COUNT( * ) + 57 AS col2 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-8457
SELECT ALL - COUNT ( * ) + 57 AS col2 FROM tab2
----
54

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE - 87 NOT BETWEEN ( NULL ) AND + col2
----

query I rowsort
SELECT DISTINCT col0 * 20 - - col2 AS col1 FROM tab2
----
1320
1558
943

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 + - - 8 col1 FROM tab2
----
-41
-41
-41

query III rowsort
SELECT * FROM tab1 WHERE col1 + col0 + - 94 >= ( + ( col1 ) )
----

query I rowsort
SELECT col2 FROM tab2 WHERE NULL >= ( - + col1 * + col1 * col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) BETWEEN NULL AND - ( 64 )
----

query I rowsort
SELECT 41 * + ( + col0 ) AS col1 FROM tab1
----
2091
3485
3731

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 88 / - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( + ( - 83 ) ) FROM tab2 cor0
----
-83
-83
-83

query I rowsort
SELECT ALL + 32 - + col0 FROM tab2 AS cor0
----
-14
-32
-43

query I rowsort
SELECT DISTINCT + col0 * - - ( + 46 ) AS col1 FROM tab1 cor0
----
2346
3910
4186

query I rowsort
SELECT DISTINCT - 83 AS col0 FROM tab1 AS cor0 WHERE NOT col1 < - 40 * - - col0
----
-83

query I rowsort
SELECT DISTINCT + col0 / + col0 + - col2 * 76 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col1 )
----

query I rowsort
SELECT DISTINCT + 60 + + - 32 FROM tab1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT DISTINCT 61 * - SUM( + - col1 ) + + - 90 + + MIN( ALL col0 ) FROM tab1
----
3987

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT 61 * - SUM ( + - col1 ) + + - 90 + + MIN ( ALL col0 ) FROM tab1
----
3987

query I rowsort
SELECT + col2 - + col1 + ( + + col0 ) FROM tab1
----
112
133
139

query I rowsort
SELECT ALL + 66 + - - col2 AS col1 FROM tab0
----
113
165
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT DISTINCT - 84 * + + SUM( col1 ) * - MAX( ( col0 ) ) FROM tab2
----
1228500

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT - 84 * + + SUM ( col1 ) * - MAX ( ( col0 ) ) FROM tab2
----
1228500

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT COUNT( + col0 ) col1 FROM tab2 WHERE NOT NULL NOT IN ( - - col0 / 3 + + col2 + + col0 / col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8476
SELECT COUNT ( + col0 ) col1 FROM tab2 WHERE NOT NULL NOT IN ( - - col0 / 3 + + col2 + + col0 / col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT - SUM( + 84 ) FROM tab0 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-8477
SELECT - SUM ( + 84 ) FROM tab0 AS cor0
----
-252

query I rowsort
SELECT + col2 AS col1 FROM tab2 cor0 WHERE NOT ( - col2 * - 79 ) IS NULL
----
23
40
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 55 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( - - col2 ) AS col2 FROM tab0 cor0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * + - col0 = + - ( + 69 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 43, + col1 * + - 51 * col0 + 51 AS col2 FROM tab0 AS cor0
----
43
-4896
43
-61914
43
-93126

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT DISTINCT COUNT( * ) * ( COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8483
SELECT DISTINCT COUNT ( * ) * ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
9

query I rowsort
SELECT - col0 * + 65 FROM tab1 cor0
----
-3315
-5525
-5915

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT DISTINCT MAX( ALL - + col0 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-8485
SELECT DISTINCT MAX ( ALL - + col0 ) AS col1 FROM tab0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8486
SELECT + col2 * - col1 AS col1, ( + + CAST( NULL AS SIGNED ) ) * col1 + - col1 + + col1 - ( col1 + col0 ) / col1 FROM tab1
----
-1344
NULL
-295
NULL
-3196
NULL

skipif mysql # not compatible
query II rowsort label-8486
SELECT + col2 * - col1 AS col1, ( + + CAST ( NULL AS INTEGER ) ) * col1 + - col1 + + col1 - ( col1 + col0 ) / col1 FROM tab1
----
-1344
NULL
-295
NULL
-3196
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8487
SELECT - col1 DIV - col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8487
SELECT - col1 / - col0 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 NOT IN ( 40 * col2 * - col0 ) )
----

query II rowsort
SELECT col0 AS col0, ( col1 ) FROM tab1
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8490
SELECT - CAST( COUNT( * ) AS SIGNED ) * + - COUNT( * ) * + ( - 66 ) AS col0 FROM tab0 AS cor0
----
-594

skipif mysql # not compatible
query I rowsort label-8490
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * + - COUNT ( * ) * + ( - 66 ) AS col0 FROM tab0 AS cor0
----
-594

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT + + MAX( + + 3 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8491
SELECT + + MAX ( + + 3 ) AS col2 FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL - col1, - 93 * - col1 + + col0 AS col1 FROM tab2 AS cor0
----
-51
4789
-67
6306
-77
7225

onlyif mysql # aggregate syntax: 
query II rowsort label-8493
SELECT - - 53 AS col2, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
53
-3

skipif mysql # not compatible
query II rowsort label-8493
SELECT - - 53 AS col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
53
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 >= ( NULL )
----

query I rowsort
SELECT DISTINCT 22 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 54 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT - COUNT( * ) + + - 36 FROM tab2 WHERE NULL NOT BETWEEN - 97 - + + col2 AND + 13
----
-36

skipif mysql # not compatible
query I rowsort label-8496
SELECT - COUNT ( * ) + + - 36 FROM tab2 WHERE NULL NOT BETWEEN - 97 - + + col2 AND + 13
----
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 1 + - 80 col2, + col1 AS col1 FROM tab0 cor0
----
-81
1
-81
21
-81
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN ( NULL ) AND col2
----

query I rowsort
SELECT DISTINCT col2 * + + col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-8500
SELECT ALL + - ( - - 97 ) DIV - - 73 - - col1 AS col0 FROM tab0 AS cor0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-8500
SELECT ALL + - ( - - 97 ) / - - 73 - - col1 AS col0 FROM tab0 AS cor0
----
0
20
80

query II rowsort
SELECT ALL - col2 + - 39, + col0 AS col1 FROM tab0 AS cor0
----
-138
97
-49
87
-86
15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( 88 ) IS NULL
----

query I rowsort
SELECT ALL - ( + col0 ) + + 92 AS col0 FROM tab2
----
17
28
46

query I rowsort
SELECT - 53 AS col2 FROM tab1 WHERE 14 NOT BETWEEN NULL AND - 97
----
-53
-53
-53

query I rowsort
SELECT col1 - + + col0 FROM tab0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT MAX( + + col1 ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8506
SELECT MAX ( + + col1 ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8507
SELECT ALL + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8507
SELECT ALL + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE - col1 * + col0 * - 98 * - + col0 * + col0 > ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 NOT BETWEEN ( NULL ) AND col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8510
SELECT + col1 DIV + CAST( + col0 AS SIGNED ) AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8510
SELECT + col1 / + CAST ( + col0 AS INTEGER ) AS col0 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT COUNT( * ) + 18 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
27

skipif mysql # not compatible
query I rowsort label-8511
SELECT COUNT ( * ) + 18 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
27

query I rowsort
SELECT ALL - + 23 + + col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - 4 / + + col0
----

query I rowsort
SELECT ALL + - 58 AS col0 FROM tab2 AS cor0
----
-58
-58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8514
SELECT DISTINCT - + CAST( - col2 AS SIGNED ) AS col1, col1 AS col1 FROM tab0 cor0
----
10
21
47
81
99
1

skipif mysql # not compatible
query II rowsort label-8514
SELECT DISTINCT - + CAST ( - col2 AS INTEGER ) AS col1, col1 AS col1 FROM tab0 cor0
----
10
21
47
81
99
1

query II rowsort
SELECT col0 AS col1, col2 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8516
SELECT DISTINCT + CAST( + col2 AS SIGNED ) * + 50 FROM tab2
----
1150
2000
2900

skipif mysql # not compatible
query I rowsort label-8516
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) * + 50 FROM tab2
----
1150
2000
2900

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT COUNT( 24 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8517
SELECT COUNT ( 24 ) FROM tab0
----
3

query I rowsort
SELECT ALL col1 + + + 93 * - col1 FROM tab0
----
-1932
-7452
-92

query I rowsort
SELECT ALL 6 * + col0 AS col1 FROM tab2
----
276
384
450

query I rowsort
SELECT 93 * + - 39 FROM tab0
----
-3627
-3627
-3627

query I rowsort
SELECT ALL + 0 * - + col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT ALL - ( - MIN( DISTINCT - 61 ) ) col1 FROM tab0
----
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8522
SELECT ALL - ( - MIN ( DISTINCT - 61 ) ) col1 FROM tab0
----
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - 8 ) col1 FROM tab2 AS cor0
----
-8
-8
-8

query I rowsort
SELECT ALL - 32 FROM tab2 cor0 WHERE NULL IS NULL
----
-32
-32
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col1 + - col1 - col0 + + ( 76 ) col2 FROM tab0 AS cor0
----
-20
-22
-32

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 2 + - 88 BETWEEN ( - + ( 29 ) ) AND ( ( - col2 ) * + ( col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT MIN( DISTINCT + + col0 ) col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8527
SELECT MIN ( DISTINCT + + col0 ) col1 FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8528
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <> - 56 + 65 - - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-8528
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <> - 56 + 65 - - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + + col0 * + - 12 + + - col1 AS col1 FROM tab2 AS cor0
----
-603
-845
-967

query I rowsort
SELECT ALL ( + col2 ) * - - col0 AS col1 FROM tab0 cor0
----
705
870
9603

query I rowsort
SELECT + 92 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col1, col0 AS col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8533
SELECT ALL - CAST( col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8533
SELECT ALL - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT 70 AS col1 FROM tab1 cor0
----
70

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 - - 6 BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT ALL - 94 + - MAX( DISTINCT - + col1 ) AS col2 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL - 94 + - MAX ( DISTINCT - + col1 ) AS col2 FROM tab2
----
-43

query II rowsort
SELECT 84 + + col0 + - - 80 AS col1, 64 FROM tab0
----
179
64
251
64
261
64

query I rowsort
SELECT 96 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT ALL col2 - + col1 - col0 AS col2 FROM tab0
----
-49
-98
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8540
SELECT ALL - - col1 + + - col0 AS col0 FROM tab0 WHERE + CAST( + 95 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-8540
SELECT ALL - - col1 + + - col0 AS col0 FROM tab0 WHERE + CAST ( + 95 AS INTEGER ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT - ( - - COUNT( + 49 ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8541
SELECT - ( - - COUNT ( + 49 ) ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT - AVG ( ( col2 ) ) * + + 68 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT col1, - 20 + + - 62 AS col0 FROM tab0
----
1
-82
21
-82
81
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8544
SELECT CAST( - SUM( + - col1 ) AS SIGNED ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8544
SELECT CAST ( - SUM ( + - col1 ) AS INTEGER ) AS col0 FROM tab1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8545
SELECT 26 * COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL <> - col0 / - col1 + + ( CAST( NULL AS SIGNED ) ) + col1
----
0

skipif mysql # not compatible
query I rowsort label-8545
SELECT 26 * COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL <> - col0 / - col1 + + ( CAST ( NULL AS INTEGER ) ) + col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8546
SELECT col1 DIV - 50 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8546
SELECT col1 / - 50 FROM tab0
----
-1
0
0

query I rowsort
SELECT - col2 * + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= 14
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8549
SELECT - + COUNT( * ) col1, COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
-3
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8549
SELECT - + COUNT ( * ) col1, COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
-3
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 * + col2 * + 41 col0 FROM tab2 AS cor0
----
-121278
-48093
-83640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8551
SELECT DISTINCT + 29 * - CAST( + col2 AS SIGNED ) FROM tab1 cor0
----
-1711
-1972
-2784

skipif mysql # not compatible
query I rowsort label-8551
SELECT DISTINCT + 29 * - CAST ( + col2 AS INTEGER ) FROM tab1 cor0
----
-1711
-1972
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT - - COUNT( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8552
SELECT - - COUNT ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT col1 * - 29 * - 55 AS col0 FROM tab2 AS cor0
----
106865
122815
81345

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 / col1 / - col2 > NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col1 * 7 = NULL
----

query II rowsort
SELECT DISTINCT - 61, col1 * + - col1 * - col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ( + + col1 ), 95 FROM tab1 AS cor0
----
14
95
47
95
5
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT COUNT( * ) + + + 82 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-8558
SELECT COUNT ( * ) + + + 82 FROM tab1 AS cor0
----
85

query I rowsort
SELECT DISTINCT - 68 FROM tab2, tab0 AS cor0
----
-68

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT ALL + 94 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT DISTINCT - + 77 + - col1 AS col2 FROM tab0 WHERE NULL IS NULL
----
-158
-78
-98

query I rowsort
SELECT + col1 * - - 4 + - col2 FROM tab1 AS cor0
----
-39
-40
120

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 * + 95 * col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8565
SELECT DISTINCT - col2 - + ( + CAST( + col1 AS SIGNED ) ) + + col2 + - + col0 * + - 18 AS col1 FROM tab2 AS cor0
----
1075
1283
777

skipif mysql # not compatible
query I rowsort label-8565
SELECT DISTINCT - col2 - + ( + CAST ( + col1 AS INTEGER ) ) + + col2 + - + col0 * + - 18 AS col1 FROM tab2 AS cor0
----
1075
1283
777

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT + 51 * COUNT( * ) FROM tab1 cor0
----
153

skipif mysql # not compatible
query I rowsort label-8566
SELECT + 51 * COUNT ( * ) FROM tab1 cor0
----
153

query I rowsort
SELECT DISTINCT + 77 + + 80 FROM tab2 AS cor0
----
157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8568
SELECT + 7 - + + ( 97 ) DIV + + COUNT( * ) FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-8568
SELECT + 7 - + + ( 97 ) / + + COUNT ( * ) FROM tab0 AS cor0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8569
SELECT DISTINCT col2 * col2 / CAST( NULL AS SIGNED ) + + col1 * + col0 col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8569
SELECT DISTINCT col2 * col2 / CAST ( NULL AS INTEGER ) + + col1 * + col0 col2 FROM tab0
----
NULL

query II rowsort
SELECT - + col0 AS col0, 45 - + col2 + - - 71 + 42 AS col2 FROM tab0 WHERE - + col0 * + col2 * - col2 * - 53 IS NULL
----

query I rowsort
SELECT ALL ( + - 48 ) AS col1 FROM tab1
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT + ( - MAX( - col0 ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8572
SELECT + ( - MAX ( - col0 ) ) FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT SUM( - col0 ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-8573
SELECT SUM ( - col0 ) FROM tab0 cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT - COUNT( * ) AS col1 FROM ( tab0 cor0 CROSS JOIN tab2 cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-8574
SELECT - COUNT ( * ) AS col1 FROM ( tab0 cor0 CROSS JOIN tab2 cor1 )
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-8575
SELECT col0 DIV 52 AS col1, - col2 AS col2 FROM tab1
----
0
-96
1
-59
1
-68

skipif mysql # not compatible
query II rowsort label-8575
SELECT col0 / 52 AS col1, - col2 AS col2 FROM tab1
----
0
-96
1
-59
1
-68

query I rowsort
SELECT DISTINCT - - 39 AS col1 FROM tab1 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT ALL + SUM( col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL + SUM ( col1 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT - col0 * col1 * - 83 FROM tab1 AS cor0
----
35275
354991
59262

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT ALL COUNT( + col1 ) * + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8579
SELECT ALL COUNT ( + col1 ) * + COUNT ( * ) FROM tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-8580
SELECT + - 42 * + col1 AS col2, - ( + col1 ) * + + 30 + + col0 DIV col0 AS col0 FROM tab2 AS cor0
----
-2142
-1529
-2814
-2009
-3234
-2309

skipif mysql # not compatible
query II rowsort label-8580
SELECT + - 42 * + col1 AS col2, - ( + col1 ) * + + 30 + + col0 / col0 AS col0 FROM tab2 AS cor0
----
-2142
-1529
-2814
-2009
-3234
-2309

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT ALL ( - MIN( - ( + col0 ) ) ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL ( - MIN ( - ( + col0 ) ) ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT + col2 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8583
SELECT DISTINCT col2 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8583
SELECT DISTINCT col2 + + CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8584
SELECT DISTINCT - 26 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8584
SELECT DISTINCT - 26 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 + + col2 col2 FROM tab2
----
56
73
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT DISTINCT + 5 + - + COUNT( * ) AS col0 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-8586
SELECT DISTINCT + 5 + - + COUNT ( * ) AS col0 FROM tab1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8587
SELECT ALL 50 col0, CAST( + + col0 AS SIGNED ) FROM tab0
----
50
15
50
87
50
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8587
SELECT ALL 50 col0, CAST ( + + col0 AS INTEGER ) FROM tab0
----
50
15
50
87
50
97

query I rowsort
SELECT col1 * + 40 + ( col2 ) FROM tab0 AS cor0
----
139
3287
850

onlyif mysql # aggregate syntax: 
query II rowsort label-8589
SELECT - COUNT( * ), - 18 AS col2 FROM tab2 AS cor0
----
-3
-18

skipif mysql # not compatible
query II rowsort label-8589
SELECT - COUNT ( * ), - 18 AS col2 FROM tab2 AS cor0
----
-3
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 35 col1 FROM tab1
----
16
50
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8591
SELECT DISTINCT * FROM tab0 WHERE NULL = - ( - 92 ) + - CAST( + ( 48 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8591
SELECT DISTINCT * FROM tab0 WHERE NULL = - ( - 92 ) + - CAST ( + ( 48 ) AS INTEGER )
----

query I rowsort
SELECT col2 - - 91 FROM tab1
----
150
159
187

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT + 97 - COUNT( ALL 50 ) + + 10 FROM tab1
----
104

skipif mysql # not compatible
query I rowsort label-8593
SELECT + 97 - COUNT ( ALL 50 ) + + 10 FROM tab1
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8594
SELECT - col1 / + CAST( NULL AS SIGNED ) + + - col2 * CAST( + - col2 AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8594
SELECT - col1 / + CAST ( NULL AS INTEGER ) + + - col2 * CAST ( + - col2 AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col0 * + col2 + - + 51 - + col1 - col2 * - col2 FROM tab0 AS cor0
----
19352
2782
898

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT ALL + COUNT( * ) + - 11 FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-8596
SELECT ALL + COUNT ( * ) + - 11 FROM tab2
----
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 63 col1 FROM tab1
----
3213
5355
5733

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( + col1 ) col0 FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + + col0 ) BETWEEN - 77 + + 5 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT DISTINCT COUNT( * ) * - 20 * + COUNT( * ) AS col1 FROM tab2
----
-180

skipif mysql # not compatible
query I rowsort label-8600
SELECT DISTINCT COUNT ( * ) * - 20 * + COUNT ( * ) AS col1 FROM tab2
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT DISTINCT 27 * 82 + + SUM( + - 83 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT 27 * 82 + + SUM ( + - 83 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - col1 ) * - col0 col0 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT - col1 * + + 8 * + 46 AS col1 FROM tab1
----
-17296
-1840
-5152

query II rowsort
SELECT DISTINCT 0 AS col1, col0 FROM tab0
----
0
15
0
87
0
97

query I rowsort
SELECT ALL + 93 * col0 * - col1 FROM tab0
----
-112995
-169911
-9021

query I rowsort
SELECT ALL col1 * + + 21 AS col1 FROM tab0 cor0
----
1701
21
441

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 AS cor0 WHERE col0 IN ( col0 * - 17 + - col0 * col1, col2, - col1 + - col1 * + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8608
SELECT ALL - col1 * + + CAST( NULL AS DECIMAL ) + + + CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL - col1 * + + CAST ( NULL AS REAL ) + + + CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 48 AS col1 FROM tab0 cor0
----
48
48
48

query II rowsort
SELECT - col0, 10 AS col0 FROM tab0 AS cor0
----
-15
10
-87
10
-97
10

query I rowsort
SELECT ( + + 16 ) FROM tab1 AS cor0
----
16
16
16

query I rowsort
SELECT + + col2 - ( + 86 ) + - + 24 FROM tab2 AS cor0 WHERE NOT 58 + - + col2 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT DISTINCT - - MAX( ALL + col1 ) + ( - - COUNT( - col0 ) ) AS col0 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-8613
SELECT DISTINCT - - MAX ( ALL + col1 ) + ( - - COUNT ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
80

query I rowsort
SELECT + 57 * - 43 AS col0 FROM tab1
----
-2451
-2451
-2451

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 * + 4 + col0 col2 FROM tab1
----
435
469
475

query II rowsort
SELECT ALL col0 + + col2, ( col2 ) FROM tab0
----
196
99
62
47
97
10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 NOT BETWEEN col1 - - 68 + - - col0 / + 68 * col2 + - - col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 - + 70 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT - COUNT( 67 ) + MIN( ALL col2 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
56

skipif mysql # not compatible
query I rowsort label-8619
SELECT - COUNT ( 67 ) + MIN ( ALL col2 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
56

query I rowsort
SELECT - - 2 FROM tab0 cor0 WHERE col0 IS NOT NULL
----
2
2
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8621
SELECT ALL + + MAX( 8 ) AS col1, COUNT( * ) FROM tab1 AS cor0
----
8
3

skipif mysql # not compatible
query II rowsort label-8621
SELECT ALL + + MAX ( 8 ) AS col1, COUNT ( * ) FROM tab1 AS cor0
----
8
3

query I rowsort
SELECT - 26 + - col1 + + col2 + - 81 + - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-218
-2350
-9810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col1, - ( + + ( + 36 ) ) + - col0 col0 FROM tab0
----
10
-123
47
-51
99
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT ALL 51 + - 17 * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-102

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL 51 + - 17 * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8625
SELECT ALL 52 DIV 46 + - - COUNT( * ) AS col2, - COUNT( * ) AS col1 FROM tab0
----
4
-3

skipif mysql # not compatible
query II rowsort label-8625
SELECT ALL 52 / 46 + - - COUNT ( * ) AS col2, - COUNT ( * ) AS col1 FROM tab0
----
4
-3

query II rowsort
SELECT col0 AS col1, 2 AS col2 FROM tab2 AS cor0
----
46
2
64
2
75
2

query I rowsort
SELECT DISTINCT - col0 - 89 AS col0 FROM tab1 AS cor0
----
-140
-174
-180

query I rowsort
SELECT 92 - 33 AS col1 FROM tab1 cor0
----
59
59
59

query I rowsort
SELECT - col0 * + + 63 - - col1 * + 52 * col2 FROM tab0 AS cor0
----
-963
197019
5439

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT ALL SUM( col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8630
SELECT ALL SUM ( col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL + + col0 - col1 AS col0 FROM tab0 cor0
----
-66
66
96

query I rowsort
SELECT 77 * - - col1 AS col1 FROM tab2
----
3927
5159
5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8633
SELECT DISTINCT 37 * - col2 + + - 91 * - col0 / + col2 * 44 + + + col0 + - - CAST( NULL AS SIGNED ) * + - 41 * + col1 * 23 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8633
SELECT DISTINCT 37 * - col2 + + - 91 * - col0 / + col2 * 44 + + + col0 + - - CAST ( NULL AS INTEGER ) * + - 41 * + col1 * 23 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT - + SUM( DISTINCT - - ( - ( - + ( - col2 ) ) ) ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-8634
SELECT - + SUM ( DISTINCT - - ( - ( - + ( - col2 ) ) ) ) AS col2 FROM tab1 AS cor0
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 44 col2 FROM tab2 AS cor0
----
-44
-44
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 20 * + - col0 col1 FROM tab1
----
-1020
-1700
-1820

query I rowsort
SELECT ALL 86 * col0 FROM tab1
----
4386
7310
7826

query I rowsort
SELECT DISTINCT - 27 * - col1 FROM tab1
----
1269
135
378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8639
SELECT 22 * + ( COUNT( - + CAST( NULL AS SIGNED ) ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8639
SELECT 22 * + ( COUNT ( - + CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
0

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 + 47 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT - COUNT( * ) * - 93 AS col1 FROM tab0 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-8642
SELECT - COUNT ( * ) * - 93 AS col1 FROM tab0 AS cor0
----
279

query I rowsort
SELECT ALL - - 78 AS col1 FROM tab0 AS cor0
----
78
78
78

onlyif mysql # DIV for integer division: 
query I rowsort label-8644
SELECT ALL + col0 DIV + - 15 FROM tab0 cor0
----
-1
-5
-6

skipif mysql # not compatible
query I rowsort label-8644
SELECT ALL + col0 / + - 15 FROM tab0 cor0
----
-1
-5
-6

query I rowsort
SELECT 87 * - 75 FROM tab2 AS cor0
----
-6525
-6525
-6525

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * 65 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 69 AS col1 FROM tab1 cor0
----
69
69
69

onlyif mysql # aggregate syntax: 
query II rowsort label-8648
SELECT DISTINCT 8 col1, - COUNT( * ) AS col0 FROM tab1 AS cor0
----
8
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8648
SELECT DISTINCT 8 col1, - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
8
-3

query I rowsort
SELECT col1 + + + col2 FROM tab2
----
117
125
74

query I rowsort
SELECT col2 + + 49 FROM tab0
----
148
59
96

query I rowsort
SELECT 19 + + col2 + - - col0 FROM tab1
----
163
166
178

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8652
SELECT ALL * FROM tab1 WHERE - col0 <= - CAST( + col1 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8652
SELECT ALL * FROM tab1 WHERE - col0 <= - CAST ( + col1 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8653
SELECT ALL + COUNT( * ) + - CAST( - + 66 AS SIGNED ) AS col1 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-8653
SELECT ALL + COUNT ( * ) + - CAST ( - + 66 AS INTEGER ) AS col1 FROM tab0
----
69

query II rowsort
SELECT ALL col1 AS col0, 76 + ( + ( - col2 ) ) AS col2 FROM tab2
----
51
53
67
18
77
36

query II rowsort
SELECT - col1 + col0, ( + 31 ) * + 8 + + ( + 39 ) AS col1 FROM tab2
----
-13
287
-5
287
8
287

query II rowsort
SELECT ALL - col1, col1 + - + col0 AS col1 FROM tab2
----
-51
5
-67
-8
-77
13

query I rowsort
SELECT DISTINCT - + 80 + col2 FROM tab2 AS cor0
----
-22
-40
-57

query I rowsort
SELECT ALL + 26 + 28 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
54
54
54

query I rowsort
SELECT ALL 20 + + col0 * 22 * - - 61 * + col1 * + 83 * + 29 AS col2 FROM tab2 cor0 WHERE col2 + + - col2 * 52 * + + col1 NOT BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8660
SELECT ALL - COUNT( * ) AS col1, - COUNT( - + col2 ) FROM tab0 cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-8660
SELECT ALL - COUNT ( * ) AS col1, - COUNT ( - + col2 ) FROM tab0 cor0
----
-3
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * 56 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + col0 + + col0 AS col0 FROM tab1 AS cor0
----
111
114
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT ALL - COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8663
SELECT ALL - COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT - 92 - ( - - col2 ) FROM tab1
----
-151
-160
-188

query I rowsort
SELECT + ( + 57 ) + col1 AS col1 FROM tab2 AS cor0 WHERE - col2 * col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8666
SELECT ALL - COUNT( * ) DIV + + 50 AS col2, - ( + 33 ) col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col1
----
0
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8666
SELECT ALL - COUNT ( * ) / + + 50 AS col2, - ( + 33 ) col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col1
----
0
-33

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT ALL SUM( + 92 ) FROM tab2 cor0
----
276

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL SUM ( + 92 ) FROM tab2 cor0
----
276

onlyif mysql # aggregate syntax: 
query II rowsort label-8669
SELECT DISTINCT + 84 col0, COUNT( * ) col0 FROM tab2
----
84
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8669
SELECT DISTINCT + 84 col0, COUNT ( * ) col0 FROM tab2
----
84
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8670
SELECT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) * 4 < NULL
----

skipif mysql # not compatible
query III rowsort label-8670
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) * 4 < NULL
----

query II rowsort
SELECT col2, col1 AS col0 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8672
SELECT DISTINCT 49 AS col2, CAST( 80 AS SIGNED ) AS col2 FROM tab1
----
49
80

skipif mysql # not compatible
query II rowsort label-8672
SELECT DISTINCT 49 AS col2, CAST ( 80 AS INTEGER ) AS col2 FROM tab1
----
49
80

onlyif mysql # DIV for integer division: 
query I rowsort label-8673
SELECT col2 DIV - + 26 AS col1 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-8673
SELECT col2 / - + 26 AS col1 FROM tab0
----
-1
-3
0

query I rowsort
SELECT ALL - ( 93 ) AS col1 FROM tab0
----
-93
-93
-93

query II rowsort
SELECT - - 75 * + col1 * 84 * - + col0 + col1, col0 AS col2 FROM tab1 WHERE NOT - 8 IS NULL
----
-2677495
85
-26945053
91
-4498186
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - - 38 col2 FROM tab2
----
1938
2546
2926

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT - MIN( - col1 ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-8677
SELECT - MIN ( - col1 ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
243

query I rowsort
SELECT 91 + + + 78 * col0 AS col0 FROM tab1
----
4069
6721
7189

query II rowsort
SELECT DISTINCT 45, col1 * col0 - + 87 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
45
2259
45
4841
45
4938

query I rowsort
SELECT col1 + col0 * + + col2 FROM tab2 cor0
----
1109
2637
4417

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > + 85 / + col0 + + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8682
SELECT - MIN( - col2 ) AS col0, 65 FROM tab2 AS cor0
----
58
65

skipif mysql # not compatible
query II rowsort label-8682
SELECT - MIN ( - col2 ) AS col0, 65 FROM tab2 AS cor0
----
58
65

query II rowsort
SELECT + 66 * col1, + col0 AS col2 FROM tab2 AS cor0
----
3366
46
4422
75
5082
64

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL BETWEEN NULL AND - col2 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 95 + - + col2 col0 FROM tab1
----
-1
27
36

query I rowsort
SELECT ALL col2 + ( 0 ) * col0 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT DISTINCT - COUNT( * ) - - 2 col2 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8688
SELECT DISTINCT - COUNT ( * ) - - 2 col2 FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8689
SELECT - col0 - + col1 + + CAST( + col0 AS SIGNED ) AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8689
SELECT - col0 - + col1 + + CAST ( + col0 AS INTEGER ) AS col0 FROM tab2
----
-51
-67
-77

query II rowsort
SELECT - col2 * 25 + - col1, + col2 FROM tab2
----
-1077
40
-1517
58
-626
23

query I rowsort
SELECT + col0 + ( - col1 ) FROM tab0 cor0
----
-66
66
96

query I rowsort
SELECT DISTINCT col2 * + - col1 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

query II rowsort
SELECT DISTINCT - col2, col2 AS col0 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 col0, 22 FROM tab0 AS cor0
----
10
22
47
22
99
22

query II rowsort
SELECT col1, - col0 * + + col1 FROM tab0 AS cor0
----
1
-97
21
-1827
81
-1215

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT DISTINCT - - COUNT( * ) * COUNT( DISTINCT + + col1 ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8696
SELECT DISTINCT - - COUNT ( * ) * COUNT ( DISTINCT + + col1 ) AS col2 FROM tab2 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - col1 + col0
----

query I rowsort
SELECT - - ( + 29 ) AS col0 FROM tab0 AS cor0
----
29
29
29

onlyif mysql # DIV for integer division: 
query I rowsort label-8699
SELECT DISTINCT + ( col0 ) DIV col1 * - col2 * + col2 FROM tab1 AS cor0
----
-27648
-4624
-59177

skipif mysql # not compatible
query I rowsort label-8699
SELECT DISTINCT + ( col0 ) / col1 * - col2 * + col2 FROM tab1 AS cor0
----
-27648
-4624
-59177

onlyif mysql # aggregate syntax: 
query II rowsort label-8700
SELECT DISTINCT - + COUNT( * ) AS col2, MAX( 99 ) + - 61 FROM tab0 AS cor0
----
-3
38

skipif mysql # not compatible
query II rowsort label-8700
SELECT DISTINCT - + COUNT ( * ) AS col2, MAX ( 99 ) + - 61 FROM tab0 AS cor0
----
-3
38

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT 67 = - 30 + + 43
----
-46
-64
-75

query I rowsort
SELECT ALL col1 - + 84 * - 82 AS col1 FROM tab1 WHERE NOT ( + col1 ) IN ( ( + col2 ) + - + col1 * - col0 )
----
6893
6902
6935

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT + COUNT( * ) * 54 + - - ( COUNT( * ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
165

skipif mysql # not compatible
query I rowsort label-8703
SELECT + COUNT ( * ) * 54 + - - ( COUNT ( * ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
165

query I rowsort
SELECT - - col0 AS col2 FROM tab0 AS cor0 WHERE NOT + 17 * + - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT 75 * + 21 FROM tab0 AS cor0
----
1575
1575
1575

onlyif mysql # aggregate syntax: 
query II rowsort label-8707
SELECT ALL - + COUNT( * ) AS col0, MAX( - + col2 ) FROM tab0 AS cor0
----
-3
-10

skipif mysql # not compatible
query II rowsort label-8707
SELECT ALL - + COUNT ( * ) AS col0, MAX ( - + col2 ) FROM tab0 AS cor0
----
-3
-10

query I rowsort
SELECT + col2 * 62 AS col0 FROM tab1 AS cor0
----
3658
4216
5952

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( 90 ) NOT BETWEEN NULL AND ( - + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 11 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT - 35 + ( - COUNT( * ) ) * - + 74 FROM tab0 AS cor0
----
187

skipif mysql # not compatible
query I rowsort label-8711
SELECT - 35 + ( - COUNT ( * ) ) * - + 74 FROM tab0 AS cor0
----
187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab1 AS cor0 WHERE 99 BETWEEN 15 * + + col2 + - - col2 + + col2 + + col2 * - col2 + col0 * - col2 AND col1
----

query I rowsort
SELECT ALL + col2 * - + col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT + 93 + - COUNT( * ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-8714
SELECT + 93 + - COUNT ( * ) FROM tab0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT DISTINCT + COUNT( * ) + - 62 FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-8715
SELECT DISTINCT + COUNT ( * ) + - 62 FROM tab2
----
-59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8716
SELECT ALL col1 - + ( + CAST( - 92 AS SIGNED ) ) + + col2 DIV - col1 AS col0 FROM tab0
----
-6
113
173

skipif mysql # not compatible
query I rowsort label-8716
SELECT ALL col1 - + ( + CAST ( - 92 AS INTEGER ) ) + + col2 / - col1 AS col0 FROM tab0
----
-6
113
173

query I rowsort
SELECT ALL + 37 * col2 * + 3 + col0 + - ( + + ( 42 ) ) * - col0 * + 33 AS col2 FROM tab0
----
121779
145528
26022

query I rowsort
SELECT DISTINCT 13 + 28 + + col0 * 86 FROM tab0
----
1331
7523
8383

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT + COUNT( + - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8719
SELECT + COUNT ( + - col2 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT 51 * + - 79 + - col0 AS col2 FROM tab0
----
-4044
-4116
-4126

query I rowsort
SELECT - + col2 AS col0 FROM tab2 AS cor0 WHERE NULL <= col1 * col2
----

query II rowsort
SELECT + col2 - - col2 AS col0, + col1 * ( col2 ) AS col1 FROM tab2 AS cor0
----
116
3886
46
1173
80
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT COUNT( * ) * - ( 0 ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8723
SELECT COUNT ( * ) * - ( 0 ) col0 FROM tab0
----
0

query I rowsort
SELECT ALL - col0 * - + 1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8726
SELECT ALL + ( - col1 ) * - CAST( NULL AS SIGNED ), col2 col1 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8726
SELECT ALL + ( - col1 ) * - CAST ( NULL AS INTEGER ), col2 col1 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <= - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 + - + col0 col1 FROM tab1 AS cor0
----
340
4186
663

query II rowsort
SELECT ALL + col0 * - 19 * + col0 * + 39 * + col2 + + col2, + col0 + col0 AS col2 FROM tab0 AS cor0
----
-56086280
174
-690234732
194
-7836028
30

query I rowsort
SELECT ALL - col1 * - + 40 AS col2 FROM tab0 AS cor0
----
3240
40
840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8731
SELECT DISTINCT + - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8731
SELECT DISTINCT + - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT - COUNT( ALL + 15 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8732
SELECT - COUNT ( ALL + 15 ) AS col0 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( + 97 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT - COUNT( * ) * - ( - ( - 74 ) ) AS col1 FROM tab0
----
222

skipif mysql # not compatible
query I rowsort label-8734
SELECT - COUNT ( * ) * - ( - ( - 74 ) ) AS col1 FROM tab0
----
222

query I rowsort
SELECT DISTINCT 31 * 54 AS col0 FROM tab1
----
1674

onlyif mysql # aggregate syntax: 
query II rowsort label-8736
SELECT DISTINCT - COUNT( * ) AS col2, - COUNT( * ) FROM tab2
----
-3
-3

skipif mysql # not compatible
query II rowsort label-8736
SELECT DISTINCT - COUNT ( * ) AS col2, - COUNT ( * ) FROM tab2
----
-3
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8737
SELECT 42 DIV - + COUNT( DISTINCT + - col0 ) AS col1 FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-8737
SELECT 42 / - + COUNT ( DISTINCT + - col0 ) AS col1 FROM tab1 AS cor0
----
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - - col0 ) * + col0 col2 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT ALL + MIN( DISTINCT + - 54 ) * + 49 col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-2646

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8739
SELECT ALL + MIN ( DISTINCT + - 54 ) * + 49 col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-2646

query I rowsort
SELECT + 86 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT ALL - col1 + 28 * col1 FROM tab2 AS cor0
----
1377
1809
2079

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 98 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8743
SELECT DISTINCT + SUM( - CAST( NULL AS SIGNED ) ) AS col2, 92 AS col1 FROM tab0 AS cor0
----
NULL
92

skipif mysql # not compatible
query II rowsort label-8743
SELECT DISTINCT + SUM ( - CAST ( NULL AS INTEGER ) ) AS col2, 92 AS col1 FROM tab0 AS cor0
----
NULL
92

onlyif mysql # aggregate syntax: 
query II rowsort label-8744
SELECT + + COUNT( * ) * - - 87 col2, + COUNT( * ) FROM tab1 AS cor0
----
261
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8744
SELECT + + COUNT ( * ) * - - 87 col2, + COUNT ( * ) FROM tab1 AS cor0
----
261
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT ALL - MAX( 99 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL - MAX ( 99 ) AS col1 FROM tab0 AS cor0
----
-99

query II rowsort
SELECT ALL 96 + - col2, + col2 + col1 AS col1 FROM tab1 AS cor0
----
0
110
28
115
37
64

query I rowsort
SELECT DISTINCT - col0 * col1 * + col0 AS col2 FROM tab2 AS cor0
----
-107916
-315392
-376875

query I rowsort
SELECT ALL ( - 87 ) * - 63 AS col1 FROM tab1 AS cor0
----
5481
5481
5481

query I rowsort
SELECT - + 93 FROM tab2 WHERE col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 58 > - 55
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + 72 * col1 * + - 66 col2 FROM tab2
----
242398
318459
365968

query I rowsort
SELECT + 76 + - col1 AS col0 FROM tab1
----
29
62
71

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( NULL ) > - 34
----

query I rowsort
SELECT + 37 * - - 11 * - 79 * - col2 AS col2 FROM tab2 cor0
----
1286120
1864874
739519

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 15 * - 36 + + + ( 89 ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d8e040ebbd4f902df88c8e0091ce0ea4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8756
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - + 9 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8756
SELECT DISTINCT - CAST ( NULL AS REAL ) * - + 9 col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT - COUNT( * ) col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8757
SELECT - COUNT ( * ) col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT - MAX( ( - - col2 ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8758
SELECT - MAX ( ( - - col2 ) ) FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT 7 * - 17 * - + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1071

skipif mysql # not compatible
query I rowsort label-8759
SELECT 7 * - 17 * - + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1071

query I rowsort
SELECT ALL + 25 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT MIN( DISTINCT - + col2 ) col1 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8761
SELECT MIN ( DISTINCT - + col2 ) col1 FROM tab0
----
-99

query I rowsort
SELECT ALL - 87 * - - 85 * - col0 FROM tab0 AS cor0
----
110925
643365
717315

query I rowsort
SELECT DISTINCT - ( - - col1 ) * - + col2 FROM tab2 cor0
----
1173
3080
3886

query I rowsort
SELECT DISTINCT + - 2 FROM tab0 cor0
----
-2

query II rowsort
SELECT DISTINCT - col2 * col0, col0 FROM tab0 AS cor0
----
-705
15
-870
87
-9603
97

query II rowsort
SELECT ALL col2, - ( + - col2 ) AS col1 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8767
SELECT ALL - SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) + + MAX( - col2 ) col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8767
SELECT ALL - SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + + MAX ( - col2 ) col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8768
SELECT ALL + COUNT( DISTINCT - - ( + 5 ) ) DIV - COUNT( * ) + 95 * 37 + + ( 74 ) + 57 FROM tab2
----
3646

skipif mysql # not compatible
query I rowsort label-8768
SELECT ALL + COUNT ( DISTINCT - - ( + 5 ) ) / - COUNT ( * ) + 95 * 37 + + ( 74 ) + 57 FROM tab2
----
3646

query I rowsort
SELECT DISTINCT col0 * + - 89 AS col1 FROM tab2
----
-4094
-5696
-6675

query II rowsort
SELECT + col2 + - col2 + 75 AS col2, col2 FROM tab2
----
75
23
75
40
75
58

query I rowsort
SELECT + 81 + - col0 * col1 FROM tab2
----
-2265
-4847
-4944

onlyif mysql # DIV for integer division: 
query I rowsort label-8772
SELECT col1 + + - 32 + - - col2 DIV - - col1 AS col2 FROM tab0 AS cor0
----
-11
49
68

skipif mysql # not compatible
query I rowsort label-8772
SELECT col1 + + - 32 + - - col2 / - - col1 AS col2 FROM tab0 AS cor0
----
-11
49
68

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> col0 - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8774
SELECT DISTINCT - CAST( NULL AS SIGNED ) - 37 FROM tab0 WHERE col1 > col1
----

skipif mysql # not compatible
query I rowsort label-8774
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - 37 FROM tab0 WHERE col1 > col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8775
SELECT ALL col0 + + col0 + - + col0 + + + col0 + - col0 DIV col1 * - + col1 * + col1 FROM tab2
----
128
4639
92

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL col0 + + col0 + - + col0 + + + col0 + - col0 / col1 * - + col1 * + col1 FROM tab2
----
128
4639
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT - MIN( DISTINCT - col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8776
SELECT - MIN ( DISTINCT - col1 ) AS col2 FROM tab1
----
47

query I rowsort
SELECT - 47 - - - 27 FROM tab2
----
-74
-74
-74

query I rowsort
SELECT DISTINCT - col2 - 66 + col2 + - col0 - 90 FROM tab0
----
-171
-243
-253

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT - 70 + - MIN( + 98 ) AS col1 FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-8779
SELECT - 70 + - MIN ( + 98 ) AS col1 FROM tab2 AS cor0
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT ALL + 74 - MIN( - + col1 ) FROM tab2 AS cor0
----
151

skipif mysql # not compatible
query I rowsort label-8780
SELECT ALL + 74 - MIN ( - + col1 ) FROM tab2 AS cor0
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT ALL + + MIN( - 55 ) AS col2 FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-8781
SELECT ALL + + MIN ( - 55 ) AS col2 FROM tab1 AS cor0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8782
SELECT DISTINCT - CAST( - SUM( 38 ) AS SIGNED ) FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-8782
SELECT DISTINCT - CAST ( - SUM ( 38 ) AS INTEGER ) FROM tab2 AS cor0
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8783
SELECT ALL CAST( NULL AS DECIMAL ) * 8 + - COUNT( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL CAST ( NULL AS REAL ) * 8 + - COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8784
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL col1 + - + 92 AS col0 FROM tab2
----
-15
-25
-41

query I rowsort
SELECT DISTINCT + ( - + ( + col2 ) ) + + + col1 FROM tab0
----
-98
11
34

onlyif mysql # DIV for integer division: 
query I rowsort label-8787
SELECT col0 DIV + + 54 AS col1 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8787
SELECT col0 / + + 54 AS col1 FROM tab0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT ALL + + MAX( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8788
SELECT ALL + + MAX ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 col1 FROM tab0 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT - COUNT( ALL + - col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8790
SELECT - COUNT ( ALL + - col0 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8791
SELECT + CAST( + 38 AS SIGNED ) * - 80 * + col2 + + col2 col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8791
SELECT + CAST ( + 38 AS INTEGER ) * - 80 * + col2 + + col2 col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8792
SELECT DISTINCT + - 97 DIV + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-8792
SELECT DISTINCT + - 97 / + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-32

query II rowsort
SELECT DISTINCT + col0, - col2 * col0 * + - 19 FROM tab2 AS cor0
----
46
20102
64
48640
75
82650

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT + MAX( DISTINCT + + 19 ) col0 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8794
SELECT + MAX ( DISTINCT + + 19 ) col0 FROM tab0 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT - MAX( - 56 ) FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-8795
SELECT - MAX ( - 56 ) FROM tab1 AS cor0
----
56

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN col2 / + - ( col2 ) + + col1 AND + - col2
----

query I rowsort
SELECT DISTINCT - 90 + - + col1 + + ( - col0 ) - col0 + - col1 FROM tab0
----
-282
-286
-306

query I rowsort
SELECT DISTINCT 92 * 93 AS col1 FROM tab1
----
8556

onlyif mysql # DIV for integer division: 
query I rowsort label-8799
SELECT ALL col0 DIV + + 89 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8799
SELECT ALL col0 / + + 89 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8800
SELECT ALL - CAST( NULL AS DECIMAL ) / col1 * - + 5 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL - CAST ( NULL AS REAL ) / col1 * - + 5 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT DISTINCT + 36 * - COUNT( * ) + - 24 - - 17 AS col1 FROM tab2 AS cor0
----
-115

skipif mysql # not compatible
query I rowsort label-8801
SELECT DISTINCT + 36 * - COUNT ( * ) + - 24 - - 17 AS col1 FROM tab2 AS cor0
----
-115

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 / + 12 - - 46 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT col1 >= + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT DISTINCT COUNT( * ) - - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-8805
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18

query III rowsort
SELECT * FROM tab1 WHERE - - col1 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col1, + 29 FROM tab0 AS cor0
----
1
29
21
29
81
29

query II rowsort
SELECT DISTINCT - col1, + 88 AS col2 FROM tab2 AS cor0
----
-51
88
-67
88
-77
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT - 60 * + 67 - - 65 + COUNT( * ) FROM tab0 AS cor0
----
-3952

skipif mysql # not compatible
query I rowsort label-8809
SELECT - 60 * + 67 - - 65 + COUNT ( * ) FROM tab0 AS cor0
----
-3952

query I rowsort
SELECT + 58 - - col2 AS col2 FROM tab0 AS cor0
----
105
157
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8811
SELECT * FROM tab0 AS cor0 WHERE - CAST( col1 AS SIGNED ) * + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8811
SELECT * FROM tab0 AS cor0 WHERE - CAST ( col1 AS INTEGER ) * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT - 62 - + COUNT( ALL + col2 ) FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-8812
SELECT - 62 - + COUNT ( ALL + col2 ) FROM tab2 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT + - SUM( ALL + col0 ) - - 83 AS col2 FROM tab1 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-8813
SELECT + - SUM ( ALL + col0 ) - - 83 AS col2 FROM tab1 AS cor0
----
-144

query I rowsort
SELECT DISTINCT col2 * - - 75 FROM tab0 AS cor0
----
3525
7425
750

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 NOT BETWEEN col0 + - ( + col0 ) AND - 70 AND col0 NOT BETWEEN + ( - - 83 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col0, col0 AS col1 FROM tab1
----
51
51
85
85
91
91

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= col0
----

query II rowsort
SELECT ALL col2 AS col2, 13 FROM tab1
----
59
13
68
13
96
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, - col0 - col2 col1 FROM tab0
----
1
-196
21
-97
81
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 75 col0, + col0 AS col1 FROM tab1
----
75
51
75
85
75
91

query I rowsort
SELECT - 29 * + col1 AS col1 FROM tab0
----
-2349
-29
-609

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8822
SELECT DISTINCT - col0 AS col1, col1 + + + 2 - - ( CAST( + col0 AS SIGNED ) ) AS col1 FROM tab1
----
-51
67
-85
92
-91
140

skipif mysql # not compatible
query II rowsort label-8822
SELECT DISTINCT - col0 AS col1, col1 + + + 2 - - ( CAST ( + col0 AS INTEGER ) ) AS col1 FROM tab1
----
-51
67
-85
92
-91
140

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT ALL - SUM( - 30 ) FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL - SUM ( - 30 ) FROM tab0 AS cor0
----
90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 18
----

query II rowsort
SELECT DISTINCT + col1 AS col0, - 24 AS col0 FROM tab2 AS cor0
----
51
-24
67
-24
77
-24

query I rowsort
SELECT + 27 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query II rowsort
SELECT DISTINCT 79 AS col0, + 88 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
79
88

onlyif mysql # aggregate syntax: 
query II rowsort label-8828
SELECT DISTINCT MIN( + col0 ) AS col1, - 5 FROM tab2
----
46
-5

skipif mysql # not compatible
query II rowsort label-8828
SELECT DISTINCT MIN ( + col0 ) AS col1, - 5 FROM tab2
----
46
-5

query I rowsort
SELECT ALL - ( 76 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL < + col0 + + + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 43 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8831
SELECT + 52 DIV - - MAX( ALL 77 ) - + + MIN( - + col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8831
SELECT + 52 / - - MAX ( ALL 77 ) - + + MIN ( - + col1 ) AS col2 FROM tab0 AS cor0
----
81

query II rowsort
SELECT DISTINCT ( + + col2 ) AS col0, - 25 FROM tab0 AS cor0
----
10
-25
47
-25
99
-25

query II rowsort
SELECT col1 + - col2 * + ( - col0 ) AS col1, + col2 FROM tab2
----
1109
23
2637
40
4417
58

query I rowsort
SELECT + 1 + + col2 AS col1 FROM tab0
----
100
11
48

query I rowsort
SELECT 17 + - - col1 FROM tab1
----
22
31
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT + MAX( ALL - 25 ) + + - MAX( DISTINCT - + 57 ) FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-8836
SELECT + MAX ( ALL - 25 ) + + - MAX ( DISTINCT - + 57 ) FROM tab0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT ALL - + MIN( ALL - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL - + MIN ( ALL - col1 ) FROM tab0 AS cor0
----
81

query II rowsort
SELECT DISTINCT + 8, ( + + 85 ) + + col1 AS col2 FROM tab2 AS cor0
----
8
136
8
152
8
162

query I rowsort
SELECT DISTINCT col2 + + - 93 * ( 99 ) FROM tab0 cor0
----
-9108
-9160
-9197

query I rowsort
SELECT ALL - col2 + + 0 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT ( + col0 ) FROM tab0 WHERE NOT ( - 44 ) IS NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 WHERE 78 * + 85 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8843
SELECT COUNT( * ) DIV + 16 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8843
SELECT COUNT ( * ) / + 16 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 18 AS col2 FROM tab1 WHERE col1 + 25 IS NOT NULL
----
18

query III rowsort
SELECT * FROM tab0 WHERE col1 <= + 55
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab1 WHERE 54 NOT BETWEEN NULL AND ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 + + col2 * - col2 IN ( col1 * - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 74 col1 FROM tab1
----
-4366
-5032
-7104

query I rowsort
SELECT DISTINCT 44 * col2 FROM tab2
----
1012
1760
2552

query I rowsort
SELECT - 73 - col0 FROM tab1
----
-124
-158
-164

query III rowsort
SELECT * FROM tab2 WHERE + 97 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 + col2 FROM tab1 WHERE col1 + col1 IS NULL
----

query I rowsort
SELECT - col0 * 44 FROM tab2
----
-2024
-2816
-3300

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 * + 6 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * col1 + + col2 FROM tab1 WHERE NOT 50 NOT BETWEEN NULL AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8856
SELECT ALL col0 DIV 23 col1 FROM tab1
----
2
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8856
SELECT ALL col0 / 23 col1 FROM tab1
----
2
3
3

query I rowsort
SELECT DISTINCT - 6 * - 88 FROM tab0 WHERE NOT ( col1 ) NOT IN ( col0 * + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE col0 * + 87 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 32 + 64 AS col1 FROM tab2
----
96
96
96

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col2 * col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8861
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND ( - col1 / CAST( + ( col2 ) * - col1 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-8861
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND ( - col1 / CAST ( + ( col2 ) * - col1 AS REAL ) )
----

query I rowsort
SELECT col1 + + ( - 15 ) AS col0 FROM tab2
----
36
52
62

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 = - ( 15 )
----

query I rowsort
SELECT - ( + 81 ) AS col1 FROM tab0 AS cor0
----
-81
-81
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 col1 FROM tab1 cor0
----
19

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE + 77 IN ( col0 * 76 )
----

query I rowsort
SELECT DISTINCT - col2 * + 92 FROM tab2 AS cor0
----
-2116
-3680
-5336

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 25 ) NOT BETWEEN - 16 + col2 * col1 AND ( + 7 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN col2 AND ( col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 15 - 2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + ( + ( col1 ) ) FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 + - 7 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + + 96 * + col0 IN ( col2 / col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + ( + 70 ) ) + col2 * ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT DISTINCT + COUNT( * ) * - + ( 64 ) + + 67 FROM tab1
----
-125

skipif mysql # not compatible
query I rowsort label-8875
SELECT DISTINCT + COUNT ( * ) * - + ( 64 ) + + 67 FROM tab1
----
-125

query I rowsort
SELECT DISTINCT - col2 * col1 - + 86 FROM tab1 WHERE NULL IS NULL
----
-1430
-3282
-381

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 32 * col1 ) NOT BETWEEN NULL AND col1 * 78
----

query I rowsort
SELECT DISTINCT + ( + col1 ) + + col1 * - col2 AS col1 FROM tab1
----
-1330
-290
-3149

query I rowsort
SELECT ALL + col0 * 66 + + col2 * col2 FROM tab0
----
16203
3199
5842

query III rowsort
SELECT * FROM tab1 WHERE NULL <> ( - ( - col0 ) / col2 )
----

query I rowsort
SELECT DISTINCT - ( - col2 ) + + 36 FROM tab0
----
135
46
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT ALL - MAX( ALL - col2 ) FROM tab1 WHERE NOT NULL < 55 * - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL - MAX ( ALL - col2 ) FROM tab1 WHERE NOT NULL < 55 * - 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT DISTINCT SUM( + + ( col0 ) ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-8883
SELECT DISTINCT SUM ( + + ( col0 ) ) FROM tab1 cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT + - COUNT( * ) + - 98 FROM tab2 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-8884
SELECT + - COUNT ( * ) + - 98 FROM tab2 AS cor0
----
-101

query I rowsort
SELECT ALL col1 * + - col0 AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT - ( - 32 ) AS col0 FROM tab2 AS cor0
----
32

query I rowsort
SELECT - - col1 + - 81 + - col0 FROM tab2 AS cor0
----
-68
-76
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8888
SELECT - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-8888
SELECT - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IN ( col0 )
----

query I rowsort
SELECT ALL + 42 FROM tab1 AS cor0 WHERE NOT - col0 / + col0 IS NULL
----
42
42
42

query I rowsort
SELECT DISTINCT - ( + - ( col2 ) ) + col1 AS col0 FROM tab0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8891
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - CAST( 49 AS SIGNED ) + col0 )
----

skipif mysql # not compatible
query III rowsort label-8891
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - CAST ( 49 AS INTEGER ) + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 + + col2 * col2 < ( NULL )
----

query I rowsort
SELECT DISTINCT 36 - - - 67 * + col0 FROM tab2
----
-3046
-4252
-4989

onlyif mysql # aggregate syntax: 
query II rowsort label-8894
SELECT ALL + - 3 AS col0, 94 * - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3
282

skipif mysql # not compatible
query II rowsort label-8894
SELECT ALL + - 3 AS col0, 94 * - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3
282

query II rowsort
SELECT + - col0 AS col2, 55 * + col0 FROM tab2 AS cor0
----
-46
2530
-64
3520
-75
4125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 * 11 + + col2 col1 FROM tab2 AS cor0
----
166
183
201

query I rowsort
SELECT DISTINCT - + col1 * + ( col2 ) + col0 AS col2 FROM tab1 AS cor0
----
-1293
-210
-3105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col1, col0 * - 82 col1 FROM tab2 cor0
----
46
-3772
64
-5248
75
-6150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8899
SELECT ALL + 78 * + COUNT( * ) + + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL + 78 * + COUNT ( * ) + + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT 99 * + - col0 + 89 NOT IN ( col2 )
----

query I rowsort
SELECT - col1 FROM tab0 cor0 WHERE NOT 44 * + col0 + 23 <> + 71 + col1 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT DISTINCT COUNT( * ) * + COUNT( + - 7 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8902
SELECT DISTINCT COUNT ( * ) * + COUNT ( + - 7 ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT ALL - COUNT( * ) AS col1 FROM tab0 WHERE NOT 6 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 WHERE NOT 6 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8904
SELECT ALL ( col0 ) DIV 29 FROM tab0
----
0
3
3

skipif mysql # not compatible
query I rowsort label-8904
SELECT ALL ( col0 ) / 29 FROM tab0
----
0
3
3

query I rowsort
SELECT col0 * + col0 * ( col1 ) AS col0 FROM tab0 AS cor0
----
158949
18225
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8906
SELECT - CAST( - ( - 87 ) AS SIGNED ) col1 FROM tab2 AS cor0 WHERE NOT + col1 * + col1 IN ( - col1 * + col0 + - col1 )
----
-87
-87
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8906
SELECT - CAST ( - ( - 87 ) AS INTEGER ) col1 FROM tab2 AS cor0 WHERE NOT + col1 * + col1 IN ( - col1 * + col0 + - col1 )
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT MAX( + col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8907
SELECT MAX ( + col0 ) AS col1 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8908
SELECT ALL + 15 DIV COUNT( * ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8908
SELECT ALL + 15 / COUNT ( * ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT + 18 AS col1 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN + col1 * + col2 * + 54 + col0 AND col2
----

query I rowsort
SELECT - + col1 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( - - col0 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8912
SELECT DISTINCT + 23 DIV - col0 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8912
SELECT DISTINCT + 23 / - col0 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - + col2 * + 25 + 63 AS col1 FROM tab0 AS cor0
----
-1112
-187
-2412

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( 75 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8916
SELECT DISTINCT - col1 * col0 + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8916
SELECT DISTINCT - col1 * col0 + + CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 + + ( + + 17 ) AS col0 FROM tab2
----
63
81
92

query I rowsort
SELECT - col1 * + - col1 AS col0 FROM tab2
----
2601
4489
5929

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( 93 + - 18 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT DISTINCT - COUNT( * ) - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8920
SELECT DISTINCT - COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-6

query II rowsort
SELECT DISTINCT + col0, col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8922
SELECT * FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8922
SELECT * FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - col2 + + col2 + + 30 FROM tab2 AS cor0
----
110
146
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT + 26 - 26 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8924
SELECT + 26 - 26 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT COUNT( * ) AS col2 FROM tab0 WHERE - col1 - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8925
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE - col1 - col2 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE + 65 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8927
SELECT DISTINCT + 91 + + + 39 AS col0, + MAX( col1 ) AS col0 FROM tab0
----
130
81

skipif mysql # not compatible
query II rowsort label-8927
SELECT DISTINCT + 91 + + + 39 AS col0, + MAX ( col1 ) AS col0 FROM tab0
----
130
81

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 > ( - ( ( - col1 ) ) )
----
46
51
23
64
77
40

query I rowsort
SELECT ALL - col2 * + ( + col1 ) AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT - - col1 * - col1 - col2 - + 63 AS col1 FROM tab2 AS cor0
----
-2687
-4610
-6032

query I rowsort
SELECT - col0 * + + col1 * + col1 AS col0 FROM tab2 AS cor0 WHERE NOT - 34 + - + col2 - + col0 IN ( - col0 )
----
-119646
-336675
-379456

query I rowsort
SELECT 87 FROM tab0 cor0 WHERE NOT NULL NOT IN ( - col0, - 0 * col1 * + col1 )
----

query I rowsort
SELECT + - col2 * - + 79 - 80 AS col0 FROM tab2 cor0
----
1737
3080
4502

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8934
SELECT col0 DIV - CAST( - col2 AS SIGNED ) AS col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8934
SELECT col0 / - CAST ( - col2 AS INTEGER ) AS col0 FROM tab2
----
1
1
2

query I rowsort
SELECT - 0 * - + ( - col2 ) FROM tab0
----
0
0
0

query I rowsort
SELECT - col0 * 35 AS col2 FROM tab0
----
-3045
-3395
-525

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT + col2 BETWEEN NULL AND - + 26 / + - ( 16 ) * - 80
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8938
SELECT CAST( NULL AS SIGNED ), + col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-8938
SELECT CAST ( NULL AS INTEGER ), + col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 7 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * - - 17 AS col1 FROM tab0
----
1377
17
357

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT MIN( + col1 ) col2 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8941
SELECT MIN ( + col1 ) col2 FROM tab2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8942
SELECT ALL - col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8943
SELECT ALL - 86 DIV - 65 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8943
SELECT ALL - 86 / - 65 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8944
SELECT ALL - 89 col2, - COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
-89
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8944
SELECT ALL - 89 col2, - COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
-89
0

query I rowsort
SELECT + ( col1 ) * + - col0 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL - 38 + - col2 FROM tab1 AS cor0
----
-106
-134
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8947
SELECT - col2 * col2 + - CAST( NULL AS SIGNED ) * - 73 + col2 * - col2 * + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8947
SELECT - col2 * col2 + - CAST ( NULL AS INTEGER ) * - 73 + col2 * - col2 * + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( - 0 ) > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 63 * col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8950
SELECT + 73 DIV 11 FROM tab2 AS cor0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-8950
SELECT + 73 / 11 FROM tab2 AS cor0
----
6
6
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8951
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - CAST( - + 50 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8951
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - CAST ( - + 50 AS INTEGER )
----

query I rowsort
SELECT - - ( col1 ) AS col2 FROM tab2 AS cor0 WHERE + 23 * - 1 NOT IN ( - 83, col2 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT - + MAX( - - 0 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8953
SELECT - + MAX ( - - 0 ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col0 / - + 64 AS col0 FROM tab0 AS cor0 WHERE col1 + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1 * col2 * + col0 + 93 )
----

query I rowsort
SELECT ALL + - col0 + 56 AS col2 FROM tab2 AS cor0
----
-19
-8
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT + - SUM( - 21 ) AS col0 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-8957
SELECT + - SUM ( - 21 ) AS col0 FROM tab2 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT DISTINCT - COUNT( * ) + + 93 AS col1 FROM tab1 WHERE col0 = - + col1 * + 17
----
93

skipif mysql # not compatible
query I rowsort label-8958
SELECT DISTINCT - COUNT ( * ) + + 93 AS col1 FROM tab1 WHERE col0 = - + col1 * + 17
----
93

query I rowsort
SELECT - ( + 91 ) AS col2 FROM tab2
----
-91
-91
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8960
SELECT DISTINCT col2 DIV - 58 + - col2 FROM tab1
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT col2 / - 58 + - col2 FROM tab1
----
-60
-69
-97

query I rowsort
SELECT DISTINCT + col1 * 0 FROM tab1 WHERE NOT col0 BETWEEN - + 90 * + 56 AND + - col1 AND NOT 14 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8962
SELECT + 48 FROM tab0 WHERE + col0 * 28 + col1 + col1 * - CAST( NULL AS SIGNED ) - - col2 IS NOT NULL AND + col1 NOT IN ( - col1 / - col0 )
----

skipif mysql # not compatible
query I rowsort label-8962
SELECT + 48 FROM tab0 WHERE + col0 * 28 + col1 + col1 * - CAST ( NULL AS INTEGER ) - - col2 IS NOT NULL AND + col1 NOT IN ( - col1 / - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8963
SELECT ALL + col0 DIV + col2 + - col1 FROM tab0
----
-1
-13
-81

skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL + col0 / + col2 + - col1 FROM tab0
----
-1
-13
-81

query I rowsort
SELECT DISTINCT - 91 + - - col2 FROM tab0
----
-44
-81
8

query I rowsort
SELECT ALL col2 + + 47 * - 22 AS col0 FROM tab2
----
-1011
-976
-994

query II rowsort
SELECT ALL - col1 AS col1, 49 FROM tab1
----
-14
49
-47
49
-5
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8967
SELECT ( - - CAST( + col0 AS SIGNED ) ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8967
SELECT ( - - CAST ( + col0 AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + + 15 * + + 15 + - + 4 FROM tab1 cor0
----
221
221
221

query I rowsort
SELECT ALL ( - col2 ) AS col1 FROM tab0 AS cor0 WHERE + 47 * - col1 IS NULL
----

query I rowsort
SELECT + col1 * 32 + col0 * + col0 + - 29 FROM tab0 AS cor0
----
2788
8212
9412

query I rowsort
SELECT + 8 + col2 FROM tab2 AS cor0
----
31
48
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT DISTINCT - COUNT( ALL - 89 ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8972
SELECT DISTINCT - COUNT ( ALL - 89 ) col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + 99 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8974
SELECT + MIN( DISTINCT - ( col0 ) ) DIV + COUNT( * ) FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-8974
SELECT + MIN ( DISTINCT - ( col0 ) ) / + COUNT ( * ) FROM tab1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8975
SELECT ALL + col1 FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL + col1 FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8976
SELECT + ( CAST( + - 75 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-8976
SELECT + ( CAST ( + - 75 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT - MAX( + 97 ) col2 FROM tab2 cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8977
SELECT - MAX ( + 97 ) col2 FROM tab2 cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8978
SELECT ALL - CAST( + 74 AS SIGNED ) FROM tab0 AS cor0
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-8978
SELECT ALL - CAST ( + 74 AS INTEGER ) FROM tab0 AS cor0
----
-74
-74
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT - COUNT( * ) * 79 FROM tab1 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-8979
SELECT - COUNT ( * ) * 79 FROM tab1 AS cor0
----
-237

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - col1 * + + col0 * + col2 FROM tab0
----
-18270
-57105
-9603

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 NOT BETWEEN - col2 * + - col0 AND NULL
----

query II rowsort
SELECT DISTINCT 15 * + + 17 AS col1, col0 * col0 - 29 FROM tab1
----
255
2572
255
7196
255
8252

query I rowsort
SELECT - 77 AS col0 FROM tab1 WHERE NOT col2 * col0 * - col2 / col1 * 6 * + col0 NOT BETWEEN ( - + col0 ) AND col0
----

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT COUNT( * ) * 52 + + COUNT( * ) + + ( - COUNT( * ) ) AS col2 FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-8986
SELECT COUNT ( * ) * 52 + + COUNT ( * ) + + ( - COUNT ( * ) ) AS col2 FROM tab2
----
156

query I rowsort
SELECT ALL 62 + col1 * col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT + MAX( DISTINCT + 5 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8988
SELECT + MAX ( DISTINCT + 5 ) AS col2 FROM tab1 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 * col1 col0 FROM tab1 cor0 WHERE NULL IS NULL
----
1190
3995
425

query I rowsort
SELECT ALL - 62 + col2 FROM tab1
----
-3
34
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT DISTINCT - 29 + - COUNT( * ) AS col0 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-8991
SELECT DISTINCT - 29 + - COUNT ( * ) AS col0 FROM tab0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT ALL + COUNT( + 89 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL + COUNT ( + 89 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT ALL ( - - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8993
SELECT ALL ( - - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 >= - - col0 - + + 52 * - 59
----
1
21
81

query I rowsort
SELECT ALL - 33 FROM tab1 AS cor0 WHERE NOT + col2 * - - ( 31 ) + + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT DISTINCT 1 * - COUNT( * ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8996
SELECT DISTINCT 1 * - COUNT ( * ) col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8997
SELECT DISTINCT - 19 + SUM( - col0 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8997
SELECT DISTINCT - 19 + SUM ( - col0 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 - + ( - - col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8999
SELECT 32 * + CAST( + 86 AS SIGNED ) FROM tab0
----
2752
2752
2752

skipif mysql # not compatible
query I rowsort label-8999
SELECT 32 * + CAST ( + 86 AS INTEGER ) FROM tab0
----
2752
2752
2752

query I rowsort
SELECT ALL + col1 - - + col0 AS col2 FROM tab1
----
138
65
90

query I rowsort
SELECT DISTINCT col0 + - col1 + col0 * + col0 + col1 AS col2 FROM tab1
----
2652
7310
8372

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT DISTINCT - ( - COUNT( * ) ) - - 88 AS col0 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-9002
SELECT DISTINCT - ( - COUNT ( * ) ) - - 88 AS col0 FROM tab0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT DISTINCT + 57 - + COUNT( * ) AS col0 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-9003
SELECT DISTINCT + 57 - + COUNT ( * ) AS col0 FROM tab0
----
54

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 11 col2 FROM tab2 AS cor0
----
-11

query I rowsort
SELECT DISTINCT 7 * - - col1 AS col1 FROM tab1
----
329
35
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, 31 * + + col1 + + col2 AS col2 FROM tab0
----
10
661
47
2558
99
130

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT DISTINCT MIN( ALL 91 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
91

skipif mysql # not compatible
query I rowsort label-9008
SELECT DISTINCT MIN ( ALL 91 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
91

query I rowsort
SELECT 13 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT DISTINCT - 85 * COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-765

skipif mysql # not compatible
query I rowsort label-9010
SELECT DISTINCT - 85 * COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-765

query II rowsort
SELECT DISTINCT + 83, + col2 FROM tab2 AS cor0
----
83
23
83
40
83
58

query I rowsort
SELECT 32 * + col1 FROM tab2 AS cor0
----
1632
2144
2464

onlyif mysql # DIV for integer division: 
query I rowsort label-9013
SELECT DISTINCT + col0 + - 20 DIV ( + 76 ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9013
SELECT DISTINCT + col0 + - 20 / ( + 76 ) FROM tab2 AS cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 col2 FROM tab0 AS cor0
----
-68
-68
-68

query II rowsort
SELECT ALL + col1, col2 + - col2 AS col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT - 27 * MIN( + 51 ) FROM tab1
----
-1377

skipif mysql # not compatible
query I rowsort label-9016
SELECT - 27 * MIN ( + 51 ) FROM tab1
----
-1377

query I rowsort
SELECT ALL - 91 * - col2 + + 37 * + 58 * 33 FROM tab2
----
72911
74458
76096

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 48 = NULL
----

query I rowsort
SELECT DISTINCT + ( 66 ) FROM tab2
----
66

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < + col1 - col2
----

query II rowsort
SELECT - - col0 + + col1, + 78 AS col0 FROM tab1 AS cor0
----
138
78
65
78
90
78

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 + + col0 * - + col0 / 40 * - 66 AND - col1 + + col2 + col0
----

query I rowsort
SELECT - 82 + col1 AS col1 FROM tab0 AS cor0
----
-1
-61
-81

query III rowsort
SELECT * FROM tab1 WHERE - + col2 * 98 - - col2 NOT BETWEEN + - 23 + + + 62 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 96 = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT ALL - + MIN( - - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9026
SELECT ALL - + MIN ( - - col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT ALL + + col1 * - ( 48 ) AS col0 FROM tab0 AS cor0
----
-1008
-3888
-48

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 > NULL
----

query I rowsort
SELECT ALL + 39 * - - col0 * 60 AS col2 FROM tab0 AS cor0
----
203580
226980
35100

query I rowsort
SELECT ALL - col1 + - - col0 * + col0 AS col1 FROM tab1 AS cor0
----
2587
7220
8234

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT - COUNT( ALL + 94 ) - + COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9031
SELECT - COUNT ( ALL + 94 ) - + COUNT ( * ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT - ( + col2 ) FROM tab0 AS cor0 WHERE ( NULL ) >= - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 7 - + col2 col1, col1 AS col1 FROM tab1 AS cor0
----
-103
14
-66
5
-75
47

query II rowsort
SELECT ALL - col0 + - + 86 AS col0, + col2 AS col1 FROM tab1 AS cor0
----
-137
96
-171
59
-177
68

query III rowsort
SELECT * FROM tab2 WHERE + 76 IS NULL
----

query I rowsort
SELECT ALL - 17 + + col2 AS col0 FROM tab2
----
23
41
6

query I rowsort
SELECT DISTINCT 17 + - col1 AS col2 FROM tab2
----
-34
-50
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT ALL - MAX( ALL + + 42 ) AS col0 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL - MAX ( ALL + + 42 ) AS col0 FROM tab1
----
-42

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE - col1 + - 15 <= col2
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 61 <> NULL
----

query I rowsort
SELECT DISTINCT + ( + - col1 ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT col0 * - - col1 * - col0 FROM tab0 AS cor0
----
-158949
-18225
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-9043
SELECT ALL col1 DIV + 51 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL col1 / + 51 AS col0 FROM tab2
----
1
1
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 NOT BETWEEN - + 34 AND NULL
----

query I rowsort
SELECT col0 * + + 92 FROM tab1
----
4692
7820
8372

onlyif mysql # DIV for integer division: 
query I rowsort label-9046
SELECT DISTINCT col1 * col0 DIV 34 FROM tab1 AS cor0
----
12
125
21

skipif mysql # not compatible
query I rowsort label-9046
SELECT DISTINCT col1 * col0 / 34 FROM tab1 AS cor0
----
12
125
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9047
SELECT - COUNT( * ) DIV + 32 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9047
SELECT - COUNT ( * ) / + 32 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9048
SELECT - 9 * - CAST( + + CAST( - 53 AS SIGNED ) AS SIGNED ) + col2 AS col0 FROM tab2 cor0
----
-419
-437
-454

skipif mysql # not compatible
query I rowsort label-9048
SELECT - 9 * - CAST ( + + CAST ( - 53 AS INTEGER ) AS INTEGER ) + col2 AS col0 FROM tab2 cor0
----
-419
-437
-454

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 col1 FROM tab1 cor0
----
83
83
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - 45 ) col0 FROM tab2 AS cor0
----
-45
-45
-45

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 < col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 3 + - + 90 + + col1 FROM tab1 AS cor0
----
-40
-73
-82

query I rowsort
SELECT DISTINCT - 40 AS col2 FROM tab0 WHERE NOT ( NOT ( NULL <> 9 ) ) OR NULL IS NULL
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT ALL + 90 + COUNT( * ) + 51 + - 43 AS col2 FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-9054
SELECT ALL + 90 + COUNT ( * ) + 51 + - 43 AS col2 FROM tab0
----
101

query I rowsort
SELECT col2 + - 69 FROM tab1
----
-1
-10
27

query I rowsort
SELECT ALL + ( - - col1 ) AS col1 FROM tab1 WHERE - col2 + + col1 IS NOT NULL
----
14
47
5

query I rowsort
SELECT col2 * - 79 + + col0 AS col0 FROM tab0
----
-3698
-703
-7724

onlyif mysql # DIV for integer division: 
query I rowsort label-9058
SELECT col1 DIV - - 22 + - + col1 * + col1 FROM tab2
----
-2599
-4486
-5926

skipif mysql # not compatible
query I rowsort label-9058
SELECT col1 / - - 22 + - + col1 * + col1 FROM tab2
----
-2599
-4486
-5926

query I rowsort
SELECT DISTINCT + 65 AS col0 FROM tab0 WHERE NOT + 49 IS NULL
----
65

query II rowsort
SELECT col0 + - col0 + + col1 AS col2, col0 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT col1 + - 57 + + + col0 AS col1 FROM tab2
----
40
84
85

query I rowsort
SELECT - 36 + - col0 + - + col1 AS col0 FROM tab1
----
-101
-126
-174

query I rowsort
SELECT 30 + + col2 AS col2 FROM tab1 WHERE + - 77 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9064
SELECT + - 10 DIV + col1 AS col1 FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-9064
SELECT + - 10 / + col1 AS col1 FROM tab1 AS cor0
----
-2
0
0

query I rowsort
SELECT ALL - col1 * col0 - 92 FROM tab0 AS cor0
----
-1307
-189
-1919

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9066
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - + col0 * - col1 * + col1 / - + CAST( NULL AS SIGNED ) * 2 + - col2 * - col2
----

skipif mysql # not compatible
query III rowsort label-9066
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - + col0 * - col1 * + col1 / - + CAST ( NULL AS INTEGER ) * 2 + - col2 * - col2
----

query II rowsort
SELECT - - col2 AS col0, + 22 AS col1 FROM tab2 AS cor0
----
23
22
40
22
58
22

query I rowsort
SELECT DISTINCT + 99 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT DISTINCT + COUNT( * ) FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9069
SELECT DISTINCT + COUNT ( * ) FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT ALL - 30 - + col1 + col2 AS col1 FROM tab1 AS cor0
----
-9
24
52

query II rowsort
SELECT DISTINCT + + 6 AS col2, col1 FROM tab2 cor0
----
6
51
6
67
6
77

query I rowsort
SELECT ALL + col1 * + - col1 * + col1 AS col1 FROM tab2 AS cor0
----
-132651
-300763
-456533

query II rowsort
SELECT ALL 14 * col0, + col2 AS col0 FROM tab1 AS cor0
----
1190
59
1274
68
714
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9074
SELECT DISTINCT col1 - + + col0 * + col2 * + ( + + CAST( NULL AS SIGNED ) ) * + 35 * - 1 + - 10 col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9074
SELECT DISTINCT col1 - + + col0 * + col2 * + ( + + CAST ( NULL AS INTEGER ) ) * + 35 * - 1 + - 10 col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> col0 * col0 + - - col2 + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 1 * + col0 col2, col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9077
SELECT DISTINCT - col0 + col0 - + 12 * - 29 * - col2 + + CAST( + - col2 AS SIGNED ) FROM tab2 cor0
----
-13960
-20242
-8027

skipif mysql # not compatible
query I rowsort label-9077
SELECT DISTINCT - col0 + col0 - + 12 * - 29 * - col2 + + CAST ( + - col2 AS INTEGER ) FROM tab2 cor0
----
-13960
-20242
-8027

query I rowsort
SELECT + col1 * ( + ( + col2 ) ) + - col0 + - - 95 * - + col1 - - col1 AS col1 FROM tab1 AS cor0
----
-1313
-23
-260

onlyif mysql # DIV for integer division: 
query I rowsort label-9079
SELECT col1 DIV ( 61 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9079
SELECT col1 / ( 61 ) AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9080
SELECT - col0 * ( + col1 ) DIV + 45 FROM tab1
----
-15
-9
-95

skipif mysql # not compatible
query I rowsort label-9080
SELECT - col0 * ( + col1 ) / + 45 FROM tab1
----
-15
-9
-95

query I rowsort
SELECT DISTINCT ( + 25 ) AS col2 FROM tab0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT ALL 8 * - COUNT( * ) FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-9082
SELECT ALL 8 * - COUNT ( * ) FROM tab2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT - SUM( DISTINCT ( - col0 ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9083
SELECT - SUM ( DISTINCT ( - col0 ) ) FROM tab1
----
227

query II rowsort
SELECT + ( - col1 ), col0 FROM tab1
----
-14
51
-47
91
-5
85

query I rowsort
SELECT ALL - 1 * + 7 FROM tab1 AS cor0
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT DISTINCT - - 67 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-9086
SELECT DISTINCT - - 67 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
201

query I rowsort
SELECT + col2 * col1 * - + 78 * col0 AS col2 FROM tab1 AS cor0
----
-1955850
-22685208
-5346432

onlyif mysql # aggregate syntax: 
query II rowsort label-9088
SELECT DISTINCT + COUNT( * ) * 17 AS col0, 61 AS col1 FROM tab2 AS cor0
----
51
61

skipif mysql # not compatible
query II rowsort label-9088
SELECT DISTINCT + COUNT ( * ) * 17 AS col0, 61 AS col1 FROM tab2 AS cor0
----
51
61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9089
SELECT DISTINCT CAST( 40 AS SIGNED ), - col1 DIV - - CAST( + col2 AS SIGNED ) + col0 AS col0 FROM tab0 AS cor0
----
40
14
40
85
40
97

skipif mysql # not compatible
query II rowsort label-9089
SELECT DISTINCT CAST ( 40 AS INTEGER ), - col1 / - - CAST ( + col2 AS INTEGER ) + col0 AS col0 FROM tab0 AS cor0
----
40
14
40
85
40
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9090
SELECT ( - col1 ) DIV + + 93 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9090
SELECT ( - col1 ) / + + 93 AS col2 FROM tab1
----
0
0
0

query II rowsort
SELECT - col2 AS col1, + col0 * 55 FROM tab0
----
-10
4785
-47
825
-99
5335

query I rowsort
SELECT + 32 FROM tab0 AS cor0 WHERE NOT ( + col2 ) < - col1 * - - 45 + - 45
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT + SUM( - + 19 ) col0 FROM tab1 cor0
----
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9093
SELECT + SUM ( - + 19 ) col0 FROM tab1 cor0
----
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9094
SELECT * FROM tab1 AS cor0 WHERE NOT ( 19 ) * - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9094
SELECT * FROM tab1 AS cor0 WHERE NOT ( 19 ) * - CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT - COUNT( + + col1 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9095
SELECT - COUNT ( + + col1 ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 68 + + col1 FROM tab2 AS cor0
----
119
135
145

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT - - MIN( - - col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9097
SELECT - - MIN ( - - col2 ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT DISTINCT col0 + - 58 FROM tab0
----
-43
29
39

onlyif mysql # aggregate syntax: 
query II rowsort label-9099
SELECT - MAX( 37 ), + 34 AS col0 FROM tab1
----
-37
34

skipif mysql # not compatible
query II rowsort label-9099
SELECT - MAX ( 37 ), + 34 AS col0 FROM tab1
----
-37
34

query I rowsort
SELECT + 23 FROM tab2 WHERE NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 78 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 75 - - ( - col0 ) * + 82 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9103
SELECT DISTINCT - - 80 DIV - col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9103
SELECT DISTINCT - - 80 / - col0 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - 21 AND + + 15
----

query I rowsort
SELECT DISTINCT - - col2 FROM tab2 AS cor0 WHERE NOT 24 IS NOT NULL
----

query I rowsort
SELECT - col1 * - - col2 + - + col0 FROM tab0 AS cor0
----
-196
-297
-3822

query I rowsort
SELECT DISTINCT 47 + + col1 FROM tab1
----
52
61
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9108
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 54 + + + 67 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9108
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 54 + + + 67 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL col0 + + + 83 * + 50 AS col2 FROM tab2
----
4196
4214
4225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9110
SELECT ALL + - CAST( + 48 AS SIGNED ) * COUNT( - 54 ) AS col1 FROM tab0 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-9110
SELECT ALL + - CAST ( + 48 AS INTEGER ) * COUNT ( - 54 ) AS col1 FROM tab0 AS cor0
----
-144

query I rowsort
SELECT DISTINCT 27 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col0, + ( col1 ) FROM tab0 AS cor0
----
15
81
87
21
97
1

query II rowsort
SELECT DISTINCT + col1 AS col2, - 89 FROM tab1 cor0
----
14
-89
47
-89
5
-89

query I rowsort
SELECT + col2 * - + col2 AS col0 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9115
SELECT - CAST( NULL AS SIGNED ) / col0 AS col2 FROM tab1 WHERE NOT col2 * + col2 NOT BETWEEN - col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9115
SELECT - CAST ( NULL AS INTEGER ) / col0 AS col2 FROM tab1 WHERE NOT col2 * + col2 NOT BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9116
SELECT ALL - CAST( + - col2 AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL - CAST ( + - col2 AS INTEGER ) FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9117
SELECT SUM( col1 ) DIV 61 col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9117
SELECT SUM ( col1 ) / 61 col2 FROM tab1 AS cor0
----
1

query II rowsort
SELECT - + col2, col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query II rowsort
SELECT ALL - 73, col1 AS col2 FROM tab1 AS cor0
----
-73
14
-73
47
-73
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 20 * + col0 col2 FROM tab0 AS cor0
----
-1740
-1940
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT + + 52 + + + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
61

skipif mysql # not compatible
query I rowsort label-9121
SELECT + + 52 + + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
61

onlyif mysql # DIV for integer division: 
query II rowsort label-9122
SELECT ALL + - 45 DIV - col1 AS col0, ( - col1 ) FROM tab0 AS cor0
----
0
-81
2
-21
45
-1

skipif mysql # not compatible
query II rowsort label-9122
SELECT ALL + - 45 / - col1 AS col0, ( - col1 ) FROM tab0 AS cor0
----
0
-81
2
-21
45
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9123
SELECT DISTINCT - COUNT( * ) DIV - CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9123
SELECT DISTINCT - COUNT ( * ) / - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT col1 * + - col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-9125
SELECT + + 15 * - col0 * col0 * + col0 DIV col0 FROM tab0 AS cor0
----
-113535
-141135
-3375

skipif mysql # not compatible
query I rowsort label-9125
SELECT + + 15 * - col0 * col0 * + col0 / col0 FROM tab0 AS cor0
----
-113535
-141135
-3375

query I rowsort
SELECT DISTINCT + ( + col0 ) + col1 + 72 + + - col2 AS col0 FROM tab1
----
103
142
41

query I rowsort
SELECT 74 + col2 AS col0 FROM tab0
----
121
173
84

query I rowsort
SELECT DISTINCT 96 + + col0 AS col1 FROM tab0
----
111
183
193

query II rowsort
SELECT 87, col2 FROM tab1
----
87
59
87
68
87
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT MIN( + 51 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9130
SELECT MIN ( + 51 ) AS col0 FROM tab2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9131
SELECT ALL CAST( 38 AS SIGNED ) + 51 col2 FROM tab0
----
89
89
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9131
SELECT ALL CAST ( 38 AS INTEGER ) + 51 col2 FROM tab0
----
89
89
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9132
SELECT ALL + col2 + - col1 * + + CAST( NULL AS SIGNED ) * - col2, col2 + col1 col0 FROM tab0 WHERE - 10 / - 85 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9132
SELECT ALL + col2 + - col1 * + + CAST ( NULL AS INTEGER ) * - col2, col2 + col1 col0 FROM tab0 WHERE - 10 / - 85 IS NULL
----

query I rowsort
SELECT ALL - col2 - + + 37 AS col1 FROM tab2
----
-60
-77
-95

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT DISTINCT COUNT( DISTINCT 73 ) AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-9135
SELECT DISTINCT COUNT ( DISTINCT 73 ) AS col0 FROM tab0 cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= + ( + - 84 ) * + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT 65 * + + COUNT( - 0 ) FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-9137
SELECT 65 * + + COUNT ( - 0 ) FROM tab0
----
195

query I rowsort
SELECT - + 71 FROM tab0 WHERE NOT + 41 BETWEEN NULL AND + col2 - + + 33 + col2
----
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, - col1 + col0 AS col0 FROM tab2
----
46
-5
64
-13
75
8

query I rowsort
SELECT DISTINCT - 53 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-53

query I rowsort
SELECT - ( + col1 ) + - - col2 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT - col0 + - - 57 * - col0 * - - ( - + ( 5 ) ) FROM tab0
----
24708
27548
4260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9143
SELECT - - CAST( + 93 AS SIGNED ) FROM tab0 AS cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-9143
SELECT - - CAST ( + 93 AS INTEGER ) FROM tab0 AS cor0
----
93
93
93

query I rowsort
SELECT ALL + 70 AS col0 FROM tab0 cor0
----
70
70
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9145
SELECT + + col1 * 38 + col1 DIV col1 + + col0 + + + 37 FROM tab1 cor0
----
1915
313
621

skipif mysql # not compatible
query I rowsort label-9145
SELECT + + col1 * 38 + col1 / col1 + + col0 + + + 37 FROM tab1 cor0
----
1915
313
621

onlyif mysql # DIV for integer division: 
query I rowsort label-9146
SELECT ALL - + 23 DIV + col0 + + col1 - + col2 AS col2 FROM tab2 AS cor0
----
28
37
9

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL - + 23 / + col0 + + col1 - + col2 AS col2 FROM tab2 AS cor0
----
28
37
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, + col2 col1 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT DISTINCT + col1 + 66 + - + col1 * + 39 AS col0 FROM tab1 AS cor0
----
-124
-1720
-466

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9149
SELECT - + col0 AS col1, col0 * + CAST( NULL AS SIGNED ) * + - 78 * - - col2 AS col2 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-9149
SELECT - + col0 AS col1, col0 * + CAST ( NULL AS INTEGER ) * + - 78 * - - col2 AS col2 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT + COUNT( ALL - - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9150
SELECT + COUNT ( ALL - - col1 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - - ( - - col2 ) / - - col0 * col1 + + - ( - + col1 ) > NULL AND NOT NULL BETWEEN + col2 * col2 / - + col1 AND col2 - - col0 + + + col2 / + 49
----
0

skipif mysql # not compatible
query I rowsort label-9151
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - - ( - - col2 ) / - - col0 * col1 + + - ( - + col1 ) > NULL AND NOT NULL BETWEEN + col2 * col2 / - + col1 AND col2 - - col0 + + + col2 / + 49
----
0

query I rowsort
SELECT col2 + - + col0 AS col1 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col0
----
0

skipif mysql # not compatible
query I rowsort label-9153
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9154
SELECT 61 - + CAST( NULL AS SIGNED ) col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9154
SELECT 61 - + CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT col0 AS col1, + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9156
SELECT DISTINCT + ( - CAST( + col0 AS SIGNED ) ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9156
SELECT DISTINCT + ( - CAST ( + col0 AS INTEGER ) ) FROM tab1
----
-51
-85
-91

query I rowsort
SELECT + + 59 FROM tab2 cor0
----
59
59
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9158
SELECT DISTINCT + col2 * + + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-9158
SELECT DISTINCT + col2 * + + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT - SUM( ALL 10 ) AS col0 FROM tab0 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-9159
SELECT - SUM ( ALL 10 ) AS col0 FROM tab0 cor0
----
-30

query I rowsort
SELECT DISTINCT + - ( 66 ) AS col0 FROM tab2 AS cor0
----
-66

query I rowsort
SELECT DISTINCT + - 24 FROM tab1 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT ALL + SUM( DISTINCT col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-9162
SELECT ALL + SUM ( DISTINCT col0 ) FROM tab1 AS cor0
----
227

query II rowsort
SELECT col0 AS col1, col2 AS col0 FROM tab2 cor0
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT DISTINCT + COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9164
SELECT DISTINCT + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT DISTINCT - COUNT( ALL col1 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9165
SELECT DISTINCT - COUNT ( ALL col1 ) FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9166
SELECT DISTINCT - col0 DIV + 42 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9166
SELECT DISTINCT - col0 / + 42 FROM tab2
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-9167
SELECT ALL col0 DIV + - col0, col0 AS col0 FROM tab1
----
-1
51
-1
85
-1
91

skipif mysql # not compatible
query II rowsort label-9167
SELECT ALL col0 / + - col0, col0 AS col0 FROM tab1
----
-1
51
-1
85
-1
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT - + SUM( col0 ) AS col2 FROM tab2 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9168
SELECT - + SUM ( col0 ) AS col2 FROM tab2 WHERE NOT col1 IS NOT NULL
----
NULL

query I rowsort
SELECT - ( ( - 41 ) ) FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 13 * + - col2 - - + ( + - ( + col2 ) ) + + col0 + + + col1 * 77 FROM tab2 AS cor0 WHERE NULL BETWEEN + col1 AND NULL
----

query I rowsort
SELECT ALL + - 47 AS col2 FROM tab2 AS cor0
----
-47
-47
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 * - 72 col1 FROM tab2
----
-5040
-5040
-5040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + col2 ) col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL + 21 + - - col0 AS col2 FROM tab1 AS cor0
----
106
112
72

query I rowsort
SELECT + ( col0 ) + col0 + - col2 * + + col2 * - + col0 AS col2 FROM tab2 AS cor0
----
102528
24426
252450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9176
SELECT CAST( - col1 AS SIGNED ) + - col2 - - col2 - + 15 * + 63 AS col2 FROM tab0
----
-1026
-946
-966

skipif mysql # not compatible
query I rowsort label-9176
SELECT CAST ( - col1 AS INTEGER ) + - col2 - - col2 - + 15 * + 63 AS col2 FROM tab0
----
-1026
-946
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT COUNT( * ) + + 28 AS col0 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-9177
SELECT COUNT ( * ) + + 28 AS col0 FROM tab1
----
31

query I rowsort
SELECT ( - + 90 ) FROM tab0
----
-90
-90
-90

query I rowsort
SELECT ALL + col0 - + - 96 FROM tab2
----
142
160
171

query II rowsort
SELECT + col2 AS col1, col2 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT DISTINCT col0 - + - col2 AS col1 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT ALL - COUNT( * ) AS col2 FROM tab1, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9182
SELECT ALL - COUNT ( * ) AS col2 FROM tab1, tab2 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, col2 col0 FROM tab2
----
23
23
40
40
58
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > 32
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9185
SELECT DISTINCT + col1 - + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9185
SELECT DISTINCT + col1 - + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 11 - - col2 FROM tab1 AS cor0 WHERE NOT - col0 + - ( - 81 ) * - 91 NOT IN ( col2 * + col1 )
----

query I rowsort
SELECT + col1 * 93 AS col1 FROM tab1
----
1302
4371
465

onlyif mysql # DIV for integer division: 
query III rowsort label-9188
SELECT DISTINCT + col0 DIV + + ( + col1 ) AS col1, col2 * + col0, + col1 AS col2 FROM tab1
----
9 values hashing to 0cf7e75e98e70de43efb86188f27dba2

skipif mysql # not compatible
query III rowsort label-9188
SELECT DISTINCT + col0 / + + ( + col1 ) AS col1, col2 * + col0, + col1 AS col2 FROM tab1
----
9 values hashing to 0cf7e75e98e70de43efb86188f27dba2

query I rowsort
SELECT DISTINCT + + col0 - - col0 AS col2 FROM tab0 WHERE NULL BETWEEN - - 74 * + 44 AND NULL
----

query I rowsort
SELECT + - 44 FROM tab0 AS cor0 WHERE NOT - 38 = - 4
----
-44
-44
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9191
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS SIGNED ) * - AVG ( - + col2 ) - + 86 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9191
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - AVG ( - + col2 ) - + 86 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= col0 * + col1
----

query I rowsort
SELECT - 77 * + - col1 FROM tab2 AS cor0
----
3927
5159
5929

onlyif mysql # aggregate syntax: 
query II rowsort label-9194
SELECT ALL + COUNT( * ), + 20 - - + ( COUNT( * ) ) col1 FROM tab0
----
3
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9194
SELECT ALL + COUNT ( * ), + 20 - - + ( COUNT ( * ) ) col1 FROM tab0
----
3
23

query I rowsort
SELECT DISTINCT col0 * - + col2 FROM tab1
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab1 WHERE NOT col0 + - 43 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT col1 + col2 - + 75 AS col2 FROM tab1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT + 28 <= ( + col1 )
----

query I rowsort
SELECT ALL col1 * col2 + + - 82 FROM tab1 AS cor0
----
1262
213
3114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9200
SELECT DISTINCT MAX( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9200
SELECT DISTINCT MAX ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 + + col2 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 / - col2 * - + col0 + + 62 >= col1
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT DISTINCT + COUNT( ALL + - 66 ) - - 46 AS col2 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-9203
SELECT DISTINCT + COUNT ( ALL + - 66 ) - - 46 AS col2 FROM tab1
----
49

query I rowsort
SELECT - 79 * + col0 + - + 93 AS col1 FROM tab0 AS cor0
----
-1278
-6966
-7756

query I rowsort
SELECT ( + + col1 ) AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9206
SELECT - CAST( NULL AS SIGNED ) / + CAST( - - 42 AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9206
SELECT - CAST ( NULL AS INTEGER ) / + CAST ( - - 42 AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + - col0 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT MAX( DISTINCT col1 ) * + + 59 * 3 * - 8 FROM tab0 AS cor0
----
-114696

skipif mysql # not compatible
query I rowsort label-9208
SELECT MAX ( DISTINCT col1 ) * + + 59 * 3 * - 8 FROM tab0 AS cor0
----
-114696

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT DISTINCT - COUNT( * ) * + 95 AS col0 FROM tab2 cor0
----
-285

skipif mysql # not compatible
query I rowsort label-9209
SELECT DISTINCT - COUNT ( * ) * + 95 AS col0 FROM tab2 cor0
----
-285

query I rowsort
SELECT ALL - 2 * col0 + - col2 - - + 58 FROM tab0 AS cor0
----
-126
-19
-235

query I rowsort
SELECT - ( + 88 ) * - 47 - + 51 - - 98 AS col1 FROM tab2 AS cor0
----
4183
4183
4183

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT - 87 * - 97 * + 12 - COUNT( * ) + SUM( + col1 ) FROM tab0
----
101368

skipif mysql # not compatible
query I rowsort label-9212
SELECT - 87 * - 97 * + 12 - COUNT ( * ) + SUM ( + col1 ) FROM tab0
----
101368

query I rowsort
SELECT DISTINCT 46 + - col0 AS col2 FROM tab0
----
-41
-51
31

query I rowsort
SELECT DISTINCT col0 * + 38 AS col1 FROM tab2
----
1748
2432
2850

query I rowsort
SELECT DISTINCT + ( + col0 ) - + ( + - col2 ) FROM tab2
----
104
133
69

query I rowsort
SELECT col0 * - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - 57 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9218
SELECT ALL + 97 * CAST( - - 38 AS SIGNED ) - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL IN ( 68 + + col2, + 84 * ( - col2 ) ) )
----

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL + 97 * CAST ( - - 38 AS INTEGER ) - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL IN ( 68 + + col2, + 84 * ( - col2 ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) * - col0 * - col0 + 22 col0 FROM tab1 AS cor0
----
-132629
-614103
-753549

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT DISTINCT - 12 - - COUNT( * ) FROM tab1 WHERE NOT NULL BETWEEN col1 AND NULL
----
-12

skipif mysql # not compatible
query I rowsort label-9221
SELECT DISTINCT - 12 - - COUNT ( * ) FROM tab1 WHERE NOT NULL BETWEEN col1 AND NULL
----
-12

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 13 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9223
SELECT DISTINCT ( - col1 ) DIV + 43 + - col0 FROM tab1 AS cor0
----
-51
-85
-92

skipif mysql # not compatible
query I rowsort label-9223
SELECT DISTINCT ( - col1 ) / + 43 + - col0 FROM tab1 AS cor0
----
-51
-85
-92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9224
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN 78 AND + - 31 * + col1
----

skipif mysql # not compatible
query III rowsort label-9224
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN 78 AND + - 31 * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( 79 ) * - 45 col0 FROM tab1 AS cor0 WHERE NOT 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT MIN( ALL 88 ) col2 FROM tab1 cor0
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9226
SELECT MIN ( ALL 88 ) col2 FROM tab1 cor0
----
88

query II rowsort
SELECT DISTINCT col1 * - col0 AS col2, 59 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-1215
59
-1827
59
-97
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 38 AS col2, + 93 col1 FROM tab2 AS cor0
----
-38
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT + 90 * 52 + - 20 * - + COUNT( * ) FROM tab2
----
4740

skipif mysql # not compatible
query I rowsort label-9229
SELECT + 90 * 52 + - 20 * - + COUNT ( * ) FROM tab2
----
4740

query I rowsort
SELECT DISTINCT - col1 + + + 96 FROM tab0
----
15
75
95

query I rowsort
SELECT + ( col1 ) + - 0 AS col1 FROM tab1
----
14
47
5

query I rowsort
SELECT + 72 + col2 AS col0 FROM tab0
----
119
171
82

query I rowsort
SELECT 6 + + - col1 AS col2 FROM tab0
----
-15
-75
5

query I rowsort
SELECT + 39 + + col2 FROM tab1
----
107
135
98

query II rowsort
SELECT DISTINCT 25 * + 59, + col2 FROM tab1 AS cor0
----
1475
59
1475
68
1475
96

query I rowsort
SELECT DISTINCT + ( - col0 ) + + col2 + col0 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT ALL - col0 + col1 + 94 AS col0 FROM tab0 AS cor0
----
-2
160
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT + COUNT( * ) + 82 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-9238
SELECT + COUNT ( * ) + 82 FROM tab1 AS cor0
----
85

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 * 77 <= + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9240
SELECT + col2 DIV - 88 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9240
SELECT + col2 / - 88 FROM tab1
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9241
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= - CAST( - - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9241
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= - CAST ( - - col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9242
SELECT + MAX( DISTINCT + 82 ) DIV - ( - - 10 ) AS col1 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-9242
SELECT + MAX ( DISTINCT + 82 ) / - ( - - 10 ) AS col1 FROM tab1
----
-8

query II rowsort
SELECT DISTINCT - col2, + col2 * - col1 FROM tab1 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT DISTINCT 77 * - ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
693

skipif mysql # not compatible
query I rowsort label-9244
SELECT DISTINCT 77 * - ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9245
SELECT col2 * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / - 36 * + col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1
----

skipif mysql # not compatible
query I rowsort label-9245
SELECT col2 * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / - 36 * + col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT - + ( 62 ) FROM tab2 AS cor0
----
-62
-62
-62

query II rowsort
SELECT + + col1 AS col0, + 12 FROM tab1 AS cor0
----
14
12
47
12
5
12

query II rowsort
SELECT ALL col1 * + col0 + - 11 AS col2, + 60 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 + - - 28 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + + ( ( col2 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - ( + - 25 ) AS col2 FROM tab1 AS cor0
----
-25
-25
-25

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 < col2 * 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT + 96 * SUM( ALL + 12 ) AS col1 FROM tab2
----
3456

skipif mysql # not compatible
query I rowsort label-9252
SELECT + 96 * SUM ( ALL + 12 ) AS col1 FROM tab2
----
3456

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT - COUNT( * ) * + 79 FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-9253
SELECT - COUNT ( * ) * + 79 FROM tab1
----
-237

query I rowsort
SELECT ALL + ( - col1 ) * col2 * 70 FROM tab2
----
-215600
-272020
-82110

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9255
SELECT DISTINCT - 52 * + col2 + - + CAST( NULL AS DECIMAL ) + col2 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9255
SELECT DISTINCT - 52 * + col2 + - + CAST ( NULL AS REAL ) + col2 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9256
SELECT ALL 2 DIV COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9256
SELECT ALL 2 / COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE col1 >= NULL
----

query I rowsort
SELECT + col2 * col1 * + - col0 AS col1 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT ALL - 21 + - + 15 AS col0 FROM tab1
----
-36
-36
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9260
SELECT DISTINCT COUNT( * ) DIV 57 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9260
SELECT DISTINCT COUNT ( * ) / 57 FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE + ( col2 ) IS NULL
----

query II rowsort
SELECT DISTINCT col0, col0 * + ( - 80 ) AS col0 FROM tab1 AS cor0
----
51
-4080
85
-6800
91
-7280

onlyif mysql # DIV for integer division: 
query I rowsort label-9263
SELECT ALL + col1 + - - col0 - - + col1 + + col1 + - 49 - - - 30 + col1 * - - col1 + + col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
2722
4687
6146

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL + col1 + - - col0 - - + col1 + + col1 + - 49 - - - 30 + col1 * - - col1 + + col1 / + col1 AS col1 FROM tab2 AS cor0
----
2722
4687
6146

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT DISTINCT + 92 * - COUNT( * ) + - COUNT( ALL - col2 ) FROM tab1
----
-279

skipif mysql # not compatible
query I rowsort label-9264
SELECT DISTINCT + 92 * - COUNT ( * ) + - COUNT ( ALL - col2 ) FROM tab1
----
-279

query III rowsort
SELECT * FROM tab1 WHERE - 21 BETWEEN NULL AND - col2 * col1 * - col0 + + 62 + 56 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT ALL 2 - COUNT( col0 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9266
SELECT ALL 2 - COUNT ( col0 ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT COUNT( 32 ) * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-9267
SELECT COUNT ( 32 ) * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9268
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9269
SELECT ALL + CAST( - 65 AS SIGNED ) DIV - col1 + - + 39 - - 67 FROM tab1 AS cor0
----
29
32
41

skipif mysql # not compatible
query I rowsort label-9269
SELECT ALL + CAST ( - 65 AS INTEGER ) / - col1 + - + 39 - - 67 FROM tab1 AS cor0
----
29
32
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col2 FROM tab2 AS cor0 WHERE NOT + ( + + col0 ) IS NULL AND NOT - col0 / + col0 + - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT + + COUNT( * ) - + - 0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9271
SELECT + + COUNT ( * ) - + - 0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9272
SELECT ALL - - CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE NOT ( NULL ) IN ( col1, ( + col0 ) )
----

skipif mysql # not compatible
query I rowsort label-9272
SELECT ALL - - CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE NOT ( NULL ) IN ( col1, ( + col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9273
SELECT ALL * FROM tab2 WHERE CAST( NULL AS SIGNED ) NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9273
SELECT ALL * FROM tab2 WHERE CAST ( NULL AS INTEGER ) NOT IN ( + CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, col2 col1 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT - col2 * - col0 FROM tab0 WHERE NOT + - 99 - - 83 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9276
SELECT - ( + CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9276
SELECT - ( + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT + MAX( + + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9277
SELECT + MAX ( + + col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9278
SELECT - 65 DIV 92 - COUNT( ALL col2 + - ( - col0 + - col2 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9278
SELECT - 65 / 92 - COUNT ( ALL col2 + - ( - col0 + - col2 ) ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT ALL MAX( ( 3 ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL MAX ( ( 3 ) ) AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - 58 * col1 FROM tab1 WHERE NOT 19 <> col1 + - col1
----

query I rowsort
SELECT ALL ( AVG ( ALL + 69 ) ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col1 - + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT COUNT( + 78 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9283
SELECT COUNT ( + 78 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 31 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN col0 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9285
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN col0 AND ( NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9286
SELECT col2 + - 7 DIV + col1 AS col2 FROM tab1
----
58
68
96

skipif mysql # not compatible
query I rowsort label-9286
SELECT col2 + - 7 / + col1 AS col2 FROM tab1
----
58
68
96

query I rowsort
SELECT 10 * + col1 AS col2 FROM tab1
----
140
470
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT DISTINCT - COUNT( * ) * 65 FROM tab2 WHERE ( NULL ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9288
SELECT DISTINCT - COUNT ( * ) * 65 FROM tab2 WHERE ( NULL ) = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT DISTINCT COUNT( - 4 ) + - 58 FROM tab1
----
-55

skipif mysql # not compatible
query I rowsort label-9289
SELECT DISTINCT COUNT ( - 4 ) + - 58 FROM tab1
----
-55

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 ) BETWEEN 13 AND col0 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 49 * col0 - + col0 * 36 FROM tab1
----
-4335
-7225
-7735

query I rowsort
SELECT ALL 52 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col0 ) BETWEEN + col1 * col0 AND - 55 * ( 76 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9294
SELECT * FROM tab1 WHERE NOT ( + 25 ) + CAST( NULL AS SIGNED ) * + col2 IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-9294
SELECT * FROM tab1 WHERE NOT ( + 25 ) + CAST ( NULL AS INTEGER ) * + col2 IN ( col2 )
----

query I rowsort
SELECT ALL 63 * col2 FROM tab0
----
2961
6237
630

query I rowsort
SELECT + 19 * + col1 AS col0 FROM tab0
----
1539
19
399

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - 90 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT - COUNT( * ) * + ( MIN( DISTINCT ( 41 ) ) ) + + MIN( ALL ( 20 ) ) * 9 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-9298
SELECT - COUNT ( * ) * + ( MIN ( DISTINCT ( 41 ) ) ) + + MIN ( ALL ( 20 ) ) * 9 FROM tab1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9299
SELECT - CAST( 74 AS SIGNED ) * + col2 col1 FROM tab2
----
-1702
-2960
-4292

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9299
SELECT - CAST ( 74 AS INTEGER ) * + col2 col1 FROM tab2
----
-1702
-2960
-4292

query I rowsort
SELECT + 9 * + col2 AS col0 FROM tab0
----
423
891
90

query I rowsort
SELECT ALL - 30 FROM tab2 WHERE ( NULL ) IS NULL
----
-30
-30
-30

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT ( col2 ) <= ( + col1 )
----
51
85
91

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( 36 - - 91 ) >= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9304
SELECT DISTINCT ( + col2 ) + + col1 DIV col0 AS col2 FROM tab2 AS cor0
----
24
41
58

skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT ( + col2 ) + + col1 / col0 AS col2 FROM tab2 AS cor0
----
24
41
58

query I rowsort
SELECT col1 - - 59 FROM tab0
----
140
60
80

query I rowsort
SELECT 62 AS col0 FROM tab0 WHERE NULL IS NULL
----
62
62
62

query III rowsort
SELECT * FROM tab0 WHERE + 56 IN ( 88 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9308
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NOT CAST( NULL AS SIGNED ) <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-9308
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NOT CAST ( NULL AS INTEGER ) <= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - ( - 68 ) FROM tab0 AS cor0
----
68

query I rowsort
SELECT DISTINCT 12 * + col1 FROM tab0 cor0
----
12
252
972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9311
SELECT DISTINCT + 27 - + 79 DIV - CAST( COUNT( * ) * MAX( DISTINCT - col0 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-9311
SELECT DISTINCT + 27 - + 79 / - CAST ( COUNT ( * ) * MAX ( DISTINCT - col0 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 * col0 col2 FROM tab0 AS cor0
----
1914
2134
330

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( - ( + 81 ) * col0 ) AND NULL
----

query I rowsort
SELECT + - col0 * + 26 FROM tab2 AS cor0
----
-1196
-1664
-1950

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9315
SELECT DISTINCT CAST( NULL AS DECIMAL ) / + 46 * 61 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9315
SELECT DISTINCT CAST ( NULL AS REAL ) / + 46 * 61 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 WHERE NOT + col0 + + col0 IS NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 31 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9318
SELECT 56 DIV + + 78 * + CAST( COUNT( DISTINCT 79 ) AS SIGNED ) col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9318
SELECT 56 / + + 78 * + CAST ( COUNT ( DISTINCT 79 ) AS INTEGER ) col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - 60 FROM tab1 WHERE NULL IN ( col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9320
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9320
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + 99 )
----

query I rowsort
SELECT ALL - - 61 * 63 FROM tab0 cor0
----
3843
3843
3843

query I rowsort
SELECT + ( - 92 ) AS col1 FROM tab0 AS cor0
----
-92
-92
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9324
SELECT - - 40 * COUNT( ALL - 14 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9324
SELECT - - 40 * COUNT ( ALL - 14 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ( - + ( + - col1 ) ) FROM tab2
----
51
67
77

query I rowsort
SELECT + col2 + - 68 FROM tab0
----
-21
-58
31

query I rowsort
SELECT + + 98 AS col1 FROM tab0 cor0
----
98
98
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9328
SELECT col2 + + 28 / - col2 FROM tab0 AS cor0 WHERE NULL <> ( + ( - - CAST( NULL AS SIGNED ) ) * + col1 )
----

skipif mysql # not compatible
query I rowsort label-9328
SELECT col2 + + 28 / - col2 FROM tab0 AS cor0 WHERE NULL <> ( + ( - - CAST ( NULL AS INTEGER ) ) * + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9329
SELECT CAST( - COUNT( 28 ) AS SIGNED ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9329
SELECT CAST ( - COUNT ( 28 ) AS INTEGER ) col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT 8 * 18 FROM tab2 AS cor0 WHERE ( ( + col1 ) ) = + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT ALL - ( - - COUNT( * ) ) * - ( - 94 ) FROM tab1 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL - ( - - COUNT ( * ) ) * - ( - 94 ) FROM tab1 AS cor0
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT + ( + SUM( ALL + ( + 18 ) ) ) col1 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9333
SELECT + ( + SUM ( ALL + ( + 18 ) ) ) col1 FROM tab2 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT ALL - ( + COUNT( * ) ) + - COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL - ( + COUNT ( * ) ) + - COUNT ( * ) FROM tab0 AS cor0
----
-6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + 45 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9336
SELECT + ( + col0 ) + - col0 * - col1 FROM tab1 AS cor0 WHERE NULL BETWEEN - CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) * col0 AND col0
----

skipif mysql # not compatible
query I rowsort label-9336
SELECT + ( + col0 ) + - col0 * - col1 FROM tab1 AS cor0 WHERE NULL BETWEEN - CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) * col0 AND col0
----

query I rowsort
SELECT ALL col2 + - 61 + col1 - + ( col1 ) AS col0 FROM tab2
----
-21
-3
-38

query I rowsort
SELECT ALL 29 + 66 * - col0 AS col2 FROM tab2 WHERE 6 * col0 IS NOT NULL
----
-3007
-4195
-4921

onlyif mysql # DIV for integer division: 
query I rowsort label-9339
SELECT DISTINCT col2 + - col0 DIV + col1 AS col1 FROM tab1
----
42
67
93

skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT col2 + - col0 / + col1 AS col1 FROM tab1
----
42
67
93

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9340
SELECT * FROM tab1 WHERE NULL NOT IN ( col2 * + + 58 / + ( + CAST( NULL AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-9340
SELECT * FROM tab1 WHERE NULL NOT IN ( col2 * + + 58 / + ( + CAST ( NULL AS REAL ) ) )
----

query I rowsort
SELECT ALL - col2 + 41 * + - col2 * - + 91 AS col0 FROM tab0
----
175310
369270
37300

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT ALL - COUNT( * ) * - + ( 54 ) AS col0 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-9342
SELECT ALL - COUNT ( * ) * - + ( 54 ) AS col0 FROM tab1
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9343
SELECT 32 * - CAST( NULL AS SIGNED ) + - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9343
SELECT 32 * - CAST ( NULL AS INTEGER ) + - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( col0 ) * - + 85 AS col0 FROM tab1 cor0
----
-4335
-7225
-7735

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 35 + + - 75 * + 58 * col1 col0 FROM tab2 AS cor0
----
-221885
-291485
-334985

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 <= col1
----
46
51
23
64
77
40

query II rowsort
SELECT + ( ( 28 ) ) AS col2, col1 FROM tab0
----
28
1
28
21
28
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + 53 ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT + COUNT( * ) * 90 * - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= - 33 * col1
----
0

skipif mysql # not compatible
query I rowsort label-9349
SELECT + COUNT ( * ) * 90 * - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= - 33 * col1
----
0

query I rowsort
SELECT ALL col0 * - col2 * - col0 * col0 AS col0 FROM tab1 AS cor0
----
12734496
36233375
51242828

query II rowsort
SELECT DISTINCT col1, col1 FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, + 78 + + + 11 + + col2 + - ( - col2 ) + 78 col2 FROM tab1 AS cor0
----
14
359
47
303
5
285

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT DISTINCT + COUNT( - col2 ) * + 77 AS col1 FROM tab0 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-9353
SELECT DISTINCT + COUNT ( - col2 ) * + 77 AS col1 FROM tab0 AS cor0
----
231

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - + 71 AND 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT DISTINCT + COUNT( ALL - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9355
SELECT DISTINCT + COUNT ( ALL - col1 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9356
SELECT - - col0 + CAST( + col2 AS SIGNED ) * - 18 * - 95 FROM tab2 AS cor0
----
39376
68464
99255

skipif mysql # not compatible
query I rowsort label-9356
SELECT - - col0 + CAST ( + col2 AS INTEGER ) * - 18 * - 95 FROM tab2 AS cor0
----
39376
68464
99255

query I rowsort
SELECT col0 + + 12 AS col2 FROM tab1 AS cor0
----
103
63
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9358
SELECT DISTINCT + col1 * CAST( + + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-9358
SELECT DISTINCT + col1 * CAST ( + + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT DISTINCT + - ( - COUNT( - 58 ) ) + + + 55 FROM tab1 cor0
----
58

skipif mysql # not compatible
query I rowsort label-9359
SELECT DISTINCT + - ( - COUNT ( - 58 ) ) + + + 55 FROM tab1 cor0
----
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 41 / - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( col2 ) * col2 - + + col1 + - col0 AS col1 FROM tab1
----
3391
4486
9151

query I rowsort
SELECT DISTINCT - 4 + + col2 AS col0 FROM tab2
----
19
36
54

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> - 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT DISTINCT + 77 - COUNT( * ) AS col0 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-9364
SELECT DISTINCT + 77 - COUNT ( * ) AS col0 FROM tab0
----
74

query II rowsort
SELECT col2, + 59 AS col1 FROM tab1
----
59
59
68
59
96
59

query I rowsort
SELECT - + col1 * - 41 FROM tab1 AS cor0
----
1927
205
574

query I rowsort
SELECT ALL - 55 * + - ( + col0 ) FROM tab2
----
2530
3520
4125

query I rowsort
SELECT DISTINCT - 93 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9369
SELECT - CAST( NULL AS SIGNED ) / - col0 * col0 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9369
SELECT - CAST ( NULL AS INTEGER ) / - col0 * col0 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 33 * + 37 AS col1 FROM tab0
----
1221
1221
1221

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT ALL - COUNT( * ) + 17 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
8

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL - COUNT ( * ) + 17 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9372
SELECT ALL + col2 * col1 DIV - - col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL + col2 * col1 / - - col2 FROM tab0
----
1
21
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 22 IS NOT NULL
----

query I rowsort
SELECT ALL + + 96 * + AVG ( DISTINCT col2 ) FROM tab0 AS cor0 WHERE 26 + - - col2 = + + 15
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9375
SELECT * FROM tab1 cor0 WHERE NOT + 82 * CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9375
SELECT * FROM tab1 cor0 WHERE NOT + 82 * CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9376
SELECT * FROM tab2 AS cor0 WHERE NOT col1 IN ( - CAST( - col2 AS DECIMAL ) - - + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9376
SELECT * FROM tab2 AS cor0 WHERE NOT col1 IN ( - CAST ( - col2 AS REAL ) - - + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 34 * ( + col1 ) AS col1 FROM tab1 AS cor0
----
1598
170
476

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT COUNT( * ) * + 28 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-9378
SELECT COUNT ( * ) * + 28 FROM tab1 AS cor0
----
84

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 * + + 78 ) IS NOT NULL
----

query II rowsort
SELECT 98 AS col2, 82 FROM tab2
----
98
82
98
82
98
82

query I rowsort
SELECT DISTINCT 25 * 70 * - 45 FROM tab1
----
-78750

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT DISTINCT + + MIN( + col0 ) FROM tab1 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9382
SELECT DISTINCT + + MIN ( + col0 ) FROM tab1 WHERE NOT NULL <= NULL
----
NULL

query I rowsort
SELECT DISTINCT + col1 * + + 31 AS col1 FROM tab0
----
2511
31
651

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9384
SELECT DISTINCT + COUNT( * ) DIV - COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) FROM tab2
----
-1

query I rowsort
SELECT ALL + - col2 FROM tab2 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT + MIN( DISTINCT - ( - 27 ) ) col1 FROM tab2
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9386
SELECT + MIN ( DISTINCT - ( - 27 ) ) col1 FROM tab2
----
27

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( col2 * - + 34 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9388
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN NULL AND - - ( + - col2 ) * - col2 + ( - + col0 ) / - col2
----

skipif mysql # not compatible
query III rowsort label-9388
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN NULL AND - - ( + - col2 ) * - col2 + ( - + col0 ) / - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9389
SELECT - col1 DIV 82 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9389
SELECT - col1 / 82 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 + col2 AS col0 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
-77
2
32

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 / - ( + col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 * col0 + - col0 + + col2 col1 FROM tab0 AS cor0
----
1837
2136
362

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9393
SELECT DISTINCT + - MIN( + + 1 ) DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9393
SELECT DISTINCT + - MIN ( + + 1 ) / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9394
SELECT ( col0 ) / - 13 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9394
SELECT ( col0 ) / - 13 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9395
SELECT ALL - 29 AS col2, col1 DIV 44 FROM tab0 cor0
----
-29
0
-29
0
-29
1

skipif mysql # not compatible
query II rowsort label-9395
SELECT ALL - 29 AS col2, col1 / 44 FROM tab0 cor0
----
-29
0
-29
0
-29
1

query I rowsort
SELECT - 28 * - - 37 FROM tab1 cor0
----
-1036
-1036
-1036

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9397
SELECT + COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9397
SELECT + COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT - col2 * - ( col1 ) AS col0 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT - col1 - + col0 * - - col1 AS col2 FROM tab0
----
-1296
-1848
-98

query I rowsort
SELECT - 28 - + 8 AS col2 FROM tab0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT DISTINCT - COUNT( * ) + - 77 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-9401
SELECT DISTINCT - COUNT ( * ) + - 77 FROM tab0
----
-80

query I rowsort
SELECT ALL + 16 + + 18 AS col2 FROM tab0
----
34
34
34

query I rowsort
SELECT col1 * col2 AS col1 FROM tab0 WHERE col1 BETWEEN + col2 + col0 + - 92 * + col2 * + col2 AND ( + col0 )
----
210
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + 52 ) col0, - 27 AS col1 FROM tab0
----
52
-27

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9406
SELECT - COUNT( * ) AS col1, COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9
9

skipif mysql # not compatible
query II rowsort label-9406
SELECT - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT MIN( - ( col2 ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9407
SELECT MIN ( - ( col2 ) ) FROM tab2
----
-58

query I rowsort
SELECT col1 * + - col1 * + col2 AS col0 FROM tab0 AS cor0
----
-308367
-4410
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9409
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9409
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - ( col0 ) ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 BETWEEN ( 70 ) AND 64 + + col2
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT ALL - MAX( ALL col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL - MAX ( ALL col1 ) AS col1 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 89 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9414
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + 10 col1 FROM tab0 cor0
----
-10
-210
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT DISTINCT - SUM( ALL col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9416
SELECT DISTINCT - SUM ( ALL col0 ) FROM tab1 AS cor0
----
-227

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + col0 AND - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9418
SELECT + ( CAST( NULL AS SIGNED ) ) + + - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9418
SELECT + ( CAST ( NULL AS INTEGER ) ) + + - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT + - 76 > - - col2
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT ALL + MIN( + col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL + MIN ( + col2 ) AS col0 FROM tab1
----
59

query I rowsort
SELECT DISTINCT - 15 * - - col2 FROM tab0
----
-1485
-150
-705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9422
SELECT ALL + - CAST( 7 AS SIGNED ) - + COUNT( ALL - + CAST( NULL AS SIGNED ) ) * + MIN( - - col2 ) col2 FROM tab0 WHERE NOT + - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9422
SELECT ALL + - CAST ( 7 AS INTEGER ) - + COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) * + MIN ( - - col2 ) col2 FROM tab0 WHERE NOT + - col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT - 20 * - COUNT( * ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-9423
SELECT - 20 * - COUNT ( * ) FROM tab0
----
60

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col1 + - + col1 AND - col2 + - - 26
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9425
SELECT - CAST( + 97 AS SIGNED ) DIV + col0 AS col2 FROM tab1 WHERE + - ( col2 ) IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9425
SELECT - CAST ( + 97 AS INTEGER ) / + col0 AS col2 FROM tab1 WHERE + - ( col2 ) IS NOT NULL
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9426
SELECT ALL col1 * - + col0 * + - CAST( NULL AS SIGNED ) / - 9 * + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL col1 * - + col0 * + - CAST ( NULL AS INTEGER ) / - 9 * + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9427
SELECT ALL + COUNT( * ) * 13 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - col0 + - - CAST( + 23 AS SIGNED ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL + COUNT ( * ) * 13 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - col0 + - - CAST ( + 23 AS INTEGER ) AND ( NULL )
----
0

query I rowsort
SELECT ALL col0 * + - col0 AS col1 FROM tab1 cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT ALL + - COUNT( col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL + - COUNT ( col0 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col0 + - 98 + - + 60 FROM tab2
----
-204
-222
-233

query II rowsort
SELECT 92 AS col0, col0 + - col2 + - 48 * - col0 + col2 - + - ( - col0 ) AS col0 FROM tab0
----
92
4176
92
4656
92
720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9432
SELECT MAX( - CAST( + col1 AS SIGNED ) ) col0 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9432
SELECT MAX ( - CAST ( + col1 AS INTEGER ) ) col0 FROM tab0
----
-1

query I rowsort
SELECT ALL col0 + col0 - - - 15 FROM tab2
----
113
135
77

query II rowsort
SELECT DISTINCT - - 92, - 82 AS col2 FROM tab1 AS cor0
----
92
-82

query I rowsort
SELECT - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( col1 IS NULL )
----
-15
-87
-97

query II rowsort
SELECT - col1, col2 - + + col2 FROM tab1 cor0 WHERE NOT + col0 NOT BETWEEN + + 93 AND - col0 / - 76
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9437
SELECT 92 * col1 AS col0, col2 DIV 46 col1 FROM tab1
----
1288
2
4324
1
460
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9437
SELECT 92 * col1 AS col0, col2 / 46 col1 FROM tab1
----
1288
2
4324
1
460
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 3 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9439
SELECT ALL + COUNT( - - col0 ) AS col0, - COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-9439
SELECT ALL + COUNT ( - - col0 ) AS col0, - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN NULL AND - 78 * - col2 + - col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT - MIN( + 40 ) * MIN( col1 ) AS col1 FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-9442
SELECT - MIN ( + 40 ) * MIN ( col1 ) AS col1 FROM tab0 AS cor0
----
-40

query I rowsort
SELECT + col2 * - col1 * - col2 * + col0 FROM tab0 AS cor0
----
182700
2683935
950697

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE col1 * col1 + 97 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9445
SELECT DISTINCT + 78 * + 6 + - col0 - - 31 + + ( 34 ) * + - col0 DIV - col0 FROM tab1
----
442
448
482

skipif mysql # not compatible
query I rowsort label-9445
SELECT DISTINCT + 78 * + 6 + - col0 - - 31 + + ( 34 ) * + - col0 / - col0 FROM tab1
----
442
448
482

query III rowsort
SELECT * FROM tab2 WHERE NOT 99 * + col0 + 45 - + + col2 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( + 56 ) FROM tab0
----
56
56
56

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > - col1
----

query II rowsort
SELECT + 7 * 58 + col2, col0 AS col2 FROM tab0 AS cor0
----
416
87
453
15
505
97

query I rowsort
SELECT ALL - ( + col0 ) FROM tab1 AS cor0 WHERE - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 BETWEEN NULL AND - + col0 * - ( - + 50 )
----

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT - 44 * + + col2 * + 42 AS col2 FROM tab0 WHERE + 63 <= NULL
----

query I rowsort
SELECT - + 5 AS col1 FROM tab0 AS cor0
----
-5
-5
-5

query I rowsort
SELECT 26 AS col0 FROM tab0 cor0
----
26
26
26

query I rowsort
SELECT DISTINCT - 20 * col2 * - col1 FROM tab0 AS cor0
----
1980
4200
76140

query I rowsort
SELECT ALL + col1 * + + col0 - col2 AS col1 FROM tab1 AS cor0
----
366
4209
618

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT + + col2 > NULL )
----

query I rowsort
SELECT 55 - - 1 + - col1 * + - ( col0 ) + 35 + - col2 * + ( - 86 ) + + col0 FROM tab2 AS cor0
----
10179
4461
8523

query I rowsort
SELECT + - 1 - + + col0 AS col1 FROM tab1 AS cor0
----
-52
-86
-92

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT + col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT - ( - - COUNT( * ) ) - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9462
SELECT - ( - - COUNT ( * ) ) - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT DISTINCT + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT + - ( - 46 ) - + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-9464
SELECT + - ( - 46 ) - + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
49

query I rowsort
SELECT ALL - col1 + + - col1 FROM tab0
----
-162
-2
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9466
SELECT DISTINCT CAST( + + col0 AS SIGNED ) + + + col2 + col0 FROM tab0
----
184
293
77

skipif mysql # not compatible
query I rowsort label-9466
SELECT DISTINCT CAST ( + + col0 AS INTEGER ) + + + col2 + col0 FROM tab0
----
184
293
77

query I rowsort
SELECT DISTINCT + col1 + + - 42 + + col1 * col2 FROM tab2
----
1182
3115
3911

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT DISTINCT - SUM( ALL - - col0 ) * ( - ( - 38 ) ) AS col0 FROM tab2
----
-7030

skipif mysql # not compatible
query I rowsort label-9468
SELECT DISTINCT - SUM ( ALL - - col0 ) * ( - ( - 38 ) ) AS col0 FROM tab2
----
-7030

onlyif mysql # DIV for integer division: 
query I rowsort label-9469
SELECT ALL + 21 DIV + ( col0 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL + 21 / + ( col0 ) FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9470
SELECT - col2 * + col2 * col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9470
SELECT - col2 * + col2 * col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT + SUM( ALL + 53 ) AS col0 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-9471
SELECT + SUM ( ALL + 53 ) AS col0 FROM tab0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT DISTINCT + MIN( ALL + 95 ) FROM tab0 cor0
----
95

skipif mysql # not compatible
query I rowsort label-9472
SELECT DISTINCT + MIN ( ALL + 95 ) FROM tab0 cor0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9473
SELECT DISTINCT CAST( + 2 AS SIGNED ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9473
SELECT DISTINCT CAST ( + 2 AS INTEGER ) FROM tab2 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT ALL - SUM( + col0 ) * ( - + COUNT( * ) ) + 43 FROM tab1 AS cor0
----
724

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL - SUM ( + col0 ) * ( - + COUNT ( * ) ) + 43 FROM tab1 AS cor0
----
724

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9475
SELECT DISTINCT + - CAST( - col1 AS SIGNED ) DIV - ( - col2 ) FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT + - CAST ( - col1 AS INTEGER ) / - ( - col2 ) FROM tab0 AS cor0
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9476
SELECT CAST( - + col1 AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9476
SELECT CAST ( - + col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-9477
SELECT + 28 DIV - col1 FROM tab1
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-9477
SELECT + 28 / - col1 FROM tab1
----
-2
-5
0

query II rowsort
SELECT DISTINCT + col2, 17 FROM tab2
----
23
17
40
17
58
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT + MAX( - col2 ) * 28 + - 12 col1 FROM tab2
----
-656

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9479
SELECT + MAX ( - col2 ) * 28 + - 12 col1 FROM tab2
----
-656

query II rowsort
SELECT ALL 25 AS col2, 52 AS col2 FROM tab1
----
25
52
25
52
25
52

query II rowsort
SELECT ALL + col0, + col0 * col1 FROM tab1
----
51
714
85
425
91
4277

onlyif mysql # aggregate syntax: 
query II rowsort label-9482
SELECT ALL - 44, - COUNT( * ) * - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-44
-9

skipif mysql # not compatible
query II rowsort label-9482
SELECT ALL - 44, - COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-44
-9

query I rowsort
SELECT - - col2 FROM tab0 AS cor0 WHERE NOT col2 >= NULL
----

query II rowsort
SELECT + col0, col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT DISTINCT - ( - - 53 ) FROM tab1 AS cor0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9486
SELECT + - CAST( NULL AS SIGNED ) + MIN( - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9486
SELECT + - CAST ( NULL AS INTEGER ) + MIN ( - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col1 + - 65, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT DISTINCT - 15 + MIN( col1 ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-9488
SELECT DISTINCT - 15 + MIN ( col1 ) FROM tab2
----
36

query I rowsort
SELECT DISTINCT - col1 + + col2 + - 60 FROM tab2
----
-69
-88
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT ALL MIN( - - col1 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL MIN ( - - col1 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT col0 + - - 47 + + + 46 AS col2 FROM tab1
----
144
178
184

onlyif mysql # DIV for integer division: 
query I rowsort label-9492
SELECT + 94 DIV ( col2 ) + - - 13 FROM tab2
----
14
15
17

skipif mysql # not compatible
query I rowsort label-9492
SELECT + 94 / ( col2 ) + - - 13 FROM tab2
----
14
15
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT + MAX( ALL - - col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9493
SELECT + MAX ( ALL - - col2 ) FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9494
SELECT DISTINCT + 9 FROM tab1 WHERE NOT NULL < - CAST( NULL AS SIGNED ) + - col1 * - col0
----

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT + 9 FROM tab1 WHERE NOT NULL < - CAST ( NULL AS INTEGER ) + - col1 * - col0
----

query I rowsort
SELECT + 8 * - + col1 FROM tab1
----
-112
-376
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-9496
SELECT - col1 DIV + + col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9496
SELECT - col1 / + + col2 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9497
SELECT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) + + 5 BETWEEN - - col2 + - 76 AND - col0
----

skipif mysql # not compatible
query III rowsort label-9497
SELECT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + + 5 BETWEEN - - col2 + - 76 AND - col0
----

query I rowsort
SELECT 39 * col2 - - col2 FROM tab0 cor0
----
1880
3960
400

onlyif mysql # aggregate syntax: 
query II rowsort label-9499
SELECT DISTINCT - ( COUNT( * ) ), COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-9499
SELECT DISTINCT - ( COUNT ( * ) ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT - ( COUNT( * ) ) * 59 * + - 22 FROM tab1 AS cor0
----
3894

skipif mysql # not compatible
query I rowsort label-9500
SELECT - ( COUNT ( * ) ) * 59 * + - 22 FROM tab1 AS cor0
----
3894

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT + 50 * COUNT( * ) * + 78 + 68 + COUNT( * ) FROM tab1
----
11771

skipif mysql # not compatible
query I rowsort label-9501
SELECT + 50 * COUNT ( * ) * + 78 + 68 + COUNT ( * ) FROM tab1
----
11771

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9502
SELECT DISTINCT - COUNT( * ) - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9502
SELECT DISTINCT - COUNT ( * ) - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - - ( - + col2 ) + + col1 + - col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT + 77 + - - COUNT( * ) FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-9504
SELECT + 77 + - - COUNT ( * ) FROM tab2 AS cor0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9505
SELECT ALL - col1 DIV + 75 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL - col1 / + 75 AS col1 FROM tab0 AS cor0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 35 IS NOT NULL
----

query I rowsort
SELECT 61 * + 2 FROM tab2, tab0 cor0
----
9 values hashing to 3b792285965591d50328a6a66dcbef61

query III rowsort
SELECT ALL * FROM tab2 WHERE 96 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT + SUM( DISTINCT 28 ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-9509
SELECT + SUM ( DISTINCT 28 ) FROM tab0
----
28

query I rowsort
SELECT ALL - ( + 81 ) AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT DISTINCT + 59 * + - ( + col1 ) + - + 62 + - col0 * ( - - col0 ) FROM tab0 AS cor0
----
-5066
-8870
-9530

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT ALL - ( COUNT( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL - ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IN ( 60 )
----

query I rowsort
SELECT DISTINCT + + ( - 55 ) FROM tab1 AS cor0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-9515
SELECT DISTINCT - col1 DIV - 22 FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-9515
SELECT DISTINCT - col1 / - 22 FROM tab0 AS cor0
----
0
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT col1 - 45 + + col1 + - col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9517
SELECT + ( + CAST( - col1 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9517
SELECT + ( + CAST ( - col1 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9518
SELECT CAST( + 67 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
67
67
67

skipif mysql # not compatible
query I rowsort label-9518
SELECT CAST ( + 67 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
67
67
67

query I rowsort
SELECT DISTINCT - 86 + - col0 AS col1 FROM tab1 AS cor0
----
-137
-171
-177

query I rowsort
SELECT ALL - - 64 + + col1 FROM tab1 AS cor0
----
111
69
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - + col2 * - col0 col2 FROM tab0 AS cor0
----
658
860
9504

query II rowsort
SELECT col2, + 29 FROM tab1
----
59
29
68
29
96
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT + COUNT( ALL col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9523
SELECT + COUNT ( ALL col2 ) FROM tab0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9524
SELECT ALL + col2 AS col2, + col0 - + 31 / - CAST( NULL AS DECIMAL ) * + - col1 / - + col1 * 21 * + col1 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-9524
SELECT ALL + col2 AS col2, + col0 - + 31 / - CAST ( NULL AS REAL ) * + - col1 / - + col1 * 21 * + col1 FROM tab2
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT ALL MIN( DISTINCT + - col0 ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL MIN ( DISTINCT + - col0 ) AS col2 FROM tab1
----
-91

query I rowsort
SELECT ALL 37 * - col0 FROM tab1
----
-1887
-3145
-3367

query I rowsort
SELECT 68 + + + 1 + + - 87 * - 92 FROM tab2
----
8073
8073
8073

query I rowsort
SELECT + 43 + 99 FROM tab0
----
142
142
142

query I rowsort
SELECT - - 96 + ( - + col2 ) FROM tab0 AS cor0
----
-3
49
86

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( col1 )
----

query I rowsort
SELECT DISTINCT 15 + + - 79 * col1 AS col0 FROM tab0 AS cor0
----
-1644
-6384
-64

query I rowsort
SELECT + 85 + + - col2 AS col2 FROM tab0 AS cor0
----
-14
38
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT ALL + 47 + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + col1 - - col2 BETWEEN ( 7 ) AND ( NULL )
----
47

skipif mysql # not compatible
query I rowsort label-9533
SELECT ALL + 47 + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + col1 - - col2 BETWEEN ( 7 ) AND ( NULL )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9534
SELECT + + col0 - - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9534
SELECT + + col0 - - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * - col0 * - col2 >= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * - col2 IS NULL
----

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 cor0 WHERE NOT col1 <= ( - - ( - + col1 ) * - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9538
SELECT DISTINCT 1 + + 18 AS col1, AVG ( DISTINCT 17 ) + ( - - COUNT( * ) ) AS col2 FROM tab0 WHERE NOT NULL > NULL
----
19
NULL

skipif mysql # not compatible
query II rowsort label-9538
SELECT DISTINCT 1 + + 18 AS col1, AVG ( DISTINCT 17 ) + ( - - COUNT ( * ) ) AS col2 FROM tab0 WHERE NOT NULL > NULL
----
19
NULL

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NULL IN ( col0 )
----

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NOT - col1 * - col1 / col0 = 7 - + + col0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab1 WHERE NOT ( NULL ) > ( NULL )
----

query I rowsort
SELECT 63 * + + ( col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT DISTINCT + + MIN( + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9543
SELECT DISTINCT + + MIN ( + col1 ) FROM tab2 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9544
SELECT DISTINCT + col0 DIV 83 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9544
SELECT DISTINCT + col0 / 83 FROM tab0 AS cor0
----
0
1

query II rowsort
SELECT ALL - 57, col0 AS col1 FROM tab1 cor0
----
-57
51
-57
85
-57
91

query I rowsort
SELECT 30 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col0 FROM tab0 WHERE NOT + 21 NOT BETWEEN - + 97 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT ( + COUNT( * ) ) + - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-9548
SELECT ( + COUNT ( * ) ) + - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT DISTINCT - COUNT( * ) + - 11 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > ( NULL )
----
-11

skipif mysql # not compatible
query I rowsort label-9549
SELECT DISTINCT - COUNT ( * ) + - 11 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > ( NULL )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9550
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) > ( NULL )
----
0

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE + col1 IS NOT NULL
----
59
68
96

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) > col2 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * 31 col0 FROM tab0
----
-2697
-3007
-465

query II rowsort
SELECT 83, + col0 FROM tab0
----
83
15
83
87
83
97

query II rowsort
SELECT DISTINCT col2, col1 + 40 + 18 FROM tab0 cor0
----
10
79
47
139
99
59

query I rowsort
SELECT + 90 * - col1 + 15 FROM tab1
----
-1245
-4215
-435

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 + + + 46 col2 FROM tab1
----
119
119
119

query I rowsort
SELECT - col0 * - 83 AS col2 FROM tab2
----
3818
5312
6225

query II rowsort
SELECT - 34, - 70 * + + col0 + - col1 AS col1 FROM tab1 AS cor0
----
-34
-3584
-34
-5955
-34
-6417

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT + + SUM( DISTINCT col0 ) + - - COUNT( * ) FROM tab0 cor0 WHERE NOT 39 IS NULL
----
202

skipif mysql # not compatible
query I rowsort label-9561
SELECT + + SUM ( DISTINCT col0 ) + - - COUNT ( * ) FROM tab0 cor0 WHERE NOT 39 IS NULL
----
202

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT ALL - SUM( - 19 ) FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL - SUM ( - 19 ) FROM tab2 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT + 37 * - MAX( DISTINCT 69 ) col1 FROM tab0 AS cor0
----
-2553

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9563
SELECT + 37 * - MAX ( DISTINCT 69 ) col1 FROM tab0 AS cor0
----
-2553

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9564
SELECT ALL - 55 FROM tab1 AS cor0 WHERE NOT ( NULL NOT BETWEEN + + col2 + CAST( NULL AS SIGNED ) AND NULL )
----

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL - 55 FROM tab1 AS cor0 WHERE NOT ( NULL NOT BETWEEN + + col2 + CAST ( NULL AS INTEGER ) AND NULL )
----

query II rowsort
SELECT ALL + - 8, col1 AS col0 FROM tab2 AS cor0
----
-8
51
-8
67
-8
77

query I rowsort
SELECT - 40 * - - col1 AS col2 FROM tab1
----
-1880
-200
-560

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT + col0 * + + col2 + - col2 * 99 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT + - MIN( DISTINCT col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9569
SELECT + - MIN ( DISTINCT col0 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT col1 + + + 56 AS col1 FROM tab0 AS cor0
----
137
57
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT - COUNT( * ) + - 35 FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-9571
SELECT - COUNT ( * ) + - 35 FROM tab1
----
-38

query I rowsort
SELECT ALL col2 + + ( + + 12 ) FROM tab2
----
35
52
70

query I rowsort
SELECT DISTINCT 37 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
37

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 17 = + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT ALL - SUM( + col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL - SUM ( + col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT ALL - 61 + - col0 AS col0 FROM tab1 AS cor0
----
-112
-146
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT DISTINCT - ( COUNT( * ) ) + - COUNT( * ) * - - 49 + 62 FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-9577
SELECT DISTINCT - ( COUNT ( * ) ) + - COUNT ( * ) * - - 49 + 62 FROM tab0 AS cor0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9578
SELECT - 44 - + CAST( - col1 AS SIGNED ) FROM tab2
----
23
33
7

skipif mysql # not compatible
query I rowsort label-9578
SELECT - 44 - + CAST ( - col1 AS INTEGER ) FROM tab2
----
23
33
7

query I rowsort
SELECT DISTINCT ( col1 ) + - col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT ALL 32 + - - COUNT( ALL + 59 ) FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL 32 + - - COUNT ( ALL + 59 ) FROM tab2
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9581
SELECT ALL col2 + + col1 - + - 39 DIV - - col0 * - + col1 + - col2 + + 50 + col2 AS col0 FROM tab1
----
114
160
165

skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL col2 + + col1 - + - 39 / - - col0 * - + col1 + - col2 + + 50 + col2 AS col0 FROM tab1
----
114
160
165

query I rowsort
SELECT ALL - col0 - + col0 * + 16 FROM tab0
----
-1479
-1649
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT - + COUNT( * ) FROM tab2 AS cor0 WHERE 99 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9583
SELECT - + COUNT ( * ) FROM tab2 AS cor0 WHERE 99 IS NOT NULL
----
-3

query I rowsort
SELECT ALL - col1 - - + col2 AS col0 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9585
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 46 * - + col2 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9585
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 46 * - + col2 AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT - COUNT( * ) * - 9 AS col0 FROM tab2 cor0
----
27

skipif mysql # not compatible
query I rowsort label-9586
SELECT - COUNT ( * ) * - 9 AS col0 FROM tab2 cor0
----
27

query III rowsort
SELECT * FROM tab0 WHERE NOT - 10 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT DISTINCT - - SUM( DISTINCT 8 ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-9588
SELECT DISTINCT - - SUM ( DISTINCT 8 ) FROM tab2 AS cor0
----
8

query I rowsort
SELECT - + 7 AS col1 FROM tab1 AS cor0
----
-7
-7
-7

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT + ( + - ( - - col1 ) ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2, - col1 col0 FROM tab1 AS cor0
----
-59
-5
-68
-47
-96
-14

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 92 NOT IN ( 97 / 62 + - 3, col2 )
----

query I rowsort
SELECT + - col2 FROM tab0 WHERE NOT + - col2 * + + col1 + - + ( col1 ) - 83 - col1 + col2 * col2 BETWEEN + col0 * - col1 AND col0 * col0 + - col0 + - 9 / - - 13
----
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, + 69 FROM tab1
----
51
69
85
69
91
69

onlyif mysql # aggregate syntax: 
query II rowsort label-9596
SELECT ALL COUNT( * ), + ( - 17 ) * - - 59 + 94 AS col2 FROM tab0
----
3
-909

skipif mysql # not compatible
query II rowsort label-9596
SELECT ALL COUNT ( * ), + ( - 17 ) * - - 59 + 94 AS col2 FROM tab0
----
3
-909

query II rowsort
SELECT ALL col1, - 23 * 5 AS col0 FROM tab0
----
1
-115
21
-115
81
-115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 59 col1 FROM tab2 WHERE NOT ( 24 - col0 * + + 56 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9599
SELECT DISTINCT col1 AS col1, - col1 DIV col0 + - col0 - + + ( - col0 ) - + 25 * + - col2 AS col0 FROM tab2
----
51
574
67
1450
77
999

skipif mysql # not compatible
query II rowsort label-9599
SELECT DISTINCT col1 AS col1, - col1 / col0 + - col0 - + + ( - col0 ) - + 25 * + - col2 AS col0 FROM tab2
----
51
574
67
1450
77
999

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9600
SELECT ALL ( + - col0 ) AS col1 FROM tab2 WHERE NOT 88 NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9600
SELECT ALL ( + - col0 ) AS col1 FROM tab2 WHERE NOT 88 NOT IN ( + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + col0 * 21 + - col2 )
----

query I rowsort
SELECT + - 97 * + + col2 * - col1 FROM tab0 cor0
----
20370
369279
9603

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL IS NULL ) OR NULL >= 60
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 11 col2 FROM tab0 AS cor0
----
11
11
11

query I rowsort
SELECT + 77 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT + col2 * - - 18 AS col0 FROM tab0
----
1782
180
846

query I rowsort
SELECT ALL - - 83 AS col0 FROM tab1 AS cor0
----
83
83
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9608
SELECT - COUNT( * ) DIV - 3 + - COUNT( * ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9608
SELECT - COUNT ( * ) / - 3 + - COUNT ( * ) FROM tab1 AS cor0
----
-2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9610
SELECT ALL - CAST( NULL AS SIGNED ) * - 39 + - 74 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL - CAST ( NULL AS INTEGER ) * - 39 + - 74 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT + 39 + + + COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) <= 8 * + col0 * - + 35 + + col0 - - col1 * - ( 24 )
----
39

skipif mysql # not compatible
query I rowsort label-9611
SELECT + 39 + + + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) <= 8 * + col0 * - + 35 + + col0 - - col1 * - ( 24 )
----
39

query I rowsort
SELECT DISTINCT - - col0 + + col2 - - col1 AS col2 FROM tab2 AS cor0
----
120
181
200

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT DISTINCT - + 29 * - COUNT( DISTINCT - + col2 ) FROM tab0 cor0
----
87

skipif mysql # not compatible
query I rowsort label-9613
SELECT DISTINCT - + 29 * - COUNT ( DISTINCT - + col2 ) FROM tab0 cor0
----
87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9614
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE ( NOT ( NOT CAST( + + 91 AS DECIMAL ) IS NULL ) )
----

skipif mysql # not compatible
query I rowsort label-9614
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE ( NOT ( NOT CAST ( + + 91 AS REAL ) IS NULL ) )
----

query I rowsort
SELECT 34 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col0 * - 1 * - col1 AND - + col2 + + + col0
----

query I rowsort
SELECT + col0 + - col0 * + 20 + + col0 FROM tab1 AS cor0
----
-1530
-1638
-918

query I rowsort
SELECT DISTINCT - + col2 + + col2 * - col2 FROM tab1 AS cor0
----
-3540
-4692
-9312

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT MIN( ALL 50 ) FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-9618
SELECT MIN ( ALL 50 ) FROM tab2
----
50

query I rowsort
SELECT ALL col1 + + + col0 FROM tab2
----
141
142
97

query I rowsort
SELECT DISTINCT col1 - - col1 * col1 * 20 AS col2 FROM tab0 AS cor0
----
131301
21
8841

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9621
SELECT ALL - - 95 DIV + - MAX( - col0 ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL - - 95 / + - MAX ( - col0 ) FROM tab2 AS cor0
----
2

query I rowsort
SELECT ( - 37 ) * + - ( + 77 ) AS col1 FROM tab1
----
2849
2849
2849

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT DISTINCT - + MAX( + - 1 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT - + MAX ( + - 1 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9624
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9624
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9625
SELECT - 59 DIV + col0 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9625
SELECT - 59 / + col0 AS col1 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL + + 21 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT - + 63 / + - 22 - col1 + - - col0 AS col1 FROM tab2 cor0 WHERE NOT NULL < ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + - col1 > ( - 68 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN col1 AND - col0
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 NOT BETWEEN - col1 * + 40 AND col1 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 77 * + col2 FROM tab0 AS cor0
----
3619
7623
770

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9633
SELECT ALL + col0 / - - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) + col2 + + 17 col1, - col0 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9633
SELECT ALL + col0 / - - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) + col2 + + 17 col1, - col0 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

query I rowsort
SELECT + ( + ( - ( - col0 ) ) ) AS col1 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT + MIN( ALL - - col0 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-9635
SELECT + MIN ( ALL - - col0 ) AS col1 FROM tab2
----
46

query I rowsort
SELECT 95 * - col2 AS col1 FROM tab1
----
-5605
-6460
-9120

query I rowsort
SELECT 13 * col1 * - col2 FROM tab2
----
-15249
-40040
-50518

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT DISTINCT - COUNT( DISTINCT - 30 ) * - COUNT( ALL - + col1 ) AS col2 FROM tab1 WHERE NOT - 18 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT - COUNT ( DISTINCT - 30 ) * - COUNT ( ALL - + col1 ) AS col2 FROM tab1 WHERE NOT - 18 IS NOT NULL
----
0

query I rowsort
SELECT - + col2 AS col2 FROM tab1 WHERE NOT - 24 / + col1 + - col2 IS NOT NULL
----

query I rowsort
SELECT col2 FROM tab0 WHERE NOT - + col1 <> col0
----

query I rowsort
SELECT - 53 FROM tab2 WHERE NOT - + ( + col2 ) * + col2 >= - 19
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT DISTINCT - 76 + COUNT( * ) FROM tab0 cor0
----
-73

skipif mysql # not compatible
query I rowsort label-9642
SELECT DISTINCT - 76 + COUNT ( * ) FROM tab0 cor0
----
-73

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT + 13 + - + 77 - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-9644
SELECT + 13 + - + 77 - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-67

query I rowsort
SELECT - col1 + - + col1 AS col1 FROM tab1 AS cor0
----
-10
-28
-94

query II rowsort
SELECT 89 + - col0, + col1 FROM tab1
----
-2
47
38
14
4
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 79 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 43 + + 61 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d32adf5fdd5e4096e2c037977ca3f009

query I rowsort
SELECT DISTINCT + - 74 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-74

query I rowsort
SELECT DISTINCT - col1 - + 0 + + col1 + - col2 AS col0 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT DISTINCT ( - 57 ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-9651
SELECT DISTINCT ( - 57 ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
171

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 80 <= 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT DISTINCT + + COUNT( * ) * MIN( DISTINCT + col1 ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-9653
SELECT DISTINCT + + COUNT ( * ) * MIN ( DISTINCT + col1 ) FROM tab2 AS cor0
----
153

query I rowsort
SELECT col0 * + + 83 FROM tab0 AS cor0
----
1245
7221
8051

query II rowsort
SELECT - - col0 AS col1, + 54 AS col0 FROM tab2 AS cor0
----
46
54
64
54
75
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT MAX( ALL ( col1 ) ) - + + 40 FROM tab0 cor0
----
41

skipif mysql # not compatible
query I rowsort label-9656
SELECT MAX ( ALL ( col1 ) ) - + + 40 FROM tab0 cor0
----
41

query I rowsort
SELECT DISTINCT 68 + col2 FROM tab0 AS cor0
----
115
167
78

query I rowsort
SELECT col0 - + - col2 AS col1 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT + + 53 - + col1 AS col2 FROM tab2 AS cor0
----
-14
-24
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT COUNT( * ) - - 9 - - - COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9660
SELECT COUNT ( * ) - - 9 - - - COUNT ( * ) AS col2 FROM tab2
----
9

query I rowsort
SELECT ALL + col1 * + ( col1 ) - - 38 AS col0 FROM tab0
----
39
479
6599

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9662
SELECT ALL + 40 - CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9662
SELECT ALL + 40 - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9663
SELECT ALL 97 FROM tab2 WHERE - 7 * CAST( NULL AS SIGNED ) * 91 IS NULL
----
97
97
97

skipif mysql # not compatible
query I rowsort label-9663
SELECT ALL 97 FROM tab2 WHERE - 7 * CAST ( NULL AS INTEGER ) * 91 IS NULL
----
97
97
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9664
SELECT DISTINCT + - COUNT( * ) * + + COUNT( * ) DIV COUNT( 58 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT + - COUNT ( * ) * + + COUNT ( * ) / COUNT ( 58 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + + col1 * + col0 + + ( - + col2 ) FROM tab2 AS cor0
----
2323
4888
4967

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9666
SELECT DISTINCT SUM( col2 ) DIV + CAST( + 87 AS SIGNED ) - MAX( - + col0 ) AS col1 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-9666
SELECT DISTINCT SUM ( col2 ) / + CAST ( + 87 AS INTEGER ) - MAX ( - + col0 ) AS col1 FROM tab1 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT ALL COUNT( ALL + 61 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9667
SELECT ALL COUNT ( ALL + 61 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT + + 56 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
56
56
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9669
SELECT ALL ( COUNT( * ) ) FROM tab1 WHERE NOT 6 + + CAST( NULL AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL ( COUNT ( * ) ) FROM tab1 WHERE NOT 6 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
3

query I rowsort
SELECT + 70 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT - 39 AS col1 FROM tab2 cor0
----
-39
-39
-39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9672
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * + 45 <= - 32 * - CAST( NULL AS SIGNED ) + - + col0
----

skipif mysql # not compatible
query III rowsort label-9672
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * + 45 <= - 32 * - CAST ( NULL AS INTEGER ) + - + col0
----

query I rowsort
SELECT DISTINCT + col0 * + + col0 AS col1 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-9674
SELECT DISTINCT - col1 * - + 73 + + col2 - + col0 DIV - - col2 AS col1 FROM tab1 AS cor0
----
1118
3498
423

skipif mysql # not compatible
query I rowsort label-9674
SELECT DISTINCT - col1 * - + 73 + + col2 - + col0 / - - col2 AS col1 FROM tab1 AS cor0
----
1118
3498
423

query I rowsort
SELECT ALL - + col1 * + + col0 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT ALL - - MAX( - + 12 ) * - - COUNT( * ) * + 94 FROM tab1 AS cor0
----
-3384

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL - - MAX ( - + 12 ) * - - COUNT ( * ) * + 94 FROM tab1 AS cor0
----
-3384

onlyif mysql # aggregate syntax: 
query II rowsort label-9677
SELECT COUNT( * ), - 76 AS col2 FROM tab1 AS cor0
----
3
-76

skipif mysql # not compatible
query II rowsort label-9677
SELECT COUNT ( * ), - 76 AS col2 FROM tab1 AS cor0
----
3
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col0, - 93 col0 FROM tab1 AS cor0
----
51
-93
85
-93
91
-93

query II rowsort
SELECT ALL col2 - + col1 AS col1, col0 FROM tab1 AS cor0 WHERE NOT - 83 = NULL
----

query I rowsort
SELECT DISTINCT + ( col0 ) + - col1 AS col1 FROM tab1
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT DISTINCT 43 * - COUNT( * ) AS col2 FROM tab2
----
-129

skipif mysql # not compatible
query I rowsort label-9681
SELECT DISTINCT 43 * - COUNT ( * ) AS col2 FROM tab2
----
-129

onlyif mysql # DIV for integer division: 
query I rowsort label-9682
SELECT + col0 DIV col2 + 25 AS col1 FROM tab2
----
26
26
27

skipif mysql # not compatible
query I rowsort label-9682
SELECT + col0 / col2 + 25 AS col1 FROM tab2
----
26
26
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT ALL - COUNT( * ) + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL - COUNT ( * ) + COUNT ( * ) FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN + col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 NOT BETWEEN - col0 * col0 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col1 FROM tab0 WHERE - 20 <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 4 - - - col0 + 39 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 23 * + 31 AS col2, + 2 + + col1 AS col1 FROM tab2
----
713
53
713
69
713
79

query I rowsort
SELECT - 15 * col2 AS col0 FROM tab2
----
-345
-600
-870

query I rowsort
SELECT DISTINCT - 37 FROM tab0 AS cor0 WHERE NOT + col2 = - + 83
----
-37

query I rowsort
SELECT ALL - - col2 + - - col1 * col1 FROM tab0 AS cor0
----
100
451
6608

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + col1, + col1, - col0 )
----

query I rowsort
SELECT ALL - col2 - col1 + - + col1 FROM tab1 AS cor0
----
-124
-162
-69

query I rowsort
SELECT - + col0 AS col1 FROM tab2 AS cor0 WHERE 23 + - - col1 IS NULL
----

query I rowsort
SELECT - col2 * + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9696
SELECT - COUNT( * ) DIV + COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9696
SELECT - COUNT ( * ) / + COUNT ( * ) FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, + col0 + col0 col0 FROM tab2
----
-23
92
-40
128
-58
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 48 col2, col2 + - - 34 AS col2 FROM tab1
----
-48
102
-48
130
-48
93

query II rowsort
SELECT col0 AS col0, + col0 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT ALL + - 5 FROM tab2 WHERE NULL BETWEEN col0 AND col1
----

query I rowsort
SELECT ALL 93 * - col0 * - col0 FROM tab2 cor0
----
196788
380928
523125

query I rowsort
SELECT + - ( + 82 ) * - col2 FROM tab2 AS cor0
----
1886
3280
4756

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT + COUNT( * ) * + COUNT( - 75 ) col0 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9703
SELECT + COUNT ( * ) * + COUNT ( - 75 ) col0 FROM tab0
----
9

query I rowsort
SELECT DISTINCT - 4 AS col1 FROM tab1 cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT DISTINCT - COUNT( DISTINCT - + col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT - COUNT ( DISTINCT - + col2 ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - col1 + - + col0 + + col2 FROM tab1 AS cor0
----
-31
-70
31

query I rowsort
SELECT DISTINCT 34 AS col2 FROM tab1 AS cor0
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-9708
SELECT DISTINCT + col1 + col1 + + col2 + - ( - col1 ) DIV 31 AS col1 FROM tab0 AS cor0
----
101
211
52

skipif mysql # not compatible
query I rowsort label-9708
SELECT DISTINCT + col1 + col1 + + col2 + - ( - col1 ) / 31 AS col1 FROM tab0 AS cor0
----
101
211
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 11 - + - col2 + - + col2 col1 FROM tab0 AS cor0
----
1089
110
517

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9710
SELECT ALL + CAST( NULL AS SIGNED ) + - 74 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9710
SELECT ALL + CAST ( NULL AS INTEGER ) + - 74 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - 17 FROM tab0
----
1377
17
357

query I rowsort
SELECT DISTINCT col0 + 67 FROM tab2
----
113
131
142

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9713
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 * - - col1 NOT IN ( col1 + + col0, ( - CAST( NULL AS SIGNED ) ) + - col0 )
----

skipif mysql # not compatible
query III rowsort label-9713
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 * - - col1 NOT IN ( col1 + + col0, ( - CAST ( NULL AS INTEGER ) ) + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT DISTINCT - ( - 0 ) + COUNT( * ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9714
SELECT DISTINCT - ( - 0 ) + COUNT ( * ) AS col2 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 27 BETWEEN NULL AND - - col2 )
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9716
SELECT ALL + - 39 AS col0 FROM tab2 WHERE NOT ( NOT CAST( - col0 AS SIGNED ) IS NOT NULL )
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL + - 39 AS col0 FROM tab2 WHERE NOT ( NOT CAST ( - col0 AS INTEGER ) IS NOT NULL )
----
-39
-39
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9717
SELECT ALL - 72 DIV - COUNT( * ) AS col1 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL - 72 / - COUNT ( * ) AS col1 FROM tab2
----
24

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 BETWEEN NULL AND + col0
----

query II rowsort
SELECT - - 37, + col0 AS col1 FROM tab2 cor0 WHERE + 2 IS NOT NULL
----
37
46
37
64
37
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9720
SELECT DISTINCT - ( col0 ) DIV + col1 + + col0 * + 67 AS col1 FROM tab1 AS cor0
----
3414
5678
6096

skipif mysql # not compatible
query I rowsort label-9720
SELECT DISTINCT - ( col0 ) / + col1 + + col0 * + 67 AS col1 FROM tab1 AS cor0
----
3414
5678
6096

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT + - COUNT( * ) + + 91 AS col0 FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-9721
SELECT + - COUNT ( * ) + + 91 AS col0 FROM tab0 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT DISTINCT COUNT( * ) * + 0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9722
SELECT DISTINCT COUNT ( * ) * + 0 FROM tab2
----
0

query I rowsort
SELECT ALL - 92 * col0 AS col1 FROM tab0
----
-1380
-8004
-8924

onlyif mysql # DIV for integer division: 
query I rowsort label-9724
SELECT ALL 12 DIV + ( col0 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL 12 / + ( col0 ) FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab0 WHERE + col0 / 54 IN ( ( 15 ) * - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9726
SELECT 85 DIV + ( + 18 ) FROM tab0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-9726
SELECT 85 / + ( + 18 ) FROM tab0
----
4
4
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9727
SELECT - COUNT( * ) DIV - 84 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9727
SELECT - COUNT ( * ) / - 84 AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9728
SELECT ALL * FROM tab1 WHERE 57 < + CAST( NULL AS SIGNED ) * + col2
----

skipif mysql # not compatible
query III rowsort label-9728
SELECT ALL * FROM tab1 WHERE 57 < + CAST ( NULL AS INTEGER ) * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT ALL - MIN( + col1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9729
SELECT ALL - MIN ( + col1 ) AS col1 FROM tab0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9730
SELECT - 81 DIV MAX( col2 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9730
SELECT - 81 / MAX ( col2 ) AS col2 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 74 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 + 80 col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT + MIN( + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-9733
SELECT + MIN ( + col2 ) FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9734
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + CAST( NULL AS SIGNED ) + col1 )
----

skipif mysql # not compatible
query III rowsort label-9734
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + CAST ( NULL AS INTEGER ) + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col2 + col1 * col0 ) >= col0
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 + + 35 col1 FROM tab1
----
61
61
61

query I rowsort
SELECT ALL - 62 + + col0 AS col2 FROM tab1 WHERE NOT ( 50 ) >= ( + col2 ) * col1 + 72 * ( + col0 )
----
-11
23
29

query I rowsort
SELECT DISTINCT col0 + - 25 FROM tab0 WHERE NOT ( col1 ) BETWEEN col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT - COUNT( * ) * 87 AS col2 FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-9739
SELECT - COUNT ( * ) * 87 AS col2 FROM tab1 AS cor0
----
-261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab0 cor0 WHERE ( - col1 + - 16 ) IS NULL
----

query I rowsort
SELECT + ( ( + col1 ) ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9742
SELECT DISTINCT - COUNT( * ) / 48 + CAST( NULL AS SIGNED ) / - 47 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 * col2 BETWEEN 99 AND ( + col1 - - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9742
SELECT DISTINCT - COUNT ( * ) / 48 + CAST ( NULL AS INTEGER ) / - 47 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 * col2 BETWEEN 99 AND ( + col1 - - col0 )
----
NULL

query I rowsort
SELECT ALL + ( + 32 ) FROM tab2 AS cor0
----
32
32
32

query I rowsort
SELECT + 13 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE NOT col2 BETWEEN NULL AND ( col0 )
----
14

query I rowsort
SELECT DISTINCT - 34 * 46 AS col1 FROM tab1
----
-1564

query I rowsort
SELECT DISTINCT - col1 * col0 FROM tab1 WHERE NOT ( - 12 ) IN ( + 25 * + ( - col1 ) )
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT - 3 * - col0 AS col1 FROM tab2 AS cor0
----
138
192
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9749
SELECT ALL - ( AVG ( CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL - ( AVG ( CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 9 - - 72 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 18 AS col0 FROM tab0 cor0 WHERE 47 * col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9752
SELECT ALL col0 + + col0 FROM tab0 cor0 WHERE - col0 + ( col0 ) NOT BETWEEN 95 * - CAST( NULL AS SIGNED ) AND ( col1 )
----

skipif mysql # not compatible
query I rowsort label-9752
SELECT ALL col0 + + col0 FROM tab0 cor0 WHERE - col0 + ( col0 ) NOT BETWEEN 95 * - CAST ( NULL AS INTEGER ) AND ( col1 )
----

query I rowsort
SELECT + 92 + ( 1 ) FROM tab2 AS cor0
----
93
93
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9754
SELECT 59 * 83 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) = - CAST( NULL AS SIGNED ) - col1 / - col2
----

skipif mysql # not compatible
query I rowsort label-9754
SELECT 59 * 83 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) = - CAST ( NULL AS INTEGER ) - col1 / - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9755
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND + 2 + col1 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9755
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND + 2 + col1 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT ALL - 75 + + MIN( col2 ) FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL - 75 + + MIN ( col2 ) FROM tab1 AS cor0
----
-16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9757
SELECT ALL col1 AS col1 FROM tab2 WHERE NULL IS NOT NULL OR NOT - CAST( + col0 AS DECIMAL ) * + col0 IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL col1 AS col1 FROM tab2 WHERE NULL IS NOT NULL OR NOT - CAST ( + col0 AS REAL ) * + col0 IS NULL
----
51
67
77

query III rowsort
SELECT * FROM tab0 WHERE col2 NOT BETWEEN ( NULL ) AND col1
----
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 81 NOT IN ( col2 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT 72 * + COUNT( * ) FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-9760
SELECT 72 * + COUNT ( * ) FROM tab1
----
216

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 / 36 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * 76 FROM tab0 AS cor0 WHERE - col1 * col1 + - 18 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - 86 NOT BETWEEN - col0 AND ( + 41 )
----
1

skipif mysql # not compatible
query I rowsort label-9763
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - 86 NOT BETWEEN - col0 AND ( + 41 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9764
SELECT + col1 - + + col2 + 81 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9764
SELECT + col1 - + + col2 + 81 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) <> 21
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - + ( + + 68 ) col0 FROM tab0
----
-21
-58
31

query I rowsort
SELECT 83 AS col0 FROM tab0 WHERE - 29 IS NOT NULL
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT ALL - 41 + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-32

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL - 41 + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-9769
SELECT DISTINCT - 68 DIV col0 - + 99 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
-10

skipif mysql # not compatible
query I rowsort label-9769
SELECT DISTINCT - 68 / col0 - + 99 / col0 AS col0 FROM tab0 AS cor0
----
-1
-10

query I rowsort
SELECT ALL - - col1 - - 29 - + 42 AS col0 FROM tab0 AS cor0
----
-12
68
8

onlyif mysql # aggregate syntax: 
query II rowsort label-9771
SELECT + COUNT( * ) AS col2, 42 AS col2 FROM tab0 AS cor0
----
3
42

skipif mysql # not compatible
query II rowsort label-9771
SELECT + COUNT ( * ) AS col2, 42 AS col2 FROM tab0 AS cor0
----
3
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT DISTINCT + + SUM( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9772
SELECT DISTINCT + + SUM ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
103

query II rowsort
SELECT DISTINCT + - col0, col0 AS col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query I rowsort
SELECT + col2 * - - col2 AS col2 FROM tab2 AS cor0
----
1600
3364
529

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <= ( - 28 / 33 - + col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IS NULL OR NOT ( NULL ) BETWEEN ( ( - col2 ) + + col0 ) AND ( + 10 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * 44 * col0 AS col2 FROM tab0 AS cor0
----
333036
413996
9900

onlyif mysql # DIV for integer division: 
query I rowsort label-9778
SELECT ALL 79 DIV - + 56 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL 79 / - + 56 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9779
SELECT DISTINCT - 5 DIV - col2 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9779
SELECT DISTINCT - 5 / - col2 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9780
SELECT ALL + ( - - 94 ) DIV - MAX( col1 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9780
SELECT ALL + ( - - 94 ) / - MAX ( col1 ) FROM tab2
----
-1

query I rowsort
SELECT + ( col0 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col0 ) > 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT MIN( DISTINCT + 14 ) col2 FROM tab2
----
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9783
SELECT MIN ( DISTINCT + 14 ) col2 FROM tab2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT DISTINCT SUM( ALL + 33 ) AS col2 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-9784
SELECT DISTINCT SUM ( ALL + 33 ) AS col2 FROM tab2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT + 75 + COUNT( * ) AS col0 FROM tab1 WHERE NOT col2 IS NULL
----
78

skipif mysql # not compatible
query I rowsort label-9785
SELECT + 75 + COUNT ( * ) AS col0 FROM tab1 WHERE NOT col2 IS NULL
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-9786
SELECT + col2 DIV col1 * + 67 * - 97 * col2 AS col2 FROM tab1
----
-3743424
-4217851
-441932

skipif mysql # not compatible
query I rowsort label-9786
SELECT + col2 / col1 * + 67 * - 97 * col2 AS col2 FROM tab1
----
-3743424
-4217851
-441932

query I rowsort
SELECT - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9788
SELECT col0 * CAST( NULL AS SIGNED ) + - + col0, ( + - col1 ) AS col1 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-9788
SELECT col0 * CAST ( NULL AS INTEGER ) + - + col0, ( + - col1 ) AS col1 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

query I rowsort
SELECT - ( + + col1 ) AS col1 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NULL > ( + col1 + + - 60 - + col0 + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL > ( + col1 + + - 60 - + col0 + - col2 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 col0 FROM tab2 AS cor0 WHERE ( col1 ) < col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - + col1 AND - col0 * 3
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col2, col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE - col1 * - 20 <= ( - col1 )
----

query I rowsort
SELECT DISTINCT + - col2 + - + 73 FROM tab1 AS cor0
----
-132
-141
-169

onlyif mysql # DIV for integer division: 
query I rowsort label-9796
SELECT DISTINCT 6 DIV - + 25 + + 74 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT 6 / - + 25 + + 74 FROM tab1
----
74

query I rowsort
SELECT - col1 * + 37 AS col1 FROM tab0 WHERE - 14 * + 88 * - + 61 + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9798
SELECT * FROM tab0 WHERE - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9798
SELECT * FROM tab0 WHERE - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab1 WHERE NOT + col2 / + - col1 * - col0 = ( 30 * - 74 + ( + 58 ) * + col1 )
----
14
47
5

onlyif mysql # DIV for integer division: 
query II rowsort label-9800
SELECT ALL + col1 DIV col2 - - col2 + col2, col0 FROM tab1
----
118
85
136
91
192
51

skipif mysql # not compatible
query II rowsort label-9800
SELECT ALL + col1 / col2 - - col2 + col2, col0 FROM tab1
----
118
85
136
91
192
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9801
SELECT COUNT( * ) / - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9801
SELECT COUNT ( * ) / - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT + MAX( - col2 ) FROM tab2 cor0 WHERE col1 - + - col0 IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9802
SELECT + MAX ( - col2 ) FROM tab2 cor0 WHERE col1 - + - col0 IN ( col2 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9803
SELECT 41 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9803
SELECT 41 / col0 FROM tab1
----
0
0
0

query II rowsort
SELECT + col2 AS col0, 91 + - 93 + - col1 AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL AND NOT NULL NOT IN ( - + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 col2 FROM tab0
----
56
56
56

query I rowsort
SELECT DISTINCT - 74 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-74

query I rowsort
SELECT ALL - col0 * + - col1 * + col0 FROM tab1 cor0
----
36125
36414
389207

query I rowsort
SELECT - + col1 * - 42 AS col2 FROM tab0 AS cor0
----
3402
42
882

query III rowsort
SELECT + 17, + col1 + col0 + - col1 AS col0, 97 AS col1 FROM tab1 cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT DISTINCT + COUNT( ALL + col2 ) * - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9810
SELECT DISTINCT + COUNT ( ALL + col2 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 * - - col2 col0 FROM tab0 cor0
----
-10575
-75690
-931491

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 93 col0 FROM tab1 cor0
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT + COUNT( + + col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9813
SELECT + COUNT ( + + col2 ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + + - col0 < + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - - col1 ) * - 18 NOT IN ( - col0 / col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9816
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + + col2 - CAST( NULL AS SIGNED ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9816
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + + col2 - CAST ( NULL AS INTEGER ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 42 NOT BETWEEN - col0 AND 17 * 70 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( ( + 59 ) ) * col2 AS col0 FROM tab2 AS cor0
----
1357
2360
3422

onlyif mysql # aggregate syntax: 
query II rowsort label-9819
SELECT ALL + 59 * + COUNT( * ) - + COUNT( * ) AS col1, COUNT( * ) AS col1 FROM tab2 AS cor0
----
174
3

skipif mysql # not compatible
query II rowsort label-9819
SELECT ALL + 59 * + COUNT ( * ) - + COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
174
3

query I rowsort
SELECT ALL - - col2 + + 33 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
101
129
92

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9821
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col1 + CAST( + col1 AS DECIMAL ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-9821
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col1 + CAST ( + col1 AS REAL ) IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9822
SELECT CAST( COUNT( - - col1 ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9822
SELECT CAST ( COUNT ( - - col1 ) AS INTEGER ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col0 * + col2 * + 42 AS col1 FROM tab2 AS cor0
----
107520
182700
44436

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9824
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( - + col1 ) OR NOT - CAST( NULL AS DECIMAL ) NOT IN ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-9824
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( - + col1 ) OR NOT - CAST ( NULL AS REAL ) NOT IN ( + col1 )
----

query I rowsort
SELECT ( + 43 ) AS col0 FROM tab0 WHERE NOT ( + col1 ) IS NULL
----
43
43
43

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + - ( - 22 ) ) BETWEEN ( 66 ) AND + col1 + - 36
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col2 * col1 + + ( - ( ( - 42 ) ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + 77 ) FROM tab1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT + MIN( ALL 14 ) AS col1 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-9829
SELECT + MIN ( ALL 14 ) AS col1 FROM tab1
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col2, 16 * + 15 AS col1 FROM tab0
----
-15
240
-87
240
-97
240

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < - col1 / - - col0
----

query I rowsort
SELECT + - 44 AS col1 FROM tab0 AS cor0 WHERE NOT ( 3 - - - col1 ) = 9
----
-44
-44
-44

query II rowsort
SELECT DISTINCT + col1, col1 * + - col0 FROM tab1 AS cor0
----
14
-714
47
-4277
5
-425

query I rowsort
SELECT ( - 7 ) * col1 + col0 * 4 * col1 FROM tab2 AS cor0
----
19173
19631
9027

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9835
SELECT DISTINCT + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9836
SELECT - col1 + + col2 + + + col2 / + CAST( NULL AS DECIMAL ) + + 8 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9836
SELECT - col1 + + col2 + + + col2 / + CAST ( NULL AS REAL ) + + 8 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - - col1 AS col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT - 32 AS col0 FROM tab2 cor0
----
-32

query I rowsort
SELECT ALL + + ( - + 35 ) FROM tab1 AS cor0
----
-35
-35
-35

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 16 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 38 - - - col1, 80 * - col0 * - col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col0 + - - 65 + 67 + 34 FROM tab2
----
212
230
241

query I rowsort
SELECT ALL - 40 + + + 53 AS col0 FROM tab2
----
13
13
13

query I rowsort
SELECT DISTINCT - + ( - + 52 ) FROM tab1 WHERE NULL BETWEEN NULL AND + col1 * 41 * - col0
----

query I rowsort
SELECT DISTINCT 24 + - + 18 AS col0 FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9846
SELECT ALL 42 - 42 + + - col1 * - - ( - col0 ), CAST( NULL AS SIGNED ) / - - col0 * - col1 AS col0 FROM tab0
----
1215
NULL
1827
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-9846
SELECT ALL 42 - 42 + + - col1 * - - ( - col0 ), CAST ( NULL AS INTEGER ) / - - col0 * - col1 AS col0 FROM tab0
----
1215
NULL
1827
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT DISTINCT + 66 - + COUNT( * ) col0 FROM tab2
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9847
SELECT DISTINCT + 66 - + COUNT ( * ) col0 FROM tab2
----
63

query II rowsort
SELECT ALL ( - ( 80 ) ) AS col0, - 8 * - 92 FROM tab2
----
-80
736
-80
736
-80
736

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9849
SELECT * FROM tab0 AS cor0 WHERE NULL >= - CAST( 23 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9849
SELECT * FROM tab0 AS cor0 WHERE NULL >= - CAST ( 23 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * col1 * ( - col1 ) + - col0 < NULL
----

query II rowsort
SELECT ALL 32 AS col1, col0 FROM tab0 cor0
----
32
15
32
87
32
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * + col0 IN ( + ( + - 65 ) + - + col0 - - ( + - ( + ( - + col2 ) ) ) + 73 + col2 / col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * 88 * + col2 FROM tab0
----
18480
335016
8712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9854
SELECT COUNT( * ) * - + 50 / - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) * COUNT( * ) * - MAX( ALL - 54 ) * + + 40 * + - CAST( - 44 AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9854
SELECT COUNT ( * ) * - + 50 / - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) * COUNT ( * ) * - MAX ( ALL - 54 ) * + + 40 * + - CAST ( - 44 AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9855
SELECT ALL + col1 * - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL + col1 * - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT DISTINCT 33 * + + ( - SUM( col2 ) ) FROM tab2
----
-3993

skipif mysql # not compatible
query I rowsort label-9856
SELECT DISTINCT 33 * + + ( - SUM ( col2 ) ) FROM tab2
----
-3993

onlyif mysql # DIV for integer division: 
query I rowsort label-9857
SELECT 34 DIV + 62 * + - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9857
SELECT 34 / + 62 * + - col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9858
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + 93 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9858
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + 93 AS col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9859
SELECT ALL + + 73 DIV + col1 col2, col0 AS col0 FROM tab0 AS cor0
----
0
15
3
87
73
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9859
SELECT ALL + + 73 / + col1 col2, col0 AS col0 FROM tab0 AS cor0
----
0
15
3
87
73
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9860
SELECT * FROM tab1 WHERE - - CAST( NULL AS SIGNED ) * + col0 <> NULL
----

skipif mysql # not compatible
query III rowsort label-9860
SELECT * FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) * + col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9861
SELECT + 45 DIV + 51 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9861
SELECT + 45 / + 51 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 11 NOT BETWEEN - + col0 - + ( + + col2 ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9863
SELECT + COUNT( * ) DIV + + COUNT( * ) AS col2, - MIN( ALL col2 ) + COUNT( + col1 ) AS col0 FROM tab1 AS cor0 WHERE ( + 2 ) NOT IN ( col0, col2, - col0, - col0 )
----
1
-56

skipif mysql # not compatible
query II rowsort label-9863
SELECT + COUNT ( * ) / + + COUNT ( * ) AS col2, - MIN ( ALL col2 ) + COUNT ( + col1 ) AS col0 FROM tab1 AS cor0 WHERE ( + 2 ) NOT IN ( col0, col2, - col0, - col0 )
----
1
-56

query I rowsort
SELECT + + ( - col0 ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9865
SELECT + + col2 AS col1, CAST( - + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

skipif mysql # not compatible
query II rowsort label-9865
SELECT + + col2 AS col1, CAST ( - + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT DISTINCT - COUNT( * ) + COUNT( DISTINCT - col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9866
SELECT DISTINCT - COUNT ( * ) + COUNT ( DISTINCT - col0 ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT col0 - + 56 AS col1 FROM tab1
----
-5
29
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 - + + 96 col2, + col1 AS col1 FROM tab2 AS cor0
----
-119
51
-136
77
-154
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT ALL COUNT( * ) - COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9869
SELECT ALL COUNT ( * ) - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9870
SELECT - MIN( + + 10 ) AS col1, + CAST( NULL AS SIGNED ) col0 FROM tab1 cor0
----
-10
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9870
SELECT - MIN ( + + 10 ) AS col1, + CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0
----
-10
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 45 col1 FROM tab2 AS cor0
----
-45
-45
-45

query I rowsort
SELECT ( - + 97 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT DISTINCT - + col2 * + + col2 AS col1 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT - ( - col1 ) FROM tab2 WHERE NOT - col0 / - + ( - 3 ) + col1 + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( 96 * col0, col2 )
----

query I rowsort
SELECT col1 + + - col2 * - col0 FROM tab0
----
786
891
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT DISTINCT + MAX( DISTINCT - + col0 ) * + MAX( + 85 ) FROM tab1
----
-4335

skipif mysql # not compatible
query I rowsort label-9878
SELECT DISTINCT + MAX ( DISTINCT - + col0 ) * + MAX ( + 85 ) FROM tab1
----
-4335

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT - 12 * COUNT( * ) AS col2 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-9879
SELECT - 12 * COUNT ( * ) AS col2 FROM tab1
----
-36

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT - 68 + + 22 * - col1 + col1 BETWEEN + 89 AND NULL
----
46
64
75

query II rowsort
SELECT 65, col2 - + ( + col2 ) AS col2 FROM tab0
----
65
0
65
0
65
0

query I rowsort
SELECT + 78 * + - col2 AS col0 FROM tab2
----
-1794
-3120
-4524

query I rowsort
SELECT + 76 * col2 AS col0 FROM tab0 AS cor0
----
3572
7524
760

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT ALL - COUNT( * ) * + + COUNT( * ) + + COUNT( * ) + - + 88 FROM tab0 cor0
----
-94

skipif mysql # not compatible
query I rowsort label-9884
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) + + COUNT ( * ) + - + 88 FROM tab0 cor0
----
-94

query I rowsort
SELECT DISTINCT + + col1 + - 58 FROM tab1 AS cor0
----
-11
-44
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT + MIN( - + ( 7 ) ) + + + 66 + + 13 AS col0 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-9886
SELECT + MIN ( - + ( 7 ) ) + + + 66 + + 13 AS col0 FROM tab2
----
72

query I rowsort
SELECT DISTINCT + col2 - ( + 44 ) + - - col2 - col1 * col2 * 49 / - col1 AS col2 FROM tab1 WHERE - col1 * + - col0 - + col0 * - - col0 + + - 88 + col2 / + col1 BETWEEN + 94 AND NULL
----

query I rowsort
SELECT col0 + ( + + col0 ) AS col2 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT 12 + + - 52 + - col2 AS col1 FROM tab1 AS cor0
----
-108
-136
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9890
SELECT - + col1 DIV + ( + - 95 ) + - col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9890
SELECT - + col1 / + ( + - 95 ) + - col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 13 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * + ( + col2 ) * col1 BETWEEN NULL AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT ALL MIN( ALL col1 ) AS col2 FROM tab2 WHERE - col0 + col1 <= col0
----
51

skipif mysql # not compatible
query I rowsort label-9894
SELECT ALL MIN ( ALL col1 ) AS col2 FROM tab2 WHERE - col0 + col1 <= col0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-9895
SELECT DISTINCT COUNT( * ), + 57 AS col1 FROM tab2
----
3
57

skipif mysql # not compatible
query II rowsort label-9895
SELECT DISTINCT COUNT ( * ), + 57 AS col1 FROM tab2
----
3
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT DISTINCT + COUNT( * ) + - + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT + COUNT ( * ) + - + COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT + col2 - + col2 - - col1 * - + 66 + + - col0 * - 76 FROM tab2
----
-218
1278
130

query I rowsort
SELECT col0 * - - col2 * 27 - - + col0 FROM tab0
----
19050
23577
259378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9899
SELECT CAST( - - 67 AS SIGNED ) - - - col1 FROM tab1
----
20
53
62

skipif mysql # not compatible
query I rowsort label-9899
SELECT CAST ( - - 67 AS INTEGER ) - - - col1 FROM tab1
----
20
53
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT DISTINCT COUNT( * ) + + 27 * + - 64 * COUNT( * ) * - 55 AS col1 FROM tab0
----
285123

skipif mysql # not compatible
query I rowsort label-9900
SELECT DISTINCT COUNT ( * ) + + 27 * + - 64 * COUNT ( * ) * - 55 AS col1 FROM tab0
----
285123

query II rowsort
SELECT - + col2 AS col0, + col2 FROM tab0 WHERE NOT + col2 IS NULL
----
-10
10
-47
47
-99
99

query I rowsort
SELECT DISTINCT - 76 + 42 / - - col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9903
SELECT ALL + col0 col1, 25 AS col0 FROM tab1 AS cor0 WHERE + col2 + CAST( + 96 AS SIGNED ) * col2 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9903
SELECT ALL + col0 col1, 25 AS col0 FROM tab1 AS cor0 WHERE + col2 + CAST ( + 96 AS INTEGER ) * col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9904
SELECT - CAST( NULL AS SIGNED ) / + + AVG ( DISTINCT - 25 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9904
SELECT - CAST ( NULL AS INTEGER ) / + + AVG ( DISTINCT - 25 ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9905
SELECT COUNT( * ) * - 14 col2, - COUNT( - + 94 ) + + 46 FROM tab1
----
-42
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9905
SELECT COUNT ( * ) * - 14 col2, - COUNT ( - + 94 ) + + 46 FROM tab1
----
-42
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + col0 col1 FROM tab0
----
1215
1827
97

query I rowsort
SELECT ALL + ( - 71 ) FROM tab2 cor0
----
-71
-71
-71

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + + 40 FROM tab1 cor0
----
40
40
40

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 / + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT - SUM( + 40 ) FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-9911
SELECT - SUM ( + 40 ) FROM tab2 AS cor0
----
-120

query I rowsort
SELECT DISTINCT col0 + + 61 FROM tab2 AS cor0
----
107
125
136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 55 col1 FROM tab1 AS cor0
----
-55
-55
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9914
SELECT ALL - col2 * - col0 / CAST( NULL AS SIGNED ) - + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL - col2 * - col0 / CAST ( NULL AS INTEGER ) - + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9915
SELECT - - col1 - - col0 - 21 FROM tab1 AS cor0 WHERE NOT NULL <= CAST( + 55 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9915
SELECT - - col1 - - col0 - 21 FROM tab1 AS cor0 WHERE NOT NULL <= CAST ( + 55 AS INTEGER )
----

query I rowsort
SELECT col1 * - 29 FROM tab2
----
-1479
-1943
-2233

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT ALL + + SUM( + col1 ) FROM tab1 WHERE - - col2 >= - + ( + - 3 ) * + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL + + SUM ( + col1 ) FROM tab1 WHERE - - col2 >= - + ( + - 3 ) * + col0
----
NULL

query II rowsort
SELECT col1, - col0 + 0 FROM tab0
----
1
-97
21
-87
81
-15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9919
SELECT * FROM tab1 WHERE NOT NULL = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9919
SELECT * FROM tab1 WHERE NOT NULL = - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9920
SELECT ( + col2 ) * + 72 / + 32 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9920
SELECT ( + col2 ) * + 72 / + 32 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * + + 96 FROM tab0
----
2016
7776
96

query I rowsort
SELECT DISTINCT col1 * + 6 FROM tab2
----
306
402
462

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT DISTINCT - SUM( DISTINCT - + col1 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9923
SELECT DISTINCT - SUM ( DISTINCT - + col1 ) AS col1 FROM tab1
----
66

query I rowsort
SELECT ALL + + col0 FROM tab2 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9925
SELECT ALL col0 FROM tab1 WHERE NOT - - col1 NOT BETWEEN - col1 AND + col2 - + col2 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9925
SELECT ALL col0 FROM tab1 WHERE NOT - - col1 NOT BETWEEN - col1 AND + col2 - + col2 + - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 45, - col0 col1 FROM tab1
----
-45
-51
-45
-85
-45
-91

query I rowsort
SELECT - 49 AS col1 FROM tab2 WHERE + col2 IS NOT NULL
----
-49
-49
-49

query I rowsort
SELECT - - col0 + col0 * - - col1 AS col0 FROM tab0 cor0
----
1230
1914
194

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL >= ( 51 )
----

query I rowsort
SELECT - - 2 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9931
SELECT 45 FROM tab2 WHERE - + CAST( NULL AS SIGNED ) IS NULL
----
45
45
45

skipif mysql # not compatible
query I rowsort label-9931
SELECT 45 FROM tab2 WHERE - + CAST ( NULL AS INTEGER ) IS NULL
----
45
45
45

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9932
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + 12 * col2, + col2, + col0 * + col0 - + 19 * - + col1, + CAST( NULL AS DECIMAL ) * col1 )
----

skipif mysql # not compatible
query III rowsort label-9932
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + 12 * col2, + col2, + col0 * + col0 - + 19 * - + col1, + CAST ( NULL AS REAL ) * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 * col0 col0 FROM tab0 AS cor0
----
1067
165
957

query I rowsort
SELECT DISTINCT - ( 90 ) AS col2 FROM tab0 AS cor0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9935
SELECT ALL + col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9935
SELECT ALL + col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 43 FROM tab2 cor0 WHERE NOT + 11 * - 14 >= - col2
----
43
43
43

query I rowsort
SELECT - col2 * + - col0 - - col2 FROM tab0 AS cor0
----
752
880
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT ALL COUNT( DISTINCT + - col0 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9938
SELECT ALL COUNT ( DISTINCT + - col0 ) col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL 67 + - col2 * + col1 FROM tab1 AS cor0
----
-1277
-228
-3129

onlyif mysql # DIV for integer division: 
query I rowsort label-9940
SELECT + + 29 DIV + col1 + + ( col2 ) * - col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-9940
SELECT + + 29 / + col1 + + ( col2 ) * - col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT - col2 + + col0 - - col0 AS col2 FROM tab2 AS cor0
----
69
88
92

query I rowsort
SELECT DISTINCT - col1 * - - col2 + col2 AS col0 FROM tab2
----
-1150
-3040
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT DISTINCT + COUNT( * ) * + 64 FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-9943
SELECT DISTINCT + COUNT ( * ) * + 64 FROM tab0
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-9944
SELECT + 93 * 16 DIV + col1 FROM tab2
----
19
22
29

skipif mysql # not compatible
query I rowsort label-9944
SELECT + 93 * 16 / + col1 FROM tab2
----
19
22
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE + 28 > - - 36
----
0

skipif mysql # not compatible
query I rowsort label-9945
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE + 28 > - - 36
----
0

query I rowsort
SELECT + ( + 64 ) AS col2 FROM tab2
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT ALL COUNT( DISTINCT + 0 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL COUNT ( DISTINCT + 0 ) FROM tab0
----
1

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-9949
SELECT DISTINCT - SUM( ALL - + col2 ) col0, 15 FROM tab1 AS cor0
----
223
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9949
SELECT DISTINCT - SUM ( ALL - + col2 ) col0, 15 FROM tab1 AS cor0
----
223
15

query I rowsort
SELECT + + 52 + + 40 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT - SUM( - + col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9951
SELECT - SUM ( - + col1 ) AS col1 FROM tab1 AS cor0
----
66

query I rowsort
SELECT + 81 * - col0 * + - ( - col0 ) AS col1 FROM tab0 AS cor0
----
-18225
-613089
-762129

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9953
SELECT DISTINCT MAX( ALL - + col0 ) * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9953
SELECT DISTINCT MAX ( ALL - + col0 ) * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - col1 * 68 + col0 + + - col2 FROM tab1 AS cor0
----
3219
366
907

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9955
SELECT ALL + + col0 * + col1 * - 43 + col2 - - + CAST( NULL AS SIGNED ) / 70 / + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9955
SELECT ALL + + col0 * + col1 * - 43 + col2 - - + CAST ( NULL AS INTEGER ) / 70 / + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT ALL + 26 * COUNT( * ) - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + 5 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL + 26 * COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + 5 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT DISTINCT 75 + + MIN( ALL - - 70 ) - + + 13 AS col2 FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-9957
SELECT DISTINCT 75 + + MIN ( ALL - - 70 ) - + + 13 AS col2 FROM tab2 AS cor0
----
132

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 80 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 2, - col2 * col2 + - col2 AS col2 FROM tab1 WHERE NOT - 43 IS NULL
----
2
-3540
2
-4692
2
-9312

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT ALL - COUNT( DISTINCT + - 93 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9960
SELECT ALL - COUNT ( DISTINCT + - 93 ) AS col2 FROM tab0
----
-1

query II rowsort
SELECT 68 * - col2 AS col0, - col1 FROM tab2 AS cor0
----
-1564
-51
-2720
-77
-3944
-67

query I rowsort
SELECT ALL 93 * - + col1 FROM tab1 cor0
----
-1302
-4371
-465

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT + COUNT( DISTINCT - 68 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 65 IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-9963
SELECT + COUNT ( DISTINCT - 68 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 65 IS NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT ALL COUNT( * ) - - ( - 10 ) AS col0 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL COUNT ( * ) - - ( - 10 ) AS col0 FROM tab0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9965
SELECT - col1 + + - CAST( + 88 AS SIGNED ) + 36 AS col0 FROM tab2 AS cor0
----
-103
-119
-129

skipif mysql # not compatible
query I rowsort label-9965
SELECT - col1 + + - CAST ( + 88 AS INTEGER ) + 36 AS col0 FROM tab2 AS cor0
----
-103
-119
-129

query I rowsort
SELECT ALL + col1 + + + col1 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT + 43 + - col0 FROM tab1 AS cor0
----
-42
-48
-8

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 * + col2, col1, - 12, + 49 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + 92 ) col0 FROM tab0 AS cor0
----
-92
-92
-92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9970
SELECT * FROM tab2 AS cor0 WHERE 49 * + col0 / + col2 IN ( + + col2, ( - 55 ) * - - CAST( - + ( CAST( 59 AS SIGNED ) ) AS SIGNED ) + + + col1 )
----

skipif mysql # not compatible
query III rowsort label-9970
SELECT * FROM tab2 AS cor0 WHERE 49 * + col0 / + col2 IN ( + + col2, ( - 55 ) * - - CAST ( - + ( CAST ( 59 AS INTEGER ) ) AS INTEGER ) + + + col1 )
----

query I rowsort
SELECT DISTINCT + + col1 * - + 63 AS col2 FROM tab0 AS cor0
----
-1323
-5103
-63

query I rowsort
SELECT + + 34 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
34
34
34

query I rowsort
SELECT + ( - 32 ) AS col1 FROM tab0
----
-32
-32
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9974
SELECT ALL CAST( 0 AS SIGNED ) AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9974
SELECT ALL CAST ( 0 AS INTEGER ) AS col0 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9975
SELECT ALL col0 DIV - - 71 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL col0 / - - 71 FROM tab0
----
0
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9976
SELECT COUNT( * ) DIV - MAX( - 11 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9976
SELECT COUNT ( * ) / - MAX ( - 11 ) AS col2 FROM tab1
----
0

query II rowsort
SELECT DISTINCT - 28, 18 AS col0 FROM tab2
----
-28
18

query II rowsort
SELECT ALL + 71, + col0 AS col1 FROM tab1
----
71
51
71
85
71
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + 87 ) col2 FROM tab1
----
-87
-87
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9980
SELECT - CAST( NULL AS SIGNED ), col0 AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-9980
SELECT - CAST ( NULL AS INTEGER ), col0 AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT ALL - col2 * + + 50 * + + 53 FROM tab2 cor0
----
-106000
-153700
-60950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 51 AS col0, + col2 col2 FROM tab0 AS cor0
----
51
10
51
47
51
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9983
SELECT ALL - CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL - CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9984
SELECT + CAST( + 79 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-9984
SELECT + CAST ( + 79 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
79
79
79

query II rowsort
SELECT - ( + col1 ) * col2 * - col0 + + 12 AS col1, 29 FROM tab2
----
197132
29
291462
29
53970
29

query I rowsort
SELECT DISTINCT - 10 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-10

query I rowsort
SELECT col2 * + col0 * - - col1 * 28 FROM tab0 AS cor0
----
1598940
268884
511560

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 62 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + col0 col2, 39 FROM tab1 cor0
----
144
39
147
39
159
39

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 < + col0
----

query I rowsort
SELECT ( - 32 ) FROM tab1 AS cor0
----
-32
-32
-32

query III rowsort
SELECT * FROM tab1 WHERE - 88 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9993
SELECT 70 + + - 99 DIV + ( col0 ) AS col2 FROM tab2
----
68
69
69

skipif mysql # not compatible
query I rowsort label-9993
SELECT 70 + + - 99 / + ( col0 ) AS col2 FROM tab2
----
68
69
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9994
SELECT col1 * + + ( - CAST( - - 44 AS SIGNED ) ) + - 4 AS col1 FROM tab1
----
-2072
-224
-620

skipif mysql # not compatible
query I rowsort label-9994
SELECT col1 * + + ( - CAST ( - - 44 AS INTEGER ) ) + - 4 AS col1 FROM tab1
----
-2072
-224
-620

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 WHERE NOT 35 <= NULL AND NOT ( NULL ) <> 9
----

query I rowsort
SELECT DISTINCT + 86 AS col0 FROM tab2 cor0
----
86

query I rowsort
SELECT ALL 27 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT - 27 * + col0 FROM tab0 AS cor0
----
-2349
-2619
-405

query I rowsort
SELECT + ( 23 ) FROM tab0 cor0
----
23
23
23

